3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.19 2000/10/04 15:21:29 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (no)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-rlookups enable reverse lookups (auto)"
82 --enable-aci enable per-object ACIs (no)"
84 --enable-wrappers enable tcp wrapper support (no)"
86 --enable-dynamic enable linking built binaries with dynamic libs (no)"
88 --enable-dnssrv enable dnssrv backend (no)"
90 --with-dnssrv-module module type (static)"
92 --enable-ldap enable ldap backend (no)"
94 --with-ldap-module module type (static)"
96 --enable-ldbm enable ldbm backend (yes)"
98 --with-ldbm-api with LDBM API (auto)"
100 --with-ldbm-module module type (static)"
102 --with-ldbm-type use LDBM type (auto)"
104 --enable-passwd enable passwd backend (no)"
106 --with-passwd-module module type (static)"
108 --enable-shell enable shell backend (no)"
110 --with-shell-module module type (static)"
112 --enable-sql enable sql backend (no)"
114 --with-sql-module module type (static)"
116 SLURPD (Replication Daemon) Options:"
118 --enable-slurpd enable building slurpd (auto)"
120 Library Generation & Linking Options"
122 --enable-static[=PKGS] build static libraries [default=yes]"
124 --enable-shared[=PKGS] build shared libraries [default=yes]"
126 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
128 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
130 --disable-libtool-lock avoid locking (might break parallel builds)"
132 # Initialize some variables set by options.
133 # The variables have the same names as the options, with
134 # dashes changed to underlines.
136 cache_file=./config.cache
145 program_transform_name=s,x,x,
153 bindir='${exec_prefix}/bin'
154 sbindir='${exec_prefix}/sbin'
155 libexecdir='${exec_prefix}/libexec'
156 datadir='${prefix}/share'
157 sysconfdir='${prefix}/etc'
158 sharedstatedir='${prefix}/com'
159 localstatedir='${prefix}/var'
160 libdir='${exec_prefix}/lib'
161 includedir='${prefix}/include'
162 oldincludedir='/usr/include'
163 infodir='${prefix}/info'
164 mandir='${prefix}/man'
166 # Initialize some other variables.
169 SHELL=${CONFIG_SHELL-/bin/sh}
170 # Maximum number of lines to put in a shell here document.
177 # If the previous option needs an argument, assign it.
178 if test -n "$ac_prev"; then
179 eval "$ac_prev=\$ac_option"
185 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
189 # Accept the important Cygnus configure options, so we can diagnose typos.
193 -bindir | --bindir | --bindi | --bind | --bin | --bi)
195 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
196 bindir="$ac_optarg" ;;
198 -build | --build | --buil | --bui | --bu)
200 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
201 build="$ac_optarg" ;;
203 -cache-file | --cache-file | --cache-fil | --cache-fi \
204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
205 ac_prev=cache_file ;;
206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
208 cache_file="$ac_optarg" ;;
210 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
212 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
214 datadir="$ac_optarg" ;;
216 -disable-* | --disable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 eval "enable_${ac_feature}=no" ;;
225 -enable-* | --enable-*)
226 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
236 eval "enable_${ac_feature}='$ac_optarg'" ;;
238 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
239 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
240 | --exec | --exe | --ex)
241 ac_prev=exec_prefix ;;
242 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
243 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
244 | --exec=* | --exe=* | --ex=*)
245 exec_prefix="$ac_optarg" ;;
247 -gas | --gas | --ga | --g)
248 # Obsolete; use --with-gas.
251 -help | --help | --hel | --he)
252 # Omit some internal or obsolete options to make the list less imposing.
253 # This message is too long to be a string in the A/UX 3.1 sh.
255 Usage: configure [options] [host]
256 Options: [defaults in brackets after descriptions]
258 --cache-file=FILE cache test results in FILE
259 --help print this message
260 --no-create do not create output files
261 --quiet, --silent do not print \`checking...' messages
262 --version print the version of autoconf that created configure
263 Directory and file names:
264 --prefix=PREFIX install architecture-independent files in PREFIX
266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
268 --bindir=DIR user executables in DIR [EPREFIX/bin]
269 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
270 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
271 --datadir=DIR read-only architecture-independent data in DIR
273 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
274 --sharedstatedir=DIR modifiable architecture-independent data in DIR
276 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
277 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
278 --includedir=DIR C header files in DIR [PREFIX/include]
279 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
280 --infodir=DIR info documentation in DIR [PREFIX/info]
281 --mandir=DIR man documentation in DIR [PREFIX/man]
282 --srcdir=DIR find the sources in DIR [configure dir or ..]
283 --program-prefix=PREFIX prepend PREFIX to installed program names
284 --program-suffix=SUFFIX append SUFFIX to installed program names
285 --program-transform-name=PROGRAM
286 run sed PROGRAM on installed program names
290 --build=BUILD configure for building on BUILD [BUILD=HOST]
291 --host=HOST configure for HOST [guessed]
292 --target=TARGET configure for TARGET [TARGET=HOST]
293 Features and packages:
294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
298 --x-includes=DIR X include files are in DIR
299 --x-libraries=DIR X library files are in DIR
301 if test -n "$ac_help"; then
302 echo "--enable and --with options recognized:$ac_help"
306 -host | --host | --hos | --ho)
308 -host=* | --host=* | --hos=* | --ho=*)
311 -includedir | --includedir | --includedi | --included | --include \
312 | --includ | --inclu | --incl | --inc)
313 ac_prev=includedir ;;
314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
315 | --includ=* | --inclu=* | --incl=* | --inc=*)
316 includedir="$ac_optarg" ;;
318 -infodir | --infodir | --infodi | --infod | --info | --inf)
320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
321 infodir="$ac_optarg" ;;
323 -libdir | --libdir | --libdi | --libd)
325 -libdir=* | --libdir=* | --libdi=* | --libd=*)
326 libdir="$ac_optarg" ;;
328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
329 | --libexe | --libex | --libe)
330 ac_prev=libexecdir ;;
331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
332 | --libexe=* | --libex=* | --libe=*)
333 libexecdir="$ac_optarg" ;;
335 -localstatedir | --localstatedir | --localstatedi | --localstated \
336 | --localstate | --localstat | --localsta | --localst \
337 | --locals | --local | --loca | --loc | --lo)
338 ac_prev=localstatedir ;;
339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
340 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
341 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
342 localstatedir="$ac_optarg" ;;
344 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
346 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
347 mandir="$ac_optarg" ;;
350 # Obsolete; use --without-fp.
353 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
357 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
361 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
362 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
363 | --oldin | --oldi | --old | --ol | --o)
364 ac_prev=oldincludedir ;;
365 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
366 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
367 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
368 oldincludedir="$ac_optarg" ;;
370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
373 prefix="$ac_optarg" ;;
375 -program-prefix | --program-prefix | --program-prefi | --program-pref \
376 | --program-pre | --program-pr | --program-p)
377 ac_prev=program_prefix ;;
378 -program-prefix=* | --program-prefix=* | --program-prefi=* \
379 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
380 program_prefix="$ac_optarg" ;;
382 -program-suffix | --program-suffix | --program-suffi | --program-suff \
383 | --program-suf | --program-su | --program-s)
384 ac_prev=program_suffix ;;
385 -program-suffix=* | --program-suffix=* | --program-suffi=* \
386 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
387 program_suffix="$ac_optarg" ;;
389 -program-transform-name | --program-transform-name \
390 | --program-transform-nam | --program-transform-na \
391 | --program-transform-n | --program-transform- \
392 | --program-transform | --program-transfor \
393 | --program-transfo | --program-transf \
394 | --program-trans | --program-tran \
395 | --progr-tra | --program-tr | --program-t)
396 ac_prev=program_transform_name ;;
397 -program-transform-name=* | --program-transform-name=* \
398 | --program-transform-nam=* | --program-transform-na=* \
399 | --program-transform-n=* | --program-transform-=* \
400 | --program-transform=* | --program-transfor=* \
401 | --program-transfo=* | --program-transf=* \
402 | --program-trans=* | --program-tran=* \
403 | --progr-tra=* | --program-tr=* | --program-t=*)
404 program_transform_name="$ac_optarg" ;;
406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
407 | -silent | --silent | --silen | --sile | --sil)
410 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
412 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
414 sbindir="$ac_optarg" ;;
416 -sharedstatedir | --sharedstatedir | --sharedstatedi \
417 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
418 | --sharedst | --shareds | --shared | --share | --shar \
420 ac_prev=sharedstatedir ;;
421 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
422 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
423 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
425 sharedstatedir="$ac_optarg" ;;
427 -site | --site | --sit)
429 -site=* | --site=* | --sit=*)
432 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
434 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
435 srcdir="$ac_optarg" ;;
437 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
438 | --syscon | --sysco | --sysc | --sys | --sy)
439 ac_prev=sysconfdir ;;
440 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
441 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
442 sysconfdir="$ac_optarg" ;;
444 -target | --target | --targe | --targ | --tar | --ta | --t)
446 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
447 target="$ac_optarg" ;;
449 -v | -verbose | --verbose | --verbos | --verbo | --verb)
452 -version | --version | --versio | --versi | --vers)
453 echo "configure generated by autoconf version 2.13.1"
457 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
458 # Reject names that are not valid shell variable names.
459 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
460 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}='$ac_optarg'" ;;
469 -without-* | --without-*)
470 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
471 # Reject names that are not valid shell variable names.
472 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
475 ac_package=`echo $ac_package| sed 's/-/_/g'`
476 eval "with_${ac_package}=no" ;;
479 # Obsolete; use --with-x.
482 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
483 | --x-incl | --x-inc | --x-in | --x-i)
484 ac_prev=x_includes ;;
485 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
486 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
487 x_includes="$ac_optarg" ;;
489 -x-libraries | --x-libraries | --x-librarie | --x-librari \
490 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
491 ac_prev=x_libraries ;;
492 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
493 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
494 x_libraries="$ac_optarg" ;;
496 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
500 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
501 echo "configure: warning: $ac_option: invalid host type" 1>&2
503 if test "x$nonopt" != xNONE; then
504 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
512 if test -n "$ac_prev"; then
513 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
518 # File descriptor usage:
521 # 2 errors and warnings
522 # 3 some systems may open it to /dev/tty
523 # 4 used on the Kubota Titan
524 # 6 checking for... messages and results
525 # 5 compiler messages saved in config.log
526 if test "$silent" = yes; then
534 This file contains any messages produced by compilers while
535 running configure, to aid debugging if configure makes a mistake.
538 # Strip out --no-create and --no-recursion so they do not pile up.
539 # Also quote any args containing shell metacharacters.
544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
545 | --no-cr | --no-c) ;;
546 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
547 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
549 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
550 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
565 rm -rf conftest* confdefs.h
566 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
569 # A filename unique to this package, relative to the directory that
570 # configure is in, which we can look for to find out if srcdir is correct.
571 ac_unique_file=build/version
573 # Find the source files, if location was not specified.
574 if test -z "$srcdir"; then
575 ac_srcdir_defaulted=yes
576 # Try the directory containing this script, then its parent.
578 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
579 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
581 if test ! -r $srcdir/$ac_unique_file; then
585 ac_srcdir_defaulted=no
587 if test ! -r $srcdir/$ac_unique_file; then
588 if test "$ac_srcdir_defaulted" = yes; then
589 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
591 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
594 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
596 # Prefer explicitly selected file to automatically selected ones.
597 if test -z "$CONFIG_SITE"; then
598 if test "x$prefix" != xNONE; then
599 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
601 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
604 for ac_site_file in $CONFIG_SITE; do
605 if test -r "$ac_site_file"; then
606 echo "loading site script $ac_site_file"
613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
614 ac_cpp='$CPP $CPPFLAGS'
615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
617 cross_compiling=$ac_cv_prog_cc_cross
621 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
622 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
623 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
630 ac_n= ac_c='\c' ac_t=
634 # set unset (borrowed from autoconf 2.14a)
635 if (unset FOO) >/dev/null 2>&1; then
641 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
644 for ac_dir in build $srcdir/build; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
653 elif test -f $ac_dir/shtool; then
655 ac_install_sh="$ac_aux_dir/shtool install -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
662 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
663 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
664 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
666 OL_VERSION=`cat $ac_aux_dir/version`
667 if test -z "$OL_VERSION"; then
668 { echo "configure: error: could not determine version" 1>&2; exit 1; }
671 echo "Configuring OpenLDAP $OL_VERSION ..."
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
676 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
678 # Make sure we can run config.sub.
679 if $ac_config_sub sun4 >/dev/null 2>&1; then :
680 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
683 ac_cv_host_alias=$host
684 case "$ac_cv_host_alias" in
688 if ac_cv_host_alias=`$ac_config_guess`; then :
689 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
691 *) ac_cv_host_alias=$nonopt ;;
695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
696 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo $ac_n "(cached) $ac_c" 1>&6
703 echo "$ac_t""$ac_cv_host" 1>&6
706 host_alias=$ac_cv_host_alias
707 host_cpu=$ac_cv_host_cpu
708 host_vendor=$ac_cv_host_vendor
709 host_os=$ac_cv_host_os
715 echo $ac_n "checking target system type""... $ac_c" 1>&6
716 echo "configure:717: checking target system type" >&5
717 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4 >/dev/null 2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 ac_cv_target_alias=$target
725 case "$ac_cv_target_alias" in
729 ac_cv_target_alias=$host_alias ;;
731 *) ac_cv_target_alias=$nonopt ;;
735 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
736 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
740 echo $ac_n "(cached) $ac_c" 1>&6
743 echo "$ac_t""$ac_cv_target" 1>&6
746 target_alias=$ac_cv_target_alias
747 target_cpu=$ac_cv_target_cpu
748 target_vendor=$ac_cv_target_vendor
749 target_os=$ac_cv_target_os
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
757 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
759 # Make sure we can run config.sub.
760 if $ac_config_sub sun4 >/dev/null 2>&1; then :
761 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
764 ac_cv_build_alias=$build
765 case "$ac_cv_build_alias" in
769 ac_cv_build_alias=$host_alias ;;
771 *) ac_cv_build_alias=$nonopt ;;
775 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
776 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
780 echo $ac_n "(cached) $ac_c" 1>&6
783 echo "$ac_t""$ac_cv_build" 1>&6
786 build_alias=$ac_cv_build_alias
787 build_cpu=$ac_cv_build_cpu
788 build_vendor=$ac_cv_build_vendor
789 build_os=$ac_cv_build_os
795 # Do some error checking and defaulting for the host and target type.
797 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
800 # 1. You are not allowed to specify --host, --target, and nonopt at the
802 # 2. Host defaults to nonopt.
803 # 3. If nonopt is not specified, then host defaults to the current host,
804 # as determined by config.guess.
805 # 4. Target and build default to nonopt.
806 # 5. If nonopt is not specified, then target and build default to host.
808 # The aliases save the names the user supplied, while $host etc.
809 # will get canonicalized.
810 case $host---$target---$nonopt in
811 NONE---*---* | *---NONE---* | *---*---NONE) ;;
812 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
815 test "$host_alias" != "$target_alias" &&
816 test "$program_prefix$program_suffix$program_transform_name" = \
818 program_prefix=${target_alias}-
821 # Find a good install program. We prefer a C program (faster),
822 # so one script is as good as another. But avoid the broken or
823 # incompatible versions:
824 # SysV /etc/install, /usr/sbin/install
825 # SunOS /usr/etc/install
828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
831 # ./install, which can be erroneously created by make from ./install.sh.
832 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
833 echo "configure:834: checking for a BSD compatible install" >&5
834 if test -z "$INSTALL"; then
835 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
839 for ac_dir in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 # Don't use installbsd from OSF since it installs stuff as root
847 for ac_prog in ginstall scoinst install; do
848 if test -f $ac_dir/$ac_prog; then
849 if test $ac_prog = install &&
850 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
851 # AIX install. It has an incompatible calling convention.
853 elif test $ac_prog = install &&
854 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # program-specific install script used by HP pwplus--don't use.
858 ac_cv_path_install="$ac_dir/$ac_prog -c"
869 if test "${ac_cv_path_install+set}" = set; then
870 INSTALL="$ac_cv_path_install"
872 # As a last resort, use the slow shell script. We don't cache a
873 # path for INSTALL within a source directory, because that will
874 # break other packages using the cache if that directory is
875 # removed, or if the path is relative.
876 INSTALL="$ac_install_sh"
879 echo "$ac_t""$INSTALL" 1>&6
881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
882 # It thinks the first close brace ends the variable substitution.
883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
890 echo "configure:891: checking whether build environment is sane" >&5
893 echo timestamp > conftestfile
894 # Do `set' in a subshell so we don't clobber the current shell's
895 # arguments. Must try -L first in case configure is actually a
896 # symlink; some systems play weird games with the mod time of symlinks
897 # (eg FreeBSD returns the mod time of the symlink's containing
900 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
901 if test "$*" = "X"; then
903 set X `ls -t $srcdir/configure conftestfile`
905 if test "$*" != "X $srcdir/configure conftestfile" \
906 && test "$*" != "X conftestfile $srcdir/configure"; then
908 # If neither matched, then we have a broken ls. This can happen
909 # if, for instance, CONFIG_SHELL is bash and it inherits a
910 # broken ls alias from the environment. This has actually
911 # happened. Such a system could not be considered "sane".
912 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
913 alias in your environment" 1>&2; exit 1; }
916 test "$2" = conftestfile
922 { echo "configure: error: newly created file is older than distributed files!
923 Check your system clock" 1>&2; exit 1; }
926 echo "$ac_t""yes" 1>&6
927 if test "$program_transform_name" = s,x,x,; then
928 program_transform_name=
930 # Double any \ or $. echo might interpret backslashes.
931 cat <<\EOF_SED > conftestsed
932 s,\\,\\\\,g; s,\$,$$,g
934 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
937 test "$program_prefix" != NONE &&
938 program_transform_name="s,^,${program_prefix},;$program_transform_name"
939 # Use a double $ so make ignores it.
940 test "$program_suffix" != NONE &&
941 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
943 # sed with no file args requires a program.
944 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
946 for ac_prog in mawk gawk nawk awk
948 # Extract the first word of "$ac_prog", so it can be a program name with args.
949 set dummy $ac_prog; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$AWK"; then
956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_AWK="$ac_prog"
970 AWK="$ac_cv_prog_AWK"
971 if test -n "$AWK"; then
972 echo "$ac_t""$AWK" 1>&6
974 echo "$ac_t""no" 1>&6
977 test -n "$AWK" && break
980 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${MAKE-make} sets \${MAKE}" >&5
982 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
983 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftestmake <<\EOF
988 @echo 'ac_maketemp="${MAKE}"'
990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
991 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
992 if test -n "$ac_maketemp"; then
993 eval ac_cv_prog_make_${ac_make}_set=yes
995 eval ac_cv_prog_make_${ac_make}_set=no
999 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1000 echo "$ac_t""yes" 1>&6
1003 echo "$ac_t""no" 1>&6
1004 SET_MAKE="MAKE=${MAKE-make}"
1013 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1014 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1019 missing_dir=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 ACLOCAL="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 AUTOCONF="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 AUTOMAKE="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1065 AUTOHEADER=autoheader
1066 echo "$ac_t""found" 1>&6
1068 AUTOHEADER="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 MAKEINFO="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1085 install_sh="$missing_dir/install-sh"
1086 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1088 for ac_prog in gnutar gtar tar
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$AMTAR"; then
1098 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_AMTAR="$ac_prog"
1112 AMTAR="$ac_cv_prog_AMTAR"
1113 if test -n "$AMTAR"; then
1114 echo "$ac_t""$AMTAR" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -n "$AMTAR" && break
1124 if test -n "$AMTAR"; then
1125 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_PACKAGE "$PACKAGE"
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_VERSION "$VERSION"
1143 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1144 echo "configure:1145: checking configure arguments" >&5
1149 ldap_subdir="/openldap"
1151 # Check whether --with-subdir or --without-subdir was given.
1152 if test "${with_subdir+set}" = set; then
1153 withval="$with_subdir"
1160 ldap_subdir="$withval"
1163 ldap_subdir="/$withval"
1170 # OpenLDAP --enable-debug
1171 # Check whether --enable-debug or --disable-debug was given.
1172 if test "${enable_debug+set}" = set; then
1173 enableval="$enable_debug"
1176 for ol_val in auto yes no ; do
1177 if test "$enableval" = "$ol_val" ; then
1181 if test "$ol_arg" = "invalid" ; then
1182 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1184 ol_enable_debug="$ol_arg"
1187 ol_enable_debug="yes"
1189 # end --enable-debug
1190 # OpenLDAP --enable-syslog
1191 # Check whether --enable-syslog or --disable-syslog was given.
1192 if test "${enable_syslog+set}" = set; then
1193 enableval="$enable_syslog"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1204 ol_enable_syslog="$ol_arg"
1207 ol_enable_syslog="auto"
1209 # end --enable-syslog
1210 # OpenLDAP --enable-proctitle
1211 # Check whether --enable-proctitle or --disable-proctitle was given.
1212 if test "${enable_proctitle+set}" = set; then
1213 enableval="$enable_proctitle"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1224 ol_enable_proctitle="$ol_arg"
1227 ol_enable_proctitle="yes"
1229 # end --enable-proctitle
1230 # OpenLDAP --enable-cache
1231 # Check whether --enable-cache or --disable-cache was given.
1232 if test "${enable_cache+set}" = set; then
1233 enableval="$enable_cache"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1244 ol_enable_cache="$ol_arg"
1247 ol_enable_cache="yes"
1249 # end --enable-cache
1250 # OpenLDAP --enable-referrals
1251 # Check whether --enable-referrals or --disable-referrals was given.
1252 if test "${enable_referrals+set}" = set; then
1253 enableval="$enable_referrals"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1264 ol_enable_referrals="$ol_arg"
1267 ol_enable_referrals="yes"
1269 # end --enable-referrals
1270 # OpenLDAP --enable-kbind
1271 # Check whether --enable-kbind or --disable-kbind was given.
1272 if test "${enable_kbind+set}" = set; then
1273 enableval="$enable_kbind"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1284 ol_enable_kbind="$ol_arg"
1287 ol_enable_kbind="no"
1289 # end --enable-kbind
1290 # OpenLDAP --enable-ipv6
1291 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1292 if test "${enable_ipv6+set}" = set; then
1293 enableval="$enable_ipv6"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1304 ol_enable_ipv6="$ol_arg"
1307 ol_enable_ipv6="auto"
1310 # OpenLDAP --enable-local
1311 # Check whether --enable-local or --disable-local was given.
1312 if test "${enable_local+set}" = set; then
1313 enableval="$enable_local"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1324 ol_enable_local="$ol_arg"
1327 ol_enable_local="auto"
1329 # end --enable-local
1330 # OpenLDAP --enable-x_compile
1331 # Check whether --enable-x_compile or --disable-x_compile was given.
1332 if test "${enable_x_compile+set}" = set; then
1333 enableval="$enable_x_compile"
1336 for ol_val in yes no ; do
1337 if test "$enableval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1344 ol_enable_x_compile="$ol_arg"
1347 ol_enable_x_compile="no"
1349 # end --enable-x_compile
1352 # OpenLDAP --with-cyrus_sasl
1353 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1354 if test "${with_cyrus_sasl+set}" = set; then
1355 withval="$with_cyrus_sasl"
1358 for ol_val in auto yes no ; do
1359 if test "$withval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1366 ol_with_cyrus_sasl="$ol_arg"
1369 ol_with_cyrus_sasl="auto"
1371 # end --with-cyrus_sasl
1373 # OpenLDAP --with-fetch
1374 # Check whether --with-fetch or --without-fetch was given.
1375 if test "${with_fetch+set}" = set; then
1376 withval="$with_fetch"
1379 for ol_val in auto yes no ; do
1380 if test "$withval" = "$ol_val" ; then
1384 if test "$ol_arg" = "invalid" ; then
1385 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1387 ol_with_fetch="$ol_arg"
1390 ol_with_fetch="auto"
1394 # OpenLDAP --with-kerberos
1395 # Check whether --with-kerberos or --without-kerberos was given.
1396 if test "${with_kerberos+set}" = set; then
1397 withval="$with_kerberos"
1400 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1401 if test "$withval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1408 ol_with_kerberos="$ol_arg"
1411 ol_with_kerberos="auto"
1413 # end --with-kerberos
1415 # OpenLDAP --with-readline
1416 # Check whether --with-readline or --without-readline was given.
1417 if test "${with_readline+set}" = set; then
1418 withval="$with_readline"
1421 for ol_val in auto yes no ; do
1422 if test "$withval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1429 ol_with_readline="$ol_arg"
1432 ol_with_readline="auto"
1434 # end --with-readline
1436 # OpenLDAP --with-threads
1437 # Check whether --with-threads or --without-threads was given.
1438 if test "${with_threads+set}" = set; then
1439 withval="$with_threads"
1442 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1443 if test "$withval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1450 ol_with_threads="$ol_arg"
1453 ol_with_threads="auto"
1455 # end --with-threads
1457 # OpenLDAP --with-tls
1458 # Check whether --with-tls or --without-tls was given.
1459 if test "${with_tls+set}" = set; then
1463 for ol_val in auto ssleay openssl yes no ; do
1464 if test "$withval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1471 ol_with_tls="$ol_arg"
1478 # OpenLDAP --with-yielding_select
1479 # Check whether --with-yielding_select or --without-yielding_select was given.
1480 if test "${with_yielding_select+set}" = set; then
1481 withval="$with_yielding_select"
1484 for ol_val in auto yes no manual ; do
1485 if test "$withval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1492 ol_with_yielding_select="$ol_arg"
1495 ol_with_yielding_select="auto"
1497 # end --with-yielding_select
1501 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1502 if test "${with_xxslapdoptions+set}" = set; then
1503 withval="$with_xxslapdoptions"
1507 # OpenLDAP --enable-slapd
1508 # Check whether --enable-slapd or --disable-slapd was given.
1509 if test "${enable_slapd+set}" = set; then
1510 enableval="$enable_slapd"
1513 for ol_val in auto yes no ; do
1514 if test "$enableval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1521 ol_enable_slapd="$ol_arg"
1524 ol_enable_slapd="yes"
1526 # end --enable-slapd
1527 # OpenLDAP --enable-cleartext
1528 # Check whether --enable-cleartext or --disable-cleartext was given.
1529 if test "${enable_cleartext+set}" = set; then
1530 enableval="$enable_cleartext"
1533 for ol_val in auto yes no ; do
1534 if test "$enableval" = "$ol_val" ; then
1538 if test "$ol_arg" = "invalid" ; then
1539 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1541 ol_enable_cleartext="$ol_arg"
1544 ol_enable_cleartext="yes"
1546 # end --enable-cleartext
1547 # OpenLDAP --enable-crypt
1548 # Check whether --enable-crypt or --disable-crypt was given.
1549 if test "${enable_crypt+set}" = set; then
1550 enableval="$enable_crypt"
1553 for ol_val in auto yes no ; do
1554 if test "$enableval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1561 ol_enable_crypt="$ol_arg"
1564 ol_enable_crypt="auto"
1566 # end --enable-crypt
1567 # OpenLDAP --enable-kpasswd
1568 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1569 if test "${enable_kpasswd+set}" = set; then
1570 enableval="$enable_kpasswd"
1573 for ol_val in auto yes no ; do
1574 if test "$enableval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1581 ol_enable_kpasswd="$ol_arg"
1584 ol_enable_kpasswd="no"
1586 # end --enable-kpasswd
1587 # OpenLDAP --enable-spasswd
1588 # Check whether --enable-spasswd or --disable-spasswd was given.
1589 if test "${enable_spasswd+set}" = set; then
1590 enableval="$enable_spasswd"
1593 for ol_val in auto yes no ; do
1594 if test "$enableval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1601 ol_enable_spasswd="$ol_arg"
1604 ol_enable_spasswd="no"
1606 # end --enable-spasswd
1607 # OpenLDAP --enable-modules
1608 # Check whether --enable-modules or --disable-modules was given.
1609 if test "${enable_modules+set}" = set; then
1610 enableval="$enable_modules"
1613 for ol_val in auto yes no ; do
1614 if test "$enableval" = "$ol_val" ; then
1618 if test "$ol_arg" = "invalid" ; then
1619 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1621 ol_enable_modules="$ol_arg"
1624 ol_enable_modules="no"
1626 # end --enable-modules
1627 # OpenLDAP --enable-multimaster
1628 # Check whether --enable-multimaster or --disable-multimaster was given.
1629 if test "${enable_multimaster+set}" = set; then
1630 enableval="$enable_multimaster"
1633 for ol_val in auto yes no ; do
1634 if test "$enableval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1641 ol_enable_multimaster="$ol_arg"
1644 ol_enable_multimaster="no"
1646 # end --enable-multimaster
1647 # OpenLDAP --enable-phonetic
1648 # Check whether --enable-phonetic or --disable-phonetic was given.
1649 if test "${enable_phonetic+set}" = set; then
1650 enableval="$enable_phonetic"
1653 for ol_val in auto yes no ; do
1654 if test "$enableval" = "$ol_val" ; then
1658 if test "$ol_arg" = "invalid" ; then
1659 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1661 ol_enable_phonetic="$ol_arg"
1664 ol_enable_phonetic="no"
1666 # end --enable-phonetic
1667 # OpenLDAP --enable-rlookups
1668 # Check whether --enable-rlookups or --disable-rlookups was given.
1669 if test "${enable_rlookups+set}" = set; then
1670 enableval="$enable_rlookups"
1673 for ol_val in auto yes no ; do
1674 if test "$enableval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1681 ol_enable_rlookups="$ol_arg"
1684 ol_enable_rlookups="auto"
1686 # end --enable-rlookups
1687 # OpenLDAP --enable-aci
1688 # Check whether --enable-aci or --disable-aci was given.
1689 if test "${enable_aci+set}" = set; then
1690 enableval="$enable_aci"
1693 for ol_val in auto yes no ; do
1694 if test "$enableval" = "$ol_val" ; then
1698 if test "$ol_arg" = "invalid" ; then
1699 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1701 ol_enable_aci="$ol_arg"
1707 # OpenLDAP --enable-wrappers
1708 # Check whether --enable-wrappers or --disable-wrappers was given.
1709 if test "${enable_wrappers+set}" = set; then
1710 enableval="$enable_wrappers"
1713 for ol_val in auto yes no ; do
1714 if test "$enableval" = "$ol_val" ; then
1718 if test "$ol_arg" = "invalid" ; then
1719 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1721 ol_enable_wrappers="$ol_arg"
1724 ol_enable_wrappers="no"
1726 # end --enable-wrappers
1727 # OpenLDAP --enable-dynamic
1728 # Check whether --enable-dynamic or --disable-dynamic was given.
1729 if test "${enable_dynamic+set}" = set; then
1730 enableval="$enable_dynamic"
1733 for ol_val in auto yes no ; do
1734 if test "$enableval" = "$ol_val" ; then
1738 if test "$ol_arg" = "invalid" ; then
1739 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1741 ol_enable_dynamic="$ol_arg"
1744 ol_enable_dynamic="no"
1746 # end --enable-dynamic
1748 # OpenLDAP --enable-dnssrv
1749 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1750 if test "${enable_dnssrv+set}" = set; then
1751 enableval="$enable_dnssrv"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1762 ol_enable_dnssrv="$ol_arg"
1765 ol_enable_dnssrv="no"
1767 # end --enable-dnssrv
1768 # OpenLDAP --with-dnssrv_module
1769 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1770 if test "${with_dnssrv_module+set}" = set; then
1771 withval="$with_dnssrv_module"
1774 for ol_val in static dynamic ; do
1775 if test "$withval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1782 ol_with_dnssrv_module="$ol_arg"
1785 ol_with_dnssrv_module="static"
1787 # end --with-dnssrv_module
1789 # OpenLDAP --enable-ldap
1790 # Check whether --enable-ldap or --disable-ldap was given.
1791 if test "${enable_ldap+set}" = set; then
1792 enableval="$enable_ldap"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1803 ol_enable_ldap="$ol_arg"
1809 # OpenLDAP --with-ldap_module
1810 # Check whether --with-ldap_module or --without-ldap_module was given.
1811 if test "${with_ldap_module+set}" = set; then
1812 withval="$with_ldap_module"
1815 for ol_val in static dynamic ; do
1816 if test "$withval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1823 ol_with_ldap_module="$ol_arg"
1826 ol_with_ldap_module="static"
1828 # end --with-ldap_module
1830 # OpenLDAP --enable-ldbm
1831 # Check whether --enable-ldbm or --disable-ldbm was given.
1832 if test "${enable_ldbm+set}" = set; then
1833 enableval="$enable_ldbm"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1844 ol_enable_ldbm="$ol_arg"
1847 ol_enable_ldbm="yes"
1850 # OpenLDAP --with-ldbm_api
1851 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1852 if test "${with_ldbm_api+set}" = set; then
1853 withval="$with_ldbm_api"
1856 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1864 ol_with_ldbm_api="$ol_arg"
1867 ol_with_ldbm_api="auto"
1869 # end --with-ldbm_api
1871 # OpenLDAP --with-ldbm_module
1872 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1873 if test "${with_ldbm_module+set}" = set; then
1874 withval="$with_ldbm_module"
1877 for ol_val in static dynamic ; do
1878 if test "$withval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1885 ol_with_ldbm_module="$ol_arg"
1888 ol_with_ldbm_module="static"
1890 # end --with-ldbm_module
1892 # OpenLDAP --with-ldbm_type
1893 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1894 if test "${with_ldbm_type+set}" = set; then
1895 withval="$with_ldbm_type"
1898 for ol_val in auto btree hash ; do
1899 if test "$withval" = "$ol_val" ; then
1903 if test "$ol_arg" = "invalid" ; then
1904 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1906 ol_with_ldbm_type="$ol_arg"
1909 ol_with_ldbm_type="auto"
1911 # end --with-ldbm_type
1913 # OpenLDAP --enable-passwd
1914 # Check whether --enable-passwd or --disable-passwd was given.
1915 if test "${enable_passwd+set}" = set; then
1916 enableval="$enable_passwd"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1927 ol_enable_passwd="$ol_arg"
1930 ol_enable_passwd="no"
1932 # end --enable-passwd
1933 # OpenLDAP --with-passwd_module
1934 # Check whether --with-passwd_module or --without-passwd_module was given.
1935 if test "${with_passwd_module+set}" = set; then
1936 withval="$with_passwd_module"
1939 for ol_val in static dynamic ; do
1940 if test "$withval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1947 ol_with_passwd_module="$ol_arg"
1950 ol_with_passwd_module="static"
1952 # end --with-passwd_module
1954 # OpenLDAP --enable-shell
1955 # Check whether --enable-shell or --disable-shell was given.
1956 if test "${enable_shell+set}" = set; then
1957 enableval="$enable_shell"
1960 for ol_val in auto yes no ; do
1961 if test "$enableval" = "$ol_val" ; then
1965 if test "$ol_arg" = "invalid" ; then
1966 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1968 ol_enable_shell="$ol_arg"
1971 ol_enable_shell="no"
1973 # end --enable-shell
1974 # OpenLDAP --with-shell_module
1975 # Check whether --with-shell_module or --without-shell_module was given.
1976 if test "${with_shell_module+set}" = set; then
1977 withval="$with_shell_module"
1980 for ol_val in static dynamic ; do
1981 if test "$withval" = "$ol_val" ; then
1985 if test "$ol_arg" = "invalid" ; then
1986 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1988 ol_with_shell_module="$ol_arg"
1991 ol_with_shell_module="static"
1993 # end --with-shell_module
1995 # OpenLDAP --enable-sql
1996 # Check whether --enable-sql or --disable-sql was given.
1997 if test "${enable_sql+set}" = set; then
1998 enableval="$enable_sql"
2001 for ol_val in auto yes no ; do
2002 if test "$enableval" = "$ol_val" ; then
2006 if test "$ol_arg" = "invalid" ; then
2007 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2009 ol_enable_sql="$ol_arg"
2015 # OpenLDAP --with-sql_module
2016 # Check whether --with-sql_module or --without-sql_module was given.
2017 if test "${with_sql_module+set}" = set; then
2018 withval="$with_sql_module"
2021 for ol_val in static dynamic ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2029 ol_with_sql_module="$ol_arg"
2032 ol_with_sql_module="static"
2034 # end --with-sql_module
2037 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2038 if test "${with_xxslurpdoptions+set}" = set; then
2039 withval="$with_xxslurpdoptions"
2043 # OpenLDAP --enable-slurpd
2044 # Check whether --enable-slurpd or --disable-slurpd was given.
2045 if test "${enable_slurpd+set}" = set; then
2046 enableval="$enable_slurpd"
2049 for ol_val in auto yes no ; do
2050 if test "$enableval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2057 ol_enable_slurpd="$ol_arg"
2060 ol_enable_slurpd="auto"
2062 # end --enable-slurpd
2064 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2065 if test "${with_xxliboptions+set}" = set; then
2066 withval="$with_xxliboptions"
2070 # Check whether --enable-static or --disable-static was given.
2071 if test "${enable_static+set}" = set; then
2072 enableval="$enable_static"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_static=yes ;;
2076 no) enable_static=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2093 # Check whether --enable-shared or --disable-shared was given.
2094 if test "${enable_shared+set}" = set; then
2095 enableval="$enable_shared"
2096 p=${PACKAGE-default}
2097 case "$enableval" in
2098 yes) enable_shared=yes ;;
2099 no) enable_shared=no ;;
2102 # Look at the argument we got. We use all the common list separators.
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2104 for pkg in $enableval; do
2105 if test "X$pkg" = "X$p"; then
2119 if test $ol_enable_slapd = no ; then
2120 if test $ol_enable_dnssrv = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2123 if test $ol_enable_ldap = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2126 if test $ol_enable_ldbm = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2129 if test $ol_enable_passwd = yes ; then
2130 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2132 if test $ol_enable_shell = yes ; then
2133 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2135 if test $ol_enable_sql = yes ; then
2136 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2138 if test $ol_enable_modules = yes ; then
2139 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2141 if test $ol_enable_multimaster = yes ; then
2142 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2144 if test $ol_enable_wrappers = yes ; then
2145 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2147 if test $ol_enable_phonetic = yes ; then
2148 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2150 if test $ol_enable_rlookups = yes ; then
2151 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2153 if test $ol_enable_aci = yes ; then
2154 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2156 if test $ol_with_ldbm_api != auto ; then
2157 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2159 if test $ol_with_ldbm_type != auto ; then
2160 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2162 if test $ol_with_dnssrv_module != static ; then
2163 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2165 if test $ol_with_ldap_module != static ; then
2166 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2168 if test $ol_with_ldbm_module != static ; then
2169 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2171 if test $ol_with_passwd_module != static ; then
2172 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2174 if test $ol_with_shell_module != static ; then
2175 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2177 if test $ol_with_sql_module != static ; then
2178 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2180 if test $ol_enable_slurpd = yes ; then
2181 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2184 # force settings to no
2192 ol_enable_modules=no
2193 ol_enable_multimaster=no
2194 ol_enable_phonetic=no
2195 ol_enable_rlookups=no
2197 ol_enable_wrappers=no
2198 ol_enable_dynamic=no
2201 ol_with_ldbm_type=no
2203 ol_with_dnssrv_module=static
2204 ol_with_ldap_module=static
2205 ol_with_ldbm_module=static
2206 ol_with_passwd_module=static
2207 ol_with_shell_module=static
2208 ol_with_sql_module=static
2212 elif test $ol_enable_ldbm = no ; then
2214 if test $ol_with_ldbm_api != auto ; then
2215 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2218 if test $ol_with_ldbm_type != auto ; then
2219 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2222 if test $ol_with_ldbm_module != static ; then
2223 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2226 if test $ol_enable_modules != yes -a \
2227 $ol_enable_dnssrv = no -a \
2228 $ol_enable_ldap = no -a \
2229 $ol_enable_passwd = no -a \
2230 $ol_enable_shell = no -a \
2231 $ol_enable_sql = no ; then
2232 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2236 ol_with_ldbm_type=no
2237 ol_with_ldbm_module=static
2240 if test $ol_with_ldbm_api = gdbm -a \
2241 $ol_with_ldbm_type = btree ; then
2242 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2244 if test $ol_with_ldbm_api = mdbm -a \
2245 $ol_with_ldbm_type = btree ; then
2246 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2248 if test $ol_with_ldbm_api = ndbm -a \
2249 $ol_with_ldbm_type = btree ; then
2250 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2254 if test $ol_enable_slurpd = yes ; then
2255 if test $ol_with_threads = no ; then
2256 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2260 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2261 if test $ol_with_kerberos = no ; then
2262 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2264 ol_with_kerberos=yes
2265 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2266 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2267 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2272 if test $ol_enable_spasswd = yes ; then
2273 if test $ol_with_cyrus_sasl = no ; then
2274 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2276 ol_with_cyrus_sasl=yes
2279 echo "$ac_t""done" 1>&6
2302 BUILD_DNSSRV_DYNAMIC=static
2303 BUILD_LDAP_DYNAMIC=static
2304 BUILD_LDBM_DYNAMIC=static
2305 BUILD_PASSWD_DYNAMIC=static
2306 BUILD_SHELL_DYNAMIC=static
2307 BUILD_SQL_DYNAMIC=static
2309 SLAPD_MODULES_LDFLAGS=
2310 SLAPD_MODULES_CPPFLAGS=
2328 cat >> confdefs.h <<\EOF
2329 #define HAVE_MKVERSION 1
2337 *-*-aix*) if test -z "$CC" ; then
2338 case "$ol_with_threads" in
2339 auto | yes | posix) ol_aix_threads=yes ;;
2345 if test $ol_aix_threads = yes ; then
2346 if test -z "${CC}" ; then
2347 for ac_prog in cc_r xlc_r cc
2349 # Extract the first word of "$ac_prog", so it can be a program name with args.
2350 set dummy $ac_prog; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_CC="$ac_prog"
2372 if test -n "$CC"; then
2373 echo "$ac_t""$CC" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 test -n "$CC" && break
2382 if test "$CC" = cc ; then
2383 if test $ol_with_threads != auto ; then
2384 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2386 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2392 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2393 ol_with_threads=posix
2394 ol_cv_pthread_create=yes
2398 if test -z "${CC}"; then
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 ac_cv_prog_CC="$ac_prog"
2424 if test -n "$CC"; then
2425 echo "$ac_t""$CC" 1>&6
2427 echo "$ac_t""no" 1>&6
2430 test -n "$CC" && break
2438 # Check whether --enable-fast-install or --disable-fast-install was given.
2439 if test "${enable_fast_install+set}" = set; then
2440 enableval="$enable_fast_install"
2441 p=${PACKAGE-default}
2442 case "$enableval" in
2443 yes) enable_fast_install=yes ;;
2444 no) enable_fast_install=no ;;
2446 enable_fast_install=no
2447 # Look at the argument we got. We use all the common list separators.
2448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2449 for pkg in $enableval; do
2450 if test "X$pkg" = "X$p"; then
2451 enable_fast_install=yes
2458 enable_fast_install=yes
2461 # Extract the first word of "ranlib", so it can be a program name with args.
2462 set dummy ranlib; ac_word=$2
2463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_word" >&5
2465 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 if test -n "$RANLIB"; then
2469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2473 for ac_dir in $ac_dummy; do
2474 test -z "$ac_dir" && ac_dir=.
2475 if test -f $ac_dir/$ac_word; then
2476 ac_cv_prog_RANLIB="ranlib"
2481 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2484 RANLIB="$ac_cv_prog_RANLIB"
2485 if test -n "$RANLIB"; then
2486 echo "$ac_t""$RANLIB" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_word" >&5
2495 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2514 if test -n "$CC"; then
2515 echo "$ac_t""$CC" 1>&6
2517 echo "$ac_t""no" 1>&6
2520 if test -z "$CC"; then
2521 # Extract the first word of "cc", so it can be a program name with args.
2522 set dummy cc; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2534 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if test -f $ac_dir/$ac_word; then
2537 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2546 if test $ac_prog_rejected = yes; then
2547 # We found a bogon in the path, so make sure we never use it.
2548 set dummy $ac_cv_prog_CC
2550 if test $# -gt 0; then
2551 # We chose a different compiler from the bogus one.
2552 # However, it has the same basename, so the bogon will be chosen
2553 # first if we set CC to just the basename; use the full file name.
2555 set dummy "$ac_dir/$ac_word" "$@"
2563 if test -n "$CC"; then
2564 echo "$ac_t""$CC" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 if test -z "$CC"; then
2570 case "`uname -s`" in
2571 *win32* | *WIN32* | *CYGWIN*)
2572 # Extract the first word of "cl", so it can be a program name with args.
2573 set dummy cl; ac_word=$2
2574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_word" >&5
2576 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2584 for ac_dir in $ac_dummy; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2595 if test -n "$CC"; then
2596 echo "$ac_t""$CC" 1>&6
2598 echo "$ac_t""no" 1>&6
2603 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2606 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2607 echo "configure:2608: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2614 cross_compiling=$ac_cv_prog_cc_cross
2616 cat > conftest.$ac_ext << EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 ac_cv_prog_cc_works=yes
2625 # If we can't run a trivial program, we are probably using a cross compiler.
2626 if (./conftest; exit) 2>/dev/null; then
2627 ac_cv_prog_cc_cross=no
2629 ac_cv_prog_cc_cross=yes
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 ac_cv_prog_cc_works=no
2638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2642 cross_compiling=$ac_cv_prog_cc_cross
2644 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2645 if test $ac_cv_prog_cc_works = no; then
2646 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2648 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2649 echo "configure:2650: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2650 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2651 cross_compiling=$ac_cv_prog_cc_cross
2653 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2654 echo "configure:2655: checking whether we are using GNU C" >&5
2655 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.c <<EOF
2663 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2670 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2672 if test $ac_cv_prog_gcc = yes; then
2678 ac_test_CFLAGS="${CFLAGS+set}"
2679 ac_save_CFLAGS="$CFLAGS"
2681 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2682 echo "configure:2683: checking whether ${CC-cc} accepts -g" >&5
2683 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 echo 'void f(){}' > conftest.c
2687 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2696 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2697 if test "$ac_test_CFLAGS" = set; then
2698 CFLAGS="$ac_save_CFLAGS"
2699 elif test $ac_cv_prog_cc_g = yes; then
2700 if test "$GCC" = yes; then
2706 if test "$GCC" = yes; then
2713 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2714 if test "${with_gnu_ld+set}" = set; then
2715 withval="$with_gnu_ld"
2716 test "$withval" = no || with_gnu_ld=yes
2722 if test "$ac_cv_prog_gcc" = yes; then
2723 # Check if gcc -print-prog-name=ld gives a path.
2724 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2725 echo "configure:2726: checking for ld used by GCC" >&5
2726 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2728 # Accept absolute paths.
2729 [\\/]* | [A-Za-z]:[\\/]*)
2730 re_direlt='/[^/][^/]*/\.\./'
2731 # Canonicalize the path of ld
2732 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2733 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2734 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2736 test -z "$LD" && LD="$ac_prog"
2739 # If it fails, then pretend we aren't using GCC.
2743 # If it is relative, then search for the first ld in PATH.
2747 elif test "$with_gnu_ld" = yes; then
2748 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2749 echo "configure:2750: checking for GNU ld" >&5
2751 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2752 echo "configure:2753: checking for non-GNU ld" >&5
2754 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 if test -z "$LD"; then
2758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2759 for ac_dir in $PATH; do
2760 test -z "$ac_dir" && ac_dir=.
2761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2762 ac_cv_path_LD="$ac_dir/$ac_prog"
2763 # Check to see if the program is GNU ld. I'd rather use --version,
2764 # but apparently some GNU ld's only accept -v.
2765 # Break only if it was the GNU/non-GNU ld that we prefer.
2766 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2767 test "$with_gnu_ld" != no && break
2769 test "$with_gnu_ld" != yes && break
2775 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2780 if test -n "$LD"; then
2781 echo "$ac_t""$LD" 1>&6
2783 echo "$ac_t""no" 1>&6
2785 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2786 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2787 echo "configure:2788: checking if the linker ($LD) is GNU ld" >&5
2788 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2793 ac_cv_prog_gnu_ld=yes
2795 ac_cv_prog_gnu_ld=no
2799 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2802 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2803 echo "configure:2804: checking for BSD-compatible nm" >&5
2804 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test -n "$NM"; then
2808 # Let the user override the test.
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2812 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2815 # Check to see if the nm accepts a BSD-compat flag.
2816 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2817 # nm: unknown option "B" ignored
2818 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2819 ac_cv_path_NM="$ac_dir/nm -B"
2821 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2822 ac_cv_path_NM="$ac_dir/nm -p"
2825 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2826 continue # so that we can try to find one that supports BSD flags
2831 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2836 echo "$ac_t""$NM" 1>&6
2838 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2839 echo "configure:2840: checking whether ln -s works" >&5
2840 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2844 if ln -s X conftestdata 2>/dev/null
2847 ac_cv_prog_LN_S="ln -s"
2852 LN_S="$ac_cv_prog_LN_S"
2853 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2854 echo "$ac_t""yes" 1>&6
2856 echo "$ac_t""no" 1>&6
2859 if test $host != $build; then
2860 ac_tool_prefix=${host_alias}-
2867 NONE) lt_target="$host" ;;
2868 *) lt_target="$target" ;;
2871 # Check for any special flags to pass to ltconfig.
2872 libtool_flags="--cache-file=$cache_file"
2873 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2874 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2875 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2876 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2877 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2878 libtool_flags="$libtool_flags --enable-dlopen"
2879 libtool_flags="$libtool_flags --enable-win32-dll"
2880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2881 if test "${enable_libtool_lock+set}" = set; then
2882 enableval="$enable_libtool_lock"
2886 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2887 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2889 # Some flags need to be propagated to the compiler or linker for good
2891 case "$lt_target" in
2893 # Find out which ABI we are using.
2894 echo '#line 2895 "configure"' > conftest.$ac_ext
2895 if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 case "`/usr/bin/file conftest.o`" in
2912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2913 SAVE_CFLAGS="$CFLAGS"
2914 CFLAGS="$CFLAGS -belf"
2915 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2916 echo "configure:2917: checking whether the C compiler needs -belf" >&5
2917 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2930 lt_cv_cc_needs_belf=yes
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 lt_cv_cc_needs_belf=no
2940 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2943 CFLAGS="$SAVE_CFLAGS"
2947 *-*-cygwin* | *-*-mingw*)
2948 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$DLLTOOL"; then
2956 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 for ac_dir in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2970 DLLTOOL="$ac_cv_prog_DLLTOOL"
2971 if test -n "$DLLTOOL"; then
2972 echo "$ac_t""$DLLTOOL" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 if test -z "$ac_cv_prog_DLLTOOL"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "dlltool", so it can be a program name with args.
2981 set dummy dlltool; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$DLLTOOL"; then
2988 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2992 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_DLLTOOL="dlltool"
3000 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3003 DLLTOOL="$ac_cv_prog_DLLTOOL"
3004 if test -n "$DLLTOOL"; then
3005 echo "$ac_t""$DLLTOOL" 1>&6
3007 echo "$ac_t""no" 1>&6
3015 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}as; ac_word=$2
3017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_word" >&5
3019 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 if test -n "$AS"; then
3023 ac_cv_prog_AS="$AS" # Let the user override the test.
3025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3027 for ac_dir in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir=.
3029 if test -f $ac_dir/$ac_word; then
3030 ac_cv_prog_AS="${ac_tool_prefix}as"
3038 if test -n "$AS"; then
3039 echo "$ac_t""$AS" 1>&6
3041 echo "$ac_t""no" 1>&6
3045 if test -z "$ac_cv_prog_AS"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "as", so it can be a program name with args.
3048 set dummy as; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$AS"; then
3055 ac_cv_prog_AS="$AS" # Let the user override the test.
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3067 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3071 if test -n "$AS"; then
3072 echo "$ac_t""$AS" 1>&6
3074 echo "$ac_t""no" 1>&6
3082 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_word" >&5
3086 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 if test -n "$OBJDUMP"; then
3090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3094 for ac_dir in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir=.
3096 if test -f $ac_dir/$ac_word; then
3097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3104 OBJDUMP="$ac_cv_prog_OBJDUMP"
3105 if test -n "$OBJDUMP"; then
3106 echo "$ac_t""$OBJDUMP" 1>&6
3108 echo "$ac_t""no" 1>&6
3112 if test -z "$ac_cv_prog_OBJDUMP"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "objdump", so it can be a program name with args.
3115 set dummy objdump; ac_word=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test -n "$OBJDUMP"; then
3122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_OBJDUMP="objdump"
3134 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3137 OBJDUMP="$ac_cv_prog_OBJDUMP"
3138 if test -n "$OBJDUMP"; then
3139 echo "$ac_t""$OBJDUMP" 1>&6
3141 echo "$ac_t""no" 1>&6
3154 # Save cache, so that ltconfig can load it
3157 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3158 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3159 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3160 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3161 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3162 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3163 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3164 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3166 # Reload cache, that may have been modified by ltconfig
3169 # This can be used to rebuild libtool when needed
3170 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3172 # Always use our own libtool.
3173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3175 # Redirect the config.log output again, so that the ltconfig log is not
3176 # clobbered by the next message.
3177 exec 5>>./config.log
3180 for ac_prog in mawk gawk nawk awk
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3194 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f $ac_dir/$ac_word; then
3197 ac_cv_prog_AWK="$ac_prog"
3204 AWK="$ac_cv_prog_AWK"
3205 if test -n "$AWK"; then
3206 echo "$ac_t""$AWK" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 test -n "$AWK" && break
3214 # test for ln hardlink support
3215 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether ln works" >&5
3217 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 rm -f conftest.src conftest.dst
3221 echo "conftest" > conftest.src
3222 if ln conftest.src conftest.dst 2>/dev/null
3224 ol_cv_prog_LN_H="ln"
3226 ol_cv_prog_LN_H="cp"
3228 rm -f conftest.src conftest.dst
3231 LN_H="$ol_cv_prog_LN_H"
3232 if test "$ol_cv_prog_LN_H" = "ln"; then
3233 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3239 echo "configure:3240: checking whether ln -s works" >&5
3240 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3244 if ln -s X conftestdata 2>/dev/null
3247 ac_cv_prog_LN_S="ln -s"
3252 LN_S="$ac_cv_prog_LN_S"
3253 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3254 echo "$ac_t""yes" 1>&6
3256 echo "$ac_t""no" 1>&6
3260 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3264 # Extract the first word of "sendmail", so it can be a program name with args.
3265 set dummy sendmail; ac_word=$2
3266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_word" >&5
3268 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3276 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3280 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3281 for ac_dir in $ac_dummy; do
3282 test -z "$ac_dir" && ac_dir=.
3283 if test -f $ac_dir/$ac_word; then
3284 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3289 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3293 SENDMAIL="$ac_cv_path_SENDMAIL"
3294 if test -n "$SENDMAIL"; then
3295 echo "$ac_t""$SENDMAIL" 1>&6
3297 echo "$ac_t""no" 1>&6
3300 # Extract the first word of "vi", so it can be a program name with args.
3301 set dummy vi; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3304 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3312 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 ac_dummy="$PATH:/usr/ucb"
3317 for ac_dir in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f $ac_dir/$ac_word; then
3320 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3325 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3329 EDITOR="$ac_cv_path_EDITOR"
3330 if test -n "$EDITOR"; then
3331 echo "$ac_t""$EDITOR" 1>&6
3333 echo "$ac_t""no" 1>&6
3336 # Extract the first word of "finger", so it can be a program name with args.
3337 set dummy finger; ac_word=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3345 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3348 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3352 ac_dummy="$PATH:/usr/ucb"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 ac_cv_path_FINGER="$ac_dir/$ac_word"
3361 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3365 FINGER="$ac_cv_path_FINGER"
3366 if test -n "$FINGER"; then
3367 echo "$ac_t""$FINGER" 1>&6
3369 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3374 echo "configure:3375: checking how to run the C preprocessor" >&5
3375 # On Suns, sometimes $CPP names a directory.
3376 if test -n "$CPP" && test -d "$CPP"; then
3379 if test -z "$CPP"; then
3380 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 # This must be in double quotes, not single quotes, because CPP may get
3384 # substituted into the Makefile and "${CC-cc}" will confuse make.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp.
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3395 { (eval echo configure:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3397 if test -z "$ac_err"; then
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 CPP="${CC-cc} -E -traditional-cpp"
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3412 { (eval echo configure:3413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3414 if test -z "$ac_err"; then
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 CPP="${CC-cc} -nologo -E"
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3429 { (eval echo configure:3430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3431 if test -z "$ac_err"; then
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3445 ac_cv_prog_CPP="$CPP"
3447 CPP="$ac_cv_prog_CPP"
3449 ac_cv_prog_CPP="$CPP"
3451 echo "$ac_t""$CPP" 1>&6
3454 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3455 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3457 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3458 echo "configure: warning: programs compiled here do run here..." 1>&2
3459 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3461 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3462 echo "configure: warning: programs compiled here do not run here..." 1>&2
3463 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3466 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3467 echo "configure:3468: checking for AIX" >&5
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 egrep "yes" >/dev/null 2>&1; then
3479 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3480 #define _ALL_SOURCE 1
3485 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3491 echo "configure:3492: checking for POSIXized ISC" >&5
3492 if test -d /etc/conf/kconfig.d &&
3493 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3495 echo "$ac_t""yes" 1>&6
3496 ISC=yes # If later tests want to check for ISC.
3497 cat >> confdefs.h <<\EOF
3498 #define _POSIX_SOURCE 1
3501 if test "$GCC" = yes; then
3507 echo "$ac_t""no" 1>&6
3511 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3512 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3513 echo "configure:3514: checking for minix/config.h" >&5
3514 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <minix/config.h>
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then
3527 eval "ac_cv_header_$ac_safe=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_header_$ac_safe=no"
3537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3541 echo "$ac_t""no" 1>&6
3545 if test "$MINIX" = yes; then
3546 cat >> confdefs.h <<\EOF
3547 #define _POSIX_SOURCE 1
3550 cat >> confdefs.h <<\EOF
3551 #define _POSIX_1_SOURCE 2
3554 cat >> confdefs.h <<\EOF
3561 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3562 echo "configure:3563: checking for Cygwin environment" >&5
3563 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3573 #define __CYGWIN__ __CYGWIN32__
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3590 echo "$ac_t""$ac_cv_cygwin" 1>&6
3592 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3593 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3594 echo "configure:3595: checking for mingw32 environment" >&5
3595 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3606 if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3618 echo "$ac_t""$ac_cv_mingw32" 1>&6
3620 test "$ac_cv_mingw32" = yes && MINGW32=yes
3621 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3622 echo "configure:3623: checking for EMX OS/2 environment" >&5
3623 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3646 echo "$ac_t""$ac_cv_emxos2" 1>&6
3648 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3652 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3653 echo "configure:3654: checking for executable suffix" >&5
3654 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3661 echo 'int main () { return 0; }' > conftest.$ac_ext
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3664 for file in conftest.*; do
3666 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3667 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3674 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3679 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3680 echo "$ac_t""${ac_cv_exeext}" 1>&6
3683 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3684 echo "configure:3685: checking for object suffix" >&5
3685 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3689 echo 'int i = 1;' > conftest.$ac_ext
3690 if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 for ac_file in conftest.*; do
3694 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3698 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3703 echo "$ac_t""$ac_cv_objext" 1>&6
3704 OBJEXT=$ac_cv_objext
3705 ac_objext=$ac_cv_objext
3708 cat >> confdefs.h <<EOF
3709 #define EXEEXT "${EXEEXT}"
3713 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3714 echo "configure:3715: checking for be_app in -lbe" >&5
3715 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3716 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_save_LIBS="$LIBS"
3720 LIBS="-lbe -lroot -lnet $LIBS"
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3735 eval "ac_cv_lib_$ac_lib_var=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_lib_$ac_lib_var=no"
3743 LIBS="$ac_save_LIBS"
3746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 LIBS="$LIBS -lbe -lroot -lnet"
3750 echo "$ac_t""no" 1>&6
3758 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3759 echo "configure:3760: checking for ${CC-cc} option to accept ANSI C" >&5
3760 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 am_cv_prog_cc_stdc=no
3765 # Don't try gcc -ansi; that turns off useful extensions and
3766 # breaks some systems' header files.
3767 # AIX -qlanglvl=ansi
3768 # Ultrix and OSF/1 -std1
3769 # HP-UX 10.20 and later -Ae
3770 # HP-UX older versions -Aa -D_HPUX_SOURCE
3771 # SVR4 -Xc -D__EXTENSIONS__
3772 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 CC="$ac_save_CC $ac_arg"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3780 #include <sys/types.h>
3781 #include <sys/stat.h>
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3796 s = g (p, va_arg (v,int));
3800 int test (int i, double x);
3801 struct s1 {int (*f) (int a);};
3802 struct s2 {int (*f) (double a);};
3803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 am_cv_prog_cc_stdc="$ac_arg"; break
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3826 if test -z "$am_cv_prog_cc_stdc"; then
3827 echo "$ac_t""none needed" 1>&6
3829 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3831 case "x$am_cv_prog_cc_stdc" in
3833 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3836 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3837 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3840 # test for make depend flag
3843 if test -z "${MKDEP}"; then
3845 if test -z "${MKDEP_FLAGS}"; then
3846 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3847 echo "configure:3848: checking for ${OL_MKDEP} depend flag" >&5
3848 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3853 for flag in "-M" "-xM"; do
3854 cat > conftest.c <<EOF
3857 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3858 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3860 if test ! -f conftest."${ac_object}" ; then
3862 OL_MKDEP_FLAGS="$flag"
3871 echo "$ac_t""$ol_cv_mkdep" 1>&6
3874 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3879 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3884 if test "${ol_cv_mkdep}" = no ; then
3885 # this will soon become an error
3886 echo "configure: warning: do not know how to generate dependencies" 1>&2
3889 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3890 echo "configure:3891: checking for afopen in -ls" >&5
3891 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3892 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 ac_save_LIBS="$LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3926 cat >> confdefs.h <<\EOF
3927 #define HAVE_AIX_SECURITY 1
3932 echo "$ac_t""no" 1>&6
3938 if test $ol_enable_modules != no ; then
3939 for ac_hdr in ltdl.h
3941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3943 echo "configure:3944: checking for $ac_hdr" >&5
3944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3953 { (eval echo configure:3954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3955 if test -z "$ac_err"; then
3957 eval "ac_cv_header_$ac_safe=yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3963 eval "ac_cv_header_$ac_safe=no"
3967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3968 echo "$ac_t""yes" 1>&6
3969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3970 cat >> confdefs.h <<EOF
3971 #define $ac_tr_hdr 1
3975 echo "$ac_t""no" 1>&6
3980 if test $ac_cv_header_ltdl_h = no ; then
3981 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3984 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3985 echo "configure:3986: checking for lt_dlinit in -lltdl" >&5
3986 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE_LIBLTDL 1
4027 echo "$ac_t""no" 1>&6
4031 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4032 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4036 ol_with_dnssrv_module=static
4037 ol_with_ldap_module=static
4038 ol_with_ldbm_module=static
4039 ol_with_passwd_module=static
4040 ol_with_shell_module=static
4041 ol_with_sql_module=static
4045 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4046 echo "configure:4047: checking for EBCDIC" >&5
4047 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 #include <__ASCII__/generate_error.h>
4060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4061 { (eval echo configure:4062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4063 if test -z "$ac_err"; then
4065 ol_cv_cpp_ebcdic=yes
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4076 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4077 if test $ol_cv_cpp_ebcdic = yes ; then
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_EBCDIC 1
4084 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4085 echo "configure:4086: checking for ANSI C header files" >&5
4086 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4098 { (eval echo configure:4099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4100 if test -z "$ac_err"; then
4102 ol_cv_header_stdc=yes
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 ol_cv_header_stdc=no
4112 if test $ol_cv_header_stdc = yes; then
4113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 egrep "memchr" >/dev/null 2>&1; then
4124 ol_cv_header_stdc=no
4130 if test $ol_cv_header_stdc = yes; then
4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 egrep "free" >/dev/null 2>&1; then
4142 ol_cv_header_stdc=no
4148 if test $ol_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4162 || ('j' <= (c) && (c) <= 'r') \
4163 || ('s' <= (c) && (c) <= 'z'))
4164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 int main () { int i; for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4179 ol_cv_header_stdc=no
4187 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4188 if test $ol_cv_header_stdc = yes; then
4189 cat >> confdefs.h <<\EOF
4190 #define STDC_HEADERS 1
4194 ac_cv_header_stdc=disable
4197 if test $ol_cv_header_stdc != yes; then
4198 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4202 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4205 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_hdr that defines DIR" >&5
4207 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 #include <sys/types.h>
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 eval "ac_cv_header_dirent_$ac_safe=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_header_dirent_$ac_safe=no"
4230 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_hdr 1
4236 ac_header_dirent=$ac_hdr; break
4238 echo "$ac_t""no" 1>&6
4241 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4242 if test $ac_header_dirent = dirent.h; then
4243 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4244 echo "configure:4245: checking for opendir in -ldir" >&5
4245 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4246 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_save_LIBS="$LIBS"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_lib_$ac_lib_var=no"
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4280 echo "$ac_t""no" 1>&6
4284 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4285 echo "configure:4286: checking for opendir in -lx" >&5
4286 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4321 echo "$ac_t""no" 1>&6
4326 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4327 echo "configure:4328: checking for sys/wait.h that is POSIX.1 compatible" >&5
4328 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4335 #include <sys/wait.h>
4337 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4340 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4345 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4348 if { (eval echo configure:4349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4350 ac_cv_header_sys_wait_h=yes
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4355 ac_cv_header_sys_wait_h=no
4360 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4361 if test $ac_cv_header_sys_wait_h = yes; then
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_SYS_WAIT_H 1
4368 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4369 echo "configure:4370: checking POSIX termios" >&5
4370 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <sys/types.h>
4378 #include <termios.h>
4380 /* SunOS 4.0.3 has termios.h but not the library calls. */
4384 if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386 am_cv_sys_posix_termios=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 am_cv_sys_posix_termios=no
4396 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4399 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4400 echo "configure:4401: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4401 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4406 gwinsz_in_termios_h=no
4407 if test $am_cv_sys_posix_termios = yes; then
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <sys/types.h>
4412 # include <termios.h>
4418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 egrep "yes" >/dev/null 2>&1; then
4421 gwinsz_in_termios_h=yes
4427 if test $gwinsz_in_termios_h = no; then
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/types.h>
4432 # include <sys/ioctl.h>
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 egrep "yes" >/dev/null 2>&1; then
4441 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4449 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4450 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4451 cat >> confdefs.h <<\EOF
4452 #define GWINSZ_IN_SYS_IOCTL 1
4457 if test $am_cv_sys_posix_termios = yes ; then
4458 cat >> confdefs.h <<\EOF
4459 #define HAVE_POSIX_TERMIOS 1
4510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4526 eval "ac_cv_header_$ac_safe=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_header_$ac_safe=no"
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_hdr 1
4544 echo "$ac_t""no" 1>&6
4551 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4552 echo "configure:4553: checking for sigset in -lV3" >&5
4553 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 ac_save_LIBS="$LIBS"
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4571 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 eval "ac_cv_lib_$ac_lib_var=yes"
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4578 eval "ac_cv_lib_$ac_lib_var=no"
4581 LIBS="$ac_save_LIBS"
4584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4587 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4588 cat >> confdefs.h <<EOF
4589 #define $ac_tr_lib 1
4595 echo "$ac_t""no" 1>&6
4599 if test $ac_cv_header_winsock_h = yes; then
4600 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4601 echo "configure:4602: checking for winsock" >&5
4602 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <winsock.h>
4612 select(0,NULL,NULL,NULL,NULL);
4614 gethostname(NULL,0);
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4630 echo "$ac_t""$ol_cv_winsock" 1>&6
4632 if test $ol_cv_winsock = yes ; then
4633 cat >> confdefs.h <<\EOF
4634 #define HAVE_WINSOCK 1
4637 ac_cv_func_socket=yes
4638 ac_cv_func_select=yes
4639 ac_cv_func_closesocket=yes
4640 ac_cv_func_gethostname=yes
4645 echo $ac_n "checking for socket""... $ac_c" 1>&6
4646 echo "configure:4647: checking for socket" >&5
4647 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* System header to define __stub macros and hopefully few prototypes,
4654 which can conflict with char socket(); below. */
4656 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_socket) || defined (__stub___socket)
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4677 eval "ac_cv_func_socket=yes"
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 eval "ac_cv_func_socket=no"
4687 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4691 echo "$ac_t""no" 1>&6
4693 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4694 echo "configure:4695: checking for main in -lsocket" >&5
4695 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 ac_save_LIBS="$LIBS"
4700 LIBS="-lsocket $LIBS"
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 eval "ac_cv_lib_$ac_lib_var=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_lib_$ac_lib_var=no"
4719 LIBS="$ac_save_LIBS"
4722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4725 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4726 cat >> confdefs.h <<EOF
4727 #define $ac_tr_lib 1
4730 LIBS="-lsocket $LIBS"
4733 echo "$ac_t""no" 1>&6
4736 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4737 echo "configure:4738: checking for main in -lnet" >&5
4738 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 ac_save_LIBS="$LIBS"
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 eval "ac_cv_lib_$ac_lib_var=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4759 eval "ac_cv_lib_$ac_lib_var=no"
4762 LIBS="$ac_save_LIBS"
4765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4769 cat >> confdefs.h <<EOF
4770 #define $ac_tr_lib 1
4776 echo "$ac_t""no" 1>&6
4779 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4780 echo "configure:4781: checking for main in -lnsl_s" >&5
4781 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 ac_save_LIBS="$LIBS"
4786 LIBS="-lnsl_s $LIBS"
4787 cat > conftest.$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4797 eval "ac_cv_lib_$ac_lib_var=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 eval "ac_cv_lib_$ac_lib_var=no"
4805 LIBS="$ac_save_LIBS"
4808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4809 echo "$ac_t""yes" 1>&6
4810 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4812 cat >> confdefs.h <<EOF
4813 #define $ac_tr_lib 1
4816 LIBS="-lnsl_s $LIBS"
4819 echo "$ac_t""no" 1>&6
4822 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4823 echo "configure:4824: checking for main in -lnsl" >&5
4824 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4825 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 ac_save_LIBS="$LIBS"
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 eval "ac_cv_lib_$ac_lib_var=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_lib_$ac_lib_var=no"
4848 LIBS="$ac_save_LIBS"
4851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4855 cat >> confdefs.h <<EOF
4856 #define $ac_tr_lib 1
4862 echo "$ac_t""no" 1>&6
4865 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4866 echo "configure:4867: checking for socket in -linet" >&5
4867 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 ac_save_LIBS="$LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_lib_$ac_lib_var=no"
4895 LIBS="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4902 cat >> confdefs.h <<EOF
4903 #define $ac_tr_lib 1
4909 echo "$ac_t""no" 1>&6
4912 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4913 echo "configure:4914: checking for main in -lgen" >&5
4914 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4918 ac_save_LIBS="$LIBS"
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4928 if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 eval "ac_cv_lib_$ac_lib_var=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_lib_$ac_lib_var=no"
4938 LIBS="$ac_save_LIBS"
4941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4945 cat >> confdefs.h <<EOF
4946 #define $ac_tr_lib 1
4952 echo "$ac_t""no" 1>&6
4959 echo $ac_n "checking for select""... $ac_c" 1>&6
4960 echo "configure:4961: checking for select" >&5
4961 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* System header to define __stub macros and hopefully few prototypes,
4968 which can conflict with char select(); below. */
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4978 /* The GNU C library defines this for functions which it implements
4979 to always fail with ENOSYS. Some functions are actually named
4980 something starting with __ and the normal name is an alias. */
4981 #if defined (__stub_select) || defined (__stub___select)
4989 if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4991 eval "ac_cv_func_select=yes"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4996 eval "ac_cv_func_select=no"
5001 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5005 echo "$ac_t""no" 1>&6
5006 { echo "configure: error: select() required." 1>&2; exit 1; }
5010 if test "${ac_cv_header_winsock_h}" != yes; then
5011 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5012 echo "configure:5013: checking types of arguments for select()" >&5
5013 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5023 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5024 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 #ifdef HAVE_SYS_TYPES_H
5029 #include <sys/types.h>
5031 #ifdef HAVE_SYS_TIME_H
5032 #include <sys/time.h>
5034 #ifdef HAVE_SYS_SELECT_H
5035 #include <sys/select.h>
5037 #ifdef HAVE_SYS_SOCKET_H
5038 #include <sys/socket.h>
5040 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);
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 ac_not_found=no ; break 3
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5064 if test "$ac_not_found" = yes; then
5065 ac_cv_func_select_arg1=int
5066 ac_cv_func_select_arg234='int *'
5067 ac_cv_func_select_arg5='struct timeval *'
5069 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5070 cat >> confdefs.h <<EOF
5071 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5074 cat >> confdefs.h <<EOF
5075 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5078 cat >> confdefs.h <<EOF
5079 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5086 for ac_hdr in regex.h
5088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_hdr" >&5
5091 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5100 { (eval echo configure:5101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5102 if test -z "$ac_err"; then
5104 eval "ac_cv_header_$ac_safe=yes"
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 eval "ac_cv_header_$ac_safe=no"
5114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5117 cat >> confdefs.h <<EOF
5118 #define $ac_tr_hdr 1
5122 echo "$ac_t""no" 1>&6
5126 if test "$ac_cv_header_regex_h" != yes ; then
5127 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5129 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5130 echo "configure:5131: checking for regfree" >&5
5131 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* System header to define __stub macros and hopefully few prototypes,
5138 which can conflict with char regfree(); below. */
5140 /* Override any gcc2 internal prototype to avoid an error. */
5141 /* We use char because int might match the return type of a gcc2
5142 builtin and then its argument prototype would still apply. */
5148 /* The GNU C library defines this for functions which it implements
5149 to always fail with ENOSYS. Some functions are actually named
5150 something starting with __ and the normal name is an alias. */
5151 #if defined (__stub_regfree) || defined (__stub___regfree)
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 eval "ac_cv_func_regfree=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5166 eval "ac_cv_func_regfree=no"
5171 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5175 echo "$ac_t""no" 1>&6
5176 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5181 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5182 echo "configure:5183: checking for compatible POSIX regex" >&5
5183 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5187 if test "$cross_compiling" = yes; then
5188 ol_cv_c_posix_regex=cross
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5194 #include <sys/types.h>
5196 static char *pattern, *string;
5204 if(regcomp(&re, pattern, 0)) {
5208 string = "ALL MATCH";
5210 rc = regexec(&re, string, 0, (void*)0, 0);
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5219 ol_cv_c_posix_regex=yes
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 ol_cv_c_posix_regex=no
5231 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5233 if test "$ol_cv_c_posix_regex" = no ; then
5234 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5238 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5239 echo "configure:5240: checking for res_query" >&5
5240 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* System header to define __stub macros and hopefully few prototypes,
5247 which can conflict with char res_query(); below. */
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_res_query) || defined (__stub___res_query)
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_func_res_query=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_func_res_query=no"
5280 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5284 echo "$ac_t""no" 1>&6
5287 if test $ac_cv_func_res_query = no ; then
5288 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5289 echo "configure:5290: checking for res_query in -lbind" >&5
5290 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 ac_save_LIBS="$LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 eval "ac_cv_lib_$ac_lib_var=yes"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 eval "ac_cv_lib_$ac_lib_var=no"
5318 LIBS="$ac_save_LIBS"
5321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5325 cat >> confdefs.h <<EOF
5326 #define $ac_tr_lib 1
5332 echo "$ac_t""no" 1>&6
5335 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5338 if test $ac_cv_func_res_query = no ; then
5339 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5340 echo "configure:5341: checking for __res_query in -lbind" >&5
5341 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5342 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 ac_save_LIBS="$LIBS"
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5361 eval "ac_cv_lib_$ac_lib_var=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 eval "ac_cv_lib_$ac_lib_var=no"
5369 LIBS="$ac_save_LIBS"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5374 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5375 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_lib 1
5383 echo "$ac_t""no" 1>&6
5386 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5389 if test $ac_cv_func_res_query = no ; then
5390 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5391 echo "configure:5392: checking for res_query in -lresolv" >&5
5392 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5397 LIBS="-lresolv $LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_lib_$ac_lib_var=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_$ac_lib_var=no"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_lib 1
5431 LIBS="-lresolv $LIBS"
5434 echo "$ac_t""no" 1>&6
5437 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5440 if test "$ac_cv_func_res_query" = yes ; then
5441 cat >> confdefs.h <<\EOF
5442 #define HAVE_RES_QUERY 1
5446 if test $ol_enable_dnssrv != no ; then
5451 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5452 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5455 for ac_func in getaddrinfo
5457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5458 echo "configure:5459: checking for $ac_func" >&5
5459 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 /* System header to define __stub macros and hopefully few prototypes,
5466 which can conflict with char $ac_func(); below. */
5468 /* Override any gcc2 internal prototype to avoid an error. */
5469 /* We use char because int might match the return type of a gcc2
5470 builtin and then its argument prototype would still apply. */
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 eval "ac_cv_func_$ac_func=yes"
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 eval "ac_cv_func_$ac_func=no"
5499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5500 echo "$ac_t""yes" 1>&6
5501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5502 cat >> confdefs.h <<EOF
5503 #define $ac_tr_func 1
5507 echo "$ac_t""no" 1>&6
5513 if test $ac_cv_func_getaddrinfo = no ; then
5514 if test $ol_enable_ipv6 = yes ; then
5515 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5518 for ac_func in gai_strerror
5520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_func" >&5
5522 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 /* System header to define __stub macros and hopefully few prototypes,
5529 which can conflict with char $ac_func(); below. */
5531 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5552 eval "ac_cv_func_$ac_func=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 eval "ac_cv_func_$ac_func=no"
5562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5565 cat >> confdefs.h <<EOF
5566 #define $ac_tr_func 1
5570 echo "$ac_t""no" 1>&6
5575 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5576 echo "configure:5577: checking INET6_ADDRSTRLEN" >&5
5577 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5585 # include <netinet/in.h>
5586 # ifdef INET6_ADDRSTRLEN
5587 __has_inet6_addrstrlen__;
5591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5592 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5594 ol_cv_inet6_addrstrlen=yes
5597 ol_cv_inet6_addrstrlen=no
5603 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5605 if test $ol_cv_inet6_addrstrlen = yes ; then
5607 elif test $ol_enable_ipv6 = yes ; then
5608 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5612 if test $ol_enable_local != no ; then
5613 for ac_hdr in sys/un.h
5615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5617 echo "configure:5618: checking for $ac_hdr" >&5
5618 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5627 { (eval echo configure:5628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5629 if test -z "$ac_err"; then
5631 eval "ac_cv_header_$ac_safe=yes"
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 eval "ac_cv_header_$ac_safe=no"
5641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5642 echo "$ac_t""yes" 1>&6
5643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5644 cat >> confdefs.h <<EOF
5645 #define $ac_tr_hdr 1
5649 echo "$ac_t""no" 1>&6
5654 if test $ol_enable_local = auto ; then
5655 ol_enable_local=$ac_cv_header_sys_un_h
5656 elif test $ac_cv_header_sys_un_h = no ; then
5657 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5666 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5667 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5668 -o $ol_with_kerberos = k425 ; then
5670 for ac_hdr in krb5.h
5672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_hdr" >&5
5675 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5684 { (eval echo configure:5685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5686 if test -z "$ac_err"; then
5688 eval "ac_cv_header_$ac_safe=yes"
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5694 eval "ac_cv_header_$ac_safe=no"
5698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5701 cat >> confdefs.h <<EOF
5702 #define $ac_tr_hdr 1
5706 echo "$ac_t""no" 1>&6
5711 if test $ac_cv_header_krb5_h = yes ; then
5712 for ac_hdr in heim_err.h
5714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_hdr" >&5
5717 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5726 { (eval echo configure:5727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5728 if test -z "$ac_err"; then
5730 eval "ac_cv_header_$ac_safe=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_header_$ac_safe=no"
5740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5743 cat >> confdefs.h <<EOF
5744 #define $ac_tr_hdr 1
5748 echo "$ac_t""no" 1>&6
5752 if test $ac_cv_header_heim_err_h = yes ; then
5758 if test $krb5_impl = mit; then
5759 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5760 echo "configure:5761: checking for main in -lkrb5" >&5
5761 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 ac_save_LIBS="$LIBS"
5766 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777 eval "ac_cv_lib_$ac_lib_var=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 eval "ac_cv_lib_$ac_lib_var=no"
5785 LIBS="$ac_save_LIBS"
5788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5791 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5793 echo "$ac_t""no" 1>&6
5798 elif test $krb5_impl = heimdal; then
5799 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5800 echo "configure:5801: checking for main in -lkrb5" >&5
5801 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5802 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5805 ac_save_LIBS="$LIBS"
5806 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
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
5831 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5833 echo "$ac_t""no" 1>&6
5838 cat >> confdefs.h <<\EOF
5839 #define HAVE_HEIMDAL_KERBEROS 1
5844 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5847 if test $have_krb5 = yes ; then
5850 cat >> confdefs.h <<\EOF
5855 if test $ol_enable_kpasswd != no ; then
5856 ol_link_kpasswd=yes;
5859 if test $ol_with_kerberos = k5only ; then
5860 ol_with_kerberos=found
5863 elif test $ol_with_kerberos != auto ; then
5864 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5870 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5871 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5873 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_hdr" >&5
5878 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5887 { (eval echo configure:5888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5889 if test -z "$ac_err"; then
5891 eval "ac_cv_header_$ac_safe=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5897 eval "ac_cv_header_$ac_safe=no"
5901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5904 cat >> confdefs.h <<EOF
5905 #define $ac_tr_hdr 1
5909 echo "$ac_t""no" 1>&6
5914 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5915 if test $krb5_impl = mit; then
5916 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5917 echo "configure:5918: checking for main in -lkrb4" >&5
5918 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 ac_save_LIBS="$LIBS"
5923 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5934 eval "ac_cv_lib_$ac_lib_var=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 eval "ac_cv_lib_$ac_lib_var=no"
5942 LIBS="$ac_save_LIBS"
5945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5946 echo "$ac_t""yes" 1>&6
5948 KRB4_LIBS="-lkrb4 -ldes425"
5950 echo "$ac_t""no" 1>&6
5955 elif test $krb5_impl = heimdal; then
5956 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5957 echo "configure:5958: checking for main in -lkrb4" >&5
5958 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5962 ac_save_LIBS="$LIBS"
5963 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5974 eval "ac_cv_lib_$ac_lib_var=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 eval "ac_cv_lib_$ac_lib_var=no"
5982 LIBS="$ac_save_LIBS"
5985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5990 echo "$ac_t""no" 1>&6
5997 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6000 if test $have_k425 = yes ; then
6001 ol_with_kerberos=found
6004 cat >> confdefs.h <<\EOF
6005 #define HAVE_KRB425 1
6008 cat >> confdefs.h <<\EOF
6013 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6014 echo "configure:6015: checking for des_debug in Kerberos libraries" >&5
6015 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6020 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6025 #include <kerberosIV/krb.h>
6026 #include <kerberosIV/des.h>
6027 extern int des_debug;
6035 if { (eval echo configure:6036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6037 ol_cv_var_des_debug=yes
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 ol_cv_var_des_debug=no
6049 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6051 if test $ol_cv_var_des_debug = yes ; then
6052 cat >> confdefs.h <<\EOF
6053 #define HAVE_DES_DEBUG 1
6063 if test $ol_link_krb5 = yes ; then
6064 ol_with_kerberos=found
6067 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6068 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6070 for ac_hdr in krb.h des.h krb-archaeology.h
6072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6074 echo "configure:6075: checking for $ac_hdr" >&5
6075 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6084 { (eval echo configure:6085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6086 if test -z "$ac_err"; then
6088 eval "ac_cv_header_$ac_safe=yes"
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6094 eval "ac_cv_header_$ac_safe=no"
6098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_hdr 1
6106 echo "$ac_t""no" 1>&6
6111 if test $ac_cv_header_krb_h = yes ; then
6112 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6113 echo "configure:6114: checking for main in -lkrb" >&5
6114 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6115 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6118 ac_save_LIBS="$LIBS"
6119 LIBS="-lkrb -ldes $LIBS"
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 eval "ac_cv_lib_$ac_lib_var=yes"
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 eval "ac_cv_lib_$ac_lib_var=no"
6138 LIBS="$ac_save_LIBS"
6141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6145 echo "$ac_t""no" 1>&6
6150 if test $have_k4 = yes ; then
6151 ol_with_kerberos=found
6154 cat >> confdefs.h <<\EOF
6159 KRB4_LIBS="-lkrb -ldes"
6161 if test $ac_cv_header_krb_archaeology_h = yes ; then
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_KTH_KERBEROS 1
6171 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6175 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6178 elif test $ol_enable_kbind = yes ; then
6179 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6182 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6183 cat >> confdefs.h <<\EOF
6184 #define HAVE_KERBEROS 1
6188 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6189 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6193 if test $ol_with_tls != no ; then
6194 for ac_hdr in openssl/ssl.h ssl.h
6196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6198 echo "configure:6199: checking for $ac_hdr" >&5
6199 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6208 { (eval echo configure:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6210 if test -z "$ac_err"; then
6212 eval "ac_cv_header_$ac_safe=yes"
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 eval "ac_cv_header_$ac_safe=no"
6222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6225 cat >> confdefs.h <<EOF
6226 #define $ac_tr_hdr 1
6230 echo "$ac_t""no" 1>&6
6235 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6236 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6237 echo "configure:6238: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6238 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6240 echo $ac_n "(cached) $ac_c" 1>&6
6242 ac_save_LIBS="$LIBS"
6243 LIBS="-lssl -lcrypto $LIBS"
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */
6250 char SSLeay_add_ssl_algorithms();
6253 SSLeay_add_ssl_algorithms()
6256 if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6258 eval "ac_cv_lib_$ac_lib_var=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 eval "ac_cv_lib_$ac_lib_var=no"
6266 LIBS="$ac_save_LIBS"
6269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6270 echo "$ac_t""yes" 1>&6
6274 echo "$ac_t""no" 1>&6
6279 if test $have_ssleay = no ; then
6280 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6281 echo "configure:6282: checking for SSL_library_init in -lssl" >&5
6282 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6286 ac_save_LIBS="$LIBS"
6287 LIBS="-lssl -lcrypto $LIBS"
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294 char SSL_library_init();
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6302 eval "ac_cv_lib_$ac_lib_var=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6307 eval "ac_cv_lib_$ac_lib_var=no"
6310 LIBS="$ac_save_LIBS"
6313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6314 echo "$ac_t""yes" 1>&6
6318 echo "$ac_t""no" 1>&6
6324 if test $have_ssleay = no ; then
6325 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6326 echo "configure:6327: checking for ssl3_accept in -lssl" >&5
6327 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6331 ac_save_LIBS="$LIBS"
6332 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6347 eval "ac_cv_lib_$ac_lib_var=yes"
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_lib_$ac_lib_var=no"
6355 LIBS="$ac_save_LIBS"
6358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6363 echo "$ac_t""no" 1>&6
6369 if test $have_ssleay = yes ; then
6373 cat >> confdefs.h <<\EOF
6374 #define HAVE_SSLEAY 1
6378 if test $need_rsaref = yes; then
6379 cat >> confdefs.h <<\EOF
6380 #define HAVE_RSAREF 1
6384 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6386 TLS_LIBS="-lssl -lcrypto"
6392 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6395 if test $ol_link_tls = yes ; then
6396 cat >> confdefs.h <<\EOF
6401 elif test $ol_with_tls = auto ; then
6402 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6403 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6405 elif test $ol_with_tls != no ; then
6406 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6411 gethostbyname_r gethostbyaddr_r \
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func(); below. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 eval "ac_cv_func_$ac_func=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 eval "ac_cv_func_$ac_func=no"
6456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6459 cat >> confdefs.h <<EOF
6460 #define $ac_tr_func 1
6464 echo "$ac_t""no" 1>&6
6469 if test "$ac_cv_func_ctime_r" = no ; then
6470 ol_cv_func_ctime_r_nargs=0
6472 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6473 echo "configure:6474: checking number of arguments of ctime_r" >&5
6474 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6482 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6485 if { (eval echo configure:6486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6487 ol_cv_func_ctime_r_nargs3=yes
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 ol_cv_func_ctime_r_nargs3=no
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6501 time_t ti; char *buffer; ctime_r(&ti,buffer);
6504 if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6506 ol_cv_func_ctime_r_nargs2=yes
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 ol_cv_func_ctime_r_nargs2=no
6515 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6516 $ol_cv_func_ctime_r_nargs2 = no ; then
6518 ol_cv_func_ctime_r_nargs=3
6520 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6521 $ol_cv_func_ctime_r_nargs2 = yes ; then
6523 ol_cv_func_ctime_r_nargs=2
6526 ol_cv_func_ctime_r_nargs=0
6531 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6533 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6534 cat >> confdefs.h <<EOF
6535 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6542 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6543 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6544 echo "configure:6545: checking number of arguments of gethostbyname_r" >&5
6545 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 #include <sys/types.h>
6552 #include <sys/socket.h>
6553 #include <netinet/in.h>
6555 #define BUFSIZE (sizeof(struct hostent)+10)
6557 struct hostent hent; char buffer[BUFSIZE];
6558 int bufsize=BUFSIZE;int h_errno;
6559 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6560 buffer, bufsize, &h_errno);
6563 if { (eval echo configure:6564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6565 ol_cv_func_gethostbyname_r_nargs5=yes
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 ol_cv_func_gethostbyname_r_nargs5=no
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 #include <sys/types.h>
6578 #include <sys/socket.h>
6579 #include <netinet/in.h>
6581 #define BUFSIZE (sizeof(struct hostent)+10)
6583 struct hostent hent;struct hostent *rhent;
6584 char buffer[BUFSIZE];
6585 int bufsize=BUFSIZE;int h_errno;
6586 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6590 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6592 ol_cv_func_gethostbyname_r_nargs6=yes
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6597 ol_cv_func_gethostbyname_r_nargs6=no
6601 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6602 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6604 ol_cv_func_gethostbyname_r_nargs=5
6606 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6607 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6609 ol_cv_func_gethostbyname_r_nargs=6
6612 ol_cv_func_gethostbyname_r_nargs=0
6617 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6618 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6619 cat >> confdefs.h <<EOF
6620 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6626 ol_cv_func_gethostbyname_r_nargs=0
6629 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6630 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6631 echo "configure:6632: checking number of arguments of gethostbyaddr_r" >&5
6632 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 #include <sys/types.h>
6639 #include <sys/socket.h>
6640 #include <netinet/in.h>
6642 #define BUFSIZE (sizeof(struct hostent)+10)
6644 struct hostent hent; char buffer[BUFSIZE];
6646 size_t alen=sizeof(struct in_addr);
6647 int bufsize=BUFSIZE;int h_errno;
6648 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6649 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6652 if { (eval echo configure:6653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6654 ol_cv_func_gethostbyaddr_r_nargs7=yes
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6659 ol_cv_func_gethostbyaddr_r_nargs7=no
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <sys/types.h>
6667 #include <sys/socket.h>
6668 #include <netinet/in.h>
6670 #define BUFSIZE (sizeof(struct hostent)+10)
6672 struct hostent hent;
6673 struct hostent *rhent; char buffer[BUFSIZE];
6675 size_t alen=sizeof(struct in_addr);
6676 int bufsize=BUFSIZE;int h_errno;
6677 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6678 alen, AF_INET, &hent, buffer, bufsize,
6682 if { (eval echo configure:6683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6684 ol_cv_func_gethostbyaddr_r_nargs8=yes
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 ol_cv_func_gethostbyaddr_r_nargs8=no
6693 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6694 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6696 ol_cv_func_gethostbyaddr_r_nargs=7
6698 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6699 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6701 ol_cv_func_gethostbyaddr_r_nargs=8
6704 ol_cv_func_gethostbyaddr_r_nargs=0
6709 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6710 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6711 cat >> confdefs.h <<EOF
6712 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6718 ol_cv_func_gethostbyaddr_r_nargs=0
6721 if test "$ac_cv_func_ctime_r" = yes \
6722 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6723 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6724 -a "$ac_cv_func_gethostbyname_r" = yes \
6725 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6726 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6727 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6728 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6729 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6732 cat >> confdefs.h <<\EOF
6733 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6740 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6741 -o $ol_with_threads = nt ; then
6744 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6745 echo "configure:6746: checking for NT Threads" >&5
6746 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6747 echo $ac_n "(cached) $ac_c" 1>&6
6750 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6751 echo "configure:6752: checking for _beginthread" >&5
6752 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char _beginthread(); below. */
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6764 char _beginthread();
6769 /* The GNU C library defines this for functions which it implements
6770 to always fail with ENOSYS. Some functions are actually named
6771 something starting with __ and the normal name is an alias. */
6772 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782 eval "ac_cv_func__beginthread=yes"
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 eval "ac_cv_func__beginthread=no"
6792 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6793 echo "$ac_t""yes" 1>&6
6794 ol_cv_nt_threads=yes
6796 echo "$ac_t""no" 1>&6
6803 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6805 if test $ol_cv_nt_threads = yes ; then
6806 cat >> confdefs.h <<\EOF
6807 #define HAVE_NT_THREADS 1
6813 if test "$ol_cv_nt_threads" = yes ; then
6815 ol_with_threads=found
6816 ol_with_yielding_select=yes
6818 cat >> confdefs.h <<\EOF
6819 #define HAVE_NT_SERVICE_MANAGER 1
6822 cat >> confdefs.h <<\EOF
6823 #define HAVE_NT_EVENT_LOG 1
6828 if test $ol_with_threads = nt ; then
6829 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6833 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6834 -o $ol_with_threads = posix ; then
6836 for ac_hdr in pthread.h
6838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_hdr" >&5
6841 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6850 { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6852 if test -z "$ac_err"; then
6854 eval "ac_cv_header_$ac_safe=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_header_$ac_safe=no"
6864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6867 cat >> confdefs.h <<EOF
6868 #define $ac_tr_hdr 1
6872 echo "$ac_t""no" 1>&6
6877 if test $ac_cv_header_pthread_h = yes ; then
6878 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6879 echo "configure:6880: checking POSIX thread version" >&5
6880 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6888 # include <pthread.h>
6889 /* this check could be improved */
6890 # ifdef PTHREAD_ONCE_INIT
6891 pthread_version_final;
6895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6896 egrep "pthread_version_final" >/dev/null 2>&1; then
6898 ol_pthread_final=yes
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6910 # include <pthread.h>
6911 /* this check could be improved */
6912 # ifdef pthread_once_init
6913 pthread_version_draft4;
6917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6918 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6920 ol_pthread_draft4=yes
6923 ol_pthread_draft4=no
6928 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6929 ol_cv_pthread_version=final
6930 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6931 ol_cv_pthread_version=draft4
6933 ol_cv_pthread_version=unknown
6938 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6941 if test $ol_cv_pthread_version = final ; then
6942 cat >> confdefs.h <<\EOF
6943 #define HAVE_PTHREADS_FINAL 1
6946 elif test $ol_cv_pthread_version = draft4 ; then
6947 cat >> confdefs.h <<\EOF
6948 #define HAVE_PTHREADS_D4 1
6952 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6955 # consider threads found
6956 ol_with_threads=found
6959 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6960 echo "configure:6961: checking for LinuxThreads pthread.h" >&5
6961 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 #include <pthread.h>
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6972 ol_cv_header_linux_threads=yes
6975 ol_cv_header_linux_threads=no
6982 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6983 if test $ol_cv_header_linux_threads = yes; then
6984 cat >> confdefs.h <<\EOF
6985 #define HAVE_LINUX_THREADS 1
6991 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6992 echo "configure:6993: checking for GNU Pth pthread.h" >&5
6993 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 #include <pthread.h>
7000 #ifdef _POSIX_THREAD_IS_GNU_PTH
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 egrep "__gnu_pth__" >/dev/null 2>&1; then
7008 ol_cv_header_gnu_pth_pthread_h=yes
7011 ol_cv_header_gnu_pth_pthread_h=no
7018 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7021 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7022 for ac_hdr in sched.h
7024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_hdr" >&5
7027 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7036 { (eval echo configure:7037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7038 if test -z "$ac_err"; then
7040 eval "ac_cv_header_$ac_safe=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 eval "ac_cv_header_$ac_safe=no"
7050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7051 echo "$ac_t""yes" 1>&6
7052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7053 cat >> confdefs.h <<EOF
7054 #define $ac_tr_hdr 1
7058 echo "$ac_t""no" 1>&6
7065 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7066 echo "configure:7067: checking for pthread_create in default libraries" >&5
7067 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7071 if test "$cross_compiling" = yes; then
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 /* pthread test headers */
7076 #include <pthread.h>
7078 #define NULL (void*)0
7081 static void *task(p)
7084 return (void *) (p == NULL);
7089 /* pthread test function */
7092 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7093 /* This system (e.g. AIX) defaults detached; must override */
7094 pthread_attr_t attr;
7096 status = pthread_attr_init(&attr);
7097 if( status ) exit( status );
7099 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7100 if( status ) exit( status );
7104 #if HAVE_PTHREADS_D4
7105 #define ATTR pthread_attr_default
7110 /* make sure pthread_create() isn't just a stub */
7111 status = pthread_create(&t, ATTR, task, NULL);
7112 if( status ) exit( status );
7114 /* make sure pthread_detach() isn't just a stub */
7115 #if HAVE_PTHREADS_D4
7116 status = pthread_detach( &t );
7118 status = pthread_detach( t );
7121 #ifdef HAVE_LINUX_THREADS
7122 pthread_kill_other_threads_np();
7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 ol_cv_pthread_create=yes
7133 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 ol_cv_pthread_create=no
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* pthread test headers */
7144 #include <pthread.h>
7146 #define NULL (void*)0
7149 static void *task(p)
7152 return (void *) (p == NULL);
7156 int main(argc, argv)
7161 /* pthread test function */
7164 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7165 /* This system (e.g. AIX) defaults detached; must override */
7166 pthread_attr_t attr;
7168 status = pthread_attr_init(&attr);
7169 if( status ) exit( status );
7171 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7172 if( status ) exit( status );
7176 #if HAVE_PTHREADS_D4
7177 #define ATTR pthread_attr_default
7182 /* make sure pthread_create() isn't just a stub */
7183 status = pthread_create(&t, ATTR, task, NULL);
7184 if( status ) exit( status );
7186 /* make sure pthread_detach() isn't just a stub */
7187 #if HAVE_PTHREADS_D4
7188 status = pthread_detach( &t );
7190 status = pthread_detach( t );
7193 #ifdef HAVE_LINUX_THREADS
7194 pthread_kill_other_threads_np();
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7204 ol_cv_pthread_create=yes
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 ol_cv_pthread_create=no
7216 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7218 if test $ol_cv_pthread_create != no ; then
7219 ol_link_threads=posix
7223 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7224 if test "$ol_link_threads" = no ; then
7226 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7227 echo "configure:7228: checking for pthread link with -kthread" >&5
7228 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7229 echo $ac_n "(cached) $ac_c" 1>&6
7234 LIBS="-kthread $LIBS"
7236 if test "$cross_compiling" = yes; then
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* pthread test headers */
7241 #include <pthread.h>
7243 #define NULL (void*)0
7246 static void *task(p)
7249 return (void *) (p == NULL);
7254 /* pthread test function */
7257 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7258 /* This system (e.g. AIX) defaults detached; must override */
7259 pthread_attr_t attr;
7261 status = pthread_attr_init(&attr);
7262 if( status ) exit( status );
7264 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7265 if( status ) exit( status );
7269 #if HAVE_PTHREADS_D4
7270 #define ATTR pthread_attr_default
7275 /* make sure pthread_create() isn't just a stub */
7276 status = pthread_create(&t, ATTR, task, NULL);
7277 if( status ) exit( status );
7279 /* make sure pthread_detach() isn't just a stub */
7280 #if HAVE_PTHREADS_D4
7281 status = pthread_detach( &t );
7283 status = pthread_detach( t );
7286 #ifdef HAVE_LINUX_THREADS
7287 pthread_kill_other_threads_np();
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296 ol_cv_pthread_kthread=yes
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 ol_cv_pthread_kthread=no
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* pthread test headers */
7309 #include <pthread.h>
7311 #define NULL (void*)0
7314 static void *task(p)
7317 return (void *) (p == NULL);
7321 int main(argc, argv)
7326 /* pthread test function */
7329 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7330 /* This system (e.g. AIX) defaults detached; must override */
7331 pthread_attr_t attr;
7333 status = pthread_attr_init(&attr);
7334 if( status ) exit( status );
7336 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7337 if( status ) exit( status );
7341 #if HAVE_PTHREADS_D4
7342 #define ATTR pthread_attr_default
7347 /* make sure pthread_create() isn't just a stub */
7348 status = pthread_create(&t, ATTR, task, NULL);
7349 if( status ) exit( status );
7351 /* make sure pthread_detach() isn't just a stub */
7352 #if HAVE_PTHREADS_D4
7353 status = pthread_detach( &t );
7355 status = pthread_detach( t );
7358 #ifdef HAVE_LINUX_THREADS
7359 pthread_kill_other_threads_np();
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7369 ol_cv_pthread_kthread=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ol_cv_pthread_kthread=no
7385 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7387 if test $ol_cv_pthread_kthread = yes ; then
7388 ol_link_pthreads="-kthread"
7389 ol_link_threads=posix
7393 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7394 if test "$ol_link_threads" = no ; then
7396 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7397 echo "configure:7398: checking for pthread link with -pthread" >&5
7398 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7404 LIBS="-pthread $LIBS"
7406 if test "$cross_compiling" = yes; then
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* pthread test headers */
7411 #include <pthread.h>
7413 #define NULL (void*)0
7416 static void *task(p)
7419 return (void *) (p == NULL);
7424 /* pthread test function */
7427 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7428 /* This system (e.g. AIX) defaults detached; must override */
7429 pthread_attr_t attr;
7431 status = pthread_attr_init(&attr);
7432 if( status ) exit( status );
7434 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7435 if( status ) exit( status );
7439 #if HAVE_PTHREADS_D4
7440 #define ATTR pthread_attr_default
7445 /* make sure pthread_create() isn't just a stub */
7446 status = pthread_create(&t, ATTR, task, NULL);
7447 if( status ) exit( status );
7449 /* make sure pthread_detach() isn't just a stub */
7450 #if HAVE_PTHREADS_D4
7451 status = pthread_detach( &t );
7453 status = pthread_detach( t );
7456 #ifdef HAVE_LINUX_THREADS
7457 pthread_kill_other_threads_np();
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 ol_cv_pthread_pthread=yes
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7471 ol_cv_pthread_pthread=no
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 /* pthread test headers */
7479 #include <pthread.h>
7481 #define NULL (void*)0
7484 static void *task(p)
7487 return (void *) (p == NULL);
7491 int main(argc, argv)
7496 /* pthread test function */
7499 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7500 /* This system (e.g. AIX) defaults detached; must override */
7501 pthread_attr_t attr;
7503 status = pthread_attr_init(&attr);
7504 if( status ) exit( status );
7506 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7507 if( status ) exit( status );
7511 #if HAVE_PTHREADS_D4
7512 #define ATTR pthread_attr_default
7517 /* make sure pthread_create() isn't just a stub */
7518 status = pthread_create(&t, ATTR, task, NULL);
7519 if( status ) exit( status );
7521 /* make sure pthread_detach() isn't just a stub */
7522 #if HAVE_PTHREADS_D4
7523 status = pthread_detach( &t );
7525 status = pthread_detach( t );
7528 #ifdef HAVE_LINUX_THREADS
7529 pthread_kill_other_threads_np();
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7539 ol_cv_pthread_pthread=yes
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7544 ol_cv_pthread_pthread=no
7555 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7557 if test $ol_cv_pthread_pthread = yes ; then
7558 ol_link_pthreads="-pthread"
7559 ol_link_threads=posix
7563 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7564 if test "$ol_link_threads" = no ; then
7566 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7567 echo "configure:7568: checking for pthread link with -pthreads" >&5
7568 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7574 LIBS="-pthreads $LIBS"
7576 if test "$cross_compiling" = yes; then
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* pthread test headers */
7581 #include <pthread.h>
7583 #define NULL (void*)0
7586 static void *task(p)
7589 return (void *) (p == NULL);
7594 /* pthread test function */
7597 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7598 /* This system (e.g. AIX) defaults detached; must override */
7599 pthread_attr_t attr;
7601 status = pthread_attr_init(&attr);
7602 if( status ) exit( status );
7604 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7605 if( status ) exit( status );
7609 #if HAVE_PTHREADS_D4
7610 #define ATTR pthread_attr_default
7615 /* make sure pthread_create() isn't just a stub */
7616 status = pthread_create(&t, ATTR, task, NULL);
7617 if( status ) exit( status );
7619 /* make sure pthread_detach() isn't just a stub */
7620 #if HAVE_PTHREADS_D4
7621 status = pthread_detach( &t );
7623 status = pthread_detach( t );
7626 #ifdef HAVE_LINUX_THREADS
7627 pthread_kill_other_threads_np();
7634 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7636 ol_cv_pthread_pthreads=yes
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7641 ol_cv_pthread_pthreads=no
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7648 /* pthread test headers */
7649 #include <pthread.h>
7651 #define NULL (void*)0
7654 static void *task(p)
7657 return (void *) (p == NULL);
7661 int main(argc, argv)
7666 /* pthread test function */
7669 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7670 /* This system (e.g. AIX) defaults detached; must override */
7671 pthread_attr_t attr;
7673 status = pthread_attr_init(&attr);
7674 if( status ) exit( status );
7676 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7677 if( status ) exit( status );
7681 #if HAVE_PTHREADS_D4
7682 #define ATTR pthread_attr_default
7687 /* make sure pthread_create() isn't just a stub */
7688 status = pthread_create(&t, ATTR, task, NULL);
7689 if( status ) exit( status );
7691 /* make sure pthread_detach() isn't just a stub */
7692 #if HAVE_PTHREADS_D4
7693 status = pthread_detach( &t );
7695 status = pthread_detach( t );
7698 #ifdef HAVE_LINUX_THREADS
7699 pthread_kill_other_threads_np();
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7709 ol_cv_pthread_pthreads=yes
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 ol_cv_pthread_pthreads=no
7725 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7727 if test $ol_cv_pthread_pthreads = yes ; then
7728 ol_link_pthreads="-pthreads"
7729 ol_link_threads=posix
7733 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7734 if test "$ol_link_threads" = no ; then
7736 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7737 echo "configure:7738: checking for pthread link with -mthreads" >&5
7738 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7744 LIBS="-mthreads $LIBS"
7746 if test "$cross_compiling" = yes; then
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* pthread test headers */
7751 #include <pthread.h>
7753 #define NULL (void*)0
7756 static void *task(p)
7759 return (void *) (p == NULL);
7764 /* pthread test function */
7767 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7768 /* This system (e.g. AIX) defaults detached; must override */
7769 pthread_attr_t attr;
7771 status = pthread_attr_init(&attr);
7772 if( status ) exit( status );
7774 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7775 if( status ) exit( status );
7779 #if HAVE_PTHREADS_D4
7780 #define ATTR pthread_attr_default
7785 /* make sure pthread_create() isn't just a stub */
7786 status = pthread_create(&t, ATTR, task, NULL);
7787 if( status ) exit( status );
7789 /* make sure pthread_detach() isn't just a stub */
7790 #if HAVE_PTHREADS_D4
7791 status = pthread_detach( &t );
7793 status = pthread_detach( t );
7796 #ifdef HAVE_LINUX_THREADS
7797 pthread_kill_other_threads_np();
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 ol_cv_pthread_mthreads=yes
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 ol_cv_pthread_mthreads=no
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* pthread test headers */
7819 #include <pthread.h>
7821 #define NULL (void*)0
7824 static void *task(p)
7827 return (void *) (p == NULL);
7831 int main(argc, argv)
7836 /* pthread test function */
7839 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7840 /* This system (e.g. AIX) defaults detached; must override */
7841 pthread_attr_t attr;
7843 status = pthread_attr_init(&attr);
7844 if( status ) exit( status );
7846 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7847 if( status ) exit( status );
7851 #if HAVE_PTHREADS_D4
7852 #define ATTR pthread_attr_default
7857 /* make sure pthread_create() isn't just a stub */
7858 status = pthread_create(&t, ATTR, task, NULL);
7859 if( status ) exit( status );
7861 /* make sure pthread_detach() isn't just a stub */
7862 #if HAVE_PTHREADS_D4
7863 status = pthread_detach( &t );
7865 status = pthread_detach( t );
7868 #ifdef HAVE_LINUX_THREADS
7869 pthread_kill_other_threads_np();
7877 if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7879 ol_cv_pthread_mthreads=yes
7881 echo "configure: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7884 ol_cv_pthread_mthreads=no
7895 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7897 if test $ol_cv_pthread_mthreads = yes ; then
7898 ol_link_pthreads="-mthreads"
7899 ol_link_threads=posix
7903 # Pthread try link: -thread (ol_cv_pthread_thread)
7904 if test "$ol_link_threads" = no ; then
7906 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7907 echo "configure:7908: checking for pthread link with -thread" >&5
7908 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7914 LIBS="-thread $LIBS"
7916 if test "$cross_compiling" = yes; then
7917 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 /* pthread test headers */
7921 #include <pthread.h>
7923 #define NULL (void*)0
7926 static void *task(p)
7929 return (void *) (p == NULL);
7934 /* pthread test function */
7937 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7938 /* This system (e.g. AIX) defaults detached; must override */
7939 pthread_attr_t attr;
7941 status = pthread_attr_init(&attr);
7942 if( status ) exit( status );
7944 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7945 if( status ) exit( status );
7949 #if HAVE_PTHREADS_D4
7950 #define ATTR pthread_attr_default
7955 /* make sure pthread_create() isn't just a stub */
7956 status = pthread_create(&t, ATTR, task, NULL);
7957 if( status ) exit( status );
7959 /* make sure pthread_detach() isn't just a stub */
7960 #if HAVE_PTHREADS_D4
7961 status = pthread_detach( &t );
7963 status = pthread_detach( t );
7966 #ifdef HAVE_LINUX_THREADS
7967 pthread_kill_other_threads_np();
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7976 ol_cv_pthread_thread=yes
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 ol_cv_pthread_thread=no
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 /* pthread test headers */
7989 #include <pthread.h>
7991 #define NULL (void*)0
7994 static void *task(p)
7997 return (void *) (p == NULL);
8001 int main(argc, argv)
8006 /* pthread test function */
8009 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8010 /* This system (e.g. AIX) defaults detached; must override */
8011 pthread_attr_t attr;
8013 status = pthread_attr_init(&attr);
8014 if( status ) exit( status );
8016 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8017 if( status ) exit( status );
8021 #if HAVE_PTHREADS_D4
8022 #define ATTR pthread_attr_default
8027 /* make sure pthread_create() isn't just a stub */
8028 status = pthread_create(&t, ATTR, task, NULL);
8029 if( status ) exit( status );
8031 /* make sure pthread_detach() isn't just a stub */
8032 #if HAVE_PTHREADS_D4
8033 status = pthread_detach( &t );
8035 status = pthread_detach( t );
8038 #ifdef HAVE_LINUX_THREADS
8039 pthread_kill_other_threads_np();
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8049 ol_cv_pthread_thread=yes
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 ol_cv_pthread_thread=no
8065 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8067 if test $ol_cv_pthread_thread = yes ; then
8068 ol_link_pthreads="-thread"
8069 ol_link_threads=posix
8074 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8075 if test "$ol_link_threads" = no ; then
8076 # try -lpthread -lmach -lexc -lc_r
8077 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8078 echo "configure:8079: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8079 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8085 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8087 if test "$cross_compiling" = yes; then
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 /* pthread test headers */
8092 #include <pthread.h>
8094 #define NULL (void*)0
8097 static void *task(p)
8100 return (void *) (p == NULL);
8105 /* pthread test function */
8108 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8109 /* This system (e.g. AIX) defaults detached; must override */
8110 pthread_attr_t attr;
8112 status = pthread_attr_init(&attr);
8113 if( status ) exit( status );
8115 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8116 if( status ) exit( status );
8120 #if HAVE_PTHREADS_D4
8121 #define ATTR pthread_attr_default
8126 /* make sure pthread_create() isn't just a stub */
8127 status = pthread_create(&t, ATTR, task, NULL);
8128 if( status ) exit( status );
8130 /* make sure pthread_detach() isn't just a stub */
8131 #if HAVE_PTHREADS_D4
8132 status = pthread_detach( &t );
8134 status = pthread_detach( t );
8137 #ifdef HAVE_LINUX_THREADS
8138 pthread_kill_other_threads_np();
8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8147 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8152 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 /* pthread test headers */
8160 #include <pthread.h>
8162 #define NULL (void*)0
8165 static void *task(p)
8168 return (void *) (p == NULL);
8172 int main(argc, argv)
8177 /* pthread test function */
8180 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8181 /* This system (e.g. AIX) defaults detached; must override */
8182 pthread_attr_t attr;
8184 status = pthread_attr_init(&attr);
8185 if( status ) exit( status );
8187 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8188 if( status ) exit( status );
8192 #if HAVE_PTHREADS_D4
8193 #define ATTR pthread_attr_default
8198 /* make sure pthread_create() isn't just a stub */
8199 status = pthread_create(&t, ATTR, task, NULL);
8200 if( status ) exit( status );
8202 /* make sure pthread_detach() isn't just a stub */
8203 #if HAVE_PTHREADS_D4
8204 status = pthread_detach( &t );
8206 status = pthread_detach( t );
8209 #ifdef HAVE_LINUX_THREADS
8210 pthread_kill_other_threads_np();
8218 if { (eval echo configure:8219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8220 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8222 echo "configure: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8236 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8238 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8239 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8240 ol_link_threads=posix
8244 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8245 if test "$ol_link_threads" = no ; then
8246 # try -lpthread -lmach -lexc
8247 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8248 echo "configure:8249: checking for pthread link with -lpthread -lmach -lexc" >&5
8249 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8255 LIBS="-lpthread -lmach -lexc $LIBS"
8257 if test "$cross_compiling" = yes; then
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 /* pthread test headers */
8262 #include <pthread.h>
8264 #define NULL (void*)0
8267 static void *task(p)
8270 return (void *) (p == NULL);
8275 /* pthread test function */
8278 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8279 /* This system (e.g. AIX) defaults detached; must override */
8280 pthread_attr_t attr;
8282 status = pthread_attr_init(&attr);
8283 if( status ) exit( status );
8285 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8286 if( status ) exit( status );
8290 #if HAVE_PTHREADS_D4
8291 #define ATTR pthread_attr_default
8296 /* make sure pthread_create() isn't just a stub */
8297 status = pthread_create(&t, ATTR, task, NULL);
8298 if( status ) exit( status );
8300 /* make sure pthread_detach() isn't just a stub */
8301 #if HAVE_PTHREADS_D4
8302 status = pthread_detach( &t );
8304 status = pthread_detach( t );
8307 #ifdef HAVE_LINUX_THREADS
8308 pthread_kill_other_threads_np();
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8317 ol_cv_pthread_lpthread_lmach_lexc=yes
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8322 ol_cv_pthread_lpthread_lmach_lexc=no
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329 /* pthread test headers */
8330 #include <pthread.h>
8332 #define NULL (void*)0
8335 static void *task(p)
8338 return (void *) (p == NULL);
8342 int main(argc, argv)
8347 /* pthread test function */
8350 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8351 /* This system (e.g. AIX) defaults detached; must override */
8352 pthread_attr_t attr;
8354 status = pthread_attr_init(&attr);
8355 if( status ) exit( status );
8357 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8358 if( status ) exit( status );
8362 #if HAVE_PTHREADS_D4
8363 #define ATTR pthread_attr_default
8368 /* make sure pthread_create() isn't just a stub */
8369 status = pthread_create(&t, ATTR, task, NULL);
8370 if( status ) exit( status );
8372 /* make sure pthread_detach() isn't just a stub */
8373 #if HAVE_PTHREADS_D4
8374 status = pthread_detach( &t );
8376 status = pthread_detach( t );
8379 #ifdef HAVE_LINUX_THREADS
8380 pthread_kill_other_threads_np();
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8390 ol_cv_pthread_lpthread_lmach_lexc=yes
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 ol_cv_pthread_lpthread_lmach_lexc=no
8406 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8408 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8409 ol_link_pthreads="-lpthread -lmach -lexc"
8410 ol_link_threads=posix
8415 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8416 if test "$ol_link_threads" = no ; then
8417 # try -lpthread -Wl,-woff,85
8418 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8419 echo "configure:8420: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8420 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8426 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8428 if test "$cross_compiling" = yes; then
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* pthread test headers */
8433 #include <pthread.h>
8435 #define NULL (void*)0
8438 static void *task(p)
8441 return (void *) (p == NULL);
8446 /* pthread test function */
8449 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8450 /* This system (e.g. AIX) defaults detached; must override */
8451 pthread_attr_t attr;
8453 status = pthread_attr_init(&attr);
8454 if( status ) exit( status );
8456 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8457 if( status ) exit( status );
8461 #if HAVE_PTHREADS_D4
8462 #define ATTR pthread_attr_default
8467 /* make sure pthread_create() isn't just a stub */
8468 status = pthread_create(&t, ATTR, task, NULL);
8469 if( status ) exit( status );
8471 /* make sure pthread_detach() isn't just a stub */
8472 #if HAVE_PTHREADS_D4
8473 status = pthread_detach( &t );
8475 status = pthread_detach( t );
8478 #ifdef HAVE_LINUX_THREADS
8479 pthread_kill_other_threads_np();
8486 if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8488 ol_cv_pthread_lib_lpthread_woff=yes
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8493 ol_cv_pthread_lib_lpthread_woff=no
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* pthread test headers */
8501 #include <pthread.h>
8503 #define NULL (void*)0
8506 static void *task(p)
8509 return (void *) (p == NULL);
8513 int main(argc, argv)
8518 /* pthread test function */
8521 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8522 /* This system (e.g. AIX) defaults detached; must override */
8523 pthread_attr_t attr;
8525 status = pthread_attr_init(&attr);
8526 if( status ) exit( status );
8528 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8529 if( status ) exit( status );
8533 #if HAVE_PTHREADS_D4
8534 #define ATTR pthread_attr_default
8539 /* make sure pthread_create() isn't just a stub */
8540 status = pthread_create(&t, ATTR, task, NULL);
8541 if( status ) exit( status );
8543 /* make sure pthread_detach() isn't just a stub */
8544 #if HAVE_PTHREADS_D4
8545 status = pthread_detach( &t );
8547 status = pthread_detach( t );
8550 #ifdef HAVE_LINUX_THREADS
8551 pthread_kill_other_threads_np();
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8561 ol_cv_pthread_lib_lpthread_woff=yes
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 ol_cv_pthread_lib_lpthread_woff=no
8577 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8579 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8580 ol_link_pthreads="-lpthread -Wl,-woff,85"
8581 ol_link_threads=posix
8586 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8587 if test "$ol_link_threads" = no ; then
8589 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8590 echo "configure:8591: checking for pthread link with -lpthread" >&5
8591 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8597 LIBS="-lpthread $LIBS"
8599 if test "$cross_compiling" = yes; then
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 /* pthread test headers */
8604 #include <pthread.h>
8606 #define NULL (void*)0
8609 static void *task(p)
8612 return (void *) (p == NULL);
8617 /* pthread test function */
8620 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8621 /* This system (e.g. AIX) defaults detached; must override */
8622 pthread_attr_t attr;
8624 status = pthread_attr_init(&attr);
8625 if( status ) exit( status );
8627 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8628 if( status ) exit( status );
8632 #if HAVE_PTHREADS_D4
8633 #define ATTR pthread_attr_default
8638 /* make sure pthread_create() isn't just a stub */
8639 status = pthread_create(&t, ATTR, task, NULL);
8640 if( status ) exit( status );
8642 /* make sure pthread_detach() isn't just a stub */
8643 #if HAVE_PTHREADS_D4
8644 status = pthread_detach( &t );
8646 status = pthread_detach( t );
8649 #ifdef HAVE_LINUX_THREADS
8650 pthread_kill_other_threads_np();
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8659 ol_cv_pthread_lpthread=yes
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 ol_cv_pthread_lpthread=no
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 /* pthread test headers */
8672 #include <pthread.h>
8674 #define NULL (void*)0
8677 static void *task(p)
8680 return (void *) (p == NULL);
8684 int main(argc, argv)
8689 /* pthread test function */
8692 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8693 /* This system (e.g. AIX) defaults detached; must override */
8694 pthread_attr_t attr;
8696 status = pthread_attr_init(&attr);
8697 if( status ) exit( status );
8699 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8700 if( status ) exit( status );
8704 #if HAVE_PTHREADS_D4
8705 #define ATTR pthread_attr_default
8710 /* make sure pthread_create() isn't just a stub */
8711 status = pthread_create(&t, ATTR, task, NULL);
8712 if( status ) exit( status );
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=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ol_cv_pthread_lpthread=no
8748 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8750 if test $ol_cv_pthread_lpthread = yes ; then
8751 ol_link_pthreads="-lpthread"
8752 ol_link_threads=posix
8756 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8757 if test "$ol_link_threads" = no ; then
8759 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8760 echo "configure:8761: checking for pthread link with -lc_r" >&5
8761 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
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 );
8802 #if HAVE_PTHREADS_D4
8803 #define ATTR pthread_attr_default
8808 /* make sure pthread_create() isn't just a stub */
8809 status = pthread_create(&t, ATTR, task, NULL);
8810 if( status ) exit( status );
8812 /* make sure pthread_detach() isn't just a stub */
8813 #if HAVE_PTHREADS_D4
8814 status = pthread_detach( &t );
8816 status = pthread_detach( t );
8819 #ifdef HAVE_LINUX_THREADS
8820 pthread_kill_other_threads_np();
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8829 ol_cv_pthread_lc_r=yes
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 ol_cv_pthread_lc_r=no
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 /* pthread test headers */
8842 #include <pthread.h>
8844 #define NULL (void*)0
8847 static void *task(p)
8850 return (void *) (p == NULL);
8854 int main(argc, argv)
8859 /* pthread test function */
8862 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8863 /* This system (e.g. AIX) defaults detached; must override */
8864 pthread_attr_t attr;
8866 status = pthread_attr_init(&attr);
8867 if( status ) exit( status );
8869 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8870 if( status ) exit( status );
8874 #if HAVE_PTHREADS_D4
8875 #define ATTR pthread_attr_default
8880 /* make sure pthread_create() isn't just a stub */
8881 status = pthread_create(&t, ATTR, task, NULL);
8882 if( status ) exit( status );
8884 /* make sure pthread_detach() isn't just a stub */
8885 #if HAVE_PTHREADS_D4
8886 status = pthread_detach( &t );
8888 status = pthread_detach( t );
8891 #ifdef HAVE_LINUX_THREADS
8892 pthread_kill_other_threads_np();
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8902 ol_cv_pthread_lc_r=yes
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 ol_cv_pthread_lc_r=no
8918 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8920 if test $ol_cv_pthread_lc_r = yes ; then
8921 ol_link_pthreads="-lc_r"
8922 ol_link_threads=posix
8927 # Pthread try link: -threads (ol_cv_pthread_threads)
8928 if test "$ol_link_threads" = no ; then
8930 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8931 echo "configure:8932: checking for pthread link with -threads" >&5
8932 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8933 echo $ac_n "(cached) $ac_c" 1>&6
8938 LIBS="-threads $LIBS"
8940 if test "$cross_compiling" = yes; then
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 /* pthread test headers */
8945 #include <pthread.h>
8947 #define NULL (void*)0
8950 static void *task(p)
8953 return (void *) (p == NULL);
8958 /* pthread test function */
8961 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8962 /* This system (e.g. AIX) defaults detached; must override */
8963 pthread_attr_t attr;
8965 status = pthread_attr_init(&attr);
8966 if( status ) exit( status );
8968 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8969 if( status ) exit( status );
8973 #if HAVE_PTHREADS_D4
8974 #define ATTR pthread_attr_default
8979 /* make sure pthread_create() isn't just a stub */
8980 status = pthread_create(&t, ATTR, task, NULL);
8981 if( status ) exit( status );
8983 /* make sure pthread_detach() isn't just a stub */
8984 #if HAVE_PTHREADS_D4
8985 status = pthread_detach( &t );
8987 status = pthread_detach( t );
8990 #ifdef HAVE_LINUX_THREADS
8991 pthread_kill_other_threads_np();
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 ol_cv_pthread_threads=yes
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 ol_cv_pthread_threads=no
9009 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure"
9011 #include "confdefs.h"
9012 /* pthread test headers */
9013 #include <pthread.h>
9015 #define NULL (void*)0
9018 static void *task(p)
9021 return (void *) (p == NULL);
9025 int main(argc, argv)
9030 /* pthread test function */
9033 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9034 /* This system (e.g. AIX) defaults detached; must override */
9035 pthread_attr_t attr;
9037 status = pthread_attr_init(&attr);
9038 if( status ) exit( status );
9040 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9041 if( status ) exit( status );
9045 #if HAVE_PTHREADS_D4
9046 #define ATTR pthread_attr_default
9051 /* make sure pthread_create() isn't just a stub */
9052 status = pthread_create(&t, ATTR, task, NULL);
9053 if( status ) exit( status );
9055 /* make sure pthread_detach() isn't just a stub */
9056 #if HAVE_PTHREADS_D4
9057 status = pthread_detach( &t );
9059 status = pthread_detach( t );
9062 #ifdef HAVE_LINUX_THREADS
9063 pthread_kill_other_threads_np();
9071 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9073 ol_cv_pthread_threads=yes
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 ol_cv_pthread_threads=no
9089 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9091 if test $ol_cv_pthread_threads = yes ; then
9092 ol_link_pthreads="-threads"
9093 ol_link_threads=posix
9098 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9099 if test "$ol_link_threads" = no ; then
9100 # try -lpthreads -lmach -lexc -lc_r
9101 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9102 echo "configure:9103: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9103 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9109 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9111 if test "$cross_compiling" = yes; then
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9115 /* pthread test headers */
9116 #include <pthread.h>
9118 #define NULL (void*)0
9121 static void *task(p)
9124 return (void *) (p == NULL);
9129 /* pthread test function */
9132 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9133 /* This system (e.g. AIX) defaults detached; must override */
9134 pthread_attr_t attr;
9136 status = pthread_attr_init(&attr);
9137 if( status ) exit( status );
9139 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9140 if( status ) exit( status );
9144 #if HAVE_PTHREADS_D4
9145 #define ATTR pthread_attr_default
9150 /* make sure pthread_create() isn't just a stub */
9151 status = pthread_create(&t, ATTR, task, NULL);
9152 if( status ) exit( status );
9154 /* make sure pthread_detach() isn't just a stub */
9155 #if HAVE_PTHREADS_D4
9156 status = pthread_detach( &t );
9158 status = pthread_detach( t );
9161 #ifdef HAVE_LINUX_THREADS
9162 pthread_kill_other_threads_np();
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9171 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9183 /* pthread test headers */
9184 #include <pthread.h>
9186 #define NULL (void*)0
9189 static void *task(p)
9192 return (void *) (p == NULL);
9196 int main(argc, argv)
9201 /* pthread test function */
9204 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9205 /* This system (e.g. AIX) defaults detached; must override */
9206 pthread_attr_t attr;
9208 status = pthread_attr_init(&attr);
9209 if( status ) exit( status );
9211 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9212 if( status ) exit( status );
9216 #if HAVE_PTHREADS_D4
9217 #define ATTR pthread_attr_default
9222 /* make sure pthread_create() isn't just a stub */
9223 status = pthread_create(&t, ATTR, task, NULL);
9224 if( status ) exit( status );
9226 /* make sure pthread_detach() isn't just a stub */
9227 #if HAVE_PTHREADS_D4
9228 status = pthread_detach( &t );
9230 status = pthread_detach( t );
9233 #ifdef HAVE_LINUX_THREADS
9234 pthread_kill_other_threads_np();
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9244 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9260 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9262 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9263 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9264 ol_link_threads=posix
9268 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9269 if test "$ol_link_threads" = no ; then
9270 # try -lpthreads -lmach -lexc
9271 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9272 echo "configure:9273: checking for pthread link with -lpthreads -lmach -lexc" >&5
9273 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9279 LIBS="-lpthreads -lmach -lexc $LIBS"
9281 if test "$cross_compiling" = yes; then
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9285 /* pthread test headers */
9286 #include <pthread.h>
9288 #define NULL (void*)0
9291 static void *task(p)
9294 return (void *) (p == NULL);
9299 /* pthread test function */
9302 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9303 /* This system (e.g. AIX) defaults detached; must override */
9304 pthread_attr_t attr;
9306 status = pthread_attr_init(&attr);
9307 if( status ) exit( status );
9309 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9310 if( status ) exit( status );
9314 #if HAVE_PTHREADS_D4
9315 #define ATTR pthread_attr_default
9320 /* make sure pthread_create() isn't just a stub */
9321 status = pthread_create(&t, ATTR, task, NULL);
9322 if( status ) exit( status );
9324 /* make sure pthread_detach() isn't just a stub */
9325 #if HAVE_PTHREADS_D4
9326 status = pthread_detach( &t );
9328 status = pthread_detach( t );
9331 #ifdef HAVE_LINUX_THREADS
9332 pthread_kill_other_threads_np();
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 ol_cv_pthread_lpthreads_lmach_lexc=yes
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 ol_cv_pthread_lpthreads_lmach_lexc=no
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9353 /* pthread test headers */
9354 #include <pthread.h>
9356 #define NULL (void*)0
9359 static void *task(p)
9362 return (void *) (p == NULL);
9366 int main(argc, argv)
9371 /* pthread test function */
9374 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9375 /* This system (e.g. AIX) defaults detached; must override */
9376 pthread_attr_t attr;
9378 status = pthread_attr_init(&attr);
9379 if( status ) exit( status );
9381 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9382 if( status ) exit( status );
9386 #if HAVE_PTHREADS_D4
9387 #define ATTR pthread_attr_default
9392 /* make sure pthread_create() isn't just a stub */
9393 status = pthread_create(&t, ATTR, task, NULL);
9394 if( status ) exit( status );
9396 /* make sure pthread_detach() isn't just a stub */
9397 #if HAVE_PTHREADS_D4
9398 status = pthread_detach( &t );
9400 status = pthread_detach( t );
9403 #ifdef HAVE_LINUX_THREADS
9404 pthread_kill_other_threads_np();
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9414 ol_cv_pthread_lpthreads_lmach_lexc=yes
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 ol_cv_pthread_lpthreads_lmach_lexc=no
9430 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9432 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9433 ol_link_pthreads="-lpthreads -lmach -lexc"
9434 ol_link_threads=posix
9438 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9439 if test "$ol_link_threads" = no ; then
9440 # try -lpthreads -lexc
9441 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9442 echo "configure:9443: checking for pthread link with -lpthreads -lexc" >&5
9443 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9449 LIBS="-lpthreads -lexc $LIBS"
9451 if test "$cross_compiling" = yes; then
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9455 /* pthread test headers */
9456 #include <pthread.h>
9458 #define NULL (void*)0
9461 static void *task(p)
9464 return (void *) (p == NULL);
9469 /* pthread test function */
9472 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9473 /* This system (e.g. AIX) defaults detached; must override */
9474 pthread_attr_t attr;
9476 status = pthread_attr_init(&attr);
9477 if( status ) exit( status );
9479 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9480 if( status ) exit( status );
9484 #if HAVE_PTHREADS_D4
9485 #define ATTR pthread_attr_default
9490 /* make sure pthread_create() isn't just a stub */
9491 status = pthread_create(&t, ATTR, task, NULL);
9492 if( status ) exit( status );
9494 /* make sure pthread_detach() isn't just a stub */
9495 #if HAVE_PTHREADS_D4
9496 status = pthread_detach( &t );
9498 status = pthread_detach( t );
9501 #ifdef HAVE_LINUX_THREADS
9502 pthread_kill_other_threads_np();
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9511 ol_cv_pthread_lpthreads_lexc=yes
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 ol_cv_pthread_lpthreads_lexc=no
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 /* pthread test headers */
9524 #include <pthread.h>
9526 #define NULL (void*)0
9529 static void *task(p)
9532 return (void *) (p == NULL);
9536 int main(argc, argv)
9541 /* pthread test function */
9544 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9545 /* This system (e.g. AIX) defaults detached; must override */
9546 pthread_attr_t attr;
9548 status = pthread_attr_init(&attr);
9549 if( status ) exit( status );
9551 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9552 if( status ) exit( status );
9556 #if HAVE_PTHREADS_D4
9557 #define ATTR pthread_attr_default
9562 /* make sure pthread_create() isn't just a stub */
9563 status = pthread_create(&t, ATTR, task, NULL);
9564 if( status ) exit( status );
9566 /* make sure pthread_detach() isn't just a stub */
9567 #if HAVE_PTHREADS_D4
9568 status = pthread_detach( &t );
9570 status = pthread_detach( t );
9573 #ifdef HAVE_LINUX_THREADS
9574 pthread_kill_other_threads_np();
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9584 ol_cv_pthread_lpthreads_lexc=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9589 ol_cv_pthread_lpthreads_lexc=no
9600 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9602 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9603 ol_link_pthreads="-lpthreads -lexc"
9604 ol_link_threads=posix
9609 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9610 if test "$ol_link_threads" = no ; then
9612 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9613 echo "configure:9614: checking for pthread link with -lpthreads" >&5
9614 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9620 LIBS="-lpthreads $LIBS"
9622 if test "$cross_compiling" = yes; then
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 /* pthread test headers */
9627 #include <pthread.h>
9629 #define NULL (void*)0
9632 static void *task(p)
9635 return (void *) (p == NULL);
9640 /* pthread test function */
9643 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9644 /* This system (e.g. AIX) defaults detached; must override */
9645 pthread_attr_t attr;
9647 status = pthread_attr_init(&attr);
9648 if( status ) exit( status );
9650 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9651 if( status ) exit( status );
9655 #if HAVE_PTHREADS_D4
9656 #define ATTR pthread_attr_default
9661 /* make sure pthread_create() isn't just a stub */
9662 status = pthread_create(&t, ATTR, task, NULL);
9663 if( status ) exit( status );
9665 /* make sure pthread_detach() isn't just a stub */
9666 #if HAVE_PTHREADS_D4
9667 status = pthread_detach( &t );
9669 status = pthread_detach( t );
9672 #ifdef HAVE_LINUX_THREADS
9673 pthread_kill_other_threads_np();
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9682 ol_cv_pthread_lib_lpthreads=yes
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 ol_cv_pthread_lib_lpthreads=no
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 /* pthread test headers */
9695 #include <pthread.h>
9697 #define NULL (void*)0
9700 static void *task(p)
9703 return (void *) (p == NULL);
9707 int main(argc, argv)
9712 /* pthread test function */
9715 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9716 /* This system (e.g. AIX) defaults detached; must override */
9717 pthread_attr_t attr;
9719 status = pthread_attr_init(&attr);
9720 if( status ) exit( status );
9722 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9723 if( status ) exit( status );
9727 #if HAVE_PTHREADS_D4
9728 #define ATTR pthread_attr_default
9733 /* make sure pthread_create() isn't just a stub */
9734 status = pthread_create(&t, ATTR, task, NULL);
9735 if( status ) exit( status );
9737 /* make sure pthread_detach() isn't just a stub */
9738 #if HAVE_PTHREADS_D4
9739 status = pthread_detach( &t );
9741 status = pthread_detach( t );
9744 #ifdef HAVE_LINUX_THREADS
9745 pthread_kill_other_threads_np();
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9755 ol_cv_pthread_lib_lpthreads=yes
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9760 ol_cv_pthread_lib_lpthreads=no
9771 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9773 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9774 ol_link_pthreads="-lpthreads"
9775 ol_link_threads=posix
9780 if test $ol_link_threads != no ; then
9781 cat >> confdefs.h <<\EOF
9782 #define HAVE_PTHREADS 1
9786 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9788 save_CPPFLAGS="$CPPFLAGS"
9790 LIBS="$LTHREAD_LIBS $LIBS"
9792 for ac_func in sched_yield pthread_yield
9794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9795 echo "configure:9796: checking for $ac_func" >&5
9796 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9802 /* System header to define __stub macros and hopefully few prototypes,
9803 which can conflict with char $ac_func(); below. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9813 /* The GNU C library defines this for functions which it implements
9814 to always fail with ENOSYS. Some functions are actually named
9815 something starting with __ and the normal name is an alias. */
9816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9824 if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9826 eval "ac_cv_func_$ac_func=yes"
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9831 eval "ac_cv_func_$ac_func=no"
9836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9837 echo "$ac_t""yes" 1>&6
9838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9839 cat >> confdefs.h <<EOF
9840 #define $ac_tr_func 1
9844 echo "$ac_t""no" 1>&6
9849 if test $ac_cv_func_sched_yield = no -a \
9850 $ac_cv_func_pthread_yield = no ; then
9851 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9852 echo "configure:9853: checking for sched_yield in -lrt" >&5
9853 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9855 echo $ac_n "(cached) $ac_c" 1>&6
9857 ac_save_LIBS="$LIBS"
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9862 /* Override any gcc2 internal prototype to avoid an error. */
9863 /* We use char because int might match the return type of a gcc2
9864 builtin and then its argument prototype would still apply. */
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 eval "ac_cv_lib_$ac_lib_var=yes"
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 eval "ac_cv_lib_$ac_lib_var=no"
9881 LIBS="$ac_save_LIBS"
9884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9885 echo "$ac_t""yes" 1>&6
9886 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9887 cat >> confdefs.h <<\EOF
9888 #define HAVE_SCHED_YIELD 1
9891 ac_cv_func_sched_yield=yes
9893 echo "$ac_t""no" 1>&6
9894 ac_cv_func_sched_yield=no
9898 if test $ac_cv_func_sched_yield = no -a \
9899 $ac_cv_func_pthread_yield = no ; then
9900 for ac_func in thr_yield
9902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9903 echo "configure:9904: checking for $ac_func" >&5
9904 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9905 echo $ac_n "(cached) $ac_c" 1>&6
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char $ac_func(); below. */
9913 /* Override any gcc2 internal prototype to avoid an error. */
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934 eval "ac_cv_func_$ac_func=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_func_$ac_func=no"
9944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9945 echo "$ac_t""yes" 1>&6
9946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9947 cat >> confdefs.h <<EOF
9948 #define $ac_tr_func 1
9952 echo "$ac_t""no" 1>&6
9957 if test $ac_cv_func_sched_yield = no -a \
9958 $ac_cv_func_pthread_yield = no -a \
9959 "$ac_cv_func_thr_yield" = no ; then
9960 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9963 for ac_func in pthread_kill pthread_rwlock_destroy
9965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9966 echo "configure:9967: checking for $ac_func" >&5
9967 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char $ac_func(); below. */
9976 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9984 /* The GNU C library defines this for functions which it implements
9985 to always fail with ENOSYS. Some functions are actually named
9986 something starting with __ and the normal name is an alias. */
9987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9995 if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9997 eval "ac_cv_func_$ac_func=yes"
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10002 eval "ac_cv_func_$ac_func=no"
10007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10010 cat >> confdefs.h <<EOF
10011 #define $ac_tr_func 1
10015 echo "$ac_t""no" 1>&6
10020 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10021 echo "configure:10022: checking for pthread_detach with <pthread.h>" >&5
10022 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10030 #include <pthread.h>
10032 #define NULL (void*)0
10036 pthread_detach(NULL);
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 ol_cv_func_pthread_detach=yes
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10046 ol_cv_func_pthread_detach=no
10052 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10054 if test $ol_cv_func_pthread_detach = no ; then
10055 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10058 cat >> confdefs.h <<\EOF
10059 #define HAVE_PTHREAD_DETACH 1
10064 pthread_setconcurrency \
10065 pthread_getconcurrency \
10066 thr_setconcurrency \
10067 thr_getconcurrency \
10070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10071 echo "configure:10072: checking for $ac_func" >&5
10072 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 /* System header to define __stub macros and hopefully few prototypes,
10079 which can conflict with char $ac_func(); below. */
10080 #include <assert.h>
10081 /* Override any gcc2 internal prototype to avoid an error. */
10082 /* We use char because int might match the return type of a gcc2
10083 builtin and then its argument prototype would still apply. */
10089 /* The GNU C library defines this for functions which it implements
10090 to always fail with ENOSYS. Some functions are actually named
10091 something starting with __ and the normal name is an alias. */
10092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10100 if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10102 eval "ac_cv_func_$ac_func=yes"
10104 echo "configure: failed program was:" >&5
10105 cat conftest.$ac_ext >&5
10107 eval "ac_cv_func_$ac_func=no"
10112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10115 cat >> confdefs.h <<EOF
10116 #define $ac_tr_func 1
10120 echo "$ac_t""no" 1>&6
10126 for ac_func in pthread_kill_other_threads_np
10128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10129 echo "configure:10130: checking for $ac_func" >&5
10130 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char $ac_func(); below. */
10138 #include <assert.h>
10139 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10147 /* The GNU C library defines this for functions which it implements
10148 to always fail with ENOSYS. Some functions are actually named
10149 something starting with __ and the normal name is an alias. */
10150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10158 if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10160 eval "ac_cv_func_$ac_func=yes"
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 eval "ac_cv_func_$ac_func=no"
10170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10171 echo "$ac_t""yes" 1>&6
10172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10173 cat >> confdefs.h <<EOF
10174 #define $ac_tr_func 1
10178 echo "$ac_t""no" 1>&6
10182 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10183 echo "configure:10184: checking for LinuxThreads implementation" >&5
10184 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10187 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10190 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10195 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10196 echo "configure:10197: checking for LinuxThreads consistency" >&5
10197 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10198 echo $ac_n "(cached) $ac_c" 1>&6
10201 if test $ol_cv_header_linux_threads = yes -a \
10202 $ol_cv_sys_linux_threads = yes; then
10203 ol_cv_linux_threads=yes
10204 elif test $ol_cv_header_linux_threads = no -a \
10205 $ol_cv_sys_linux_threads = no; then
10206 ol_cv_linux_threads=no
10208 ol_cv_linux_threads=error
10213 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10216 if test $ol_cv_linux_threads = error; then
10217 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10220 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10221 echo "configure:10222: checking if pthread_create() works" >&5
10222 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10223 echo $ac_n "(cached) $ac_c" 1>&6
10226 if test "$cross_compiling" = yes; then
10227 ol_cv_pthread_create_works=yes
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 /* pthread test headers */
10233 #include <pthread.h>
10235 #define NULL (void*)0
10238 static void *task(p)
10241 return (void *) (p == NULL);
10245 int main(argc, argv)
10250 /* pthread test function */
10253 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10254 /* This system (e.g. AIX) defaults detached; must override */
10255 pthread_attr_t attr;
10257 status = pthread_attr_init(&attr);
10258 if( status ) exit( status );
10260 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10261 if( status ) exit( status );
10265 #if HAVE_PTHREADS_D4
10266 #define ATTR pthread_attr_default
10271 /* make sure pthread_create() isn't just a stub */
10272 status = pthread_create(&t, ATTR, task, NULL);
10273 if( status ) exit( status );
10275 /* make sure pthread_detach() isn't just a stub */
10276 #if HAVE_PTHREADS_D4
10277 status = pthread_detach( &t );
10279 status = pthread_detach( t );
10282 #ifdef HAVE_LINUX_THREADS
10283 pthread_kill_other_threads_np();
10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10293 ol_cv_pthread_create_works=yes
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10298 ol_cv_pthread_create_works=no
10305 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10307 if test $ol_cv_pthread_create_works = no ; then
10308 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10311 if test $ol_with_yielding_select = auto ; then
10312 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10313 echo "configure:10314: checking if select yields when using pthreads" >&5
10314 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
10318 if test "$cross_compiling" = yes; then
10319 ol_cv_pthread_select_yields=cross
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10325 #include <sys/types.h>
10326 #include <sys/time.h>
10327 #include <unistd.h>
10328 #include <pthread.h>
10330 #define NULL (void*) 0
10333 static int fildes[2];
10335 static void *task(p)
10347 FD_SET(fildes[0], &rfds);
10349 /* we're not interested in any fds */
10350 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10357 exit(0); /* if we exit here, the select blocked the whole process */
10360 int main(argc, argv)
10366 /* create a pipe to select */
10367 if(pipe(&fildes[0])) {
10372 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10373 (void) pthread_setconcurrency(2);
10375 #ifdef HAVE_THR_SETCONCURRENCY
10376 /* Set Solaris LWP concurrency to 2 */
10377 thr_setconcurrency(2);
10381 #if HAVE_PTHREADS_D4
10382 pthread_create(&t, pthread_attr_default, task, NULL);
10384 pthread_create(&t, NULL, task, NULL);
10387 #if HAVE_SCHED_YIELD
10388 sched_yield(); /* make sure task runs first */
10390 #ifdef HAVE_PTHREAD_YIELD
10391 pthread_yield(); /* make sure task runs first */
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10400 ol_cv_pthread_select_yields=no
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 ol_cv_pthread_select_yields=yes
10412 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10414 if test $ol_cv_pthread_select_yields = cross ; then
10415 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10418 if test $ol_cv_pthread_select_yields = yes ; then
10419 ol_with_yielding_select=yes
10423 CPPFLAGS="$save_CPPFLAGS"
10426 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10430 if test $ol_with_threads = posix ; then
10431 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10435 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10436 -o $ol_with_threads = mach ; then
10438 for ac_hdr in mach/cthreads.h
10440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10442 echo "configure:10443: checking for $ac_hdr" >&5
10443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10452 { (eval echo configure:10453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10454 if test -z "$ac_err"; then
10456 eval "ac_cv_header_$ac_safe=yes"
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 eval "ac_cv_header_$ac_safe=no"
10466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10469 cat >> confdefs.h <<EOF
10470 #define $ac_tr_hdr 1
10474 echo "$ac_t""no" 1>&6
10478 if test $ac_cv_header_mach_cthreads_h = yes ; then
10479 ol_with_threads=found
10481 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10482 echo "configure:10483: checking for cthread_fork" >&5
10483 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 /* System header to define __stub macros and hopefully few prototypes,
10490 which can conflict with char cthread_fork(); below. */
10491 #include <assert.h>
10492 /* Override any gcc2 internal prototype to avoid an error. */
10493 /* We use char because int might match the return type of a gcc2
10494 builtin and then its argument prototype would still apply. */
10495 char cthread_fork();
10500 /* The GNU C library defines this for functions which it implements
10501 to always fail with ENOSYS. Some functions are actually named
10502 something starting with __ and the normal name is an alias. */
10503 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 eval "ac_cv_func_cthread_fork=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 eval "ac_cv_func_cthread_fork=no"
10523 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10524 echo "$ac_t""yes" 1>&6
10525 ol_link_threads=yes
10527 echo "$ac_t""no" 1>&6
10531 if test $ol_link_threads = no ; then
10532 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10533 echo "configure:10534: checking for cthread_fork with -all_load" >&5
10534 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10535 echo $ac_n "(cached) $ac_c" 1>&6
10539 LIBS="-all_load $LIBS"
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <mach/cthreads.h>
10546 cthread_fork((void *)0, (void *)0);
10550 if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10552 ol_cv_cthread_all_load=yes
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10557 ol_cv_cthread_all_load=no
10564 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10566 if test $ol_cv_cthread_all_load = yes ; then
10567 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10568 ol_link_threads=mach
10572 if test $ol_link_threads != no ; then
10573 : check for cthread specific functionality here
10574 cat >> confdefs.h <<\EOF
10575 #define HAVE_MACH_CTHREADS 1
10579 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10583 if test $ol_with_threads = mach ; then
10584 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10588 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10589 -o $ol_with_threads = pth ; then
10591 for ac_hdr in pth.h
10593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10595 echo "configure:10596: checking for $ac_hdr" >&5
10596 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10597 echo $ac_n "(cached) $ac_c" 1>&6
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10605 { (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10607 if test -z "$ac_err"; then
10609 eval "ac_cv_header_$ac_safe=yes"
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 eval "ac_cv_header_$ac_safe=no"
10619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10620 echo "$ac_t""yes" 1>&6
10621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10622 cat >> confdefs.h <<EOF
10623 #define $ac_tr_hdr 1
10627 echo "$ac_t""no" 1>&6
10632 if test $ac_cv_header_pth_h = yes ; then
10633 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10634 echo "configure:10635: checking for pth_version in -lpth" >&5
10635 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10639 ac_save_LIBS="$LIBS"
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10644 /* Override any gcc2 internal prototype to avoid an error. */
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647 char pth_version();
10653 if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10655 eval "ac_cv_lib_$ac_lib_var=yes"
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10660 eval "ac_cv_lib_$ac_lib_var=no"
10663 LIBS="$ac_save_LIBS"
10666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10667 echo "$ac_t""yes" 1>&6
10670 echo "$ac_t""no" 1>&6
10675 if test $have_pth = yes ; then
10676 cat >> confdefs.h <<\EOF
10677 #define HAVE_GNU_PTH 1
10680 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10681 ol_link_threads=pth
10683 if test $ol_with_yielding_select = auto ; then
10684 ol_with_yielding_select=yes
10690 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10691 -o $ol_with_threads = lwp ; then
10693 for ac_hdr in thread.h synch.h
10695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10697 echo "configure:10698: checking for $ac_hdr" >&5
10698 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10701 cat > conftest.$ac_ext <<EOF
10702 #line 10703 "configure"
10703 #include "confdefs.h"
10706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10707 { (eval echo configure:10708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10709 if test -z "$ac_err"; then
10711 eval "ac_cv_header_$ac_safe=yes"
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10717 eval "ac_cv_header_$ac_safe=no"
10721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10722 echo "$ac_t""yes" 1>&6
10723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10724 cat >> confdefs.h <<EOF
10725 #define $ac_tr_hdr 1
10729 echo "$ac_t""no" 1>&6
10733 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10734 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10735 echo "configure:10736: checking for thr_create in -lthread" >&5
10736 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10740 ac_save_LIBS="$LIBS"
10741 LIBS="-lthread $LIBS"
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 eval "ac_cv_lib_$ac_lib_var=yes"
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10761 eval "ac_cv_lib_$ac_lib_var=no"
10764 LIBS="$ac_save_LIBS"
10767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10768 echo "$ac_t""yes" 1>&6
10771 echo "$ac_t""no" 1>&6
10776 if test $have_thr = yes ; then
10777 cat >> confdefs.h <<\EOF
10781 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10782 ol_link_threads=thr
10784 if test $ol_with_yielding_select = auto ; then
10785 ol_with_yielding_select=yes
10789 thr_setconcurrency \
10790 thr_getconcurrency \
10793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10794 echo "configure:10795: checking for $ac_func" >&5
10795 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 /* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char $ac_func(); below. */
10803 #include <assert.h>
10804 /* Override any gcc2 internal prototype to avoid an error. */
10805 /* We use char because int might match the return type of a gcc2
10806 builtin and then its argument prototype would still apply. */
10812 /* The GNU C library defines this for functions which it implements
10813 to always fail with ENOSYS. Some functions are actually named
10814 something starting with __ and the normal name is an alias. */
10815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10825 eval "ac_cv_func_$ac_func=yes"
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 eval "ac_cv_func_$ac_func=no"
10835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10836 echo "$ac_t""yes" 1>&6
10837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10838 cat >> confdefs.h <<EOF
10839 #define $ac_tr_func 1
10843 echo "$ac_t""no" 1>&6
10850 for ac_hdr in lwp/lwp.h
10852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10854 echo "configure:10855: checking for $ac_hdr" >&5
10855 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10856 echo $ac_n "(cached) $ac_c" 1>&6
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10864 { (eval echo configure:10865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10866 if test -z "$ac_err"; then
10868 eval "ac_cv_header_$ac_safe=yes"
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10874 eval "ac_cv_header_$ac_safe=no"
10878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10879 echo "$ac_t""yes" 1>&6
10880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10881 cat >> confdefs.h <<EOF
10882 #define $ac_tr_hdr 1
10886 echo "$ac_t""no" 1>&6
10890 if test $ac_cv_header_lwp_lwp_h = yes ; then
10891 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10892 echo "configure:10893: checking for lwp_create in -llwp" >&5
10893 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10894 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10897 ac_save_LIBS="$LIBS"
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10913 eval "ac_cv_lib_$ac_lib_var=yes"
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 eval "ac_cv_lib_$ac_lib_var=no"
10921 LIBS="$ac_save_LIBS"
10924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10925 echo "$ac_t""yes" 1>&6
10928 echo "$ac_t""no" 1>&6
10933 if test $have_lwp = yes ; then
10934 cat >> confdefs.h <<\EOF
10938 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10939 ol_link_threads=lwp
10941 if test $ol_with_yielding_select = auto ; then
10942 ol_with_yielding_select=no
10948 if test $ol_with_yielding_select = yes ; then
10949 cat >> confdefs.h <<\EOF
10950 #define HAVE_YIELDING_SELECT 1
10955 if test $ol_with_threads = manual ; then
10956 ol_link_threads=yes
10958 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10960 for ac_hdr in pthread.h sched.h
10962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10964 echo "configure:10965: checking for $ac_hdr" >&5
10965 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10974 { (eval echo configure:10975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10976 if test -z "$ac_err"; then
10978 eval "ac_cv_header_$ac_safe=yes"
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 eval "ac_cv_header_$ac_safe=no"
10988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10989 echo "$ac_t""yes" 1>&6
10990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10991 cat >> confdefs.h <<EOF
10992 #define $ac_tr_hdr 1
10996 echo "$ac_t""no" 1>&6
11000 for ac_func in sched_yield pthread_yield
11002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11003 echo "configure:11004: checking for $ac_func" >&5
11004 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11007 cat > conftest.$ac_ext <<EOF
11008 #line 11009 "configure"
11009 #include "confdefs.h"
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func(); below. */
11012 #include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error. */
11014 /* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11032 if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034 eval "ac_cv_func_$ac_func=yes"
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11039 eval "ac_cv_func_$ac_func=no"
11044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11047 cat >> confdefs.h <<EOF
11048 #define $ac_tr_func 1
11052 echo "$ac_t""no" 1>&6
11057 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11058 echo "configure:11059: checking for LinuxThreads pthread.h" >&5
11059 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <pthread.h>
11067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11068 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11070 ol_cv_header_linux_threads=yes
11073 ol_cv_header_linux_threads=no
11080 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11081 if test $ol_cv_header_linux_threads = yes; then
11082 cat >> confdefs.h <<\EOF
11083 #define HAVE_LINUX_THREADS 1
11089 for ac_hdr in mach/cthreads.h
11091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11093 echo "configure:11094: checking for $ac_hdr" >&5
11094 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11095 echo $ac_n "(cached) $ac_c" 1>&6
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11103 { (eval echo configure:11104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11105 if test -z "$ac_err"; then
11107 eval "ac_cv_header_$ac_safe=yes"
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11113 eval "ac_cv_header_$ac_safe=no"
11117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11120 cat >> confdefs.h <<EOF
11121 #define $ac_tr_hdr 1
11125 echo "$ac_t""no" 1>&6
11129 for ac_hdr in lwp/lwp.h
11131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11133 echo "configure:11134: checking for $ac_hdr" >&5
11134 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11143 { (eval echo configure:11144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11145 if test -z "$ac_err"; then
11147 eval "ac_cv_header_$ac_safe=yes"
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11153 eval "ac_cv_header_$ac_safe=no"
11157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11158 echo "$ac_t""yes" 1>&6
11159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11160 cat >> confdefs.h <<EOF
11161 #define $ac_tr_hdr 1
11165 echo "$ac_t""no" 1>&6
11169 for ac_hdr in thread.h synch.h
11171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11173 echo "configure:11174: checking for $ac_hdr" >&5
11174 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11183 { (eval echo configure:11184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11185 if test -z "$ac_err"; then
11187 eval "ac_cv_header_$ac_safe=yes"
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 eval "ac_cv_header_$ac_safe=no"
11197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11198 echo "$ac_t""yes" 1>&6
11199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11200 cat >> confdefs.h <<EOF
11201 #define $ac_tr_hdr 1
11205 echo "$ac_t""no" 1>&6
11211 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11212 cat >> confdefs.h <<\EOF
11213 #define REENTRANT 1
11216 cat >> confdefs.h <<\EOF
11217 #define _REENTRANT 1
11220 cat >> confdefs.h <<\EOF
11221 #define THREAD_SAFE 1
11224 cat >> confdefs.h <<\EOF
11225 #define _THREAD_SAFE 1
11228 cat >> confdefs.h <<\EOF
11229 #define THREADSAFE 1
11232 cat >> confdefs.h <<\EOF
11233 #define _THREADSAFE 1
11236 cat >> confdefs.h <<\EOF
11237 #define _SGI_MP_SOURCE 1
11241 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11242 echo "configure:11243: checking for thread specific errno" >&5
11243 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11255 if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11257 ol_cv_errno_thread_specific=yes
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 ol_cv_errno_thread_specific=no
11268 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11270 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11271 echo "configure:11272: checking for thread specific h_errno" >&5
11272 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11284 if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11286 ol_cv_h_errno_thread_specific=yes
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11291 ol_cv_h_errno_thread_specific=no
11297 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11299 if test $ol_cv_errno_thread_specific != yes \
11300 -o $ol_cv_h_errno_thread_specific != yes ; then
11301 LIBS="$LTHREAD_LIBS $LIBS"
11307 if test $ol_link_threads = no ; then
11308 if test $ol_with_threads = yes ; then
11309 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11312 if test $ol_with_threads = auto ; then
11313 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11317 cat >> confdefs.h <<\EOF
11318 #define NO_THREADS 1
11324 if test $ol_link_threads != no ; then
11325 cat >> confdefs.h <<\EOF
11326 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11333 if test $ol_with_ldbm_api = auto \
11334 -o $ol_with_ldbm_api = berkeley \
11335 -o $ol_with_ldbm_api = bcompat ; then
11337 if test $ol_with_ldbm_api = bcompat; then \
11338 ol_cv_berkeley_db=no
11339 for ac_hdr in db_185.h db.h
11341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11343 echo "configure:11344: checking for $ac_hdr" >&5
11344 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11355 if test -z "$ac_err"; then
11357 eval "ac_cv_header_$ac_safe=yes"
11360 echo "configure: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11363 eval "ac_cv_header_$ac_safe=no"
11367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11368 echo "$ac_t""yes" 1>&6
11369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11370 cat >> confdefs.h <<EOF
11371 #define $ac_tr_hdr 1
11375 echo "$ac_t""no" 1>&6
11379 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11380 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11381 echo "configure:11382: checking if Berkeley DB header compatibility" >&5
11382 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11386 cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11391 # include <db_185.h>
11396 /* this check could be improved */
11397 #ifndef DB_VERSION_MAJOR
11398 # define DB_VERSION_MAJOR 1
11401 #if DB_VERSION_MAJOR == 1
11406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11407 egrep "__db_version_1" >/dev/null 2>&1; then
11409 ol_cv_header_db1=yes
11412 ol_cv_header_db1=no
11418 echo "$ac_t""$ol_cv_header_db1" 1>&6
11420 if test ol_cv_header_db1=yes ; then
11422 if test $ol_cv_lib_db = no ; then
11423 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11424 echo "configure:11425: checking for Berkeley DB link (default)" >&5
11425 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11431 LIBS="$ol_DB_LIB $LIBS"
11433 cat > conftest.$ac_ext <<EOF
11434 #line 11435 "configure"
11435 #include "confdefs.h"
11437 #ifdef HAVE_DB_185_H
11438 # include <db_185.h>
11443 #ifndef DB_VERSION_MAJOR
11444 # define DB_VERSION_MAJOR 1
11448 #define NULL ((void*)0)
11453 #if DB_VERSION_MAJOR > 2
11454 db_env_create( NULL, 0 );
11455 #elif DB_VERSION_MAJOR > 1
11456 db_appexit( NULL );
11458 (void) dbopen( NULL, 0, 0, 0, NULL);
11463 if { (eval echo configure:11464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11478 echo "$ac_t""$ol_cv_db_none" 1>&6
11480 if test $ol_cv_db_none = yes ; then
11485 if test $ol_cv_lib_db = no ; then
11486 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11487 echo "configure:11488: checking for Berkeley DB link (-ldb)" >&5
11488 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11494 LIBS="$ol_DB_LIB $LIBS"
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11500 #ifdef HAVE_DB_185_H
11501 # include <db_185.h>
11506 #ifndef DB_VERSION_MAJOR
11507 # define DB_VERSION_MAJOR 1
11511 #define NULL ((void*)0)
11516 #if DB_VERSION_MAJOR > 2
11517 db_env_create( NULL, 0 );
11518 #elif DB_VERSION_MAJOR > 1
11519 db_appexit( NULL );
11521 (void) dbopen( NULL, 0, 0, 0, NULL);
11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11541 echo "$ac_t""$ol_cv_db_db" 1>&6
11543 if test $ol_cv_db_db = yes ; then
11548 if test $ol_cv_lib_db = no ; then
11549 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11550 echo "configure:11551: checking for Berkeley DB link (-ldb3)" >&5
11551 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11557 LIBS="$ol_DB_LIB $LIBS"
11559 cat > conftest.$ac_ext <<EOF
11560 #line 11561 "configure"
11561 #include "confdefs.h"
11563 #ifdef HAVE_DB_185_H
11564 # include <db_185.h>
11569 #ifndef DB_VERSION_MAJOR
11570 # define DB_VERSION_MAJOR 1
11574 #define NULL ((void*)0)
11579 #if DB_VERSION_MAJOR > 2
11580 db_env_create( NULL, 0 );
11581 #elif DB_VERSION_MAJOR > 1
11582 db_appexit( NULL );
11584 (void) dbopen( NULL, 0, 0, 0, NULL);
11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11604 echo "$ac_t""$ol_cv_db_db3" 1>&6
11606 if test $ol_cv_db_db3 = yes ; then
11611 if test $ol_cv_lib_db = no ; then
11612 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11613 echo "configure:11614: checking for Berkeley DB link (-ldb2)" >&5
11614 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11615 echo $ac_n "(cached) $ac_c" 1>&6
11620 LIBS="$ol_DB_LIB $LIBS"
11622 cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11626 #ifdef HAVE_DB_185_H
11627 # include <db_185.h>
11632 #ifndef DB_VERSION_MAJOR
11633 # define DB_VERSION_MAJOR 1
11637 #define NULL ((void*)0)
11642 #if DB_VERSION_MAJOR > 2
11643 db_env_create( NULL, 0 );
11644 #elif DB_VERSION_MAJOR > 1
11645 db_appexit( NULL );
11647 (void) dbopen( NULL, 0, 0, 0, NULL);
11652 if { (eval echo configure:11653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11667 echo "$ac_t""$ol_cv_db_db2" 1>&6
11669 if test $ol_cv_db_db2 = yes ; then
11674 if test $ol_cv_lib_db = no ; then
11675 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11676 echo "configure:11677: checking for Berkeley DB link (-ldb1)" >&5
11677 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11683 LIBS="$ol_DB_LIB $LIBS"
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11689 #ifdef HAVE_DB_185_H
11690 # include <db_185.h>
11695 #ifndef DB_VERSION_MAJOR
11696 # define DB_VERSION_MAJOR 1
11700 #define NULL ((void*)0)
11705 #if DB_VERSION_MAJOR > 2
11706 db_env_create( NULL, 0 );
11707 #elif DB_VERSION_MAJOR > 1
11708 db_appexit( NULL );
11710 (void) dbopen( NULL, 0, 0, 0, NULL);
11715 if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11730 echo "$ac_t""$ol_cv_db_db1" 1>&6
11732 if test $ol_cv_db_db1 = yes ; then
11738 if test "$ol_cv_lib_db" != no ; then
11739 ol_cv_berkeley_db=yes
11745 ol_cv_berkeley_db=no
11748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11750 echo "configure:11751: checking for $ac_hdr" >&5
11751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11760 { (eval echo configure:11761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11762 if test -z "$ac_err"; then
11764 eval "ac_cv_header_$ac_safe=yes"
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11770 eval "ac_cv_header_$ac_safe=no"
11774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11775 echo "$ac_t""yes" 1>&6
11776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11777 cat >> confdefs.h <<EOF
11778 #define $ac_tr_hdr 1
11782 echo "$ac_t""no" 1>&6
11786 if test $ac_cv_header_db_h = yes; then
11788 if test $ol_cv_lib_db = no ; then
11789 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11790 echo "configure:11791: checking for Berkeley DB link (default)" >&5
11791 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11797 LIBS="$ol_DB_LIB $LIBS"
11799 cat > conftest.$ac_ext <<EOF
11800 #line 11801 "configure"
11801 #include "confdefs.h"
11803 #ifdef HAVE_DB_185_H
11804 # include <db_185.h>
11809 #ifndef DB_VERSION_MAJOR
11810 # define DB_VERSION_MAJOR 1
11814 #define NULL ((void*)0)
11819 #if DB_VERSION_MAJOR > 2
11820 db_env_create( NULL, 0 );
11821 #elif DB_VERSION_MAJOR > 1
11822 db_appexit( NULL );
11824 (void) dbopen( NULL, 0, 0, 0, NULL);
11829 if { (eval echo configure:11830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11833 echo "configure: failed program was:" >&5
11834 cat conftest.$ac_ext >&5
11844 echo "$ac_t""$ol_cv_db_none" 1>&6
11846 if test $ol_cv_db_none = yes ; then
11851 if test $ol_cv_lib_db = no ; then
11852 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11853 echo "configure:11854: checking for Berkeley DB link (-ldb)" >&5
11854 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11855 echo $ac_n "(cached) $ac_c" 1>&6
11860 LIBS="$ol_DB_LIB $LIBS"
11862 cat > conftest.$ac_ext <<EOF
11863 #line 11864 "configure"
11864 #include "confdefs.h"
11866 #ifdef HAVE_DB_185_H
11867 # include <db_185.h>
11872 #ifndef DB_VERSION_MAJOR
11873 # define DB_VERSION_MAJOR 1
11877 #define NULL ((void*)0)
11882 #if DB_VERSION_MAJOR > 2
11883 db_env_create( NULL, 0 );
11884 #elif DB_VERSION_MAJOR > 1
11885 db_appexit( NULL );
11887 (void) dbopen( NULL, 0, 0, 0, NULL);
11892 if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11907 echo "$ac_t""$ol_cv_db_db" 1>&6
11909 if test $ol_cv_db_db = yes ; then
11914 if test $ol_cv_lib_db = no ; then
11915 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11916 echo "configure:11917: checking for Berkeley DB link (-ldb3)" >&5
11917 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11923 LIBS="$ol_DB_LIB $LIBS"
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11929 #ifdef HAVE_DB_185_H
11930 # include <db_185.h>
11935 #ifndef DB_VERSION_MAJOR
11936 # define DB_VERSION_MAJOR 1
11940 #define NULL ((void*)0)
11945 #if DB_VERSION_MAJOR > 2
11946 db_env_create( NULL, 0 );
11947 #elif DB_VERSION_MAJOR > 1
11948 db_appexit( NULL );
11950 (void) dbopen( NULL, 0, 0, 0, NULL);
11955 if { (eval echo configure:11956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11970 echo "$ac_t""$ol_cv_db_db3" 1>&6
11972 if test $ol_cv_db_db3 = yes ; then
11977 if test $ol_cv_lib_db = no ; then
11978 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11979 echo "configure:11980: checking for Berkeley DB link (-ldb2)" >&5
11980 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11981 echo $ac_n "(cached) $ac_c" 1>&6
11986 LIBS="$ol_DB_LIB $LIBS"
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11992 #ifdef HAVE_DB_185_H
11993 # include <db_185.h>
11998 #ifndef DB_VERSION_MAJOR
11999 # define DB_VERSION_MAJOR 1
12003 #define NULL ((void*)0)
12008 #if DB_VERSION_MAJOR > 2
12009 db_env_create( NULL, 0 );
12010 #elif DB_VERSION_MAJOR > 1
12011 db_appexit( NULL );
12013 (void) dbopen( NULL, 0, 0, 0, NULL);
12018 if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 echo "configure: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12033 echo "$ac_t""$ol_cv_db_db2" 1>&6
12035 if test $ol_cv_db_db2 = yes ; then
12040 if test $ol_cv_lib_db = no ; then
12041 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12042 echo "configure:12043: checking for Berkeley DB link (-ldb1)" >&5
12043 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12044 echo $ac_n "(cached) $ac_c" 1>&6
12049 LIBS="$ol_DB_LIB $LIBS"
12051 cat > conftest.$ac_ext <<EOF
12052 #line 12053 "configure"
12053 #include "confdefs.h"
12055 #ifdef HAVE_DB_185_H
12056 # include <db_185.h>
12061 #ifndef DB_VERSION_MAJOR
12062 # define DB_VERSION_MAJOR 1
12066 #define NULL ((void*)0)
12071 #if DB_VERSION_MAJOR > 2
12072 db_env_create( NULL, 0 );
12073 #elif DB_VERSION_MAJOR > 1
12074 db_appexit( NULL );
12076 (void) dbopen( NULL, 0, 0, 0, NULL);
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12096 echo "$ac_t""$ol_cv_db_db1" 1>&6
12098 if test $ol_cv_db_db1 = yes ; then
12104 if test "$ol_cv_lib_db" != no ; then
12105 ol_cv_berkeley_db=yes
12106 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12107 echo "configure:12108: checking for Berkeley DB thread support" >&5
12108 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12113 if test $ol_cv_lib_db != yes ; then
12114 LIBS="$ol_cv_lib_db"
12117 if test "$cross_compiling" = yes; then
12118 ol_cv_berkeley_db_thread=cross
12120 cat > conftest.$ac_ext <<EOF
12121 #line 12122 "configure"
12122 #include "confdefs.h"
12124 #ifdef HAVE_DB_185_H
12130 #define NULL ((void *)0)
12135 u_int32_t flags = DB_CREATE | DB_THREAD;
12137 #if DB_VERSION_MAJOR > 2
12138 DB_ENV *env = NULL;
12140 rc = db_env_create( &env, 0 );
12143 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12144 rc = env->open( env, NULL, flags, 0 );
12146 rc = env->open( env, NULL, NULL, flags, 0 );
12152 memset( &env, '\0', sizeof(env) );
12154 rc = db_appinit( NULL, NULL, &env, flags );
12157 db_appexit( &env );
12160 #if DB_VERSION_MAJOR > 2
12161 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12162 env->remove( env, NULL, DB_FORCE);
12164 env->remove( env, NULL, NULL, DB_FORCE);
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12173 ol_cv_berkeley_db_thread=yes
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12178 ol_cv_berkeley_db_thread=no
12186 if test $ol_cv_berkeley_db_thread != no ; then
12187 cat >> confdefs.h <<\EOF
12188 #define HAVE_BERKELEY_DB_THREAD 1
12195 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12201 if test $ol_cv_berkeley_db != no ; then
12202 cat >> confdefs.h <<\EOF
12203 #define HAVE_BERKELEY_DB 1
12207 ol_link_ldbm=berkeley
12208 ol_with_ldbm_api=db
12210 if test $ol_with_ldbm_type = hash ; then
12211 cat >> confdefs.h <<\EOF
12212 #define LDBM_USE_DBHASH 1
12216 cat >> confdefs.h <<\EOF
12217 #define LDBM_USE_DBBTREE 1
12222 if test $ol_cv_lib_db != yes ; then
12223 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12228 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12229 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12230 ol_with_ldbm_api=none
12233 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12234 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12235 echo "configure:12236: checking for MDBM library" >&5
12236 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12240 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12241 echo "configure:12242: checking for mdbm_set_chain" >&5
12242 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12243 echo $ac_n "(cached) $ac_c" 1>&6
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 /* System header to define __stub macros and hopefully few prototypes,
12249 which can conflict with char mdbm_set_chain(); below. */
12250 #include <assert.h>
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12254 char mdbm_set_chain();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12265 f = mdbm_set_chain;
12270 if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12272 eval "ac_cv_func_mdbm_set_chain=yes"
12274 echo "configure: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12277 eval "ac_cv_func_mdbm_set_chain=no"
12282 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12283 echo "$ac_t""yes" 1>&6
12286 echo "$ac_t""no" 1>&6
12288 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12289 echo "configure:12290: checking for mdbm_set_chain in -lmdbm" >&5
12290 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12294 ac_save_LIBS="$LIBS"
12295 LIBS="-lmdbm $LIBS"
12296 cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure"
12298 #include "confdefs.h"
12299 /* Override any gcc2 internal prototype to avoid an error. */
12300 /* We use char because int might match the return type of a gcc2
12301 builtin and then its argument prototype would still apply. */
12302 char mdbm_set_chain();
12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12310 eval "ac_cv_lib_$ac_lib_var=yes"
12312 echo "configure: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12315 eval "ac_cv_lib_$ac_lib_var=no"
12318 LIBS="$ac_save_LIBS"
12321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12322 echo "$ac_t""yes" 1>&6
12323 ol_cv_lib_mdbm=-lmdbm
12325 echo "$ac_t""no" 1>&6
12336 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12339 for ac_hdr in mdbm.h
12341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12343 echo "configure:12344: checking for $ac_hdr" >&5
12344 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12345 echo $ac_n "(cached) $ac_c" 1>&6
12347 cat > conftest.$ac_ext <<EOF
12348 #line 12349 "configure"
12349 #include "confdefs.h"
12352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12353 { (eval echo configure:12354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12355 if test -z "$ac_err"; then
12357 eval "ac_cv_header_$ac_safe=yes"
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12363 eval "ac_cv_header_$ac_safe=no"
12367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12368 echo "$ac_t""yes" 1>&6
12369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12370 cat >> confdefs.h <<EOF
12371 #define $ac_tr_hdr 1
12375 echo "$ac_t""no" 1>&6
12379 echo $ac_n "checking for db""... $ac_c" 1>&6
12380 echo "configure:12381: checking for db" >&5
12381 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12382 echo $ac_n "(cached) $ac_c" 1>&6
12385 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12393 echo "$ac_t""$ol_cv_mdbm" 1>&6
12394 if test $ol_cv_mdbm = yes ; then
12395 cat >> confdefs.h <<\EOF
12396 #define HAVE_MDBM 1
12402 if test $ol_cv_mdbm = yes ; then
12404 ol_with_ldbm_api=mdbm
12405 if test $ol_cv_lib_mdbm != yes ; then
12406 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12411 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12412 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12413 echo "configure:12414: checking for GDBM library" >&5
12414 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12415 echo $ac_n "(cached) $ac_c" 1>&6
12418 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12419 echo "configure:12420: checking for gdbm_open" >&5
12420 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char gdbm_open(); below. */
12428 #include <assert.h>
12429 /* Override any gcc2 internal prototype to avoid an error. */
12430 /* We use char because int might match the return type of a gcc2
12431 builtin and then its argument prototype would still apply. */
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12448 if { (eval echo configure:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12450 eval "ac_cv_func_gdbm_open=yes"
12452 echo "configure: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12455 eval "ac_cv_func_gdbm_open=no"
12460 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12461 echo "$ac_t""yes" 1>&6
12464 echo "$ac_t""no" 1>&6
12466 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12467 echo "configure:12468: checking for gdbm_open in -lgdbm" >&5
12468 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12470 echo $ac_n "(cached) $ac_c" 1>&6
12472 ac_save_LIBS="$LIBS"
12473 LIBS="-lgdbm $LIBS"
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12477 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12486 if { (eval echo configure:12487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12488 eval "ac_cv_lib_$ac_lib_var=yes"
12490 echo "configure: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12493 eval "ac_cv_lib_$ac_lib_var=no"
12496 LIBS="$ac_save_LIBS"
12499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12500 echo "$ac_t""yes" 1>&6
12501 ol_cv_lib_gdbm=-lgdbm
12503 echo "$ac_t""no" 1>&6
12514 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12517 for ac_hdr in gdbm.h
12519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12521 echo "configure:12522: checking for $ac_hdr" >&5
12522 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12531 { (eval echo configure:12532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12533 if test -z "$ac_err"; then
12535 eval "ac_cv_header_$ac_safe=yes"
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12541 eval "ac_cv_header_$ac_safe=no"
12545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12548 cat >> confdefs.h <<EOF
12549 #define $ac_tr_hdr 1
12553 echo "$ac_t""no" 1>&6
12557 echo $ac_n "checking for db""... $ac_c" 1>&6
12558 echo "configure:12559: checking for db" >&5
12559 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12560 echo $ac_n "(cached) $ac_c" 1>&6
12563 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12571 echo "$ac_t""$ol_cv_gdbm" 1>&6
12572 if test $ol_cv_gdbm = yes ; then
12573 cat >> confdefs.h <<\EOF
12574 #define HAVE_GDBM 1
12580 if test $ol_cv_gdbm = yes ; then
12582 ol_with_ldbm_api=gdbm
12584 if test $ol_cv_lib_gdbm != yes ; then
12585 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12590 if test $ol_with_ldbm_api = ndbm ; then
12591 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12592 echo "configure:12593: checking for NDBM library" >&5
12593 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12594 echo $ac_n "(cached) $ac_c" 1>&6
12597 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12598 echo "configure:12599: checking for dbm_open" >&5
12599 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12600 echo $ac_n "(cached) $ac_c" 1>&6
12602 cat > conftest.$ac_ext <<EOF
12603 #line 12604 "configure"
12604 #include "confdefs.h"
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char dbm_open(); below. */
12607 #include <assert.h>
12608 /* Override any gcc2 internal prototype to avoid an error. */
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12616 /* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 eval "ac_cv_func_dbm_open=yes"
12631 echo "configure: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12634 eval "ac_cv_func_dbm_open=no"
12639 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12640 echo "$ac_t""yes" 1>&6
12643 echo "$ac_t""no" 1>&6
12645 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12646 echo "configure:12647: checking for dbm_open in -lndbm" >&5
12647 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12648 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12651 ac_save_LIBS="$LIBS"
12652 LIBS="-lndbm $LIBS"
12653 cat > conftest.$ac_ext <<EOF
12654 #line 12655 "configure"
12655 #include "confdefs.h"
12656 /* Override any gcc2 internal prototype to avoid an error. */
12657 /* We use char because int might match the return type of a gcc2
12658 builtin and then its argument prototype would still apply. */
12665 if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12667 eval "ac_cv_lib_$ac_lib_var=yes"
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12672 eval "ac_cv_lib_$ac_lib_var=no"
12675 LIBS="$ac_save_LIBS"
12678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12679 echo "$ac_t""yes" 1>&6
12680 ol_cv_lib_ndbm=-lndbm
12682 echo "$ac_t""no" 1>&6
12684 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12685 echo "configure:12686: checking for dbm_open in -ldbm" >&5
12686 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12687 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12688 echo $ac_n "(cached) $ac_c" 1>&6
12690 ac_save_LIBS="$LIBS"
12692 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 /* Override any gcc2 internal prototype to avoid an error. */
12696 /* We use char because int might match the return type of a gcc2
12697 builtin and then its argument prototype would still apply. */
12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12706 eval "ac_cv_lib_$ac_lib_var=yes"
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12711 eval "ac_cv_lib_$ac_lib_var=no"
12714 LIBS="$ac_save_LIBS"
12717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12718 echo "$ac_t""yes" 1>&6
12719 ol_cv_lib_ndbm=-ldbm
12721 echo "$ac_t""no" 1>&6
12734 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12737 for ac_hdr in ndbm.h
12739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12741 echo "configure:12742: checking for $ac_hdr" >&5
12742 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12745 cat > conftest.$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12751 { (eval echo configure:12752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12753 if test -z "$ac_err"; then
12755 eval "ac_cv_header_$ac_safe=yes"
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12761 eval "ac_cv_header_$ac_safe=no"
12765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12766 echo "$ac_t""yes" 1>&6
12767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12768 cat >> confdefs.h <<EOF
12769 #define $ac_tr_hdr 1
12773 echo "$ac_t""no" 1>&6
12777 echo $ac_n "checking for db""... $ac_c" 1>&6
12778 echo "configure:12779: checking for db" >&5
12779 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12780 echo $ac_n "(cached) $ac_c" 1>&6
12783 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12791 echo "$ac_t""$ol_cv_ndbm" 1>&6
12792 if test $ol_cv_ndbm = yes ; then
12793 cat >> confdefs.h <<\EOF
12794 #define HAVE_NDBM 1
12800 if test $ol_cv_ndbm = yes ; then
12802 ol_with_ldbm_api=ndbm
12804 if test $ol_cv_lib_ndbm != yes ; then
12805 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12810 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12811 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12812 if test $ol_enable_ldbm = yes ; then
12813 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12816 echo "configure: warning: disabling LDBM" 1>&2
12820 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12821 LINK_BINS_DYNAMIC="yes"
12823 LINK_BINS_DYNAMIC="no"
12826 if test $ol_enable_wrappers != no ; then
12827 for ac_hdr in tcpd.h
12829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12831 echo "configure:12832: checking for $ac_hdr" >&5
12832 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12837 "configure"
12837 #include "confdefs.h"
12840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12841 { (eval echo configure:12842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12843 if test -z "$ac_err"; then
12845 eval "ac_cv_header_$ac_safe=yes"
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12851 eval "ac_cv_header_$ac_safe=no"
12855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12856 echo "$ac_t""yes" 1>&6
12857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12858 cat >> confdefs.h <<EOF
12859 #define $ac_tr_hdr 1
12863 echo "$ac_t""no" 1>&6
12868 if test $ac_cv_header_tcpd_h != yes ; then
12871 cat > conftest.$ac_ext <<EOF
12872 #line 12873 "configure"
12873 #include "confdefs.h"
12875 int allow_severity = 0;
12876 int deny_severity = 0;
12882 if { (eval echo configure:12883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12886 echo "configure: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12894 if test $have_wrappers = yes ; then
12895 cat >> confdefs.h <<\EOF
12896 #define HAVE_TCPD 1
12901 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12902 echo "configure:12903: checking for main in -lnsl" >&5
12903 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12905 echo $ac_n "(cached) $ac_c" 1>&6
12907 ac_save_LIBS="$LIBS"
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12917 if { (eval echo configure:12918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12919 eval "ac_cv_lib_$ac_lib_var=yes"
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 eval "ac_cv_lib_$ac_lib_var=no"
12927 LIBS="$ac_save_LIBS"
12930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12931 echo "$ac_t""yes" 1>&6
12932 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12933 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12934 cat >> confdefs.h <<EOF
12935 #define $ac_tr_lib 1
12941 echo "$ac_t""no" 1>&6
12945 echo "configure: warning: could not find -lwrap" 1>&2
12946 if test $ol_enable_wrappers = yes ; then
12947 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12950 echo "configure: warning: disabling wrappers support" 1>&2
12951 ol_enable_wrappers=no
12956 if test $ol_enable_syslog != no ; then
12957 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12958 echo "configure:12959: checking for openlog" >&5
12959 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12960 echo $ac_n "(cached) $ac_c" 1>&6
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 /* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char openlog(); below. */
12967 #include <assert.h>
12968 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined (__stub_openlog) || defined (__stub___openlog)
12987 if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12989 eval "ac_cv_func_openlog=yes"
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12994 eval "ac_cv_func_openlog=no"
12999 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13000 echo "$ac_t""yes" 1>&6
13003 echo "$ac_t""no" 1>&6
13006 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13007 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13009 ol_enable_syslog=$ac_cv_func_openlog
13013 if test $ol_enable_sql != no ; then
13014 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13015 echo "configure:13016: checking for SQLDriverConnect in -liodbc" >&5
13016 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13020 ac_save_LIBS="$LIBS"
13021 LIBS="-liodbc $LIBS"
13022 cat > conftest.$ac_ext <<EOF
13023 #line 13024 "configure"
13024 #include "confdefs.h"
13025 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13028 char SQLDriverConnect();
13034 if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13036 eval "ac_cv_lib_$ac_lib_var=yes"
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13041 eval "ac_cv_lib_$ac_lib_var=no"
13044 LIBS="$ac_save_LIBS"
13047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13048 echo "$ac_t""yes" 1>&6
13051 echo "$ac_t""no" 1>&6
13055 if test $have_iodbc = yes ; then
13056 ol_link_sql="-liodbc"
13058 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13059 echo "configure:13060: checking for SQLDriverConnect in -lodbc" >&5
13060 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13061 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13062 echo $ac_n "(cached) $ac_c" 1>&6
13064 ac_save_LIBS="$LIBS"
13065 LIBS="-lodbc $LIBS"
13066 cat > conftest.$ac_ext <<EOF
13067 #line 13068 "configure"
13068 #include "confdefs.h"
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char SQLDriverConnect();
13078 if { (eval echo configure:13079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13080 eval "ac_cv_lib_$ac_lib_var=yes"
13082 echo "configure: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13085 eval "ac_cv_lib_$ac_lib_var=no"
13088 LIBS="$ac_save_LIBS"
13091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13092 echo "$ac_t""yes" 1>&6
13095 echo "$ac_t""no" 1>&6
13099 if test $have_odbc = yes ; then
13100 ol_link_sql="-lodbc"
13104 if test $ol_link_sql != no ; then
13105 SLAPD_SQL_LIBS="$ol_link_sql"
13107 elif test $ol_enable_sql != auto ; then
13108 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13113 for ac_hdr in termcap.h ncurses.h
13115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13117 echo "configure:13118: checking for $ac_hdr" >&5
13118 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13119 echo $ac_n "(cached) $ac_c" 1>&6
13121 cat > conftest.$ac_ext <<EOF
13122 #line 13123 "configure"
13123 #include "confdefs.h"
13126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13127 { (eval echo configure:13128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13129 if test -z "$ac_err"; then
13131 eval "ac_cv_header_$ac_safe=yes"
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13137 eval "ac_cv_header_$ac_safe=no"
13141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13142 echo "$ac_t""yes" 1>&6
13143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13144 cat >> confdefs.h <<EOF
13145 #define $ac_tr_hdr 1
13149 echo "$ac_t""no" 1>&6
13154 if test $ol_link_termcap = no ; then
13155 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13156 echo "configure:13157: checking for tputs in -ltermcap" >&5
13157 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13159 echo $ac_n "(cached) $ac_c" 1>&6
13161 ac_save_LIBS="$LIBS"
13162 LIBS="-ltermcap $LIBS"
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 eval "ac_cv_lib_$ac_lib_var=yes"
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13182 eval "ac_cv_lib_$ac_lib_var=no"
13185 LIBS="$ac_save_LIBS"
13188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13189 echo "$ac_t""yes" 1>&6
13192 echo "$ac_t""no" 1>&6
13196 if test $have_termcap = yes ; then
13197 cat >> confdefs.h <<\EOF
13198 #define HAVE_TERMCAP 1
13201 ol_link_termcap=yes
13202 TERMCAP_LIBS=-ltermcap
13206 if test $ol_link_termcap = no ; then
13207 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13208 echo "configure:13209: checking for initscr in -lncurses" >&5
13209 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13210 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13211 echo $ac_n "(cached) $ac_c" 1>&6
13213 ac_save_LIBS="$LIBS"
13214 LIBS="-lncurses $LIBS"
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* Override any gcc2 internal prototype to avoid an error. */
13219 /* We use char because int might match the return type of a gcc2
13220 builtin and then its argument prototype would still apply. */
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13229 eval "ac_cv_lib_$ac_lib_var=yes"
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13234 eval "ac_cv_lib_$ac_lib_var=no"
13237 LIBS="$ac_save_LIBS"
13240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13244 echo "$ac_t""no" 1>&6
13248 if test $have_ncurses = yes ; then
13249 cat >> confdefs.h <<\EOF
13250 #define HAVE_NCURSES 1
13253 ol_link_termcap=yes
13254 TERMCAP_LIBS=-lncurses
13258 if test $ol_link_termcap = no ; then
13259 cat >> confdefs.h <<\EOF
13260 #define NO_TERMCAP 1
13268 if test $ol_with_cyrus_sasl != no ; then
13269 for ac_hdr in sasl.h
13271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $ac_hdr" >&5
13274 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13277 cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13283 { (eval echo configure:13284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13285 if test -z "$ac_err"; then
13287 eval "ac_cv_header_$ac_safe=yes"
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13293 eval "ac_cv_header_$ac_safe=no"
13297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13298 echo "$ac_t""yes" 1>&6
13299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13300 cat >> confdefs.h <<EOF
13301 #define $ac_tr_hdr 1
13305 echo "$ac_t""no" 1>&6
13310 if test $ac_cv_header_sasl_h = yes ; then
13311 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13312 echo "configure:13313: checking for sasl_client_init in -lsasl" >&5
13313 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13317 ac_save_LIBS="$LIBS"
13318 LIBS="-lsasl $LIBS"
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char sasl_client_init();
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13338 eval "ac_cv_lib_$ac_lib_var=no"
13341 LIBS="$ac_save_LIBS"
13344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 have_cyrus_sasl=yes
13348 echo "$ac_t""no" 1>&6
13353 if test $have_cyrus_sasl != no ; then
13355 cat >> confdefs.h <<\EOF
13356 #define HAVE_CYRUS_SASL 1
13363 if test $ol_link_sasl = no ; then
13364 if test $ol_with_cyrus_sasl != auto ; then
13365 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13367 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13368 echo "configure: warning: SASL authentication not supported!" 1>&2
13369 if test $ol_link_tls = no ; then
13370 echo "configure: warning: Strong authentication not supported!" 1>&2
13374 elif test $ol_enable_spasswd != no ; then
13375 ol_link_spasswd=yes
13379 echo "configure: warning: SASL authentication not supported!" 1>&2
13380 if test $ol_link_tls = no ; then
13381 echo "configure: warning: Strong authentication not supported!" 1>&2
13385 if test $cross_compiling != yes ; then
13387 if test -r /dev/urandom ; then
13388 dev="/dev/urandom";
13389 elif test -r /idev/urandom ; then
13390 dev="/idev/urandom";
13391 elif test -r /dev/srandom ; then
13392 dev="/dev/srandom";
13393 elif test -r /dev/random ; then
13395 elif test -r /idev/random ; then
13396 dev="/idev/random";
13399 if test $dev != no ; then
13400 cat >> confdefs.h <<EOF
13401 #define URANDOM_DEVICE "$dev"
13408 if test $ol_with_fetch != no ; then
13410 LIBS="-lfetch -lcom_err $LIBS"
13411 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13412 echo "configure:13413: checking fetch(3) library" >&5
13413 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13414 echo $ac_n "(cached) $ac_c" 1>&6
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13421 #include <sys/param.h>
13425 struct url *u = fetchParseURL("file:///");
13428 if { (eval echo configure:13429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430 ol_cv_lib_fetch=yes
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13440 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13442 if test $ol_cv_lib_fetch != no ; then
13443 ol_link_fetch="-lfetch -lcom_err"
13444 cat >> confdefs.h <<\EOF
13445 #define HAVE_FETCH 1
13451 if test $ol_cv_lib_fetch != no ; then
13452 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13453 ol_link_fetch=freebsd
13455 elif test $ol_with_fetch != auto ; then
13456 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13460 ol_link_readline=no
13461 if test $ol_with_readline != no ; then
13462 for ac_hdr in readline/readline.h readline/history.h
13464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13466 echo "configure:13467: checking for $ac_hdr" >&5
13467 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13468 echo $ac_n "(cached) $ac_c" 1>&6
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13476 { (eval echo configure:13477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13478 if test -z "$ac_err"; then
13480 eval "ac_cv_header_$ac_safe=yes"
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 eval "ac_cv_header_$ac_safe=no"
13490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13491 echo "$ac_t""yes" 1>&6
13492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13493 cat >> confdefs.h <<EOF
13494 #define $ac_tr_hdr 1
13498 echo "$ac_t""no" 1>&6
13503 if test $ac_cv_header_readline_readline_h = yes ; then
13505 LIBS="$TERMCAP_LIBS $LIBS"
13506 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13507 echo "configure:13508: checking for readline in -lreadline" >&5
13508 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13512 ac_save_LIBS="$LIBS"
13513 LIBS="-lreadline $LIBS"
13514 cat > conftest.$ac_ext <<EOF
13515 #line 13516 "configure"
13516 #include "confdefs.h"
13517 /* Override any gcc2 internal prototype to avoid an error. */
13518 /* We use char because int might match the return type of a gcc2
13519 builtin and then its argument prototype would still apply. */
13526 if { (eval echo configure:13527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13528 eval "ac_cv_lib_$ac_lib_var=yes"
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13533 eval "ac_cv_lib_$ac_lib_var=no"
13536 LIBS="$ac_save_LIBS"
13539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13540 echo "$ac_t""yes" 1>&6
13543 echo "$ac_t""no" 1>&6
13549 if test $have_readline = yes ; then
13550 ol_with_readline=found
13551 ol_link_readline=yes
13553 READLINE_LIBS="-lreadline"
13558 if test $ol_link_readline = yes ; then
13559 cat >> confdefs.h <<\EOF
13560 #define HAVE_READLINE 1
13566 if test $ol_enable_crypt != no ; then
13567 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13568 echo "configure:13569: checking for crypt" >&5
13569 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char crypt(); below. */
13577 #include <assert.h>
13578 /* Override any gcc2 internal prototype to avoid an error. */
13579 /* We use char because int might match the return type of a gcc2
13580 builtin and then its argument prototype would still apply. */
13586 /* The GNU C library defines this for functions which it implements
13587 to always fail with ENOSYS. Some functions are actually named
13588 something starting with __ and the normal name is an alias. */
13589 #if defined (__stub_crypt) || defined (__stub___crypt)
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13599 eval "ac_cv_func_crypt=yes"
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13604 eval "ac_cv_func_crypt=no"
13609 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13610 echo "$ac_t""yes" 1>&6
13613 echo "$ac_t""no" 1>&6
13615 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13616 echo "configure:13617: checking for crypt in -lcrypt" >&5
13617 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13618 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13619 echo $ac_n "(cached) $ac_c" 1>&6
13621 ac_save_LIBS="$LIBS"
13622 LIBS="-lcrypt $LIBS"
13623 cat > conftest.$ac_ext <<EOF
13624 #line 13625 "configure"
13625 #include "confdefs.h"
13626 /* Override any gcc2 internal prototype to avoid an error. */
13627 /* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */
13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13637 eval "ac_cv_lib_$ac_lib_var=yes"
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13642 eval "ac_cv_lib_$ac_lib_var=no"
13645 LIBS="$ac_save_LIBS"
13648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13649 echo "$ac_t""yes" 1>&6
13650 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13653 echo "$ac_t""no" 1>&6
13660 if test $have_crypt = yes ; then
13661 cat >> confdefs.h <<\EOF
13662 #define HAVE_CRYPT 1
13666 echo "configure: warning: could not find crypt" 1>&2
13667 if test $ol_enable_crypt = yes ; then
13668 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13671 echo "configure: warning: disabling crypt support" 1>&2
13676 if test $ol_enable_proctitle != no ; then
13677 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13678 echo "configure:13679: checking for setproctitle" >&5
13679 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13680 echo $ac_n "(cached) $ac_c" 1>&6
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 /* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char setproctitle(); below. */
13687 #include <assert.h>
13688 /* Override any gcc2 internal prototype to avoid an error. */
13689 /* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691 char setproctitle();
13696 /* The GNU C library defines this for functions which it implements
13697 to always fail with ENOSYS. Some functions are actually named
13698 something starting with __ and the normal name is an alias. */
13699 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13709 eval "ac_cv_func_setproctitle=yes"
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13714 eval "ac_cv_func_setproctitle=no"
13719 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13720 echo "$ac_t""yes" 1>&6
13721 have_setproctitle=yes
13723 echo "$ac_t""no" 1>&6
13725 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13726 echo "configure:13727: checking for setproctitle in -lutil" >&5
13727 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13729 echo $ac_n "(cached) $ac_c" 1>&6
13731 ac_save_LIBS="$LIBS"
13732 LIBS="-lutil $LIBS"
13733 cat > conftest.$ac_ext <<EOF
13734 #line 13735 "configure"
13735 #include "confdefs.h"
13736 /* Override any gcc2 internal prototype to avoid an error. */
13737 /* We use char because int might match the return type of a gcc2
13738 builtin and then its argument prototype would still apply. */
13739 char setproctitle();
13745 if { (eval echo configure:13746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13747 eval "ac_cv_lib_$ac_lib_var=yes"
13749 echo "configure: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13752 eval "ac_cv_lib_$ac_lib_var=no"
13755 LIBS="$ac_save_LIBS"
13758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13759 echo "$ac_t""yes" 1>&6
13760 have_setproctitle=yes
13761 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13763 echo "$ac_t""no" 1>&6
13764 have_setproctitle=no
13765 LIBOBJS="$LIBOBJS setproctitle.o"
13766 LIBSRCS="$LIBSRCS setproctitle.c"
13772 if test $have_setproctitle = yes ; then
13773 cat >> confdefs.h <<\EOF
13774 #define HAVE_SETPROCTITLE 1
13780 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13781 echo "configure:13782: checking for ANSI C header files" >&5
13782 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13783 echo $ac_n "(cached) $ac_c" 1>&6
13785 cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13788 #include <stdlib.h>
13789 #include <stdarg.h>
13790 #include <string.h>
13793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13794 { (eval echo configure:13795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13796 if test -z "$ac_err"; then
13798 ac_cv_header_stdc=yes
13801 echo "configure: failed program was:" >&5
13802 cat conftest.$ac_ext >&5
13804 ac_cv_header_stdc=no
13808 if test $ac_cv_header_stdc = yes; then
13809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13810 cat > conftest.$ac_ext <<EOF
13811 #line 13812 "configure"
13812 #include "confdefs.h"
13813 #include <string.h>
13815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816 egrep "memchr" >/dev/null 2>&1; then
13820 ac_cv_header_stdc=no
13826 if test $ac_cv_header_stdc = yes; then
13827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13831 #include <stdlib.h>
13833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13834 egrep "free" >/dev/null 2>&1; then
13838 ac_cv_header_stdc=no
13844 if test $ac_cv_header_stdc = yes; then
13845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13846 if test "$cross_compiling" = yes; then
13849 cat > conftest.$ac_ext <<EOF
13850 #line 13851 "configure"
13851 #include "confdefs.h"
13853 #if ((' ' & 0x0FF) == 0x020)
13854 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13855 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13857 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13858 || ('j' <= (c) && (c) <= 'r') \
13859 || ('s' <= (c) && (c) <= 'z'))
13860 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13863 int main () { int i; for (i = 0; i < 256; i++)
13864 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13868 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13875 ac_cv_header_stdc=no
13883 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13884 if test $ac_cv_header_stdc = yes; then
13885 cat >> confdefs.h <<\EOF
13886 #define STDC_HEADERS 1
13891 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13892 echo "configure:13893: checking for mode_t" >&5
13893 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13896 cat > conftest.$ac_ext <<EOF
13897 #line 13898 "configure"
13898 #include "confdefs.h"
13899 #include <sys/types.h>
13901 #include <stdlib.h>
13902 #include <stddef.h>
13906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13907 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13909 eval "ac_cv_type_mode_t=yes"
13912 eval "ac_cv_type_mode_t=no"
13917 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13918 echo "$ac_t""yes" 1>&6
13920 echo "$ac_t""no" 1>&6
13921 cat >> confdefs.h <<EOF
13927 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13928 echo "configure:13929: checking for off_t" >&5
13929 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13930 echo $ac_n "(cached) $ac_c" 1>&6
13932 cat > conftest.$ac_ext <<EOF
13933 #line 13934 "configure"
13934 #include "confdefs.h"
13935 #include <sys/types.h>
13937 #include <stdlib.h>
13938 #include <stddef.h>
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13945 eval "ac_cv_type_off_t=yes"
13948 eval "ac_cv_type_off_t=no"
13953 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13954 echo "$ac_t""yes" 1>&6
13956 echo "$ac_t""no" 1>&6
13957 cat >> confdefs.h <<EOF
13963 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13964 echo "configure:13965: checking for pid_t" >&5
13965 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13966 echo $ac_n "(cached) $ac_c" 1>&6
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 #include <sys/types.h>
13973 #include <stdlib.h>
13974 #include <stddef.h>
13978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13979 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13981 eval "ac_cv_type_pid_t=yes"
13984 eval "ac_cv_type_pid_t=no"
13989 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13990 echo "$ac_t""yes" 1>&6
13992 echo "$ac_t""no" 1>&6
13993 cat >> confdefs.h <<EOF
13999 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14000 echo "configure:14001: checking for ptrdiff_t" >&5
14001 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14002 echo $ac_n "(cached) $ac_c" 1>&6
14004 cat > conftest.$ac_ext <<EOF
14005 #line 14006 "configure"
14006 #include "confdefs.h"
14007 #include <stddef.h>
14012 if { (eval echo configure:14013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14014 am_cv_type_ptrdiff_t=yes
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14019 am_cv_type_ptrdiff_t=no
14024 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14025 if test $am_cv_type_ptrdiff_t = yes; then
14026 cat >> confdefs.h <<\EOF
14027 #define HAVE_PTRDIFF_T 1
14032 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14033 echo "configure:14034: checking return type of signal handlers" >&5
14034 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14035 echo $ac_n "(cached) $ac_c" 1>&6
14037 cat > conftest.$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 #include <sys/types.h>
14041 #include <signal.h>
14046 extern "C" void (*signal (int, void (*)(int)))(int);
14048 void (*signal ()) ();
14055 if { (eval echo configure:14056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14057 ac_cv_type_signal=void
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14062 ac_cv_type_signal=int
14067 echo "$ac_t""$ac_cv_type_signal" 1>&6
14068 cat >> confdefs.h <<EOF
14069 #define RETSIGTYPE $ac_cv_type_signal
14073 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14074 echo "configure:14075: checking for size_t" >&5
14075 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 #include <sys/types.h>
14083 #include <stdlib.h>
14084 #include <stddef.h>
14088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14089 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14091 eval "ac_cv_type_size_t=yes"
14094 eval "ac_cv_type_size_t=no"
14099 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14100 echo "$ac_t""yes" 1>&6
14102 echo "$ac_t""no" 1>&6
14103 cat >> confdefs.h <<EOF
14104 #define size_t unsigned
14110 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14111 echo "configure:14112: checking for ssize_t" >&5
14112 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14113 echo $ac_n "(cached) $ac_c" 1>&6
14115 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure"
14117 #include "confdefs.h"
14118 #include <sys/types.h>
14120 #include <stdlib.h>
14121 #include <stddef.h>
14125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14128 eval "ac_cv_type_ssize_t=yes"
14131 eval "ac_cv_type_ssize_t=no"
14136 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14137 echo "$ac_t""yes" 1>&6
14139 echo "$ac_t""no" 1>&6
14140 cat >> confdefs.h <<EOF
14141 #define ssize_t signed int
14146 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14147 echo "configure:14148: checking for caddr_t" >&5
14148 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14151 cat > conftest.$ac_ext <<EOF
14152 #line 14153 "configure"
14153 #include "confdefs.h"
14154 #include <sys/types.h>
14156 #include <stdlib.h>
14157 #include <stddef.h>
14161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14162 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14164 eval "ac_cv_type_caddr_t=yes"
14167 eval "ac_cv_type_caddr_t=no"
14172 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14173 echo "$ac_t""yes" 1>&6
14175 echo "$ac_t""no" 1>&6
14176 cat >> confdefs.h <<EOF
14177 #define caddr_t char *
14183 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14184 echo "configure:14185: checking for socklen_t" >&5
14185 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14188 cat > conftest.$ac_ext <<EOF
14189 #line 14190 "configure"
14190 #include "confdefs.h"
14192 #ifdef HAVE_SYS_TYPES_H
14193 #include <sys/types.h>
14195 #ifdef HAVE_SYS_SOCKET_H
14196 #include <sys/socket.h>
14203 if { (eval echo configure:14204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14205 ol_cv_type_socklen_t=yes
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14210 ol_cv_type_socklen_t=no
14215 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14216 if test $ol_cv_type_socklen_t = no; then
14217 cat >> confdefs.h <<\EOF
14218 #define socklen_t int
14223 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14224 echo "configure:14225: checking for member st_blksize in aggregate type struct stat" >&5
14225 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 #include <sys/types.h>
14232 #include <sys/stat.h>
14234 struct stat foo; foo.st_blksize;
14237 if { (eval echo configure:14238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14239 ac_cv_c_struct_member_st_blksize=yes
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14244 ac_cv_c_struct_member_st_blksize=no
14249 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14250 st_blksize="$ac_cv_c_struct_member_st_blksize"
14251 if test $ac_cv_c_struct_member_st_blksize = yes; then
14252 cat >> confdefs.h <<\EOF
14253 #define HAVE_ST_BLKSIZE 1
14258 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14259 echo "configure:14260: checking whether time.h and sys/time.h may both be included" >&5
14260 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14261 echo $ac_n "(cached) $ac_c" 1>&6
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 #include <sys/types.h>
14267 #include <sys/time.h>
14273 if { (eval echo configure:14274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14275 ac_cv_header_time=yes
14277 echo "configure: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14280 ac_cv_header_time=no
14285 echo "$ac_t""$ac_cv_header_time" 1>&6
14286 if test $ac_cv_header_time = yes; then
14287 cat >> confdefs.h <<\EOF
14288 #define TIME_WITH_SYS_TIME 1
14293 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14294 echo "configure:14295: checking whether struct tm is in sys/time.h or time.h" >&5
14295 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14298 cat > conftest.$ac_ext <<EOF
14299 #line 14300 "configure"
14300 #include "confdefs.h"
14301 #include <sys/types.h>
14304 struct tm *tp; tp->tm_sec;
14307 if { (eval echo configure:14308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14309 ac_cv_struct_tm=time.h
14311 echo "configure: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14314 ac_cv_struct_tm=sys/time.h
14319 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14320 if test $ac_cv_struct_tm = sys/time.h; then
14321 cat >> confdefs.h <<\EOF
14322 #define TM_IN_SYS_TIME 1
14327 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14328 echo "configure:14329: checking for uid_t in sys/types.h" >&5
14329 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14330 echo $ac_n "(cached) $ac_c" 1>&6
14332 cat > conftest.$ac_ext <<EOF
14333 #line 14334 "configure"
14334 #include "confdefs.h"
14335 #include <sys/types.h>
14337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14338 egrep "uid_t" >/dev/null 2>&1; then
14340 ac_cv_type_uid_t=yes
14343 ac_cv_type_uid_t=no
14349 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14350 if test $ac_cv_type_uid_t = no; then
14351 cat >> confdefs.h <<\EOF
14355 cat >> confdefs.h <<\EOF
14361 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14362 echo "configure:14363: checking for sig_atomic_t" >&5
14363 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14364 echo $ac_n "(cached) $ac_c" 1>&6
14366 cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure"
14368 #include "confdefs.h"
14369 #include <signal.h>
14371 sig_atomic_t atomic;
14374 if { (eval echo configure:14375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14376 ol_cv_type_sig_atomic_t=yes
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14381 ol_cv_type_sig_atomic_t=no
14386 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14387 if test $ol_cv_type_sig_atomic_t = no; then
14388 cat >> confdefs.h <<\EOF
14389 #define sig_atomic_t int
14396 # test for pw_gecos in struct passwd
14397 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14398 echo "configure:14399: checking struct passwd for pw_gecos" >&5
14399 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14400 echo $ac_n "(cached) $ac_c" 1>&6
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14410 pwd.pw_gecos = pwd.pw_name;
14414 if { (eval echo configure:14415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14416 ol_cv_struct_passwd_pw_gecos=yes
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14421 ol_cv_struct_passwd_pw_gecos=no
14426 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14427 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14428 cat >> confdefs.h <<\EOF
14429 #define HAVE_PW_GECOS 1
14434 # test for pw_passwd in struct passwd
14435 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14436 echo "configure:14437: checking struct passwd for pw_passwd" >&5
14437 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14438 echo $ac_n "(cached) $ac_c" 1>&6
14441 cat > conftest.$ac_ext <<EOF
14442 #line 14443 "configure"
14443 #include "confdefs.h"
14448 pwd.pw_passwd = pwd.pw_name;
14452 if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14454 ol_cv_struct_passwd_pw_passwd=yes
14456 echo "configure: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14459 ol_cv_struct_passwd_pw_passwd=no
14464 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14465 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14466 cat >> confdefs.h <<\EOF
14467 #define HAVE_PW_PASSWD 1
14473 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14474 echo "configure:14475: checking if toupper() requires islower()" >&5
14475 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14476 echo $ac_n "(cached) $ac_c" 1>&6
14479 if test "$cross_compiling" = yes; then
14480 ol_cv_c_upper_lower=safe
14482 cat > conftest.$ac_ext <<EOF
14483 #line 14484 "configure"
14484 #include "confdefs.h"
14489 if ('C' == toupper('C'))
14495 if { (eval echo configure:14496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14497 ol_cv_c_upper_lower=no
14499 echo "configure: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14502 ol_cv_c_upper_lower=yes
14509 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14510 if test $ol_cv_c_upper_lower != no ; then
14511 cat >> confdefs.h <<\EOF
14512 #define C_UPPER_LOWER 1
14517 echo $ac_n "checking for working const""... $ac_c" 1>&6
14518 echo "configure:14519: checking for working const" >&5
14519 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14520 echo $ac_n "(cached) $ac_c" 1>&6
14522 cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure"
14524 #include "confdefs.h"
14528 /* Ultrix mips cc rejects this. */
14529 typedef int charset[2]; const charset x;
14530 /* SunOS 4.1.1 cc rejects this. */
14531 char const *const *ccp;
14533 /* NEC SVR4.0.2 mips cc rejects this. */
14534 struct point {int x, y;};
14535 static struct point const zero = {0,0};
14536 /* AIX XL C 1.02.0.0 rejects this.
14537 It does not let you subtract one const X* pointer from another in an arm
14538 of an if-expression whose if-part is not a constant expression */
14539 const char *g = "string";
14540 ccp = &g + (g ? g-g : 0);
14541 /* HPUX 7.0 cc rejects these. */
14544 ccp = (char const *const *) p;
14545 { /* SCO 3.2v4 cc rejects this. */
14547 char const *s = 0 ? (char *) 0 : (char const *) 0;
14551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14552 int x[] = {25, 17};
14553 const int *foo = &x[0];
14556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14557 typedef const int *iptr;
14561 { /* AIX XL C 1.02.0.0 rejects this saying
14562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14563 struct s { int j; const int *ap[3]; };
14564 struct s *b; b->j = 5;
14566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14567 const int foo = 10;
14572 if { (eval echo configure:14573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14576 echo "configure: failed program was:" >&5
14577 cat conftest.$ac_ext >&5
14584 echo "$ac_t""$ac_cv_c_const" 1>&6
14585 if test $ac_cv_c_const = no; then
14586 cat >> confdefs.h <<\EOF
14592 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14593 echo "configure:14594: checking if compiler understands volatile" >&5
14594 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14595 echo $ac_n "(cached) $ac_c" 1>&6
14597 cat > conftest.$ac_ext <<EOF
14598 #line 14599 "configure"
14599 #include "confdefs.h"
14602 volatile int a; int * volatile b = x ? &y : &z;
14603 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14607 if { (eval echo configure:14608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14609 ol_cv_c_volatile=yes
14611 echo "configure: failed program was:" >&5
14612 cat conftest.$ac_ext >&5
14614 ol_cv_c_volatile=no
14619 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14620 if test $ol_cv_c_volatile = yes; then
14623 cat >> confdefs.h <<\EOF
14630 if test $cross_compiling = yes ; then
14631 cat >> confdefs.h <<\EOF
14632 #define CROSS_COMPILING 1
14636 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14637 echo "configure:14638: checking whether byte ordering is bigendian" >&5
14638 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14639 echo $ac_n "(cached) $ac_c" 1>&6
14641 ac_cv_c_bigendian=unknown
14642 # See if sys/param.h defines the BYTE_ORDER macro.
14643 cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14646 #include <sys/types.h>
14647 #include <sys/param.h>
14650 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14651 bogus endian macros
14655 if { (eval echo configure:14656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14657 # It does; now see whether it defined to BIG_ENDIAN or not.
14658 cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 #include <sys/types.h>
14662 #include <sys/param.h>
14665 #if BYTE_ORDER != BIG_ENDIAN
14670 if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14672 ac_cv_c_bigendian=yes
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14677 ac_cv_c_bigendian=no
14681 echo "configure: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14685 if test $ac_cv_c_bigendian = unknown; then
14686 if test "$cross_compiling" = yes; then
14687 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14693 /* Are we little or big endian? From Harbison&Steele. */
14697 char c[sizeof (long)];
14700 exit (u.c[sizeof (long) - 1] == 1);
14703 if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14705 ac_cv_c_bigendian=no
14707 echo "configure: failed program was:" >&5
14708 cat conftest.$ac_ext >&5
14710 ac_cv_c_bigendian=yes
14718 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14719 if test $ac_cv_c_bigendian = yes; then
14720 cat >> confdefs.h <<\EOF
14721 #define WORDS_BIGENDIAN 1
14728 echo $ac_n "checking size of short""... $ac_c" 1>&6
14729 echo "configure:14730: checking size of short" >&5
14730 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14733 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14734 cat > conftest.$ac_ext <<EOF
14735 #line 14736 "configure"
14736 #include "confdefs.h"
14737 #include "confdefs.h"
14738 #include <sys/types.h>
14742 switch (0) case 0: case (sizeof (short) == $ac_size):;
14745 if { (eval echo configure:14746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14747 ac_cv_sizeof_short=$ac_size
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14753 if test x$ac_cv_sizeof_short != x ; then break; fi
14758 if test x$ac_cv_sizeof_short = x ; then
14759 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14761 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14762 cat >> confdefs.h <<EOF
14763 #define SIZEOF_SHORT $ac_cv_sizeof_short
14767 echo $ac_n "checking size of int""... $ac_c" 1>&6
14768 echo "configure:14769: checking size of int" >&5
14769 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14770 echo $ac_n "(cached) $ac_c" 1>&6
14772 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14773 cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 #include "confdefs.h"
14777 #include <sys/types.h>
14781 switch (0) case 0: case (sizeof (int) == $ac_size):;
14784 if { (eval echo configure:14785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14786 ac_cv_sizeof_int=$ac_size
14788 echo "configure: failed program was:" >&5
14789 cat conftest.$ac_ext >&5
14792 if test x$ac_cv_sizeof_int != x ; then break; fi
14797 if test x$ac_cv_sizeof_int = x ; then
14798 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14800 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14801 cat >> confdefs.h <<EOF
14802 #define SIZEOF_INT $ac_cv_sizeof_int
14806 echo $ac_n "checking size of long""... $ac_c" 1>&6
14807 echo "configure:14808: checking size of long" >&5
14808 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14809 echo $ac_n "(cached) $ac_c" 1>&6
14811 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14812 cat > conftest.$ac_ext <<EOF
14813 #line 14814 "configure"
14814 #include "confdefs.h"
14815 #include "confdefs.h"
14816 #include <sys/types.h>
14820 switch (0) case 0: case (sizeof (long) == $ac_size):;
14823 if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14825 ac_cv_sizeof_long=$ac_size
14827 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5
14831 if test x$ac_cv_sizeof_long != x ; then break; fi
14836 if test x$ac_cv_sizeof_long = x ; then
14837 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14839 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14840 cat >> confdefs.h <<EOF
14841 #define SIZEOF_LONG $ac_cv_sizeof_long
14846 if test "$ac_cv_sizeof_int" -lt 4 ; then
14847 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14849 cat >> confdefs.h <<\EOF
14850 #define LBER_INT_T long
14854 cat >> confdefs.h <<\EOF
14855 #define LBER_INT_T int
14860 cat >> confdefs.h <<\EOF
14861 #define LBER_LEN_T long
14864 cat >> confdefs.h <<\EOF
14865 #define LBER_SOCKET_T int
14868 cat >> confdefs.h <<\EOF
14869 #define LBER_TAG_T long
14873 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14874 echo "configure:14875: checking for 8-bit clean memcmp" >&5
14875 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14878 if test "$cross_compiling" = yes; then
14879 ac_cv_func_memcmp_clean=no
14881 cat > conftest.$ac_ext <<EOF
14882 #line 14883 "configure"
14883 #include "confdefs.h"
14887 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14888 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14892 if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14894 ac_cv_func_memcmp_clean=yes
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14899 ac_cv_func_memcmp_clean=no
14906 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14907 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14909 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14910 echo "configure:14911: checking for strftime" >&5
14911 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char strftime(); below. */
14919 #include <assert.h>
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 /* We use char because int might match the return type of a gcc2
14922 builtin and then its argument prototype would still apply. */
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined (__stub_strftime) || defined (__stub___strftime)
14939 if { (eval echo configure:14940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14941 eval "ac_cv_func_strftime=yes"
14943 echo "configure: failed program was:" >&5
14944 cat conftest.$ac_ext >&5
14946 eval "ac_cv_func_strftime=no"
14951 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14952 echo "$ac_t""yes" 1>&6
14953 cat >> confdefs.h <<\EOF
14954 #define HAVE_STRFTIME 1
14958 echo "$ac_t""no" 1>&6
14959 # strftime is in -lintl on SCO UNIX.
14960 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14961 echo "configure:14962: checking for strftime in -lintl" >&5
14962 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14964 echo $ac_n "(cached) $ac_c" 1>&6
14966 ac_save_LIBS="$LIBS"
14967 LIBS="-lintl $LIBS"
14968 cat > conftest.$ac_ext <<EOF
14969 #line 14970 "configure"
14970 #include "confdefs.h"
14971 /* Override any gcc2 internal prototype to avoid an error. */
14972 /* We use char because int might match the return type of a gcc2
14973 builtin and then its argument prototype would still apply. */
14980 if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14982 eval "ac_cv_lib_$ac_lib_var=yes"
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14987 eval "ac_cv_lib_$ac_lib_var=no"
14990 LIBS="$ac_save_LIBS"
14993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14994 echo "$ac_t""yes" 1>&6
14995 cat >> confdefs.h <<\EOF
14996 #define HAVE_STRFTIME 1
14999 LIBS="-lintl $LIBS"
15001 echo "$ac_t""no" 1>&6
15007 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15008 echo "configure:15009: checking for inet_aton()" >&5
15009 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15012 cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15016 #ifdef HAVE_SYS_TYPES_H
15017 # include <sys/types.h>
15019 #ifdef HAVE_SYS_SOCKET_H
15020 # include <sys/socket.h>
15021 # ifdef HAVE_SYS_SELECT_H
15022 # include <sys/select.h>
15024 # include <netinet/in.h>
15025 # ifdef HAVE_ARPA_INET_H
15026 # include <arpa/inet.h>
15032 int rc = inet_aton( "255.255.255.255", &in );
15035 if { (eval echo configure:15036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15037 ol_cv_func_inet_aton=yes
15039 echo "configure: failed program was:" >&5
15040 cat conftest.$ac_ext >&5
15042 ol_cv_func_inet_aton=no
15047 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15048 if test $ol_cv_func_inet_aton != no; then
15049 cat >> confdefs.h <<\EOF
15050 #define HAVE_INET_ATON 1
15056 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15057 echo "configure:15058: checking for _spawnlp" >&5
15058 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15059 echo $ac_n "(cached) $ac_c" 1>&6
15061 cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 /* System header to define __stub macros and hopefully few prototypes,
15065 which can conflict with char _spawnlp(); below. */
15066 #include <assert.h>
15067 /* Override any gcc2 internal prototype to avoid an error. */
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15075 /* The GNU C library defines this for functions which it implements
15076 to always fail with ENOSYS. Some functions are actually named
15077 something starting with __ and the normal name is an alias. */
15078 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15086 if { (eval echo configure:15087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15088 eval "ac_cv_func__spawnlp=yes"
15090 echo "configure: failed program was:" >&5
15091 cat conftest.$ac_ext >&5
15093 eval "ac_cv_func__spawnlp=no"
15098 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15099 echo "$ac_t""yes" 1>&6
15100 cat >> confdefs.h <<\EOF
15101 #define HAVE_SPAWNLP 1
15105 echo "$ac_t""no" 1>&6
15109 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15110 echo "configure:15111: checking for _snprintf" >&5
15111 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15112 echo $ac_n "(cached) $ac_c" 1>&6
15114 cat > conftest.$ac_ext <<EOF
15115 #line 15116 "configure"
15116 #include "confdefs.h"
15117 /* System header to define __stub macros and hopefully few prototypes,
15118 which can conflict with char _snprintf(); below. */
15119 #include <assert.h>
15120 /* Override any gcc2 internal prototype to avoid an error. */
15121 /* We use char because int might match the return type of a gcc2
15122 builtin and then its argument prototype would still apply. */
15128 /* The GNU C library defines this for functions which it implements
15129 to always fail with ENOSYS. Some functions are actually named
15130 something starting with __ and the normal name is an alias. */
15131 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15139 if { (eval echo configure:15140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15141 eval "ac_cv_func__snprintf=yes"
15143 echo "configure: failed program was:" >&5
15144 cat conftest.$ac_ext >&5
15146 eval "ac_cv_func__snprintf=no"
15151 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15152 echo "$ac_t""yes" 1>&6
15153 ac_cv_func_snprintf=yes
15154 cat >> confdefs.h <<\EOF
15155 #define snprintf _snprintf
15160 echo "$ac_t""no" 1>&6
15164 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15165 echo "configure:15166: checking for _vsnprintf" >&5
15166 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15167 echo $ac_n "(cached) $ac_c" 1>&6
15169 cat > conftest.$ac_ext <<EOF
15170 #line 15171 "configure"
15171 #include "confdefs.h"
15172 /* System header to define __stub macros and hopefully few prototypes,
15173 which can conflict with char _vsnprintf(); below. */
15174 #include <assert.h>
15175 /* Override any gcc2 internal prototype to avoid an error. */
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15183 /* The GNU C library defines this for functions which it implements
15184 to always fail with ENOSYS. Some functions are actually named
15185 something starting with __ and the normal name is an alias. */
15186 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15194 if { (eval echo configure:15195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15196 eval "ac_cv_func__vsnprintf=yes"
15198 echo "configure: failed program was:" >&5
15199 cat conftest.$ac_ext >&5
15201 eval "ac_cv_func__vsnprintf=no"
15206 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15207 echo "$ac_t""yes" 1>&6
15208 ac_cv_func_vsnprintf=yes
15209 cat >> confdefs.h <<\EOF
15210 #define vsnprintf _vsnprintf
15215 echo "$ac_t""no" 1>&6
15219 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15220 echo "configure:15221: checking for vprintf" >&5
15221 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15222 echo $ac_n "(cached) $ac_c" 1>&6
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 /* System header to define __stub macros and hopefully few prototypes,
15228 which can conflict with char vprintf(); below. */
15229 #include <assert.h>
15230 /* Override any gcc2 internal prototype to avoid an error. */
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15249 if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15251 eval "ac_cv_func_vprintf=yes"
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15256 eval "ac_cv_func_vprintf=no"
15261 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15262 echo "$ac_t""yes" 1>&6
15263 cat >> confdefs.h <<\EOF
15264 #define HAVE_VPRINTF 1
15268 echo "$ac_t""no" 1>&6
15271 if test "$ac_cv_func_vprintf" != yes; then
15272 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15273 echo "configure:15274: checking for _doprnt" >&5
15274 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15275 echo $ac_n "(cached) $ac_c" 1>&6
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 /* System header to define __stub macros and hopefully few prototypes,
15281 which can conflict with char _doprnt(); below. */
15282 #include <assert.h>
15283 /* Override any gcc2 internal prototype to avoid an error. */
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15291 /* The GNU C library defines this for functions which it implements
15292 to always fail with ENOSYS. Some functions are actually named
15293 something starting with __ and the normal name is an alias. */
15294 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15302 if { (eval echo configure:15303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15304 eval "ac_cv_func__doprnt=yes"
15306 echo "configure: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15309 eval "ac_cv_func__doprnt=no"
15314 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15315 echo "$ac_t""yes" 1>&6
15316 cat >> confdefs.h <<\EOF
15317 #define HAVE_DOPRNT 1
15321 echo "$ac_t""no" 1>&6
15327 if test $ac_cv_func_vprintf = yes ; then
15328 for ac_func in vsnprintf vsprintf
15330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15331 echo "configure:15332: checking for $ac_func" >&5
15332 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15335 cat > conftest.$ac_ext <<EOF
15336 #line 15337 "configure"
15337 #include "confdefs.h"
15338 /* System header to define __stub macros and hopefully few prototypes,
15339 which can conflict with char $ac_func(); below. */
15340 #include <assert.h>
15341 /* Override any gcc2 internal prototype to avoid an error. */
15342 /* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 if { (eval echo configure:15361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15362 eval "ac_cv_func_$ac_func=yes"
15364 echo "configure: failed program was:" >&5
15365 cat conftest.$ac_ext >&5
15367 eval "ac_cv_func_$ac_func=no"
15372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15373 echo "$ac_t""yes" 1>&6
15374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15375 cat >> confdefs.h <<EOF
15376 #define $ac_tr_func 1
15380 echo "$ac_t""no" 1>&6
15438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15439 echo "configure:15440: checking for $ac_func" >&5
15440 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15441 echo $ac_n "(cached) $ac_c" 1>&6
15443 cat > conftest.$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15446 /* System header to define __stub macros and hopefully few prototypes,
15447 which can conflict with char $ac_func(); below. */
15448 #include <assert.h>
15449 /* Override any gcc2 internal prototype to avoid an error. */
15450 /* We use char because int might match the return type of a gcc2
15451 builtin and then its argument prototype would still apply. */
15457 /* The GNU C library defines this for functions which it implements
15458 to always fail with ENOSYS. Some functions are actually named
15459 something starting with __ and the normal name is an alias. */
15460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15468 if { (eval echo configure:15469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15470 eval "ac_cv_func_$ac_func=yes"
15472 echo "configure: failed program was:" >&5
15473 cat conftest.$ac_ext >&5
15475 eval "ac_cv_func_$ac_func=no"
15480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15481 echo "$ac_t""yes" 1>&6
15482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15483 cat >> confdefs.h <<EOF
15484 #define $ac_tr_func 1
15488 echo "$ac_t""no" 1>&6
15493 for ac_func in getopt tempnam
15495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15496 echo "configure:15497: checking for $ac_func" >&5
15497 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15498 echo $ac_n "(cached) $ac_c" 1>&6
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15503 /* System header to define __stub macros and hopefully few prototypes,
15504 which can conflict with char $ac_func(); below. */
15505 #include <assert.h>
15506 /* Override any gcc2 internal prototype to avoid an error. */
15507 /* We use char because int might match the return type of a gcc2
15508 builtin and then its argument prototype would still apply. */
15514 /* The GNU C library defines this for functions which it implements
15515 to always fail with ENOSYS. Some functions are actually named
15516 something starting with __ and the normal name is an alias. */
15517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15525 if { (eval echo configure:15526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15527 eval "ac_cv_func_$ac_func=yes"
15529 echo "configure: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15532 eval "ac_cv_func_$ac_func=no"
15537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15538 echo "$ac_t""yes" 1>&6
15539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15540 cat >> confdefs.h <<EOF
15541 #define $ac_tr_func 1
15545 echo "$ac_t""no" 1>&6
15546 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15552 if test "$ac_cv_func_getopt" != yes; then
15553 LIBSRCS="$LIBSRCS getopt.c"
15556 if test "$ac_cv_func_tempnam" != yes; then
15557 LIBSRCS="$LIBSRCS tempnam.c"
15560 # Check Configuration
15561 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15562 echo "configure:15563: checking declaration of sys_errlist" >&5
15563 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15564 echo $ac_n "(cached) $ac_c" 1>&6
15567 cat > conftest.$ac_ext <<EOF
15568 #line 15569 "configure"
15569 #include "confdefs.h"
15572 #include <sys/types.h>
15575 #include <stdlib.h>
15578 char *c = (char *) *sys_errlist
15581 if { (eval echo configure:15582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15583 ol_cv_dcl_sys_errlist=yes
15584 ol_cv_have_sys_errlist=yes
15586 echo "configure: failed program was:" >&5
15587 cat conftest.$ac_ext >&5
15589 ol_cv_dcl_sys_errlist=no
15594 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15596 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15597 if test $ol_cv_dcl_sys_errlist = no ; then
15598 cat >> confdefs.h <<\EOF
15599 #define DECL_SYS_ERRLIST 1
15603 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15604 echo "configure:15605: checking existence of sys_errlist" >&5
15605 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15606 echo $ac_n "(cached) $ac_c" 1>&6
15609 cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15614 char *c = (char *) *sys_errlist
15617 if { (eval echo configure:15618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15619 ol_cv_have_sys_errlist=yes
15621 echo "configure: failed program was:" >&5
15622 cat conftest.$ac_ext >&5
15624 ol_cv_have_sys_errlist=no
15629 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15631 if test $ol_cv_have_sys_errlist = yes ; then
15632 cat >> confdefs.h <<\EOF
15633 #define HAVE_SYS_ERRLIST 1
15640 if test "$ol_enable_debug" != no ; then
15641 cat >> confdefs.h <<\EOF
15642 #define LDAP_DEBUG 1
15646 if test "$ol_enable_syslog" = yes ; then
15647 cat >> confdefs.h <<\EOF
15648 #define LDAP_SYSLOG 1
15652 if test "$ol_enable_libui" = yes ; then
15653 cat >> confdefs.h <<\EOF
15654 #define LDAP_LIBUI 1
15658 if test "$ol_enable_cache" = no ; then
15659 cat >> confdefs.h <<\EOF
15660 #define LDAP_NOCACHE 1
15664 if test "$ol_link_kbind" != no ; then
15665 cat >> confdefs.h <<\EOF
15666 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15670 if test "$ol_enable_proctitle" != no ; then
15671 cat >> confdefs.h <<\EOF
15672 #define LDAP_PROCTITLE 1
15676 if test "$ol_enable_referrals" != no ; then
15677 cat >> confdefs.h <<\EOF
15678 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15682 if test "$ol_enable_local" != no; then
15683 cat >> confdefs.h <<\EOF
15684 #define LDAP_PF_LOCAL 1
15688 if test "$ol_link_ipv6" != no; then
15689 cat >> confdefs.h <<\EOF
15690 #define LDAP_PF_INET6 1
15694 if test "$ol_enable_cleartext" != no ; then
15695 cat >> confdefs.h <<\EOF
15696 #define SLAPD_CLEARTEXT 1
15700 if test "$ol_enable_crypt" != no ; then
15701 cat >> confdefs.h <<\EOF
15702 #define SLAPD_CRYPT 1
15706 if test "$ol_link_kpasswd" != no ; then
15707 cat >> confdefs.h <<\EOF
15708 #define SLAPD_KPASSWD 1
15712 if test "$ol_link_spasswd" != no ; then
15713 cat >> confdefs.h <<\EOF
15714 #define SLAPD_SPASSWD 1
15718 if test "$ol_enable_multimaster" != no ; then
15719 cat >> confdefs.h <<\EOF
15720 #define SLAPD_MULTIMASTER 1
15724 if test "$ol_enable_phonetic" != no ; then
15725 cat >> confdefs.h <<\EOF
15726 #define SLAPD_PHONETIC 1
15730 if test "$ol_enable_rlookups" != no ; then
15731 cat >> confdefs.h <<\EOF
15732 #define SLAPD_RLOOKUPS 1
15736 if test "$ol_enable_aci" != no ; then
15737 cat >> confdefs.h <<\EOF
15738 #define SLAPD_ACI_ENABLED 1
15743 if test "$ol_link_modules" != no ; then
15744 cat >> confdefs.h <<\EOF
15745 #define SLAPD_MODULES 1
15749 SLAPD_MODULES_LDFLAGS="-dlopen self"
15752 if test "$ol_link_dnssrv" != no ; then
15753 cat >> confdefs.h <<\EOF
15754 #define SLAPD_DNSSRV 1
15759 if test "$ol_with_dnssrv_module" != static ; then
15760 cat >> confdefs.h <<\EOF
15761 #define SLAPD_DNSSRV_DYNAMIC 1
15765 BUILD_DNSSRV_DYNAMIC=shared
15766 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15770 if test "$ol_enable_ldap" != no ; then
15771 cat >> confdefs.h <<\EOF
15772 #define SLAPD_LDAP 1
15777 if test "$ol_with_ldap_module" != static ; then
15778 cat >> confdefs.h <<\EOF
15779 #define SLAPD_LDAP_DYNAMIC 1
15783 BUILD_LDAP_DYNAMIC=shared
15784 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15788 if test "$ol_link_ldbm" != no ; then
15789 cat >> confdefs.h <<\EOF
15790 #define SLAPD_LDBM 1
15795 if test "$ol_with_ldbm_module" != static ; then
15796 cat >> confdefs.h <<\EOF
15797 #define SLAPD_LDBM_DYNAMIC 1
15801 BUILD_LDBM_DYNAMIC=shared
15802 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15806 if test "$ol_enable_passwd" != no ; then
15807 cat >> confdefs.h <<\EOF
15808 #define SLAPD_PASSWD 1
15813 if test "$ol_with_passwd_module" != static ; then
15814 cat >> confdefs.h <<\EOF
15815 #define SLAPD_PASSWD_DYNAMIC 1
15819 BUILD_PASSWD_DYNAMIC=shared
15820 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15824 if test "$ol_enable_shell" != no ; then
15825 cat >> confdefs.h <<\EOF
15826 #define SLAPD_SHELL 1
15831 if test "$ol_with_shell_module" != static ; then
15832 cat >> confdefs.h <<\EOF
15833 #define SLAPD_SHELL_DYNAMIC 1
15837 BUILD_SHELL_DYNAMIC=shared
15838 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15842 if test "$ol_enable_sql" != no ; then
15843 cat >> confdefs.h <<\EOF
15844 #define SLAPD_SQL 1
15849 if test "$ol_with_sql_module" != static; then
15850 cat >> confdefs.h <<\EOF
15851 #define SLAPD_SQL_DYNAMIC 1
15855 BUILD_SQL_DYNAMIC=shared
15856 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15860 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15861 $BUILD_SLAPD = yes ; then
15866 if test "$LINK_BINS_DYNAMIC" = yes; then
15868 LT_LIB_LINKAGE=shared
15871 LT_LIB_LINKAGE=static
15874 if test "$ac_cv_mingw32" = yes ; then
15934 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15937 # Let make expand exec_prefix.
15938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15940 # Any assignment to VPATH causes Sun make to only execute
15941 # the first set of double-colon rules, so remove it if not needed.
15942 # If there is a colon in the path, we need to keep it.
15943 if test "x$srcdir" = x.; then
15944 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15947 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15949 DEFS=-DHAVE_CONFIG_H
15951 # Without the "./", some shells look in PATH for config.status.
15952 : ${CONFIG_STATUS=./config.status}
15954 echo creating $CONFIG_STATUS
15955 rm -f $CONFIG_STATUS
15956 cat > $CONFIG_STATUS <<EOF
15958 # Generated automatically by configure.
15959 # Run this file to recreate the current configuration.
15960 # This directory was configured as follows,
15961 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15963 # $0 $ac_configure_args
15965 # Compiler output produced by configure, useful for debugging
15966 # configure, is in ./config.log if it exists.
15968 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15971 case "\$ac_option" in
15972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15973 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15974 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15975 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15976 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15978 -help | --help | --hel | --he | --h)
15979 echo "\$ac_cs_usage"; exit 0 ;;
15980 *) echo "\$ac_cs_usage"; exit 1 ;;
15984 ac_given_srcdir=$srcdir
15985 ac_given_INSTALL="$INSTALL"
15987 trap 'rm -fr `echo "\
15988 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15989 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15990 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15991 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15992 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15993 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15994 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15995 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15996 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15997 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15998 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15999 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16000 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16001 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16002 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16003 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16004 include/Makefile:build/top.mk:include/Makefile.in \
16005 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16006 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16007 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16008 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16009 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16010 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16011 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16012 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16013 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16014 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16015 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16016 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16017 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16018 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16019 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16020 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16021 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16022 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16023 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16024 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16025 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16026 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16027 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16028 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16029 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16031 cat >> $CONFIG_STATUS <<EOF
16033 # Protect against being on the right side of a sed subst in config.status.
16034 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16035 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16039 s%@CFLAGS@%$CFLAGS%g
16040 s%@CPPFLAGS@%$CPPFLAGS%g
16041 s%@CXXFLAGS@%$CXXFLAGS%g
16042 s%@FFLAGS@%$FFLAGS%g
16044 s%@LDFLAGS@%$LDFLAGS%g
16046 s%@exec_prefix@%$exec_prefix%g
16047 s%@prefix@%$prefix%g
16048 s%@program_transform_name@%$program_transform_name%g
16049 s%@bindir@%$bindir%g
16050 s%@sbindir@%$sbindir%g
16051 s%@libexecdir@%$libexecdir%g
16052 s%@datadir@%$datadir%g
16053 s%@sysconfdir@%$sysconfdir%g
16054 s%@sharedstatedir@%$sharedstatedir%g
16055 s%@localstatedir@%$localstatedir%g
16056 s%@libdir@%$libdir%g
16057 s%@includedir@%$includedir%g
16058 s%@oldincludedir@%$oldincludedir%g
16059 s%@infodir@%$infodir%g
16060 s%@mandir@%$mandir%g
16062 s%@host_alias@%$host_alias%g
16063 s%@host_cpu@%$host_cpu%g
16064 s%@host_vendor@%$host_vendor%g
16065 s%@host_os@%$host_os%g
16066 s%@target@%$target%g
16067 s%@target_alias@%$target_alias%g
16068 s%@target_cpu@%$target_cpu%g
16069 s%@target_vendor@%$target_vendor%g
16070 s%@target_os@%$target_os%g
16072 s%@build_alias@%$build_alias%g
16073 s%@build_cpu@%$build_cpu%g
16074 s%@build_vendor@%$build_vendor%g
16075 s%@build_os@%$build_os%g
16076 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16077 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16078 s%@INSTALL_DATA@%$INSTALL_DATA%g
16079 s%@PACKAGE@%$PACKAGE%g
16080 s%@VERSION@%$VERSION%g
16081 s%@ACLOCAL@%$ACLOCAL%g
16082 s%@AUTOCONF@%$AUTOCONF%g
16083 s%@AUTOMAKE@%$AUTOMAKE%g
16084 s%@AUTOHEADER@%$AUTOHEADER%g
16085 s%@MAKEINFO@%$MAKEINFO%g
16086 s%@install_sh@%$install_sh%g
16089 s%@AMTARFLAGS@%$AMTARFLAGS%g
16090 s%@SET_MAKE@%$SET_MAKE%g
16091 s%@top_builddir@%$top_builddir%g
16092 s%@ldap_subdir@%$ldap_subdir%g
16094 s%@RANLIB@%$RANLIB%g
16096 s%@DLLTOOL@%$DLLTOOL%g
16098 s%@OBJDUMP@%$OBJDUMP%g
16099 s%@LIBTOOL@%$LIBTOOL%g
16101 s%@SENDMAIL@%$SENDMAIL%g
16102 s%@EDITOR@%$EDITOR%g
16103 s%@FINGER@%$FINGER%g
16105 s%@EXEEXT@%$EXEEXT%g
16106 s%@OBJEXT@%$OBJEXT%g
16107 s%@OL_MKDEP@%$OL_MKDEP%g
16108 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16109 s%@LIBOBJS@%$LIBOBJS%g
16110 s%@LIBSRCS@%$LIBSRCS%g
16112 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16113 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16114 s%@DYN_EXT@%$DYN_EXT%g
16115 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16116 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16117 s%@BUILD_LDAP@%$BUILD_LDAP%g
16118 s%@BUILD_LDBM@%$BUILD_LDBM%g
16119 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16120 s%@BUILD_SHELL@%$BUILD_SHELL%g
16121 s%@BUILD_SQL@%$BUILD_SQL%g
16122 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16123 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16124 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16125 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16126 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16127 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16128 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16129 s%@LDAP_LIBS@%$LDAP_LIBS%g
16130 s%@LDIF_LIBS@%$LDIF_LIBS%g
16131 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16132 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16133 s%@LDBM_LIBS@%$LDBM_LIBS%g
16134 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16135 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16136 s%@WRAP_LIBS@%$WRAP_LIBS%g
16137 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16138 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16139 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16140 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16141 s%@KRB4_LIBS@%$KRB4_LIBS%g
16142 s%@KRB5_LIBS@%$KRB5_LIBS%g
16143 s%@READLINE_LIBS@%$READLINE_LIBS%g
16144 s%@SASL_LIBS@%$SASL_LIBS%g
16145 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16146 s%@TLS_LIBS@%$TLS_LIBS%g
16147 s%@MODULES_LIBS@%$MODULES_LIBS%g
16148 s%@AUTH_LIBS@%$AUTH_LIBS%g
16149 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16150 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16151 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16156 cat >> $CONFIG_STATUS <<\EOF
16158 # Split the substitutions into bite-sized pieces for seds with
16159 # small command number limits, like on Digital OSF/1 and HP-UX.
16160 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16161 ac_file=1 # Number of current file.
16162 ac_beg=1 # First line for current file.
16163 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16166 while $ac_more_lines; do
16167 if test $ac_beg -gt 1; then
16168 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16170 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16172 if test ! -s conftest.s$ac_file; then
16173 ac_more_lines=false
16174 rm -f conftest.s$ac_file
16176 if test -z "$ac_sed_cmds"; then
16177 ac_sed_cmds="sed -f conftest.s$ac_file"
16179 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16181 ac_file=`expr $ac_file + 1`
16183 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16186 if test -z "$ac_sed_cmds"; then
16191 cat >> $CONFIG_STATUS <<EOF
16193 CONFIG_FILES=\${CONFIG_FILES-"\
16194 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16195 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16196 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16197 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16198 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16199 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16200 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16201 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16202 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16203 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16204 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16205 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16206 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16207 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16208 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16209 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16210 include/Makefile:build/top.mk:include/Makefile.in \
16211 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16212 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16213 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16214 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16215 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16216 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16217 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16218 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16219 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16220 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16221 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16222 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16223 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16224 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16225 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16226 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16227 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16228 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16229 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16230 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16231 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16232 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16233 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16234 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16237 cat >> $CONFIG_STATUS <<\EOF
16238 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16241 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16242 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16243 *) ac_file_in="${ac_file}.in" ;;
16246 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16248 # Remove last slash and all that follows it. Not all systems have dirname.
16249 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16251 # The file is in a subdirectory.
16252 test ! -d "$ac_dir" && mkdir "$ac_dir"
16253 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16254 # A "../" for each directory in $ac_dir_suffix.
16255 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16257 ac_dir_suffix= ac_dots=
16260 case "$ac_given_srcdir" in
16262 if test -z "$ac_dots"; then top_srcdir=.
16263 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16264 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16265 *) # Relative path.
16266 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16267 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16270 case "$ac_given_INSTALL" in
16271 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16272 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16275 echo creating "$ac_file"
16277 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16279 *[Mm]akefile*) ac_comsub="1i\\
16280 # $configure_input" ;;
16284 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16286 s%@configure_input@%$configure_input%g
16287 s%@srcdir@%$srcdir%g
16288 s%@top_srcdir@%$top_srcdir%g
16289 s%@INSTALL@%$INSTALL%g
16290 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16294 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16295 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16297 # ac_d sets the value in "#define NAME VALUE" lines.
16298 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16299 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16302 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16303 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16304 ac_uB='\([ ]\)%\1#\2define\3'
16307 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16308 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16309 ac_eB='$%\1#\2define\3'
16313 if test "${CONFIG_HEADERS+set}" != set; then
16315 cat >> $CONFIG_STATUS <<EOF
16316 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16318 cat >> $CONFIG_STATUS <<\EOF
16320 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16323 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16324 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16325 *) ac_file_in="${ac_file}.in" ;;
16328 echo creating $ac_file
16330 rm -f conftest.frag conftest.in conftest.out
16331 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16332 cat $ac_file_inputs > conftest.in
16336 # Transform confdefs.h into a sed script conftest.vals that substitutes
16337 # the proper values into config.h.in to produce config.h. And first:
16338 # Protect against being on the right side of a sed subst in config.status.
16339 # Protect against being in an unquoted here document in config.status.
16340 rm -f conftest.vals
16341 cat > conftest.hdr <<\EOF
16344 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16348 sed -n -f conftest.hdr confdefs.h > conftest.vals
16351 # This sed command replaces #undef with comments. This is necessary, for
16352 # example, in the case of _POSIX_SOURCE, which is predefined and required
16353 # on some systems where configure will not decide to define it.
16354 cat >> conftest.vals <<\EOF
16355 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16358 # Break up conftest.vals because some shells have a limit on
16359 # the size of here documents, and old seds have small limits too.
16361 rm -f conftest.tail
16364 ac_lines=`grep -c . conftest.vals`
16365 # grep -c gives empty output for an empty file on some AIX systems.
16366 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16367 # Write a limited-size here document to conftest.frag.
16368 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16369 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16371 sed -f conftest.frag conftest.in > conftest.out
16373 mv conftest.out conftest.in
16374 ' >> $CONFIG_STATUS
16375 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16376 rm -f conftest.vals
16377 mv conftest.tail conftest.vals
16379 rm -f conftest.vals
16381 cat >> $CONFIG_STATUS <<\EOF
16382 rm -f conftest.frag conftest.h
16383 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16384 cat conftest.in >> conftest.h
16386 if cmp -s $ac_file conftest.h 2>/dev/null; then
16387 echo "$ac_file is unchanged"
16390 # Remove last slash and all that follows it. Not all systems have dirname.
16391 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16393 # The file is in a subdirectory.
16394 test ! -d "$ac_dir" && mkdir "$ac_dir"
16397 mv conftest.h $ac_file
16402 cat >> $CONFIG_STATUS <<EOF
16405 cat >> $CONFIG_STATUS <<\EOF
16408 echo Please \"make depend\" to build dependencies
16412 chmod +x $CONFIG_STATUS
16413 rm -fr confdefs* $ac_clean_files
16414 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1