3 # from OpenLDAP: pkg/ldap/configure.in,v 1.358 2001/05/29 01:29:56 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable V2 Referrals (experimental) [no]"
41 --enable-kbind enable V2 Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [no]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [yes]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-passwd enable passwd backend [no]"
119 --with-passwd-module module type [static]"
121 --enable-perl enable perl backend [no]"
123 --with-perl-module module type [static]"
125 --enable-shell enable shell backend [no]"
127 --with-shell-module module type [static]"
129 --enable-sql enable sql backend [no]"
131 --with-sql-module module type [static]"
133 --enable-tcl enable tcl backend [no]"
135 --with-tcl-module module type [static]"
137 SLURPD (Replication Daemon) Options:"
139 --enable-slurpd enable building slurpd [auto]"
141 Library Generation & Linking Options"
143 --enable-static[=PKGS] build static libraries [default=yes]"
145 --enable-shared[=PKGS] build shared libraries [default=yes]"
147 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
149 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
151 --disable-libtool-lock avoid locking (might break parallel builds)"
153 # Initialize some variables set by options.
154 # The variables have the same names as the options, with
155 # dashes changed to underlines.
157 cache_file=./config.cache
166 program_transform_name=s,x,x,
174 bindir='${exec_prefix}/bin'
175 sbindir='${exec_prefix}/sbin'
176 libexecdir='${exec_prefix}/libexec'
177 datadir='${prefix}/share'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 libdir='${exec_prefix}/lib'
182 includedir='${prefix}/include'
183 oldincludedir='/usr/include'
184 infodir='${prefix}/info'
185 mandir='${prefix}/man'
187 # Initialize some other variables.
190 SHELL=${CONFIG_SHELL-/bin/sh}
191 # Maximum number of lines to put in a shell here document.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
206 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
210 # Accept the important Cygnus configure options, so we can diagnose typos.
214 -bindir | --bindir | --bindi | --bind | --bin | --bi)
216 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
217 bindir="$ac_optarg" ;;
219 -build | --build | --buil | --bui | --bu)
221 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
222 build="$ac_optarg" ;;
224 -cache-file | --cache-file | --cache-fil | --cache-fi \
225 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
226 ac_prev=cache_file ;;
227 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
228 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
229 cache_file="$ac_optarg" ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir="$ac_optarg" ;;
237 -disable-* | --disable-*)
238 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
239 # Reject names that are not valid shell variable names.
240 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
241 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
243 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}=no" ;;
246 -enable-* | --enable-*)
247 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
248 # Reject names that are not valid shell variable names.
249 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
250 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
252 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
257 eval "enable_${ac_feature}='$ac_optarg'" ;;
259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
261 | --exec | --exe | --ex)
262 ac_prev=exec_prefix ;;
263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
265 | --exec=* | --exe=* | --ex=*)
266 exec_prefix="$ac_optarg" ;;
268 -gas | --gas | --ga | --g)
269 # Obsolete; use --with-gas.
272 -help | --help | --hel | --he)
273 # Omit some internal or obsolete options to make the list less imposing.
274 # This message is too long to be a string in the A/UX 3.1 sh.
276 Usage: configure [options] [host]
277 Options: [defaults in brackets after descriptions]
279 --cache-file=FILE cache test results in FILE
280 --help print this message
281 --no-create do not create output files
282 --quiet, --silent do not print \`checking...' messages
283 --version print the version of autoconf that created configure
284 Directory and file names:
285 --prefix=PREFIX install architecture-independent files in PREFIX
287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
289 --bindir=DIR user executables in DIR [EPREFIX/bin]
290 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
291 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
292 --datadir=DIR read-only architecture-independent data in DIR
294 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
295 --sharedstatedir=DIR modifiable architecture-independent data in DIR
297 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
298 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
299 --includedir=DIR C header files in DIR [PREFIX/include]
300 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
301 --infodir=DIR info documentation in DIR [PREFIX/info]
302 --mandir=DIR man documentation in DIR [PREFIX/man]
303 --srcdir=DIR find the sources in DIR [configure dir or ..]
304 --program-prefix=PREFIX prepend PREFIX to installed program names
305 --program-suffix=SUFFIX append SUFFIX to installed program names
306 --program-transform-name=PROGRAM
307 run sed PROGRAM on installed program names
311 --build=BUILD configure for building on BUILD [BUILD=HOST]
312 --host=HOST configure for HOST [guessed]
313 --target=TARGET configure for TARGET [TARGET=HOST]
314 Features and packages:
315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
319 --x-includes=DIR X include files are in DIR
320 --x-libraries=DIR X library files are in DIR
322 if test -n "$ac_help"; then
323 echo "--enable and --with options recognized:$ac_help"
327 -host | --host | --hos | --ho)
329 -host=* | --host=* | --hos=* | --ho=*)
332 -includedir | --includedir | --includedi | --included | --include \
333 | --includ | --inclu | --incl | --inc)
334 ac_prev=includedir ;;
335 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
336 | --includ=* | --inclu=* | --incl=* | --inc=*)
337 includedir="$ac_optarg" ;;
339 -infodir | --infodir | --infodi | --infod | --info | --inf)
341 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
342 infodir="$ac_optarg" ;;
344 -libdir | --libdir | --libdi | --libd)
346 -libdir=* | --libdir=* | --libdi=* | --libd=*)
347 libdir="$ac_optarg" ;;
349 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
350 | --libexe | --libex | --libe)
351 ac_prev=libexecdir ;;
352 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
353 | --libexe=* | --libex=* | --libe=*)
354 libexecdir="$ac_optarg" ;;
356 -localstatedir | --localstatedir | --localstatedi | --localstated \
357 | --localstate | --localstat | --localsta | --localst \
358 | --locals | --local | --loca | --loc | --lo)
359 ac_prev=localstatedir ;;
360 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
361 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
362 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
363 localstatedir="$ac_optarg" ;;
365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
368 mandir="$ac_optarg" ;;
371 # Obsolete; use --without-fp.
374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
384 | --oldin | --oldi | --old | --ol | --o)
385 ac_prev=oldincludedir ;;
386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
389 oldincludedir="$ac_optarg" ;;
391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
394 prefix="$ac_optarg" ;;
396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
397 | --program-pre | --program-pr | --program-p)
398 ac_prev=program_prefix ;;
399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
401 program_prefix="$ac_optarg" ;;
403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
404 | --program-suf | --program-su | --program-s)
405 ac_prev=program_suffix ;;
406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
408 program_suffix="$ac_optarg" ;;
410 -program-transform-name | --program-transform-name \
411 | --program-transform-nam | --program-transform-na \
412 | --program-transform-n | --program-transform- \
413 | --program-transform | --program-transfor \
414 | --program-transfo | --program-transf \
415 | --program-trans | --program-tran \
416 | --progr-tra | --program-tr | --program-t)
417 ac_prev=program_transform_name ;;
418 -program-transform-name=* | --program-transform-name=* \
419 | --program-transform-nam=* | --program-transform-na=* \
420 | --program-transform-n=* | --program-transform-=* \
421 | --program-transform=* | --program-transfor=* \
422 | --program-transfo=* | --program-transf=* \
423 | --program-trans=* | --program-tran=* \
424 | --progr-tra=* | --program-tr=* | --program-t=*)
425 program_transform_name="$ac_optarg" ;;
427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
428 | -silent | --silent | --silen | --sile | --sil)
431 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
433 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
435 sbindir="$ac_optarg" ;;
437 -sharedstatedir | --sharedstatedir | --sharedstatedi \
438 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
439 | --sharedst | --shareds | --shared | --share | --shar \
441 ac_prev=sharedstatedir ;;
442 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
443 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
444 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
446 sharedstatedir="$ac_optarg" ;;
448 -site | --site | --sit)
450 -site=* | --site=* | --sit=*)
453 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
455 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
456 srcdir="$ac_optarg" ;;
458 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
459 | --syscon | --sysco | --sysc | --sys | --sy)
460 ac_prev=sysconfdir ;;
461 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
462 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
463 sysconfdir="$ac_optarg" ;;
465 -target | --target | --targe | --targ | --tar | --ta | --t)
467 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
468 target="$ac_optarg" ;;
470 -v | -verbose | --verbose | --verbos | --verbo | --verb)
473 -version | --version | --versio | --versi | --vers)
474 echo "configure generated by autoconf version 2.13.1"
478 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
488 eval "with_${ac_package}='$ac_optarg'" ;;
490 -without-* | --without-*)
491 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
492 # Reject names that are not valid shell variable names.
493 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
494 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
496 ac_package=`echo $ac_package| sed 's/-/_/g'`
497 eval "with_${ac_package}=no" ;;
500 # Obsolete; use --with-x.
503 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
504 | --x-incl | --x-inc | --x-in | --x-i)
505 ac_prev=x_includes ;;
506 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
507 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
508 x_includes="$ac_optarg" ;;
510 -x-libraries | --x-libraries | --x-librarie | --x-librari \
511 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
512 ac_prev=x_libraries ;;
513 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
514 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
515 x_libraries="$ac_optarg" ;;
517 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
521 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
522 echo "configure: warning: $ac_option: invalid host type" 1>&2
524 if test "x$nonopt" != xNONE; then
525 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
533 if test -n "$ac_prev"; then
534 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
537 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
539 # File descriptor usage:
542 # 2 errors and warnings
543 # 3 some systems may open it to /dev/tty
544 # 4 used on the Kubota Titan
545 # 6 checking for... messages and results
546 # 5 compiler messages saved in config.log
547 if test "$silent" = yes; then
555 This file contains any messages produced by compilers while
556 running configure, to aid debugging if configure makes a mistake.
559 # Strip out --no-create and --no-recursion so they do not pile up.
560 # Also quote any args containing shell metacharacters.
565 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
566 | --no-cr | --no-c) ;;
567 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
568 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
569 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
570 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
571 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
576 # Only set these to C if already set. These must not be set unconditionally
577 # because not all systems understand e.g. LANG=C (notably SCO).
578 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
579 # Non-C LC_CTYPE values break the ctype check.
580 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
581 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
582 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
583 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
586 rm -rf conftest* confdefs.h
587 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
590 # A filename unique to this package, relative to the directory that
591 # configure is in, which we can look for to find out if srcdir is correct.
592 ac_unique_file=build/version.sh
594 # Find the source files, if location was not specified.
595 if test -z "$srcdir"; then
596 ac_srcdir_defaulted=yes
597 # Try the directory containing this script, then its parent.
599 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
600 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
602 if test ! -r $srcdir/$ac_unique_file; then
606 ac_srcdir_defaulted=no
608 if test ! -r $srcdir/$ac_unique_file; then
609 if test "$ac_srcdir_defaulted" = yes; then
610 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
612 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
615 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
617 # Prefer explicitly selected file to automatically selected ones.
618 if test -z "$CONFIG_SITE"; then
619 if test "x$prefix" != xNONE; then
620 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
622 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
625 for ac_site_file in $CONFIG_SITE; do
626 if test -r "$ac_site_file"; then
627 echo "loading site script $ac_site_file"
634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
635 ac_cpp='$CPP $CPPFLAGS'
636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
638 cross_compiling=$ac_cv_prog_cc_cross
642 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
643 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
644 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
651 ac_n= ac_c='\c' ac_t=
655 # set unset (borrowed from autoconf 2.49c)
656 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
662 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
665 for ac_dir in build $srcdir/build; do
666 if test -f $ac_dir/install-sh; then
668 ac_install_sh="$ac_aux_dir/install-sh -c"
670 elif test -f $ac_dir/install.sh; then
672 ac_install_sh="$ac_aux_dir/install.sh -c"
674 elif test -f $ac_dir/shtool; then
676 ac_install_sh="$ac_aux_dir/shtool install -c"
680 if test -z "$ac_aux_dir"; then
681 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
683 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
684 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
685 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
687 eval `$ac_aux_dir/version.sh`
688 if test -z "$OL_STRING"; then
689 { echo "configure: error: could not determine version" 1>&2; exit 1; }
692 echo "Configuring $OL_STRING ..."
695 echo $ac_n "checking host system type""... $ac_c" 1>&6
696 echo "configure:697: checking host system type" >&5
697 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
699 # Make sure we can run config.sub.
700 if $ac_config_sub sun4 >/dev/null 2>&1; then :
701 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
704 ac_cv_host_alias=$host
705 case "$ac_cv_host_alias" in
709 if ac_cv_host_alias=`$ac_config_guess`; then :
710 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
712 *) ac_cv_host_alias=$nonopt ;;
716 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
717 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
721 echo $ac_n "(cached) $ac_c" 1>&6
724 echo "$ac_t""$ac_cv_host" 1>&6
727 host_alias=$ac_cv_host_alias
728 host_cpu=$ac_cv_host_cpu
729 host_vendor=$ac_cv_host_vendor
730 host_os=$ac_cv_host_os
736 echo $ac_n "checking target system type""... $ac_c" 1>&6
737 echo "configure:738: checking target system type" >&5
738 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
740 # Make sure we can run config.sub.
741 if $ac_config_sub sun4 >/dev/null 2>&1; then :
742 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
745 ac_cv_target_alias=$target
746 case "$ac_cv_target_alias" in
750 ac_cv_target_alias=$host_alias ;;
752 *) ac_cv_target_alias=$nonopt ;;
756 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
757 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
758 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
759 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761 echo $ac_n "(cached) $ac_c" 1>&6
764 echo "$ac_t""$ac_cv_target" 1>&6
767 target_alias=$ac_cv_target_alias
768 target_cpu=$ac_cv_target_cpu
769 target_vendor=$ac_cv_target_vendor
770 target_os=$ac_cv_target_os
776 echo $ac_n "checking build system type""... $ac_c" 1>&6
777 echo "configure:778: checking build system type" >&5
778 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
780 # Make sure we can run config.sub.
781 if $ac_config_sub sun4 >/dev/null 2>&1; then :
782 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
785 ac_cv_build_alias=$build
786 case "$ac_cv_build_alias" in
790 ac_cv_build_alias=$host_alias ;;
792 *) ac_cv_build_alias=$nonopt ;;
796 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
797 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
798 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
799 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
801 echo $ac_n "(cached) $ac_c" 1>&6
804 echo "$ac_t""$ac_cv_build" 1>&6
807 build_alias=$ac_cv_build_alias
808 build_cpu=$ac_cv_build_cpu
809 build_vendor=$ac_cv_build_vendor
810 build_os=$ac_cv_build_os
816 # Do some error checking and defaulting for the host and target type.
818 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
821 # 1. You are not allowed to specify --host, --target, and nonopt at the
823 # 2. Host defaults to nonopt.
824 # 3. If nonopt is not specified, then host defaults to the current host,
825 # as determined by config.guess.
826 # 4. Target and build default to nonopt.
827 # 5. If nonopt is not specified, then target and build default to host.
829 # The aliases save the names the user supplied, while $host etc.
830 # will get canonicalized.
831 case $host---$target---$nonopt in
832 NONE---*---* | *---NONE---* | *---*---NONE) ;;
833 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
836 test "$host_alias" != "$target_alias" &&
837 test "$program_prefix$program_suffix$program_transform_name" = \
839 program_prefix=${target_alias}-
842 # Find a good install program. We prefer a C program (faster),
843 # so one script is as good as another. But avoid the broken or
844 # incompatible versions:
845 # SysV /etc/install, /usr/sbin/install
846 # SunOS /usr/etc/install
849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
852 # ./install, which can be erroneously created by make from ./install.sh.
853 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
854 echo "configure:855: checking for a BSD compatible install" >&5
855 if test -z "$INSTALL"; then
856 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
860 for ac_dir in $PATH; do
861 # Account for people who put trailing slashes in PATH elements.
863 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
865 # OSF1 and SCO ODT 3.0 have their own names for install.
866 # Don't use installbsd from OSF since it installs stuff as root
868 for ac_prog in ginstall scoinst install; do
869 if test -f $ac_dir/$ac_prog; then
870 if test $ac_prog = install &&
871 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
872 # AIX install. It has an incompatible calling convention.
874 elif test $ac_prog = install &&
875 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # program-specific install script used by HP pwplus--don't use.
879 ac_cv_path_install="$ac_dir/$ac_prog -c"
890 if test "${ac_cv_path_install+set}" = set; then
891 INSTALL="$ac_cv_path_install"
893 # As a last resort, use the slow shell script. We don't cache a
894 # path for INSTALL within a source directory, because that will
895 # break other packages using the cache if that directory is
896 # removed, or if the path is relative.
897 INSTALL="$ac_install_sh"
900 echo "$ac_t""$INSTALL" 1>&6
902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
903 # It thinks the first close brace ends the variable substitution.
904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
910 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
911 echo "configure:912: checking whether build environment is sane" >&5
914 echo timestamp > conftestfile
915 # Do `set' in a subshell so we don't clobber the current shell's
916 # arguments. Must try -L first in case configure is actually a
917 # symlink; some systems play weird games with the mod time of symlinks
918 # (eg FreeBSD returns the mod time of the symlink's containing
921 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
922 if test "$*" = "X"; then
924 set X `ls -t $srcdir/configure conftestfile`
926 if test "$*" != "X $srcdir/configure conftestfile" \
927 && test "$*" != "X conftestfile $srcdir/configure"; then
929 # If neither matched, then we have a broken ls. This can happen
930 # if, for instance, CONFIG_SHELL is bash and it inherits a
931 # broken ls alias from the environment. This has actually
932 # happened. Such a system could not be considered "sane".
933 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
934 alias in your environment" 1>&2; exit 1; }
937 test "$2" = conftestfile
943 { echo "configure: error: newly created file is older than distributed files!
944 Check your system clock" 1>&2; exit 1; }
947 echo "$ac_t""yes" 1>&6
948 if test "$program_transform_name" = s,x,x,; then
949 program_transform_name=
951 # Double any \ or $. echo might interpret backslashes.
952 cat <<\EOF_SED > conftestsed
953 s,\\,\\\\,g; s,\$,$$,g
955 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
958 test "$program_prefix" != NONE &&
959 program_transform_name="s,^,${program_prefix},;$program_transform_name"
960 # Use a double $ so make ignores it.
961 test "$program_suffix" != NONE &&
962 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
964 # sed with no file args requires a program.
965 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
967 for ac_prog in mawk gawk nawk awk
969 # Extract the first word of "$ac_prog", so it can be a program name with args.
970 set dummy $ac_prog; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$AWK"; then
977 ac_cv_prog_AWK="$AWK" # Let the user override the test.
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 for ac_dir in $ac_dummy; do
982 test -z "$ac_dir" && ac_dir=.
983 if test -f $ac_dir/$ac_word; then
984 ac_cv_prog_AWK="$ac_prog"
991 AWK="$ac_cv_prog_AWK"
992 if test -n "$AWK"; then
993 echo "$ac_t""$AWK" 1>&6
995 echo "$ac_t""no" 1>&6
998 test -n "$AWK" && break
1001 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether ${MAKE-make} sets \${MAKE}" >&5
1003 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1004 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 cat > conftestmake <<\EOF
1009 @echo 'ac_maketemp="${MAKE}"'
1011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1012 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1013 if test -n "$ac_maketemp"; then
1014 eval ac_cv_prog_make_${ac_make}_set=yes
1016 eval ac_cv_prog_make_${ac_make}_set=no
1020 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1021 echo "$ac_t""yes" 1>&6
1024 echo "$ac_t""no" 1>&6
1025 SET_MAKE="MAKE=${MAKE-make}"
1034 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1035 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1040 missing_dir=`cd $ac_aux_dir && pwd`
1041 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working aclocal" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 ACLOCAL="$missing_dir/missing aclocal"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working autoconf" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1061 echo "$ac_t""found" 1>&6
1063 AUTOCONF="$missing_dir/missing autoconf"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working automake" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (automake --version) < /dev/null > /dev/null 2>&1; then
1074 echo "$ac_t""found" 1>&6
1076 AUTOMAKE="$missing_dir/missing automake"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working autoheader" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1086 AUTOHEADER=autoheader
1087 echo "$ac_t""found" 1>&6
1089 AUTOHEADER="$missing_dir/missing autoheader"
1090 echo "$ac_t""missing" 1>&6
1093 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1094 echo "configure:1095: checking for working makeinfo" >&5
1095 # Run test in a subshell; some versions of sh will print an error if
1096 # an executable is not found, even if stderr is redirected.
1097 # Redirect stdin to placate older versions of autoconf. Sigh.
1098 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1100 echo "$ac_t""found" 1>&6
1102 MAKEINFO="$missing_dir/missing makeinfo"
1103 echo "$ac_t""missing" 1>&6
1106 install_sh="$missing_dir/install-sh"
1107 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1109 for ac_prog in gnutar gtar tar
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy $ac_prog; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$AMTAR"; then
1119 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AMTAR="$ac_prog"
1133 AMTAR="$ac_cv_prog_AMTAR"
1134 if test -n "$AMTAR"; then
1135 echo "$ac_t""$AMTAR" 1>&6
1137 echo "$ac_t""no" 1>&6
1140 test -n "$AMTAR" && break
1145 if test -n "$AMTAR"; then
1146 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1151 cat >> confdefs.h <<EOF
1152 #define OPENLDAP_PACKAGE "$PACKAGE"
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_VERSION "$VERSION"
1160 cat >> confdefs.h <<EOF
1161 #define LDAP_VENDOR_VERSION $OL_API_INC
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1177 OPENLDAP_LIBVERSION=$OL_API_LIB
1181 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1182 echo "configure:1183: checking configure arguments" >&5
1187 ldap_subdir="/openldap"
1189 # Check whether --with-subdir or --without-subdir was given.
1190 if test "${with_subdir+set}" = set; then
1191 withval="$with_subdir"
1198 ldap_subdir="$withval"
1201 ldap_subdir="/$withval"
1208 # OpenLDAP --enable-debug
1209 # Check whether --enable-debug or --disable-debug was given.
1210 if test "${enable_debug+set}" = set; then
1211 enableval="$enable_debug"
1214 for ol_val in auto yes no ; do
1215 if test "$enableval" = "$ol_val" ; then
1219 if test "$ol_arg" = "invalid" ; then
1220 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1222 ol_enable_debug="$ol_arg"
1225 ol_enable_debug="yes"
1227 # end --enable-debug
1228 # OpenLDAP --enable-syslog
1229 # Check whether --enable-syslog or --disable-syslog was given.
1230 if test "${enable_syslog+set}" = set; then
1231 enableval="$enable_syslog"
1234 for ol_val in auto yes no ; do
1235 if test "$enableval" = "$ol_val" ; then
1239 if test "$ol_arg" = "invalid" ; then
1240 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1242 ol_enable_syslog="$ol_arg"
1245 ol_enable_syslog="auto"
1247 # end --enable-syslog
1248 # OpenLDAP --enable-proctitle
1249 # Check whether --enable-proctitle or --disable-proctitle was given.
1250 if test "${enable_proctitle+set}" = set; then
1251 enableval="$enable_proctitle"
1254 for ol_val in auto yes no ; do
1255 if test "$enableval" = "$ol_val" ; then
1259 if test "$ol_arg" = "invalid" ; then
1260 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1262 ol_enable_proctitle="$ol_arg"
1265 ol_enable_proctitle="yes"
1267 # end --enable-proctitle
1268 # OpenLDAP --enable-cache
1269 # Check whether --enable-cache or --disable-cache was given.
1270 if test "${enable_cache+set}" = set; then
1271 enableval="$enable_cache"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1282 ol_enable_cache="$ol_arg"
1285 ol_enable_cache="no"
1287 # end --enable-cache
1288 # OpenLDAP --enable-referrals
1289 # Check whether --enable-referrals or --disable-referrals was given.
1290 if test "${enable_referrals+set}" = set; then
1291 enableval="$enable_referrals"
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-referrals" 1>&2; exit 1; }
1302 ol_enable_referrals="$ol_arg"
1305 ol_enable_referrals="no"
1307 # end --enable-referrals
1308 # OpenLDAP --enable-kbind
1309 # Check whether --enable-kbind or --disable-kbind was given.
1310 if test "${enable_kbind+set}" = set; then
1311 enableval="$enable_kbind"
1314 for ol_val in auto yes no ; do
1315 if test "$enableval" = "$ol_val" ; then
1319 if test "$ol_arg" = "invalid" ; then
1320 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1322 ol_enable_kbind="$ol_arg"
1325 ol_enable_kbind="no"
1327 # end --enable-kbind
1328 # OpenLDAP --enable-ipv6
1329 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1330 if test "${enable_ipv6+set}" = set; then
1331 enableval="$enable_ipv6"
1334 for ol_val in auto yes no ; do
1335 if test "$enableval" = "$ol_val" ; then
1339 if test "$ol_arg" = "invalid" ; then
1340 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1342 ol_enable_ipv6="$ol_arg"
1345 ol_enable_ipv6="auto"
1348 # OpenLDAP --enable-local
1349 # Check whether --enable-local or --disable-local was given.
1350 if test "${enable_local+set}" = set; then
1351 enableval="$enable_local"
1354 for ol_val in auto yes no ; do
1355 if test "$enableval" = "$ol_val" ; then
1359 if test "$ol_arg" = "invalid" ; then
1360 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1362 ol_enable_local="$ol_arg"
1365 ol_enable_local="auto"
1367 # end --enable-local
1368 # OpenLDAP --enable-rewrite
1369 # Check whether --enable-rewrite or --disable-rewrite was given.
1370 if test "${enable_rewrite+set}" = set; then
1371 enableval="$enable_rewrite"
1374 for ol_val in auto yes no ; do
1375 if test "$enableval" = "$ol_val" ; then
1379 if test "$ol_arg" = "invalid" ; then
1380 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1382 ol_enable_rewrite="$ol_arg"
1385 ol_enable_rewrite="no"
1387 # end --enable-rewrite
1388 # OpenLDAP --enable-x_compile
1389 # Check whether --enable-x_compile or --disable-x_compile was given.
1390 if test "${enable_x_compile+set}" = set; then
1391 enableval="$enable_x_compile"
1394 for ol_val in yes no ; do
1395 if test "$enableval" = "$ol_val" ; then
1399 if test "$ol_arg" = "invalid" ; then
1400 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1402 ol_enable_x_compile="$ol_arg"
1405 ol_enable_x_compile="no"
1407 # end --enable-x_compile
1410 # OpenLDAP --with-cyrus_sasl
1411 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1412 if test "${with_cyrus_sasl+set}" = set; then
1413 withval="$with_cyrus_sasl"
1416 for ol_val in auto yes no ; do
1417 if test "$withval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1424 ol_with_cyrus_sasl="$ol_arg"
1427 ol_with_cyrus_sasl="auto"
1429 # end --with-cyrus_sasl
1431 # OpenLDAP --with-fetch
1432 # Check whether --with-fetch or --without-fetch was given.
1433 if test "${with_fetch+set}" = set; then
1434 withval="$with_fetch"
1437 for ol_val in auto yes no ; do
1438 if test "$withval" = "$ol_val" ; then
1442 if test "$ol_arg" = "invalid" ; then
1443 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1445 ol_with_fetch="$ol_arg"
1448 ol_with_fetch="auto"
1452 # OpenLDAP --with-kerberos
1453 # Check whether --with-kerberos or --without-kerberos was given.
1454 if test "${with_kerberos+set}" = set; then
1455 withval="$with_kerberos"
1458 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1459 if test "$withval" = "$ol_val" ; then
1463 if test "$ol_arg" = "invalid" ; then
1464 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1466 ol_with_kerberos="$ol_arg"
1469 ol_with_kerberos="auto"
1471 # end --with-kerberos
1473 # OpenLDAP --with-readline
1474 # Check whether --with-readline or --without-readline was given.
1475 if test "${with_readline+set}" = set; then
1476 withval="$with_readline"
1479 for ol_val in auto yes no ; do
1480 if test "$withval" = "$ol_val" ; then
1484 if test "$ol_arg" = "invalid" ; then
1485 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1487 ol_with_readline="$ol_arg"
1490 ol_with_readline="auto"
1492 # end --with-readline
1494 # OpenLDAP --with-threads
1495 # Check whether --with-threads or --without-threads was given.
1496 if test "${with_threads+set}" = set; then
1497 withval="$with_threads"
1500 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1501 if test "$withval" = "$ol_val" ; then
1505 if test "$ol_arg" = "invalid" ; then
1506 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1508 ol_with_threads="$ol_arg"
1511 ol_with_threads="auto"
1513 # end --with-threads
1515 # OpenLDAP --with-tls
1516 # Check whether --with-tls or --without-tls was given.
1517 if test "${with_tls+set}" = set; then
1521 for ol_val in auto ssleay openssl yes no ; do
1522 if test "$withval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1529 ol_with_tls="$ol_arg"
1536 # OpenLDAP --with-yielding_select
1537 # Check whether --with-yielding_select or --without-yielding_select was given.
1538 if test "${with_yielding_select+set}" = set; then
1539 withval="$with_yielding_select"
1542 for ol_val in auto yes no manual ; do
1543 if test "$withval" = "$ol_val" ; then
1547 if test "$ol_arg" = "invalid" ; then
1548 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1550 ol_with_yielding_select="$ol_arg"
1553 ol_with_yielding_select="auto"
1555 # end --with-yielding_select
1559 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1560 if test "${with_xxslapdoptions+set}" = set; then
1561 withval="$with_xxslapdoptions"
1565 # OpenLDAP --enable-slapd
1566 # Check whether --enable-slapd or --disable-slapd was given.
1567 if test "${enable_slapd+set}" = set; then
1568 enableval="$enable_slapd"
1571 for ol_val in auto yes no ; do
1572 if test "$enableval" = "$ol_val" ; then
1576 if test "$ol_arg" = "invalid" ; then
1577 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1579 ol_enable_slapd="$ol_arg"
1582 ol_enable_slapd="yes"
1584 # end --enable-slapd
1585 # OpenLDAP --enable-aci
1586 # Check whether --enable-aci or --disable-aci was given.
1587 if test "${enable_aci+set}" = set; then
1588 enableval="$enable_aci"
1591 for ol_val in auto yes no ; do
1592 if test "$enableval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1599 ol_enable_aci="$ol_arg"
1605 # OpenLDAP --enable-cleartext
1606 # Check whether --enable-cleartext or --disable-cleartext was given.
1607 if test "${enable_cleartext+set}" = set; then
1608 enableval="$enable_cleartext"
1611 for ol_val in auto yes no ; do
1612 if test "$enableval" = "$ol_val" ; then
1616 if test "$ol_arg" = "invalid" ; then
1617 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1619 ol_enable_cleartext="$ol_arg"
1622 ol_enable_cleartext="yes"
1624 # end --enable-cleartext
1625 # OpenLDAP --enable-crypt
1626 # Check whether --enable-crypt or --disable-crypt was given.
1627 if test "${enable_crypt+set}" = set; then
1628 enableval="$enable_crypt"
1631 for ol_val in auto yes no ; do
1632 if test "$enableval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1639 ol_enable_crypt="$ol_arg"
1642 ol_enable_crypt="no"
1644 # end --enable-crypt
1645 # OpenLDAP --enable-dynamic
1646 # Check whether --enable-dynamic or --disable-dynamic was given.
1647 if test "${enable_dynamic+set}" = set; then
1648 enableval="$enable_dynamic"
1651 for ol_val in auto yes no ; do
1652 if test "$enableval" = "$ol_val" ; then
1656 if test "$ol_arg" = "invalid" ; then
1657 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1659 ol_enable_dynamic="$ol_arg"
1662 ol_enable_dynamic="no"
1664 # end --enable-dynamic
1665 # OpenLDAP --enable-kpasswd
1666 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1667 if test "${enable_kpasswd+set}" = set; then
1668 enableval="$enable_kpasswd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1679 ol_enable_kpasswd="$ol_arg"
1682 ol_enable_kpasswd="no"
1684 # end --enable-kpasswd
1685 # OpenLDAP --enable-lmpasswd
1686 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1687 if test "${enable_lmpasswd+set}" = set; then
1688 enableval="$enable_lmpasswd"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1699 ol_enable_lmpasswd="$ol_arg"
1702 ol_enable_lmpasswd="no"
1704 # end --enable-lmpasswd
1705 # OpenLDAP --enable-spasswd
1706 # Check whether --enable-spasswd or --disable-spasswd was given.
1707 if test "${enable_spasswd+set}" = set; then
1708 enableval="$enable_spasswd"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1719 ol_enable_spasswd="$ol_arg"
1722 ol_enable_spasswd="no"
1724 # end --enable-spasswd
1725 # OpenLDAP --enable-modules
1726 # Check whether --enable-modules or --disable-modules was given.
1727 if test "${enable_modules+set}" = set; then
1728 enableval="$enable_modules"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1739 ol_enable_modules="$ol_arg"
1742 ol_enable_modules="no"
1744 # end --enable-modules
1745 # OpenLDAP --enable-phonetic
1746 # Check whether --enable-phonetic or --disable-phonetic was given.
1747 if test "${enable_phonetic+set}" = set; then
1748 enableval="$enable_phonetic"
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-phonetic" 1>&2; exit 1; }
1759 ol_enable_phonetic="$ol_arg"
1762 ol_enable_phonetic="no"
1764 # end --enable-phonetic
1765 # OpenLDAP --enable-rlookups
1766 # Check whether --enable-rlookups or --disable-rlookups was given.
1767 if test "${enable_rlookups+set}" = set; then
1768 enableval="$enable_rlookups"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1779 ol_enable_rlookups="$ol_arg"
1782 ol_enable_rlookups="no"
1784 # end --enable-rlookups
1785 # OpenLDAP --enable-slp
1786 # Check whether --enable-slp or --disable-slp was given.
1787 if test "${enable_slp+set}" = set; then
1788 enableval="$enable_slp"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1799 ol_enable_slp="$ol_arg"
1805 # OpenLDAP --enable-wrappers
1806 # Check whether --enable-wrappers or --disable-wrappers was given.
1807 if test "${enable_wrappers+set}" = set; then
1808 enableval="$enable_wrappers"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1819 ol_enable_wrappers="$ol_arg"
1822 ol_enable_wrappers="no"
1824 # end --enable-wrappers
1826 # OpenLDAP --enable-bdb
1827 # Check whether --enable-bdb or --disable-bdb was given.
1828 if test "${enable_bdb+set}" = set; then
1829 enableval="$enable_bdb"
1832 for ol_val in auto yes no ; do
1833 if test "$enableval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1840 ol_enable_bdb="$ol_arg"
1846 # OpenLDAP --with-bdb_module
1847 # Check whether --with-bdb_module or --without-bdb_module was given.
1848 if test "${with_bdb_module+set}" = set; then
1849 withval="$with_bdb_module"
1852 for ol_val in static dynamic ; do
1853 if test "$withval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1860 ol_with_bdb_module="$ol_arg"
1863 ol_with_bdb_module="static"
1865 # end --with-bdb_module
1867 # OpenLDAP --enable-dnssrv
1868 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1869 if test "${enable_dnssrv+set}" = set; then
1870 enableval="$enable_dnssrv"
1873 for ol_val in auto yes no ; do
1874 if test "$enableval" = "$ol_val" ; then
1878 if test "$ol_arg" = "invalid" ; then
1879 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1881 ol_enable_dnssrv="$ol_arg"
1884 ol_enable_dnssrv="no"
1886 # end --enable-dnssrv
1887 # OpenLDAP --with-dnssrv_module
1888 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1889 if test "${with_dnssrv_module+set}" = set; then
1890 withval="$with_dnssrv_module"
1893 for ol_val in static dynamic ; do
1894 if test "$withval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1901 ol_with_dnssrv_module="$ol_arg"
1904 ol_with_dnssrv_module="static"
1906 # end --with-dnssrv_module
1908 # OpenLDAP --enable-ldap
1909 # Check whether --enable-ldap or --disable-ldap was given.
1910 if test "${enable_ldap+set}" = set; then
1911 enableval="$enable_ldap"
1914 for ol_val in auto yes no ; do
1915 if test "$enableval" = "$ol_val" ; then
1919 if test "$ol_arg" = "invalid" ; then
1920 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1922 ol_enable_ldap="$ol_arg"
1928 # OpenLDAP --with-ldap_module
1929 # Check whether --with-ldap_module or --without-ldap_module was given.
1930 if test "${with_ldap_module+set}" = set; then
1931 withval="$with_ldap_module"
1934 for ol_val in static dynamic ; do
1935 if test "$withval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1942 ol_with_ldap_module="$ol_arg"
1945 ol_with_ldap_module="static"
1947 # end --with-ldap_module
1949 # OpenLDAP --enable-ldbm
1950 # Check whether --enable-ldbm or --disable-ldbm was given.
1951 if test "${enable_ldbm+set}" = set; then
1952 enableval="$enable_ldbm"
1955 for ol_val in auto yes no ; do
1956 if test "$enableval" = "$ol_val" ; then
1960 if test "$ol_arg" = "invalid" ; then
1961 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1963 ol_enable_ldbm="$ol_arg"
1966 ol_enable_ldbm="yes"
1969 # OpenLDAP --with-ldbm_api
1970 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1971 if test "${with_ldbm_api+set}" = set; then
1972 withval="$with_ldbm_api"
1975 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1976 if test "$withval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1983 ol_with_ldbm_api="$ol_arg"
1986 ol_with_ldbm_api="auto"
1988 # end --with-ldbm_api
1990 # OpenLDAP --with-ldbm_module
1991 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1992 if test "${with_ldbm_module+set}" = set; then
1993 withval="$with_ldbm_module"
1996 for ol_val in static dynamic ; do
1997 if test "$withval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2004 ol_with_ldbm_module="$ol_arg"
2007 ol_with_ldbm_module="static"
2009 # end --with-ldbm_module
2011 # OpenLDAP --with-ldbm_type
2012 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2013 if test "${with_ldbm_type+set}" = set; then
2014 withval="$with_ldbm_type"
2017 for ol_val in auto btree hash ; do
2018 if test "$withval" = "$ol_val" ; then
2022 if test "$ol_arg" = "invalid" ; then
2023 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2025 ol_with_ldbm_type="$ol_arg"
2028 ol_with_ldbm_type="auto"
2030 # end --with-ldbm_type
2032 # OpenLDAP --enable-meta
2033 # Check whether --enable-meta or --disable-meta was given.
2034 if test "${enable_meta+set}" = set; then
2035 enableval="$enable_meta"
2038 for ol_val in auto yes no ; do
2039 if test "$enableval" = "$ol_val" ; then
2043 if test "$ol_arg" = "invalid" ; then
2044 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2046 ol_enable_meta="$ol_arg"
2052 # OpenLDAP --with-meta_module
2053 # Check whether --with-meta_module or --without-meta_module was given.
2054 if test "${with_meta_module+set}" = set; then
2055 withval="$with_meta_module"
2058 for ol_val in static dynamic ; do
2059 if test "$withval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2066 ol_with_meta_module="$ol_arg"
2069 ol_with_meta_module="static"
2071 # end --with-meta_module
2073 # OpenLDAP --enable-passwd
2074 # Check whether --enable-passwd or --disable-passwd was given.
2075 if test "${enable_passwd+set}" = set; then
2076 enableval="$enable_passwd"
2079 for ol_val in auto yes no ; do
2080 if test "$enableval" = "$ol_val" ; then
2084 if test "$ol_arg" = "invalid" ; then
2085 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2087 ol_enable_passwd="$ol_arg"
2090 ol_enable_passwd="no"
2092 # end --enable-passwd
2093 # OpenLDAP --with-passwd_module
2094 # Check whether --with-passwd_module or --without-passwd_module was given.
2095 if test "${with_passwd_module+set}" = set; then
2096 withval="$with_passwd_module"
2099 for ol_val in static dynamic ; do
2100 if test "$withval" = "$ol_val" ; then
2104 if test "$ol_arg" = "invalid" ; then
2105 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2107 ol_with_passwd_module="$ol_arg"
2110 ol_with_passwd_module="static"
2112 # end --with-passwd_module
2114 # OpenLDAP --enable-perl
2115 # Check whether --enable-perl or --disable-perl was given.
2116 if test "${enable_perl+set}" = set; then
2117 enableval="$enable_perl"
2120 for ol_val in auto yes no ; do
2121 if test "$enableval" = "$ol_val" ; then
2125 if test "$ol_arg" = "invalid" ; then
2126 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2128 ol_enable_perl="$ol_arg"
2134 # OpenLDAP --with-perl_module
2135 # Check whether --with-perl_module or --without-perl_module was given.
2136 if test "${with_perl_module+set}" = set; then
2137 withval="$with_perl_module"
2140 for ol_val in static dynamic ; do
2141 if test "$withval" = "$ol_val" ; then
2145 if test "$ol_arg" = "invalid" ; then
2146 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2148 ol_with_perl_module="$ol_arg"
2151 ol_with_perl_module="static"
2153 # end --with-perl_module
2155 # OpenLDAP --enable-shell
2156 # Check whether --enable-shell or --disable-shell was given.
2157 if test "${enable_shell+set}" = set; then
2158 enableval="$enable_shell"
2161 for ol_val in auto yes no ; do
2162 if test "$enableval" = "$ol_val" ; then
2166 if test "$ol_arg" = "invalid" ; then
2167 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2169 ol_enable_shell="$ol_arg"
2172 ol_enable_shell="no"
2174 # end --enable-shell
2175 # OpenLDAP --with-shell_module
2176 # Check whether --with-shell_module or --without-shell_module was given.
2177 if test "${with_shell_module+set}" = set; then
2178 withval="$with_shell_module"
2181 for ol_val in static dynamic ; do
2182 if test "$withval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2189 ol_with_shell_module="$ol_arg"
2192 ol_with_shell_module="static"
2194 # end --with-shell_module
2196 # OpenLDAP --enable-sql
2197 # Check whether --enable-sql or --disable-sql was given.
2198 if test "${enable_sql+set}" = set; then
2199 enableval="$enable_sql"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2210 ol_enable_sql="$ol_arg"
2216 # OpenLDAP --with-sql_module
2217 # Check whether --with-sql_module or --without-sql_module was given.
2218 if test "${with_sql_module+set}" = set; then
2219 withval="$with_sql_module"
2222 for ol_val in static dynamic ; do
2223 if test "$withval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2230 ol_with_sql_module="$ol_arg"
2233 ol_with_sql_module="static"
2235 # end --with-sql_module
2237 # OpenLDAP --enable-tcl
2238 # Check whether --enable-tcl or --disable-tcl was given.
2239 if test "${enable_tcl+set}" = set; then
2240 enableval="$enable_tcl"
2243 for ol_val in auto yes no ; do
2244 if test "$enableval" = "$ol_val" ; then
2248 if test "$ol_arg" = "invalid" ; then
2249 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2251 ol_enable_tcl="$ol_arg"
2257 # OpenLDAP --with-tcl_module
2258 # Check whether --with-tcl_module or --without-tcl_module was given.
2259 if test "${with_tcl_module+set}" = set; then
2260 withval="$with_tcl_module"
2263 for ol_val in static dynamic ; do
2264 if test "$withval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2271 ol_with_tcl_module="$ol_arg"
2274 ol_with_tcl_module="static"
2276 # end --with-tcl_module
2279 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2280 if test "${with_xxslurpdoptions+set}" = set; then
2281 withval="$with_xxslurpdoptions"
2285 # OpenLDAP --enable-slurpd
2286 # Check whether --enable-slurpd or --disable-slurpd was given.
2287 if test "${enable_slurpd+set}" = set; then
2288 enableval="$enable_slurpd"
2291 for ol_val in auto yes no ; do
2292 if test "$enableval" = "$ol_val" ; then
2296 if test "$ol_arg" = "invalid" ; then
2297 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2299 ol_enable_slurpd="$ol_arg"
2302 ol_enable_slurpd="auto"
2304 # end --enable-slurpd
2306 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2307 if test "${with_xxliboptions+set}" = set; then
2308 withval="$with_xxliboptions"
2312 # Check whether --enable-static or --disable-static was given.
2313 if test "${enable_static+set}" = set; then
2314 enableval="$enable_static"
2315 p=${PACKAGE-default}
2316 case "$enableval" in
2317 yes) enable_static=yes ;;
2318 no) enable_static=no ;;
2321 # Look at the argument we got. We use all the common list separators.
2322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2323 for pkg in $enableval; do
2324 if test "X$pkg" = "X$p"; then
2335 # Check whether --enable-shared or --disable-shared was given.
2336 if test "${enable_shared+set}" = set; then
2337 enableval="$enable_shared"
2338 p=${PACKAGE-default}
2339 case "$enableval" in
2340 yes) enable_shared=yes ;;
2341 no) enable_shared=no ;;
2344 # Look at the argument we got. We use all the common list separators.
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2346 for pkg in $enableval; do
2347 if test "X$pkg" = "X$p"; then
2361 if test $ol_enable_slapd = no ; then
2362 if test $ol_enable_bdb = yes ; then
2363 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2365 if test $ol_enable_dnssrv = yes ; then
2366 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2368 if test $ol_enable_ldap = yes ; then
2369 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2371 if test $ol_enable_ldbm = yes ; then
2372 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2374 if test $ol_enable_meta = yes ; then
2375 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2377 if test $ol_enable_passwd = yes ; then
2378 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2380 if test $ol_enable_perl = yes ; then
2381 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2383 if test $ol_enable_shell = yes ; then
2384 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2386 if test $ol_enable_tcl = yes ; then
2387 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2389 if test $ol_enable_sql = yes ; then
2390 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2392 if test $ol_enable_modules = yes ; then
2393 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2395 if test $ol_enable_wrappers = yes ; then
2396 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2398 if test $ol_enable_phonetic = yes ; then
2399 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2401 if test $ol_enable_rlookups = yes ; then
2402 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2404 if test $ol_enable_aci = yes ; then
2405 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2407 if test $ol_with_ldbm_api != auto ; then
2408 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2410 if test $ol_with_ldbm_type != auto ; then
2411 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2413 if test $ol_with_bdb_module != static ; then
2414 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2416 if test $ol_with_dnssrv_module != static ; then
2417 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2419 if test $ol_with_ldap_module != static ; then
2420 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2422 if test $ol_with_ldbm_module != static ; then
2423 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2425 if test $ol_with_meta_module != static ; then
2426 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2428 if test $ol_with_passwd_module != static ; then
2429 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2431 if test $ol_with_perl_module != static ; then
2432 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2434 if test $ol_with_shell_module != static ; then
2435 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2437 if test $ol_with_tcl_module != static ; then
2438 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2440 if test $ol_with_sql_module != static ; then
2441 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2443 if test $ol_enable_slurpd = yes ; then
2444 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2446 if test $ol_enable_rewrite = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2450 # force settings to no
2462 ol_enable_modules=no
2463 ol_enable_phonetic=no
2464 ol_enable_rlookups=no
2466 ol_enable_wrappers=no
2467 ol_enable_dynamic=no
2470 ol_with_ldbm_type=no
2472 ol_with_bdb_module=static
2473 ol_with_dnssrv_module=static
2474 ol_with_ldap_module=static
2475 ol_with_ldbm_module=static
2476 ol_with_meta_module=static
2477 ol_with_passwd_module=static
2478 ol_with_perl_module=static
2479 ol_with_shell_module=static
2480 ol_with_tcl_module=static
2481 ol_with_sql_module=static
2485 ol_enable_rewrite=no
2487 elif test $ol_enable_ldbm = no ; then
2489 if test $ol_with_ldbm_api != auto ; then
2490 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2493 if test $ol_with_ldbm_type != auto ; then
2494 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2497 if test $ol_with_ldbm_module != static ; then
2498 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2501 if test $ol_enable_modules != yes -a \
2502 $ol_enable_bdb = no -a \
2503 $ol_enable_dnssrv = no -a \
2504 $ol_enable_ldap = no -a \
2505 $ol_enable_meta = no -a \
2506 $ol_enable_passwd = no -a \
2507 $ol_enable_perl = no -a \
2508 $ol_enable_shell = no -a \
2509 $ol_enable_sql = no -a \
2510 $ol_enable_tcl = no ; then
2511 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2515 ol_with_ldbm_type=no
2516 ol_with_ldbm_module=static
2519 if test $ol_with_ldbm_api = gdbm -a \
2520 $ol_with_ldbm_type = btree ; then
2521 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2523 if test $ol_with_ldbm_api = mdbm -a \
2524 $ol_with_ldbm_type = btree ; then
2525 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2527 if test $ol_with_ldbm_api = ndbm -a \
2528 $ol_with_ldbm_type = btree ; then
2529 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2533 if test $ol_enable_slurpd = yes ; then
2534 if test $ol_with_threads = no ; then
2535 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2539 if test $ol_enable_lmpasswd = yes ; then
2540 if test $ol_with_tls = no ; then
2541 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2545 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2546 if test $ol_with_kerberos = no ; then
2547 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2549 ol_with_kerberos=yes
2550 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2551 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2552 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2557 if test $ol_enable_spasswd = yes ; then
2558 if test $ol_with_cyrus_sasl = no ; then
2559 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2561 ol_with_cyrus_sasl=yes
2564 echo "$ac_t""done" 1>&6
2591 BUILD_BDB_DYNAMIC=static
2592 BUILD_DNSSRV_DYNAMIC=static
2593 BUILD_LDAP_DYNAMIC=static
2594 BUILD_LDBM_DYNAMIC=static
2595 BUILD_META_DYNAMIC=static
2596 BUILD_PASSWD_DYNAMIC=static
2597 BUILD_PERL_DYNAMIC=static
2598 BUILD_SHELL_DYNAMIC=static
2599 BUILD_TCL_DYNAMIC=static
2600 BUILD_SQL_DYNAMIC=static
2602 SLAPD_MODULES_LDFLAGS=
2603 SLAPD_MODULES_CPPFLAGS=
2628 cat >> confdefs.h <<\EOF
2629 #define HAVE_MKVERSION 1
2637 *-*-aix*) if test -z "$CC" ; then
2638 case "$ol_with_threads" in
2639 auto | yes | posix) ol_aix_threads=yes ;;
2645 if test $ol_aix_threads = yes ; then
2646 if test -z "${CC}" ; then
2647 for ac_prog in cc_r xlc_r cc
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_word" >&5
2653 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2661 for ac_dir in $ac_dummy; do
2662 test -z "$ac_dir" && ac_dir=.
2663 if test -f $ac_dir/$ac_word; then
2664 ac_cv_prog_CC="$ac_prog"
2672 if test -n "$CC"; then
2673 echo "$ac_t""$CC" 1>&6
2675 echo "$ac_t""no" 1>&6
2678 test -n "$CC" && break
2682 if test "$CC" = cc ; then
2683 if test $ol_with_threads != auto ; then
2684 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2686 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2692 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2693 ol_with_threads=posix
2694 ol_cv_pthread_create=yes
2698 if test -z "${CC}"; then
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_word" >&5
2705 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2713 for ac_dir in $ac_dummy; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if test -f $ac_dir/$ac_word; then
2716 ac_cv_prog_CC="$ac_prog"
2724 if test -n "$CC"; then
2725 echo "$ac_t""$CC" 1>&6
2727 echo "$ac_t""no" 1>&6
2730 test -n "$CC" && break
2738 # Check whether --enable-fast-install or --disable-fast-install was given.
2739 if test "${enable_fast_install+set}" = set; then
2740 enableval="$enable_fast_install"
2741 p=${PACKAGE-default}
2742 case "$enableval" in
2743 yes) enable_fast_install=yes ;;
2744 no) enable_fast_install=no ;;
2746 enable_fast_install=no
2747 # Look at the argument we got. We use all the common list separators.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2749 for pkg in $enableval; do
2750 if test "X$pkg" = "X$p"; then
2751 enable_fast_install=yes
2758 enable_fast_install=yes
2761 # Extract the first word of "ranlib", so it can be a program name with args.
2762 set dummy ranlib; ac_word=$2
2763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_word" >&5
2765 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 if test -n "$RANLIB"; then
2769 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2773 for ac_dir in $ac_dummy; do
2774 test -z "$ac_dir" && ac_dir=.
2775 if test -f $ac_dir/$ac_word; then
2776 ac_cv_prog_RANLIB="ranlib"
2781 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2784 RANLIB="$ac_cv_prog_RANLIB"
2785 if test -n "$RANLIB"; then
2786 echo "$ac_t""$RANLIB" 1>&6
2788 echo "$ac_t""no" 1>&6
2791 # Extract the first word of "gcc", so it can be a program name with args.
2792 set dummy gcc; ac_word=$2
2793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_word" >&5
2795 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2803 for ac_dir in $ac_dummy; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f $ac_dir/$ac_word; then
2814 if test -n "$CC"; then
2815 echo "$ac_t""$CC" 1>&6
2817 echo "$ac_t""no" 1>&6
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2834 for ac_dir in $ac_dummy; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2838 ac_prog_rejected=yes
2846 if test $ac_prog_rejected = yes; then
2847 # We found a bogon in the path, so make sure we never use it.
2848 set dummy $ac_cv_prog_CC
2850 if test $# -gt 0; then
2851 # We chose a different compiler from the bogus one.
2852 # However, it has the same basename, so the bogon will be chosen
2853 # first if we set CC to just the basename; use the full file name.
2855 set dummy "$ac_dir/$ac_word" "$@"
2863 if test -n "$CC"; then
2864 echo "$ac_t""$CC" 1>&6
2866 echo "$ac_t""no" 1>&6
2869 if test -z "$CC"; then
2870 case "`uname -s`" in
2871 *win32* | *WIN32* | *CYGWIN*)
2872 # Extract the first word of "cl", so it can be a program name with args.
2873 set dummy cl; ac_word=$2
2874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_word" >&5
2876 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2884 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2895 if test -n "$CC"; then
2896 echo "$ac_t""$CC" 1>&6
2898 echo "$ac_t""no" 1>&6
2903 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2906 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2907 echo "configure:2908: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2914 cross_compiling=$ac_cv_prog_cc_cross
2916 cat > conftest.$ac_ext << EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2924 ac_cv_prog_cc_works=yes
2925 # If we can't run a trivial program, we are probably using a cross compiler.
2926 if (./conftest; exit) 2>/dev/null; then
2927 ac_cv_prog_cc_cross=no
2929 ac_cv_prog_cc_cross=yes
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_prog_cc_works=no
2938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2942 cross_compiling=$ac_cv_prog_cc_cross
2944 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2945 if test $ac_cv_prog_cc_works = no; then
2946 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2949 echo "configure:2950: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2950 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2951 cross_compiling=$ac_cv_prog_cc_cross
2953 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2954 echo "configure:2955: checking whether we are using GNU C" >&5
2955 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.c <<EOF
2963 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2970 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2972 if test $ac_cv_prog_gcc = yes; then
2978 ac_test_CFLAGS="${CFLAGS+set}"
2979 ac_save_CFLAGS="$CFLAGS"
2981 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2982 echo "configure:2983: checking whether ${CC-cc} accepts -g" >&5
2983 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 echo 'void f(){}' > conftest.c
2987 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2996 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2997 if test "$ac_test_CFLAGS" = set; then
2998 CFLAGS="$ac_save_CFLAGS"
2999 elif test $ac_cv_prog_cc_g = yes; then
3000 if test "$GCC" = yes; then
3006 if test "$GCC" = yes; then
3013 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3014 if test "${with_gnu_ld+set}" = set; then
3015 withval="$with_gnu_ld"
3016 test "$withval" = no || with_gnu_ld=yes
3022 if test "$ac_cv_prog_gcc" = yes; then
3023 # Check if gcc -print-prog-name=ld gives a path.
3024 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3025 echo "configure:3026: checking for ld used by GCC" >&5
3026 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3028 # Accept absolute paths.
3029 [\\/]* | [A-Za-z]:[\\/]*)
3030 re_direlt='/[^/][^/]*/\.\./'
3031 # Canonicalize the path of ld
3032 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3033 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3034 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3036 test -z "$LD" && LD="$ac_prog"
3039 # If it fails, then pretend we aren't using GCC.
3043 # If it is relative, then search for the first ld in PATH.
3047 elif test "$with_gnu_ld" = yes; then
3048 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3049 echo "configure:3050: checking for GNU ld" >&5
3051 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3052 echo "configure:3053: checking for non-GNU ld" >&5
3054 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test -z "$LD"; then
3058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3059 for ac_dir in $PATH; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3062 ac_cv_path_LD="$ac_dir/$ac_prog"
3063 # Check to see if the program is GNU ld. I'd rather use --version,
3064 # but apparently some GNU ld's only accept -v.
3065 # Break only if it was the GNU/non-GNU ld that we prefer.
3066 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3067 test "$with_gnu_ld" != no && break
3069 test "$with_gnu_ld" != yes && break
3075 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3080 if test -n "$LD"; then
3081 echo "$ac_t""$LD" 1>&6
3083 echo "$ac_t""no" 1>&6
3085 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3086 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3087 echo "configure:3088: checking if the linker ($LD) is GNU ld" >&5
3088 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3092 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3093 ac_cv_prog_gnu_ld=yes
3095 ac_cv_prog_gnu_ld=no
3099 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3102 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3103 echo "configure:3104: checking for BSD-compatible nm" >&5
3104 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 if test -n "$NM"; then
3108 # Let the user override the test.
3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3112 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3113 test -z "$ac_dir" && ac_dir=.
3114 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3115 # Check to see if the nm accepts a BSD-compat flag.
3116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3117 # nm: unknown option "B" ignored
3118 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3119 ac_cv_path_NM="$ac_dir/nm -B"
3121 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3122 ac_cv_path_NM="$ac_dir/nm -p"
3125 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3126 continue # so that we can try to find one that supports BSD flags
3131 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3136 echo "$ac_t""$NM" 1>&6
3138 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3139 echo "configure:3140: checking whether ln -s works" >&5
3140 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3144 if ln -s X conftestdata 2>/dev/null
3147 ac_cv_prog_LN_S="ln -s"
3152 LN_S="$ac_cv_prog_LN_S"
3153 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3154 echo "$ac_t""yes" 1>&6
3156 echo "$ac_t""no" 1>&6
3159 if test $host != $build; then
3160 ac_tool_prefix=${host_alias}-
3167 NONE) lt_target="$host" ;;
3168 *) lt_target="$target" ;;
3171 # Check for any special flags to pass to ltconfig.
3172 libtool_flags="--cache-file=$cache_file"
3173 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3174 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3175 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3176 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3177 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3178 libtool_flags="$libtool_flags --enable-dlopen"
3179 libtool_flags="$libtool_flags --enable-win32-dll"
3180 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3181 if test "${enable_libtool_lock+set}" = set; then
3182 enableval="$enable_libtool_lock"
3186 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3187 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3189 # Some flags need to be propagated to the compiler or linker for good
3191 case "$lt_target" in
3193 # Find out which ABI we are using.
3194 echo '#line 3195 "configure"' > conftest.$ac_ext
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 case "`/usr/bin/file conftest.o`" in
3212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3213 SAVE_CFLAGS="$CFLAGS"
3214 CFLAGS="$CFLAGS -belf"
3215 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether the C compiler needs -belf" >&5
3217 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3228 if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3230 lt_cv_cc_needs_belf=yes
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 lt_cv_cc_needs_belf=no
3240 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3241 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3242 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3243 CFLAGS="$SAVE_CFLAGS"
3247 *-*-cygwin* | *-*-mingw*)
3248 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3251 echo "configure:3252: checking for $ac_word" >&5
3252 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 if test -n "$DLLTOOL"; then
3256 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3260 for ac_dir in $ac_dummy; do
3261 test -z "$ac_dir" && ac_dir=.
3262 if test -f $ac_dir/$ac_word; then
3263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3270 DLLTOOL="$ac_cv_prog_DLLTOOL"
3271 if test -n "$DLLTOOL"; then
3272 echo "$ac_t""$DLLTOOL" 1>&6
3274 echo "$ac_t""no" 1>&6
3278 if test -z "$ac_cv_prog_DLLTOOL"; then
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "dlltool", so it can be a program name with args.
3281 set dummy dlltool; ac_word=$2
3282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_word" >&5
3284 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 if test -n "$DLLTOOL"; then
3288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3292 for ac_dir in $ac_dummy; do
3293 test -z "$ac_dir" && ac_dir=.
3294 if test -f $ac_dir/$ac_word; then
3295 ac_cv_prog_DLLTOOL="dlltool"
3300 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3303 DLLTOOL="$ac_cv_prog_DLLTOOL"
3304 if test -n "$DLLTOOL"; then
3305 echo "$ac_t""$DLLTOOL" 1>&6
3307 echo "$ac_t""no" 1>&6
3315 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}as; ac_word=$2
3317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3318 echo "configure:3319: checking for $ac_word" >&5
3319 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 if test -n "$AS"; then
3323 ac_cv_prog_AS="$AS" # Let the user override the test.
3325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 for ac_dir in $ac_dummy; do
3328 test -z "$ac_dir" && ac_dir=.
3329 if test -f $ac_dir/$ac_word; then
3330 ac_cv_prog_AS="${ac_tool_prefix}as"
3338 if test -n "$AS"; then
3339 echo "$ac_t""$AS" 1>&6
3341 echo "$ac_t""no" 1>&6
3345 if test -z "$ac_cv_prog_AS"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "as", so it can be a program name with args.
3348 set dummy as; ac_word=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3351 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 if test -n "$AS"; then
3355 ac_cv_prog_AS="$AS" # Let the user override the test.
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/$ac_word; then
3367 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3371 if test -n "$AS"; then
3372 echo "$ac_t""$AS" 1>&6
3374 echo "$ac_t""no" 1>&6
3382 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3385 echo "configure:3386: checking for $ac_word" >&5
3386 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 if test -n "$OBJDUMP"; then
3390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3394 for ac_dir in $ac_dummy; do
3395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3404 OBJDUMP="$ac_cv_prog_OBJDUMP"
3405 if test -n "$OBJDUMP"; then
3406 echo "$ac_t""$OBJDUMP" 1>&6
3408 echo "$ac_t""no" 1>&6
3412 if test -z "$ac_cv_prog_OBJDUMP"; then
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "objdump", so it can be a program name with args.
3415 set dummy objdump; ac_word=$2
3416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_word" >&5
3418 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 if test -n "$OBJDUMP"; then
3422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3426 for ac_dir in $ac_dummy; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 ac_cv_prog_OBJDUMP="objdump"
3434 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3437 OBJDUMP="$ac_cv_prog_OBJDUMP"
3438 if test -n "$OBJDUMP"; then
3439 echo "$ac_t""$OBJDUMP" 1>&6
3441 echo "$ac_t""no" 1>&6
3454 # Save cache, so that ltconfig can load it
3457 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3458 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3459 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3460 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3461 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3462 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3463 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3464 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3466 # Reload cache, that may have been modified by ltconfig
3469 # This can be used to rebuild libtool when needed
3470 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3472 # Always use our own libtool.
3473 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3475 # Redirect the config.log output again, so that the ltconfig log is not
3476 # clobbered by the next message.
3477 exec 5>>./config.log
3480 for ac_prog in mawk gawk nawk awk
3482 # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3485 echo "configure:3486: checking for $ac_word" >&5
3486 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 if test -n "$AWK"; then
3490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3494 for ac_dir in $ac_dummy; do
3495 test -z "$ac_dir" && ac_dir=.
3496 if test -f $ac_dir/$ac_word; then
3497 ac_cv_prog_AWK="$ac_prog"
3504 AWK="$ac_cv_prog_AWK"
3505 if test -n "$AWK"; then
3506 echo "$ac_t""$AWK" 1>&6
3508 echo "$ac_t""no" 1>&6
3511 test -n "$AWK" && break
3514 # test for ln hardlink support
3515 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3516 echo "configure:3517: checking whether ln works" >&5
3517 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 rm -f conftest.src conftest.dst
3521 echo "conftest" > conftest.src
3522 if ln conftest.src conftest.dst 2>/dev/null
3524 ol_cv_prog_LN_H="ln"
3526 ol_cv_prog_LN_H="cp"
3528 rm -f conftest.src conftest.dst
3531 LN_H="$ol_cv_prog_LN_H"
3532 if test "$ol_cv_prog_LN_H" = "ln"; then
3533 echo "$ac_t""yes" 1>&6
3535 echo "$ac_t""no" 1>&6
3538 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3539 echo "configure:3540: checking whether ln -s works" >&5
3540 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3544 if ln -s X conftestdata 2>/dev/null
3547 ac_cv_prog_LN_S="ln -s"
3552 LN_S="$ac_cv_prog_LN_S"
3553 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3554 echo "$ac_t""yes" 1>&6
3556 echo "$ac_t""no" 1>&6
3560 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3564 # Extract the first word of "sendmail", so it can be a program name with args.
3565 set dummy sendmail; ac_word=$2
3566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3567 echo "configure:3568: checking for $ac_word" >&5
3568 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3576 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3581 for ac_dir in $ac_dummy; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3589 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3593 SENDMAIL="$ac_cv_path_SENDMAIL"
3594 if test -n "$SENDMAIL"; then
3595 echo "$ac_t""$SENDMAIL" 1>&6
3597 echo "$ac_t""no" 1>&6
3600 # Extract the first word of "vi", so it can be a program name with args.
3601 set dummy vi; ac_word=$2
3602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3603 echo "configure:3604: checking for $ac_word" >&5
3604 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3609 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3612 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3616 ac_dummy="$PATH:/usr/ucb"
3617 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3625 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3629 EDITOR="$ac_cv_path_EDITOR"
3630 if test -n "$EDITOR"; then
3631 echo "$ac_t""$EDITOR" 1>&6
3633 echo "$ac_t""no" 1>&6
3636 # Extract the first word of "finger", so it can be a program name with args.
3637 set dummy finger; ac_word=$2
3638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3639 echo "configure:3640: checking for $ac_word" >&5
3640 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3648 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3652 ac_dummy="$PATH:/usr/ucb"
3653 for ac_dir in $ac_dummy; do
3654 test -z "$ac_dir" && ac_dir=.
3655 if test -f $ac_dir/$ac_word; then
3656 ac_cv_path_FINGER="$ac_dir/$ac_word"
3661 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3665 FINGER="$ac_cv_path_FINGER"
3666 if test -n "$FINGER"; then
3667 echo "$ac_t""$FINGER" 1>&6
3669 echo "$ac_t""no" 1>&6
3674 if test $ol_enable_perl != no ; then
3675 # Extract the first word of "perl", so it can be a program name with args.
3676 set dummy perl; ac_word=$2
3677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3678 echo "configure:3679: checking for $ac_word" >&5
3679 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3684 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3687 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3692 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 if test -f $ac_dir/$ac_word; then
3695 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3700 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3704 PERLBIN="$ac_cv_path_PERLBIN"
3705 if test -n "$PERLBIN"; then
3706 echo "$ac_t""$PERLBIN" 1>&6
3708 echo "$ac_t""no" 1>&6
3712 if test "no$PERLBIN" = "no" ; then
3713 if test $ol_enable_perl = yes ; then
3714 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3718 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3719 if test x"$ol_with_perl_module" = "xstatic" ; then
3720 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3722 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3728 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3729 echo "configure:3730: checking how to run the C preprocessor" >&5
3730 # On Suns, sometimes $CPP names a directory.
3731 if test -n "$CPP" && test -d "$CPP"; then
3734 if test -z "$CPP"; then
3735 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 # This must be in double quotes, not single quotes, because CPP may get
3739 # substituted into the Makefile and "${CC-cc}" will confuse make.
3741 # On the NeXT, cc -E runs the code through the compiler's parser,
3742 # not just through cpp.
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750 { (eval echo configure:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3752 if test -z "$ac_err"; then
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 CPP="${CC-cc} -E -traditional-cpp"
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3767 { (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3769 if test -z "$ac_err"; then
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 CPP="${CC-cc} -nologo -E"
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3800 ac_cv_prog_CPP="$CPP"
3802 CPP="$ac_cv_prog_CPP"
3804 ac_cv_prog_CPP="$CPP"
3806 echo "$ac_t""$CPP" 1>&6
3809 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3810 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3812 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3813 echo "configure: warning: programs compiled here do run here..." 1>&2
3814 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3816 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3817 echo "configure: warning: programs compiled here do not run here..." 1>&2
3818 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3821 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3822 echo "configure:3823: checking for AIX" >&5
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 egrep "yes" >/dev/null 2>&1; then
3834 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3835 #define _ALL_SOURCE 1
3840 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3846 echo "configure:3847: checking for POSIXized ISC" >&5
3847 if test -d /etc/conf/kconfig.d &&
3848 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3850 echo "$ac_t""yes" 1>&6
3851 ISC=yes # If later tests want to check for ISC.
3852 cat >> confdefs.h <<\EOF
3853 #define _POSIX_SOURCE 1
3856 if test "$GCC" = yes; then
3862 echo "$ac_t""no" 1>&6
3866 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3867 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3868 echo "configure:3869: checking for minix/config.h" >&5
3869 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <minix/config.h>
3877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3878 { (eval echo configure:3879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3880 if test -z "$ac_err"; then
3882 eval "ac_cv_header_$ac_safe=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_header_$ac_safe=no"
3892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3896 echo "$ac_t""no" 1>&6
3900 if test "$MINIX" = yes; then
3901 cat >> confdefs.h <<\EOF
3902 #define _POSIX_SOURCE 1
3905 cat >> confdefs.h <<\EOF
3906 #define _POSIX_1_SOURCE 2
3909 cat >> confdefs.h <<\EOF
3916 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3917 echo "configure:3918: checking for Cygwin environment" >&5
3918 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3928 #define __CYGWIN__ __CYGWIN32__
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3945 echo "$ac_t""$ac_cv_cygwin" 1>&6
3947 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3948 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3949 echo "configure:3950: checking for mingw32 environment" >&5
3950 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3973 echo "$ac_t""$ac_cv_mingw32" 1>&6
3975 test "$ac_cv_mingw32" = yes && MINGW32=yes
3976 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3977 echo "configure:3978: checking for EMX OS/2 environment" >&5
3978 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3989 if { (eval echo configure:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
4001 echo "$ac_t""$ac_cv_emxos2" 1>&6
4003 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4007 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4008 echo "configure:4009: checking for executable suffix" >&5
4009 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4016 echo 'int main () { return 0; }' > conftest.$ac_ext
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4019 for file in conftest.*; do
4021 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4022 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4026 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4029 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4034 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4035 echo "$ac_t""${ac_cv_exeext}" 1>&6
4038 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4039 echo "configure:4040: checking for object suffix" >&5
4040 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4044 echo 'int i = 1;' > conftest.$ac_ext
4045 if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 for ac_file in conftest.*; do
4049 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4053 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4058 echo "$ac_t""$ac_cv_objext" 1>&6
4059 OBJEXT=$ac_cv_objext
4060 ac_objext=$ac_cv_objext
4063 cat >> confdefs.h <<EOF
4064 #define EXEEXT "${EXEEXT}"
4068 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4069 echo "configure:4070: checking for be_app in -lbe" >&5
4070 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 ac_save_LIBS="$LIBS"
4075 LIBS="-lbe -lroot -lnet $LIBS"
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_lib_$ac_lib_var=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_lib_$ac_lib_var=no"
4098 LIBS="$ac_save_LIBS"
4101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 LIBS="$LIBS -lbe -lroot -lnet"
4105 echo "$ac_t""no" 1>&6
4113 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4114 echo "configure:4115: checking for ${CC-cc} option to accept ANSI C" >&5
4115 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4118 am_cv_prog_cc_stdc=no
4120 # Don't try gcc -ansi; that turns off useful extensions and
4121 # breaks some systems' header files.
4122 # AIX -qlanglvl=ansi
4123 # Ultrix and OSF/1 -std1
4124 # HP-UX 10.20 and later -Ae
4125 # HP-UX older versions -Aa -D_HPUX_SOURCE
4126 # SVR4 -Xc -D__EXTENSIONS__
4127 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 #include <sys/types.h>
4136 #include <sys/stat.h>
4137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4138 struct buf { int x; };
4139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4140 static char *e (p, i)
4146 static char *f (char * (*g) (char **, int), char **p, ...)
4151 s = g (p, va_arg (v,int));
4155 int test (int i, double x);
4156 struct s1 {int (*f) (int a);};
4157 struct s2 {int (*f) (double a);};
4158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4168 if { (eval echo configure:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4170 am_cv_prog_cc_stdc="$ac_arg"; break
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4181 if test -z "$am_cv_prog_cc_stdc"; then
4182 echo "$ac_t""none needed" 1>&6
4184 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4186 case "x$am_cv_prog_cc_stdc" in
4188 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4191 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4192 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4195 # test for make depend flag
4198 if test -z "${MKDEP}"; then
4200 if test -z "${MKDEP_FLAGS}"; then
4201 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4202 echo "configure:4203: checking for ${OL_MKDEP} depend flag" >&5
4203 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4208 for flag in "-M" "-xM"; do
4209 cat > conftest.c <<EOF
4212 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4213 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4215 if test ! -f conftest."${ac_object}" ; then
4217 OL_MKDEP_FLAGS="$flag"
4226 echo "$ac_t""$ol_cv_mkdep" 1>&6
4229 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4234 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4239 if test "${ol_cv_mkdep}" = no ; then
4240 # this will soon become an error
4241 echo "configure: warning: do not know how to generate dependencies" 1>&2
4244 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4245 echo "configure:4246: checking for afopen in -ls" >&5
4246 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 ac_save_LIBS="$LIBS"
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4264 if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4266 eval "ac_cv_lib_$ac_lib_var=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 eval "ac_cv_lib_$ac_lib_var=no"
4274 LIBS="$ac_save_LIBS"
4277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4281 cat >> confdefs.h <<\EOF
4282 #define HAVE_AIX_SECURITY 1
4287 echo "$ac_t""no" 1>&6
4293 if test $ol_enable_modules != no ; then
4294 for ac_hdr in ltdl.h
4296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4298 echo "configure:4299: checking for $ac_hdr" >&5
4299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4308 { (eval echo configure:4309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4310 if test -z "$ac_err"; then
4312 eval "ac_cv_header_$ac_safe=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_header_$ac_safe=no"
4322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4323 echo "$ac_t""yes" 1>&6
4324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4325 cat >> confdefs.h <<EOF
4326 #define $ac_tr_hdr 1
4330 echo "$ac_t""no" 1>&6
4335 if test $ac_cv_header_ltdl_h = no ; then
4336 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4339 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4340 echo "configure:4341: checking for lt_dlinit in -lltdl" >&5
4341 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4342 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 ac_save_LIBS="$LIBS"
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361 eval "ac_cv_lib_$ac_lib_var=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 eval "ac_cv_lib_$ac_lib_var=no"
4369 LIBS="$ac_save_LIBS"
4372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4376 cat >> confdefs.h <<\EOF
4377 #define HAVE_LIBLTDL 1
4382 echo "$ac_t""no" 1>&6
4386 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4387 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4391 ol_with_bdb_module=static
4392 ol_with_dnssrv_module=static
4393 ol_with_ldap_module=static
4394 ol_with_ldbm_module=static
4395 ol_with_meta_module=static
4396 ol_with_passwd_module=static
4397 ol_with_perl_module=static
4398 ol_with_shell_module=static
4399 ol_with_tcl_module=static
4400 ol_with_sql_module=static
4404 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4405 echo "configure:4406: checking for EBCDIC" >&5
4406 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4415 #include <__ASCII__/generate_error.h>
4419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4420 { (eval echo configure:4421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4422 if test -z "$ac_err"; then
4424 ol_cv_cpp_ebcdic=yes
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4435 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4436 if test $ol_cv_cpp_ebcdic = yes ; then
4437 cat >> confdefs.h <<\EOF
4438 #define HAVE_EBCDIC 1
4443 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4444 echo "configure:4445: checking for ANSI C header files" >&5
4445 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4461 ol_cv_header_stdc=yes
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 ol_cv_header_stdc=no
4471 if test $ol_cv_header_stdc = yes; then
4472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 egrep "memchr" >/dev/null 2>&1; then
4483 ol_cv_header_stdc=no
4489 if test $ol_cv_header_stdc = yes; then
4490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 egrep "free" >/dev/null 2>&1; then
4501 ol_cv_header_stdc=no
4507 if test $ol_cv_header_stdc = yes; then
4508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4509 if test "$cross_compiling" = yes; then
4512 cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4521 || ('j' <= (c) && (c) <= 'r') \
4522 || ('s' <= (c) && (c) <= 'z'))
4523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4526 int main () { int i; for (i = 0; i < 256; i++)
4527 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 ol_cv_header_stdc=no
4546 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4547 if test $ol_cv_header_stdc = yes; then
4548 cat >> confdefs.h <<\EOF
4549 #define STDC_HEADERS 1
4553 ac_cv_header_stdc=disable
4556 if test $ol_cv_header_stdc != yes; then
4557 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4561 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_hdr that defines DIR" >&5
4566 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <sys/types.h>
4578 if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4580 eval "ac_cv_header_dirent_$ac_safe=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_header_dirent_$ac_safe=no"
4589 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4592 cat >> confdefs.h <<EOF
4593 #define $ac_tr_hdr 1
4595 ac_header_dirent=$ac_hdr; break
4597 echo "$ac_t""no" 1>&6
4600 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4601 if test $ac_header_dirent = dirent.h; then
4602 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4603 echo "configure:4604: checking for opendir in -ldir" >&5
4604 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 ac_save_LIBS="$LIBS"
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 eval "ac_cv_lib_$ac_lib_var=no"
4632 LIBS="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4639 echo "$ac_t""no" 1>&6
4643 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4644 echo "configure:4645: checking for opendir in -lx" >&5
4645 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 ac_save_LIBS="$LIBS"
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 eval "ac_cv_lib_$ac_lib_var=yes"
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4670 eval "ac_cv_lib_$ac_lib_var=no"
4673 LIBS="$ac_save_LIBS"
4676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6
4680 echo "$ac_t""no" 1>&6
4685 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4686 echo "configure:4687: checking for sys/wait.h that is POSIX.1 compatible" >&5
4687 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 #include <sys/types.h>
4694 #include <sys/wait.h>
4696 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4699 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4707 if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 ac_cv_header_sys_wait_h=yes
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 ac_cv_header_sys_wait_h=no
4719 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4720 if test $ac_cv_header_sys_wait_h = yes; then
4721 cat >> confdefs.h <<\EOF
4722 #define HAVE_SYS_WAIT_H 1
4727 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4728 echo "configure:4729: checking POSIX termios" >&5
4729 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 #include <sys/types.h>
4737 #include <termios.h>
4739 /* SunOS 4.0.3 has termios.h but not the library calls. */
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 am_cv_sys_posix_termios=yes
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 am_cv_sys_posix_termios=no
4755 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4758 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4759 echo "configure:4760: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4760 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4765 gwinsz_in_termios_h=no
4766 if test $am_cv_sys_posix_termios = yes; then
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <sys/types.h>
4771 # include <termios.h>
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 egrep "yes" >/dev/null 2>&1; then
4780 gwinsz_in_termios_h=yes
4786 if test $gwinsz_in_termios_h = no; then
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <sys/types.h>
4791 # include <sys/ioctl.h>
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 egrep "yes" >/dev/null 2>&1; then
4800 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4808 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4809 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4810 cat >> confdefs.h <<\EOF
4811 #define GWINSZ_IN_SYS_IOCTL 1
4816 if test $am_cv_sys_posix_termios = yes ; then
4817 cat >> confdefs.h <<\EOF
4818 #define HAVE_POSIX_TERMIOS 1
4869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4871 echo "configure:4872: checking for $ac_hdr" >&5
4872 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4881 { (eval echo configure:4882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4883 if test -z "$ac_err"; then
4885 eval "ac_cv_header_$ac_safe=yes"
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 eval "ac_cv_header_$ac_safe=no"
4895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4898 cat >> confdefs.h <<EOF
4899 #define $ac_tr_hdr 1
4903 echo "$ac_t""no" 1>&6
4910 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4911 echo "configure:4912: checking for dlopen" >&5
4912 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* System header to define __stub macros and hopefully few prototypes,
4919 which can conflict with char dlopen(); below. */
4921 /* Override any gcc2 internal prototype to avoid an error. */
4922 /* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */
4929 /* The GNU C library defines this for functions which it implements
4930 to always fail with ENOSYS. Some functions are actually named
4931 something starting with __ and the normal name is an alias. */
4932 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4942 eval "ac_cv_func_dlopen=yes"
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4947 eval "ac_cv_func_dlopen=no"
4952 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4953 echo "$ac_t""yes" 1>&6
4956 echo "$ac_t""no" 1>&6
4957 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4958 echo "configure:4959: checking for dlopen in -ldl" >&5
4959 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 ac_save_LIBS="$LIBS"
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4994 cat >> confdefs.h <<EOF
4995 #define $ac_tr_lib 1
5001 echo "$ac_t""no" 1>&6
5007 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5008 echo "configure:5009: checking for sigset in -lV3" >&5
5009 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5013 ac_save_LIBS="$LIBS"
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_lib_$ac_lib_var=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_lib_$ac_lib_var=no"
5037 LIBS="$ac_save_LIBS"
5040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5042 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5044 cat >> confdefs.h <<EOF
5045 #define $ac_tr_lib 1
5051 echo "$ac_t""no" 1>&6
5055 if test $ac_cv_header_winsock_h = yes; then
5056 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5057 echo "configure:5058: checking for winsock" >&5
5058 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 #include <winsock.h>
5068 select(0,NULL,NULL,NULL,NULL);
5070 gethostname(NULL,0);
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5086 echo "$ac_t""$ol_cv_winsock" 1>&6
5088 if test $ol_cv_winsock = yes ; then
5089 cat >> confdefs.h <<\EOF
5090 #define HAVE_WINSOCK 1
5093 ac_cv_func_socket=yes
5094 ac_cv_func_select=yes
5095 ac_cv_func_closesocket=yes
5096 ac_cv_func_gethostname=yes
5101 echo $ac_n "checking for socket""... $ac_c" 1>&6
5102 echo "configure:5103: checking for socket" >&5
5103 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 /* System header to define __stub macros and hopefully few prototypes,
5110 which can conflict with char socket(); below. */
5112 /* Override any gcc2 internal prototype to avoid an error. */
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5120 /* The GNU C library defines this for functions which it implements
5121 to always fail with ENOSYS. Some functions are actually named
5122 something starting with __ and the normal name is an alias. */
5123 #if defined (__stub_socket) || defined (__stub___socket)
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 eval "ac_cv_func_socket=yes"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 eval "ac_cv_func_socket=no"
5143 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5147 echo "$ac_t""no" 1>&6
5149 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5150 echo "configure:5151: checking for main in -lsocket" >&5
5151 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 ac_save_LIBS="$LIBS"
5156 LIBS="-lsocket $LIBS"
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5167 eval "ac_cv_lib_$ac_lib_var=yes"
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 eval "ac_cv_lib_$ac_lib_var=no"
5175 LIBS="$ac_save_LIBS"
5178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5179 echo "$ac_t""yes" 1>&6
5180 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5182 cat >> confdefs.h <<EOF
5183 #define $ac_tr_lib 1
5186 LIBS="-lsocket $LIBS"
5189 echo "$ac_t""no" 1>&6
5192 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5193 echo "configure:5194: checking for main in -lnet" >&5
5194 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5195 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 ac_save_LIBS="$LIBS"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 eval "ac_cv_lib_$ac_lib_var=yes"
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 eval "ac_cv_lib_$ac_lib_var=no"
5218 LIBS="$ac_save_LIBS"
5221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5222 echo "$ac_t""yes" 1>&6
5223 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5225 cat >> confdefs.h <<EOF
5226 #define $ac_tr_lib 1
5232 echo "$ac_t""no" 1>&6
5235 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5236 echo "configure:5237: checking for main in -lnsl_s" >&5
5237 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5238 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 ac_save_LIBS="$LIBS"
5242 LIBS="-lnsl_s $LIBS"
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5253 eval "ac_cv_lib_$ac_lib_var=yes"
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5258 eval "ac_cv_lib_$ac_lib_var=no"
5261 LIBS="$ac_save_LIBS"
5264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5268 cat >> confdefs.h <<EOF
5269 #define $ac_tr_lib 1
5272 LIBS="-lnsl_s $LIBS"
5275 echo "$ac_t""no" 1>&6
5278 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5279 echo "configure:5280: checking for main in -lnsl" >&5
5280 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5281 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 ac_save_LIBS="$LIBS"
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 eval "ac_cv_lib_$ac_lib_var=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_lib_$ac_lib_var=no"
5304 LIBS="$ac_save_LIBS"
5307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5309 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5311 cat >> confdefs.h <<EOF
5312 #define $ac_tr_lib 1
5318 echo "$ac_t""no" 1>&6
5321 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5322 echo "configure:5323: checking for socket in -linet" >&5
5323 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 ac_save_LIBS="$LIBS"
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5332 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 eval "ac_cv_lib_$ac_lib_var=yes"
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 eval "ac_cv_lib_$ac_lib_var=no"
5351 LIBS="$ac_save_LIBS"
5354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5356 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_lib 1
5365 echo "$ac_t""no" 1>&6
5368 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5369 echo "configure:5370: checking for main in -lgen" >&5
5370 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 ac_save_LIBS="$LIBS"
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 eval "ac_cv_lib_$ac_lib_var=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_lib_$ac_lib_var=no"
5394 LIBS="$ac_save_LIBS"
5397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5398 echo "$ac_t""yes" 1>&6
5399 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5401 cat >> confdefs.h <<EOF
5402 #define $ac_tr_lib 1
5408 echo "$ac_t""no" 1>&6
5415 echo $ac_n "checking for select""... $ac_c" 1>&6
5416 echo "configure:5417: checking for select" >&5
5417 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5423 /* System header to define __stub macros and hopefully few prototypes,
5424 which can conflict with char select(); below. */
5426 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_select) || defined (__stub___select)
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_func_select=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_func_select=no"
5457 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5461 echo "$ac_t""no" 1>&6
5462 { echo "configure: error: select() required." 1>&2; exit 1; }
5466 if test "${ac_cv_header_winsock_h}" != yes; then
5467 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5468 echo "configure:5469: checking types of arguments for select()" >&5
5469 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5479 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5480 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 #ifdef HAVE_SYS_TYPES_H
5485 #include <sys/types.h>
5487 #ifdef HAVE_SYS_TIME_H
5488 #include <sys/time.h>
5490 #ifdef HAVE_SYS_SELECT_H
5491 #include <sys/select.h>
5493 #ifdef HAVE_SYS_SOCKET_H
5494 #include <sys/socket.h>
5496 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);
5501 if { (eval echo configure:5502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5503 ac_not_found=no ; break 3
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5520 if test "$ac_not_found" = yes; then
5521 ac_cv_func_select_arg1=int
5522 ac_cv_func_select_arg234='int *'
5523 ac_cv_func_select_arg5='struct timeval *'
5525 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5526 cat >> confdefs.h <<EOF
5527 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5530 cat >> confdefs.h <<EOF
5531 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5534 cat >> confdefs.h <<EOF
5535 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5542 for ac_hdr in regex.h
5544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5546 echo "configure:5547: checking for $ac_hdr" >&5
5547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5558 if test -z "$ac_err"; then
5560 eval "ac_cv_header_$ac_safe=yes"
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5566 eval "ac_cv_header_$ac_safe=no"
5570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5573 cat >> confdefs.h <<EOF
5574 #define $ac_tr_hdr 1
5578 echo "$ac_t""no" 1>&6
5582 if test "$ac_cv_header_regex_h" != yes ; then
5583 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5585 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5586 echo "configure:5587: checking for regfree" >&5
5587 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char regfree(); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined (__stub_regfree) || defined (__stub___regfree)
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 eval "ac_cv_func_regfree=yes"
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 eval "ac_cv_func_regfree=no"
5627 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5631 echo "$ac_t""no" 1>&6
5632 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5637 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5638 echo "configure:5639: checking for compatible POSIX regex" >&5
5639 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5643 if test "$cross_compiling" = yes; then
5644 ol_cv_c_posix_regex=cross
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5650 #include <sys/types.h>
5652 static char *pattern, *string;
5660 if(regcomp(&re, pattern, 0)) {
5664 string = "ALL MATCH";
5666 rc = regexec(&re, string, 0, (void*)0, 0);
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5675 ol_cv_c_posix_regex=yes
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 ol_cv_c_posix_regex=no
5687 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5689 if test "$ol_cv_c_posix_regex" = no ; then
5690 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5694 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5695 echo "configure:5696: checking for res_query" >&5
5696 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5702 /* System header to define __stub macros and hopefully few prototypes,
5703 which can conflict with char res_query(); below. */
5705 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_res_query) || defined (__stub___res_query)
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5726 eval "ac_cv_func_res_query=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5731 eval "ac_cv_func_res_query=no"
5736 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5740 echo "$ac_t""no" 1>&6
5743 if test $ac_cv_func_res_query = no ; then
5744 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5745 echo "configure:5746: checking for res_query in -lbind" >&5
5746 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5747 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 ac_save_LIBS="$LIBS"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 eval "ac_cv_lib_$ac_lib_var=yes"
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 eval "ac_cv_lib_$ac_lib_var=no"
5774 LIBS="$ac_save_LIBS"
5777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5781 cat >> confdefs.h <<EOF
5782 #define $ac_tr_lib 1
5788 echo "$ac_t""no" 1>&6
5791 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5794 if test $ac_cv_func_res_query = no ; then
5795 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5796 echo "configure:5797: checking for __res_query in -lbind" >&5
5797 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 ac_save_LIBS="$LIBS"
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 /* Override any gcc2 internal prototype to avoid an error. */
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 eval "ac_cv_lib_$ac_lib_var=yes"
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 eval "ac_cv_lib_$ac_lib_var=no"
5825 LIBS="$ac_save_LIBS"
5828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5830 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_lib 1
5839 echo "$ac_t""no" 1>&6
5842 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5845 if test $ac_cv_func_res_query = no ; then
5846 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5847 echo "configure:5848: checking for res_query in -lresolv" >&5
5848 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5849 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 ac_save_LIBS="$LIBS"
5853 LIBS="-lresolv $LIBS"
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5868 eval "ac_cv_lib_$ac_lib_var=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_lib_$ac_lib_var=no"
5876 LIBS="$ac_save_LIBS"
5879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5881 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5883 cat >> confdefs.h <<EOF
5884 #define $ac_tr_lib 1
5887 LIBS="-lresolv $LIBS"
5890 echo "$ac_t""no" 1>&6
5893 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5896 if test "$ac_cv_func_res_query" = yes ; then
5897 cat >> confdefs.h <<\EOF
5898 #define HAVE_RES_QUERY 1
5902 if test $ol_enable_dnssrv != no ; then
5907 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5908 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5911 for ac_func in getaddrinfo inet_ntop
5913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5914 echo "configure:5915: checking for $ac_func" >&5
5915 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 /* System header to define __stub macros and hopefully few prototypes,
5922 which can conflict with char $ac_func(); below. */
5924 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5932 /* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_func_$ac_func=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_func_$ac_func=no"
5955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5956 echo "$ac_t""yes" 1>&6
5957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5958 cat >> confdefs.h <<EOF
5959 #define $ac_tr_func 1
5963 echo "$ac_t""no" 1>&6
5969 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5970 if test $ol_enable_ipv6 = yes ; then
5971 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5974 for ac_func in gai_strerror
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func(); below. */
5987 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5995 /* The GNU C library defines this for functions which it implements
5996 to always fail with ENOSYS. Some functions are actually named
5997 something starting with __ and the normal name is an alias. */
5998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6008 eval "ac_cv_func_$ac_func=yes"
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 eval "ac_cv_func_$ac_func=no"
6018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6021 cat >> confdefs.h <<EOF
6022 #define $ac_tr_func 1
6026 echo "$ac_t""no" 1>&6
6031 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6032 echo "configure:6033: checking INET6_ADDRSTRLEN" >&5
6033 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6041 # include <netinet/in.h>
6042 # ifdef INET6_ADDRSTRLEN
6043 __has_inet6_addrstrlen__;
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6050 ol_cv_inet6_addrstrlen=yes
6053 ol_cv_inet6_addrstrlen=no
6059 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6061 if test $ol_cv_inet6_addrstrlen = yes ; then
6063 elif test $ol_enable_ipv6 = yes ; then
6064 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6068 if test $ol_enable_local != no ; then
6069 for ac_hdr in sys/un.h
6071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6073 echo "configure:6074: checking for $ac_hdr" >&5
6074 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6075 echo $ac_n "(cached) $ac_c" 1>&6
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6083 { (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6085 if test -z "$ac_err"; then
6087 eval "ac_cv_header_$ac_safe=yes"
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6093 eval "ac_cv_header_$ac_safe=no"
6097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6098 echo "$ac_t""yes" 1>&6
6099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6100 cat >> confdefs.h <<EOF
6101 #define $ac_tr_hdr 1
6105 echo "$ac_t""no" 1>&6
6110 if test $ol_enable_local = auto ; then
6111 ol_enable_local=$ac_cv_header_sys_un_h
6112 elif test $ac_cv_header_sys_un_h = no ; then
6113 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6122 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6123 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6124 -o $ol_with_kerberos = k425 ; then
6126 for ac_hdr in krb5.h
6128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_hdr" >&5
6131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6140 { (eval echo configure:6141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6142 if test -z "$ac_err"; then
6144 eval "ac_cv_header_$ac_safe=yes"
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_header_$ac_safe=no"
6154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_hdr 1
6162 echo "$ac_t""no" 1>&6
6167 if test $ac_cv_header_krb5_h = yes ; then
6168 for ac_hdr in heim_err.h
6170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6172 echo "configure:6173: checking for $ac_hdr" >&5
6173 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6182 { (eval echo configure:6183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6184 if test -z "$ac_err"; then
6186 eval "ac_cv_header_$ac_safe=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 eval "ac_cv_header_$ac_safe=no"
6196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6197 echo "$ac_t""yes" 1>&6
6198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6199 cat >> confdefs.h <<EOF
6200 #define $ac_tr_hdr 1
6204 echo "$ac_t""no" 1>&6
6208 if test $ac_cv_header_heim_err_h = yes ; then
6214 if test $krb5_impl = mit; then
6215 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6216 echo "configure:6217: checking for main in -lkrb5" >&5
6217 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 ac_save_LIBS="$LIBS"
6222 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_lib_$ac_lib_var=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_lib_$ac_lib_var=no"
6241 LIBS="$ac_save_LIBS"
6244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6247 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6249 echo "$ac_t""no" 1>&6
6254 elif test $krb5_impl = heimdal; then
6255 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6256 echo "configure:6257: checking for main in -lkrb5" >&5
6257 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 ac_save_LIBS="$LIBS"
6262 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6263 cat > conftest.$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 eval "ac_cv_lib_$ac_lib_var=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_lib_$ac_lib_var=no"
6281 LIBS="$ac_save_LIBS"
6284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6287 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6289 echo "$ac_t""no" 1>&6
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_HEIMDAL_KERBEROS 1
6300 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6303 if test $have_krb5 = yes ; then
6306 cat >> confdefs.h <<\EOF
6311 if test $ol_enable_kpasswd != no ; then
6312 ol_link_kpasswd=yes;
6315 if test $ol_with_kerberos = k5only ; then
6316 ol_with_kerberos=found
6319 elif test $ol_with_kerberos != auto ; then
6320 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6326 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6327 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6329 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6333 echo "configure:6334: checking for $ac_hdr" >&5
6334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6343 { (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6345 if test -z "$ac_err"; then
6347 eval "ac_cv_header_$ac_safe=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_header_$ac_safe=no"
6357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_hdr 1
6365 echo "$ac_t""no" 1>&6
6370 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6371 if test $krb5_impl = mit; then
6372 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6373 echo "configure:6374: checking for main in -lkrb4" >&5
6374 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6378 ac_save_LIBS="$LIBS"
6379 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6390 eval "ac_cv_lib_$ac_lib_var=yes"
6392 echo "configure: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6395 eval "ac_cv_lib_$ac_lib_var=no"
6398 LIBS="$ac_save_LIBS"
6401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6402 echo "$ac_t""yes" 1>&6
6404 KRB4_LIBS="-lkrb4 -ldes425"
6406 echo "$ac_t""no" 1>&6
6411 elif test $krb5_impl = heimdal; then
6412 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6413 echo "configure:6414: checking for main in -lkrb4" >&5
6414 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6415 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6416 echo $ac_n "(cached) $ac_c" 1>&6
6418 ac_save_LIBS="$LIBS"
6419 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 eval "ac_cv_lib_$ac_lib_var=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_lib_$ac_lib_var=no"
6438 LIBS="$ac_save_LIBS"
6441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6446 echo "$ac_t""no" 1>&6
6453 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6456 if test $have_k425 = yes ; then
6457 ol_with_kerberos=found
6460 cat >> confdefs.h <<\EOF
6461 #define HAVE_KRB425 1
6464 cat >> confdefs.h <<\EOF
6469 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6470 echo "configure:6471: checking for des_debug in Kerberos libraries" >&5
6471 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6476 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6481 #include <kerberosIV/krb.h>
6482 #include <kerberosIV/des.h>
6483 extern int des_debug;
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 ol_cv_var_des_debug=yes
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 ol_cv_var_des_debug=no
6505 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6507 if test $ol_cv_var_des_debug = yes ; then
6508 cat >> confdefs.h <<\EOF
6509 #define HAVE_DES_DEBUG 1
6519 if test $ol_link_krb5 = yes ; then
6520 ol_with_kerberos=found
6523 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6524 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6526 for ac_hdr in krb.h des.h krb-archaeology.h
6528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_hdr" >&5
6531 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6540 { (eval echo configure:6541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6542 if test -z "$ac_err"; then
6544 eval "ac_cv_header_$ac_safe=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 eval "ac_cv_header_$ac_safe=no"
6554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6557 cat >> confdefs.h <<EOF
6558 #define $ac_tr_hdr 1
6562 echo "$ac_t""no" 1>&6
6567 if test $ac_cv_header_krb_h = yes ; then
6568 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6569 echo "configure:6570: checking for main in -lkrb" >&5
6570 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_save_LIBS="$LIBS"
6575 LIBS="-lkrb -ldes $LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586 eval "ac_cv_lib_$ac_lib_var=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6591 eval "ac_cv_lib_$ac_lib_var=no"
6594 LIBS="$ac_save_LIBS"
6597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6601 echo "$ac_t""no" 1>&6
6606 if test $have_k4 = yes ; then
6607 ol_with_kerberos=found
6610 cat >> confdefs.h <<\EOF
6615 KRB4_LIBS="-lkrb -ldes"
6617 if test $ac_cv_header_krb_archaeology_h = yes ; then
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_KTH_KERBEROS 1
6627 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6631 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6634 elif test $ol_enable_kbind = yes ; then
6635 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6638 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6639 cat >> confdefs.h <<\EOF
6640 #define HAVE_KERBEROS 1
6644 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6645 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6649 if test $ol_with_tls != no ; then
6650 for ac_hdr in openssl/ssl.h ssl.h
6652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_hdr" >&5
6655 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6664 { (eval echo configure:6665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6666 if test -z "$ac_err"; then
6668 eval "ac_cv_header_$ac_safe=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_header_$ac_safe=no"
6678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6681 cat >> confdefs.h <<EOF
6682 #define $ac_tr_hdr 1
6686 echo "$ac_t""no" 1>&6
6691 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6692 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6693 echo "configure:6694: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6694 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6698 ac_save_LIBS="$LIBS"
6699 LIBS="-lssl -lcrypto $LIBS"
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6706 char SSLeay_add_ssl_algorithms();
6709 SSLeay_add_ssl_algorithms()
6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 eval "ac_cv_lib_$ac_lib_var=yes"
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6719 eval "ac_cv_lib_$ac_lib_var=no"
6722 LIBS="$ac_save_LIBS"
6725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6726 echo "$ac_t""yes" 1>&6
6730 echo "$ac_t""no" 1>&6
6735 if test $have_ssleay = no ; then
6736 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6737 echo "configure:6738: checking for SSL_library_init in -lssl" >&5
6738 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 ac_save_LIBS="$LIBS"
6743 LIBS="-lssl -lcrypto $LIBS"
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char SSL_library_init();
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_lib_$ac_lib_var=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_lib_$ac_lib_var=no"
6766 LIBS="$ac_save_LIBS"
6769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6774 echo "$ac_t""no" 1>&6
6780 if test $have_ssleay = no ; then
6781 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6782 echo "configure:6783: checking for ssl3_accept in -lssl" >&5
6783 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6784 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 ac_save_LIBS="$LIBS"
6788 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6803 eval "ac_cv_lib_$ac_lib_var=yes"
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6808 eval "ac_cv_lib_$ac_lib_var=no"
6811 LIBS="$ac_save_LIBS"
6814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6819 echo "$ac_t""no" 1>&6
6825 if test $have_ssleay = yes ; then
6829 cat >> confdefs.h <<\EOF
6830 #define HAVE_SSLEAY 1
6834 if test $need_rsaref = yes; then
6835 cat >> confdefs.h <<\EOF
6836 #define HAVE_RSAREF 1
6840 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6842 TLS_LIBS="-lssl -lcrypto"
6848 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6851 if test $ol_link_tls = yes ; then
6852 cat >> confdefs.h <<\EOF
6857 elif test $ol_with_tls = auto ; then
6858 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6859 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6861 elif test $ol_with_tls != no ; then
6862 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6865 if test $ol_enable_lmpasswd != no; then
6866 if test $ol_link_tls != yes ; then
6867 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6870 cat >> confdefs.h <<\EOF
6871 #define SLAPD_LMHASH 1
6878 gethostbyname_r gethostbyaddr_r \
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6900 /* The GNU C library defines this for functions which it implements
6901 to always fail with ENOSYS. Some functions are actually named
6902 something starting with __ and the normal name is an alias. */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6913 eval "ac_cv_func_$ac_func=yes"
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 eval "ac_cv_func_$ac_func=no"
6923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6926 cat >> confdefs.h <<EOF
6927 #define $ac_tr_func 1
6931 echo "$ac_t""no" 1>&6
6936 if test "$ac_cv_func_ctime_r" = no ; then
6937 ol_cv_func_ctime_r_nargs=0
6939 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6940 echo "configure:6941: checking number of arguments of ctime_r" >&5
6941 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6949 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6952 if { (eval echo configure:6953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6954 ol_cv_func_ctime_r_nargs3=yes
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 ol_cv_func_ctime_r_nargs3=no
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6968 time_t ti; char *buffer; ctime_r(&ti,buffer);
6971 if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6973 ol_cv_func_ctime_r_nargs2=yes
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 ol_cv_func_ctime_r_nargs2=no
6982 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6983 $ol_cv_func_ctime_r_nargs2 = no ; then
6985 ol_cv_func_ctime_r_nargs=3
6987 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6988 $ol_cv_func_ctime_r_nargs2 = yes ; then
6990 ol_cv_func_ctime_r_nargs=2
6993 ol_cv_func_ctime_r_nargs=0
6998 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7000 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7001 cat >> confdefs.h <<EOF
7002 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7009 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7010 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7011 echo "configure:7012: checking number of arguments of gethostbyname_r" >&5
7012 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 #include <sys/types.h>
7019 #include <sys/socket.h>
7020 #include <netinet/in.h>
7022 #define BUFSIZE (sizeof(struct hostent)+10)
7024 struct hostent hent; char buffer[BUFSIZE];
7025 int bufsize=BUFSIZE;int h_errno;
7026 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7027 buffer, bufsize, &h_errno);
7030 if { (eval echo configure:7031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7032 ol_cv_func_gethostbyname_r_nargs5=yes
7034 echo "configure: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7037 ol_cv_func_gethostbyname_r_nargs5=no
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 #include <sys/types.h>
7045 #include <sys/socket.h>
7046 #include <netinet/in.h>
7048 #define BUFSIZE (sizeof(struct hostent)+10)
7050 struct hostent hent;struct hostent *rhent;
7051 char buffer[BUFSIZE];
7052 int bufsize=BUFSIZE;int h_errno;
7053 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7057 if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7059 ol_cv_func_gethostbyname_r_nargs6=yes
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 ol_cv_func_gethostbyname_r_nargs6=no
7068 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7069 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7071 ol_cv_func_gethostbyname_r_nargs=5
7073 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7074 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7076 ol_cv_func_gethostbyname_r_nargs=6
7079 ol_cv_func_gethostbyname_r_nargs=0
7084 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7085 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7086 cat >> confdefs.h <<EOF
7087 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7093 ol_cv_func_gethostbyname_r_nargs=0
7096 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7097 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7098 echo "configure:7099: checking number of arguments of gethostbyaddr_r" >&5
7099 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 #include <sys/types.h>
7106 #include <sys/socket.h>
7107 #include <netinet/in.h>
7109 #define BUFSIZE (sizeof(struct hostent)+10)
7111 struct hostent hent; char buffer[BUFSIZE];
7113 size_t alen=sizeof(struct in_addr);
7114 int bufsize=BUFSIZE;int h_errno;
7115 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7116 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7119 if { (eval echo configure:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7121 ol_cv_func_gethostbyaddr_r_nargs7=yes
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7126 ol_cv_func_gethostbyaddr_r_nargs7=no
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 #include <sys/types.h>
7134 #include <sys/socket.h>
7135 #include <netinet/in.h>
7137 #define BUFSIZE (sizeof(struct hostent)+10)
7139 struct hostent hent;
7140 struct hostent *rhent; char buffer[BUFSIZE];
7142 size_t alen=sizeof(struct in_addr);
7143 int bufsize=BUFSIZE;int h_errno;
7144 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7145 alen, AF_INET, &hent, buffer, bufsize,
7149 if { (eval echo configure:7150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7151 ol_cv_func_gethostbyaddr_r_nargs8=yes
7153 echo "configure: failed program was:" >&5
7154 cat conftest.$ac_ext >&5
7156 ol_cv_func_gethostbyaddr_r_nargs8=no
7160 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7161 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7163 ol_cv_func_gethostbyaddr_r_nargs=7
7165 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7166 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7168 ol_cv_func_gethostbyaddr_r_nargs=8
7171 ol_cv_func_gethostbyaddr_r_nargs=0
7176 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7177 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7178 cat >> confdefs.h <<EOF
7179 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7185 ol_cv_func_gethostbyaddr_r_nargs=0
7188 if test "$ac_cv_func_ctime_r" = yes \
7189 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7190 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7191 -a "$ac_cv_func_gethostbyname_r" = yes \
7192 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7193 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7194 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7195 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7196 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7199 cat >> confdefs.h <<\EOF
7200 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7207 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7208 -o $ol_with_threads = nt ; then
7211 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7212 echo "configure:7213: checking for _beginthread" >&5
7213 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7214 echo $ac_n "(cached) $ac_c" 1>&6
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 /* System header to define __stub macros and hopefully few prototypes,
7220 which can conflict with char _beginthread(); below. */
7222 /* Override any gcc2 internal prototype to avoid an error. */
7223 /* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */
7225 char _beginthread();
7230 /* The GNU C library defines this for functions which it implements
7231 to always fail with ENOSYS. Some functions are actually named
7232 something starting with __ and the normal name is an alias. */
7233 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7243 eval "ac_cv_func__beginthread=yes"
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7248 eval "ac_cv_func__beginthread=no"
7253 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7254 echo "$ac_t""yes" 1>&6
7257 echo "$ac_t""no" 1>&6
7261 if test $ac_cv_func__beginthread = yes ; then
7262 cat >> confdefs.h <<\EOF
7263 #define HAVE_NT_THREADS 1
7269 if test "$ol_cv_nt_threads" = yes ; then
7271 ol_with_threads=found
7272 ol_with_yielding_select=yes
7274 cat >> confdefs.h <<\EOF
7275 #define HAVE_NT_SERVICE_MANAGER 1
7278 cat >> confdefs.h <<\EOF
7279 #define HAVE_NT_EVENT_LOG 1
7284 if test $ol_with_threads = nt ; then
7285 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7289 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7290 -o $ol_with_threads = posix ; then
7292 for ac_hdr in pthread.h
7294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7296 echo "configure:7297: checking for $ac_hdr" >&5
7297 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7306 { (eval echo configure:7307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7308 if test -z "$ac_err"; then
7310 eval "ac_cv_header_$ac_safe=yes"
7313 echo "configure: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7316 eval "ac_cv_header_$ac_safe=no"
7320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7321 echo "$ac_t""yes" 1>&6
7322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7323 cat >> confdefs.h <<EOF
7324 #define $ac_tr_hdr 1
7328 echo "$ac_t""no" 1>&6
7333 if test $ac_cv_header_pthread_h = yes ; then
7334 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7335 echo "configure:7336: checking POSIX thread version" >&5
7336 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7344 # include <pthread.h>
7345 /* this check could be improved */
7346 # ifdef PTHREAD_ONCE_INIT
7347 pthread_version_final;
7351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352 egrep "pthread_version_final" >/dev/null 2>&1; then
7354 ol_pthread_final=yes
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7366 # include <pthread.h>
7367 /* this check could be improved */
7368 # ifdef pthread_once_init
7369 pthread_version_draft4;
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7376 ol_pthread_draft4=yes
7379 ol_pthread_draft4=no
7384 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7385 ol_cv_pthread_version=final
7386 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7387 ol_cv_pthread_version=draft4
7389 ol_cv_pthread_version=unknown
7394 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7397 if test $ol_cv_pthread_version = final ; then
7398 cat >> confdefs.h <<\EOF
7399 #define HAVE_PTHREADS_FINAL 1
7402 elif test $ol_cv_pthread_version = draft4 ; then
7403 cat >> confdefs.h <<\EOF
7404 #define HAVE_PTHREADS_D4 1
7408 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7411 # consider threads found
7412 ol_with_threads=found
7415 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7416 echo "configure:7417: checking for LinuxThreads pthread.h" >&5
7417 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <pthread.h>
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7428 ol_cv_header_linux_threads=yes
7431 ol_cv_header_linux_threads=no
7438 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7439 if test $ol_cv_header_linux_threads = yes; then
7440 cat >> confdefs.h <<\EOF
7441 #define HAVE_LINUX_THREADS 1
7447 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7448 echo "configure:7449: checking for GNU Pth pthread.h" >&5
7449 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 #include <pthread.h>
7456 #ifdef _POSIX_THREAD_IS_GNU_PTH
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 egrep "__gnu_pth__" >/dev/null 2>&1; then
7464 ol_cv_header_gnu_pth_pthread_h=yes
7467 ol_cv_header_gnu_pth_pthread_h=no
7474 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7477 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7478 for ac_hdr in sched.h
7480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7482 echo "configure:7483: checking for $ac_hdr" >&5
7483 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7492 { (eval echo configure:7493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7494 if test -z "$ac_err"; then
7496 eval "ac_cv_header_$ac_safe=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 eval "ac_cv_header_$ac_safe=no"
7506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_hdr 1
7514 echo "$ac_t""no" 1>&6
7521 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7522 echo "configure:7523: checking for pthread_create in default libraries" >&5
7523 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7527 if test "$cross_compiling" = yes; then
7528 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* pthread test headers */
7532 #include <pthread.h>
7534 #define NULL (void*)0
7537 static void *task(p)
7540 return (void *) (p == NULL);
7545 /* pthread test function */
7548 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7549 /* This system (e.g. AIX) defaults detached; must override */
7550 pthread_attr_t attr;
7552 status = pthread_attr_init(&attr);
7553 if( status ) exit( status );
7555 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7556 if( status ) exit( status );
7559 #elif defined( HAVE_PTHREADS_D4 )
7560 # define ATTR pthread_attr_default
7565 /* make sure pthread_create() isn't just a stub */
7566 status = pthread_create(&t, ATTR, task, NULL);
7567 if( status ) exit( status );
7569 /* give the thread a chance to complete...
7570 * it should remain joinable and hence detachable
7574 /* make sure pthread_detach() isn't just a stub */
7575 #if HAVE_PTHREADS_D4
7576 status = pthread_detach( &t );
7578 status = pthread_detach( t );
7581 #ifdef HAVE_LINUX_THREADS
7582 pthread_kill_other_threads_np();
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591 ol_cv_pthread_create=yes
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 ol_cv_pthread_create=no
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* pthread test headers */
7604 #include <pthread.h>
7606 #define NULL (void*)0
7609 static void *task(p)
7612 return (void *) (p == NULL);
7616 int main(argc, argv)
7621 /* pthread test function */
7624 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7625 /* This system (e.g. AIX) defaults detached; must override */
7626 pthread_attr_t attr;
7628 status = pthread_attr_init(&attr);
7629 if( status ) exit( status );
7631 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7632 if( status ) exit( status );
7635 #elif defined( HAVE_PTHREADS_D4 )
7636 # define ATTR pthread_attr_default
7641 /* make sure pthread_create() isn't just a stub */
7642 status = pthread_create(&t, ATTR, task, NULL);
7643 if( status ) exit( status );
7645 /* give the thread a chance to complete...
7646 * it should remain joinable and hence detachable
7650 /* make sure pthread_detach() isn't just a stub */
7651 #if HAVE_PTHREADS_D4
7652 status = pthread_detach( &t );
7654 status = pthread_detach( t );
7657 #ifdef HAVE_LINUX_THREADS
7658 pthread_kill_other_threads_np();
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7668 ol_cv_pthread_create=yes
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7673 ol_cv_pthread_create=no
7680 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7682 if test $ol_cv_pthread_create != no ; then
7683 ol_link_threads=posix
7687 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7688 if test "$ol_link_threads" = no ; then
7690 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7691 echo "configure:7692: checking for pthread link with -kthread" >&5
7692 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7698 LIBS="-kthread $LIBS"
7700 if test "$cross_compiling" = yes; then
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* pthread test headers */
7705 #include <pthread.h>
7707 #define NULL (void*)0
7710 static void *task(p)
7713 return (void *) (p == NULL);
7718 /* pthread test function */
7721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7722 /* This system (e.g. AIX) defaults detached; must override */
7723 pthread_attr_t attr;
7725 status = pthread_attr_init(&attr);
7726 if( status ) exit( status );
7728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7729 if( status ) exit( status );
7732 #elif defined( HAVE_PTHREADS_D4 )
7733 # define ATTR pthread_attr_default
7738 /* make sure pthread_create() isn't just a stub */
7739 status = pthread_create(&t, ATTR, task, NULL);
7740 if( status ) exit( status );
7742 /* give the thread a chance to complete...
7743 * it should remain joinable and hence detachable
7747 /* make sure pthread_detach() isn't just a stub */
7748 #if HAVE_PTHREADS_D4
7749 status = pthread_detach( &t );
7751 status = pthread_detach( t );
7754 #ifdef HAVE_LINUX_THREADS
7755 pthread_kill_other_threads_np();
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7764 ol_cv_pthread_kthread=yes
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7769 ol_cv_pthread_kthread=no
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7776 /* pthread test headers */
7777 #include <pthread.h>
7779 #define NULL (void*)0
7782 static void *task(p)
7785 return (void *) (p == NULL);
7789 int main(argc, argv)
7794 /* pthread test function */
7797 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7798 /* This system (e.g. AIX) defaults detached; must override */
7799 pthread_attr_t attr;
7801 status = pthread_attr_init(&attr);
7802 if( status ) exit( status );
7804 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7805 if( status ) exit( status );
7808 #elif defined( HAVE_PTHREADS_D4 )
7809 # define ATTR pthread_attr_default
7814 /* make sure pthread_create() isn't just a stub */
7815 status = pthread_create(&t, ATTR, task, NULL);
7816 if( status ) exit( status );
7818 /* give the thread a chance to complete...
7819 * it should remain joinable and hence detachable
7823 /* make sure pthread_detach() isn't just a stub */
7824 #if HAVE_PTHREADS_D4
7825 status = pthread_detach( &t );
7827 status = pthread_detach( t );
7830 #ifdef HAVE_LINUX_THREADS
7831 pthread_kill_other_threads_np();
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7841 ol_cv_pthread_kthread=yes
7843 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7846 ol_cv_pthread_kthread=no
7857 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7859 if test $ol_cv_pthread_kthread = yes ; then
7860 ol_link_pthreads="-kthread"
7861 ol_link_threads=posix
7865 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7866 if test "$ol_link_threads" = no ; then
7868 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7869 echo "configure:7870: checking for pthread link with -pthread" >&5
7870 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7876 LIBS="-pthread $LIBS"
7878 if test "$cross_compiling" = yes; then
7879 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 /* pthread test headers */
7883 #include <pthread.h>
7885 #define NULL (void*)0
7888 static void *task(p)
7891 return (void *) (p == NULL);
7896 /* pthread test function */
7899 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7900 /* This system (e.g. AIX) defaults detached; must override */
7901 pthread_attr_t attr;
7903 status = pthread_attr_init(&attr);
7904 if( status ) exit( status );
7906 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7907 if( status ) exit( status );
7910 #elif defined( HAVE_PTHREADS_D4 )
7911 # define ATTR pthread_attr_default
7916 /* make sure pthread_create() isn't just a stub */
7917 status = pthread_create(&t, ATTR, task, NULL);
7918 if( status ) exit( status );
7920 /* give the thread a chance to complete...
7921 * it should remain joinable and hence detachable
7925 /* make sure pthread_detach() isn't just a stub */
7926 #if HAVE_PTHREADS_D4
7927 status = pthread_detach( &t );
7929 status = pthread_detach( t );
7932 #ifdef HAVE_LINUX_THREADS
7933 pthread_kill_other_threads_np();
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7942 ol_cv_pthread_pthread=yes
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 ol_cv_pthread_pthread=no
7951 cat > conftest.$ac_ext <<EOF
7952 #line 7953 "configure"
7953 #include "confdefs.h"
7954 /* pthread test headers */
7955 #include <pthread.h>
7957 #define NULL (void*)0
7960 static void *task(p)
7963 return (void *) (p == NULL);
7967 int main(argc, argv)
7972 /* pthread test function */
7975 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7976 /* This system (e.g. AIX) defaults detached; must override */
7977 pthread_attr_t attr;
7979 status = pthread_attr_init(&attr);
7980 if( status ) exit( status );
7982 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7983 if( status ) exit( status );
7986 #elif defined( HAVE_PTHREADS_D4 )
7987 # define ATTR pthread_attr_default
7992 /* make sure pthread_create() isn't just a stub */
7993 status = pthread_create(&t, ATTR, task, NULL);
7994 if( status ) exit( status );
7996 /* give the thread a chance to complete...
7997 * it should remain joinable and hence detachable
8001 /* make sure pthread_detach() isn't just a stub */
8002 #if HAVE_PTHREADS_D4
8003 status = pthread_detach( &t );
8005 status = pthread_detach( t );
8008 #ifdef HAVE_LINUX_THREADS
8009 pthread_kill_other_threads_np();
8017 if { (eval echo configure:8018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8019 ol_cv_pthread_pthread=yes
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 ol_cv_pthread_pthread=no
8035 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8037 if test $ol_cv_pthread_pthread = yes ; then
8038 ol_link_pthreads="-pthread"
8039 ol_link_threads=posix
8043 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8044 if test "$ol_link_threads" = no ; then
8046 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8047 echo "configure:8048: checking for pthread link with -pthreads" >&5
8048 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8054 LIBS="-pthreads $LIBS"
8056 if test "$cross_compiling" = yes; then
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 /* pthread test headers */
8061 #include <pthread.h>
8063 #define NULL (void*)0
8066 static void *task(p)
8069 return (void *) (p == NULL);
8074 /* pthread test function */
8077 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8078 /* This system (e.g. AIX) defaults detached; must override */
8079 pthread_attr_t attr;
8081 status = pthread_attr_init(&attr);
8082 if( status ) exit( status );
8084 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8085 if( status ) exit( status );
8088 #elif defined( HAVE_PTHREADS_D4 )
8089 # define ATTR pthread_attr_default
8094 /* make sure pthread_create() isn't just a stub */
8095 status = pthread_create(&t, ATTR, task, NULL);
8096 if( status ) exit( status );
8098 /* give the thread a chance to complete...
8099 * it should remain joinable and hence detachable
8103 /* make sure pthread_detach() isn't just a stub */
8104 #if HAVE_PTHREADS_D4
8105 status = pthread_detach( &t );
8107 status = pthread_detach( t );
8110 #ifdef HAVE_LINUX_THREADS
8111 pthread_kill_other_threads_np();
8118 if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120 ol_cv_pthread_pthreads=yes
8122 echo "configure: failed program was:" >&5
8123 cat conftest.$ac_ext >&5
8125 ol_cv_pthread_pthreads=no
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* pthread test headers */
8133 #include <pthread.h>
8135 #define NULL (void*)0
8138 static void *task(p)
8141 return (void *) (p == NULL);
8145 int main(argc, argv)
8150 /* pthread test function */
8153 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8154 /* This system (e.g. AIX) defaults detached; must override */
8155 pthread_attr_t attr;
8157 status = pthread_attr_init(&attr);
8158 if( status ) exit( status );
8160 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8161 if( status ) exit( status );
8164 #elif defined( HAVE_PTHREADS_D4 )
8165 # define ATTR pthread_attr_default
8170 /* make sure pthread_create() isn't just a stub */
8171 status = pthread_create(&t, ATTR, task, NULL);
8172 if( status ) exit( status );
8174 /* give the thread a chance to complete...
8175 * it should remain joinable and hence detachable
8179 /* make sure pthread_detach() isn't just a stub */
8180 #if HAVE_PTHREADS_D4
8181 status = pthread_detach( &t );
8183 status = pthread_detach( t );
8186 #ifdef HAVE_LINUX_THREADS
8187 pthread_kill_other_threads_np();
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8197 ol_cv_pthread_pthreads=yes
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 ol_cv_pthread_pthreads=no
8213 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8215 if test $ol_cv_pthread_pthreads = yes ; then
8216 ol_link_pthreads="-pthreads"
8217 ol_link_threads=posix
8221 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8222 if test "$ol_link_threads" = no ; then
8224 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8225 echo "configure:8226: checking for pthread link with -mthreads" >&5
8226 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8232 LIBS="-mthreads $LIBS"
8234 if test "$cross_compiling" = yes; then
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* pthread test headers */
8239 #include <pthread.h>
8241 #define NULL (void*)0
8244 static void *task(p)
8247 return (void *) (p == NULL);
8252 /* pthread test function */
8255 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8256 /* This system (e.g. AIX) defaults detached; must override */
8257 pthread_attr_t attr;
8259 status = pthread_attr_init(&attr);
8260 if( status ) exit( status );
8262 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8263 if( status ) exit( status );
8266 #elif defined( HAVE_PTHREADS_D4 )
8267 # define ATTR pthread_attr_default
8272 /* make sure pthread_create() isn't just a stub */
8273 status = pthread_create(&t, ATTR, task, NULL);
8274 if( status ) exit( status );
8276 /* give the thread a chance to complete...
8277 * it should remain joinable and hence detachable
8281 /* make sure pthread_detach() isn't just a stub */
8282 #if HAVE_PTHREADS_D4
8283 status = pthread_detach( &t );
8285 status = pthread_detach( t );
8288 #ifdef HAVE_LINUX_THREADS
8289 pthread_kill_other_threads_np();
8296 if { (eval echo configure:8297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8298 ol_cv_pthread_mthreads=yes
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8303 ol_cv_pthread_mthreads=no
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* pthread test headers */
8311 #include <pthread.h>
8313 #define NULL (void*)0
8316 static void *task(p)
8319 return (void *) (p == NULL);
8323 int main(argc, argv)
8328 /* pthread test function */
8331 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8332 /* This system (e.g. AIX) defaults detached; must override */
8333 pthread_attr_t attr;
8335 status = pthread_attr_init(&attr);
8336 if( status ) exit( status );
8338 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8339 if( status ) exit( status );
8342 #elif defined( HAVE_PTHREADS_D4 )
8343 # define ATTR pthread_attr_default
8348 /* make sure pthread_create() isn't just a stub */
8349 status = pthread_create(&t, ATTR, task, NULL);
8350 if( status ) exit( status );
8352 /* give the thread a chance to complete...
8353 * it should remain joinable and hence detachable
8357 /* make sure pthread_detach() isn't just a stub */
8358 #if HAVE_PTHREADS_D4
8359 status = pthread_detach( &t );
8361 status = pthread_detach( t );
8364 #ifdef HAVE_LINUX_THREADS
8365 pthread_kill_other_threads_np();
8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8375 ol_cv_pthread_mthreads=yes
8377 echo "configure: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8380 ol_cv_pthread_mthreads=no
8391 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8393 if test $ol_cv_pthread_mthreads = yes ; then
8394 ol_link_pthreads="-mthreads"
8395 ol_link_threads=posix
8399 # Pthread try link: -thread (ol_cv_pthread_thread)
8400 if test "$ol_link_threads" = no ; then
8402 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8403 echo "configure:8404: checking for pthread link with -thread" >&5
8404 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8410 LIBS="-thread $LIBS"
8412 if test "$cross_compiling" = yes; then
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 /* pthread test headers */
8417 #include <pthread.h>
8419 #define NULL (void*)0
8422 static void *task(p)
8425 return (void *) (p == NULL);
8430 /* pthread test function */
8433 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8434 /* This system (e.g. AIX) defaults detached; must override */
8435 pthread_attr_t attr;
8437 status = pthread_attr_init(&attr);
8438 if( status ) exit( status );
8440 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8441 if( status ) exit( status );
8444 #elif defined( HAVE_PTHREADS_D4 )
8445 # define ATTR pthread_attr_default
8450 /* make sure pthread_create() isn't just a stub */
8451 status = pthread_create(&t, ATTR, task, NULL);
8452 if( status ) exit( status );
8454 /* give the thread a chance to complete...
8455 * it should remain joinable and hence detachable
8459 /* make sure pthread_detach() isn't just a stub */
8460 #if HAVE_PTHREADS_D4
8461 status = pthread_detach( &t );
8463 status = pthread_detach( t );
8466 #ifdef HAVE_LINUX_THREADS
8467 pthread_kill_other_threads_np();
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 ol_cv_pthread_thread=yes
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 ol_cv_pthread_thread=no
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* pthread test headers */
8489 #include <pthread.h>
8491 #define NULL (void*)0
8494 static void *task(p)
8497 return (void *) (p == NULL);
8501 int main(argc, argv)
8506 /* pthread test function */
8509 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8510 /* This system (e.g. AIX) defaults detached; must override */
8511 pthread_attr_t attr;
8513 status = pthread_attr_init(&attr);
8514 if( status ) exit( status );
8516 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8517 if( status ) exit( status );
8520 #elif defined( HAVE_PTHREADS_D4 )
8521 # define ATTR pthread_attr_default
8526 /* make sure pthread_create() isn't just a stub */
8527 status = pthread_create(&t, ATTR, task, NULL);
8528 if( status ) exit( status );
8530 /* give the thread a chance to complete...
8531 * it should remain joinable and hence detachable
8535 /* make sure pthread_detach() isn't just a stub */
8536 #if HAVE_PTHREADS_D4
8537 status = pthread_detach( &t );
8539 status = pthread_detach( t );
8542 #ifdef HAVE_LINUX_THREADS
8543 pthread_kill_other_threads_np();
8551 if { (eval echo configure:8552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8553 ol_cv_pthread_thread=yes
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8558 ol_cv_pthread_thread=no
8569 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8571 if test $ol_cv_pthread_thread = yes ; then
8572 ol_link_pthreads="-thread"
8573 ol_link_threads=posix
8578 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8579 if test "$ol_link_threads" = no ; then
8580 # try -lpthread -lmach -lexc -lc_r
8581 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8582 echo "configure:8583: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8583 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8589 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8591 if test "$cross_compiling" = yes; then
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 /* pthread test headers */
8596 #include <pthread.h>
8598 #define NULL (void*)0
8601 static void *task(p)
8604 return (void *) (p == NULL);
8609 /* pthread test function */
8612 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8613 /* This system (e.g. AIX) defaults detached; must override */
8614 pthread_attr_t attr;
8616 status = pthread_attr_init(&attr);
8617 if( status ) exit( status );
8619 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8620 if( status ) exit( status );
8623 #elif defined( HAVE_PTHREADS_D4 )
8624 # define ATTR pthread_attr_default
8629 /* make sure pthread_create() isn't just a stub */
8630 status = pthread_create(&t, ATTR, task, NULL);
8631 if( status ) exit( status );
8633 /* give the thread a chance to complete...
8634 * it should remain joinable and hence detachable
8638 /* make sure pthread_detach() isn't just a stub */
8639 #if HAVE_PTHREADS_D4
8640 status = pthread_detach( &t );
8642 status = pthread_detach( t );
8645 #ifdef HAVE_LINUX_THREADS
8646 pthread_kill_other_threads_np();
8653 if { (eval echo configure:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8655 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8660 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 /* pthread test headers */
8668 #include <pthread.h>
8670 #define NULL (void*)0
8673 static void *task(p)
8676 return (void *) (p == NULL);
8680 int main(argc, argv)
8685 /* pthread test function */
8688 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8689 /* This system (e.g. AIX) defaults detached; must override */
8690 pthread_attr_t attr;
8692 status = pthread_attr_init(&attr);
8693 if( status ) exit( status );
8695 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8696 if( status ) exit( status );
8699 #elif defined( HAVE_PTHREADS_D4 )
8700 # define ATTR pthread_attr_default
8705 /* make sure pthread_create() isn't just a stub */
8706 status = pthread_create(&t, ATTR, task, NULL);
8707 if( status ) exit( status );
8709 /* give the thread a chance to complete...
8710 * it should remain joinable and hence detachable
8714 /* make sure pthread_detach() isn't just a stub */
8715 #if HAVE_PTHREADS_D4
8716 status = pthread_detach( &t );
8718 status = pthread_detach( t );
8721 #ifdef HAVE_LINUX_THREADS
8722 pthread_kill_other_threads_np();
8730 if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8732 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8748 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8750 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8751 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8752 ol_link_threads=posix
8756 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8757 if test "$ol_link_threads" = no ; then
8758 # try -lpthread -lmach -lexc
8759 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8760 echo "configure:8761: checking for pthread link with -lpthread -lmach -lexc" >&5
8761 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8767 LIBS="-lpthread -lmach -lexc $LIBS"
8769 if test "$cross_compiling" = yes; then
8770 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure"
8772 #include "confdefs.h"
8773 /* pthread test headers */
8774 #include <pthread.h>
8776 #define NULL (void*)0
8779 static void *task(p)
8782 return (void *) (p == NULL);
8787 /* pthread test function */
8790 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8791 /* This system (e.g. AIX) defaults detached; must override */
8792 pthread_attr_t attr;
8794 status = pthread_attr_init(&attr);
8795 if( status ) exit( status );
8797 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8798 if( status ) exit( status );
8801 #elif defined( HAVE_PTHREADS_D4 )
8802 # define ATTR pthread_attr_default
8807 /* make sure pthread_create() isn't just a stub */
8808 status = pthread_create(&t, ATTR, task, NULL);
8809 if( status ) exit( status );
8811 /* give the thread a chance to complete...
8812 * it should remain joinable and hence detachable
8816 /* make sure pthread_detach() isn't just a stub */
8817 #if HAVE_PTHREADS_D4
8818 status = pthread_detach( &t );
8820 status = pthread_detach( t );
8823 #ifdef HAVE_LINUX_THREADS
8824 pthread_kill_other_threads_np();
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 ol_cv_pthread_lpthread_lmach_lexc=yes
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 ol_cv_pthread_lpthread_lmach_lexc=no
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 /* pthread test headers */
8846 #include <pthread.h>
8848 #define NULL (void*)0
8851 static void *task(p)
8854 return (void *) (p == NULL);
8858 int main(argc, argv)
8863 /* pthread test function */
8866 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8867 /* This system (e.g. AIX) defaults detached; must override */
8868 pthread_attr_t attr;
8870 status = pthread_attr_init(&attr);
8871 if( status ) exit( status );
8873 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8874 if( status ) exit( status );
8877 #elif defined( HAVE_PTHREADS_D4 )
8878 # define ATTR pthread_attr_default
8883 /* make sure pthread_create() isn't just a stub */
8884 status = pthread_create(&t, ATTR, task, NULL);
8885 if( status ) exit( status );
8887 /* give the thread a chance to complete...
8888 * it should remain joinable and hence detachable
8892 /* make sure pthread_detach() isn't just a stub */
8893 #if HAVE_PTHREADS_D4
8894 status = pthread_detach( &t );
8896 status = pthread_detach( t );
8899 #ifdef HAVE_LINUX_THREADS
8900 pthread_kill_other_threads_np();
8908 if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8910 ol_cv_pthread_lpthread_lmach_lexc=yes
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 ol_cv_pthread_lpthread_lmach_lexc=no
8926 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8928 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8929 ol_link_pthreads="-lpthread -lmach -lexc"
8930 ol_link_threads=posix
8935 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8936 if test "$ol_link_threads" = no ; then
8937 # try -lpthread -Wl,-woff,85
8938 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8939 echo "configure:8940: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8940 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8946 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8948 if test "$cross_compiling" = yes; then
8949 cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 /* pthread test headers */
8953 #include <pthread.h>
8955 #define NULL (void*)0
8958 static void *task(p)
8961 return (void *) (p == NULL);
8966 /* pthread test function */
8969 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8970 /* This system (e.g. AIX) defaults detached; must override */
8971 pthread_attr_t attr;
8973 status = pthread_attr_init(&attr);
8974 if( status ) exit( status );
8976 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8977 if( status ) exit( status );
8980 #elif defined( HAVE_PTHREADS_D4 )
8981 # define ATTR pthread_attr_default
8986 /* make sure pthread_create() isn't just a stub */
8987 status = pthread_create(&t, ATTR, task, NULL);
8988 if( status ) exit( status );
8990 /* give the thread a chance to complete...
8991 * it should remain joinable and hence detachable
8995 /* make sure pthread_detach() isn't just a stub */
8996 #if HAVE_PTHREADS_D4
8997 status = pthread_detach( &t );
8999 status = pthread_detach( t );
9002 #ifdef HAVE_LINUX_THREADS
9003 pthread_kill_other_threads_np();
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012 ol_cv_pthread_lib_lpthread_woff=yes
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 ol_cv_pthread_lib_lpthread_woff=no
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024 /* pthread test headers */
9025 #include <pthread.h>
9027 #define NULL (void*)0
9030 static void *task(p)
9033 return (void *) (p == NULL);
9037 int main(argc, argv)
9042 /* pthread test function */
9045 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9046 /* This system (e.g. AIX) defaults detached; must override */
9047 pthread_attr_t attr;
9049 status = pthread_attr_init(&attr);
9050 if( status ) exit( status );
9052 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9053 if( status ) exit( status );
9056 #elif defined( HAVE_PTHREADS_D4 )
9057 # define ATTR pthread_attr_default
9062 /* make sure pthread_create() isn't just a stub */
9063 status = pthread_create(&t, ATTR, task, NULL);
9064 if( status ) exit( status );
9066 /* give the thread a chance to complete...
9067 * it should remain joinable and hence detachable
9071 /* make sure pthread_detach() isn't just a stub */
9072 #if HAVE_PTHREADS_D4
9073 status = pthread_detach( &t );
9075 status = pthread_detach( t );
9078 #ifdef HAVE_LINUX_THREADS
9079 pthread_kill_other_threads_np();
9087 if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9089 ol_cv_pthread_lib_lpthread_woff=yes
9091 echo "configure: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9094 ol_cv_pthread_lib_lpthread_woff=no
9105 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9107 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9108 ol_link_pthreads="-lpthread -Wl,-woff,85"
9109 ol_link_threads=posix
9114 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9115 if test "$ol_link_threads" = no ; then
9117 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9118 echo "configure:9119: checking for pthread link with -lpthread" >&5
9119 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9125 LIBS="-lpthread $LIBS"
9127 if test "$cross_compiling" = yes; then
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131 /* pthread test headers */
9132 #include <pthread.h>
9134 #define NULL (void*)0
9137 static void *task(p)
9140 return (void *) (p == NULL);
9145 /* pthread test function */
9148 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9149 /* This system (e.g. AIX) defaults detached; must override */
9150 pthread_attr_t attr;
9152 status = pthread_attr_init(&attr);
9153 if( status ) exit( status );
9155 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9156 if( status ) exit( status );
9159 #elif defined( HAVE_PTHREADS_D4 )
9160 # define ATTR pthread_attr_default
9165 /* make sure pthread_create() isn't just a stub */
9166 status = pthread_create(&t, ATTR, task, NULL);
9167 if( status ) exit( status );
9169 /* give the thread a chance to complete...
9170 * it should remain joinable and hence detachable
9174 /* make sure pthread_detach() isn't just a stub */
9175 #if HAVE_PTHREADS_D4
9176 status = pthread_detach( &t );
9178 status = pthread_detach( t );
9181 #ifdef HAVE_LINUX_THREADS
9182 pthread_kill_other_threads_np();
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9191 ol_cv_pthread_lpthread=yes
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9196 ol_cv_pthread_lpthread=no
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 /* pthread test headers */
9204 #include <pthread.h>
9206 #define NULL (void*)0
9209 static void *task(p)
9212 return (void *) (p == NULL);
9216 int main(argc, argv)
9221 /* pthread test function */
9224 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9225 /* This system (e.g. AIX) defaults detached; must override */
9226 pthread_attr_t attr;
9228 status = pthread_attr_init(&attr);
9229 if( status ) exit( status );
9231 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9232 if( status ) exit( status );
9235 #elif defined( HAVE_PTHREADS_D4 )
9236 # define ATTR pthread_attr_default
9241 /* make sure pthread_create() isn't just a stub */
9242 status = pthread_create(&t, ATTR, task, NULL);
9243 if( status ) exit( status );
9245 /* give the thread a chance to complete...
9246 * it should remain joinable and hence detachable
9250 /* make sure pthread_detach() isn't just a stub */
9251 #if HAVE_PTHREADS_D4
9252 status = pthread_detach( &t );
9254 status = pthread_detach( t );
9257 #ifdef HAVE_LINUX_THREADS
9258 pthread_kill_other_threads_np();
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9268 ol_cv_pthread_lpthread=yes
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 ol_cv_pthread_lpthread=no
9284 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9286 if test $ol_cv_pthread_lpthread = yes ; then
9287 ol_link_pthreads="-lpthread"
9288 ol_link_threads=posix
9292 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9293 if test "$ol_link_threads" = no ; then
9295 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9296 echo "configure:9297: checking for pthread link with -lc_r" >&5
9297 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9305 if test "$cross_compiling" = yes; then
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 /* pthread test headers */
9310 #include <pthread.h>
9312 #define NULL (void*)0
9315 static void *task(p)
9318 return (void *) (p == NULL);
9323 /* pthread test function */
9326 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9327 /* This system (e.g. AIX) defaults detached; must override */
9328 pthread_attr_t attr;
9330 status = pthread_attr_init(&attr);
9331 if( status ) exit( status );
9333 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9334 if( status ) exit( status );
9337 #elif defined( HAVE_PTHREADS_D4 )
9338 # define ATTR pthread_attr_default
9343 /* make sure pthread_create() isn't just a stub */
9344 status = pthread_create(&t, ATTR, task, NULL);
9345 if( status ) exit( status );
9347 /* give the thread a chance to complete...
9348 * it should remain joinable and hence detachable
9352 /* make sure pthread_detach() isn't just a stub */
9353 #if HAVE_PTHREADS_D4
9354 status = pthread_detach( &t );
9356 status = pthread_detach( t );
9359 #ifdef HAVE_LINUX_THREADS
9360 pthread_kill_other_threads_np();
9367 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9369 ol_cv_pthread_lc_r=yes
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 ol_cv_pthread_lc_r=no
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 /* pthread test headers */
9382 #include <pthread.h>
9384 #define NULL (void*)0
9387 static void *task(p)
9390 return (void *) (p == NULL);
9394 int main(argc, argv)
9399 /* pthread test function */
9402 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9403 /* This system (e.g. AIX) defaults detached; must override */
9404 pthread_attr_t attr;
9406 status = pthread_attr_init(&attr);
9407 if( status ) exit( status );
9409 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9410 if( status ) exit( status );
9413 #elif defined( HAVE_PTHREADS_D4 )
9414 # define ATTR pthread_attr_default
9419 /* make sure pthread_create() isn't just a stub */
9420 status = pthread_create(&t, ATTR, task, NULL);
9421 if( status ) exit( status );
9423 /* give the thread a chance to complete...
9424 * it should remain joinable and hence detachable
9428 /* make sure pthread_detach() isn't just a stub */
9429 #if HAVE_PTHREADS_D4
9430 status = pthread_detach( &t );
9432 status = pthread_detach( t );
9435 #ifdef HAVE_LINUX_THREADS
9436 pthread_kill_other_threads_np();
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9446 ol_cv_pthread_lc_r=yes
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9451 ol_cv_pthread_lc_r=no
9462 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9464 if test $ol_cv_pthread_lc_r = yes ; then
9465 ol_link_pthreads="-lc_r"
9466 ol_link_threads=posix
9471 # Pthread try link: -threads (ol_cv_pthread_threads)
9472 if test "$ol_link_threads" = no ; then
9474 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9475 echo "configure:9476: checking for pthread link with -threads" >&5
9476 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9482 LIBS="-threads $LIBS"
9484 if test "$cross_compiling" = yes; then
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 /* pthread test headers */
9489 #include <pthread.h>
9491 #define NULL (void*)0
9494 static void *task(p)
9497 return (void *) (p == NULL);
9502 /* pthread test function */
9505 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9506 /* This system (e.g. AIX) defaults detached; must override */
9507 pthread_attr_t attr;
9509 status = pthread_attr_init(&attr);
9510 if( status ) exit( status );
9512 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9513 if( status ) exit( status );
9516 #elif defined( HAVE_PTHREADS_D4 )
9517 # define ATTR pthread_attr_default
9522 /* make sure pthread_create() isn't just a stub */
9523 status = pthread_create(&t, ATTR, task, NULL);
9524 if( status ) exit( status );
9526 /* give the thread a chance to complete...
9527 * it should remain joinable and hence detachable
9531 /* make sure pthread_detach() isn't just a stub */
9532 #if HAVE_PTHREADS_D4
9533 status = pthread_detach( &t );
9535 status = pthread_detach( t );
9538 #ifdef HAVE_LINUX_THREADS
9539 pthread_kill_other_threads_np();
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9548 ol_cv_pthread_threads=yes
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 ol_cv_pthread_threads=no
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 /* pthread test headers */
9561 #include <pthread.h>
9563 #define NULL (void*)0
9566 static void *task(p)
9569 return (void *) (p == NULL);
9573 int main(argc, argv)
9578 /* pthread test function */
9581 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9582 /* This system (e.g. AIX) defaults detached; must override */
9583 pthread_attr_t attr;
9585 status = pthread_attr_init(&attr);
9586 if( status ) exit( status );
9588 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9589 if( status ) exit( status );
9592 #elif defined( HAVE_PTHREADS_D4 )
9593 # define ATTR pthread_attr_default
9598 /* make sure pthread_create() isn't just a stub */
9599 status = pthread_create(&t, ATTR, task, NULL);
9600 if( status ) exit( status );
9602 /* give the thread a chance to complete...
9603 * it should remain joinable and hence detachable
9607 /* make sure pthread_detach() isn't just a stub */
9608 #if HAVE_PTHREADS_D4
9609 status = pthread_detach( &t );
9611 status = pthread_detach( t );
9614 #ifdef HAVE_LINUX_THREADS
9615 pthread_kill_other_threads_np();
9623 if { (eval echo configure:9624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9625 ol_cv_pthread_threads=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 ol_cv_pthread_threads=no
9641 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9643 if test $ol_cv_pthread_threads = yes ; then
9644 ol_link_pthreads="-threads"
9645 ol_link_threads=posix
9650 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9651 if test "$ol_link_threads" = no ; then
9652 # try -lpthreads -lmach -lexc -lc_r
9653 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9654 echo "configure:9655: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9655 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9661 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9663 if test "$cross_compiling" = yes; then
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* pthread test headers */
9668 #include <pthread.h>
9670 #define NULL (void*)0
9673 static void *task(p)
9676 return (void *) (p == NULL);
9681 /* pthread test function */
9684 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9685 /* This system (e.g. AIX) defaults detached; must override */
9686 pthread_attr_t attr;
9688 status = pthread_attr_init(&attr);
9689 if( status ) exit( status );
9691 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9692 if( status ) exit( status );
9695 #elif defined( HAVE_PTHREADS_D4 )
9696 # define ATTR pthread_attr_default
9701 /* make sure pthread_create() isn't just a stub */
9702 status = pthread_create(&t, ATTR, task, NULL);
9703 if( status ) exit( status );
9705 /* give the thread a chance to complete...
9706 * it should remain joinable and hence detachable
9710 /* make sure pthread_detach() isn't just a stub */
9711 #if HAVE_PTHREADS_D4
9712 status = pthread_detach( &t );
9714 status = pthread_detach( t );
9717 #ifdef HAVE_LINUX_THREADS
9718 pthread_kill_other_threads_np();
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9727 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* pthread test headers */
9740 #include <pthread.h>
9742 #define NULL (void*)0
9745 static void *task(p)
9748 return (void *) (p == NULL);
9752 int main(argc, argv)
9757 /* pthread test function */
9760 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9761 /* This system (e.g. AIX) defaults detached; must override */
9762 pthread_attr_t attr;
9764 status = pthread_attr_init(&attr);
9765 if( status ) exit( status );
9767 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9768 if( status ) exit( status );
9771 #elif defined( HAVE_PTHREADS_D4 )
9772 # define ATTR pthread_attr_default
9777 /* make sure pthread_create() isn't just a stub */
9778 status = pthread_create(&t, ATTR, task, NULL);
9779 if( status ) exit( status );
9781 /* give the thread a chance to complete...
9782 * it should remain joinable and hence detachable
9786 /* make sure pthread_detach() isn't just a stub */
9787 #if HAVE_PTHREADS_D4
9788 status = pthread_detach( &t );
9790 status = pthread_detach( t );
9793 #ifdef HAVE_LINUX_THREADS
9794 pthread_kill_other_threads_np();
9802 if { (eval echo configure:9803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9804 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9806 echo "configure: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9809 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9820 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9822 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9823 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9824 ol_link_threads=posix
9828 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9829 if test "$ol_link_threads" = no ; then
9830 # try -lpthreads -lmach -lexc
9831 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9832 echo "configure:9833: checking for pthread link with -lpthreads -lmach -lexc" >&5
9833 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9834 echo $ac_n "(cached) $ac_c" 1>&6
9839 LIBS="-lpthreads -lmach -lexc $LIBS"
9841 if test "$cross_compiling" = yes; then
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 /* pthread test headers */
9846 #include <pthread.h>
9848 #define NULL (void*)0
9851 static void *task(p)
9854 return (void *) (p == NULL);
9859 /* pthread test function */
9862 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9863 /* This system (e.g. AIX) defaults detached; must override */
9864 pthread_attr_t attr;
9866 status = pthread_attr_init(&attr);
9867 if( status ) exit( status );
9869 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9870 if( status ) exit( status );
9873 #elif defined( HAVE_PTHREADS_D4 )
9874 # define ATTR pthread_attr_default
9879 /* make sure pthread_create() isn't just a stub */
9880 status = pthread_create(&t, ATTR, task, NULL);
9881 if( status ) exit( status );
9883 /* give the thread a chance to complete...
9884 * it should remain joinable and hence detachable
9888 /* make sure pthread_detach() isn't just a stub */
9889 #if HAVE_PTHREADS_D4
9890 status = pthread_detach( &t );
9892 status = pthread_detach( t );
9895 #ifdef HAVE_LINUX_THREADS
9896 pthread_kill_other_threads_np();
9903 if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 ol_cv_pthread_lpthreads_lmach_lexc=yes
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9910 ol_cv_pthread_lpthreads_lmach_lexc=no
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 /* pthread test headers */
9918 #include <pthread.h>
9920 #define NULL (void*)0
9923 static void *task(p)
9926 return (void *) (p == NULL);
9930 int main(argc, argv)
9935 /* pthread test function */
9938 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9939 /* This system (e.g. AIX) defaults detached; must override */
9940 pthread_attr_t attr;
9942 status = pthread_attr_init(&attr);
9943 if( status ) exit( status );
9945 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9946 if( status ) exit( status );
9949 #elif defined( HAVE_PTHREADS_D4 )
9950 # define ATTR pthread_attr_default
9955 /* make sure pthread_create() isn't just a stub */
9956 status = pthread_create(&t, ATTR, task, NULL);
9957 if( status ) exit( status );
9959 /* give the thread a chance to complete...
9960 * it should remain joinable and hence detachable
9964 /* make sure pthread_detach() isn't just a stub */
9965 #if HAVE_PTHREADS_D4
9966 status = pthread_detach( &t );
9968 status = pthread_detach( t );
9971 #ifdef HAVE_LINUX_THREADS
9972 pthread_kill_other_threads_np();
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9982 ol_cv_pthread_lpthreads_lmach_lexc=yes
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 ol_cv_pthread_lpthreads_lmach_lexc=no
9998 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10000 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10001 ol_link_pthreads="-lpthreads -lmach -lexc"
10002 ol_link_threads=posix
10006 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10007 if test "$ol_link_threads" = no ; then
10008 # try -lpthreads -lexc
10009 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10010 echo "configure:10011: checking for pthread link with -lpthreads -lexc" >&5
10011 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10012 echo $ac_n "(cached) $ac_c" 1>&6
10017 LIBS="-lpthreads -lexc $LIBS"
10019 if test "$cross_compiling" = yes; then
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10023 /* pthread test headers */
10024 #include <pthread.h>
10026 #define NULL (void*)0
10029 static void *task(p)
10032 return (void *) (p == NULL);
10037 /* pthread test function */
10040 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10041 /* This system (e.g. AIX) defaults detached; must override */
10042 pthread_attr_t attr;
10044 status = pthread_attr_init(&attr);
10045 if( status ) exit( status );
10047 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10048 if( status ) exit( status );
10050 # define ATTR &attr
10051 #elif defined( HAVE_PTHREADS_D4 )
10052 # define ATTR pthread_attr_default
10057 /* make sure pthread_create() isn't just a stub */
10058 status = pthread_create(&t, ATTR, task, NULL);
10059 if( status ) exit( status );
10061 /* give the thread a chance to complete...
10062 * it should remain joinable and hence detachable
10066 /* make sure pthread_detach() isn't just a stub */
10067 #if HAVE_PTHREADS_D4
10068 status = pthread_detach( &t );
10070 status = pthread_detach( t );
10073 #ifdef HAVE_LINUX_THREADS
10074 pthread_kill_other_threads_np();
10081 if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10083 ol_cv_pthread_lpthreads_lexc=yes
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10088 ol_cv_pthread_lpthreads_lexc=no
10092 cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10094 #include "confdefs.h"
10095 /* pthread test headers */
10096 #include <pthread.h>
10098 #define NULL (void*)0
10101 static void *task(p)
10104 return (void *) (p == NULL);
10108 int main(argc, argv)
10113 /* pthread test function */
10116 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10117 /* This system (e.g. AIX) defaults detached; must override */
10118 pthread_attr_t attr;
10120 status = pthread_attr_init(&attr);
10121 if( status ) exit( status );
10123 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10124 if( status ) exit( status );
10126 # define ATTR &attr
10127 #elif defined( HAVE_PTHREADS_D4 )
10128 # define ATTR pthread_attr_default
10133 /* make sure pthread_create() isn't just a stub */
10134 status = pthread_create(&t, ATTR, task, NULL);
10135 if( status ) exit( status );
10137 /* give the thread a chance to complete...
10138 * it should remain joinable and hence detachable
10142 /* make sure pthread_detach() isn't just a stub */
10143 #if HAVE_PTHREADS_D4
10144 status = pthread_detach( &t );
10146 status = pthread_detach( t );
10149 #ifdef HAVE_LINUX_THREADS
10150 pthread_kill_other_threads_np();
10158 if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10160 ol_cv_pthread_lpthreads_lexc=yes
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 ol_cv_pthread_lpthreads_lexc=no
10176 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10178 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10179 ol_link_pthreads="-lpthreads -lexc"
10180 ol_link_threads=posix
10185 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10186 if test "$ol_link_threads" = no ; then
10188 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10189 echo "configure:10190: checking for pthread link with -lpthreads" >&5
10190 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10196 LIBS="-lpthreads $LIBS"
10198 if test "$cross_compiling" = yes; then
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10201 "configure"
10201 #include "confdefs.h"
10202 /* pthread test headers */
10203 #include <pthread.h>
10205 #define NULL (void*)0
10208 static void *task(p)
10211 return (void *) (p == NULL);
10216 /* pthread test function */
10219 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10220 /* This system (e.g. AIX) defaults detached; must override */
10221 pthread_attr_t attr;
10223 status = pthread_attr_init(&attr);
10224 if( status ) exit( status );
10226 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10227 if( status ) exit( status );
10229 # define ATTR &attr
10230 #elif defined( HAVE_PTHREADS_D4 )
10231 # define ATTR pthread_attr_default
10236 /* make sure pthread_create() isn't just a stub */
10237 status = pthread_create(&t, ATTR, task, NULL);
10238 if( status ) exit( status );
10240 /* give the thread a chance to complete...
10241 * it should remain joinable and hence detachable
10245 /* make sure pthread_detach() isn't just a stub */
10246 #if HAVE_PTHREADS_D4
10247 status = pthread_detach( &t );
10249 status = pthread_detach( t );
10252 #ifdef HAVE_LINUX_THREADS
10253 pthread_kill_other_threads_np();
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10262 ol_cv_pthread_lib_lpthreads=yes
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10267 ol_cv_pthread_lib_lpthreads=no
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 /* pthread test headers */
10275 #include <pthread.h>
10277 #define NULL (void*)0
10280 static void *task(p)
10283 return (void *) (p == NULL);
10287 int main(argc, argv)
10292 /* pthread test function */
10295 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10296 /* This system (e.g. AIX) defaults detached; must override */
10297 pthread_attr_t attr;
10299 status = pthread_attr_init(&attr);
10300 if( status ) exit( status );
10302 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10303 if( status ) exit( status );
10305 # define ATTR &attr
10306 #elif defined( HAVE_PTHREADS_D4 )
10307 # define ATTR pthread_attr_default
10312 /* make sure pthread_create() isn't just a stub */
10313 status = pthread_create(&t, ATTR, task, NULL);
10314 if( status ) exit( status );
10316 /* give the thread a chance to complete...
10317 * it should remain joinable and hence detachable
10321 /* make sure pthread_detach() isn't just a stub */
10322 #if HAVE_PTHREADS_D4
10323 status = pthread_detach( &t );
10325 status = pthread_detach( t );
10328 #ifdef HAVE_LINUX_THREADS
10329 pthread_kill_other_threads_np();
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10339 ol_cv_pthread_lib_lpthreads=yes
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 ol_cv_pthread_lib_lpthreads=no
10355 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10357 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10358 ol_link_pthreads="-lpthreads"
10359 ol_link_threads=posix
10364 if test $ol_link_threads != no ; then
10365 cat >> confdefs.h <<\EOF
10366 #define HAVE_PTHREADS 1
10370 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10372 save_CPPFLAGS="$CPPFLAGS"
10374 LIBS="$LTHREAD_LIBS $LIBS"
10376 for ac_func in sched_yield pthread_yield
10378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_func" >&5
10380 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char $ac_func(); below. */
10388 #include <assert.h>
10389 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10397 /* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410 eval "ac_cv_func_$ac_func=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_func_$ac_func=no"
10420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10423 cat >> confdefs.h <<EOF
10424 #define $ac_tr_func 1
10428 echo "$ac_t""no" 1>&6
10433 if test $ac_cv_func_sched_yield = no -a \
10434 $ac_cv_func_pthread_yield = no ; then
10435 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10436 echo "configure:10437: checking for sched_yield in -lrt" >&5
10437 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10438 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10441 ac_save_LIBS="$LIBS"
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449 char sched_yield();
10455 if { (eval echo configure:10456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10457 eval "ac_cv_lib_$ac_lib_var=yes"
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 eval "ac_cv_lib_$ac_lib_var=no"
10465 LIBS="$ac_save_LIBS"
10468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10469 echo "$ac_t""yes" 1>&6
10470 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_SCHED_YIELD 1
10475 ac_cv_func_sched_yield=yes
10477 echo "$ac_t""no" 1>&6
10478 ac_cv_func_sched_yield=no
10482 if test $ac_cv_func_sched_yield = no -a \
10483 $ac_cv_func_pthread_yield = no ; then
10484 for ac_func in thr_yield
10486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10487 echo "configure:10488: checking for $ac_func" >&5
10488 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* System header to define __stub macros and hopefully few prototypes,
10495 which can conflict with char $ac_func(); below. */
10496 #include <assert.h>
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10505 /* The GNU C library defines this for functions which it implements
10506 to always fail with ENOSYS. Some functions are actually named
10507 something starting with __ and the normal name is an alias. */
10508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 eval "ac_cv_func_$ac_func=yes"
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 eval "ac_cv_func_$ac_func=no"
10528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10531 cat >> confdefs.h <<EOF
10532 #define $ac_tr_func 1
10536 echo "$ac_t""no" 1>&6
10541 if test $ac_cv_func_sched_yield = no -a \
10542 $ac_cv_func_pthread_yield = no -a \
10543 "$ac_cv_func_thr_yield" = no ; then
10544 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10547 for ac_func in pthread_kill pthread_rwlock_destroy
10549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10550 echo "configure:10551: checking for $ac_func" >&5
10551 if eval "test \"\${ac_cv_func_$ac_func+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 /* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char $ac_func(); below. */
10559 #include <assert.h>
10560 /* Override any gcc2 internal prototype to avoid an error. */
10561 /* We use char because int might match the return type of a gcc2
10562 builtin and then its argument prototype would still apply. */
10568 /* The GNU C library defines this for functions which it implements
10569 to always fail with ENOSYS. Some functions are actually named
10570 something starting with __ and the normal name is an alias. */
10571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10579 if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10581 eval "ac_cv_func_$ac_func=yes"
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10586 eval "ac_cv_func_$ac_func=no"
10591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10592 echo "$ac_t""yes" 1>&6
10593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10594 cat >> confdefs.h <<EOF
10595 #define $ac_tr_func 1
10599 echo "$ac_t""no" 1>&6
10604 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10605 echo "configure:10606: checking for pthread_detach with <pthread.h>" >&5
10606 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10614 #include <pthread.h>
10616 #define NULL (void*)0
10620 pthread_detach(NULL);
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10625 ol_cv_func_pthread_detach=yes
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 ol_cv_func_pthread_detach=no
10636 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10638 if test $ol_cv_func_pthread_detach = no ; then
10639 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_PTHREAD_DETACH 1
10648 pthread_setconcurrency \
10649 pthread_getconcurrency \
10650 thr_setconcurrency \
10651 thr_getconcurrency \
10654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10655 echo "configure:10656: checking for $ac_func" >&5
10656 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func(); below. */
10664 #include <assert.h>
10665 /* Override any gcc2 internal prototype to avoid an error. */
10666 /* We use char because int might match the return type of a gcc2
10667 builtin and then its argument prototype would still apply. */
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10684 if { (eval echo configure:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10686 eval "ac_cv_func_$ac_func=yes"
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 eval "ac_cv_func_$ac_func=no"
10696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10697 echo "$ac_t""yes" 1>&6
10698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10699 cat >> confdefs.h <<EOF
10700 #define $ac_tr_func 1
10704 echo "$ac_t""no" 1>&6
10710 for ac_func in pthread_kill_other_threads_np
10712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10713 echo "configure:10714: checking for $ac_func" >&5
10714 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10717 cat > conftest.$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10720 /* System header to define __stub macros and hopefully few prototypes,
10721 which can conflict with char $ac_func(); below. */
10722 #include <assert.h>
10723 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 eval "ac_cv_func_$ac_func=yes"
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10749 eval "ac_cv_func_$ac_func=no"
10754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10755 echo "$ac_t""yes" 1>&6
10756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10757 cat >> confdefs.h <<EOF
10758 #define $ac_tr_func 1
10762 echo "$ac_t""no" 1>&6
10766 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10767 echo "configure:10768: checking for LinuxThreads implementation" >&5
10768 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10769 echo $ac_n "(cached) $ac_c" 1>&6
10771 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10774 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10779 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10780 echo "configure:10781: checking for LinuxThreads consistency" >&5
10781 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10785 if test $ol_cv_header_linux_threads = yes -a \
10786 $ol_cv_sys_linux_threads = yes; then
10787 ol_cv_linux_threads=yes
10788 elif test $ol_cv_header_linux_threads = no -a \
10789 $ol_cv_sys_linux_threads = no; then
10790 ol_cv_linux_threads=no
10792 ol_cv_linux_threads=error
10797 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10800 if test $ol_cv_linux_threads = error; then
10801 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10804 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10805 echo "configure:10806: checking if pthread_create() works" >&5
10806 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10810 if test "$cross_compiling" = yes; then
10811 ol_cv_pthread_create_works=yes
10813 cat > conftest.$ac_ext <<EOF
10814 #line 10815 "configure"
10815 #include "confdefs.h"
10816 /* pthread test headers */
10817 #include <pthread.h>
10819 #define NULL (void*)0
10822 static void *task(p)
10825 return (void *) (p == NULL);
10829 int main(argc, argv)
10834 /* pthread test function */
10837 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10838 /* This system (e.g. AIX) defaults detached; must override */
10839 pthread_attr_t attr;
10841 status = pthread_attr_init(&attr);
10842 if( status ) exit( status );
10844 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10845 if( status ) exit( status );
10847 # define ATTR &attr
10848 #elif defined( HAVE_PTHREADS_D4 )
10849 # define ATTR pthread_attr_default
10854 /* make sure pthread_create() isn't just a stub */
10855 status = pthread_create(&t, ATTR, task, NULL);
10856 if( status ) exit( status );
10858 /* give the thread a chance to complete...
10859 * it should remain joinable and hence detachable
10863 /* make sure pthread_detach() isn't just a stub */
10864 #if HAVE_PTHREADS_D4
10865 status = pthread_detach( &t );
10867 status = pthread_detach( t );
10870 #ifdef HAVE_LINUX_THREADS
10871 pthread_kill_other_threads_np();
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10881 ol_cv_pthread_create_works=yes
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 ol_cv_pthread_create_works=no
10893 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10895 if test $ol_cv_pthread_create_works = no ; then
10896 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10899 if test $ol_with_yielding_select = auto ; then
10900 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10901 echo "configure:10902: checking if select yields when using pthreads" >&5
10902 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10906 if test "$cross_compiling" = yes; then
10907 ol_cv_pthread_select_yields=cross
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10913 #include <sys/types.h>
10914 #include <sys/time.h>
10915 #include <unistd.h>
10916 #include <pthread.h>
10918 #define NULL (void*) 0
10921 static int fildes[2];
10923 static void *task(p)
10935 FD_SET(fildes[0], &rfds);
10937 /* we're not interested in any fds */
10938 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10945 exit(0); /* if we exit here, the select blocked the whole process */
10948 int main(argc, argv)
10954 /* create a pipe to select */
10955 if(pipe(&fildes[0])) {
10960 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10961 (void) pthread_setconcurrency(2);
10963 #ifdef HAVE_THR_SETCONCURRENCY
10964 /* Set Solaris LWP concurrency to 2 */
10965 thr_setconcurrency(2);
10969 #if HAVE_PTHREADS_D4
10970 pthread_create(&t, pthread_attr_default, task, NULL);
10972 pthread_create(&t, NULL, task, NULL);
10975 #if HAVE_SCHED_YIELD
10976 sched_yield(); /* make sure task runs first */
10978 #ifdef HAVE_PTHREAD_YIELD
10979 pthread_yield(); /* make sure task runs first */
10986 if { (eval echo configure:10987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10988 ol_cv_pthread_select_yields=no
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10993 ol_cv_pthread_select_yields=yes
11000 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11002 if test $ol_cv_pthread_select_yields = cross ; then
11003 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11006 if test $ol_cv_pthread_select_yields = yes ; then
11007 ol_with_yielding_select=yes
11011 CPPFLAGS="$save_CPPFLAGS"
11014 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
11018 if test $ol_with_threads = posix ; then
11019 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11023 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11024 -o $ol_with_threads = mach ; then
11026 for ac_hdr in mach/cthreads.h
11028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11030 echo "configure:11031: checking for $ac_hdr" >&5
11031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11040 { (eval echo configure:11041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11042 if test -z "$ac_err"; then
11044 eval "ac_cv_header_$ac_safe=yes"
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11050 eval "ac_cv_header_$ac_safe=no"
11054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11057 cat >> confdefs.h <<EOF
11058 #define $ac_tr_hdr 1
11062 echo "$ac_t""no" 1>&6
11066 if test $ac_cv_header_mach_cthreads_h = yes ; then
11067 ol_with_threads=found
11069 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11070 echo "configure:11071: checking for cthread_fork" >&5
11071 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char cthread_fork(); below. */
11079 #include <assert.h>
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083 char cthread_fork();
11088 /* The GNU C library defines this for functions which it implements
11089 to always fail with ENOSYS. Some functions are actually named
11090 something starting with __ and the normal name is an alias. */
11091 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11099 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11101 eval "ac_cv_func_cthread_fork=yes"
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11106 eval "ac_cv_func_cthread_fork=no"
11111 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11113 ol_link_threads=yes
11115 echo "$ac_t""no" 1>&6
11119 if test $ol_link_threads = no ; then
11120 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11121 echo "configure:11122: checking for cthread_fork with -all_load" >&5
11122 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11127 LIBS="-all_load $LIBS"
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include <mach/cthreads.h>
11134 cthread_fork((void *)0, (void *)0);
11138 if { (eval echo configure:11139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11140 ol_cv_cthread_all_load=yes
11142 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5
11145 ol_cv_cthread_all_load=no
11152 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11154 if test $ol_cv_cthread_all_load = yes ; then
11155 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11156 ol_link_threads=mach
11160 if test $ol_link_threads != no ; then
11161 : check for cthread specific functionality here
11162 cat >> confdefs.h <<\EOF
11163 #define HAVE_MACH_CTHREADS 1
11167 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11171 if test $ol_with_threads = mach ; then
11172 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11176 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11177 -o $ol_with_threads = pth ; then
11179 for ac_hdr in pth.h
11181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11182 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11183 echo "configure:11184: checking for $ac_hdr" >&5
11184 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11193 { (eval echo configure:11194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11195 if test -z "$ac_err"; then
11197 eval "ac_cv_header_$ac_safe=yes"
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 eval "ac_cv_header_$ac_safe=no"
11207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11210 cat >> confdefs.h <<EOF
11211 #define $ac_tr_hdr 1
11215 echo "$ac_t""no" 1>&6
11220 if test $ac_cv_header_pth_h = yes ; then
11221 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11222 echo "configure:11223: checking for pth_version in -lpth" >&5
11223 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11224 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 ac_save_LIBS="$LIBS"
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */
11235 char pth_version();
11241 if { (eval echo configure:11242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11243 eval "ac_cv_lib_$ac_lib_var=yes"
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 eval "ac_cv_lib_$ac_lib_var=no"
11251 LIBS="$ac_save_LIBS"
11254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11255 echo "$ac_t""yes" 1>&6
11258 echo "$ac_t""no" 1>&6
11263 if test $have_pth = yes ; then
11264 cat >> confdefs.h <<\EOF
11265 #define HAVE_GNU_PTH 1
11268 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11269 ol_link_threads=pth
11271 if test $ol_with_yielding_select = auto ; then
11272 ol_with_yielding_select=yes
11278 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11279 -o $ol_with_threads = lwp ; then
11281 for ac_hdr in thread.h synch.h
11283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11285 echo "configure:11286: checking for $ac_hdr" >&5
11286 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11287 echo $ac_n "(cached) $ac_c" 1>&6
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11295 { (eval echo configure:11296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11297 if test -z "$ac_err"; then
11299 eval "ac_cv_header_$ac_safe=yes"
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11305 eval "ac_cv_header_$ac_safe=no"
11309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11310 echo "$ac_t""yes" 1>&6
11311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11312 cat >> confdefs.h <<EOF
11313 #define $ac_tr_hdr 1
11317 echo "$ac_t""no" 1>&6
11321 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11322 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11323 echo "configure:11324: checking for thr_create in -lthread" >&5
11324 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11326 echo $ac_n "(cached) $ac_c" 1>&6
11328 ac_save_LIBS="$LIBS"
11329 LIBS="-lthread $LIBS"
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11333 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11342 if { (eval echo configure:11343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11344 eval "ac_cv_lib_$ac_lib_var=yes"
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11349 eval "ac_cv_lib_$ac_lib_var=no"
11352 LIBS="$ac_save_LIBS"
11355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11356 echo "$ac_t""yes" 1>&6
11359 echo "$ac_t""no" 1>&6
11364 if test $have_thr = yes ; then
11365 cat >> confdefs.h <<\EOF
11369 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11370 ol_link_threads=thr
11372 if test $ol_with_yielding_select = auto ; then
11373 ol_with_yielding_select=yes
11377 thr_setconcurrency \
11378 thr_getconcurrency \
11381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11382 echo "configure:11383: checking for $ac_func" >&5
11383 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11386 cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11389 /* System header to define __stub macros and hopefully few prototypes,
11390 which can conflict with char $ac_func(); below. */
11391 #include <assert.h>
11392 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11400 /* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11413 eval "ac_cv_func_$ac_func=yes"
11415 echo "configure: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11418 eval "ac_cv_func_$ac_func=no"
11423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11426 cat >> confdefs.h <<EOF
11427 #define $ac_tr_func 1
11431 echo "$ac_t""no" 1>&6
11438 for ac_hdr in lwp/lwp.h
11440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11442 echo "configure:11443: checking for $ac_hdr" >&5
11443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11444 echo $ac_n "(cached) $ac_c" 1>&6
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11452 { (eval echo configure:11453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11454 if test -z "$ac_err"; then
11456 eval "ac_cv_header_$ac_safe=yes"
11459 echo "configure: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11462 eval "ac_cv_header_$ac_safe=no"
11466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11467 echo "$ac_t""yes" 1>&6
11468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11469 cat >> confdefs.h <<EOF
11470 #define $ac_tr_hdr 1
11474 echo "$ac_t""no" 1>&6
11478 if test $ac_cv_header_lwp_lwp_h = yes ; then
11479 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11480 echo "configure:11481: checking for lwp_create in -llwp" >&5
11481 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11483 echo $ac_n "(cached) $ac_c" 1>&6
11485 ac_save_LIBS="$LIBS"
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 /* Override any gcc2 internal prototype to avoid an error. */
11491 /* We use char because int might match the return type of a gcc2
11492 builtin and then its argument prototype would still apply. */
11499 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11501 eval "ac_cv_lib_$ac_lib_var=yes"
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11506 eval "ac_cv_lib_$ac_lib_var=no"
11509 LIBS="$ac_save_LIBS"
11512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11516 echo "$ac_t""no" 1>&6
11521 if test $have_lwp = yes ; then
11522 cat >> confdefs.h <<\EOF
11526 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11527 ol_link_threads=lwp
11529 if test $ol_with_yielding_select = auto ; then
11530 ol_with_yielding_select=no
11536 if test $ol_with_yielding_select = yes ; then
11537 cat >> confdefs.h <<\EOF
11538 #define HAVE_YIELDING_SELECT 1
11543 if test $ol_with_threads = manual ; then
11544 ol_link_threads=yes
11546 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11548 for ac_hdr in pthread.h sched.h
11550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11552 echo "configure:11553: checking for $ac_hdr" >&5
11553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11562 { (eval echo configure:11563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11564 if test -z "$ac_err"; then
11566 eval "ac_cv_header_$ac_safe=yes"
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 eval "ac_cv_header_$ac_safe=no"
11576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11577 echo "$ac_t""yes" 1>&6
11578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11579 cat >> confdefs.h <<EOF
11580 #define $ac_tr_hdr 1
11584 echo "$ac_t""no" 1>&6
11588 for ac_func in sched_yield pthread_yield
11590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11591 echo "configure:11592: checking for $ac_func" >&5
11592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11598 /* System header to define __stub macros and hopefully few prototypes,
11599 which can conflict with char $ac_func(); below. */
11600 #include <assert.h>
11601 /* Override any gcc2 internal prototype to avoid an error. */
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11620 if { (eval echo configure:11621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11622 eval "ac_cv_func_$ac_func=yes"
11624 echo "configure: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11627 eval "ac_cv_func_$ac_func=no"
11632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11633 echo "$ac_t""yes" 1>&6
11634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11635 cat >> confdefs.h <<EOF
11636 #define $ac_tr_func 1
11640 echo "$ac_t""no" 1>&6
11645 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11646 echo "configure:11647: checking for LinuxThreads pthread.h" >&5
11647 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include <pthread.h>
11655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11656 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11658 ol_cv_header_linux_threads=yes
11661 ol_cv_header_linux_threads=no
11668 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11669 if test $ol_cv_header_linux_threads = yes; then
11670 cat >> confdefs.h <<\EOF
11671 #define HAVE_LINUX_THREADS 1
11677 for ac_hdr in mach/cthreads.h
11679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_hdr" >&5
11682 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11691 { (eval echo configure:11692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11693 if test -z "$ac_err"; then
11695 eval "ac_cv_header_$ac_safe=yes"
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11701 eval "ac_cv_header_$ac_safe=no"
11705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11706 echo "$ac_t""yes" 1>&6
11707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11708 cat >> confdefs.h <<EOF
11709 #define $ac_tr_hdr 1
11713 echo "$ac_t""no" 1>&6
11717 for ac_hdr in lwp/lwp.h
11719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11721 echo "configure:11722: checking for $ac_hdr" >&5
11722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11725 cat > conftest.$ac_ext <<EOF
11726 #line 11727 "configure"
11727 #include "confdefs.h"
11730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11731 { (eval echo configure:11732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11733 if test -z "$ac_err"; then
11735 eval "ac_cv_header_$ac_safe=yes"
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11741 eval "ac_cv_header_$ac_safe=no"
11745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6
11747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11748 cat >> confdefs.h <<EOF
11749 #define $ac_tr_hdr 1
11753 echo "$ac_t""no" 1>&6
11757 for ac_hdr in thread.h synch.h
11759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11761 echo "configure:11762: checking for $ac_hdr" >&5
11762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11763 echo $ac_n "(cached) $ac_c" 1>&6
11765 cat > conftest.$ac_ext <<EOF
11766 #line 11767 "configure"
11767 #include "confdefs.h"
11770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11771 { (eval echo configure:11772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11773 if test -z "$ac_err"; then
11775 eval "ac_cv_header_$ac_safe=yes"
11778 echo "configure: failed program was:" >&5
11779 cat conftest.$ac_ext >&5
11781 eval "ac_cv_header_$ac_safe=no"
11785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11786 echo "$ac_t""yes" 1>&6
11787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11788 cat >> confdefs.h <<EOF
11789 #define $ac_tr_hdr 1
11793 echo "$ac_t""no" 1>&6
11799 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11800 cat >> confdefs.h <<\EOF
11801 #define REENTRANT 1
11804 cat >> confdefs.h <<\EOF
11805 #define _REENTRANT 1
11808 cat >> confdefs.h <<\EOF
11809 #define THREAD_SAFE 1
11812 cat >> confdefs.h <<\EOF
11813 #define _THREAD_SAFE 1
11816 cat >> confdefs.h <<\EOF
11817 #define THREADSAFE 1
11820 cat >> confdefs.h <<\EOF
11821 #define _THREADSAFE 1
11824 cat >> confdefs.h <<\EOF
11825 #define _SGI_MP_SOURCE 1
11829 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11830 echo "configure:11831: checking for thread specific errno" >&5
11831 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11835 cat > conftest.$ac_ext <<EOF
11836 #line 11837 "configure"
11837 #include "confdefs.h"
11843 if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845 ol_cv_errno_thread_specific=yes
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 ol_cv_errno_thread_specific=no
11856 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11858 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11859 echo "configure:11860: checking for thread specific h_errno" >&5
11860 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11864 cat > conftest.$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11872 if { (eval echo configure:11873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 ol_cv_h_errno_thread_specific=yes
11876 echo "configure: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11879 ol_cv_h_errno_thread_specific=no
11885 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11887 if test $ol_cv_errno_thread_specific != yes \
11888 -o $ol_cv_h_errno_thread_specific != yes ; then
11889 LIBS="$LTHREAD_LIBS $LIBS"
11895 if test $ol_link_threads = no ; then
11896 if test $ol_with_threads = yes ; then
11897 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11900 if test $ol_with_threads = auto ; then
11901 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11905 cat >> confdefs.h <<\EOF
11906 #define NO_THREADS 1
11912 if test $ol_link_threads != no ; then
11913 cat >> confdefs.h <<\EOF
11914 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11921 if test $ol_with_ldbm_api = auto \
11922 -o $ol_with_ldbm_api = berkeley \
11923 -o $ol_with_ldbm_api = bcompat ; then
11925 if test $ol_with_ldbm_api = bcompat; then \
11926 ol_cv_berkeley_db=no
11927 for ac_hdr in db_185.h db.h
11929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11931 echo "configure:11932: checking for $ac_hdr" >&5
11932 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
11935 cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11941 { (eval echo configure:11942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11943 if test -z "$ac_err"; then
11945 eval "ac_cv_header_$ac_safe=yes"
11948 echo "configure: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11951 eval "ac_cv_header_$ac_safe=no"
11955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11956 echo "$ac_t""yes" 1>&6
11957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11958 cat >> confdefs.h <<EOF
11959 #define $ac_tr_hdr 1
11963 echo "$ac_t""no" 1>&6
11967 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11968 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11969 echo "configure:11970: checking if Berkeley DB header compatibility" >&5
11970 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11971 echo $ac_n "(cached) $ac_c" 1>&6
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11979 # include <db_185.h>
11984 /* this check could be improved */
11985 #ifndef DB_VERSION_MAJOR
11986 # define DB_VERSION_MAJOR 1
11989 #if DB_VERSION_MAJOR == 1
11994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11995 egrep "__db_version_1" >/dev/null 2>&1; then
11997 ol_cv_header_db1=yes
12000 ol_cv_header_db1=no
12006 echo "$ac_t""$ol_cv_header_db1" 1>&6
12008 if test ol_cv_header_db1=yes ; then
12010 if test $ol_cv_lib_db = no ; then
12011 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12012 echo "configure:12013: checking for Berkeley DB link (default)" >&5
12013 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12019 LIBS="$ol_DB_LIB $LIBS"
12021 cat > conftest.$ac_ext <<EOF
12022 #line 12023 "configure"
12023 #include "confdefs.h"
12025 #ifdef HAVE_DB_185_H
12026 # include <db_185.h>
12031 #ifndef DB_VERSION_MAJOR
12032 # define DB_VERSION_MAJOR 1
12036 #define NULL ((void*)0)
12041 #if DB_VERSION_MAJOR > 1
12044 int major, minor, patch;
12046 version = db_version( &major, &minor, &patch );
12048 if( major != DB_VERSION_MAJOR ||
12049 minor < DB_VERSION_MINOR )
12051 printf("Berkeley DB version mismatch\n"
12052 "\texpected: %s\n\tgot: %s\n",
12053 DB_VERSION_STRING, version);
12059 #if DB_VERSION_MAJOR > 2
12060 db_env_create( NULL, 0 );
12061 #elif DB_VERSION_MAJOR > 1
12062 db_appexit( NULL );
12064 (void) dbopen( NULL, 0, 0, 0, NULL);
12069 if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12084 echo "$ac_t""$ol_cv_db_none" 1>&6
12086 if test $ol_cv_db_none = yes ; then
12091 if test $ol_cv_lib_db = no ; then
12092 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12093 echo "configure:12094: checking for Berkeley DB link (-ldb)" >&5
12094 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12095 echo $ac_n "(cached) $ac_c" 1>&6
12100 LIBS="$ol_DB_LIB $LIBS"
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12106 #ifdef HAVE_DB_185_H
12107 # include <db_185.h>
12112 #ifndef DB_VERSION_MAJOR
12113 # define DB_VERSION_MAJOR 1
12117 #define NULL ((void*)0)
12122 #if DB_VERSION_MAJOR > 1
12125 int major, minor, patch;
12127 version = db_version( &major, &minor, &patch );
12129 if( major != DB_VERSION_MAJOR ||
12130 minor < DB_VERSION_MINOR )
12132 printf("Berkeley DB version mismatch\n"
12133 "\texpected: %s\n\tgot: %s\n",
12134 DB_VERSION_STRING, version);
12140 #if DB_VERSION_MAJOR > 2
12141 db_env_create( NULL, 0 );
12142 #elif DB_VERSION_MAJOR > 1
12143 db_appexit( NULL );
12145 (void) dbopen( NULL, 0, 0, 0, NULL);
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12165 echo "$ac_t""$ol_cv_db_db" 1>&6
12167 if test $ol_cv_db_db = yes ; then
12172 if test $ol_cv_lib_db = no ; then
12173 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12174 echo "configure:12175: checking for Berkeley DB link (-ldb3)" >&5
12175 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12176 echo $ac_n "(cached) $ac_c" 1>&6
12181 LIBS="$ol_DB_LIB $LIBS"
12183 cat > conftest.$ac_ext <<EOF
12184 #line 12185 "configure"
12185 #include "confdefs.h"
12187 #ifdef HAVE_DB_185_H
12188 # include <db_185.h>
12193 #ifndef DB_VERSION_MAJOR
12194 # define DB_VERSION_MAJOR 1
12198 #define NULL ((void*)0)
12203 #if DB_VERSION_MAJOR > 1
12206 int major, minor, patch;
12208 version = db_version( &major, &minor, &patch );
12210 if( major != DB_VERSION_MAJOR ||
12211 minor < DB_VERSION_MINOR )
12213 printf("Berkeley DB version mismatch\n"
12214 "\texpected: %s\n\tgot: %s\n",
12215 DB_VERSION_STRING, version);
12221 #if DB_VERSION_MAJOR > 2
12222 db_env_create( NULL, 0 );
12223 #elif DB_VERSION_MAJOR > 1
12224 db_appexit( NULL );
12226 (void) dbopen( NULL, 0, 0, 0, NULL);
12231 if { (eval echo configure:12232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12246 echo "$ac_t""$ol_cv_db_db3" 1>&6
12248 if test $ol_cv_db_db3 = yes ; then
12253 if test $ol_cv_lib_db = no ; then
12254 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12255 echo "configure:12256: checking for Berkeley DB link (-ldb2)" >&5
12256 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12257 echo $ac_n "(cached) $ac_c" 1>&6
12262 LIBS="$ol_DB_LIB $LIBS"
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12268 #ifdef HAVE_DB_185_H
12269 # include <db_185.h>
12274 #ifndef DB_VERSION_MAJOR
12275 # define DB_VERSION_MAJOR 1
12279 #define NULL ((void*)0)
12284 #if DB_VERSION_MAJOR > 1
12287 int major, minor, patch;
12289 version = db_version( &major, &minor, &patch );
12291 if( major != DB_VERSION_MAJOR ||
12292 minor < DB_VERSION_MINOR )
12294 printf("Berkeley DB version mismatch\n"
12295 "\texpected: %s\n\tgot: %s\n",
12296 DB_VERSION_STRING, version);
12302 #if DB_VERSION_MAJOR > 2
12303 db_env_create( NULL, 0 );
12304 #elif DB_VERSION_MAJOR > 1
12305 db_appexit( NULL );
12307 (void) dbopen( NULL, 0, 0, 0, NULL);
12312 if { (eval echo configure:12313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12316 echo "configure: failed program was:" >&5
12317 cat conftest.$ac_ext >&5
12327 echo "$ac_t""$ol_cv_db_db2" 1>&6
12329 if test $ol_cv_db_db2 = yes ; then
12334 if test $ol_cv_lib_db = no ; then
12335 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12336 echo "configure:12337: checking for Berkeley DB link (-ldb1)" >&5
12337 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
12343 LIBS="$ol_DB_LIB $LIBS"
12345 cat > conftest.$ac_ext <<EOF
12346 #line 12347 "configure"
12347 #include "confdefs.h"
12349 #ifdef HAVE_DB_185_H
12350 # include <db_185.h>
12355 #ifndef DB_VERSION_MAJOR
12356 # define DB_VERSION_MAJOR 1
12360 #define NULL ((void*)0)
12365 #if DB_VERSION_MAJOR > 1
12368 int major, minor, patch;
12370 version = db_version( &major, &minor, &patch );
12372 if( major != DB_VERSION_MAJOR ||
12373 minor < DB_VERSION_MINOR )
12375 printf("Berkeley DB version mismatch\n"
12376 "\texpected: %s\n\tgot: %s\n",
12377 DB_VERSION_STRING, version);
12383 #if DB_VERSION_MAJOR > 2
12384 db_env_create( NULL, 0 );
12385 #elif DB_VERSION_MAJOR > 1
12386 db_appexit( NULL );
12388 (void) dbopen( NULL, 0, 0, 0, NULL);
12393 if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12397 echo "configure: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12408 echo "$ac_t""$ol_cv_db_db1" 1>&6
12410 if test $ol_cv_db_db1 = yes ; then
12416 if test "$ol_cv_lib_db" != no ; then
12417 ol_cv_berkeley_db=yes
12423 ol_cv_berkeley_db=no
12426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12428 echo "configure:12429: checking for $ac_hdr" >&5
12429 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12432 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure"
12434 #include "confdefs.h"
12437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12438 { (eval echo configure:12439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12440 if test -z "$ac_err"; then
12442 eval "ac_cv_header_$ac_safe=yes"
12445 echo "configure: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12448 eval "ac_cv_header_$ac_safe=no"
12452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12455 cat >> confdefs.h <<EOF
12456 #define $ac_tr_hdr 1
12460 echo "$ac_t""no" 1>&6
12464 if test $ac_cv_header_db_h = yes; then
12466 if test $ol_cv_lib_db = no ; then
12467 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12468 echo "configure:12469: checking for Berkeley DB link (default)" >&5
12469 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12470 echo $ac_n "(cached) $ac_c" 1>&6
12475 LIBS="$ol_DB_LIB $LIBS"
12477 cat > conftest.$ac_ext <<EOF
12478 #line 12479 "configure"
12479 #include "confdefs.h"
12481 #ifdef HAVE_DB_185_H
12482 # include <db_185.h>
12487 #ifndef DB_VERSION_MAJOR
12488 # define DB_VERSION_MAJOR 1
12492 #define NULL ((void*)0)
12497 #if DB_VERSION_MAJOR > 1
12500 int major, minor, patch;
12502 version = db_version( &major, &minor, &patch );
12504 if( major != DB_VERSION_MAJOR ||
12505 minor < DB_VERSION_MINOR )
12507 printf("Berkeley DB version mismatch\n"
12508 "\texpected: %s\n\tgot: %s\n",
12509 DB_VERSION_STRING, version);
12515 #if DB_VERSION_MAJOR > 2
12516 db_env_create( NULL, 0 );
12517 #elif DB_VERSION_MAJOR > 1
12518 db_appexit( NULL );
12520 (void) dbopen( NULL, 0, 0, 0, NULL);
12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12529 echo "configure: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12540 echo "$ac_t""$ol_cv_db_none" 1>&6
12542 if test $ol_cv_db_none = yes ; then
12547 if test $ol_cv_lib_db = no ; then
12548 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12549 echo "configure:12550: checking for Berkeley DB link (-ldb)" >&5
12550 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12551 echo $ac_n "(cached) $ac_c" 1>&6
12556 LIBS="$ol_DB_LIB $LIBS"
12558 cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12562 #ifdef HAVE_DB_185_H
12563 # include <db_185.h>
12568 #ifndef DB_VERSION_MAJOR
12569 # define DB_VERSION_MAJOR 1
12573 #define NULL ((void*)0)
12578 #if DB_VERSION_MAJOR > 1
12581 int major, minor, patch;
12583 version = db_version( &major, &minor, &patch );
12585 if( major != DB_VERSION_MAJOR ||
12586 minor < DB_VERSION_MINOR )
12588 printf("Berkeley DB version mismatch\n"
12589 "\texpected: %s\n\tgot: %s\n",
12590 DB_VERSION_STRING, version);
12596 #if DB_VERSION_MAJOR > 2
12597 db_env_create( NULL, 0 );
12598 #elif DB_VERSION_MAJOR > 1
12599 db_appexit( NULL );
12601 (void) dbopen( NULL, 0, 0, 0, NULL);
12606 if { (eval echo configure:12607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12621 echo "$ac_t""$ol_cv_db_db" 1>&6
12623 if test $ol_cv_db_db = yes ; then
12628 if test $ol_cv_lib_db = no ; then
12629 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12630 echo "configure:12631: checking for Berkeley DB link (-ldb3)" >&5
12631 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12632 echo $ac_n "(cached) $ac_c" 1>&6
12637 LIBS="$ol_DB_LIB $LIBS"
12639 cat > conftest.$ac_ext <<EOF
12640 #line 12641 "configure"
12641 #include "confdefs.h"
12643 #ifdef HAVE_DB_185_H
12644 # include <db_185.h>
12649 #ifndef DB_VERSION_MAJOR
12650 # define DB_VERSION_MAJOR 1
12654 #define NULL ((void*)0)
12659 #if DB_VERSION_MAJOR > 1
12662 int major, minor, patch;
12664 version = db_version( &major, &minor, &patch );
12666 if( major != DB_VERSION_MAJOR ||
12667 minor < DB_VERSION_MINOR )
12669 printf("Berkeley DB version mismatch\n"
12670 "\texpected: %s\n\tgot: %s\n",
12671 DB_VERSION_STRING, version);
12677 #if DB_VERSION_MAJOR > 2
12678 db_env_create( NULL, 0 );
12679 #elif DB_VERSION_MAJOR > 1
12680 db_appexit( NULL );
12682 (void) dbopen( NULL, 0, 0, 0, NULL);
12687 if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12702 echo "$ac_t""$ol_cv_db_db3" 1>&6
12704 if test $ol_cv_db_db3 = yes ; then
12709 if test $ol_cv_lib_db = no ; then
12710 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12711 echo "configure:12712: checking for Berkeley DB link (-ldb2)" >&5
12712 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12718 LIBS="$ol_DB_LIB $LIBS"
12720 cat > conftest.$ac_ext <<EOF
12721 #line 12722 "configure"
12722 #include "confdefs.h"
12724 #ifdef HAVE_DB_185_H
12725 # include <db_185.h>
12730 #ifndef DB_VERSION_MAJOR
12731 # define DB_VERSION_MAJOR 1
12735 #define NULL ((void*)0)
12740 #if DB_VERSION_MAJOR > 1
12743 int major, minor, patch;
12745 version = db_version( &major, &minor, &patch );
12747 if( major != DB_VERSION_MAJOR ||
12748 minor < DB_VERSION_MINOR )
12750 printf("Berkeley DB version mismatch\n"
12751 "\texpected: %s\n\tgot: %s\n",
12752 DB_VERSION_STRING, version);
12758 #if DB_VERSION_MAJOR > 2
12759 db_env_create( NULL, 0 );
12760 #elif DB_VERSION_MAJOR > 1
12761 db_appexit( NULL );
12763 (void) dbopen( NULL, 0, 0, 0, NULL);
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12783 echo "$ac_t""$ol_cv_db_db2" 1>&6
12785 if test $ol_cv_db_db2 = yes ; then
12790 if test $ol_cv_lib_db = no ; then
12791 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12792 echo "configure:12793: checking for Berkeley DB link (-ldb1)" >&5
12793 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12794 echo $ac_n "(cached) $ac_c" 1>&6
12799 LIBS="$ol_DB_LIB $LIBS"
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12805 #ifdef HAVE_DB_185_H
12806 # include <db_185.h>
12811 #ifndef DB_VERSION_MAJOR
12812 # define DB_VERSION_MAJOR 1
12816 #define NULL ((void*)0)
12821 #if DB_VERSION_MAJOR > 1
12824 int major, minor, patch;
12826 version = db_version( &major, &minor, &patch );
12828 if( major != DB_VERSION_MAJOR ||
12829 minor < DB_VERSION_MINOR )
12831 printf("Berkeley DB version mismatch\n"
12832 "\texpected: %s\n\tgot: %s\n",
12833 DB_VERSION_STRING, version);
12839 #if DB_VERSION_MAJOR > 2
12840 db_env_create( NULL, 0 );
12841 #elif DB_VERSION_MAJOR > 1
12842 db_appexit( NULL );
12844 (void) dbopen( NULL, 0, 0, 0, NULL);
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12864 echo "$ac_t""$ol_cv_db_db1" 1>&6
12866 if test $ol_cv_db_db1 = yes ; then
12872 if test "$ol_cv_lib_db" != no ; then
12873 ol_cv_berkeley_db=yes
12874 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12875 echo "configure:12876: checking for Berkeley DB thread support" >&5
12876 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12877 echo $ac_n "(cached) $ac_c" 1>&6
12881 if test $ol_cv_lib_db != yes ; then
12882 LIBS="$ol_cv_lib_db"
12885 if test "$cross_compiling" = yes; then
12886 ol_cv_berkeley_db_thread=cross
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12890 "configure"
12890 #include "confdefs.h"
12892 #ifdef HAVE_DB_185_H
12898 #define NULL ((void *)0)
12903 u_int32_t flags = DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL |
12907 #ifdef DB_MPOOL_PRIVATE
12912 #if DB_VERSION_MAJOR > 2
12913 DB_ENV *env = NULL;
12915 rc = db_env_create( &env, 0 );
12918 printf("BerkeleyDB: %s\n", db_strerror(rc) );
12922 #ifdef DB_CDB_ALLDB
12923 rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
12928 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12929 rc = env->open( env, NULL, flags, 0 );
12931 rc = env->open( env, NULL, NULL, flags, 0 );
12936 printf("BerkeleyDB: %s\n", db_strerror(rc) );
12940 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12941 env->remove( env, NULL, DB_FORCE );
12943 env->remove( env, NULL, NULL, DB_FORCE );
12948 memset( &env, '\0', sizeof(env) );
12950 rc = db_appinit( NULL, NULL, &env, flags );
12953 db_appexit( &env );
12956 unlink("__db_mpool.share");
12957 unlink("__db_lock.share");
12963 if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12965 ol_cv_berkeley_db_thread=yes
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12970 ol_cv_berkeley_db_thread=no
12978 if test $ol_cv_berkeley_db_thread != no ; then
12979 cat >> confdefs.h <<\EOF
12980 #define HAVE_BERKELEY_DB_THREAD 1
12987 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12993 if test $ol_cv_berkeley_db != no ; then
12994 cat >> confdefs.h <<\EOF
12995 #define HAVE_BERKELEY_DB 1
12999 ol_link_ldbm=berkeley
13000 ol_with_ldbm_api=db
13002 if test $ol_with_ldbm_type = hash ; then
13003 cat >> confdefs.h <<\EOF
13004 #define LDBM_USE_DBHASH 1
13008 cat >> confdefs.h <<\EOF
13009 #define LDBM_USE_DBBTREE 1
13014 if test $ol_cv_lib_db != yes ; then
13015 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13020 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13021 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13022 ol_with_ldbm_api=none
13025 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13026 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13027 echo "configure:13028: checking for MDBM library" >&5
13028 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13029 echo $ac_n "(cached) $ac_c" 1>&6
13032 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13033 echo "configure:13034: checking for mdbm_set_chain" >&5
13034 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13035 echo $ac_n "(cached) $ac_c" 1>&6
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040 /* System header to define __stub macros and hopefully few prototypes,
13041 which can conflict with char mdbm_set_chain(); below. */
13042 #include <assert.h>
13043 /* Override any gcc2 internal prototype to avoid an error. */
13044 /* We use char because int might match the return type of a gcc2
13045 builtin and then its argument prototype would still apply. */
13046 char mdbm_set_chain();
13051 /* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13057 f = mdbm_set_chain;
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 eval "ac_cv_func_mdbm_set_chain=yes"
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 eval "ac_cv_func_mdbm_set_chain=no"
13074 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13075 echo "$ac_t""yes" 1>&6
13078 echo "$ac_t""no" 1>&6
13080 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13081 echo "configure:13082: checking for mdbm_set_chain in -lmdbm" >&5
13082 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13083 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 ac_save_LIBS="$LIBS"
13087 LIBS="-lmdbm $LIBS"
13088 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure"
13090 #include "confdefs.h"
13091 /* Override any gcc2 internal prototype to avoid an error. */
13092 /* We use char because int might match the return type of a gcc2
13093 builtin and then its argument prototype would still apply. */
13094 char mdbm_set_chain();
13100 if { (eval echo configure:13101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13102 eval "ac_cv_lib_$ac_lib_var=yes"
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13107 eval "ac_cv_lib_$ac_lib_var=no"
13110 LIBS="$ac_save_LIBS"
13113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13114 echo "$ac_t""yes" 1>&6
13115 ol_cv_lib_mdbm=-lmdbm
13117 echo "$ac_t""no" 1>&6
13128 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13131 for ac_hdr in mdbm.h
13133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13135 echo "configure:13136: checking for $ac_hdr" >&5
13136 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13137 echo $ac_n "(cached) $ac_c" 1>&6
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13145 { (eval echo configure:13146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13147 if test -z "$ac_err"; then
13149 eval "ac_cv_header_$ac_safe=yes"
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 eval "ac_cv_header_$ac_safe=no"
13159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13160 echo "$ac_t""yes" 1>&6
13161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13162 cat >> confdefs.h <<EOF
13163 #define $ac_tr_hdr 1
13167 echo "$ac_t""no" 1>&6
13171 echo $ac_n "checking for db""... $ac_c" 1>&6
13172 echo "configure:13173: checking for db" >&5
13173 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13177 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13185 echo "$ac_t""$ol_cv_mdbm" 1>&6
13186 if test $ol_cv_mdbm = yes ; then
13187 cat >> confdefs.h <<\EOF
13188 #define HAVE_MDBM 1
13194 if test $ol_cv_mdbm = yes ; then
13196 ol_with_ldbm_api=mdbm
13197 if test $ol_cv_lib_mdbm != yes ; then
13198 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13203 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13204 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13205 echo "configure:13206: checking for GDBM library" >&5
13206 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13207 echo $ac_n "(cached) $ac_c" 1>&6
13210 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13211 echo "configure:13212: checking for gdbm_open" >&5
13212 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* System header to define __stub macros and hopefully few prototypes,
13219 which can conflict with char gdbm_open(); below. */
13220 #include <assert.h>
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 /* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13229 /* The GNU C library defines this for functions which it implements
13230 to always fail with ENOSYS. Some functions are actually named
13231 something starting with __ and the normal name is an alias. */
13232 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13240 if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13242 eval "ac_cv_func_gdbm_open=yes"
13244 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13247 eval "ac_cv_func_gdbm_open=no"
13252 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13256 echo "$ac_t""no" 1>&6
13258 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13259 echo "configure:13260: checking for gdbm_open in -lgdbm" >&5
13260 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13261 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13262 echo $ac_n "(cached) $ac_c" 1>&6
13264 ac_save_LIBS="$LIBS"
13265 LIBS="-lgdbm $LIBS"
13266 cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13269 /* Override any gcc2 internal prototype to avoid an error. */
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13278 if { (eval echo configure:13279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13280 eval "ac_cv_lib_$ac_lib_var=yes"
13282 echo "configure: failed program was:" >&5
13283 cat conftest.$ac_ext >&5
13285 eval "ac_cv_lib_$ac_lib_var=no"
13288 LIBS="$ac_save_LIBS"
13291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13292 echo "$ac_t""yes" 1>&6
13293 ol_cv_lib_gdbm=-lgdbm
13295 echo "$ac_t""no" 1>&6
13306 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13309 for ac_hdr in gdbm.h
13311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13313 echo "configure:13314: checking for $ac_hdr" >&5
13314 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13317 cat > conftest.$ac_ext <<EOF
13318 #line 13319 "configure"
13319 #include "confdefs.h"
13322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13323 { (eval echo configure:13324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13325 if test -z "$ac_err"; then
13327 eval "ac_cv_header_$ac_safe=yes"
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13333 eval "ac_cv_header_$ac_safe=no"
13337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13338 echo "$ac_t""yes" 1>&6
13339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13340 cat >> confdefs.h <<EOF
13341 #define $ac_tr_hdr 1
13345 echo "$ac_t""no" 1>&6
13349 echo $ac_n "checking for db""... $ac_c" 1>&6
13350 echo "configure:13351: checking for db" >&5
13351 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
13355 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13363 echo "$ac_t""$ol_cv_gdbm" 1>&6
13364 if test $ol_cv_gdbm = yes ; then
13365 cat >> confdefs.h <<\EOF
13366 #define HAVE_GDBM 1
13372 if test $ol_cv_gdbm = yes ; then
13374 ol_with_ldbm_api=gdbm
13376 if test $ol_cv_lib_gdbm != yes ; then
13377 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13382 if test $ol_with_ldbm_api = ndbm ; then
13383 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13384 echo "configure:13385: checking for NDBM library" >&5
13385 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13386 echo $ac_n "(cached) $ac_c" 1>&6
13389 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13390 echo "configure:13391: checking for dbm_open" >&5
13391 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13394 cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 /* System header to define __stub macros and hopefully few prototypes,
13398 which can conflict with char dbm_open(); below. */
13399 #include <assert.h>
13400 /* Override any gcc2 internal prototype to avoid an error. */
13401 /* We use char because int might match the return type of a gcc2
13402 builtin and then its argument prototype would still apply. */
13408 /* The GNU C library defines this for functions which it implements
13409 to always fail with ENOSYS. Some functions are actually named
13410 something starting with __ and the normal name is an alias. */
13411 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13419 if { (eval echo configure:13420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421 eval "ac_cv_func_dbm_open=yes"
13423 echo "configure: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13426 eval "ac_cv_func_dbm_open=no"
13431 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13432 echo "$ac_t""yes" 1>&6
13435 echo "$ac_t""no" 1>&6
13437 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13438 echo "configure:13439: checking for dbm_open in -lndbm" >&5
13439 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13443 ac_save_LIBS="$LIBS"
13444 LIBS="-lndbm $LIBS"
13445 cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13448 /* Override any gcc2 internal prototype to avoid an error. */
13449 /* We use char because int might match the return type of a gcc2
13450 builtin and then its argument prototype would still apply. */
13457 if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13459 eval "ac_cv_lib_$ac_lib_var=yes"
13461 echo "configure: failed program was:" >&5
13462 cat conftest.$ac_ext >&5
13464 eval "ac_cv_lib_$ac_lib_var=no"
13467 LIBS="$ac_save_LIBS"
13470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13471 echo "$ac_t""yes" 1>&6
13472 ol_cv_lib_ndbm=-lndbm
13474 echo "$ac_t""no" 1>&6
13476 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13477 echo "configure:13478: checking for dbm_open in -ldbm" >&5
13478 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13480 echo $ac_n "(cached) $ac_c" 1>&6
13482 ac_save_LIBS="$LIBS"
13484 cat > conftest.$ac_ext <<EOF
13485 #line 13486 "configure"
13486 #include "confdefs.h"
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13496 if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 eval "ac_cv_lib_$ac_lib_var=yes"
13500 echo "configure: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13503 eval "ac_cv_lib_$ac_lib_var=no"
13506 LIBS="$ac_save_LIBS"
13509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13510 echo "$ac_t""yes" 1>&6
13511 ol_cv_lib_ndbm=-ldbm
13513 echo "$ac_t""no" 1>&6
13526 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13529 for ac_hdr in ndbm.h
13531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13533 echo "configure:13534: checking for $ac_hdr" >&5
13534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13543 { (eval echo configure:13544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13545 if test -z "$ac_err"; then
13547 eval "ac_cv_header_$ac_safe=yes"
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13553 eval "ac_cv_header_$ac_safe=no"
13557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13560 cat >> confdefs.h <<EOF
13561 #define $ac_tr_hdr 1
13565 echo "$ac_t""no" 1>&6
13569 echo $ac_n "checking for db""... $ac_c" 1>&6
13570 echo "configure:13571: checking for db" >&5
13571 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13575 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13583 echo "$ac_t""$ol_cv_ndbm" 1>&6
13584 if test $ol_cv_ndbm = yes ; then
13585 cat >> confdefs.h <<\EOF
13586 #define HAVE_NDBM 1
13592 if test $ol_cv_ndbm = yes ; then
13594 ol_with_ldbm_api=ndbm
13596 if test $ol_cv_lib_ndbm != yes ; then
13597 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13602 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13603 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13604 if test $ol_enable_ldbm = yes ; then
13605 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13608 echo "configure: warning: disabling LDBM" 1>&2
13612 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13613 LINK_BINS_DYNAMIC="yes"
13615 LINK_BINS_DYNAMIC="no"
13618 if test $ol_enable_wrappers != no ; then
13619 for ac_hdr in tcpd.h
13621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13623 echo "configure:13624: checking for $ac_hdr" >&5
13624 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13625 echo $ac_n "(cached) $ac_c" 1>&6
13627 cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure"
13629 #include "confdefs.h"
13632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13633 { (eval echo configure:13634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13635 if test -z "$ac_err"; then
13637 eval "ac_cv_header_$ac_safe=yes"
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13643 eval "ac_cv_header_$ac_safe=no"
13647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13648 echo "$ac_t""yes" 1>&6
13649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13650 cat >> confdefs.h <<EOF
13651 #define $ac_tr_hdr 1
13655 echo "$ac_t""no" 1>&6
13660 if test $ac_cv_header_tcpd_h != yes ; then
13663 cat > conftest.$ac_ext <<EOF
13664 #line 13665 "configure"
13665 #include "confdefs.h"
13667 int allow_severity = 0;
13668 int deny_severity = 0;
13674 if { (eval echo configure:13675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13686 if test $have_wrappers = yes ; then
13687 cat >> confdefs.h <<\EOF
13688 #define HAVE_TCPD 1
13693 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13694 echo "configure:13695: checking for main in -lnsl" >&5
13695 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13697 echo $ac_n "(cached) $ac_c" 1>&6
13699 ac_save_LIBS="$LIBS"
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13709 if { (eval echo configure:13710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13711 eval "ac_cv_lib_$ac_lib_var=yes"
13713 echo "configure: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13716 eval "ac_cv_lib_$ac_lib_var=no"
13719 LIBS="$ac_save_LIBS"
13722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13723 echo "$ac_t""yes" 1>&6
13724 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13725 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13726 cat >> confdefs.h <<EOF
13727 #define $ac_tr_lib 1
13733 echo "$ac_t""no" 1>&6
13737 echo "configure: warning: could not find -lwrap" 1>&2
13738 if test $ol_enable_wrappers = yes ; then
13739 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13742 echo "configure: warning: disabling wrappers support" 1>&2
13743 ol_enable_wrappers=no
13748 if test $ol_enable_syslog != no ; then
13749 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13750 echo "configure:13751: checking for openlog" >&5
13751 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13752 echo $ac_n "(cached) $ac_c" 1>&6
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char openlog(); below. */
13759 #include <assert.h>
13760 /* Override any gcc2 internal prototype to avoid an error. */
13761 /* We use char because int might match the return type of a gcc2
13762 builtin and then its argument prototype would still apply. */
13768 /* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771 #if defined (__stub_openlog) || defined (__stub___openlog)
13779 if { (eval echo configure:13780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13781 eval "ac_cv_func_openlog=yes"
13783 echo "configure: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13786 eval "ac_cv_func_openlog=no"
13791 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13792 echo "$ac_t""yes" 1>&6
13795 echo "$ac_t""no" 1>&6
13798 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13799 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13801 ol_enable_syslog=$ac_cv_func_openlog
13806 if test $ol_enable_sql != no ; then
13807 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13808 echo "configure:13809: checking for SQLDriverConnect in -liodbc" >&5
13809 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13810 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
13813 ac_save_LIBS="$LIBS"
13814 LIBS="-liodbc $LIBS"
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char SQLDriverConnect();
13827 if { (eval echo configure:13828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13829 eval "ac_cv_lib_$ac_lib_var=yes"
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13834 eval "ac_cv_lib_$ac_lib_var=no"
13837 LIBS="$ac_save_LIBS"
13840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13841 echo "$ac_t""yes" 1>&6
13844 echo "$ac_t""no" 1>&6
13848 if test $have_iodbc = yes ; then
13849 ol_link_sql="-liodbc"
13851 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13852 echo "configure:13853: checking for SQLDriverConnect in -lodbc" >&5
13853 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13855 echo $ac_n "(cached) $ac_c" 1>&6
13857 ac_save_LIBS="$LIBS"
13858 LIBS="-lodbc $LIBS"
13859 cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13862 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13865 char SQLDriverConnect();
13871 if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 eval "ac_cv_lib_$ac_lib_var=yes"
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13878 eval "ac_cv_lib_$ac_lib_var=no"
13881 LIBS="$ac_save_LIBS"
13884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13885 echo "$ac_t""yes" 1>&6
13888 echo "$ac_t""no" 1>&6
13892 if test $have_odbc = yes ; then
13893 ol_link_sql="-lodbc"
13897 if test $ol_link_sql != no ; then
13898 SLAPD_SQL_LIBS="$ol_link_sql"
13900 elif test $ol_enable_sql != auto ; then
13901 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13905 if test $ol_enable_tcl != no ; then
13906 for ac_hdr in tcl.h
13908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13910 echo "configure:13911: checking for $ac_hdr" >&5
13911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13912 echo $ac_n "(cached) $ac_c" 1>&6
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13920 { (eval echo configure:13921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13922 if test -z "$ac_err"; then
13924 eval "ac_cv_header_$ac_safe=yes"
13927 echo "configure: failed program was:" >&5
13928 cat conftest.$ac_ext >&5
13930 eval "ac_cv_header_$ac_safe=no"
13934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13937 cat >> confdefs.h <<EOF
13938 #define $ac_tr_hdr 1
13942 echo "$ac_t""no" 1>&6
13947 if test $ac_cv_header_tcl_h != yes ; then
13950 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13951 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13952 echo "configure:13953: checking for main in -l$lib" >&5
13953 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13955 echo $ac_n "(cached) $ac_c" 1>&6
13957 ac_save_LIBS="$LIBS"
13958 LIBS="-l$lib $LIBS"
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13967 if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13969 eval "ac_cv_lib_$ac_lib_var=yes"
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13974 eval "ac_cv_lib_$ac_lib_var=no"
13977 LIBS="$ac_save_LIBS"
13980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13983 if test x"$ol_with_tcl_module" = "xstatic" ; then
13984 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13986 MOD_TCL_LIB="-l${lib}"
13989 echo "$ac_t""no" 1>&6
13996 if test $have_tcl != yes ; then
13997 echo "configure: warning: could not find -ltcl" 1>&2
13998 if test $ol_enable_tcl = yes ; then
13999 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
14007 for ac_hdr in termcap.h ncurses.h
14009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14011 echo "configure:14012: checking for $ac_hdr" >&5
14012 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14021 { (eval echo configure:14022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14023 if test -z "$ac_err"; then
14025 eval "ac_cv_header_$ac_safe=yes"
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14031 eval "ac_cv_header_$ac_safe=no"
14035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14036 echo "$ac_t""yes" 1>&6
14037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14038 cat >> confdefs.h <<EOF
14039 #define $ac_tr_hdr 1
14043 echo "$ac_t""no" 1>&6
14048 if test $ol_link_termcap = no ; then
14049 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14050 echo "configure:14051: checking for tputs in -ltermcap" >&5
14051 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14053 echo $ac_n "(cached) $ac_c" 1>&6
14055 ac_save_LIBS="$LIBS"
14056 LIBS="-ltermcap $LIBS"
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 /* Override any gcc2 internal prototype to avoid an error. */
14061 /* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14069 if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14071 eval "ac_cv_lib_$ac_lib_var=yes"
14073 echo "configure: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14076 eval "ac_cv_lib_$ac_lib_var=no"
14079 LIBS="$ac_save_LIBS"
14082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14083 echo "$ac_t""yes" 1>&6
14086 echo "$ac_t""no" 1>&6
14090 if test $have_termcap = yes ; then
14091 cat >> confdefs.h <<\EOF
14092 #define HAVE_TERMCAP 1
14095 ol_link_termcap=yes
14096 TERMCAP_LIBS=-ltermcap
14100 if test $ol_link_termcap = no ; then
14101 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14102 echo "configure:14103: checking for initscr in -lncurses" >&5
14103 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14107 ac_save_LIBS="$LIBS"
14108 LIBS="-lncurses $LIBS"
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* Override any gcc2 internal prototype to avoid an error. */
14113 /* We use char because int might match the return type of a gcc2
14114 builtin and then its argument prototype would still apply. */
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14123 eval "ac_cv_lib_$ac_lib_var=yes"
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14128 eval "ac_cv_lib_$ac_lib_var=no"
14131 LIBS="$ac_save_LIBS"
14134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14138 echo "$ac_t""no" 1>&6
14142 if test $have_ncurses = yes ; then
14143 cat >> confdefs.h <<\EOF
14144 #define HAVE_NCURSES 1
14147 ol_link_termcap=yes
14148 TERMCAP_LIBS=-lncurses
14152 if test $ol_link_termcap = no ; then
14153 cat >> confdefs.h <<\EOF
14154 #define NO_TERMCAP 1
14162 if test $ol_with_cyrus_sasl != no ; then
14163 for ac_hdr in sasl.h
14165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14167 echo "configure:14168: checking for $ac_hdr" >&5
14168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14177 { (eval echo configure:14178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14179 if test -z "$ac_err"; then
14181 eval "ac_cv_header_$ac_safe=yes"
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14187 eval "ac_cv_header_$ac_safe=no"
14191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14194 cat >> confdefs.h <<EOF
14195 #define $ac_tr_hdr 1
14199 echo "$ac_t""no" 1>&6
14204 if test $ac_cv_header_sasl_h = yes ; then
14205 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14206 echo "configure:14207: checking for sasl_client_init in -lsasl" >&5
14207 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14211 ac_save_LIBS="$LIBS"
14212 LIBS="-lsasl $LIBS"
14213 cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14219 char sasl_client_init();
14225 if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14227 eval "ac_cv_lib_$ac_lib_var=yes"
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14232 eval "ac_cv_lib_$ac_lib_var=no"
14235 LIBS="$ac_save_LIBS"
14238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
14240 have_cyrus_sasl=yes
14242 echo "$ac_t""no" 1>&6
14247 if test $have_cyrus_sasl != no ; then
14249 cat >> confdefs.h <<\EOF
14250 #define HAVE_CYRUS_SASL 1
14257 if test $ol_link_sasl = no ; then
14258 if test $ol_with_cyrus_sasl != auto ; then
14259 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14261 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14262 echo "configure: warning: SASL authentication not supported!" 1>&2
14263 if test $ol_link_tls = no ; then
14264 echo "configure: warning: Strong authentication not supported!" 1>&2
14268 elif test $ol_enable_spasswd != no ; then
14269 ol_link_spasswd=yes
14273 echo "configure: warning: SASL authentication not supported!" 1>&2
14274 if test $ol_link_tls = no ; then
14275 echo "configure: warning: Strong authentication not supported!" 1>&2
14279 if test $cross_compiling != yes ; then
14281 if test -r /dev/urandom ; then
14282 dev="/dev/urandom";
14283 elif test -r /idev/urandom ; then
14284 dev="/idev/urandom";
14285 elif test -r /dev/srandom ; then
14286 dev="/dev/srandom";
14287 elif test -r /dev/random ; then
14289 elif test -r /idev/random ; then
14290 dev="/idev/random";
14293 if test $dev != no ; then
14294 cat >> confdefs.h <<EOF
14295 #define URANDOM_DEVICE "$dev"
14302 if test $ol_with_fetch != no ; then
14304 LIBS="-lfetch -lcom_err $LIBS"
14305 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14306 echo "configure:14307: checking fetch(3) library" >&5
14307 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14308 echo $ac_n "(cached) $ac_c" 1>&6
14311 cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14315 #include <sys/param.h>
14319 struct url *u = fetchParseURL("file:///");
14322 if { (eval echo configure:14323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14324 ol_cv_lib_fetch=yes
14326 echo "configure: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14334 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14336 if test $ol_cv_lib_fetch != no ; then
14337 ol_link_fetch="-lfetch -lcom_err"
14338 cat >> confdefs.h <<\EOF
14339 #define HAVE_FETCH 1
14345 if test $ol_cv_lib_fetch != no ; then
14346 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14347 ol_link_fetch=freebsd
14349 elif test $ol_with_fetch != auto ; then
14350 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14354 ol_link_readline=no
14355 if test $ol_with_readline != no ; then
14356 for ac_hdr in readline/readline.h readline/history.h
14358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14360 echo "configure:14361: checking for $ac_hdr" >&5
14361 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14364 cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14370 { (eval echo configure:14371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14372 if test -z "$ac_err"; then
14374 eval "ac_cv_header_$ac_safe=yes"
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14380 eval "ac_cv_header_$ac_safe=no"
14384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14385 echo "$ac_t""yes" 1>&6
14386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14387 cat >> confdefs.h <<EOF
14388 #define $ac_tr_hdr 1
14392 echo "$ac_t""no" 1>&6
14397 if test $ac_cv_header_readline_readline_h = yes ; then
14399 LIBS="$TERMCAP_LIBS $LIBS"
14400 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14401 echo "configure:14402: checking for readline in -lreadline" >&5
14402 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14403 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
14406 ac_save_LIBS="$LIBS"
14407 LIBS="-lreadline $LIBS"
14408 cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 /* Override any gcc2 internal prototype to avoid an error. */
14412 /* We use char because int might match the return type of a gcc2
14413 builtin and then its argument prototype would still apply. */
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14422 eval "ac_cv_lib_$ac_lib_var=yes"
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14427 eval "ac_cv_lib_$ac_lib_var=no"
14430 LIBS="$ac_save_LIBS"
14433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14434 echo "$ac_t""yes" 1>&6
14437 echo "$ac_t""no" 1>&6
14443 if test $have_readline = yes ; then
14444 ol_with_readline=found
14445 ol_link_readline=yes
14447 READLINE_LIBS="-lreadline"
14452 if test $ol_link_readline = yes ; then
14453 cat >> confdefs.h <<\EOF
14454 #define HAVE_READLINE 1
14460 if test $ol_enable_crypt != no ; then
14461 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14462 echo "configure:14463: checking for crypt" >&5
14463 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14464 echo $ac_n "(cached) $ac_c" 1>&6
14466 cat > conftest.$ac_ext <<EOF
14467 #line 14468 "configure"
14468 #include "confdefs.h"
14469 /* System header to define __stub macros and hopefully few prototypes,
14470 which can conflict with char crypt(); below. */
14471 #include <assert.h>
14472 /* Override any gcc2 internal prototype to avoid an error. */
14473 /* We use char because int might match the return type of a gcc2
14474 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined (__stub_crypt) || defined (__stub___crypt)
14491 if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14493 eval "ac_cv_func_crypt=yes"
14495 echo "configure: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14498 eval "ac_cv_func_crypt=no"
14503 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14504 echo "$ac_t""yes" 1>&6
14507 echo "$ac_t""no" 1>&6
14509 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14510 echo "configure:14511: checking for crypt in -lcrypt" >&5
14511 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14512 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
14515 ac_save_LIBS="$LIBS"
14516 LIBS="-lcrypt $LIBS"
14517 cat > conftest.$ac_ext <<EOF
14518 #line 14519 "configure"
14519 #include "confdefs.h"
14520 /* Override any gcc2 internal prototype to avoid an error. */
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14529 if { (eval echo configure:14530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14531 eval "ac_cv_lib_$ac_lib_var=yes"
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14536 eval "ac_cv_lib_$ac_lib_var=no"
14539 LIBS="$ac_save_LIBS"
14542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14543 echo "$ac_t""yes" 1>&6
14544 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14547 echo "$ac_t""no" 1>&6
14554 if test $have_crypt = yes ; then
14555 cat >> confdefs.h <<\EOF
14556 #define HAVE_CRYPT 1
14560 echo "configure: warning: could not find crypt" 1>&2
14561 if test $ol_enable_crypt = yes ; then
14562 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14565 echo "configure: warning: disabling crypt support" 1>&2
14570 if test $ol_enable_proctitle != no ; then
14571 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14572 echo "configure:14573: checking for setproctitle" >&5
14573 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14574 echo $ac_n "(cached) $ac_c" 1>&6
14576 cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14579 /* System header to define __stub macros and hopefully few prototypes,
14580 which can conflict with char setproctitle(); below. */
14581 #include <assert.h>
14582 /* Override any gcc2 internal prototype to avoid an error. */
14583 /* We use char because int might match the return type of a gcc2
14584 builtin and then its argument prototype would still apply. */
14585 char setproctitle();
14590 /* The GNU C library defines this for functions which it implements
14591 to always fail with ENOSYS. Some functions are actually named
14592 something starting with __ and the normal name is an alias. */
14593 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14603 eval "ac_cv_func_setproctitle=yes"
14605 echo "configure: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14608 eval "ac_cv_func_setproctitle=no"
14613 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14614 echo "$ac_t""yes" 1>&6
14615 have_setproctitle=yes
14617 echo "$ac_t""no" 1>&6
14619 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14620 echo "configure:14621: checking for setproctitle in -lutil" >&5
14621 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14622 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14623 echo $ac_n "(cached) $ac_c" 1>&6
14625 ac_save_LIBS="$LIBS"
14626 LIBS="-lutil $LIBS"
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14630 /* Override any gcc2 internal prototype to avoid an error. */
14631 /* We use char because int might match the return type of a gcc2
14632 builtin and then its argument prototype would still apply. */
14633 char setproctitle();
14639 if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14641 eval "ac_cv_lib_$ac_lib_var=yes"
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14646 eval "ac_cv_lib_$ac_lib_var=no"
14649 LIBS="$ac_save_LIBS"
14652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14653 echo "$ac_t""yes" 1>&6
14654 have_setproctitle=yes
14655 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14657 echo "$ac_t""no" 1>&6
14658 have_setproctitle=no
14659 LIBOBJS="$LIBOBJS setproctitle.o"
14660 LIBSRCS="$LIBSRCS setproctitle.c"
14666 if test $have_setproctitle = yes ; then
14667 cat >> confdefs.h <<\EOF
14668 #define HAVE_SETPROCTITLE 1
14674 if test $ol_enable_slp != no ; then
14675 for ac_hdr in slp.h
14677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14679 echo "configure:14680: checking for $ac_hdr" >&5
14680 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14681 echo $ac_n "(cached) $ac_c" 1>&6
14683 cat > conftest.$ac_ext <<EOF
14684 #line 14685 "configure"
14685 #include "confdefs.h"
14688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14689 { (eval echo configure:14690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14691 if test -z "$ac_err"; then
14693 eval "ac_cv_header_$ac_safe=yes"
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14699 eval "ac_cv_header_$ac_safe=no"
14703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
14705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14706 cat >> confdefs.h <<EOF
14707 #define $ac_tr_hdr 1
14711 echo "$ac_t""no" 1>&6
14716 if test $ac_cv_header_slp_h = yes ; then
14717 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14718 echo "configure:14719: checking for SLPOpen in -lslp" >&5
14719 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14720 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14723 ac_save_LIBS="$LIBS"
14725 cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14728 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14737 if { (eval echo configure:14738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14739 eval "ac_cv_lib_$ac_lib_var=yes"
14741 echo "configure: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14744 eval "ac_cv_lib_$ac_lib_var=no"
14747 LIBS="$ac_save_LIBS"
14750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14751 echo "$ac_t""yes" 1>&6
14754 echo "$ac_t""no" 1>&6
14758 if test $have_slp = yes ; then
14759 cat >> confdefs.h <<\EOF
14763 SLAPD_SLP_LIBS=-lslp
14766 elif test $ol_enable_slp = yes ; then
14767 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14771 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14772 echo "configure:14773: checking for ANSI C header files" >&5
14773 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 #include <stdlib.h>
14780 #include <stdarg.h>
14781 #include <string.h>
14784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14785 { (eval echo configure:14786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14787 if test -z "$ac_err"; then
14789 ac_cv_header_stdc=yes
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14795 ac_cv_header_stdc=no
14799 if test $ac_cv_header_stdc = yes; then
14800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14801 cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure"
14803 #include "confdefs.h"
14804 #include <string.h>
14806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14807 egrep "memchr" >/dev/null 2>&1; then
14811 ac_cv_header_stdc=no
14817 if test $ac_cv_header_stdc = yes; then
14818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14819 cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14822 #include <stdlib.h>
14824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14825 egrep "free" >/dev/null 2>&1; then
14829 ac_cv_header_stdc=no
14835 if test $ac_cv_header_stdc = yes; then
14836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14837 if test "$cross_compiling" = yes; then
14840 cat > conftest.$ac_ext <<EOF
14841 #line 14842 "configure"
14842 #include "confdefs.h"
14844 #if ((' ' & 0x0FF) == 0x020)
14845 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14846 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14848 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14849 || ('j' <= (c) && (c) <= 'r') \
14850 || ('s' <= (c) && (c) <= 'z'))
14851 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14854 int main () { int i; for (i = 0; i < 256; i++)
14855 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14866 ac_cv_header_stdc=no
14874 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14875 if test $ac_cv_header_stdc = yes; then
14876 cat >> confdefs.h <<\EOF
14877 #define STDC_HEADERS 1
14882 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14883 echo "configure:14884: checking for mode_t" >&5
14884 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 #include <sys/types.h>
14892 #include <stdlib.h>
14893 #include <stddef.h>
14897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14898 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14900 eval "ac_cv_type_mode_t=yes"
14903 eval "ac_cv_type_mode_t=no"
14908 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14909 echo "$ac_t""yes" 1>&6
14911 echo "$ac_t""no" 1>&6
14912 cat >> confdefs.h <<EOF
14918 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14919 echo "configure:14920: checking for off_t" >&5
14920 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14921 echo $ac_n "(cached) $ac_c" 1>&6
14923 cat > conftest.$ac_ext <<EOF
14924 #line 14925 "configure"
14925 #include "confdefs.h"
14926 #include <sys/types.h>
14928 #include <stdlib.h>
14929 #include <stddef.h>
14933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14936 eval "ac_cv_type_off_t=yes"
14939 eval "ac_cv_type_off_t=no"
14944 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14945 echo "$ac_t""yes" 1>&6
14947 echo "$ac_t""no" 1>&6
14948 cat >> confdefs.h <<EOF
14954 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14955 echo "configure:14956: checking for pid_t" >&5
14956 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14957 echo $ac_n "(cached) $ac_c" 1>&6
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 #include <sys/types.h>
14964 #include <stdlib.h>
14965 #include <stddef.h>
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14972 eval "ac_cv_type_pid_t=yes"
14975 eval "ac_cv_type_pid_t=no"
14980 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14981 echo "$ac_t""yes" 1>&6
14983 echo "$ac_t""no" 1>&6
14984 cat >> confdefs.h <<EOF
14990 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14991 echo "configure:14992: checking for ptrdiff_t" >&5
14992 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14993 echo $ac_n "(cached) $ac_c" 1>&6
14995 cat > conftest.$ac_ext <<EOF
14996 #line 14997 "configure"
14997 #include "confdefs.h"
14998 #include <stddef.h>
15003 if { (eval echo configure:15004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15005 am_cv_type_ptrdiff_t=yes
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15010 am_cv_type_ptrdiff_t=no
15015 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15016 if test $am_cv_type_ptrdiff_t = yes; then
15017 cat >> confdefs.h <<\EOF
15018 #define HAVE_PTRDIFF_T 1
15023 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15024 echo "configure:15025: checking return type of signal handlers" >&5
15025 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15026 echo $ac_n "(cached) $ac_c" 1>&6
15028 cat > conftest.$ac_ext <<EOF
15029 #line 15030 "configure"
15030 #include "confdefs.h"
15031 #include <sys/types.h>
15032 #include <signal.h>
15037 extern "C" void (*signal (int, void (*)(int)))(int);
15039 void (*signal ()) ();
15046 if { (eval echo configure:15047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15048 ac_cv_type_signal=void
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15053 ac_cv_type_signal=int
15058 echo "$ac_t""$ac_cv_type_signal" 1>&6
15059 cat >> confdefs.h <<EOF
15060 #define RETSIGTYPE $ac_cv_type_signal
15064 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15065 echo "configure:15066: checking for size_t" >&5
15066 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15067 echo $ac_n "(cached) $ac_c" 1>&6
15069 cat > conftest.$ac_ext <<EOF
15070 #line 15071 "configure"
15071 #include "confdefs.h"
15072 #include <sys/types.h>
15074 #include <stdlib.h>
15075 #include <stddef.h>
15079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15080 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15082 eval "ac_cv_type_size_t=yes"
15085 eval "ac_cv_type_size_t=no"
15090 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15091 echo "$ac_t""yes" 1>&6
15093 echo "$ac_t""no" 1>&6
15094 cat >> confdefs.h <<EOF
15095 #define size_t unsigned
15101 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15102 echo "configure:15103: checking for ssize_t" >&5
15103 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15104 echo $ac_n "(cached) $ac_c" 1>&6
15106 cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15109 #include <sys/types.h>
15111 #include <stdlib.h>
15112 #include <stddef.h>
15116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15117 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15119 eval "ac_cv_type_ssize_t=yes"
15122 eval "ac_cv_type_ssize_t=no"
15127 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15128 echo "$ac_t""yes" 1>&6
15130 echo "$ac_t""no" 1>&6
15131 cat >> confdefs.h <<EOF
15132 #define ssize_t signed int
15137 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15138 echo "configure:15139: checking for caddr_t" >&5
15139 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15142 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure"
15144 #include "confdefs.h"
15145 #include <sys/types.h>
15147 #include <stdlib.h>
15148 #include <stddef.h>
15152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15153 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15155 eval "ac_cv_type_caddr_t=yes"
15158 eval "ac_cv_type_caddr_t=no"
15163 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15164 echo "$ac_t""yes" 1>&6
15166 echo "$ac_t""no" 1>&6
15167 cat >> confdefs.h <<EOF
15168 #define caddr_t char *
15174 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15175 echo "configure:15176: checking for socklen_t" >&5
15176 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15177 echo $ac_n "(cached) $ac_c" 1>&6
15179 cat > conftest.$ac_ext <<EOF
15180 #line 15181 "configure"
15181 #include "confdefs.h"
15183 #ifdef HAVE_SYS_TYPES_H
15184 #include <sys/types.h>
15186 #ifdef HAVE_SYS_SOCKET_H
15187 #include <sys/socket.h>
15194 if { (eval echo configure:15195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15196 ol_cv_type_socklen_t=yes
15198 echo "configure: failed program was:" >&5
15199 cat conftest.$ac_ext >&5
15201 ol_cv_type_socklen_t=no
15206 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15207 if test $ol_cv_type_socklen_t = no; then
15208 cat >> confdefs.h <<\EOF
15209 #define socklen_t int
15214 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15215 echo "configure:15216: checking for member st_blksize in aggregate type struct stat" >&5
15216 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15217 echo $ac_n "(cached) $ac_c" 1>&6
15219 cat > conftest.$ac_ext <<EOF
15220 #line 15221 "configure"
15221 #include "confdefs.h"
15222 #include <sys/types.h>
15223 #include <sys/stat.h>
15225 struct stat foo; foo.st_blksize;
15228 if { (eval echo configure:15229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15230 ac_cv_c_struct_member_st_blksize=yes
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 ac_cv_c_struct_member_st_blksize=no
15240 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15241 st_blksize="$ac_cv_c_struct_member_st_blksize"
15242 if test $ac_cv_c_struct_member_st_blksize = yes; then
15243 cat >> confdefs.h <<\EOF
15244 #define HAVE_ST_BLKSIZE 1
15249 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15250 echo "configure:15251: checking whether time.h and sys/time.h may both be included" >&5
15251 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
15252 echo $ac_n "(cached) $ac_c" 1>&6
15254 cat > conftest.$ac_ext <<EOF
15255 #line 15256 "configure"
15256 #include "confdefs.h"
15257 #include <sys/types.h>
15258 #include <sys/time.h>
15264 if { (eval echo configure:15265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15266 ac_cv_header_time=yes
15268 echo "configure: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15271 ac_cv_header_time=no
15276 echo "$ac_t""$ac_cv_header_time" 1>&6
15277 if test $ac_cv_header_time = yes; then
15278 cat >> confdefs.h <<\EOF
15279 #define TIME_WITH_SYS_TIME 1
15284 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15285 echo "configure:15286: checking whether struct tm is in sys/time.h or time.h" >&5
15286 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15287 echo $ac_n "(cached) $ac_c" 1>&6
15289 cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 #include <sys/types.h>
15295 struct tm *tp; tp->tm_sec;
15298 if { (eval echo configure:15299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15300 ac_cv_struct_tm=time.h
15302 echo "configure: failed program was:" >&5
15303 cat conftest.$ac_ext >&5
15305 ac_cv_struct_tm=sys/time.h
15310 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15311 if test $ac_cv_struct_tm = sys/time.h; then
15312 cat >> confdefs.h <<\EOF
15313 #define TM_IN_SYS_TIME 1
15318 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15319 echo "configure:15320: checking for uid_t in sys/types.h" >&5
15320 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15323 cat > conftest.$ac_ext <<EOF
15324 #line 15325 "configure"
15325 #include "confdefs.h"
15326 #include <sys/types.h>
15328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15329 egrep "uid_t" >/dev/null 2>&1; then
15331 ac_cv_type_uid_t=yes
15334 ac_cv_type_uid_t=no
15340 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15341 if test $ac_cv_type_uid_t = no; then
15342 cat >> confdefs.h <<\EOF
15346 cat >> confdefs.h <<\EOF
15352 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15353 echo "configure:15354: checking for sig_atomic_t" >&5
15354 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15355 echo $ac_n "(cached) $ac_c" 1>&6
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 #include <signal.h>
15362 sig_atomic_t atomic;
15365 if { (eval echo configure:15366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15367 ol_cv_type_sig_atomic_t=yes
15369 echo "configure: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15372 ol_cv_type_sig_atomic_t=no
15377 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15378 if test $ol_cv_type_sig_atomic_t = no; then
15379 cat >> confdefs.h <<\EOF
15380 #define sig_atomic_t int
15387 # test for pw_gecos in struct passwd
15388 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15389 echo "configure:15390: checking struct passwd for pw_gecos" >&5
15390 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15401 pwd.pw_gecos = pwd.pw_name;
15405 if { (eval echo configure:15406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15407 ol_cv_struct_passwd_pw_gecos=yes
15409 echo "configure: failed program was:" >&5
15410 cat conftest.$ac_ext >&5
15412 ol_cv_struct_passwd_pw_gecos=no
15417 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15418 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15419 cat >> confdefs.h <<\EOF
15420 #define HAVE_PW_GECOS 1
15425 # test for pw_passwd in struct passwd
15426 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15427 echo "configure:15428: checking struct passwd for pw_passwd" >&5
15428 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15429 echo $ac_n "(cached) $ac_c" 1>&6
15432 cat > conftest.$ac_ext <<EOF
15433 #line 15434 "configure"
15434 #include "confdefs.h"
15439 pwd.pw_passwd = pwd.pw_name;
15443 if { (eval echo configure:15444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15445 ol_cv_struct_passwd_pw_passwd=yes
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15450 ol_cv_struct_passwd_pw_passwd=no
15455 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15456 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15457 cat >> confdefs.h <<\EOF
15458 #define HAVE_PW_PASSWD 1
15464 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15465 echo "configure:15466: checking if toupper() requires islower()" >&5
15466 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15467 echo $ac_n "(cached) $ac_c" 1>&6
15470 if test "$cross_compiling" = yes; then
15471 ol_cv_c_upper_lower=safe
15473 cat > conftest.$ac_ext <<EOF
15474 #line 15475 "configure"
15475 #include "confdefs.h"
15480 if ('C' == toupper('C'))
15486 if { (eval echo configure:15487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15488 ol_cv_c_upper_lower=no
15490 echo "configure: failed program was:" >&5
15491 cat conftest.$ac_ext >&5
15493 ol_cv_c_upper_lower=yes
15500 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15501 if test $ol_cv_c_upper_lower != no ; then
15502 cat >> confdefs.h <<\EOF
15503 #define C_UPPER_LOWER 1
15508 echo $ac_n "checking for working const""... $ac_c" 1>&6
15509 echo "configure:15510: checking for working const" >&5
15510 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15513 cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15519 /* Ultrix mips cc rejects this. */
15520 typedef int charset[2]; const charset x;
15521 /* SunOS 4.1.1 cc rejects this. */
15522 char const *const *ccp;
15524 /* NEC SVR4.0.2 mips cc rejects this. */
15525 struct point {int x, y;};
15526 static struct point const zero = {0,0};
15527 /* AIX XL C 1.02.0.0 rejects this.
15528 It does not let you subtract one const X* pointer from another in an arm
15529 of an if-expression whose if-part is not a constant expression */
15530 const char *g = "string";
15531 ccp = &g + (g ? g-g : 0);
15532 /* HPUX 7.0 cc rejects these. */
15535 ccp = (char const *const *) p;
15536 { /* SCO 3.2v4 cc rejects this. */
15538 char const *s = 0 ? (char *) 0 : (char const *) 0;
15542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15543 int x[] = {25, 17};
15544 const int *foo = &x[0];
15547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15548 typedef const int *iptr;
15552 { /* AIX XL C 1.02.0.0 rejects this saying
15553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15554 struct s { int j; const int *ap[3]; };
15555 struct s *b; b->j = 5;
15557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15558 const int foo = 10;
15563 if { (eval echo configure:15564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15567 echo "configure: failed program was:" >&5
15568 cat conftest.$ac_ext >&5
15575 echo "$ac_t""$ac_cv_c_const" 1>&6
15576 if test $ac_cv_c_const = no; then
15577 cat >> confdefs.h <<\EOF
15583 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15584 echo "configure:15585: checking if compiler understands volatile" >&5
15585 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15586 echo $ac_n "(cached) $ac_c" 1>&6
15588 cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15593 volatile int a; int * volatile b = x ? &y : &z;
15594 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15598 if { (eval echo configure:15599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15600 ol_cv_c_volatile=yes
15602 echo "configure: failed program was:" >&5
15603 cat conftest.$ac_ext >&5
15605 ol_cv_c_volatile=no
15610 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15611 if test $ol_cv_c_volatile = yes; then
15614 cat >> confdefs.h <<\EOF
15621 if test $cross_compiling = yes ; then
15622 cat >> confdefs.h <<\EOF
15623 #define CROSS_COMPILING 1
15627 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15628 echo "configure:15629: checking whether byte ordering is bigendian" >&5
15629 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15632 ac_cv_c_bigendian=unknown
15633 # See if sys/param.h defines the BYTE_ORDER macro.
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 #include <sys/types.h>
15638 #include <sys/param.h>
15641 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15642 bogus endian macros
15646 if { (eval echo configure:15647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15648 # It does; now see whether it defined to BIG_ENDIAN or not.
15649 cat > conftest.$ac_ext <<EOF
15650 #line 15651 "configure"
15651 #include "confdefs.h"
15652 #include <sys/types.h>
15653 #include <sys/param.h>
15656 #if BYTE_ORDER != BIG_ENDIAN
15661 if { (eval echo configure:15662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15663 ac_cv_c_bigendian=yes
15665 echo "configure: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15668 ac_cv_c_bigendian=no
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15676 if test $ac_cv_c_bigendian = unknown; then
15677 if test "$cross_compiling" = yes; then
15678 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15680 cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15684 /* Are we little or big endian? From Harbison&Steele. */
15688 char c[sizeof (long)];
15691 exit (u.c[sizeof (long) - 1] == 1);
15694 if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15696 ac_cv_c_bigendian=no
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15701 ac_cv_c_bigendian=yes
15709 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15710 if test $ac_cv_c_bigendian = yes; then
15711 cat >> confdefs.h <<\EOF
15712 #define WORDS_BIGENDIAN 1
15719 echo $ac_n "checking size of short""... $ac_c" 1>&6
15720 echo "configure:15721: checking size of short" >&5
15721 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15724 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15725 cat > conftest.$ac_ext <<EOF
15726 #line 15727 "configure"
15727 #include "confdefs.h"
15728 #include "confdefs.h"
15729 #include <sys/types.h>
15733 switch (0) case 0: case (sizeof (short) == $ac_size):;
15736 if { (eval echo configure:15737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15738 ac_cv_sizeof_short=$ac_size
15740 echo "configure: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15744 if test x$ac_cv_sizeof_short != x ; then break; fi
15749 if test x$ac_cv_sizeof_short = x ; then
15750 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15752 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15753 cat >> confdefs.h <<EOF
15754 #define SIZEOF_SHORT $ac_cv_sizeof_short
15758 echo $ac_n "checking size of int""... $ac_c" 1>&6
15759 echo "configure:15760: checking size of int" >&5
15760 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15761 echo $ac_n "(cached) $ac_c" 1>&6
15763 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15764 cat > conftest.$ac_ext <<EOF
15765 #line 15766 "configure"
15766 #include "confdefs.h"
15767 #include "confdefs.h"
15768 #include <sys/types.h>
15772 switch (0) case 0: case (sizeof (int) == $ac_size):;
15775 if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15777 ac_cv_sizeof_int=$ac_size
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15783 if test x$ac_cv_sizeof_int != x ; then break; fi
15788 if test x$ac_cv_sizeof_int = x ; then
15789 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15791 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15792 cat >> confdefs.h <<EOF
15793 #define SIZEOF_INT $ac_cv_sizeof_int
15797 echo $ac_n "checking size of long""... $ac_c" 1>&6
15798 echo "configure:15799: checking size of long" >&5
15799 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15800 echo $ac_n "(cached) $ac_c" 1>&6
15802 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 #include "confdefs.h"
15807 #include <sys/types.h>
15811 switch (0) case 0: case (sizeof (long) == $ac_size):;
15814 if { (eval echo configure:15815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15816 ac_cv_sizeof_long=$ac_size
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15822 if test x$ac_cv_sizeof_long != x ; then break; fi
15827 if test x$ac_cv_sizeof_long = x ; then
15828 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15830 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15831 cat >> confdefs.h <<EOF
15832 #define SIZEOF_LONG $ac_cv_sizeof_long
15837 if test "$ac_cv_sizeof_int" -lt 4 ; then
15838 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15840 cat >> confdefs.h <<\EOF
15841 #define LBER_INT_T long
15845 cat >> confdefs.h <<\EOF
15846 #define LBER_INT_T int
15851 cat >> confdefs.h <<\EOF
15852 #define LBER_LEN_T long
15855 cat >> confdefs.h <<\EOF
15856 #define LBER_SOCKET_T int
15859 cat >> confdefs.h <<\EOF
15860 #define LBER_TAG_T long
15864 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15865 echo "configure:15866: checking for 8-bit clean memcmp" >&5
15866 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15867 echo $ac_n "(cached) $ac_c" 1>&6
15869 if test "$cross_compiling" = yes; then
15870 ac_cv_func_memcmp_clean=no
15872 cat > conftest.$ac_ext <<EOF
15873 #line 15874 "configure"
15874 #include "confdefs.h"
15878 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15879 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15883 if { (eval echo configure:15884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15885 ac_cv_func_memcmp_clean=yes
15887 echo "configure: failed program was:" >&5
15888 cat conftest.$ac_ext >&5
15890 ac_cv_func_memcmp_clean=no
15897 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15898 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15900 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15901 echo "configure:15902: checking for strftime" >&5
15902 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15903 echo $ac_n "(cached) $ac_c" 1>&6
15905 cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15908 /* System header to define __stub macros and hopefully few prototypes,
15909 which can conflict with char strftime(); below. */
15910 #include <assert.h>
15911 /* Override any gcc2 internal prototype to avoid an error. */
15912 /* We use char because int might match the return type of a gcc2
15913 builtin and then its argument prototype would still apply. */
15919 /* The GNU C library defines this for functions which it implements
15920 to always fail with ENOSYS. Some functions are actually named
15921 something starting with __ and the normal name is an alias. */
15922 #if defined (__stub_strftime) || defined (__stub___strftime)
15930 if { (eval echo configure:15931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15932 eval "ac_cv_func_strftime=yes"
15934 echo "configure: failed program was:" >&5
15935 cat conftest.$ac_ext >&5
15937 eval "ac_cv_func_strftime=no"
15942 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15943 echo "$ac_t""yes" 1>&6
15944 cat >> confdefs.h <<\EOF
15945 #define HAVE_STRFTIME 1
15949 echo "$ac_t""no" 1>&6
15950 # strftime is in -lintl on SCO UNIX.
15951 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15952 echo "configure:15953: checking for strftime in -lintl" >&5
15953 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15957 ac_save_LIBS="$LIBS"
15958 LIBS="-lintl $LIBS"
15959 cat > conftest.$ac_ext <<EOF
15960 #line 15961 "configure"
15961 #include "confdefs.h"
15962 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15971 if { (eval echo configure:15972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15973 eval "ac_cv_lib_$ac_lib_var=yes"
15975 echo "configure: failed program was:" >&5
15976 cat conftest.$ac_ext >&5
15978 eval "ac_cv_lib_$ac_lib_var=no"
15981 LIBS="$ac_save_LIBS"
15984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15985 echo "$ac_t""yes" 1>&6
15986 cat >> confdefs.h <<\EOF
15987 #define HAVE_STRFTIME 1
15990 LIBS="-lintl $LIBS"
15992 echo "$ac_t""no" 1>&6
15998 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15999 echo "configure:16000: checking for inet_aton()" >&5
16000 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16001 echo $ac_n "(cached) $ac_c" 1>&6
16003 cat > conftest.$ac_ext <<EOF
16004 #line 16005 "configure"
16005 #include "confdefs.h"
16007 #ifdef HAVE_SYS_TYPES_H
16008 # include <sys/types.h>
16010 #ifdef HAVE_SYS_SOCKET_H
16011 # include <sys/socket.h>
16012 # ifdef HAVE_SYS_SELECT_H
16013 # include <sys/select.h>
16015 # include <netinet/in.h>
16016 # ifdef HAVE_ARPA_INET_H
16017 # include <arpa/inet.h>
16023 int rc = inet_aton( "255.255.255.255", &in );
16026 if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16028 ol_cv_func_inet_aton=yes
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16033 ol_cv_func_inet_aton=no
16038 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16039 if test $ol_cv_func_inet_aton != no; then
16040 cat >> confdefs.h <<\EOF
16041 #define HAVE_INET_ATON 1
16047 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16048 echo "configure:16049: checking for _spawnlp" >&5
16049 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16052 cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 /* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char _spawnlp(); below. */
16057 #include <assert.h>
16058 /* Override any gcc2 internal prototype to avoid an error. */
16059 /* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16066 /* The GNU C library defines this for functions which it implements
16067 to always fail with ENOSYS. Some functions are actually named
16068 something starting with __ and the normal name is an alias. */
16069 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16077 if { (eval echo configure:16078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16079 eval "ac_cv_func__spawnlp=yes"
16081 echo "configure: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16084 eval "ac_cv_func__spawnlp=no"
16089 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16090 echo "$ac_t""yes" 1>&6
16091 cat >> confdefs.h <<\EOF
16092 #define HAVE_SPAWNLP 1
16096 echo "$ac_t""no" 1>&6
16100 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16101 echo "configure:16102: checking for _snprintf" >&5
16102 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16105 cat > conftest.$ac_ext <<EOF
16106 #line 16107 "configure"
16107 #include "confdefs.h"
16108 /* System header to define __stub macros and hopefully few prototypes,
16109 which can conflict with char _snprintf(); below. */
16110 #include <assert.h>
16111 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16130 if { (eval echo configure:16131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16132 eval "ac_cv_func__snprintf=yes"
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16137 eval "ac_cv_func__snprintf=no"
16142 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16143 echo "$ac_t""yes" 1>&6
16144 ac_cv_func_snprintf=yes
16145 cat >> confdefs.h <<\EOF
16146 #define snprintf _snprintf
16151 echo "$ac_t""no" 1>&6
16155 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16156 echo "configure:16157: checking for _vsnprintf" >&5
16157 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16158 echo $ac_n "(cached) $ac_c" 1>&6
16160 cat > conftest.$ac_ext <<EOF
16161 #line 16162 "configure"
16162 #include "confdefs.h"
16163 /* System header to define __stub macros and hopefully few prototypes,
16164 which can conflict with char _vsnprintf(); below. */
16165 #include <assert.h>
16166 /* Override any gcc2 internal prototype to avoid an error. */
16167 /* We use char because int might match the return type of a gcc2
16168 builtin and then its argument prototype would still apply. */
16174 /* The GNU C library defines this for functions which it implements
16175 to always fail with ENOSYS. Some functions are actually named
16176 something starting with __ and the normal name is an alias. */
16177 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16185 if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16187 eval "ac_cv_func__vsnprintf=yes"
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16192 eval "ac_cv_func__vsnprintf=no"
16197 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16198 echo "$ac_t""yes" 1>&6
16199 ac_cv_func_vsnprintf=yes
16200 cat >> confdefs.h <<\EOF
16201 #define vsnprintf _vsnprintf
16206 echo "$ac_t""no" 1>&6
16210 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16211 echo "configure:16212: checking for vprintf" >&5
16212 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16213 echo $ac_n "(cached) $ac_c" 1>&6
16215 cat > conftest.$ac_ext <<EOF
16216 #line 16217 "configure"
16217 #include "confdefs.h"
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char vprintf(); below. */
16220 #include <assert.h>
16221 /* Override any gcc2 internal prototype to avoid an error. */
16222 /* We use char because int might match the return type of a gcc2
16223 builtin and then its argument prototype would still apply. */
16229 /* The GNU C library defines this for functions which it implements
16230 to always fail with ENOSYS. Some functions are actually named
16231 something starting with __ and the normal name is an alias. */
16232 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16240 if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16242 eval "ac_cv_func_vprintf=yes"
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 eval "ac_cv_func_vprintf=no"
16252 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16253 echo "$ac_t""yes" 1>&6
16254 cat >> confdefs.h <<\EOF
16255 #define HAVE_VPRINTF 1
16259 echo "$ac_t""no" 1>&6
16262 if test "$ac_cv_func_vprintf" != yes; then
16263 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16264 echo "configure:16265: checking for _doprnt" >&5
16265 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16266 echo $ac_n "(cached) $ac_c" 1>&6
16268 cat > conftest.$ac_ext <<EOF
16269 #line 16270 "configure"
16270 #include "confdefs.h"
16271 /* System header to define __stub macros and hopefully few prototypes,
16272 which can conflict with char _doprnt(); below. */
16273 #include <assert.h>
16274 /* Override any gcc2 internal prototype to avoid an error. */
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16293 if { (eval echo configure:16294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16295 eval "ac_cv_func__doprnt=yes"
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16300 eval "ac_cv_func__doprnt=no"
16305 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16306 echo "$ac_t""yes" 1>&6
16307 cat >> confdefs.h <<\EOF
16308 #define HAVE_DOPRNT 1
16312 echo "$ac_t""no" 1>&6
16318 if test $ac_cv_func_vprintf = yes ; then
16319 for ac_func in vsnprintf vsprintf
16321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16322 echo "configure:16323: checking for $ac_func" >&5
16323 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16324 echo $ac_n "(cached) $ac_c" 1>&6
16326 cat > conftest.$ac_ext <<EOF
16327 #line 16328 "configure"
16328 #include "confdefs.h"
16329 /* System header to define __stub macros and hopefully few prototypes,
16330 which can conflict with char $ac_func(); below. */
16331 #include <assert.h>
16332 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16351 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16353 eval "ac_cv_func_$ac_func=yes"
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16358 eval "ac_cv_func_$ac_func=no"
16363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16364 echo "$ac_t""yes" 1>&6
16365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16366 cat >> confdefs.h <<EOF
16367 #define $ac_tr_func 1
16371 echo "$ac_t""no" 1>&6
16430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16431 echo "configure:16432: checking for $ac_func" >&5
16432 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16433 echo $ac_n "(cached) $ac_c" 1>&6
16435 cat > conftest.$ac_ext <<EOF
16436 #line 16437 "configure"
16437 #include "confdefs.h"
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char $ac_func(); below. */
16440 #include <assert.h>
16441 /* Override any gcc2 internal prototype to avoid an error. */
16442 /* We use char because int might match the return type of a gcc2
16443 builtin and then its argument prototype would still apply. */
16449 /* The GNU C library defines this for functions which it implements
16450 to always fail with ENOSYS. Some functions are actually named
16451 something starting with __ and the normal name is an alias. */
16452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16460 if { (eval echo configure:16461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16462 eval "ac_cv_func_$ac_func=yes"
16464 echo "configure: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16467 eval "ac_cv_func_$ac_func=no"
16472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16473 echo "$ac_t""yes" 1>&6
16474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16475 cat >> confdefs.h <<EOF
16476 #define $ac_tr_func 1
16480 echo "$ac_t""no" 1>&6
16485 for ac_func in getopt tempnam
16487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16488 echo "configure:16489: checking for $ac_func" >&5
16489 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16490 echo $ac_n "(cached) $ac_c" 1>&6
16492 cat > conftest.$ac_ext <<EOF
16493 #line 16494 "configure"
16494 #include "confdefs.h"
16495 /* System header to define __stub macros and hopefully few prototypes,
16496 which can conflict with char $ac_func(); below. */
16497 #include <assert.h>
16498 /* Override any gcc2 internal prototype to avoid an error. */
16499 /* We use char because int might match the return type of a gcc2
16500 builtin and then its argument prototype would still apply. */
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16517 if { (eval echo configure:16518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16519 eval "ac_cv_func_$ac_func=yes"
16521 echo "configure: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16524 eval "ac_cv_func_$ac_func=no"
16529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16530 echo "$ac_t""yes" 1>&6
16531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16532 cat >> confdefs.h <<EOF
16533 #define $ac_tr_func 1
16537 echo "$ac_t""no" 1>&6
16538 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16544 if test "$ac_cv_func_getopt" != yes; then
16545 LIBSRCS="$LIBSRCS getopt.c"
16548 if test "$ac_cv_func_tempnam" != yes; then
16549 LIBSRCS="$LIBSRCS tempnam.c"
16552 # Check Configuration
16553 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16554 echo "configure:16555: checking declaration of sys_errlist" >&5
16555 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16556 echo $ac_n "(cached) $ac_c" 1>&6
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16564 #include <sys/types.h>
16567 #include <stdlib.h>
16570 char *c = (char *) *sys_errlist
16573 if { (eval echo configure:16574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16575 ol_cv_dcl_sys_errlist=yes
16576 ol_cv_have_sys_errlist=yes
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16581 ol_cv_dcl_sys_errlist=no
16586 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16588 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16589 if test $ol_cv_dcl_sys_errlist = no ; then
16590 cat >> confdefs.h <<\EOF
16591 #define DECL_SYS_ERRLIST 1
16595 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16596 echo "configure:16597: checking existence of sys_errlist" >&5
16597 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16598 echo $ac_n "(cached) $ac_c" 1>&6
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16606 char *c = (char *) *sys_errlist
16609 if { (eval echo configure:16610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16611 ol_cv_have_sys_errlist=yes
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16616 ol_cv_have_sys_errlist=no
16621 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16623 if test $ol_cv_have_sys_errlist = yes ; then
16624 cat >> confdefs.h <<\EOF
16625 #define HAVE_SYS_ERRLIST 1
16632 if test "$ol_enable_debug" != no ; then
16633 cat >> confdefs.h <<\EOF
16634 #define LDAP_DEBUG 1
16638 if test "$ol_enable_syslog" = yes ; then
16639 cat >> confdefs.h <<\EOF
16640 #define LDAP_SYSLOG 1
16644 if test "$ol_enable_cache" = no ; then
16645 cat >> confdefs.h <<\EOF
16646 #define LDAP_NOCACHE 1
16650 if test "$ol_link_kbind" != no ; then
16651 cat >> confdefs.h <<\EOF
16652 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16656 if test "$ol_enable_proctitle" != no ; then
16657 cat >> confdefs.h <<\EOF
16658 #define LDAP_PROCTITLE 1
16662 if test "$ol_enable_referrals" != no ; then
16663 cat >> confdefs.h <<\EOF
16664 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16668 if test "$ol_enable_local" != no; then
16669 cat >> confdefs.h <<\EOF
16670 #define LDAP_PF_LOCAL 1
16674 if test "$ol_link_ipv6" != no; then
16675 cat >> confdefs.h <<\EOF
16676 #define LDAP_PF_INET6 1
16680 if test "$ol_enable_cleartext" != no ; then
16681 cat >> confdefs.h <<\EOF
16682 #define SLAPD_CLEARTEXT 1
16686 if test "$ol_enable_crypt" != no ; then
16687 cat >> confdefs.h <<\EOF
16688 #define SLAPD_CRYPT 1
16692 if test "$ol_link_kpasswd" != no ; then
16693 cat >> confdefs.h <<\EOF
16694 #define SLAPD_KPASSWD 1
16698 if test "$ol_link_spasswd" != no ; then
16699 cat >> confdefs.h <<\EOF
16700 #define SLAPD_SPASSWD 1
16704 if test "$ol_enable_phonetic" != no ; then
16705 cat >> confdefs.h <<\EOF
16706 #define SLAPD_PHONETIC 1
16710 if test "$ol_enable_rlookups" != no ; then
16711 cat >> confdefs.h <<\EOF
16712 #define SLAPD_RLOOKUPS 1
16716 if test "$ol_enable_aci" != no ; then
16717 cat >> confdefs.h <<\EOF
16718 #define SLAPD_ACI_ENABLED 1
16723 if test "$ol_link_modules" != no ; then
16724 cat >> confdefs.h <<\EOF
16725 #define SLAPD_MODULES 1
16729 SLAPD_MODULES_LDFLAGS="-dlopen self"
16732 if test "$ol_enable_bdb" != no ; then
16733 cat >> confdefs.h <<\EOF
16734 #define SLAPD_BDB 1
16739 if test "$ol_with_bdb_module" != static ; then
16740 cat >> confdefs.h <<\EOF
16741 #define SLAPD_BDB_DYNAMIC 1
16745 BUILD_BDB_DYNAMIC=shared
16746 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16750 if test "$ol_link_dnssrv" != no ; then
16751 cat >> confdefs.h <<\EOF
16752 #define SLAPD_DNSSRV 1
16757 if test "$ol_with_dnssrv_module" != static ; then
16758 cat >> confdefs.h <<\EOF
16759 #define SLAPD_DNSSRV_DYNAMIC 1
16763 BUILD_DNSSRV_DYNAMIC=shared
16764 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16768 if test "$ol_enable_ldap" != no ; then
16769 cat >> confdefs.h <<\EOF
16770 #define SLAPD_LDAP 1
16775 if test "$ol_with_ldap_module" != static ; then
16776 cat >> confdefs.h <<\EOF
16777 #define SLAPD_LDAP_DYNAMIC 1
16781 BUILD_LDAP_DYNAMIC=shared
16782 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16786 if test "$ol_link_ldbm" != no ; then
16787 cat >> confdefs.h <<\EOF
16788 #define SLAPD_LDBM 1
16793 if test "$ol_with_ldbm_module" != static ; then
16794 cat >> confdefs.h <<\EOF
16795 #define SLAPD_LDBM_DYNAMIC 1
16799 BUILD_LDBM_DYNAMIC=shared
16800 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16804 if test "$ol_enable_meta" != no ; then
16805 if test "$ol_enable_ldap" = no ; then
16806 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
16808 if test "$ol_enable_rewrite" = no ; then
16809 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
16811 cat >> confdefs.h <<\EOF
16812 #define SLAPD_META 1
16817 if test "$ol_with_meta_module" != static ; then
16818 cat >> confdefs.h <<\EOF
16819 #define SLAPD_META_DYNAMIC 1
16823 BUILD_META_DYNAMIC=shared
16824 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
16828 if test "$ol_enable_passwd" != no ; then
16829 cat >> confdefs.h <<\EOF
16830 #define SLAPD_PASSWD 1
16835 if test "$ol_with_passwd_module" != static ; then
16836 cat >> confdefs.h <<\EOF
16837 #define SLAPD_PASSWD_DYNAMIC 1
16841 BUILD_PASSWD_DYNAMIC=shared
16842 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16846 if test "$ol_link_perl" != no ; then
16847 cat >> confdefs.h <<\EOF
16848 #define SLAPD_PERL 1
16853 if test "$ol_with_perl_module" != static ; then
16854 cat >> confdefs.h <<\EOF
16855 #define SLAPD_PERL_DYNAMIC 1
16859 BUILD_PERL_DYNAMIC=shared
16860 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16864 if test "$ol_enable_shell" != no ; then
16865 cat >> confdefs.h <<\EOF
16866 #define SLAPD_SHELL 1
16871 if test "$ol_with_shell_module" != static ; then
16872 cat >> confdefs.h <<\EOF
16873 #define SLAPD_SHELL_DYNAMIC 1
16877 BUILD_SHELL_DYNAMIC=shared
16878 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16882 if test "$ol_enable_tcl" != no ; then
16883 cat >> confdefs.h <<\EOF
16884 #define SLAPD_TCL 1
16889 if test "$ol_with_tcl_module" != static; then
16890 cat >> confdefs.h <<\EOF
16891 #define SLAPD_TCL_DYNAMIC 1
16895 BUILD_TCL_DYNAMIC=shared
16896 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16900 if test "$ol_link_sql" != no ; then
16901 cat >> confdefs.h <<\EOF
16902 #define SLAPD_SQL 1
16907 if test "$ol_with_sql_module" != static; then
16908 cat >> confdefs.h <<\EOF
16909 #define SLAPD_SQL_DYNAMIC 1
16913 BUILD_SQL_DYNAMIC=shared
16914 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16918 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16919 $BUILD_SLAPD = yes ; then
16923 if test "$ol_enable_rewrite" != no ; then
16924 cat >> confdefs.h <<\EOF
16925 #define ENABLE_REWRITE 1
16929 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
16933 if test "$LINK_BINS_DYNAMIC" = yes; then
16935 LT_LIB_LINKAGE=shared
16938 LT_LIB_LINKAGE=static
16941 if test "$ac_cv_mingw32" = yes ; then
17016 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17019 # Let make expand exec_prefix.
17020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17022 # Any assignment to VPATH causes Sun make to only execute
17023 # the first set of double-colon rules, so remove it if not needed.
17024 # If there is a colon in the path, we need to keep it.
17025 if test "x$srcdir" = x.; then
17026 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17029 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17031 DEFS=-DHAVE_CONFIG_H
17033 # Without the "./", some shells look in PATH for config.status.
17034 : ${CONFIG_STATUS=./config.status}
17036 echo creating $CONFIG_STATUS
17037 rm -f $CONFIG_STATUS
17038 cat > $CONFIG_STATUS <<EOF
17040 # Generated automatically by configure.
17041 # Run this file to recreate the current configuration.
17042 # This directory was configured as follows,
17043 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17045 # $0 $ac_configure_args
17047 # Compiler output produced by configure, useful for debugging
17048 # configure, is in ./config.log if it exists.
17050 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17053 case "\$ac_option" in
17054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17055 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17056 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17057 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17058 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17060 -help | --help | --hel | --he | --h)
17061 echo "\$ac_cs_usage"; exit 0 ;;
17062 *) echo "\$ac_cs_usage"; exit 1 ;;
17066 ac_given_srcdir=$srcdir
17067 ac_given_INSTALL="$INSTALL"
17069 trap 'rm -fr `echo "\
17070 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17071 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17072 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17073 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17074 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17075 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17076 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17077 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17078 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17079 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17080 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17081 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17082 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17083 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17084 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17085 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17086 include/Makefile:build/top.mk:include/Makefile.in \
17087 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17088 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17089 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17090 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17091 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17092 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17093 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17094 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17095 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17096 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
17097 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17098 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17099 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17100 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17101 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17102 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17103 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
17104 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17105 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17106 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17107 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17108 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17109 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17110 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17111 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17112 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17113 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17114 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17115 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17116 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
17117 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17119 cat >> $CONFIG_STATUS <<EOF
17121 # Protect against being on the right side of a sed subst in config.status.
17122 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17123 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17127 s%@CFLAGS@%$CFLAGS%g
17128 s%@CPPFLAGS@%$CPPFLAGS%g
17129 s%@CXXFLAGS@%$CXXFLAGS%g
17130 s%@FFLAGS@%$FFLAGS%g
17132 s%@LDFLAGS@%$LDFLAGS%g
17134 s%@exec_prefix@%$exec_prefix%g
17135 s%@prefix@%$prefix%g
17136 s%@program_transform_name@%$program_transform_name%g
17137 s%@bindir@%$bindir%g
17138 s%@sbindir@%$sbindir%g
17139 s%@libexecdir@%$libexecdir%g
17140 s%@datadir@%$datadir%g
17141 s%@sysconfdir@%$sysconfdir%g
17142 s%@sharedstatedir@%$sharedstatedir%g
17143 s%@localstatedir@%$localstatedir%g
17144 s%@libdir@%$libdir%g
17145 s%@includedir@%$includedir%g
17146 s%@oldincludedir@%$oldincludedir%g
17147 s%@infodir@%$infodir%g
17148 s%@mandir@%$mandir%g
17150 s%@host_alias@%$host_alias%g
17151 s%@host_cpu@%$host_cpu%g
17152 s%@host_vendor@%$host_vendor%g
17153 s%@host_os@%$host_os%g
17154 s%@target@%$target%g
17155 s%@target_alias@%$target_alias%g
17156 s%@target_cpu@%$target_cpu%g
17157 s%@target_vendor@%$target_vendor%g
17158 s%@target_os@%$target_os%g
17160 s%@build_alias@%$build_alias%g
17161 s%@build_cpu@%$build_cpu%g
17162 s%@build_vendor@%$build_vendor%g
17163 s%@build_os@%$build_os%g
17164 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17165 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17166 s%@INSTALL_DATA@%$INSTALL_DATA%g
17167 s%@PACKAGE@%$PACKAGE%g
17168 s%@VERSION@%$VERSION%g
17169 s%@ACLOCAL@%$ACLOCAL%g
17170 s%@AUTOCONF@%$AUTOCONF%g
17171 s%@AUTOMAKE@%$AUTOMAKE%g
17172 s%@AUTOHEADER@%$AUTOHEADER%g
17173 s%@MAKEINFO@%$MAKEINFO%g
17174 s%@install_sh@%$install_sh%g
17177 s%@AMTARFLAGS@%$AMTARFLAGS%g
17178 s%@SET_MAKE@%$SET_MAKE%g
17179 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
17180 s%@top_builddir@%$top_builddir%g
17181 s%@ldap_subdir@%$ldap_subdir%g
17183 s%@RANLIB@%$RANLIB%g
17185 s%@DLLTOOL@%$DLLTOOL%g
17187 s%@OBJDUMP@%$OBJDUMP%g
17188 s%@LIBTOOL@%$LIBTOOL%g
17190 s%@SENDMAIL@%$SENDMAIL%g
17191 s%@EDITOR@%$EDITOR%g
17192 s%@FINGER@%$FINGER%g
17193 s%@PERLBIN@%$PERLBIN%g
17195 s%@EXEEXT@%$EXEEXT%g
17196 s%@OBJEXT@%$OBJEXT%g
17197 s%@OL_MKDEP@%$OL_MKDEP%g
17198 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17199 s%@LIBOBJS@%$LIBOBJS%g
17200 s%@LIBSRCS@%$LIBSRCS%g
17202 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17203 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17204 s%@DYN_EXT@%$DYN_EXT%g
17205 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17206 s%@BUILD_BDB@%$BUILD_BDB%g
17207 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17208 s%@BUILD_LDAP@%$BUILD_LDAP%g
17209 s%@BUILD_LDBM@%$BUILD_LDBM%g
17210 s%@BUILD_META@%$BUILD_META%g
17211 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17212 s%@BUILD_PERL@%$BUILD_PERL%g
17213 s%@BUILD_SHELL@%$BUILD_SHELL%g
17214 s%@BUILD_SQL@%$BUILD_SQL%g
17215 s%@BUILD_TCL@%$BUILD_TCL%g
17216 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
17217 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17218 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17219 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17220 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
17221 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17222 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
17223 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17224 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17225 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
17226 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17227 s%@LDAP_LIBS@%$LDAP_LIBS%g
17228 s%@LDIF_LIBS@%$LDIF_LIBS%g
17229 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17230 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17231 s%@LDBM_LIBS@%$LDBM_LIBS%g
17232 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17233 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17234 s%@WRAP_LIBS@%$WRAP_LIBS%g
17235 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
17236 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17237 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17238 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17239 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17240 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
17241 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
17242 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
17243 s%@KRB4_LIBS@%$KRB4_LIBS%g
17244 s%@KRB5_LIBS@%$KRB5_LIBS%g
17245 s%@READLINE_LIBS@%$READLINE_LIBS%g
17246 s%@SASL_LIBS@%$SASL_LIBS%g
17247 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17248 s%@TLS_LIBS@%$TLS_LIBS%g
17249 s%@MODULES_LIBS@%$MODULES_LIBS%g
17250 s%@AUTH_LIBS@%$AUTH_LIBS%g
17251 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
17252 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17253 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17254 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17259 cat >> $CONFIG_STATUS <<\EOF
17261 # Split the substitutions into bite-sized pieces for seds with
17262 # small command number limits, like on Digital OSF/1 and HP-UX.
17263 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17264 ac_file=1 # Number of current file.
17265 ac_beg=1 # First line for current file.
17266 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17269 while $ac_more_lines; do
17270 if test $ac_beg -gt 1; then
17271 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17273 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17275 if test ! -s conftest.s$ac_file; then
17276 ac_more_lines=false
17277 rm -f conftest.s$ac_file
17279 if test -z "$ac_sed_cmds"; then
17280 ac_sed_cmds="sed -f conftest.s$ac_file"
17282 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17284 ac_file=`expr $ac_file + 1`
17286 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17289 if test -z "$ac_sed_cmds"; then
17294 cat >> $CONFIG_STATUS <<EOF
17296 CONFIG_FILES=\${CONFIG_FILES-"\
17297 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17298 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17299 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17300 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17301 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17302 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17303 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17304 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17305 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17306 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17307 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17308 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17309 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17310 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17311 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17312 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17313 include/Makefile:build/top.mk:include/Makefile.in \
17314 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17315 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17316 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17317 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17318 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17319 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17320 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17321 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17322 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17323 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
17324 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17325 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17326 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17327 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17328 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17329 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17330 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
17331 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17332 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17333 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17334 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17335 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17336 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17337 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17338 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17339 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17340 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17341 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17342 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17343 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
17346 cat >> $CONFIG_STATUS <<\EOF
17347 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17350 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17351 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17352 *) ac_file_in="${ac_file}.in" ;;
17355 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17357 # Remove last slash and all that follows it. Not all systems have dirname.
17358 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17360 # The file is in a subdirectory.
17361 test ! -d "$ac_dir" && mkdir "$ac_dir"
17362 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17363 # A "../" for each directory in $ac_dir_suffix.
17364 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17366 ac_dir_suffix= ac_dots=
17369 case "$ac_given_srcdir" in
17371 if test -z "$ac_dots"; then top_srcdir=.
17372 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17373 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17374 *) # Relative path.
17375 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17376 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17379 case "$ac_given_INSTALL" in
17380 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17381 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17384 echo creating "$ac_file"
17386 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17388 *[Mm]akefile*) ac_comsub="1i\\
17389 # $configure_input" ;;
17393 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17395 s%@configure_input@%$configure_input%g
17396 s%@srcdir@%$srcdir%g
17397 s%@top_srcdir@%$top_srcdir%g
17398 s%@INSTALL@%$INSTALL%g
17399 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17403 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17404 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17406 # ac_d sets the value in "#define NAME VALUE" lines.
17407 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17408 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17411 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17412 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17413 ac_uB='\([ ]\)%\1#\2define\3'
17416 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17417 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17418 ac_eB='$%\1#\2define\3'
17422 if test "${CONFIG_HEADERS+set}" != set; then
17424 cat >> $CONFIG_STATUS <<EOF
17425 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17427 cat >> $CONFIG_STATUS <<\EOF
17429 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17430 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17433 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17434 *) ac_file_in="${ac_file}.in" ;;
17437 echo creating $ac_file
17439 rm -f conftest.frag conftest.in conftest.out
17440 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17441 cat $ac_file_inputs > conftest.in
17445 # Transform confdefs.h into a sed script conftest.vals that substitutes
17446 # the proper values into config.h.in to produce config.h. And first:
17447 # Protect against being on the right side of a sed subst in config.status.
17448 # Protect against being in an unquoted here document in config.status.
17449 rm -f conftest.vals
17450 cat > conftest.hdr <<\EOF
17453 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17457 sed -n -f conftest.hdr confdefs.h > conftest.vals
17460 # This sed command replaces #undef with comments. This is necessary, for
17461 # example, in the case of _POSIX_SOURCE, which is predefined and required
17462 # on some systems where configure will not decide to define it.
17463 cat >> conftest.vals <<\EOF
17464 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17467 # Break up conftest.vals because some shells have a limit on
17468 # the size of here documents, and old seds have small limits too.
17470 rm -f conftest.tail
17473 ac_lines=`grep -c . conftest.vals`
17474 # grep -c gives empty output for an empty file on some AIX systems.
17475 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17476 # Write a limited-size here document to conftest.frag.
17477 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17478 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17480 sed -f conftest.frag conftest.in > conftest.out
17482 mv conftest.out conftest.in
17483 ' >> $CONFIG_STATUS
17484 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17485 rm -f conftest.vals
17486 mv conftest.tail conftest.vals
17488 rm -f conftest.vals
17490 cat >> $CONFIG_STATUS <<\EOF
17491 rm -f conftest.frag conftest.h
17492 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17493 cat conftest.in >> conftest.h
17495 if cmp -s $ac_file conftest.h 2>/dev/null; then
17496 echo "$ac_file is unchanged"
17499 # Remove last slash and all that follows it. Not all systems have dirname.
17500 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17502 # The file is in a subdirectory.
17503 test ! -d "$ac_dir" && mkdir "$ac_dir"
17506 mv conftest.h $ac_file
17511 cat >> $CONFIG_STATUS <<EOF
17514 cat >> $CONFIG_STATUS <<\EOF
17517 echo Please \"make depend\" to build dependencies
17521 chmod +x $CONFIG_STATUS
17522 rm -fr confdefs* $ac_clean_files
17523 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1