3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.16 2000/09/20 19:32:39 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 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5519 echo "configure:5520: checking INET6_ADDRSTRLEN" >&5
5520 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5528 # include <netinet/in.h>
5529 # ifdef INET6_ADDRSTRLEN
5530 __has_inet6_addrstrlen__;
5534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5537 ol_cv_inet6_addrstrlen=yes
5540 ol_cv_inet6_addrstrlen=no
5546 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5548 if test $ol_cv_inet6_addrstrlen = yes ; then
5550 elif test $ol_enable_ipv6 = yes ; then
5551 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5555 if test $ol_enable_local != no ; then
5556 for ac_hdr in sys/un.h
5558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5560 echo "configure:5561: checking for $ac_hdr" >&5
5561 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5570 { (eval echo configure:5571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5572 if test -z "$ac_err"; then
5574 eval "ac_cv_header_$ac_safe=yes"
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 eval "ac_cv_header_$ac_safe=no"
5584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5587 cat >> confdefs.h <<EOF
5588 #define $ac_tr_hdr 1
5592 echo "$ac_t""no" 1>&6
5597 if test $ol_enable_local = auto ; then
5598 ol_enable_local=$ac_cv_header_sys_un_h
5599 elif test $ac_cv_header_sys_un_h = no ; then
5600 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5609 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5610 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5611 -o $ol_with_kerberos = k425 ; then
5613 for ac_hdr in krb5.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 $ac_cv_header_krb5_h = yes ; then
5655 for ac_hdr in heim_err.h
5657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_hdr" >&5
5660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5669 { (eval echo configure:5670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5671 if test -z "$ac_err"; then
5673 eval "ac_cv_header_$ac_safe=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 eval "ac_cv_header_$ac_safe=no"
5683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_hdr 1
5691 echo "$ac_t""no" 1>&6
5695 if test $ac_cv_header_heim_err_h = yes ; then
5701 if test $krb5_impl = mit; then
5702 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5703 echo "configure:5704: checking for main in -lkrb5" >&5
5704 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5705 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5708 ac_save_LIBS="$LIBS"
5709 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5720 eval "ac_cv_lib_$ac_lib_var=yes"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5725 eval "ac_cv_lib_$ac_lib_var=no"
5728 LIBS="$ac_save_LIBS"
5731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5732 echo "$ac_t""yes" 1>&6
5734 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5736 echo "$ac_t""no" 1>&6
5741 elif test $krb5_impl = heimdal; then
5742 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5743 echo "configure:5744: checking for main in -lkrb5" >&5
5744 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 ac_save_LIBS="$LIBS"
5749 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 eval "ac_cv_lib_$ac_lib_var=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 eval "ac_cv_lib_$ac_lib_var=no"
5768 LIBS="$ac_save_LIBS"
5771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5772 echo "$ac_t""yes" 1>&6
5774 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5776 echo "$ac_t""no" 1>&6
5781 cat >> confdefs.h <<\EOF
5782 #define HAVE_HEIMDAL_KERBEROS 1
5787 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5790 if test $have_krb5 = yes ; then
5793 cat >> confdefs.h <<\EOF
5798 if test $ol_enable_kpasswd != no ; then
5799 ol_link_kpasswd=yes;
5802 if test $ol_with_kerberos = k5only ; then
5803 ol_with_kerberos=found
5806 elif test $ol_with_kerberos != auto ; then
5807 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5813 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5814 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5816 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_hdr" >&5
5821 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5830 { (eval echo configure:5831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5832 if test -z "$ac_err"; then
5834 eval "ac_cv_header_$ac_safe=yes"
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5840 eval "ac_cv_header_$ac_safe=no"
5844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5847 cat >> confdefs.h <<EOF
5848 #define $ac_tr_hdr 1
5852 echo "$ac_t""no" 1>&6
5857 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5858 if test $krb5_impl = mit; then
5859 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5860 echo "configure:5861: checking for main in -lkrb4" >&5
5861 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 ac_save_LIBS="$LIBS"
5866 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 eval "ac_cv_lib_$ac_lib_var=yes"
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 eval "ac_cv_lib_$ac_lib_var=no"
5885 LIBS="$ac_save_LIBS"
5888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5889 echo "$ac_t""yes" 1>&6
5891 KRB4_LIBS="-lkrb4 -ldes425"
5893 echo "$ac_t""no" 1>&6
5898 elif test $krb5_impl = heimdal; then
5899 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5900 echo "configure:5901: checking for main in -lkrb4" >&5
5901 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5903 echo $ac_n "(cached) $ac_c" 1>&6
5905 ac_save_LIBS="$LIBS"
5906 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_lib_$ac_lib_var=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_lib_$ac_lib_var=no"
5925 LIBS="$ac_save_LIBS"
5928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5933 echo "$ac_t""no" 1>&6
5940 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5943 if test $have_k425 = yes ; then
5944 ol_with_kerberos=found
5947 cat >> confdefs.h <<\EOF
5948 #define HAVE_KRB425 1
5951 cat >> confdefs.h <<\EOF
5956 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5957 echo "configure:5958: checking for des_debug in Kerberos libraries" >&5
5958 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5963 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5968 #include <kerberosIV/krb.h>
5969 #include <kerberosIV/des.h>
5970 extern int des_debug;
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5980 ol_cv_var_des_debug=yes
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5985 ol_cv_var_des_debug=no
5992 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5994 if test $ol_cv_var_des_debug = yes ; then
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_DES_DEBUG 1
6006 if test $ol_link_krb5 = yes ; then
6007 ol_with_kerberos=found
6010 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6011 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6013 for ac_hdr in krb.h des.h krb-archaeology.h
6015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6017 echo "configure:6018: checking for $ac_hdr" >&5
6018 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6027 { (eval echo configure:6028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6029 if test -z "$ac_err"; then
6031 eval "ac_cv_header_$ac_safe=yes"
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 eval "ac_cv_header_$ac_safe=no"
6041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6042 echo "$ac_t""yes" 1>&6
6043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6044 cat >> confdefs.h <<EOF
6045 #define $ac_tr_hdr 1
6049 echo "$ac_t""no" 1>&6
6054 if test $ac_cv_header_krb_h = yes ; then
6055 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6056 echo "configure:6057: checking for main in -lkrb" >&5
6057 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 ac_save_LIBS="$LIBS"
6062 LIBS="-lkrb -ldes $LIBS"
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 eval "ac_cv_lib_$ac_lib_var=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_lib_$ac_lib_var=no"
6081 LIBS="$ac_save_LIBS"
6084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6088 echo "$ac_t""no" 1>&6
6093 if test $have_k4 = yes ; then
6094 ol_with_kerberos=found
6097 cat >> confdefs.h <<\EOF
6102 KRB4_LIBS="-lkrb -ldes"
6104 if test $ac_cv_header_krb_archaeology_h = yes ; then
6105 cat >> confdefs.h <<\EOF
6106 #define HAVE_KTH_KERBEROS 1
6114 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6118 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6121 elif test $ol_enable_kbind = yes ; then
6122 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6125 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6126 cat >> confdefs.h <<\EOF
6127 #define HAVE_KERBEROS 1
6131 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6132 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6136 if test $ol_with_tls != no ; then
6137 for ac_hdr in openssl/ssl.h ssl.h
6139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_hdr" >&5
6142 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6151 { (eval echo configure:6152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6153 if test -z "$ac_err"; then
6155 eval "ac_cv_header_$ac_safe=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_header_$ac_safe=no"
6165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6168 cat >> confdefs.h <<EOF
6169 #define $ac_tr_hdr 1
6173 echo "$ac_t""no" 1>&6
6178 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6179 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6180 echo "configure:6181: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6181 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 ac_save_LIBS="$LIBS"
6186 LIBS="-lssl -lcrypto $LIBS"
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6189 "configure"
6189 #include "confdefs.h"
6190 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6193 char SSLeay_add_ssl_algorithms();
6196 SSLeay_add_ssl_algorithms()
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 eval "ac_cv_lib_$ac_lib_var=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 eval "ac_cv_lib_$ac_lib_var=no"
6209 LIBS="$ac_save_LIBS"
6212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6222 if test $have_ssleay = no ; then
6223 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6224 echo "configure:6225: checking for SSL_library_init in -lssl" >&5
6225 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6229 ac_save_LIBS="$LIBS"
6230 LIBS="-lssl -lcrypto $LIBS"
6231 cat > conftest.$ac_ext <<EOF
6232 #line 6233 "configure"
6233 #include "confdefs.h"
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 /* We use char because int might match the return type of a gcc2
6236 builtin and then its argument prototype would still apply. */
6237 char SSL_library_init();
6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 eval "ac_cv_lib_$ac_lib_var=yes"
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6250 eval "ac_cv_lib_$ac_lib_var=no"
6253 LIBS="$ac_save_LIBS"
6256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6261 echo "$ac_t""no" 1>&6
6267 if test $have_ssleay = no ; then
6268 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6269 echo "configure:6270: checking for ssl3_accept in -lssl" >&5
6270 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6272 echo $ac_n "(cached) $ac_c" 1>&6
6274 ac_save_LIBS="$LIBS"
6275 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6290 eval "ac_cv_lib_$ac_lib_var=yes"
6292 echo "configure: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6295 eval "ac_cv_lib_$ac_lib_var=no"
6298 LIBS="$ac_save_LIBS"
6301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6306 echo "$ac_t""no" 1>&6
6312 if test $have_ssleay = yes ; then
6316 cat >> confdefs.h <<\EOF
6317 #define HAVE_SSLEAY 1
6321 if test $need_rsaref = yes; then
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_RSAREF 1
6327 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6329 TLS_LIBS="-lssl -lcrypto"
6335 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6338 if test $ol_link_tls = yes ; then
6339 cat >> confdefs.h <<\EOF
6344 elif test $ol_with_tls = auto ; then
6345 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6346 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6348 elif test $ol_with_tls != no ; then
6349 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6354 gethostbyname_r gethostbyaddr_r \
6357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6358 echo "configure:6359: checking for $ac_func" >&5
6359 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366 which can conflict with char $ac_func(); below. */
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6376 /* The GNU C library defines this for functions which it implements
6377 to always fail with ENOSYS. Some functions are actually named
6378 something starting with __ and the normal name is an alias. */
6379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 eval "ac_cv_func_$ac_func=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6394 eval "ac_cv_func_$ac_func=no"
6399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6402 cat >> confdefs.h <<EOF
6403 #define $ac_tr_func 1
6407 echo "$ac_t""no" 1>&6
6412 if test "$ac_cv_func_ctime_r" = no ; then
6413 ol_cv_func_ctime_r_nargs=0
6415 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6416 echo "configure:6417: checking number of arguments of ctime_r" >&5
6417 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6425 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6428 if { (eval echo configure:6429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6430 ol_cv_func_ctime_r_nargs3=yes
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 ol_cv_func_ctime_r_nargs3=no
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6444 time_t ti; char *buffer; ctime_r(&ti,buffer);
6447 if { (eval echo configure:6448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6449 ol_cv_func_ctime_r_nargs2=yes
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 ol_cv_func_ctime_r_nargs2=no
6458 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6459 $ol_cv_func_ctime_r_nargs2 = no ; then
6461 ol_cv_func_ctime_r_nargs=3
6463 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6464 $ol_cv_func_ctime_r_nargs2 = yes ; then
6466 ol_cv_func_ctime_r_nargs=2
6469 ol_cv_func_ctime_r_nargs=0
6474 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6476 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6477 cat >> confdefs.h <<EOF
6478 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6485 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6486 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6487 echo "configure:6488: checking number of arguments of gethostbyname_r" >&5
6488 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 #include <sys/types.h>
6495 #include <sys/socket.h>
6496 #include <netinet/in.h>
6498 #define BUFSIZE (sizeof(struct hostent)+10)
6500 struct hostent hent; char buffer[BUFSIZE];
6501 int bufsize=BUFSIZE;int h_errno;
6502 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6503 buffer, bufsize, &h_errno);
6506 if { (eval echo configure:6507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6508 ol_cv_func_gethostbyname_r_nargs5=yes
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 ol_cv_func_gethostbyname_r_nargs5=no
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 #include <sys/types.h>
6521 #include <sys/socket.h>
6522 #include <netinet/in.h>
6524 #define BUFSIZE (sizeof(struct hostent)+10)
6526 struct hostent hent;struct hostent *rhent;
6527 char buffer[BUFSIZE];
6528 int bufsize=BUFSIZE;int h_errno;
6529 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6533 if { (eval echo configure:6534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6535 ol_cv_func_gethostbyname_r_nargs6=yes
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 ol_cv_func_gethostbyname_r_nargs6=no
6544 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6545 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6547 ol_cv_func_gethostbyname_r_nargs=5
6549 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6550 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6552 ol_cv_func_gethostbyname_r_nargs=6
6555 ol_cv_func_gethostbyname_r_nargs=0
6560 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6561 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6562 cat >> confdefs.h <<EOF
6563 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6569 ol_cv_func_gethostbyname_r_nargs=0
6572 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6573 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6574 echo "configure:6575: checking number of arguments of gethostbyaddr_r" >&5
6575 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <sys/types.h>
6582 #include <sys/socket.h>
6583 #include <netinet/in.h>
6585 #define BUFSIZE (sizeof(struct hostent)+10)
6587 struct hostent hent; char buffer[BUFSIZE];
6589 size_t alen=sizeof(struct in_addr);
6590 int bufsize=BUFSIZE;int h_errno;
6591 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6592 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6595 if { (eval echo configure:6596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6597 ol_cv_func_gethostbyaddr_r_nargs7=yes
6599 echo "configure: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6602 ol_cv_func_gethostbyaddr_r_nargs7=no
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <sys/types.h>
6610 #include <sys/socket.h>
6611 #include <netinet/in.h>
6613 #define BUFSIZE (sizeof(struct hostent)+10)
6615 struct hostent hent;
6616 struct hostent *rhent; char buffer[BUFSIZE];
6618 size_t alen=sizeof(struct in_addr);
6619 int bufsize=BUFSIZE;int h_errno;
6620 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6621 alen, AF_INET, &hent, buffer, bufsize,
6625 if { (eval echo configure:6626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6627 ol_cv_func_gethostbyaddr_r_nargs8=yes
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 ol_cv_func_gethostbyaddr_r_nargs8=no
6636 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6637 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6639 ol_cv_func_gethostbyaddr_r_nargs=7
6641 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6642 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6644 ol_cv_func_gethostbyaddr_r_nargs=8
6647 ol_cv_func_gethostbyaddr_r_nargs=0
6652 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6653 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6654 cat >> confdefs.h <<EOF
6655 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6661 ol_cv_func_gethostbyaddr_r_nargs=0
6664 if test "$ac_cv_func_ctime_r" = yes \
6665 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6666 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6667 -a "$ac_cv_func_gethostbyname_r" = yes \
6668 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6669 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6670 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6671 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6672 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6675 cat >> confdefs.h <<\EOF
6676 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6683 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6684 -o $ol_with_threads = nt ; then
6687 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6688 echo "configure:6689: checking for NT Threads" >&5
6689 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6693 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6694 echo "configure:6695: checking for _beginthread" >&5
6695 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702 which can conflict with char _beginthread(); below. */
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6707 char _beginthread();
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6725 eval "ac_cv_func__beginthread=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 eval "ac_cv_func__beginthread=no"
6735 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ol_cv_nt_threads=yes
6739 echo "$ac_t""no" 1>&6
6746 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6748 if test $ol_cv_nt_threads = yes ; then
6749 cat >> confdefs.h <<\EOF
6750 #define HAVE_NT_THREADS 1
6756 if test "$ol_cv_nt_threads" = yes ; then
6758 ol_with_threads=found
6759 ol_with_yielding_select=yes
6761 cat >> confdefs.h <<\EOF
6762 #define HAVE_NT_SERVICE_MANAGER 1
6765 cat >> confdefs.h <<\EOF
6766 #define HAVE_NT_EVENT_LOG 1
6771 if test $ol_with_threads = nt ; then
6772 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6776 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6777 -o $ol_with_threads = posix ; then
6779 for ac_hdr in pthread.h
6781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_hdr" >&5
6784 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6797 eval "ac_cv_header_$ac_safe=yes"
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 eval "ac_cv_header_$ac_safe=no"
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6810 cat >> confdefs.h <<EOF
6811 #define $ac_tr_hdr 1
6815 echo "$ac_t""no" 1>&6
6820 if test $ac_cv_header_pthread_h = yes ; then
6821 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6822 echo "configure:6823: checking POSIX thread version" >&5
6823 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6827 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6831 # include <pthread.h>
6832 /* this check could be improved */
6833 # ifdef PTHREAD_ONCE_INIT
6834 pthread_version_final;
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 egrep "pthread_version_final" >/dev/null 2>&1; then
6841 ol_pthread_final=yes
6849 cat > conftest.$ac_ext <<EOF
6850 #line 6851 "configure"
6851 #include "confdefs.h"
6853 # include <pthread.h>
6854 /* this check could be improved */
6855 # ifdef pthread_once_init
6856 pthread_version_draft4;
6860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6861 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6863 ol_pthread_draft4=yes
6866 ol_pthread_draft4=no
6871 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6872 ol_cv_pthread_version=final
6873 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6874 ol_cv_pthread_version=draft4
6876 ol_cv_pthread_version=unknown
6881 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6884 if test $ol_cv_pthread_version = final ; then
6885 cat >> confdefs.h <<\EOF
6886 #define HAVE_PTHREADS_FINAL 1
6889 elif test $ol_cv_pthread_version = draft4 ; then
6890 cat >> confdefs.h <<\EOF
6891 #define HAVE_PTHREADS_D4 1
6895 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6898 # consider threads found
6899 ol_with_threads=found
6902 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6903 echo "configure:6904: checking for LinuxThreads pthread.h" >&5
6904 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 #include <pthread.h>
6912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6913 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6915 ol_cv_header_linux_threads=yes
6918 ol_cv_header_linux_threads=no
6925 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6926 if test $ol_cv_header_linux_threads = yes; then
6927 cat >> confdefs.h <<\EOF
6928 #define HAVE_LINUX_THREADS 1
6934 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6935 echo "configure:6936: checking for GNU Pth pthread.h" >&5
6936 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 #include <pthread.h>
6943 #ifdef _POSIX_THREAD_IS_GNU_PTH
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 egrep "__gnu_pth__" >/dev/null 2>&1; then
6951 ol_cv_header_gnu_pth_pthread_h=yes
6954 ol_cv_header_gnu_pth_pthread_h=no
6961 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6964 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6965 for ac_hdr in sched.h
6967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_hdr" >&5
6970 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6979 { (eval echo configure:6980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6981 if test -z "$ac_err"; then
6983 eval "ac_cv_header_$ac_safe=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_header_$ac_safe=no"
6993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6994 echo "$ac_t""yes" 1>&6
6995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6996 cat >> confdefs.h <<EOF
6997 #define $ac_tr_hdr 1
7001 echo "$ac_t""no" 1>&6
7008 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7009 echo "configure:7010: checking for pthread_create in default libraries" >&5
7010 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7014 if test "$cross_compiling" = yes; then
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 /* pthread test headers */
7019 #include <pthread.h>
7021 #define NULL (void*)0
7024 static void *task(p)
7027 return (void *) (p == NULL);
7032 /* pthread test function */
7035 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7036 /* This system (e.g. AIX) defaults detached; must override */
7037 pthread_attr_t attr;
7039 status = pthread_attr_init(&attr);
7040 if( status ) exit( status );
7042 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7043 if( status ) exit( status );
7047 #if HAVE_PTHREADS_D4
7048 #define ATTR pthread_attr_default
7053 /* make sure pthread_create() isn't just a stub */
7054 status = pthread_create(&t, ATTR, task, NULL);
7055 if( status ) exit( status );
7057 /* make sure pthread_detach() isn't just a stub */
7058 #if HAVE_PTHREADS_D4
7059 status = pthread_detach( &t );
7061 status = pthread_detach( t );
7064 #ifdef HAVE_LINUX_THREADS
7065 pthread_kill_other_threads_np();
7072 if { (eval echo configure:7073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7074 ol_cv_pthread_create=yes
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 ol_cv_pthread_create=no
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* pthread test headers */
7087 #include <pthread.h>
7089 #define NULL (void*)0
7092 static void *task(p)
7095 return (void *) (p == NULL);
7099 int main(argc, argv)
7104 /* pthread test function */
7107 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7108 /* This system (e.g. AIX) defaults detached; must override */
7109 pthread_attr_t attr;
7111 status = pthread_attr_init(&attr);
7112 if( status ) exit( status );
7114 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7115 if( status ) exit( status );
7119 #if HAVE_PTHREADS_D4
7120 #define ATTR pthread_attr_default
7125 /* make sure pthread_create() isn't just a stub */
7126 status = pthread_create(&t, ATTR, task, NULL);
7127 if( status ) exit( status );
7129 /* make sure pthread_detach() isn't just a stub */
7130 #if HAVE_PTHREADS_D4
7131 status = pthread_detach( &t );
7133 status = pthread_detach( t );
7136 #ifdef HAVE_LINUX_THREADS
7137 pthread_kill_other_threads_np();
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7147 ol_cv_pthread_create=yes
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 ol_cv_pthread_create=no
7159 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7161 if test $ol_cv_pthread_create != no ; then
7162 ol_link_threads=posix
7166 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7167 if test "$ol_link_threads" = no ; then
7169 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7170 echo "configure:7171: checking for pthread link with -kthread" >&5
7171 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7177 LIBS="-kthread $LIBS"
7179 if test "$cross_compiling" = yes; then
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* pthread test headers */
7184 #include <pthread.h>
7186 #define NULL (void*)0
7189 static void *task(p)
7192 return (void *) (p == NULL);
7197 /* pthread test function */
7200 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7201 /* This system (e.g. AIX) defaults detached; must override */
7202 pthread_attr_t attr;
7204 status = pthread_attr_init(&attr);
7205 if( status ) exit( status );
7207 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7208 if( status ) exit( status );
7212 #if HAVE_PTHREADS_D4
7213 #define ATTR pthread_attr_default
7218 /* make sure pthread_create() isn't just a stub */
7219 status = pthread_create(&t, ATTR, task, NULL);
7220 if( status ) exit( status );
7222 /* make sure pthread_detach() isn't just a stub */
7223 #if HAVE_PTHREADS_D4
7224 status = pthread_detach( &t );
7226 status = pthread_detach( t );
7229 #ifdef HAVE_LINUX_THREADS
7230 pthread_kill_other_threads_np();
7237 if { (eval echo configure:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7239 ol_cv_pthread_kthread=yes
7241 echo "configure: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7244 ol_cv_pthread_kthread=no
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 /* pthread test headers */
7252 #include <pthread.h>
7254 #define NULL (void*)0
7257 static void *task(p)
7260 return (void *) (p == NULL);
7264 int main(argc, argv)
7269 /* pthread test function */
7272 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7273 /* This system (e.g. AIX) defaults detached; must override */
7274 pthread_attr_t attr;
7276 status = pthread_attr_init(&attr);
7277 if( status ) exit( status );
7279 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7280 if( status ) exit( status );
7284 #if HAVE_PTHREADS_D4
7285 #define ATTR pthread_attr_default
7290 /* make sure pthread_create() isn't just a stub */
7291 status = pthread_create(&t, ATTR, task, NULL);
7292 if( status ) exit( status );
7294 /* make sure pthread_detach() isn't just a stub */
7295 #if HAVE_PTHREADS_D4
7296 status = pthread_detach( &t );
7298 status = pthread_detach( t );
7301 #ifdef HAVE_LINUX_THREADS
7302 pthread_kill_other_threads_np();
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7312 ol_cv_pthread_kthread=yes
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 ol_cv_pthread_kthread=no
7328 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7330 if test $ol_cv_pthread_kthread = yes ; then
7331 ol_link_pthreads="-kthread"
7332 ol_link_threads=posix
7336 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7337 if test "$ol_link_threads" = no ; then
7339 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7340 echo "configure:7341: checking for pthread link with -pthread" >&5
7341 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7347 LIBS="-pthread $LIBS"
7349 if test "$cross_compiling" = yes; then
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* pthread test headers */
7354 #include <pthread.h>
7356 #define NULL (void*)0
7359 static void *task(p)
7362 return (void *) (p == NULL);
7367 /* pthread test function */
7370 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7371 /* This system (e.g. AIX) defaults detached; must override */
7372 pthread_attr_t attr;
7374 status = pthread_attr_init(&attr);
7375 if( status ) exit( status );
7377 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7378 if( status ) exit( status );
7382 #if HAVE_PTHREADS_D4
7383 #define ATTR pthread_attr_default
7388 /* make sure pthread_create() isn't just a stub */
7389 status = pthread_create(&t, ATTR, task, NULL);
7390 if( status ) exit( status );
7392 /* make sure pthread_detach() isn't just a stub */
7393 #if HAVE_PTHREADS_D4
7394 status = pthread_detach( &t );
7396 status = pthread_detach( t );
7399 #ifdef HAVE_LINUX_THREADS
7400 pthread_kill_other_threads_np();
7407 if { (eval echo configure:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 ol_cv_pthread_pthread=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7414 ol_cv_pthread_pthread=no
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 /* pthread test headers */
7422 #include <pthread.h>
7424 #define NULL (void*)0
7427 static void *task(p)
7430 return (void *) (p == NULL);
7434 int main(argc, argv)
7439 /* pthread test function */
7442 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7443 /* This system (e.g. AIX) defaults detached; must override */
7444 pthread_attr_t attr;
7446 status = pthread_attr_init(&attr);
7447 if( status ) exit( status );
7449 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7450 if( status ) exit( status );
7454 #if HAVE_PTHREADS_D4
7455 #define ATTR pthread_attr_default
7460 /* make sure pthread_create() isn't just a stub */
7461 status = pthread_create(&t, ATTR, task, NULL);
7462 if( status ) exit( status );
7464 /* make sure pthread_detach() isn't just a stub */
7465 #if HAVE_PTHREADS_D4
7466 status = pthread_detach( &t );
7468 status = pthread_detach( t );
7471 #ifdef HAVE_LINUX_THREADS
7472 pthread_kill_other_threads_np();
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7482 ol_cv_pthread_pthread=yes
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 ol_cv_pthread_pthread=no
7498 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7500 if test $ol_cv_pthread_pthread = yes ; then
7501 ol_link_pthreads="-pthread"
7502 ol_link_threads=posix
7506 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7507 if test "$ol_link_threads" = no ; then
7509 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7510 echo "configure:7511: checking for pthread link with -pthreads" >&5
7511 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7517 LIBS="-pthreads $LIBS"
7519 if test "$cross_compiling" = yes; then
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* pthread test headers */
7524 #include <pthread.h>
7526 #define NULL (void*)0
7529 static void *task(p)
7532 return (void *) (p == NULL);
7537 /* pthread test function */
7540 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7541 /* This system (e.g. AIX) defaults detached; must override */
7542 pthread_attr_t attr;
7544 status = pthread_attr_init(&attr);
7545 if( status ) exit( status );
7547 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7548 if( status ) exit( status );
7552 #if HAVE_PTHREADS_D4
7553 #define ATTR pthread_attr_default
7558 /* make sure pthread_create() isn't just a stub */
7559 status = pthread_create(&t, ATTR, task, NULL);
7560 if( status ) exit( status );
7562 /* make sure pthread_detach() isn't just a stub */
7563 #if HAVE_PTHREADS_D4
7564 status = pthread_detach( &t );
7566 status = pthread_detach( t );
7569 #ifdef HAVE_LINUX_THREADS
7570 pthread_kill_other_threads_np();
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579 ol_cv_pthread_pthreads=yes
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 ol_cv_pthread_pthreads=no
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* pthread test headers */
7592 #include <pthread.h>
7594 #define NULL (void*)0
7597 static void *task(p)
7600 return (void *) (p == NULL);
7604 int main(argc, argv)
7609 /* pthread test function */
7612 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7613 /* This system (e.g. AIX) defaults detached; must override */
7614 pthread_attr_t attr;
7616 status = pthread_attr_init(&attr);
7617 if( status ) exit( status );
7619 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7620 if( status ) exit( status );
7624 #if HAVE_PTHREADS_D4
7625 #define ATTR pthread_attr_default
7630 /* make sure pthread_create() isn't just a stub */
7631 status = pthread_create(&t, ATTR, task, NULL);
7632 if( status ) exit( status );
7634 /* make sure pthread_detach() isn't just a stub */
7635 #if HAVE_PTHREADS_D4
7636 status = pthread_detach( &t );
7638 status = pthread_detach( t );
7641 #ifdef HAVE_LINUX_THREADS
7642 pthread_kill_other_threads_np();
7650 if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7652 ol_cv_pthread_pthreads=yes
7654 echo "configure: failed program was:" >&5
7655 cat conftest.$ac_ext >&5
7657 ol_cv_pthread_pthreads=no
7668 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7670 if test $ol_cv_pthread_pthreads = yes ; then
7671 ol_link_pthreads="-pthreads"
7672 ol_link_threads=posix
7676 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7677 if test "$ol_link_threads" = no ; then
7679 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7680 echo "configure:7681: checking for pthread link with -mthreads" >&5
7681 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7687 LIBS="-mthreads $LIBS"
7689 if test "$cross_compiling" = yes; then
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* pthread test headers */
7694 #include <pthread.h>
7696 #define NULL (void*)0
7699 static void *task(p)
7702 return (void *) (p == NULL);
7707 /* pthread test function */
7710 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7711 /* This system (e.g. AIX) defaults detached; must override */
7712 pthread_attr_t attr;
7714 status = pthread_attr_init(&attr);
7715 if( status ) exit( status );
7717 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7718 if( status ) exit( status );
7722 #if HAVE_PTHREADS_D4
7723 #define ATTR pthread_attr_default
7728 /* make sure pthread_create() isn't just a stub */
7729 status = pthread_create(&t, ATTR, task, NULL);
7730 if( status ) exit( status );
7732 /* make sure pthread_detach() isn't just a stub */
7733 #if HAVE_PTHREADS_D4
7734 status = pthread_detach( &t );
7736 status = pthread_detach( t );
7739 #ifdef HAVE_LINUX_THREADS
7740 pthread_kill_other_threads_np();
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 ol_cv_pthread_mthreads=yes
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7754 ol_cv_pthread_mthreads=no
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* pthread test headers */
7762 #include <pthread.h>
7764 #define NULL (void*)0
7767 static void *task(p)
7770 return (void *) (p == NULL);
7774 int main(argc, argv)
7779 /* pthread test function */
7782 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7783 /* This system (e.g. AIX) defaults detached; must override */
7784 pthread_attr_t attr;
7786 status = pthread_attr_init(&attr);
7787 if( status ) exit( status );
7789 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7790 if( status ) exit( status );
7794 #if HAVE_PTHREADS_D4
7795 #define ATTR pthread_attr_default
7800 /* make sure pthread_create() isn't just a stub */
7801 status = pthread_create(&t, ATTR, task, NULL);
7802 if( status ) exit( status );
7804 /* make sure pthread_detach() isn't just a stub */
7805 #if HAVE_PTHREADS_D4
7806 status = pthread_detach( &t );
7808 status = pthread_detach( t );
7811 #ifdef HAVE_LINUX_THREADS
7812 pthread_kill_other_threads_np();
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7822 ol_cv_pthread_mthreads=yes
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7827 ol_cv_pthread_mthreads=no
7838 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7840 if test $ol_cv_pthread_mthreads = yes ; then
7841 ol_link_pthreads="-mthreads"
7842 ol_link_threads=posix
7846 # Pthread try link: -thread (ol_cv_pthread_thread)
7847 if test "$ol_link_threads" = no ; then
7849 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7850 echo "configure:7851: checking for pthread link with -thread" >&5
7851 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7857 LIBS="-thread $LIBS"
7859 if test "$cross_compiling" = yes; then
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* pthread test headers */
7864 #include <pthread.h>
7866 #define NULL (void*)0
7869 static void *task(p)
7872 return (void *) (p == NULL);
7877 /* pthread test function */
7880 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7881 /* This system (e.g. AIX) defaults detached; must override */
7882 pthread_attr_t attr;
7884 status = pthread_attr_init(&attr);
7885 if( status ) exit( status );
7887 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7888 if( status ) exit( status );
7892 #if HAVE_PTHREADS_D4
7893 #define ATTR pthread_attr_default
7898 /* make sure pthread_create() isn't just a stub */
7899 status = pthread_create(&t, ATTR, task, NULL);
7900 if( status ) exit( status );
7902 /* make sure pthread_detach() isn't just a stub */
7903 #if HAVE_PTHREADS_D4
7904 status = pthread_detach( &t );
7906 status = pthread_detach( t );
7909 #ifdef HAVE_LINUX_THREADS
7910 pthread_kill_other_threads_np();
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7919 ol_cv_pthread_thread=yes
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 ol_cv_pthread_thread=no
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* pthread test headers */
7932 #include <pthread.h>
7934 #define NULL (void*)0
7937 static void *task(p)
7940 return (void *) (p == NULL);
7944 int main(argc, argv)
7949 /* pthread test function */
7952 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7953 /* This system (e.g. AIX) defaults detached; must override */
7954 pthread_attr_t attr;
7956 status = pthread_attr_init(&attr);
7957 if( status ) exit( status );
7959 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7960 if( status ) exit( status );
7964 #if HAVE_PTHREADS_D4
7965 #define ATTR pthread_attr_default
7970 /* make sure pthread_create() isn't just a stub */
7971 status = pthread_create(&t, ATTR, task, NULL);
7972 if( status ) exit( status );
7974 /* make sure pthread_detach() isn't just a stub */
7975 #if HAVE_PTHREADS_D4
7976 status = pthread_detach( &t );
7978 status = pthread_detach( t );
7981 #ifdef HAVE_LINUX_THREADS
7982 pthread_kill_other_threads_np();
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7992 ol_cv_pthread_thread=yes
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 ol_cv_pthread_thread=no
8008 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8010 if test $ol_cv_pthread_thread = yes ; then
8011 ol_link_pthreads="-thread"
8012 ol_link_threads=posix
8017 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8018 if test "$ol_link_threads" = no ; then
8019 # try -lpthread -lmach -lexc -lc_r
8020 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8021 echo "configure:8022: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8022 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8028 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8030 if test "$cross_compiling" = yes; then
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8034 /* pthread test headers */
8035 #include <pthread.h>
8037 #define NULL (void*)0
8040 static void *task(p)
8043 return (void *) (p == NULL);
8048 /* pthread test function */
8051 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8052 /* This system (e.g. AIX) defaults detached; must override */
8053 pthread_attr_t attr;
8055 status = pthread_attr_init(&attr);
8056 if( status ) exit( status );
8058 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8059 if( status ) exit( status );
8063 #if HAVE_PTHREADS_D4
8064 #define ATTR pthread_attr_default
8069 /* make sure pthread_create() isn't just a stub */
8070 status = pthread_create(&t, ATTR, task, NULL);
8071 if( status ) exit( status );
8073 /* make sure pthread_detach() isn't just a stub */
8074 #if HAVE_PTHREADS_D4
8075 status = pthread_detach( &t );
8077 status = pthread_detach( t );
8080 #ifdef HAVE_LINUX_THREADS
8081 pthread_kill_other_threads_np();
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8090 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8095 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* pthread test headers */
8103 #include <pthread.h>
8105 #define NULL (void*)0
8108 static void *task(p)
8111 return (void *) (p == NULL);
8115 int main(argc, argv)
8120 /* pthread test function */
8123 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8124 /* This system (e.g. AIX) defaults detached; must override */
8125 pthread_attr_t attr;
8127 status = pthread_attr_init(&attr);
8128 if( status ) exit( status );
8130 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8131 if( status ) exit( status );
8135 #if HAVE_PTHREADS_D4
8136 #define ATTR pthread_attr_default
8141 /* make sure pthread_create() isn't just a stub */
8142 status = pthread_create(&t, ATTR, task, NULL);
8143 if( status ) exit( status );
8145 /* make sure pthread_detach() isn't just a stub */
8146 #if HAVE_PTHREADS_D4
8147 status = pthread_detach( &t );
8149 status = pthread_detach( t );
8152 #ifdef HAVE_LINUX_THREADS
8153 pthread_kill_other_threads_np();
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8163 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8179 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8181 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8182 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8183 ol_link_threads=posix
8187 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8188 if test "$ol_link_threads" = no ; then
8189 # try -lpthread -lmach -lexc
8190 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8191 echo "configure:8192: checking for pthread link with -lpthread -lmach -lexc" >&5
8192 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8198 LIBS="-lpthread -lmach -lexc $LIBS"
8200 if test "$cross_compiling" = yes; then
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* pthread test headers */
8205 #include <pthread.h>
8207 #define NULL (void*)0
8210 static void *task(p)
8213 return (void *) (p == NULL);
8218 /* pthread test function */
8221 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8222 /* This system (e.g. AIX) defaults detached; must override */
8223 pthread_attr_t attr;
8225 status = pthread_attr_init(&attr);
8226 if( status ) exit( status );
8228 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8229 if( status ) exit( status );
8233 #if HAVE_PTHREADS_D4
8234 #define ATTR pthread_attr_default
8239 /* make sure pthread_create() isn't just a stub */
8240 status = pthread_create(&t, ATTR, task, NULL);
8241 if( status ) exit( status );
8243 /* make sure pthread_detach() isn't just a stub */
8244 #if HAVE_PTHREADS_D4
8245 status = pthread_detach( &t );
8247 status = pthread_detach( t );
8250 #ifdef HAVE_LINUX_THREADS
8251 pthread_kill_other_threads_np();
8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8260 ol_cv_pthread_lpthread_lmach_lexc=yes
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8265 ol_cv_pthread_lpthread_lmach_lexc=no
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 /* pthread test headers */
8273 #include <pthread.h>
8275 #define NULL (void*)0
8278 static void *task(p)
8281 return (void *) (p == NULL);
8285 int main(argc, argv)
8290 /* pthread test function */
8293 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8294 /* This system (e.g. AIX) defaults detached; must override */
8295 pthread_attr_t attr;
8297 status = pthread_attr_init(&attr);
8298 if( status ) exit( status );
8300 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8301 if( status ) exit( status );
8305 #if HAVE_PTHREADS_D4
8306 #define ATTR pthread_attr_default
8311 /* make sure pthread_create() isn't just a stub */
8312 status = pthread_create(&t, ATTR, task, NULL);
8313 if( status ) exit( status );
8315 /* make sure pthread_detach() isn't just a stub */
8316 #if HAVE_PTHREADS_D4
8317 status = pthread_detach( &t );
8319 status = pthread_detach( t );
8322 #ifdef HAVE_LINUX_THREADS
8323 pthread_kill_other_threads_np();
8331 if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8333 ol_cv_pthread_lpthread_lmach_lexc=yes
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 ol_cv_pthread_lpthread_lmach_lexc=no
8349 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8351 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8352 ol_link_pthreads="-lpthread -lmach -lexc"
8353 ol_link_threads=posix
8358 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8359 if test "$ol_link_threads" = no ; then
8360 # try -lpthread -Wl,-woff,85
8361 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8362 echo "configure:8363: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8363 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8369 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8371 if test "$cross_compiling" = yes; then
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* pthread test headers */
8376 #include <pthread.h>
8378 #define NULL (void*)0
8381 static void *task(p)
8384 return (void *) (p == NULL);
8389 /* pthread test function */
8392 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8393 /* This system (e.g. AIX) defaults detached; must override */
8394 pthread_attr_t attr;
8396 status = pthread_attr_init(&attr);
8397 if( status ) exit( status );
8399 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8400 if( status ) exit( status );
8404 #if HAVE_PTHREADS_D4
8405 #define ATTR pthread_attr_default
8410 /* make sure pthread_create() isn't just a stub */
8411 status = pthread_create(&t, ATTR, task, NULL);
8412 if( status ) exit( status );
8414 /* make sure pthread_detach() isn't just a stub */
8415 #if HAVE_PTHREADS_D4
8416 status = pthread_detach( &t );
8418 status = pthread_detach( t );
8421 #ifdef HAVE_LINUX_THREADS
8422 pthread_kill_other_threads_np();
8429 if { (eval echo configure:8430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8431 ol_cv_pthread_lib_lpthread_woff=yes
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 ol_cv_pthread_lib_lpthread_woff=no
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* pthread test headers */
8444 #include <pthread.h>
8446 #define NULL (void*)0
8449 static void *task(p)
8452 return (void *) (p == NULL);
8456 int main(argc, argv)
8461 /* pthread test function */
8464 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8465 /* This system (e.g. AIX) defaults detached; must override */
8466 pthread_attr_t attr;
8468 status = pthread_attr_init(&attr);
8469 if( status ) exit( status );
8471 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8472 if( status ) exit( status );
8476 #if HAVE_PTHREADS_D4
8477 #define ATTR pthread_attr_default
8482 /* make sure pthread_create() isn't just a stub */
8483 status = pthread_create(&t, ATTR, task, NULL);
8484 if( status ) exit( status );
8486 /* make sure pthread_detach() isn't just a stub */
8487 #if HAVE_PTHREADS_D4
8488 status = pthread_detach( &t );
8490 status = pthread_detach( t );
8493 #ifdef HAVE_LINUX_THREADS
8494 pthread_kill_other_threads_np();
8502 if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8504 ol_cv_pthread_lib_lpthread_woff=yes
8506 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8509 ol_cv_pthread_lib_lpthread_woff=no
8520 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8522 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8523 ol_link_pthreads="-lpthread -Wl,-woff,85"
8524 ol_link_threads=posix
8529 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8530 if test "$ol_link_threads" = no ; then
8532 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8533 echo "configure:8534: checking for pthread link with -lpthread" >&5
8534 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8540 LIBS="-lpthread $LIBS"
8542 if test "$cross_compiling" = yes; then
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* pthread test headers */
8547 #include <pthread.h>
8549 #define NULL (void*)0
8552 static void *task(p)
8555 return (void *) (p == NULL);
8560 /* pthread test function */
8563 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8564 /* This system (e.g. AIX) defaults detached; must override */
8565 pthread_attr_t attr;
8567 status = pthread_attr_init(&attr);
8568 if( status ) exit( status );
8570 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8571 if( status ) exit( status );
8575 #if HAVE_PTHREADS_D4
8576 #define ATTR pthread_attr_default
8581 /* make sure pthread_create() isn't just a stub */
8582 status = pthread_create(&t, ATTR, task, NULL);
8583 if( status ) exit( status );
8585 /* make sure pthread_detach() isn't just a stub */
8586 #if HAVE_PTHREADS_D4
8587 status = pthread_detach( &t );
8589 status = pthread_detach( t );
8592 #ifdef HAVE_LINUX_THREADS
8593 pthread_kill_other_threads_np();
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 ol_cv_pthread_lpthread=yes
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8607 ol_cv_pthread_lpthread=no
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 /* pthread test headers */
8615 #include <pthread.h>
8617 #define NULL (void*)0
8620 static void *task(p)
8623 return (void *) (p == NULL);
8627 int main(argc, argv)
8632 /* pthread test function */
8635 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8636 /* This system (e.g. AIX) defaults detached; must override */
8637 pthread_attr_t attr;
8639 status = pthread_attr_init(&attr);
8640 if( status ) exit( status );
8642 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8643 if( status ) exit( status );
8647 #if HAVE_PTHREADS_D4
8648 #define ATTR pthread_attr_default
8653 /* make sure pthread_create() isn't just a stub */
8654 status = pthread_create(&t, ATTR, task, NULL);
8655 if( status ) exit( status );
8657 /* make sure pthread_detach() isn't just a stub */
8658 #if HAVE_PTHREADS_D4
8659 status = pthread_detach( &t );
8661 status = pthread_detach( t );
8664 #ifdef HAVE_LINUX_THREADS
8665 pthread_kill_other_threads_np();
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8675 ol_cv_pthread_lpthread=yes
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 ol_cv_pthread_lpthread=no
8691 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8693 if test $ol_cv_pthread_lpthread = yes ; then
8694 ol_link_pthreads="-lpthread"
8695 ol_link_threads=posix
8699 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8700 if test "$ol_link_threads" = no ; then
8702 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8703 echo "configure:8704: checking for pthread link with -lc_r" >&5
8704 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8705 echo $ac_n "(cached) $ac_c" 1>&6
8712 if test "$cross_compiling" = yes; then
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 /* pthread test headers */
8717 #include <pthread.h>
8719 #define NULL (void*)0
8722 static void *task(p)
8725 return (void *) (p == NULL);
8730 /* pthread test function */
8733 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8734 /* This system (e.g. AIX) defaults detached; must override */
8735 pthread_attr_t attr;
8737 status = pthread_attr_init(&attr);
8738 if( status ) exit( status );
8740 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8741 if( status ) exit( status );
8745 #if HAVE_PTHREADS_D4
8746 #define ATTR pthread_attr_default
8751 /* make sure pthread_create() isn't just a stub */
8752 status = pthread_create(&t, ATTR, task, NULL);
8753 if( status ) exit( status );
8755 /* make sure pthread_detach() isn't just a stub */
8756 #if HAVE_PTHREADS_D4
8757 status = pthread_detach( &t );
8759 status = pthread_detach( t );
8762 #ifdef HAVE_LINUX_THREADS
8763 pthread_kill_other_threads_np();
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 ol_cv_pthread_lc_r=yes
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8777 ol_cv_pthread_lc_r=no
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8784 /* pthread test headers */
8785 #include <pthread.h>
8787 #define NULL (void*)0
8790 static void *task(p)
8793 return (void *) (p == NULL);
8797 int main(argc, argv)
8802 /* pthread test function */
8805 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8806 /* This system (e.g. AIX) defaults detached; must override */
8807 pthread_attr_t attr;
8809 status = pthread_attr_init(&attr);
8810 if( status ) exit( status );
8812 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8813 if( status ) exit( status );
8817 #if HAVE_PTHREADS_D4
8818 #define ATTR pthread_attr_default
8823 /* make sure pthread_create() isn't just a stub */
8824 status = pthread_create(&t, ATTR, task, NULL);
8825 if( status ) exit( status );
8827 /* make sure pthread_detach() isn't just a stub */
8828 #if HAVE_PTHREADS_D4
8829 status = pthread_detach( &t );
8831 status = pthread_detach( t );
8834 #ifdef HAVE_LINUX_THREADS
8835 pthread_kill_other_threads_np();
8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8845 ol_cv_pthread_lc_r=yes
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8850 ol_cv_pthread_lc_r=no
8861 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8863 if test $ol_cv_pthread_lc_r = yes ; then
8864 ol_link_pthreads="-lc_r"
8865 ol_link_threads=posix
8870 # Pthread try link: -threads (ol_cv_pthread_threads)
8871 if test "$ol_link_threads" = no ; then
8873 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8874 echo "configure:8875: checking for pthread link with -threads" >&5
8875 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8881 LIBS="-threads $LIBS"
8883 if test "$cross_compiling" = yes; then
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 /* pthread test headers */
8888 #include <pthread.h>
8890 #define NULL (void*)0
8893 static void *task(p)
8896 return (void *) (p == NULL);
8901 /* pthread test function */
8904 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8905 /* This system (e.g. AIX) defaults detached; must override */
8906 pthread_attr_t attr;
8908 status = pthread_attr_init(&attr);
8909 if( status ) exit( status );
8911 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8912 if( status ) exit( status );
8916 #if HAVE_PTHREADS_D4
8917 #define ATTR pthread_attr_default
8922 /* make sure pthread_create() isn't just a stub */
8923 status = pthread_create(&t, ATTR, task, NULL);
8924 if( status ) exit( status );
8926 /* make sure pthread_detach() isn't just a stub */
8927 #if HAVE_PTHREADS_D4
8928 status = pthread_detach( &t );
8930 status = pthread_detach( t );
8933 #ifdef HAVE_LINUX_THREADS
8934 pthread_kill_other_threads_np();
8941 if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8943 ol_cv_pthread_threads=yes
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8948 ol_cv_pthread_threads=no
8952 cat > conftest.$ac_ext <<EOF
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955 /* pthread test headers */
8956 #include <pthread.h>
8958 #define NULL (void*)0
8961 static void *task(p)
8964 return (void *) (p == NULL);
8968 int main(argc, argv)
8973 /* pthread test function */
8976 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8977 /* This system (e.g. AIX) defaults detached; must override */
8978 pthread_attr_t attr;
8980 status = pthread_attr_init(&attr);
8981 if( status ) exit( status );
8983 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8984 if( status ) exit( status );
8988 #if HAVE_PTHREADS_D4
8989 #define ATTR pthread_attr_default
8994 /* make sure pthread_create() isn't just a stub */
8995 status = pthread_create(&t, ATTR, task, NULL);
8996 if( status ) exit( status );
8998 /* make sure pthread_detach() isn't just a stub */
8999 #if HAVE_PTHREADS_D4
9000 status = pthread_detach( &t );
9002 status = pthread_detach( t );
9005 #ifdef HAVE_LINUX_THREADS
9006 pthread_kill_other_threads_np();
9014 if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9016 ol_cv_pthread_threads=yes
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 ol_cv_pthread_threads=no
9032 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9034 if test $ol_cv_pthread_threads = yes ; then
9035 ol_link_pthreads="-threads"
9036 ol_link_threads=posix
9041 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9042 if test "$ol_link_threads" = no ; then
9043 # try -lpthreads -lmach -lexc -lc_r
9044 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9045 echo "configure:9046: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9046 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9052 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9054 if test "$cross_compiling" = yes; then
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 /* pthread test headers */
9059 #include <pthread.h>
9061 #define NULL (void*)0
9064 static void *task(p)
9067 return (void *) (p == NULL);
9072 /* pthread test function */
9075 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9076 /* This system (e.g. AIX) defaults detached; must override */
9077 pthread_attr_t attr;
9079 status = pthread_attr_init(&attr);
9080 if( status ) exit( status );
9082 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9083 if( status ) exit( status );
9087 #if HAVE_PTHREADS_D4
9088 #define ATTR pthread_attr_default
9093 /* make sure pthread_create() isn't just a stub */
9094 status = pthread_create(&t, ATTR, task, NULL);
9095 if( status ) exit( status );
9097 /* make sure pthread_detach() isn't just a stub */
9098 #if HAVE_PTHREADS_D4
9099 status = pthread_detach( &t );
9101 status = pthread_detach( t );
9104 #ifdef HAVE_LINUX_THREADS
9105 pthread_kill_other_threads_np();
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9114 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 /* pthread test headers */
9127 #include <pthread.h>
9129 #define NULL (void*)0
9132 static void *task(p)
9135 return (void *) (p == NULL);
9139 int main(argc, argv)
9144 /* pthread test function */
9147 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9148 /* This system (e.g. AIX) defaults detached; must override */
9149 pthread_attr_t attr;
9151 status = pthread_attr_init(&attr);
9152 if( status ) exit( status );
9154 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9155 if( status ) exit( status );
9159 #if HAVE_PTHREADS_D4
9160 #define ATTR pthread_attr_default
9165 /* make sure pthread_create() isn't just a stub */
9166 status = pthread_create(&t, ATTR, task, NULL);
9167 if( status ) exit( status );
9169 /* make sure pthread_detach() isn't just a stub */
9170 #if HAVE_PTHREADS_D4
9171 status = pthread_detach( &t );
9173 status = pthread_detach( t );
9176 #ifdef HAVE_LINUX_THREADS
9177 pthread_kill_other_threads_np();
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9187 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9203 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9205 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9206 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9207 ol_link_threads=posix
9211 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9212 if test "$ol_link_threads" = no ; then
9213 # try -lpthreads -lmach -lexc
9214 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9215 echo "configure:9216: checking for pthread link with -lpthreads -lmach -lexc" >&5
9216 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9222 LIBS="-lpthreads -lmach -lexc $LIBS"
9224 if test "$cross_compiling" = yes; then
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 /* pthread test headers */
9229 #include <pthread.h>
9231 #define NULL (void*)0
9234 static void *task(p)
9237 return (void *) (p == NULL);
9242 /* pthread test function */
9245 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9246 /* This system (e.g. AIX) defaults detached; must override */
9247 pthread_attr_t attr;
9249 status = pthread_attr_init(&attr);
9250 if( status ) exit( status );
9252 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9253 if( status ) exit( status );
9257 #if HAVE_PTHREADS_D4
9258 #define ATTR pthread_attr_default
9263 /* make sure pthread_create() isn't just a stub */
9264 status = pthread_create(&t, ATTR, task, NULL);
9265 if( status ) exit( status );
9267 /* make sure pthread_detach() isn't just a stub */
9268 #if HAVE_PTHREADS_D4
9269 status = pthread_detach( &t );
9271 status = pthread_detach( t );
9274 #ifdef HAVE_LINUX_THREADS
9275 pthread_kill_other_threads_np();
9282 if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9284 ol_cv_pthread_lpthreads_lmach_lexc=yes
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9289 ol_cv_pthread_lpthreads_lmach_lexc=no
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 /* pthread test headers */
9297 #include <pthread.h>
9299 #define NULL (void*)0
9302 static void *task(p)
9305 return (void *) (p == NULL);
9309 int main(argc, argv)
9314 /* pthread test function */
9317 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9318 /* This system (e.g. AIX) defaults detached; must override */
9319 pthread_attr_t attr;
9321 status = pthread_attr_init(&attr);
9322 if( status ) exit( status );
9324 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9325 if( status ) exit( status );
9329 #if HAVE_PTHREADS_D4
9330 #define ATTR pthread_attr_default
9335 /* make sure pthread_create() isn't just a stub */
9336 status = pthread_create(&t, ATTR, task, NULL);
9337 if( status ) exit( status );
9339 /* make sure pthread_detach() isn't just a stub */
9340 #if HAVE_PTHREADS_D4
9341 status = pthread_detach( &t );
9343 status = pthread_detach( t );
9346 #ifdef HAVE_LINUX_THREADS
9347 pthread_kill_other_threads_np();
9355 if { (eval echo configure:9356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9357 ol_cv_pthread_lpthreads_lmach_lexc=yes
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9362 ol_cv_pthread_lpthreads_lmach_lexc=no
9373 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9375 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9376 ol_link_pthreads="-lpthreads -lmach -lexc"
9377 ol_link_threads=posix
9381 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9382 if test "$ol_link_threads" = no ; then
9383 # try -lpthreads -lexc
9384 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9385 echo "configure:9386: checking for pthread link with -lpthreads -lexc" >&5
9386 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9392 LIBS="-lpthreads -lexc $LIBS"
9394 if test "$cross_compiling" = yes; then
9395 cat > conftest.$ac_ext <<EOF
9396 #line 9397 "configure"
9397 #include "confdefs.h"
9398 /* pthread test headers */
9399 #include <pthread.h>
9401 #define NULL (void*)0
9404 static void *task(p)
9407 return (void *) (p == NULL);
9412 /* pthread test function */
9415 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9416 /* This system (e.g. AIX) defaults detached; must override */
9417 pthread_attr_t attr;
9419 status = pthread_attr_init(&attr);
9420 if( status ) exit( status );
9422 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9423 if( status ) exit( status );
9427 #if HAVE_PTHREADS_D4
9428 #define ATTR pthread_attr_default
9433 /* make sure pthread_create() isn't just a stub */
9434 status = pthread_create(&t, ATTR, task, NULL);
9435 if( status ) exit( status );
9437 /* make sure pthread_detach() isn't just a stub */
9438 #if HAVE_PTHREADS_D4
9439 status = pthread_detach( &t );
9441 status = pthread_detach( t );
9444 #ifdef HAVE_LINUX_THREADS
9445 pthread_kill_other_threads_np();
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9454 ol_cv_pthread_lpthreads_lexc=yes
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 ol_cv_pthread_lpthreads_lexc=no
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9466 /* pthread test headers */
9467 #include <pthread.h>
9469 #define NULL (void*)0
9472 static void *task(p)
9475 return (void *) (p == NULL);
9479 int main(argc, argv)
9484 /* pthread test function */
9487 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9488 /* This system (e.g. AIX) defaults detached; must override */
9489 pthread_attr_t attr;
9491 status = pthread_attr_init(&attr);
9492 if( status ) exit( status );
9494 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9495 if( status ) exit( status );
9499 #if HAVE_PTHREADS_D4
9500 #define ATTR pthread_attr_default
9505 /* make sure pthread_create() isn't just a stub */
9506 status = pthread_create(&t, ATTR, task, NULL);
9507 if( status ) exit( status );
9509 /* make sure pthread_detach() isn't just a stub */
9510 #if HAVE_PTHREADS_D4
9511 status = pthread_detach( &t );
9513 status = pthread_detach( t );
9516 #ifdef HAVE_LINUX_THREADS
9517 pthread_kill_other_threads_np();
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9527 ol_cv_pthread_lpthreads_lexc=yes
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9532 ol_cv_pthread_lpthreads_lexc=no
9543 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9545 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9546 ol_link_pthreads="-lpthreads -lexc"
9547 ol_link_threads=posix
9552 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9553 if test "$ol_link_threads" = no ; then
9555 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9556 echo "configure:9557: checking for pthread link with -lpthreads" >&5
9557 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9558 echo $ac_n "(cached) $ac_c" 1>&6
9563 LIBS="-lpthreads $LIBS"
9565 if test "$cross_compiling" = yes; then
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 /* pthread test headers */
9570 #include <pthread.h>
9572 #define NULL (void*)0
9575 static void *task(p)
9578 return (void *) (p == NULL);
9583 /* pthread test function */
9586 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9587 /* This system (e.g. AIX) defaults detached; must override */
9588 pthread_attr_t attr;
9590 status = pthread_attr_init(&attr);
9591 if( status ) exit( status );
9593 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9594 if( status ) exit( status );
9598 #if HAVE_PTHREADS_D4
9599 #define ATTR pthread_attr_default
9604 /* make sure pthread_create() isn't just a stub */
9605 status = pthread_create(&t, ATTR, task, NULL);
9606 if( status ) exit( status );
9608 /* make sure pthread_detach() isn't just a stub */
9609 #if HAVE_PTHREADS_D4
9610 status = pthread_detach( &t );
9612 status = pthread_detach( t );
9615 #ifdef HAVE_LINUX_THREADS
9616 pthread_kill_other_threads_np();
9623 if { (eval echo configure:9624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9625 ol_cv_pthread_lib_lpthreads=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 ol_cv_pthread_lib_lpthreads=no
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637 /* pthread test headers */
9638 #include <pthread.h>
9640 #define NULL (void*)0
9643 static void *task(p)
9646 return (void *) (p == NULL);
9650 int main(argc, argv)
9655 /* pthread test function */
9658 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9659 /* This system (e.g. AIX) defaults detached; must override */
9660 pthread_attr_t attr;
9662 status = pthread_attr_init(&attr);
9663 if( status ) exit( status );
9665 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9666 if( status ) exit( status );
9670 #if HAVE_PTHREADS_D4
9671 #define ATTR pthread_attr_default
9676 /* make sure pthread_create() isn't just a stub */
9677 status = pthread_create(&t, ATTR, task, NULL);
9678 if( status ) exit( status );
9680 /* make sure pthread_detach() isn't just a stub */
9681 #if HAVE_PTHREADS_D4
9682 status = pthread_detach( &t );
9684 status = pthread_detach( t );
9687 #ifdef HAVE_LINUX_THREADS
9688 pthread_kill_other_threads_np();
9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9698 ol_cv_pthread_lib_lpthreads=yes
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9703 ol_cv_pthread_lib_lpthreads=no
9714 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9716 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9717 ol_link_pthreads="-lpthreads"
9718 ol_link_threads=posix
9723 if test $ol_link_threads != no ; then
9724 cat >> confdefs.h <<\EOF
9725 #define HAVE_PTHREADS 1
9729 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9731 save_CPPFLAGS="$CPPFLAGS"
9733 LIBS="$LTHREAD_LIBS $LIBS"
9735 for ac_func in sched_yield pthread_yield
9737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9738 echo "configure:9739: checking for $ac_func" >&5
9739 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char $ac_func(); below. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 /* We use char because int might match the return type of a gcc2
9750 builtin and then its argument prototype would still apply. */
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9769 eval "ac_cv_func_$ac_func=yes"
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9774 eval "ac_cv_func_$ac_func=no"
9779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9782 cat >> confdefs.h <<EOF
9783 #define $ac_tr_func 1
9787 echo "$ac_t""no" 1>&6
9792 if test $ac_cv_func_sched_yield = no -a \
9793 $ac_cv_func_pthread_yield = no ; then
9794 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9795 echo "configure:9796: checking for sched_yield in -lrt" >&5
9796 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9798 echo $ac_n "(cached) $ac_c" 1>&6
9800 ac_save_LIBS="$LIBS"
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
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. */
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9816 eval "ac_cv_lib_$ac_lib_var=yes"
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9821 eval "ac_cv_lib_$ac_lib_var=no"
9824 LIBS="$ac_save_LIBS"
9827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9828 echo "$ac_t""yes" 1>&6
9829 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_SCHED_YIELD 1
9834 ac_cv_func_sched_yield=yes
9836 echo "$ac_t""no" 1>&6
9837 ac_cv_func_sched_yield=no
9841 if test $ac_cv_func_sched_yield = no -a \
9842 $ac_cv_func_pthread_yield = no ; then
9843 for ac_func in thr_yield
9845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9846 echo "configure:9847: checking for $ac_func" >&5
9847 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9848 echo $ac_n "(cached) $ac_c" 1>&6
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char $ac_func(); below. */
9856 /* Override any gcc2 internal prototype to avoid an error. */
9857 /* We use char because int might match the return type of a gcc2
9858 builtin and then its argument prototype would still apply. */
9864 /* The GNU C library defines this for functions which it implements
9865 to always fail with ENOSYS. Some functions are actually named
9866 something starting with __ and the normal name is an alias. */
9867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9875 if { (eval echo configure:9876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9877 eval "ac_cv_func_$ac_func=yes"
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9882 eval "ac_cv_func_$ac_func=no"
9887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9888 echo "$ac_t""yes" 1>&6
9889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9890 cat >> confdefs.h <<EOF
9891 #define $ac_tr_func 1
9895 echo "$ac_t""no" 1>&6
9900 if test $ac_cv_func_sched_yield = no -a \
9901 $ac_cv_func_pthread_yield = no -a \
9902 "$ac_cv_func_thr_yield" = no ; then
9903 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9906 for ac_func in pthread_kill pthread_rwlock_destroy
9908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9909 echo "configure:9910: checking for $ac_func" >&5
9910 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char $ac_func(); below. */
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 /* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9938 if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 eval "ac_cv_func_$ac_func=yes"
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9945 eval "ac_cv_func_$ac_func=no"
9950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9951 echo "$ac_t""yes" 1>&6
9952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9953 cat >> confdefs.h <<EOF
9954 #define $ac_tr_func 1
9958 echo "$ac_t""no" 1>&6
9963 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9964 echo "configure:9965: checking for pthread_detach with <pthread.h>" >&5
9965 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9973 #include <pthread.h>
9975 #define NULL (void*)0
9979 pthread_detach(NULL);
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 ol_cv_func_pthread_detach=yes
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 ol_cv_func_pthread_detach=no
9995 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9997 if test $ol_cv_func_pthread_detach = no ; then
9998 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10001 cat >> confdefs.h <<\EOF
10002 #define HAVE_PTHREAD_DETACH 1
10007 pthread_setconcurrency \
10008 pthread_getconcurrency \
10009 thr_setconcurrency \
10010 thr_getconcurrency \
10013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10014 echo "configure:10015: checking for $ac_func" >&5
10015 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10018 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10021 /* System header to define __stub macros and hopefully few prototypes,
10022 which can conflict with char $ac_func(); below. */
10023 #include <assert.h>
10024 /* Override any gcc2 internal prototype to avoid an error. */
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10032 /* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 eval "ac_cv_func_$ac_func=yes"
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 eval "ac_cv_func_$ac_func=no"
10055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10056 echo "$ac_t""yes" 1>&6
10057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10058 cat >> confdefs.h <<EOF
10059 #define $ac_tr_func 1
10063 echo "$ac_t""no" 1>&6
10069 for ac_func in pthread_kill_other_threads_np
10071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10072 echo "configure:10073: checking for $ac_func" >&5
10073 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 /* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char $ac_func(); below. */
10081 #include <assert.h>
10082 /* Override any gcc2 internal prototype to avoid an error. */
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10090 /* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
10093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10101 if { (eval echo configure:10102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103 eval "ac_cv_func_$ac_func=yes"
10105 echo "configure: failed program was:" >&5
10106 cat conftest.$ac_ext >&5
10108 eval "ac_cv_func_$ac_func=no"
10113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10114 echo "$ac_t""yes" 1>&6
10115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10116 cat >> confdefs.h <<EOF
10117 #define $ac_tr_func 1
10121 echo "$ac_t""no" 1>&6
10125 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10126 echo "configure:10127: checking for LinuxThreads implementation" >&5
10127 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10130 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10133 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10138 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10139 echo "configure:10140: checking for LinuxThreads consistency" >&5
10140 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10141 echo $ac_n "(cached) $ac_c" 1>&6
10144 if test $ol_cv_header_linux_threads = yes -a \
10145 $ol_cv_sys_linux_threads = yes; then
10146 ol_cv_linux_threads=yes
10147 elif test $ol_cv_header_linux_threads = no -a \
10148 $ol_cv_sys_linux_threads = no; then
10149 ol_cv_linux_threads=no
10151 ol_cv_linux_threads=error
10156 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10159 if test $ol_cv_linux_threads = error; then
10160 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10163 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10164 echo "configure:10165: checking if pthread_create() works" >&5
10165 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10169 if test "$cross_compiling" = yes; then
10170 ol_cv_pthread_create_works=yes
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 /* pthread test headers */
10176 #include <pthread.h>
10178 #define NULL (void*)0
10181 static void *task(p)
10184 return (void *) (p == NULL);
10188 int main(argc, argv)
10193 /* pthread test function */
10196 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10197 /* This system (e.g. AIX) defaults detached; must override */
10198 pthread_attr_t attr;
10200 status = pthread_attr_init(&attr);
10201 if( status ) exit( status );
10203 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10204 if( status ) exit( status );
10208 #if HAVE_PTHREADS_D4
10209 #define ATTR pthread_attr_default
10214 /* make sure pthread_create() isn't just a stub */
10215 status = pthread_create(&t, ATTR, task, NULL);
10216 if( status ) exit( status );
10218 /* make sure pthread_detach() isn't just a stub */
10219 #if HAVE_PTHREADS_D4
10220 status = pthread_detach( &t );
10222 status = pthread_detach( t );
10225 #ifdef HAVE_LINUX_THREADS
10226 pthread_kill_other_threads_np();
10234 if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10236 ol_cv_pthread_create_works=yes
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10241 ol_cv_pthread_create_works=no
10248 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10250 if test $ol_cv_pthread_create_works = no ; then
10251 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10254 if test $ol_with_yielding_select = auto ; then
10255 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10256 echo "configure:10257: checking if select yields when using pthreads" >&5
10257 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10261 if test "$cross_compiling" = yes; then
10262 ol_cv_pthread_select_yields=cross
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10268 #include <sys/types.h>
10269 #include <sys/time.h>
10270 #include <unistd.h>
10271 #include <pthread.h>
10273 #define NULL (void*) 0
10276 static int fildes[2];
10278 static void *task(p)
10290 FD_SET(fildes[0], &rfds);
10292 /* we're not interested in any fds */
10293 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10300 exit(0); /* if we exit here, the select blocked the whole process */
10303 int main(argc, argv)
10309 /* create a pipe to select */
10310 if(pipe(&fildes[0])) {
10315 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10316 (void) pthread_setconcurrency(2);
10318 #ifdef HAVE_THR_SETCONCURRENCY
10319 /* Set Solaris LWP concurrency to 2 */
10320 thr_setconcurrency(2);
10324 #if HAVE_PTHREADS_D4
10325 pthread_create(&t, pthread_attr_default, task, NULL);
10327 pthread_create(&t, NULL, task, NULL);
10330 #if HAVE_SCHED_YIELD
10331 sched_yield(); /* make sure task runs first */
10333 #ifdef HAVE_PTHREAD_YIELD
10334 pthread_yield(); /* make sure task runs first */
10341 if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10343 ol_cv_pthread_select_yields=no
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10348 ol_cv_pthread_select_yields=yes
10355 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10357 if test $ol_cv_pthread_select_yields = cross ; then
10358 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10361 if test $ol_cv_pthread_select_yields = yes ; then
10362 ol_with_yielding_select=yes
10366 CPPFLAGS="$save_CPPFLAGS"
10369 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10373 if test $ol_with_threads = posix ; then
10374 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10378 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10379 -o $ol_with_threads = mach ; then
10381 for ac_hdr in mach/cthreads.h
10383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10385 echo "configure:10386: checking for $ac_hdr" >&5
10386 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10395 { (eval echo configure:10396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10397 if test -z "$ac_err"; then
10399 eval "ac_cv_header_$ac_safe=yes"
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 eval "ac_cv_header_$ac_safe=no"
10409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10410 echo "$ac_t""yes" 1>&6
10411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10412 cat >> confdefs.h <<EOF
10413 #define $ac_tr_hdr 1
10417 echo "$ac_t""no" 1>&6
10421 if test $ac_cv_header_mach_cthreads_h = yes ; then
10422 ol_with_threads=found
10424 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10425 echo "configure:10426: checking for cthread_fork" >&5
10426 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10432 /* System header to define __stub macros and hopefully few prototypes,
10433 which can conflict with char cthread_fork(); below. */
10434 #include <assert.h>
10435 /* Override any gcc2 internal prototype to avoid an error. */
10436 /* We use char because int might match the return type of a gcc2
10437 builtin and then its argument prototype would still apply. */
10438 char cthread_fork();
10443 /* The GNU C library defines this for functions which it implements
10444 to always fail with ENOSYS. Some functions are actually named
10445 something starting with __ and the normal name is an alias. */
10446 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10454 if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10456 eval "ac_cv_func_cthread_fork=yes"
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 eval "ac_cv_func_cthread_fork=no"
10466 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ol_link_threads=yes
10470 echo "$ac_t""no" 1>&6
10474 if test $ol_link_threads = no ; then
10475 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10476 echo "configure:10477: checking for cthread_fork with -all_load" >&5
10477 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10482 LIBS="-all_load $LIBS"
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <mach/cthreads.h>
10489 cthread_fork((void *)0, (void *)0);
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10495 ol_cv_cthread_all_load=yes
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 ol_cv_cthread_all_load=no
10507 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10509 if test $ol_cv_cthread_all_load = yes ; then
10510 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10511 ol_link_threads=mach
10515 if test $ol_link_threads != no ; then
10516 : check for cthread specific functionality here
10517 cat >> confdefs.h <<\EOF
10518 #define HAVE_MACH_CTHREADS 1
10522 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10526 if test $ol_with_threads = mach ; then
10527 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10531 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10532 -o $ol_with_threads = pth ; then
10534 for ac_hdr in pth.h
10536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10538 echo "configure:10539: checking for $ac_hdr" >&5
10539 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10548 { (eval echo configure:10549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10550 if test -z "$ac_err"; then
10552 eval "ac_cv_header_$ac_safe=yes"
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10558 eval "ac_cv_header_$ac_safe=no"
10562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10563 echo "$ac_t""yes" 1>&6
10564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10565 cat >> confdefs.h <<EOF
10566 #define $ac_tr_hdr 1
10570 echo "$ac_t""no" 1>&6
10575 if test $ac_cv_header_pth_h = yes ; then
10576 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10577 echo "configure:10578: checking for pth_version in -lpth" >&5
10578 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10582 ac_save_LIBS="$LIBS"
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590 char pth_version();
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 eval "ac_cv_lib_$ac_lib_var=no"
10606 LIBS="$ac_save_LIBS"
10609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10613 echo "$ac_t""no" 1>&6
10618 if test $have_pth = yes ; then
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE_GNU_PTH 1
10623 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10624 ol_link_threads=pth
10626 if test $ol_with_yielding_select = auto ; then
10627 ol_with_yielding_select=yes
10633 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10634 -o $ol_with_threads = lwp ; then
10636 for ac_hdr in thread.h synch.h
10638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10640 echo "configure:10641: checking for $ac_hdr" >&5
10641 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10650 { (eval echo configure:10651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10652 if test -z "$ac_err"; then
10654 eval "ac_cv_header_$ac_safe=yes"
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10660 eval "ac_cv_header_$ac_safe=no"
10664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10665 echo "$ac_t""yes" 1>&6
10666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10667 cat >> confdefs.h <<EOF
10668 #define $ac_tr_hdr 1
10672 echo "$ac_t""no" 1>&6
10676 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10677 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10678 echo "configure:10679: checking for thr_create in -lthread" >&5
10679 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10681 echo $ac_n "(cached) $ac_c" 1>&6
10683 ac_save_LIBS="$LIBS"
10684 LIBS="-lthread $LIBS"
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* Override any gcc2 internal prototype to avoid an error. */
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10697 if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10699 eval "ac_cv_lib_$ac_lib_var=yes"
10701 echo "configure: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10704 eval "ac_cv_lib_$ac_lib_var=no"
10707 LIBS="$ac_save_LIBS"
10710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10714 echo "$ac_t""no" 1>&6
10719 if test $have_thr = yes ; then
10720 cat >> confdefs.h <<\EOF
10724 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10725 ol_link_threads=thr
10727 if test $ol_with_yielding_select = auto ; then
10728 ol_with_yielding_select=yes
10732 thr_setconcurrency \
10733 thr_getconcurrency \
10736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10737 echo "configure:10738: checking for $ac_func" >&5
10738 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func(); below. */
10746 #include <assert.h>
10747 /* Override any gcc2 internal prototype to avoid an error. */
10748 /* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10766 if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10768 eval "ac_cv_func_$ac_func=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_func_$ac_func=no"
10778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10781 cat >> confdefs.h <<EOF
10782 #define $ac_tr_func 1
10786 echo "$ac_t""no" 1>&6
10793 for ac_hdr in lwp/lwp.h
10795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10797 echo "configure:10798: checking for $ac_hdr" >&5
10798 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10801 cat > conftest.$ac_ext <<EOF
10802 #line 10803 "configure"
10803 #include "confdefs.h"
10806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10807 { (eval echo configure:10808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10809 if test -z "$ac_err"; then
10811 eval "ac_cv_header_$ac_safe=yes"
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10817 eval "ac_cv_header_$ac_safe=no"
10821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10824 cat >> confdefs.h <<EOF
10825 #define $ac_tr_hdr 1
10829 echo "$ac_t""no" 1>&6
10833 if test $ac_cv_header_lwp_lwp_h = yes ; then
10834 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10835 echo "configure:10836: checking for lwp_create in -llwp" >&5
10836 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10838 echo $ac_n "(cached) $ac_c" 1>&6
10840 ac_save_LIBS="$LIBS"
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 /* Override any gcc2 internal prototype to avoid an error. */
10846 /* We use char because int might match the return type of a gcc2
10847 builtin and then its argument prototype would still apply. */
10854 if { (eval echo configure:10855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10856 eval "ac_cv_lib_$ac_lib_var=yes"
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10861 eval "ac_cv_lib_$ac_lib_var=no"
10864 LIBS="$ac_save_LIBS"
10867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10871 echo "$ac_t""no" 1>&6
10876 if test $have_lwp = yes ; then
10877 cat >> confdefs.h <<\EOF
10881 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10882 ol_link_threads=lwp
10884 if test $ol_with_yielding_select = auto ; then
10885 ol_with_yielding_select=no
10891 if test $ol_with_yielding_select = yes ; then
10892 cat >> confdefs.h <<\EOF
10893 #define HAVE_YIELDING_SELECT 1
10898 if test $ol_with_threads = manual ; then
10899 ol_link_threads=yes
10901 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10903 for ac_hdr in pthread.h sched.h
10905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10907 echo "configure:10908: checking for $ac_hdr" >&5
10908 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10917 { (eval echo configure:10918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10919 if test -z "$ac_err"; then
10921 eval "ac_cv_header_$ac_safe=yes"
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 eval "ac_cv_header_$ac_safe=no"
10931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10934 cat >> confdefs.h <<EOF
10935 #define $ac_tr_hdr 1
10939 echo "$ac_t""no" 1>&6
10943 for ac_func in sched_yield pthread_yield
10945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10946 echo "configure:10947: checking for $ac_func" >&5
10947 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10953 /* System header to define __stub macros and hopefully few prototypes,
10954 which can conflict with char $ac_func(); below. */
10955 #include <assert.h>
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10977 eval "ac_cv_func_$ac_func=yes"
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10982 eval "ac_cv_func_$ac_func=no"
10987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10990 cat >> confdefs.h <<EOF
10991 #define $ac_tr_func 1
10995 echo "$ac_t""no" 1>&6
11000 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11001 echo "configure:11002: checking for LinuxThreads pthread.h" >&5
11002 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include <pthread.h>
11010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11011 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11013 ol_cv_header_linux_threads=yes
11016 ol_cv_header_linux_threads=no
11023 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11024 if test $ol_cv_header_linux_threads = yes; then
11025 cat >> confdefs.h <<\EOF
11026 #define HAVE_LINUX_THREADS 1
11032 for ac_hdr in mach/cthreads.h
11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11036 echo "configure:11037: checking for $ac_hdr" >&5
11037 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11046 { (eval echo configure:11047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11048 if test -z "$ac_err"; then
11050 eval "ac_cv_header_$ac_safe=yes"
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 eval "ac_cv_header_$ac_safe=no"
11060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11061 echo "$ac_t""yes" 1>&6
11062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11063 cat >> confdefs.h <<EOF
11064 #define $ac_tr_hdr 1
11068 echo "$ac_t""no" 1>&6
11072 for ac_hdr in lwp/lwp.h
11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11076 echo "configure:11077: checking for $ac_hdr" >&5
11077 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11086 { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11088 if test -z "$ac_err"; then
11090 eval "ac_cv_header_$ac_safe=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 eval "ac_cv_header_$ac_safe=no"
11100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11103 cat >> confdefs.h <<EOF
11104 #define $ac_tr_hdr 1
11108 echo "$ac_t""no" 1>&6
11112 for ac_hdr in thread.h synch.h
11114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11116 echo "configure:11117: checking for $ac_hdr" >&5
11117 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11126 { (eval echo configure:11127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11128 if test -z "$ac_err"; then
11130 eval "ac_cv_header_$ac_safe=yes"
11133 echo "configure: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11136 eval "ac_cv_header_$ac_safe=no"
11140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11143 cat >> confdefs.h <<EOF
11144 #define $ac_tr_hdr 1
11148 echo "$ac_t""no" 1>&6
11154 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11155 cat >> confdefs.h <<\EOF
11156 #define REENTRANT 1
11159 cat >> confdefs.h <<\EOF
11160 #define _REENTRANT 1
11163 cat >> confdefs.h <<\EOF
11164 #define THREAD_SAFE 1
11167 cat >> confdefs.h <<\EOF
11168 #define _THREAD_SAFE 1
11171 cat >> confdefs.h <<\EOF
11172 #define THREADSAFE 1
11175 cat >> confdefs.h <<\EOF
11176 #define _THREADSAFE 1
11179 cat >> confdefs.h <<\EOF
11180 #define _SGI_MP_SOURCE 1
11184 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11185 echo "configure:11186: checking for thread specific errno" >&5
11186 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11190 cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11198 if { (eval echo configure:11199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11200 ol_cv_errno_thread_specific=yes
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11205 ol_cv_errno_thread_specific=no
11211 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11213 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11214 echo "configure:11215: checking for thread specific h_errno" >&5
11215 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11216 echo $ac_n "(cached) $ac_c" 1>&6
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11229 ol_cv_h_errno_thread_specific=yes
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11234 ol_cv_h_errno_thread_specific=no
11240 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11242 if test $ol_cv_errno_thread_specific != yes \
11243 -o $ol_cv_h_errno_thread_specific != yes ; then
11244 LIBS="$LTHREAD_LIBS $LIBS"
11250 if test $ol_link_threads = no ; then
11251 if test $ol_with_threads = yes ; then
11252 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11255 if test $ol_with_threads = auto ; then
11256 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11260 cat >> confdefs.h <<\EOF
11261 #define NO_THREADS 1
11267 if test $ol_link_threads != no ; then
11268 cat >> confdefs.h <<\EOF
11269 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11276 if test $ol_with_ldbm_api = auto \
11277 -o $ol_with_ldbm_api = berkeley \
11278 -o $ol_with_ldbm_api = bcompat ; then
11280 if test $ol_with_ldbm_api = bcompat; then \
11281 ol_cv_berkeley_db=no
11282 for ac_hdr in db_185.h db.h
11284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11286 echo "configure:11287: checking for $ac_hdr" >&5
11287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11296 { (eval echo configure:11297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11298 if test -z "$ac_err"; then
11300 eval "ac_cv_header_$ac_safe=yes"
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 eval "ac_cv_header_$ac_safe=no"
11310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11311 echo "$ac_t""yes" 1>&6
11312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11313 cat >> confdefs.h <<EOF
11314 #define $ac_tr_hdr 1
11318 echo "$ac_t""no" 1>&6
11322 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11323 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11324 echo "configure:11325: checking if Berkeley DB header compatibility" >&5
11325 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11326 echo $ac_n "(cached) $ac_c" 1>&6
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11334 # include <db_185.h>
11339 /* this check could be improved */
11340 #ifndef DB_VERSION_MAJOR
11341 # define DB_VERSION_MAJOR 1
11344 #if DB_VERSION_MAJOR == 1
11349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11350 egrep "__db_version_1" >/dev/null 2>&1; then
11352 ol_cv_header_db1=yes
11355 ol_cv_header_db1=no
11361 echo "$ac_t""$ol_cv_header_db1" 1>&6
11363 if test ol_cv_header_db1=yes ; then
11365 if test $ol_cv_lib_db = no ; then
11366 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11367 echo "configure:11368: checking for Berkeley DB link (default)" >&5
11368 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11374 LIBS="$ol_DB_LIB $LIBS"
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11380 #ifdef HAVE_DB_185_H
11381 # include <db_185.h>
11386 #ifndef DB_VERSION_MAJOR
11387 # define DB_VERSION_MAJOR 1
11391 #define NULL ((void*)0)
11396 #if DB_VERSION_MAJOR > 2
11397 db_env_create( NULL, 0 );
11398 #elif DB_VERSION_MAJOR > 1
11399 db_appexit( NULL );
11401 (void) dbopen( NULL, 0, 0, 0, NULL);
11406 if { (eval echo configure:11407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11410 echo "configure: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11421 echo "$ac_t""$ol_cv_db_none" 1>&6
11423 if test $ol_cv_db_none = yes ; then
11428 if test $ol_cv_lib_db = no ; then
11429 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11430 echo "configure:11431: checking for Berkeley DB link (-ldb)" >&5
11431 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11437 LIBS="$ol_DB_LIB $LIBS"
11439 cat > conftest.$ac_ext <<EOF
11440 #line 11441 "configure"
11441 #include "confdefs.h"
11443 #ifdef HAVE_DB_185_H
11444 # include <db_185.h>
11449 #ifndef DB_VERSION_MAJOR
11450 # define DB_VERSION_MAJOR 1
11454 #define NULL ((void*)0)
11459 #if DB_VERSION_MAJOR > 2
11460 db_env_create( NULL, 0 );
11461 #elif DB_VERSION_MAJOR > 1
11462 db_appexit( NULL );
11464 (void) dbopen( NULL, 0, 0, 0, NULL);
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11484 echo "$ac_t""$ol_cv_db_db" 1>&6
11486 if test $ol_cv_db_db = yes ; then
11491 if test $ol_cv_lib_db = no ; then
11492 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11493 echo "configure:11494: checking for Berkeley DB link (-ldb3)" >&5
11494 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11500 LIBS="$ol_DB_LIB $LIBS"
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11506 #ifdef HAVE_DB_185_H
11507 # include <db_185.h>
11512 #ifndef DB_VERSION_MAJOR
11513 # define DB_VERSION_MAJOR 1
11517 #define NULL ((void*)0)
11522 #if DB_VERSION_MAJOR > 2
11523 db_env_create( NULL, 0 );
11524 #elif DB_VERSION_MAJOR > 1
11525 db_appexit( NULL );
11527 (void) dbopen( NULL, 0, 0, 0, NULL);
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11547 echo "$ac_t""$ol_cv_db_db3" 1>&6
11549 if test $ol_cv_db_db3 = yes ; then
11554 if test $ol_cv_lib_db = no ; then
11555 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11556 echo "configure:11557: checking for Berkeley DB link (-ldb2)" >&5
11557 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11563 LIBS="$ol_DB_LIB $LIBS"
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11569 #ifdef HAVE_DB_185_H
11570 # include <db_185.h>
11575 #ifndef DB_VERSION_MAJOR
11576 # define DB_VERSION_MAJOR 1
11580 #define NULL ((void*)0)
11585 #if DB_VERSION_MAJOR > 2
11586 db_env_create( NULL, 0 );
11587 #elif DB_VERSION_MAJOR > 1
11588 db_appexit( NULL );
11590 (void) dbopen( NULL, 0, 0, 0, NULL);
11595 if { (eval echo configure:11596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11599 echo "configure: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11610 echo "$ac_t""$ol_cv_db_db2" 1>&6
11612 if test $ol_cv_db_db2 = yes ; then
11617 if test $ol_cv_lib_db = no ; then
11618 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11619 echo "configure:11620: checking for Berkeley DB link (-ldb1)" >&5
11620 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11621 echo $ac_n "(cached) $ac_c" 1>&6
11626 LIBS="$ol_DB_LIB $LIBS"
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11632 #ifdef HAVE_DB_185_H
11633 # include <db_185.h>
11638 #ifndef DB_VERSION_MAJOR
11639 # define DB_VERSION_MAJOR 1
11643 #define NULL ((void*)0)
11648 #if DB_VERSION_MAJOR > 2
11649 db_env_create( NULL, 0 );
11650 #elif DB_VERSION_MAJOR > 1
11651 db_appexit( NULL );
11653 (void) dbopen( NULL, 0, 0, 0, NULL);
11658 if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11673 echo "$ac_t""$ol_cv_db_db1" 1>&6
11675 if test $ol_cv_db_db1 = yes ; then
11681 if test "$ol_cv_lib_db" != no ; then
11682 ol_cv_berkeley_db=yes
11688 ol_cv_berkeley_db=no
11691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11693 echo "configure:11694: checking for $ac_hdr" >&5
11694 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11697 cat > conftest.$ac_ext <<EOF
11698 #line 11699 "configure"
11699 #include "confdefs.h"
11702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11703 { (eval echo configure:11704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11705 if test -z "$ac_err"; then
11707 eval "ac_cv_header_$ac_safe=yes"
11710 echo "configure: failed program was:" >&5
11711 cat conftest.$ac_ext >&5
11713 eval "ac_cv_header_$ac_safe=no"
11717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11718 echo "$ac_t""yes" 1>&6
11719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11720 cat >> confdefs.h <<EOF
11721 #define $ac_tr_hdr 1
11725 echo "$ac_t""no" 1>&6
11729 if test $ac_cv_header_db_h = yes; then
11731 if test $ol_cv_lib_db = no ; then
11732 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11733 echo "configure:11734: checking for Berkeley DB link (default)" >&5
11734 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11740 LIBS="$ol_DB_LIB $LIBS"
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11746 #ifdef HAVE_DB_185_H
11747 # include <db_185.h>
11752 #ifndef DB_VERSION_MAJOR
11753 # define DB_VERSION_MAJOR 1
11757 #define NULL ((void*)0)
11762 #if DB_VERSION_MAJOR > 2
11763 db_env_create( NULL, 0 );
11764 #elif DB_VERSION_MAJOR > 1
11765 db_appexit( NULL );
11767 (void) dbopen( NULL, 0, 0, 0, NULL);
11772 if { (eval echo configure:11773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11787 echo "$ac_t""$ol_cv_db_none" 1>&6
11789 if test $ol_cv_db_none = yes ; then
11794 if test $ol_cv_lib_db = no ; then
11795 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11796 echo "configure:11797: checking for Berkeley DB link (-ldb)" >&5
11797 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11798 echo $ac_n "(cached) $ac_c" 1>&6
11803 LIBS="$ol_DB_LIB $LIBS"
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11809 #ifdef HAVE_DB_185_H
11810 # include <db_185.h>
11815 #ifndef DB_VERSION_MAJOR
11816 # define DB_VERSION_MAJOR 1
11820 #define NULL ((void*)0)
11825 #if DB_VERSION_MAJOR > 2
11826 db_env_create( NULL, 0 );
11827 #elif DB_VERSION_MAJOR > 1
11828 db_appexit( NULL );
11830 (void) dbopen( NULL, 0, 0, 0, NULL);
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11850 echo "$ac_t""$ol_cv_db_db" 1>&6
11852 if test $ol_cv_db_db = yes ; then
11857 if test $ol_cv_lib_db = no ; then
11858 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11859 echo "configure:11860: checking for Berkeley DB link (-ldb3)" >&5
11860 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11866 LIBS="$ol_DB_LIB $LIBS"
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11872 #ifdef HAVE_DB_185_H
11873 # include <db_185.h>
11878 #ifndef DB_VERSION_MAJOR
11879 # define DB_VERSION_MAJOR 1
11883 #define NULL ((void*)0)
11888 #if DB_VERSION_MAJOR > 2
11889 db_env_create( NULL, 0 );
11890 #elif DB_VERSION_MAJOR > 1
11891 db_appexit( NULL );
11893 (void) dbopen( NULL, 0, 0, 0, NULL);
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11913 echo "$ac_t""$ol_cv_db_db3" 1>&6
11915 if test $ol_cv_db_db3 = yes ; then
11920 if test $ol_cv_lib_db = no ; then
11921 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11922 echo "configure:11923: checking for Berkeley DB link (-ldb2)" >&5
11923 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
11929 LIBS="$ol_DB_LIB $LIBS"
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11935 #ifdef HAVE_DB_185_H
11936 # include <db_185.h>
11941 #ifndef DB_VERSION_MAJOR
11942 # define DB_VERSION_MAJOR 1
11946 #define NULL ((void*)0)
11951 #if DB_VERSION_MAJOR > 2
11952 db_env_create( NULL, 0 );
11953 #elif DB_VERSION_MAJOR > 1
11954 db_appexit( NULL );
11956 (void) dbopen( NULL, 0, 0, 0, NULL);
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11976 echo "$ac_t""$ol_cv_db_db2" 1>&6
11978 if test $ol_cv_db_db2 = yes ; then
11983 if test $ol_cv_lib_db = no ; then
11984 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11985 echo "configure:11986: checking for Berkeley DB link (-ldb1)" >&5
11986 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11987 echo $ac_n "(cached) $ac_c" 1>&6
11992 LIBS="$ol_DB_LIB $LIBS"
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11998 #ifdef HAVE_DB_185_H
11999 # include <db_185.h>
12004 #ifndef DB_VERSION_MAJOR
12005 # define DB_VERSION_MAJOR 1
12009 #define NULL ((void*)0)
12014 #if DB_VERSION_MAJOR > 2
12015 db_env_create( NULL, 0 );
12016 #elif DB_VERSION_MAJOR > 1
12017 db_appexit( NULL );
12019 (void) dbopen( NULL, 0, 0, 0, NULL);
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12039 echo "$ac_t""$ol_cv_db_db1" 1>&6
12041 if test $ol_cv_db_db1 = yes ; then
12047 if test "$ol_cv_lib_db" != no ; then
12048 ol_cv_berkeley_db=yes
12049 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12050 echo "configure:12051: checking for Berkeley DB thread support" >&5
12051 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12056 if test $ol_cv_lib_db != yes ; then
12057 LIBS="$ol_cv_lib_db"
12060 if test "$cross_compiling" = yes; then
12061 ol_cv_berkeley_db_thread=cross
12063 cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure"
12065 #include "confdefs.h"
12067 #ifdef HAVE_DB_185_H
12073 #define NULL ((void *)0)
12078 u_int32_t flags = DB_CREATE | DB_THREAD;
12080 #if DB_VERSION_MAJOR > 2
12081 DB_ENV *env = NULL;
12083 rc = db_env_create( &env, 0 );
12086 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12087 rc = env->open( env, NULL, flags, 0 );
12089 rc = env->open( env, NULL, NULL, flags, 0 );
12095 memset( &env, '\0', sizeof(env) );
12097 rc = db_appinit( NULL, NULL, &env, flags );
12100 db_appexit( &env );
12103 #if DB_VERSION_MAJOR > 2
12104 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12105 env->remove( env, NULL, DB_FORCE);
12107 env->remove( env, NULL, NULL, DB_FORCE);
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12116 ol_cv_berkeley_db_thread=yes
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12121 ol_cv_berkeley_db_thread=no
12129 if test $ol_cv_berkeley_db_thread != no ; then
12130 cat >> confdefs.h <<\EOF
12131 #define HAVE_BERKELEY_DB_THREAD 1
12138 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12144 if test $ol_cv_berkeley_db != no ; then
12145 cat >> confdefs.h <<\EOF
12146 #define HAVE_BERKELEY_DB 1
12150 ol_link_ldbm=berkeley
12151 ol_with_ldbm_api=db
12153 if test $ol_with_ldbm_type = hash ; then
12154 cat >> confdefs.h <<\EOF
12155 #define LDBM_USE_DBHASH 1
12159 cat >> confdefs.h <<\EOF
12160 #define LDBM_USE_DBBTREE 1
12165 if test $ol_cv_lib_db != yes ; then
12166 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12171 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12172 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12173 ol_with_ldbm_api=none
12176 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12177 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12178 echo "configure:12179: checking for MDBM library" >&5
12179 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12180 echo $ac_n "(cached) $ac_c" 1>&6
12183 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12184 echo "configure:12185: checking for mdbm_set_chain" >&5
12185 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
12188 cat > conftest.$ac_ext <<EOF
12189 #line 12190 "configure"
12190 #include "confdefs.h"
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char mdbm_set_chain(); below. */
12193 #include <assert.h>
12194 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char mdbm_set_chain();
12202 /* The GNU C library defines this for functions which it implements
12203 to always fail with ENOSYS. Some functions are actually named
12204 something starting with __ and the normal name is an alias. */
12205 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12208 f = mdbm_set_chain;
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12215 eval "ac_cv_func_mdbm_set_chain=yes"
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12220 eval "ac_cv_func_mdbm_set_chain=no"
12225 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12226 echo "$ac_t""yes" 1>&6
12229 echo "$ac_t""no" 1>&6
12231 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12232 echo "configure:12233: checking for mdbm_set_chain in -lmdbm" >&5
12233 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12237 ac_save_LIBS="$LIBS"
12238 LIBS="-lmdbm $LIBS"
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12245 char mdbm_set_chain();
12251 if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12253 eval "ac_cv_lib_$ac_lib_var=yes"
12255 echo "configure: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12258 eval "ac_cv_lib_$ac_lib_var=no"
12261 LIBS="$ac_save_LIBS"
12264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12265 echo "$ac_t""yes" 1>&6
12266 ol_cv_lib_mdbm=-lmdbm
12268 echo "$ac_t""no" 1>&6
12279 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12282 for ac_hdr in mdbm.h
12284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12286 echo "configure:12287: checking for $ac_hdr" >&5
12287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12296 { (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12298 if test -z "$ac_err"; then
12300 eval "ac_cv_header_$ac_safe=yes"
12303 echo "configure: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12306 eval "ac_cv_header_$ac_safe=no"
12310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12313 cat >> confdefs.h <<EOF
12314 #define $ac_tr_hdr 1
12318 echo "$ac_t""no" 1>&6
12322 echo $ac_n "checking for db""... $ac_c" 1>&6
12323 echo "configure:12324: checking for db" >&5
12324 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12325 echo $ac_n "(cached) $ac_c" 1>&6
12328 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12336 echo "$ac_t""$ol_cv_mdbm" 1>&6
12337 if test $ol_cv_mdbm = yes ; then
12338 cat >> confdefs.h <<\EOF
12339 #define HAVE_MDBM 1
12345 if test $ol_cv_mdbm = yes ; then
12347 ol_with_ldbm_api=mdbm
12348 if test $ol_cv_lib_mdbm != yes ; then
12349 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12354 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12355 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12356 echo "configure:12357: checking for GDBM library" >&5
12357 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12361 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12362 echo "configure:12363: checking for gdbm_open" >&5
12363 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12366 cat > conftest.$ac_ext <<EOF
12367 #line 12368 "configure"
12368 #include "confdefs.h"
12369 /* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char gdbm_open(); below. */
12371 #include <assert.h>
12372 /* Override any gcc2 internal prototype to avoid an error. */
12373 /* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12391 if { (eval echo configure:12392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12393 eval "ac_cv_func_gdbm_open=yes"
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12398 eval "ac_cv_func_gdbm_open=no"
12403 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12404 echo "$ac_t""yes" 1>&6
12407 echo "$ac_t""no" 1>&6
12409 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12410 echo "configure:12411: checking for gdbm_open in -lgdbm" >&5
12411 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12412 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12415 ac_save_LIBS="$LIBS"
12416 LIBS="-lgdbm $LIBS"
12417 cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 /* Override any gcc2 internal prototype to avoid an error. */
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12431 eval "ac_cv_lib_$ac_lib_var=yes"
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12436 eval "ac_cv_lib_$ac_lib_var=no"
12439 LIBS="$ac_save_LIBS"
12442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 ol_cv_lib_gdbm=-lgdbm
12446 echo "$ac_t""no" 1>&6
12457 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12460 for ac_hdr in gdbm.h
12462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12464 echo "configure:12465: checking for $ac_hdr" >&5
12465 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12466 echo $ac_n "(cached) $ac_c" 1>&6
12468 cat > conftest.$ac_ext <<EOF
12469 #line 12470 "configure"
12470 #include "confdefs.h"
12473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12474 { (eval echo configure:12475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12476 if test -z "$ac_err"; then
12478 eval "ac_cv_header_$ac_safe=yes"
12481 echo "configure: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12484 eval "ac_cv_header_$ac_safe=no"
12488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12489 echo "$ac_t""yes" 1>&6
12490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12491 cat >> confdefs.h <<EOF
12492 #define $ac_tr_hdr 1
12496 echo "$ac_t""no" 1>&6
12500 echo $ac_n "checking for db""... $ac_c" 1>&6
12501 echo "configure:12502: checking for db" >&5
12502 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12506 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12514 echo "$ac_t""$ol_cv_gdbm" 1>&6
12515 if test $ol_cv_gdbm = yes ; then
12516 cat >> confdefs.h <<\EOF
12517 #define HAVE_GDBM 1
12523 if test $ol_cv_gdbm = yes ; then
12525 ol_with_ldbm_api=gdbm
12527 if test $ol_cv_lib_gdbm != yes ; then
12528 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12533 if test $ol_with_ldbm_api = ndbm ; then
12534 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12535 echo "configure:12536: checking for NDBM library" >&5
12536 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
12540 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12541 echo "configure:12542: checking for dbm_open" >&5
12542 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12543 echo $ac_n "(cached) $ac_c" 1>&6
12545 cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* System header to define __stub macros and hopefully few prototypes,
12549 which can conflict with char dbm_open(); below. */
12550 #include <assert.h>
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12559 /* The GNU C library defines this for functions which it implements
12560 to always fail with ENOSYS. Some functions are actually named
12561 something starting with __ and the normal name is an alias. */
12562 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12572 eval "ac_cv_func_dbm_open=yes"
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12577 eval "ac_cv_func_dbm_open=no"
12582 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12583 echo "$ac_t""yes" 1>&6
12586 echo "$ac_t""no" 1>&6
12588 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12589 echo "configure:12590: checking for dbm_open in -lndbm" >&5
12590 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12594 ac_save_LIBS="$LIBS"
12595 LIBS="-lndbm $LIBS"
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12598 "configure"
12598 #include "confdefs.h"
12599 /* Override any gcc2 internal prototype to avoid an error. */
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610 eval "ac_cv_lib_$ac_lib_var=yes"
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 eval "ac_cv_lib_$ac_lib_var=no"
12618 LIBS="$ac_save_LIBS"
12621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12622 echo "$ac_t""yes" 1>&6
12623 ol_cv_lib_ndbm=-lndbm
12625 echo "$ac_t""no" 1>&6
12627 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12628 echo "configure:12629: checking for dbm_open in -ldbm" >&5
12629 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12633 ac_save_LIBS="$LIBS"
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12637 "configure"
12637 #include "confdefs.h"
12638 /* Override any gcc2 internal prototype to avoid an error. */
12639 /* We use char because int might match the return type of a gcc2
12640 builtin and then its argument prototype would still apply. */
12647 if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12649 eval "ac_cv_lib_$ac_lib_var=yes"
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 eval "ac_cv_lib_$ac_lib_var=no"
12657 LIBS="$ac_save_LIBS"
12660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12661 echo "$ac_t""yes" 1>&6
12662 ol_cv_lib_ndbm=-ldbm
12664 echo "$ac_t""no" 1>&6
12677 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12680 for ac_hdr in ndbm.h
12682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12684 echo "configure:12685: checking for $ac_hdr" >&5
12685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12694 { (eval echo configure:12695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12696 if test -z "$ac_err"; then
12698 eval "ac_cv_header_$ac_safe=yes"
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 eval "ac_cv_header_$ac_safe=no"
12708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12709 echo "$ac_t""yes" 1>&6
12710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12711 cat >> confdefs.h <<EOF
12712 #define $ac_tr_hdr 1
12716 echo "$ac_t""no" 1>&6
12720 echo $ac_n "checking for db""... $ac_c" 1>&6
12721 echo "configure:12722: checking for db" >&5
12722 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12723 echo $ac_n "(cached) $ac_c" 1>&6
12726 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12734 echo "$ac_t""$ol_cv_ndbm" 1>&6
12735 if test $ol_cv_ndbm = yes ; then
12736 cat >> confdefs.h <<\EOF
12737 #define HAVE_NDBM 1
12743 if test $ol_cv_ndbm = yes ; then
12745 ol_with_ldbm_api=ndbm
12747 if test $ol_cv_lib_ndbm != yes ; then
12748 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12753 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12754 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12755 if test $ol_enable_ldbm = yes ; then
12756 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12759 echo "configure: warning: disabling LDBM" 1>&2
12763 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12764 LINK_BINS_DYNAMIC="yes"
12766 LINK_BINS_DYNAMIC="no"
12769 if test $ol_enable_wrappers != no ; then
12770 for ac_hdr in tcpd.h
12772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12774 echo "configure:12775: checking for $ac_hdr" >&5
12775 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12776 echo $ac_n "(cached) $ac_c" 1>&6
12778 cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12784 { (eval echo configure:12785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12786 if test -z "$ac_err"; then
12788 eval "ac_cv_header_$ac_safe=yes"
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12794 eval "ac_cv_header_$ac_safe=no"
12798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12799 echo "$ac_t""yes" 1>&6
12800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12801 cat >> confdefs.h <<EOF
12802 #define $ac_tr_hdr 1
12806 echo "$ac_t""no" 1>&6
12811 if test $ac_cv_header_tcpd_h != yes ; then
12814 cat > conftest.$ac_ext <<EOF
12815 #line 12816 "configure"
12816 #include "confdefs.h"
12818 int allow_severity = 0;
12819 int deny_severity = 0;
12825 if { (eval echo configure:12826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12837 if test $have_wrappers = yes ; then
12838 cat >> confdefs.h <<\EOF
12839 #define HAVE_TCPD 1
12844 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12845 echo "configure:12846: checking for main in -lnsl" >&5
12846 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12850 ac_save_LIBS="$LIBS"
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12862 eval "ac_cv_lib_$ac_lib_var=yes"
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12867 eval "ac_cv_lib_$ac_lib_var=no"
12870 LIBS="$ac_save_LIBS"
12873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12874 echo "$ac_t""yes" 1>&6
12875 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12877 cat >> confdefs.h <<EOF
12878 #define $ac_tr_lib 1
12884 echo "$ac_t""no" 1>&6
12888 echo "configure: warning: could not find -lwrap" 1>&2
12889 if test $ol_enable_wrappers = yes ; then
12890 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12893 echo "configure: warning: disabling wrappers support" 1>&2
12894 ol_enable_wrappers=no
12899 if test $ol_enable_syslog != no ; then
12900 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12901 echo "configure:12902: checking for openlog" >&5
12902 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12905 cat > conftest.$ac_ext <<EOF
12906 #line 12907 "configure"
12907 #include "confdefs.h"
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char openlog(); below. */
12910 #include <assert.h>
12911 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined (__stub_openlog) || defined (__stub___openlog)
12930 if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12932 eval "ac_cv_func_openlog=yes"
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12937 eval "ac_cv_func_openlog=no"
12942 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12943 echo "$ac_t""yes" 1>&6
12946 echo "$ac_t""no" 1>&6
12949 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12950 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12952 ol_enable_syslog=$ac_cv_func_openlog
12956 if test $ol_enable_sql != no ; then
12957 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
12958 echo "configure:12959: checking for SQLDriverConnect in -liodbc" >&5
12959 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
12960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12963 ac_save_LIBS="$LIBS"
12964 LIBS="-liodbc $LIBS"
12965 cat > conftest.$ac_ext <<EOF
12966 #line 12967 "configure"
12967 #include "confdefs.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. */
12971 char SQLDriverConnect();
12977 if { (eval echo configure:12978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12979 eval "ac_cv_lib_$ac_lib_var=yes"
12981 echo "configure: failed program was:" >&5
12982 cat conftest.$ac_ext >&5
12984 eval "ac_cv_lib_$ac_lib_var=no"
12987 LIBS="$ac_save_LIBS"
12990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12994 echo "$ac_t""no" 1>&6
12998 if test $have_iodbc = yes ; then
12999 ol_link_sql="-liodbc"
13001 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13002 echo "configure:13003: checking for SQLDriverConnect in -lodbc" >&5
13003 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13005 echo $ac_n "(cached) $ac_c" 1>&6
13007 ac_save_LIBS="$LIBS"
13008 LIBS="-lodbc $LIBS"
13009 cat > conftest.$ac_ext <<EOF
13010 #line 13011 "configure"
13011 #include "confdefs.h"
13012 /* Override any gcc2 internal prototype to avoid an error. */
13013 /* We use char because int might match the return type of a gcc2
13014 builtin and then its argument prototype would still apply. */
13015 char SQLDriverConnect();
13021 if { (eval echo configure:13022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13023 eval "ac_cv_lib_$ac_lib_var=yes"
13025 echo "configure: failed program was:" >&5
13026 cat conftest.$ac_ext >&5
13028 eval "ac_cv_lib_$ac_lib_var=no"
13031 LIBS="$ac_save_LIBS"
13034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13035 echo "$ac_t""yes" 1>&6
13038 echo "$ac_t""no" 1>&6
13042 if test $have_odbc = yes ; then
13043 ol_link_sql="-lodbc"
13047 if test $ol_link_sql != no ; then
13048 SLAPD_SQL_LIBS="$ol_link_sql"
13050 elif test $ol_enable_sql != auto ; then
13051 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13056 for ac_hdr in termcap.h ncurses.h
13058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13060 echo "configure:13061: checking for $ac_hdr" >&5
13061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13062 echo $ac_n "(cached) $ac_c" 1>&6
13064 cat > conftest.$ac_ext <<EOF
13065 #line 13066 "configure"
13066 #include "confdefs.h"
13069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13070 { (eval echo configure:13071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13072 if test -z "$ac_err"; then
13074 eval "ac_cv_header_$ac_safe=yes"
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13080 eval "ac_cv_header_$ac_safe=no"
13084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13085 echo "$ac_t""yes" 1>&6
13086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13087 cat >> confdefs.h <<EOF
13088 #define $ac_tr_hdr 1
13092 echo "$ac_t""no" 1>&6
13097 if test $ol_link_termcap = no ; then
13098 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13099 echo "configure:13100: checking for tputs in -ltermcap" >&5
13100 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13101 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13102 echo $ac_n "(cached) $ac_c" 1>&6
13104 ac_save_LIBS="$LIBS"
13105 LIBS="-ltermcap $LIBS"
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13118 if { (eval echo configure:13119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13120 eval "ac_cv_lib_$ac_lib_var=yes"
13122 echo "configure: failed program was:" >&5
13123 cat conftest.$ac_ext >&5
13125 eval "ac_cv_lib_$ac_lib_var=no"
13128 LIBS="$ac_save_LIBS"
13131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13132 echo "$ac_t""yes" 1>&6
13135 echo "$ac_t""no" 1>&6
13139 if test $have_termcap = yes ; then
13140 cat >> confdefs.h <<\EOF
13141 #define HAVE_TERMCAP 1
13144 ol_link_termcap=yes
13145 TERMCAP_LIBS=-ltermcap
13149 if test $ol_link_termcap = no ; then
13150 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13151 echo "configure:13152: checking for initscr in -lncurses" >&5
13152 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13156 ac_save_LIBS="$LIBS"
13157 LIBS="-lncurses $LIBS"
13158 cat > conftest.$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13172 eval "ac_cv_lib_$ac_lib_var=yes"
13174 echo "configure: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13177 eval "ac_cv_lib_$ac_lib_var=no"
13180 LIBS="$ac_save_LIBS"
13183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13184 echo "$ac_t""yes" 1>&6
13187 echo "$ac_t""no" 1>&6
13191 if test $have_ncurses = yes ; then
13192 cat >> confdefs.h <<\EOF
13193 #define HAVE_NCURSES 1
13196 ol_link_termcap=yes
13197 TERMCAP_LIBS=-lncurses
13201 if test $ol_link_termcap = no ; then
13202 cat >> confdefs.h <<\EOF
13203 #define NO_TERMCAP 1
13211 if test $ol_with_cyrus_sasl != no ; then
13212 for ac_hdr in sasl.h
13214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13216 echo "configure:13217: checking for $ac_hdr" >&5
13217 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13220 cat > conftest.$ac_ext <<EOF
13221 #line 13222 "configure"
13222 #include "confdefs.h"
13225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13226 { (eval echo configure:13227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13228 if test -z "$ac_err"; then
13230 eval "ac_cv_header_$ac_safe=yes"
13233 echo "configure: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13236 eval "ac_cv_header_$ac_safe=no"
13240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13243 cat >> confdefs.h <<EOF
13244 #define $ac_tr_hdr 1
13248 echo "$ac_t""no" 1>&6
13253 if test $ac_cv_header_sasl_h = yes ; then
13254 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13255 echo "configure:13256: checking for sasl_client_init in -lsasl" >&5
13256 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13258 echo $ac_n "(cached) $ac_c" 1>&6
13260 ac_save_LIBS="$LIBS"
13261 LIBS="-lsasl $LIBS"
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* Override any gcc2 internal prototype to avoid an error. */
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268 char sasl_client_init();
13274 if { (eval echo configure:13275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276 eval "ac_cv_lib_$ac_lib_var=yes"
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13281 eval "ac_cv_lib_$ac_lib_var=no"
13284 LIBS="$ac_save_LIBS"
13287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13288 echo "$ac_t""yes" 1>&6
13289 have_cyrus_sasl=yes
13291 echo "$ac_t""no" 1>&6
13296 if test $have_cyrus_sasl != no ; then
13298 cat >> confdefs.h <<\EOF
13299 #define HAVE_CYRUS_SASL 1
13306 if test $ol_link_sasl = no ; then
13307 if test $ol_with_cyrus_sasl != auto ; then
13308 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13310 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13311 echo "configure: warning: SASL authentication not supported!" 1>&2
13312 if test $ol_link_tls = no ; then
13313 echo "configure: warning: Strong authentication not supported!" 1>&2
13317 elif test $ol_enable_spasswd != no ; then
13318 ol_link_spasswd=yes
13322 echo "configure: warning: SASL authentication not supported!" 1>&2
13323 if test $ol_link_tls = no ; then
13324 echo "configure: warning: Strong authentication not supported!" 1>&2
13328 if test $cross_compiling != yes ; then
13330 if test -r /dev/urandom ; then
13331 dev="/dev/urandom";
13332 elif test -r /idev/urandom ; then
13333 dev="/idev/urandom";
13334 elif test -r /dev/srandom ; then
13335 dev="/dev/srandom";
13336 elif test -r /dev/random ; then
13338 elif test -r /idev/random ; then
13339 dev="/idev/random";
13342 if test $dev != no ; then
13343 cat >> confdefs.h <<EOF
13344 #define URANDOM_DEVICE "$dev"
13351 if test $ol_with_fetch != no ; then
13353 LIBS="-lfetch -lcom_err $LIBS"
13354 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13355 echo "configure:13356: checking fetch(3) library" >&5
13356 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13357 echo $ac_n "(cached) $ac_c" 1>&6
13360 cat > conftest.$ac_ext <<EOF
13361 #line 13362 "configure"
13362 #include "confdefs.h"
13364 #include <sys/param.h>
13368 struct url *u = fetchParseURL("file:///");
13371 if { (eval echo configure:13372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13373 ol_cv_lib_fetch=yes
13375 echo "configure: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13383 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13385 if test $ol_cv_lib_fetch != no ; then
13386 ol_link_fetch="-lfetch -lcom_err"
13387 cat >> confdefs.h <<\EOF
13388 #define HAVE_FETCH 1
13394 if test $ol_cv_lib_fetch != no ; then
13395 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13396 ol_link_fetch=freebsd
13398 elif test $ol_with_fetch != auto ; then
13399 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13403 ol_link_readline=no
13404 if test $ol_with_readline != no ; then
13405 for ac_hdr in readline/readline.h readline/history.h
13407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13409 echo "configure:13410: checking for $ac_hdr" >&5
13410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13419 { (eval echo configure:13420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13421 if test -z "$ac_err"; then
13423 eval "ac_cv_header_$ac_safe=yes"
13426 echo "configure: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13429 eval "ac_cv_header_$ac_safe=no"
13433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13434 echo "$ac_t""yes" 1>&6
13435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13436 cat >> confdefs.h <<EOF
13437 #define $ac_tr_hdr 1
13441 echo "$ac_t""no" 1>&6
13446 if test $ac_cv_header_readline_readline_h = yes ; then
13448 LIBS="$TERMCAP_LIBS $LIBS"
13449 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13450 echo "configure:13451: checking for readline in -lreadline" >&5
13451 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13452 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13453 echo $ac_n "(cached) $ac_c" 1>&6
13455 ac_save_LIBS="$LIBS"
13456 LIBS="-lreadline $LIBS"
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 /* Override any gcc2 internal prototype to avoid an error. */
13461 /* We use char because int might match the return type of a gcc2
13462 builtin and then its argument prototype would still apply. */
13469 if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13471 eval "ac_cv_lib_$ac_lib_var=yes"
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13476 eval "ac_cv_lib_$ac_lib_var=no"
13479 LIBS="$ac_save_LIBS"
13482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13483 echo "$ac_t""yes" 1>&6
13486 echo "$ac_t""no" 1>&6
13492 if test $have_readline = yes ; then
13493 ol_with_readline=found
13494 ol_link_readline=yes
13496 READLINE_LIBS="-lreadline"
13501 if test $ol_link_readline = yes ; then
13502 cat >> confdefs.h <<\EOF
13503 #define HAVE_READLINE 1
13509 if test $ol_enable_crypt != no ; then
13510 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13511 echo "configure:13512: checking for crypt" >&5
13512 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13513 echo $ac_n "(cached) $ac_c" 1>&6
13515 cat > conftest.$ac_ext <<EOF
13516 #line 13517 "configure"
13517 #include "confdefs.h"
13518 /* System header to define __stub macros and hopefully few prototypes,
13519 which can conflict with char crypt(); below. */
13520 #include <assert.h>
13521 /* Override any gcc2 internal prototype to avoid an error. */
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13529 /* The GNU C library defines this for functions which it implements
13530 to always fail with ENOSYS. Some functions are actually named
13531 something starting with __ and the normal name is an alias. */
13532 #if defined (__stub_crypt) || defined (__stub___crypt)
13540 if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13542 eval "ac_cv_func_crypt=yes"
13544 echo "configure: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13547 eval "ac_cv_func_crypt=no"
13552 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13553 echo "$ac_t""yes" 1>&6
13556 echo "$ac_t""no" 1>&6
13558 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13559 echo "configure:13560: checking for crypt in -lcrypt" >&5
13560 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13564 ac_save_LIBS="$LIBS"
13565 LIBS="-lcrypt $LIBS"
13566 cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 /* Override any gcc2 internal prototype to avoid an error. */
13570 /* We use char because int might match the return type of a gcc2
13571 builtin and then its argument prototype would still apply. */
13578 if { (eval echo configure:13579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13580 eval "ac_cv_lib_$ac_lib_var=yes"
13582 echo "configure: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13585 eval "ac_cv_lib_$ac_lib_var=no"
13588 LIBS="$ac_save_LIBS"
13591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13592 echo "$ac_t""yes" 1>&6
13593 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13596 echo "$ac_t""no" 1>&6
13603 if test $have_crypt = yes ; then
13604 cat >> confdefs.h <<\EOF
13605 #define HAVE_CRYPT 1
13609 echo "configure: warning: could not find crypt" 1>&2
13610 if test $ol_enable_crypt = yes ; then
13611 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13614 echo "configure: warning: disabling crypt support" 1>&2
13619 if test $ol_enable_proctitle != no ; then
13620 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13621 echo "configure:13622: checking for setproctitle" >&5
13622 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13623 echo $ac_n "(cached) $ac_c" 1>&6
13625 cat > conftest.$ac_ext <<EOF
13626 #line 13627 "configure"
13627 #include "confdefs.h"
13628 /* System header to define __stub macros and hopefully few prototypes,
13629 which can conflict with char setproctitle(); below. */
13630 #include <assert.h>
13631 /* Override any gcc2 internal prototype to avoid an error. */
13632 /* We use char because int might match the return type of a gcc2
13633 builtin and then its argument prototype would still apply. */
13634 char setproctitle();
13639 /* The GNU C library defines this for functions which it implements
13640 to always fail with ENOSYS. Some functions are actually named
13641 something starting with __ and the normal name is an alias. */
13642 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13652 eval "ac_cv_func_setproctitle=yes"
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13657 eval "ac_cv_func_setproctitle=no"
13662 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13663 echo "$ac_t""yes" 1>&6
13664 have_setproctitle=yes
13666 echo "$ac_t""no" 1>&6
13668 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13669 echo "configure:13670: checking for setproctitle in -lutil" >&5
13670 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13671 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13672 echo $ac_n "(cached) $ac_c" 1>&6
13674 ac_save_LIBS="$LIBS"
13675 LIBS="-lutil $LIBS"
13676 cat > conftest.$ac_ext <<EOF
13677 #line 13678 "configure"
13678 #include "confdefs.h"
13679 /* Override any gcc2 internal prototype to avoid an error. */
13680 /* We use char because int might match the return type of a gcc2
13681 builtin and then its argument prototype would still apply. */
13682 char setproctitle();
13688 if { (eval echo configure:13689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13690 eval "ac_cv_lib_$ac_lib_var=yes"
13692 echo "configure: failed program was:" >&5
13693 cat conftest.$ac_ext >&5
13695 eval "ac_cv_lib_$ac_lib_var=no"
13698 LIBS="$ac_save_LIBS"
13701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13702 echo "$ac_t""yes" 1>&6
13703 have_setproctitle=yes
13704 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13706 echo "$ac_t""no" 1>&6
13707 have_setproctitle=no
13708 LIBOBJS="$LIBOBJS setproctitle.o"
13709 LIBSRCS="$LIBSRCS setproctitle.c"
13715 if test $have_setproctitle = yes ; then
13716 cat >> confdefs.h <<\EOF
13717 #define HAVE_SETPROCTITLE 1
13723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13724 echo "configure:13725: checking for ANSI C header files" >&5
13725 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13726 echo $ac_n "(cached) $ac_c" 1>&6
13728 cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 #include <stdlib.h>
13732 #include <stdarg.h>
13733 #include <string.h>
13736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13737 { (eval echo configure:13738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13739 if test -z "$ac_err"; then
13741 ac_cv_header_stdc=yes
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13747 ac_cv_header_stdc=no
13751 if test $ac_cv_header_stdc = yes; then
13752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13756 #include <string.h>
13758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13759 egrep "memchr" >/dev/null 2>&1; then
13763 ac_cv_header_stdc=no
13769 if test $ac_cv_header_stdc = yes; then
13770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13771 cat > conftest.$ac_ext <<EOF
13772 #line 13773 "configure"
13773 #include "confdefs.h"
13774 #include <stdlib.h>
13776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13777 egrep "free" >/dev/null 2>&1; then
13781 ac_cv_header_stdc=no
13787 if test $ac_cv_header_stdc = yes; then
13788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13789 if test "$cross_compiling" = yes; then
13792 cat > conftest.$ac_ext <<EOF
13793 #line 13794 "configure"
13794 #include "confdefs.h"
13796 #if ((' ' & 0x0FF) == 0x020)
13797 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13798 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13800 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13801 || ('j' <= (c) && (c) <= 'r') \
13802 || ('s' <= (c) && (c) <= 'z'))
13803 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13806 int main () { int i; for (i = 0; i < 256; i++)
13807 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13818 ac_cv_header_stdc=no
13826 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13827 if test $ac_cv_header_stdc = yes; then
13828 cat >> confdefs.h <<\EOF
13829 #define STDC_HEADERS 1
13834 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13835 echo "configure:13836: checking for mode_t" >&5
13836 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13837 echo $ac_n "(cached) $ac_c" 1>&6
13839 cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 #include <sys/types.h>
13844 #include <stdlib.h>
13845 #include <stddef.h>
13849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13850 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13852 eval "ac_cv_type_mode_t=yes"
13855 eval "ac_cv_type_mode_t=no"
13860 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13861 echo "$ac_t""yes" 1>&6
13863 echo "$ac_t""no" 1>&6
13864 cat >> confdefs.h <<EOF
13870 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13871 echo "configure:13872: checking for off_t" >&5
13872 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13878 #include <sys/types.h>
13880 #include <stdlib.h>
13881 #include <stddef.h>
13885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13886 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13888 eval "ac_cv_type_off_t=yes"
13891 eval "ac_cv_type_off_t=no"
13896 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13899 echo "$ac_t""no" 1>&6
13900 cat >> confdefs.h <<EOF
13906 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13907 echo "configure:13908: checking for pid_t" >&5
13908 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13911 cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 #include <sys/types.h>
13916 #include <stdlib.h>
13917 #include <stddef.h>
13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13922 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13924 eval "ac_cv_type_pid_t=yes"
13927 eval "ac_cv_type_pid_t=no"
13932 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13933 echo "$ac_t""yes" 1>&6
13935 echo "$ac_t""no" 1>&6
13936 cat >> confdefs.h <<EOF
13942 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13943 echo "configure:13944: checking for ptrdiff_t" >&5
13944 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13945 echo $ac_n "(cached) $ac_c" 1>&6
13947 cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 #include <stddef.h>
13955 if { (eval echo configure:13956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13957 am_cv_type_ptrdiff_t=yes
13959 echo "configure: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13962 am_cv_type_ptrdiff_t=no
13967 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13968 if test $am_cv_type_ptrdiff_t = yes; then
13969 cat >> confdefs.h <<\EOF
13970 #define HAVE_PTRDIFF_T 1
13975 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13976 echo "configure:13977: checking return type of signal handlers" >&5
13977 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13978 echo $ac_n "(cached) $ac_c" 1>&6
13980 cat > conftest.$ac_ext <<EOF
13981 #line 13982 "configure"
13982 #include "confdefs.h"
13983 #include <sys/types.h>
13984 #include <signal.h>
13989 extern "C" void (*signal (int, void (*)(int)))(int);
13991 void (*signal ()) ();
13998 if { (eval echo configure:13999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14000 ac_cv_type_signal=void
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14005 ac_cv_type_signal=int
14010 echo "$ac_t""$ac_cv_type_signal" 1>&6
14011 cat >> confdefs.h <<EOF
14012 #define RETSIGTYPE $ac_cv_type_signal
14016 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14017 echo "configure:14018: checking for size_t" >&5
14018 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14021 cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 #include <sys/types.h>
14026 #include <stdlib.h>
14027 #include <stddef.h>
14031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14032 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14034 eval "ac_cv_type_size_t=yes"
14037 eval "ac_cv_type_size_t=no"
14042 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6
14045 echo "$ac_t""no" 1>&6
14046 cat >> confdefs.h <<EOF
14047 #define size_t unsigned
14053 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14054 echo "configure:14055: checking for ssize_t" >&5
14055 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14056 echo $ac_n "(cached) $ac_c" 1>&6
14058 cat > conftest.$ac_ext <<EOF
14059 #line 14060 "configure"
14060 #include "confdefs.h"
14061 #include <sys/types.h>
14063 #include <stdlib.h>
14064 #include <stddef.h>
14068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14069 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14071 eval "ac_cv_type_ssize_t=yes"
14074 eval "ac_cv_type_ssize_t=no"
14079 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14080 echo "$ac_t""yes" 1>&6
14082 echo "$ac_t""no" 1>&6
14083 cat >> confdefs.h <<EOF
14084 #define ssize_t signed int
14089 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14090 echo "configure:14091: checking for caddr_t" >&5
14091 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14092 echo $ac_n "(cached) $ac_c" 1>&6
14094 cat > conftest.$ac_ext <<EOF
14095 #line 14096 "configure"
14096 #include "confdefs.h"
14097 #include <sys/types.h>
14099 #include <stdlib.h>
14100 #include <stddef.h>
14104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14105 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14107 eval "ac_cv_type_caddr_t=yes"
14110 eval "ac_cv_type_caddr_t=no"
14115 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14116 echo "$ac_t""yes" 1>&6
14118 echo "$ac_t""no" 1>&6
14119 cat >> confdefs.h <<EOF
14120 #define caddr_t char *
14126 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14127 echo "configure:14128: checking for socklen_t" >&5
14128 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14131 cat > conftest.$ac_ext <<EOF
14132 #line 14133 "configure"
14133 #include "confdefs.h"
14135 #ifdef HAVE_SYS_TYPES_H
14136 #include <sys/types.h>
14138 #ifdef HAVE_SYS_SOCKET_H
14139 #include <sys/socket.h>
14146 if { (eval echo configure:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14148 ol_cv_type_socklen_t=yes
14150 echo "configure: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14153 ol_cv_type_socklen_t=no
14158 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14159 if test $ol_cv_type_socklen_t = no; then
14160 cat >> confdefs.h <<\EOF
14161 #define socklen_t int
14166 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14167 echo "configure:14168: checking for member st_blksize in aggregate type struct stat" >&5
14168 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 #include <sys/types.h>
14175 #include <sys/stat.h>
14177 struct stat foo; foo.st_blksize;
14180 if { (eval echo configure:14181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14182 ac_cv_c_struct_member_st_blksize=yes
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14187 ac_cv_c_struct_member_st_blksize=no
14192 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14193 st_blksize="$ac_cv_c_struct_member_st_blksize"
14194 if test $ac_cv_c_struct_member_st_blksize = yes; then
14195 cat >> confdefs.h <<\EOF
14196 #define HAVE_ST_BLKSIZE 1
14201 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14202 echo "configure:14203: checking whether time.h and sys/time.h may both be included" >&5
14203 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 #include <sys/types.h>
14210 #include <sys/time.h>
14216 if { (eval echo configure:14217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14218 ac_cv_header_time=yes
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14223 ac_cv_header_time=no
14228 echo "$ac_t""$ac_cv_header_time" 1>&6
14229 if test $ac_cv_header_time = yes; then
14230 cat >> confdefs.h <<\EOF
14231 #define TIME_WITH_SYS_TIME 1
14236 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14237 echo "configure:14238: checking whether struct tm is in sys/time.h or time.h" >&5
14238 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14241 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 #include <sys/types.h>
14247 struct tm *tp; tp->tm_sec;
14250 if { (eval echo configure:14251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14252 ac_cv_struct_tm=time.h
14254 echo "configure: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14257 ac_cv_struct_tm=sys/time.h
14262 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14263 if test $ac_cv_struct_tm = sys/time.h; then
14264 cat >> confdefs.h <<\EOF
14265 #define TM_IN_SYS_TIME 1
14270 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14271 echo "configure:14272: checking for uid_t in sys/types.h" >&5
14272 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14273 echo $ac_n "(cached) $ac_c" 1>&6
14275 cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 #include <sys/types.h>
14280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14281 egrep "uid_t" >/dev/null 2>&1; then
14283 ac_cv_type_uid_t=yes
14286 ac_cv_type_uid_t=no
14292 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14293 if test $ac_cv_type_uid_t = no; then
14294 cat >> confdefs.h <<\EOF
14298 cat >> confdefs.h <<\EOF
14304 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14305 echo "configure:14306: checking for sig_atomic_t" >&5
14306 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14307 echo $ac_n "(cached) $ac_c" 1>&6
14309 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 #include <signal.h>
14314 sig_atomic_t atomic;
14317 if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 ol_cv_type_sig_atomic_t=yes
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14324 ol_cv_type_sig_atomic_t=no
14329 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14330 if test $ol_cv_type_sig_atomic_t = no; then
14331 cat >> confdefs.h <<\EOF
14332 #define sig_atomic_t int
14339 # test for pw_gecos in struct passwd
14340 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14341 echo "configure:14342: checking struct passwd for pw_gecos" >&5
14342 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14343 echo $ac_n "(cached) $ac_c" 1>&6
14346 cat > conftest.$ac_ext <<EOF
14347 #line 14348 "configure"
14348 #include "confdefs.h"
14353 pwd.pw_gecos = pwd.pw_name;
14357 if { (eval echo configure:14358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14359 ol_cv_struct_passwd_pw_gecos=yes
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14364 ol_cv_struct_passwd_pw_gecos=no
14369 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14370 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14371 cat >> confdefs.h <<\EOF
14372 #define HAVE_PW_GECOS 1
14377 # test for pw_passwd in struct passwd
14378 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14379 echo "configure:14380: checking struct passwd for pw_passwd" >&5
14380 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14381 echo $ac_n "(cached) $ac_c" 1>&6
14384 cat > conftest.$ac_ext <<EOF
14385 #line 14386 "configure"
14386 #include "confdefs.h"
14391 pwd.pw_passwd = pwd.pw_name;
14395 if { (eval echo configure:14396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397 ol_cv_struct_passwd_pw_passwd=yes
14399 echo "configure: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14402 ol_cv_struct_passwd_pw_passwd=no
14407 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14408 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14409 cat >> confdefs.h <<\EOF
14410 #define HAVE_PW_PASSWD 1
14416 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14417 echo "configure:14418: checking if toupper() requires islower()" >&5
14418 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14419 echo $ac_n "(cached) $ac_c" 1>&6
14422 if test "$cross_compiling" = yes; then
14423 ol_cv_c_upper_lower=safe
14425 cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14432 if ('C' == toupper('C'))
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14440 ol_cv_c_upper_lower=no
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14445 ol_cv_c_upper_lower=yes
14452 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14453 if test $ol_cv_c_upper_lower != no ; then
14454 cat >> confdefs.h <<\EOF
14455 #define C_UPPER_LOWER 1
14460 echo $ac_n "checking for working const""... $ac_c" 1>&6
14461 echo "configure:14462: checking for working const" >&5
14462 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14471 /* Ultrix mips cc rejects this. */
14472 typedef int charset[2]; const charset x;
14473 /* SunOS 4.1.1 cc rejects this. */
14474 char const *const *ccp;
14476 /* NEC SVR4.0.2 mips cc rejects this. */
14477 struct point {int x, y;};
14478 static struct point const zero = {0,0};
14479 /* AIX XL C 1.02.0.0 rejects this.
14480 It does not let you subtract one const X* pointer from another in an arm
14481 of an if-expression whose if-part is not a constant expression */
14482 const char *g = "string";
14483 ccp = &g + (g ? g-g : 0);
14484 /* HPUX 7.0 cc rejects these. */
14487 ccp = (char const *const *) p;
14488 { /* SCO 3.2v4 cc rejects this. */
14490 char const *s = 0 ? (char *) 0 : (char const *) 0;
14494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14495 int x[] = {25, 17};
14496 const int *foo = &x[0];
14499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14500 typedef const int *iptr;
14504 { /* AIX XL C 1.02.0.0 rejects this saying
14505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14506 struct s { int j; const int *ap[3]; };
14507 struct s *b; b->j = 5;
14509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14510 const int foo = 10;
14515 if { (eval echo configure:14516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14527 echo "$ac_t""$ac_cv_c_const" 1>&6
14528 if test $ac_cv_c_const = no; then
14529 cat >> confdefs.h <<\EOF
14535 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14536 echo "configure:14537: checking if compiler understands volatile" >&5
14537 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14538 echo $ac_n "(cached) $ac_c" 1>&6
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14545 volatile int a; int * volatile b = x ? &y : &z;
14546 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14550 if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14552 ol_cv_c_volatile=yes
14554 echo "configure: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14557 ol_cv_c_volatile=no
14562 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14563 if test $ol_cv_c_volatile = yes; then
14566 cat >> confdefs.h <<\EOF
14573 if test $cross_compiling = yes ; then
14574 cat >> confdefs.h <<\EOF
14575 #define CROSS_COMPILING 1
14579 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14580 echo "configure:14581: checking whether byte ordering is bigendian" >&5
14581 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14584 ac_cv_c_bigendian=unknown
14585 # See if sys/param.h defines the BYTE_ORDER macro.
14586 cat > conftest.$ac_ext <<EOF
14587 #line 14588 "configure"
14588 #include "confdefs.h"
14589 #include <sys/types.h>
14590 #include <sys/param.h>
14593 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14594 bogus endian macros
14598 if { (eval echo configure:14599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14600 # It does; now see whether it defined to BIG_ENDIAN or not.
14601 cat > conftest.$ac_ext <<EOF
14602 #line 14603 "configure"
14603 #include "confdefs.h"
14604 #include <sys/types.h>
14605 #include <sys/param.h>
14608 #if BYTE_ORDER != BIG_ENDIAN
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615 ac_cv_c_bigendian=yes
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14620 ac_cv_c_bigendian=no
14624 echo "configure: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14628 if test $ac_cv_c_bigendian = unknown; then
14629 if test "$cross_compiling" = yes; then
14630 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14636 /* Are we little or big endian? From Harbison&Steele. */
14640 char c[sizeof (long)];
14643 exit (u.c[sizeof (long) - 1] == 1);
14646 if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14648 ac_cv_c_bigendian=no
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14653 ac_cv_c_bigendian=yes
14661 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14662 if test $ac_cv_c_bigendian = yes; then
14663 cat >> confdefs.h <<\EOF
14664 #define WORDS_BIGENDIAN 1
14671 echo $ac_n "checking size of short""... $ac_c" 1>&6
14672 echo "configure:14673: checking size of short" >&5
14673 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14674 echo $ac_n "(cached) $ac_c" 1>&6
14676 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 #include "confdefs.h"
14681 #include <sys/types.h>
14685 switch (0) case 0: case (sizeof (short) == $ac_size):;
14688 if { (eval echo configure:14689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14690 ac_cv_sizeof_short=$ac_size
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14696 if test x$ac_cv_sizeof_short != x ; then break; fi
14701 if test x$ac_cv_sizeof_short = x ; then
14702 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14704 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14705 cat >> confdefs.h <<EOF
14706 #define SIZEOF_SHORT $ac_cv_sizeof_short
14710 echo $ac_n "checking size of int""... $ac_c" 1>&6
14711 echo "configure:14712: checking size of int" >&5
14712 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14713 echo $ac_n "(cached) $ac_c" 1>&6
14715 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14716 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure"
14718 #include "confdefs.h"
14719 #include "confdefs.h"
14720 #include <sys/types.h>
14724 switch (0) case 0: case (sizeof (int) == $ac_size):;
14727 if { (eval echo configure:14728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14729 ac_cv_sizeof_int=$ac_size
14731 echo "configure: failed program was:" >&5
14732 cat conftest.$ac_ext >&5
14735 if test x$ac_cv_sizeof_int != x ; then break; fi
14740 if test x$ac_cv_sizeof_int = x ; then
14741 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14743 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14744 cat >> confdefs.h <<EOF
14745 #define SIZEOF_INT $ac_cv_sizeof_int
14749 echo $ac_n "checking size of long""... $ac_c" 1>&6
14750 echo "configure:14751: checking size of long" >&5
14751 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14754 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 #include "confdefs.h"
14759 #include <sys/types.h>
14763 switch (0) case 0: case (sizeof (long) == $ac_size):;
14766 if { (eval echo configure:14767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14768 ac_cv_sizeof_long=$ac_size
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14774 if test x$ac_cv_sizeof_long != x ; then break; fi
14779 if test x$ac_cv_sizeof_long = x ; then
14780 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14782 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14783 cat >> confdefs.h <<EOF
14784 #define SIZEOF_LONG $ac_cv_sizeof_long
14789 if test "$ac_cv_sizeof_int" -lt 4 ; then
14790 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14792 cat >> confdefs.h <<\EOF
14793 #define LBER_INT_T long
14797 cat >> confdefs.h <<\EOF
14798 #define LBER_INT_T int
14803 cat >> confdefs.h <<\EOF
14804 #define LBER_LEN_T long
14807 cat >> confdefs.h <<\EOF
14808 #define LBER_SOCKET_T int
14811 cat >> confdefs.h <<\EOF
14812 #define LBER_TAG_T long
14816 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14817 echo "configure:14818: checking for 8-bit clean memcmp" >&5
14818 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14819 echo $ac_n "(cached) $ac_c" 1>&6
14821 if test "$cross_compiling" = yes; then
14822 ac_cv_func_memcmp_clean=no
14824 cat > conftest.$ac_ext <<EOF
14825 #line 14826 "configure"
14826 #include "confdefs.h"
14830 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14831 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14835 if { (eval echo configure:14836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14837 ac_cv_func_memcmp_clean=yes
14839 echo "configure: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14842 ac_cv_func_memcmp_clean=no
14849 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14850 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14852 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14853 echo "configure:14854: checking for strftime" >&5
14854 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14855 echo $ac_n "(cached) $ac_c" 1>&6
14857 cat > conftest.$ac_ext <<EOF
14858 #line 14859 "configure"
14859 #include "confdefs.h"
14860 /* System header to define __stub macros and hopefully few prototypes,
14861 which can conflict with char strftime(); below. */
14862 #include <assert.h>
14863 /* Override any gcc2 internal prototype to avoid an error. */
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14871 /* The GNU C library defines this for functions which it implements
14872 to always fail with ENOSYS. Some functions are actually named
14873 something starting with __ and the normal name is an alias. */
14874 #if defined (__stub_strftime) || defined (__stub___strftime)
14882 if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14884 eval "ac_cv_func_strftime=yes"
14886 echo "configure: failed program was:" >&5
14887 cat conftest.$ac_ext >&5
14889 eval "ac_cv_func_strftime=no"
14894 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14895 echo "$ac_t""yes" 1>&6
14896 cat >> confdefs.h <<\EOF
14897 #define HAVE_STRFTIME 1
14901 echo "$ac_t""no" 1>&6
14902 # strftime is in -lintl on SCO UNIX.
14903 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14904 echo "configure:14905: checking for strftime in -lintl" >&5
14905 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14907 echo $ac_n "(cached) $ac_c" 1>&6
14909 ac_save_LIBS="$LIBS"
14910 LIBS="-lintl $LIBS"
14911 cat > conftest.$ac_ext <<EOF
14912 #line 14913 "configure"
14913 #include "confdefs.h"
14914 /* Override any gcc2 internal prototype to avoid an error. */
14915 /* We use char because int might match the return type of a gcc2
14916 builtin and then its argument prototype would still apply. */
14923 if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14925 eval "ac_cv_lib_$ac_lib_var=yes"
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14930 eval "ac_cv_lib_$ac_lib_var=no"
14933 LIBS="$ac_save_LIBS"
14936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14937 echo "$ac_t""yes" 1>&6
14938 cat >> confdefs.h <<\EOF
14939 #define HAVE_STRFTIME 1
14942 LIBS="-lintl $LIBS"
14944 echo "$ac_t""no" 1>&6
14950 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14951 echo "configure:14952: checking for inet_aton()" >&5
14952 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14959 #ifdef HAVE_SYS_TYPES_H
14960 # include <sys/types.h>
14962 #ifdef HAVE_SYS_SOCKET_H
14963 # include <sys/socket.h>
14964 # ifdef HAVE_SYS_SELECT_H
14965 # include <sys/select.h>
14967 # include <netinet/in.h>
14968 # ifdef HAVE_ARPA_INET_H
14969 # include <arpa/inet.h>
14975 int rc = inet_aton( "255.255.255.255", &in );
14978 if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 ol_cv_func_inet_aton=yes
14982 echo "configure: failed program was:" >&5
14983 cat conftest.$ac_ext >&5
14985 ol_cv_func_inet_aton=no
14990 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14991 if test $ol_cv_func_inet_aton != no; then
14992 cat >> confdefs.h <<\EOF
14993 #define HAVE_INET_ATON 1
14999 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15000 echo "configure:15001: checking for _spawnlp" >&5
15001 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15002 echo $ac_n "(cached) $ac_c" 1>&6
15004 cat > conftest.$ac_ext <<EOF
15005 #line 15006 "configure"
15006 #include "confdefs.h"
15007 /* System header to define __stub macros and hopefully few prototypes,
15008 which can conflict with char _spawnlp(); below. */
15009 #include <assert.h>
15010 /* Override any gcc2 internal prototype to avoid an error. */
15011 /* We use char because int might match the return type of a gcc2
15012 builtin and then its argument prototype would still apply. */
15018 /* The GNU C library defines this for functions which it implements
15019 to always fail with ENOSYS. Some functions are actually named
15020 something starting with __ and the normal name is an alias. */
15021 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 eval "ac_cv_func__spawnlp=yes"
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15036 eval "ac_cv_func__spawnlp=no"
15041 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15042 echo "$ac_t""yes" 1>&6
15043 cat >> confdefs.h <<\EOF
15044 #define HAVE_SPAWNLP 1
15048 echo "$ac_t""no" 1>&6
15052 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15053 echo "configure:15054: checking for _snprintf" >&5
15054 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 /* System header to define __stub macros and hopefully few prototypes,
15061 which can conflict with char _snprintf(); below. */
15062 #include <assert.h>
15063 /* Override any gcc2 internal prototype to avoid an error. */
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15071 /* The GNU C library defines this for functions which it implements
15072 to always fail with ENOSYS. Some functions are actually named
15073 something starting with __ and the normal name is an alias. */
15074 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084 eval "ac_cv_func__snprintf=yes"
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15089 eval "ac_cv_func__snprintf=no"
15094 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15095 echo "$ac_t""yes" 1>&6
15096 ac_cv_func_snprintf=yes
15097 cat >> confdefs.h <<\EOF
15098 #define snprintf _snprintf
15103 echo "$ac_t""no" 1>&6
15107 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15108 echo "configure:15109: checking for _vsnprintf" >&5
15109 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15112 cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15115 /* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char _vsnprintf(); below. */
15117 #include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error. */
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15126 /* The GNU C library defines this for functions which it implements
15127 to always fail with ENOSYS. Some functions are actually named
15128 something starting with __ and the normal name is an alias. */
15129 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15137 if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15139 eval "ac_cv_func__vsnprintf=yes"
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15144 eval "ac_cv_func__vsnprintf=no"
15149 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15150 echo "$ac_t""yes" 1>&6
15151 ac_cv_func_vsnprintf=yes
15152 cat >> confdefs.h <<\EOF
15153 #define vsnprintf _vsnprintf
15158 echo "$ac_t""no" 1>&6
15162 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15163 echo "configure:15164: checking for vprintf" >&5
15164 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15165 echo $ac_n "(cached) $ac_c" 1>&6
15167 cat > conftest.$ac_ext <<EOF
15168 #line 15169 "configure"
15169 #include "confdefs.h"
15170 /* System header to define __stub macros and hopefully few prototypes,
15171 which can conflict with char vprintf(); below. */
15172 #include <assert.h>
15173 /* Override any gcc2 internal prototype to avoid an error. */
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15181 /* The GNU C library defines this for functions which it implements
15182 to always fail with ENOSYS. Some functions are actually named
15183 something starting with __ and the normal name is an alias. */
15184 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15192 if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15194 eval "ac_cv_func_vprintf=yes"
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15199 eval "ac_cv_func_vprintf=no"
15204 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15205 echo "$ac_t""yes" 1>&6
15206 cat >> confdefs.h <<\EOF
15207 #define HAVE_VPRINTF 1
15211 echo "$ac_t""no" 1>&6
15214 if test "$ac_cv_func_vprintf" != yes; then
15215 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15216 echo "configure:15217: checking for _doprnt" >&5
15217 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15218 echo $ac_n "(cached) $ac_c" 1>&6
15220 cat > conftest.$ac_ext <<EOF
15221 #line 15222 "configure"
15222 #include "confdefs.h"
15223 /* System header to define __stub macros and hopefully few prototypes,
15224 which can conflict with char _doprnt(); below. */
15225 #include <assert.h>
15226 /* Override any gcc2 internal prototype to avoid an error. */
15227 /* We use char because int might match the return type of a gcc2
15228 builtin and then its argument prototype would still apply. */
15234 /* The GNU C library defines this for functions which it implements
15235 to always fail with ENOSYS. Some functions are actually named
15236 something starting with __ and the normal name is an alias. */
15237 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15245 if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15247 eval "ac_cv_func__doprnt=yes"
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15252 eval "ac_cv_func__doprnt=no"
15257 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15258 echo "$ac_t""yes" 1>&6
15259 cat >> confdefs.h <<\EOF
15260 #define HAVE_DOPRNT 1
15264 echo "$ac_t""no" 1>&6
15270 if test $ac_cv_func_vprintf = yes ; then
15271 for ac_func in vsnprintf vsprintf
15273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15274 echo "configure:15275: checking for $ac_func" >&5
15275 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15278 cat > conftest.$ac_ext <<EOF
15279 #line 15280 "configure"
15280 #include "confdefs.h"
15281 /* System header to define __stub macros and hopefully few prototypes,
15282 which can conflict with char $ac_func(); below. */
15283 #include <assert.h>
15284 /* Override any gcc2 internal prototype to avoid an error. */
15285 /* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15292 /* The GNU C library defines this for functions which it implements
15293 to always fail with ENOSYS. Some functions are actually named
15294 something starting with __ and the normal name is an alias. */
15295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15305 eval "ac_cv_func_$ac_func=yes"
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15310 eval "ac_cv_func_$ac_func=no"
15315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15316 echo "$ac_t""yes" 1>&6
15317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15318 cat >> confdefs.h <<EOF
15319 #define $ac_tr_func 1
15323 echo "$ac_t""no" 1>&6
15381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15382 echo "configure:15383: checking for $ac_func" >&5
15383 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15384 echo $ac_n "(cached) $ac_c" 1>&6
15386 cat > conftest.$ac_ext <<EOF
15387 #line 15388 "configure"
15388 #include "confdefs.h"
15389 /* System header to define __stub macros and hopefully few prototypes,
15390 which can conflict with char $ac_func(); below. */
15391 #include <assert.h>
15392 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15400 /* The GNU C library defines this for functions which it implements
15401 to always fail with ENOSYS. Some functions are actually named
15402 something starting with __ and the normal name is an alias. */
15403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15411 if { (eval echo configure:15412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15413 eval "ac_cv_func_$ac_func=yes"
15415 echo "configure: failed program was:" >&5
15416 cat conftest.$ac_ext >&5
15418 eval "ac_cv_func_$ac_func=no"
15423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15424 echo "$ac_t""yes" 1>&6
15425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15426 cat >> confdefs.h <<EOF
15427 #define $ac_tr_func 1
15431 echo "$ac_t""no" 1>&6
15436 for ac_func in getopt tempnam
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
15489 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15495 if test "$ac_cv_func_getopt" != yes; then
15496 LIBSRCS="$LIBSRCS getopt.c"
15499 if test "$ac_cv_func_tempnam" != yes; then
15500 LIBSRCS="$LIBSRCS tempnam.c"
15503 # Check Configuration
15504 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15505 echo "configure:15506: checking declaration of sys_errlist" >&5
15506 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15507 echo $ac_n "(cached) $ac_c" 1>&6
15510 cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15515 #include <sys/types.h>
15518 #include <stdlib.h>
15521 char *c = (char *) *sys_errlist
15524 if { (eval echo configure:15525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15526 ol_cv_dcl_sys_errlist=yes
15527 ol_cv_have_sys_errlist=yes
15529 echo "configure: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15532 ol_cv_dcl_sys_errlist=no
15537 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15539 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15540 if test $ol_cv_dcl_sys_errlist = no ; then
15541 cat >> confdefs.h <<\EOF
15542 #define DECL_SYS_ERRLIST 1
15546 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15547 echo "configure:15548: checking existence of sys_errlist" >&5
15548 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15549 echo $ac_n "(cached) $ac_c" 1>&6
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15557 char *c = (char *) *sys_errlist
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15562 ol_cv_have_sys_errlist=yes
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15567 ol_cv_have_sys_errlist=no
15572 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15574 if test $ol_cv_have_sys_errlist = yes ; then
15575 cat >> confdefs.h <<\EOF
15576 #define HAVE_SYS_ERRLIST 1
15583 if test "$ol_enable_debug" != no ; then
15584 cat >> confdefs.h <<\EOF
15585 #define LDAP_DEBUG 1
15589 if test "$ol_enable_syslog" = yes ; then
15590 cat >> confdefs.h <<\EOF
15591 #define LDAP_SYSLOG 1
15595 if test "$ol_enable_libui" = yes ; then
15596 cat >> confdefs.h <<\EOF
15597 #define LDAP_LIBUI 1
15601 if test "$ol_enable_cache" = no ; then
15602 cat >> confdefs.h <<\EOF
15603 #define LDAP_NOCACHE 1
15607 if test "$ol_link_kbind" != no ; then
15608 cat >> confdefs.h <<\EOF
15609 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15613 if test "$ol_enable_proctitle" != no ; then
15614 cat >> confdefs.h <<\EOF
15615 #define LDAP_PROCTITLE 1
15619 if test "$ol_enable_referrals" != no ; then
15620 cat >> confdefs.h <<\EOF
15621 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15625 if test "$ol_enable_local" != no; then
15626 cat >> confdefs.h <<\EOF
15627 #define LDAP_PF_LOCAL 1
15631 if test "$ol_link_ipv6" != no; then
15632 cat >> confdefs.h <<\EOF
15633 #define LDAP_PF_INET6 1
15637 if test "$ol_enable_cleartext" != no ; then
15638 cat >> confdefs.h <<\EOF
15639 #define SLAPD_CLEARTEXT 1
15643 if test "$ol_enable_crypt" != no ; then
15644 cat >> confdefs.h <<\EOF
15645 #define SLAPD_CRYPT 1
15649 if test "$ol_link_kpasswd" != no ; then
15650 cat >> confdefs.h <<\EOF
15651 #define SLAPD_KPASSWD 1
15655 if test "$ol_link_spasswd" != no ; then
15656 cat >> confdefs.h <<\EOF
15657 #define SLAPD_SPASSWD 1
15661 if test "$ol_enable_multimaster" != no ; then
15662 cat >> confdefs.h <<\EOF
15663 #define SLAPD_MULTIMASTER 1
15667 if test "$ol_enable_phonetic" != no ; then
15668 cat >> confdefs.h <<\EOF
15669 #define SLAPD_PHONETIC 1
15673 if test "$ol_enable_rlookups" != no ; then
15674 cat >> confdefs.h <<\EOF
15675 #define SLAPD_RLOOKUPS 1
15679 if test "$ol_enable_aci" != no ; then
15680 cat >> confdefs.h <<\EOF
15681 #define SLAPD_ACI_ENABLED 1
15686 if test "$ol_link_modules" != no ; then
15687 cat >> confdefs.h <<\EOF
15688 #define SLAPD_MODULES 1
15692 SLAPD_MODULES_LDFLAGS="-dlopen self"
15695 if test "$ol_link_dnssrv" != no ; then
15696 cat >> confdefs.h <<\EOF
15697 #define SLAPD_DNSSRV 1
15702 if test "$ol_with_dnssrv_module" != static ; then
15703 cat >> confdefs.h <<\EOF
15704 #define SLAPD_DNSSRV_DYNAMIC 1
15708 BUILD_DNSSRV_DYNAMIC=shared
15709 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15713 if test "$ol_enable_ldap" != no ; then
15714 cat >> confdefs.h <<\EOF
15715 #define SLAPD_LDAP 1
15720 if test "$ol_with_ldap_module" != static ; then
15721 cat >> confdefs.h <<\EOF
15722 #define SLAPD_LDAP_DYNAMIC 1
15726 BUILD_LDAP_DYNAMIC=shared
15727 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15731 if test "$ol_link_ldbm" != no ; then
15732 cat >> confdefs.h <<\EOF
15733 #define SLAPD_LDBM 1
15738 if test "$ol_with_ldbm_module" != static ; then
15739 cat >> confdefs.h <<\EOF
15740 #define SLAPD_LDBM_DYNAMIC 1
15744 BUILD_LDBM_DYNAMIC=shared
15745 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15749 if test "$ol_enable_passwd" != no ; then
15750 cat >> confdefs.h <<\EOF
15751 #define SLAPD_PASSWD 1
15756 if test "$ol_with_passwd_module" != static ; then
15757 cat >> confdefs.h <<\EOF
15758 #define SLAPD_PASSWD_DYNAMIC 1
15762 BUILD_PASSWD_DYNAMIC=shared
15763 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15767 if test "$ol_enable_shell" != no ; then
15768 cat >> confdefs.h <<\EOF
15769 #define SLAPD_SHELL 1
15774 if test "$ol_with_shell_module" != static ; then
15775 cat >> confdefs.h <<\EOF
15776 #define SLAPD_SHELL_DYNAMIC 1
15780 BUILD_SHELL_DYNAMIC=shared
15781 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15785 if test "$ol_enable_sql" != no ; then
15786 cat >> confdefs.h <<\EOF
15787 #define SLAPD_SQL 1
15792 if test "$ol_with_sql_module" != static; then
15793 cat >> confdefs.h <<\EOF
15794 #define SLAPD_SQL_DYNAMIC 1
15798 BUILD_SQL_DYNAMIC=shared
15799 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15803 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15804 $BUILD_SLAPD = yes ; then
15809 if test "$LINK_BINS_DYNAMIC" = yes; then
15811 LT_LIB_LINKAGE=shared
15814 LT_LIB_LINKAGE=static
15817 if test "$ac_cv_mingw32" = yes ; then
15877 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15880 # Let make expand exec_prefix.
15881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15883 # Any assignment to VPATH causes Sun make to only execute
15884 # the first set of double-colon rules, so remove it if not needed.
15885 # If there is a colon in the path, we need to keep it.
15886 if test "x$srcdir" = x.; then
15887 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15890 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15892 DEFS=-DHAVE_CONFIG_H
15894 # Without the "./", some shells look in PATH for config.status.
15895 : ${CONFIG_STATUS=./config.status}
15897 echo creating $CONFIG_STATUS
15898 rm -f $CONFIG_STATUS
15899 cat > $CONFIG_STATUS <<EOF
15901 # Generated automatically by configure.
15902 # Run this file to recreate the current configuration.
15903 # This directory was configured as follows,
15904 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15906 # $0 $ac_configure_args
15908 # Compiler output produced by configure, useful for debugging
15909 # configure, is in ./config.log if it exists.
15911 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15914 case "\$ac_option" in
15915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15916 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15917 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15918 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15919 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15921 -help | --help | --hel | --he | --h)
15922 echo "\$ac_cs_usage"; exit 0 ;;
15923 *) echo "\$ac_cs_usage"; exit 1 ;;
15927 ac_given_srcdir=$srcdir
15928 ac_given_INSTALL="$INSTALL"
15930 trap 'rm -fr `echo "\
15931 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15932 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15933 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15934 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15935 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15936 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15937 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15938 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15939 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15940 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15941 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15942 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15943 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15944 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15945 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
15946 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15947 include/Makefile:build/top.mk:include/Makefile.in \
15948 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15949 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15950 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15951 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15952 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15953 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15954 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15955 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15956 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15957 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15958 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15959 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
15960 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15961 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15962 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15963 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15964 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15965 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15966 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15967 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15968 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15969 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15970 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15971 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15972 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15974 cat >> $CONFIG_STATUS <<EOF
15976 # Protect against being on the right side of a sed subst in config.status.
15977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15982 s%@CFLAGS@%$CFLAGS%g
15983 s%@CPPFLAGS@%$CPPFLAGS%g
15984 s%@CXXFLAGS@%$CXXFLAGS%g
15985 s%@FFLAGS@%$FFLAGS%g
15987 s%@LDFLAGS@%$LDFLAGS%g
15989 s%@exec_prefix@%$exec_prefix%g
15990 s%@prefix@%$prefix%g
15991 s%@program_transform_name@%$program_transform_name%g
15992 s%@bindir@%$bindir%g
15993 s%@sbindir@%$sbindir%g
15994 s%@libexecdir@%$libexecdir%g
15995 s%@datadir@%$datadir%g
15996 s%@sysconfdir@%$sysconfdir%g
15997 s%@sharedstatedir@%$sharedstatedir%g
15998 s%@localstatedir@%$localstatedir%g
15999 s%@libdir@%$libdir%g
16000 s%@includedir@%$includedir%g
16001 s%@oldincludedir@%$oldincludedir%g
16002 s%@infodir@%$infodir%g
16003 s%@mandir@%$mandir%g
16005 s%@host_alias@%$host_alias%g
16006 s%@host_cpu@%$host_cpu%g
16007 s%@host_vendor@%$host_vendor%g
16008 s%@host_os@%$host_os%g
16009 s%@target@%$target%g
16010 s%@target_alias@%$target_alias%g
16011 s%@target_cpu@%$target_cpu%g
16012 s%@target_vendor@%$target_vendor%g
16013 s%@target_os@%$target_os%g
16015 s%@build_alias@%$build_alias%g
16016 s%@build_cpu@%$build_cpu%g
16017 s%@build_vendor@%$build_vendor%g
16018 s%@build_os@%$build_os%g
16019 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16020 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16021 s%@INSTALL_DATA@%$INSTALL_DATA%g
16022 s%@PACKAGE@%$PACKAGE%g
16023 s%@VERSION@%$VERSION%g
16024 s%@ACLOCAL@%$ACLOCAL%g
16025 s%@AUTOCONF@%$AUTOCONF%g
16026 s%@AUTOMAKE@%$AUTOMAKE%g
16027 s%@AUTOHEADER@%$AUTOHEADER%g
16028 s%@MAKEINFO@%$MAKEINFO%g
16029 s%@install_sh@%$install_sh%g
16032 s%@AMTARFLAGS@%$AMTARFLAGS%g
16033 s%@SET_MAKE@%$SET_MAKE%g
16034 s%@top_builddir@%$top_builddir%g
16035 s%@ldap_subdir@%$ldap_subdir%g
16037 s%@RANLIB@%$RANLIB%g
16039 s%@DLLTOOL@%$DLLTOOL%g
16041 s%@OBJDUMP@%$OBJDUMP%g
16042 s%@LIBTOOL@%$LIBTOOL%g
16044 s%@SENDMAIL@%$SENDMAIL%g
16045 s%@EDITOR@%$EDITOR%g
16046 s%@FINGER@%$FINGER%g
16048 s%@EXEEXT@%$EXEEXT%g
16049 s%@OBJEXT@%$OBJEXT%g
16050 s%@OL_MKDEP@%$OL_MKDEP%g
16051 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16052 s%@LIBOBJS@%$LIBOBJS%g
16053 s%@LIBSRCS@%$LIBSRCS%g
16055 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16056 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16057 s%@DYN_EXT@%$DYN_EXT%g
16058 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16059 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16060 s%@BUILD_LDAP@%$BUILD_LDAP%g
16061 s%@BUILD_LDBM@%$BUILD_LDBM%g
16062 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16063 s%@BUILD_SHELL@%$BUILD_SHELL%g
16064 s%@BUILD_SQL@%$BUILD_SQL%g
16065 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16066 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16067 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16068 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16069 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16070 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16071 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16072 s%@LDAP_LIBS@%$LDAP_LIBS%g
16073 s%@LDIF_LIBS@%$LDIF_LIBS%g
16074 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16075 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16076 s%@LDBM_LIBS@%$LDBM_LIBS%g
16077 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16078 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16079 s%@WRAP_LIBS@%$WRAP_LIBS%g
16080 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16081 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16082 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16083 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16084 s%@KRB4_LIBS@%$KRB4_LIBS%g
16085 s%@KRB5_LIBS@%$KRB5_LIBS%g
16086 s%@READLINE_LIBS@%$READLINE_LIBS%g
16087 s%@SASL_LIBS@%$SASL_LIBS%g
16088 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16089 s%@TLS_LIBS@%$TLS_LIBS%g
16090 s%@MODULES_LIBS@%$MODULES_LIBS%g
16091 s%@AUTH_LIBS@%$AUTH_LIBS%g
16092 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16093 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16094 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16099 cat >> $CONFIG_STATUS <<\EOF
16101 # Split the substitutions into bite-sized pieces for seds with
16102 # small command number limits, like on Digital OSF/1 and HP-UX.
16103 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16104 ac_file=1 # Number of current file.
16105 ac_beg=1 # First line for current file.
16106 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16109 while $ac_more_lines; do
16110 if test $ac_beg -gt 1; then
16111 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16113 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16115 if test ! -s conftest.s$ac_file; then
16116 ac_more_lines=false
16117 rm -f conftest.s$ac_file
16119 if test -z "$ac_sed_cmds"; then
16120 ac_sed_cmds="sed -f conftest.s$ac_file"
16122 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16124 ac_file=`expr $ac_file + 1`
16126 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16129 if test -z "$ac_sed_cmds"; then
16134 cat >> $CONFIG_STATUS <<EOF
16136 CONFIG_FILES=\${CONFIG_FILES-"\
16137 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16138 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16139 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16140 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16141 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16142 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16143 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16144 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16145 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16146 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16147 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16148 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16149 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16150 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16151 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16152 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16153 include/Makefile:build/top.mk:include/Makefile.in \
16154 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16155 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16156 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16157 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16158 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16159 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16160 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16161 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16162 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16163 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16164 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16165 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16166 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16167 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16168 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16169 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16170 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16171 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16172 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16173 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16174 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16175 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16176 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16177 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16180 cat >> $CONFIG_STATUS <<\EOF
16181 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16184 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16185 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16186 *) ac_file_in="${ac_file}.in" ;;
16189 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16191 # Remove last slash and all that follows it. Not all systems have dirname.
16192 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16193 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16194 # The file is in a subdirectory.
16195 test ! -d "$ac_dir" && mkdir "$ac_dir"
16196 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16197 # A "../" for each directory in $ac_dir_suffix.
16198 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16200 ac_dir_suffix= ac_dots=
16203 case "$ac_given_srcdir" in
16205 if test -z "$ac_dots"; then top_srcdir=.
16206 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16207 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16208 *) # Relative path.
16209 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16210 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16213 case "$ac_given_INSTALL" in
16214 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16215 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16218 echo creating "$ac_file"
16220 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16222 *[Mm]akefile*) ac_comsub="1i\\
16223 # $configure_input" ;;
16227 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16229 s%@configure_input@%$configure_input%g
16230 s%@srcdir@%$srcdir%g
16231 s%@top_srcdir@%$top_srcdir%g
16232 s%@INSTALL@%$INSTALL%g
16233 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16240 # ac_d sets the value in "#define NAME VALUE" lines.
16241 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16242 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16245 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16246 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16247 ac_uB='\([ ]\)%\1#\2define\3'
16250 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16251 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16252 ac_eB='$%\1#\2define\3'
16256 if test "${CONFIG_HEADERS+set}" != set; then
16258 cat >> $CONFIG_STATUS <<EOF
16259 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16261 cat >> $CONFIG_STATUS <<\EOF
16263 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16266 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16267 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16268 *) ac_file_in="${ac_file}.in" ;;
16271 echo creating $ac_file
16273 rm -f conftest.frag conftest.in conftest.out
16274 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16275 cat $ac_file_inputs > conftest.in
16279 # Transform confdefs.h into a sed script conftest.vals that substitutes
16280 # the proper values into config.h.in to produce config.h. And first:
16281 # Protect against being on the right side of a sed subst in config.status.
16282 # Protect against being in an unquoted here document in config.status.
16283 rm -f conftest.vals
16284 cat > conftest.hdr <<\EOF
16287 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16291 sed -n -f conftest.hdr confdefs.h > conftest.vals
16294 # This sed command replaces #undef with comments. This is necessary, for
16295 # example, in the case of _POSIX_SOURCE, which is predefined and required
16296 # on some systems where configure will not decide to define it.
16297 cat >> conftest.vals <<\EOF
16298 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16301 # Break up conftest.vals because some shells have a limit on
16302 # the size of here documents, and old seds have small limits too.
16304 rm -f conftest.tail
16307 ac_lines=`grep -c . conftest.vals`
16308 # grep -c gives empty output for an empty file on some AIX systems.
16309 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16310 # Write a limited-size here document to conftest.frag.
16311 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16312 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16314 sed -f conftest.frag conftest.in > conftest.out
16316 mv conftest.out conftest.in
16317 ' >> $CONFIG_STATUS
16318 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16319 rm -f conftest.vals
16320 mv conftest.tail conftest.vals
16322 rm -f conftest.vals
16324 cat >> $CONFIG_STATUS <<\EOF
16325 rm -f conftest.frag conftest.h
16326 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16327 cat conftest.in >> conftest.h
16329 if cmp -s $ac_file conftest.h 2>/dev/null; then
16330 echo "$ac_file is unchanged"
16333 # Remove last slash and all that follows it. Not all systems have dirname.
16334 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16335 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16336 # The file is in a subdirectory.
16337 test ! -d "$ac_dir" && mkdir "$ac_dir"
16340 mv conftest.h $ac_file
16345 cat >> $CONFIG_STATUS <<EOF
16348 cat >> $CONFIG_STATUS <<\EOF
16351 echo Please \"make depend\" to build dependencies
16355 chmod +x $CONFIG_STATUS
16356 rm -fr confdefs* $ac_clean_files
16357 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1