3 # from OpenLDAP: pkg/ldap/configure.in,v 1.312 2000/06/08 22:49:09 jsanchez 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 "Copying restrictions apply, see COPYRIGHT file."
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 (auto)"
42 --enable-cldap enable connectionless ldap (no)"
44 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
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 use 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-quipu build quipu migration tools (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-wrappers enable tcp wrapper support (no)"
88 --enable-dynamic enable linking built binaries with dynamic libs (no)"
90 --enable-dnssrv enable dnssrv backend (no)"
92 --with-dnssrv-module module type (static)"
94 --enable-ldap enable ldap backend (no)"
96 --with-ldap-module module type (static)"
98 --enable-ldbm enable ldbm backend (yes)"
100 --with-ldbm-api use LDBM API (auto)"
102 --with-ldbm-module module type (static)"
104 --with-ldbm-type use LDBM type (auto)"
106 --enable-passwd enable passwd backend (no)"
108 --with-passwd-module module type (static)"
110 --enable-perl enable perl backend (no)"
112 --with-perl-module module type (static)"
114 --enable-shell enable shell backend (no)"
116 --with-shell-module module type (static)"
118 --enable-sql enable sql backend (no)"
120 --with-sql-module module type (static)"
122 --enable-tcl enable tcl backend (no)"
124 --with-tcl-module module type (static)"
126 SLURPD (Replication Daemon) Options:"
128 --enable-slurpd enable building slurpd (auto)"
130 Library Generation & Linking Options"
132 --enable-static[=PKGS] build static libraries [default=yes]"
134 --enable-shared[=PKGS] build shared libraries [default=yes]"
136 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
138 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
140 --disable-libtool-lock avoid locking (might break parallel builds)"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13.1"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=build/version
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
624 ac_cpp='$CPP $CPPFLAGS'
625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
627 cross_compiling=$ac_cv_prog_cc_cross
631 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
632 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
633 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
640 ac_n= ac_c='\c' ac_t=
644 # set unset (borrowed from autoconf 2.14a)
645 if (unset FOO) >/dev/null 2>&1; then
651 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
654 for ac_dir in build $srcdir/build; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
663 elif test -f $ac_dir/shtool; then
665 ac_install_sh="$ac_aux_dir/shtool install -c"
669 if test -z "$ac_aux_dir"; then
670 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
674 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
676 OL_VERSION=`cat $ac_aux_dir/version`
677 if test -z "$OL_VERSION"; then
678 { echo "configure: error: could not determine version" 1>&2; exit 1; }
681 echo "Configuring OpenLDAP $OL_VERSION ..."
684 echo $ac_n "checking host system type""... $ac_c" 1>&6
685 echo "configure:686: checking host system type" >&5
686 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 ac_cv_host_alias=$host
694 case "$ac_cv_host_alias" in
698 if ac_cv_host_alias=`$ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 *) ac_cv_host_alias=$nonopt ;;
705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
706 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_host" 1>&6
716 host_alias=$ac_cv_host_alias
717 host_cpu=$ac_cv_host_cpu
718 host_vendor=$ac_cv_host_vendor
719 host_os=$ac_cv_host_os
725 echo $ac_n "checking target system type""... $ac_c" 1>&6
726 echo "configure:727: checking target system type" >&5
727 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_target_alias=$target
735 case "$ac_cv_target_alias" in
739 ac_cv_target_alias=$host_alias ;;
741 *) ac_cv_target_alias=$nonopt ;;
745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
746 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_target" 1>&6
756 target_alias=$ac_cv_target_alias
757 target_cpu=$ac_cv_target_cpu
758 target_vendor=$ac_cv_target_vendor
759 target_os=$ac_cv_target_os
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
767 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
769 # Make sure we can run config.sub.
770 if $ac_config_sub sun4 >/dev/null 2>&1; then :
771 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 ac_cv_build_alias=$build
775 case "$ac_cv_build_alias" in
779 ac_cv_build_alias=$host_alias ;;
781 *) ac_cv_build_alias=$nonopt ;;
785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
786 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo $ac_n "(cached) $ac_c" 1>&6
793 echo "$ac_t""$ac_cv_build" 1>&6
796 build_alias=$ac_cv_build_alias
797 build_cpu=$ac_cv_build_cpu
798 build_vendor=$ac_cv_build_vendor
799 build_os=$ac_cv_build_os
805 # Do some error checking and defaulting for the host and target type.
807 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
810 # 1. You are not allowed to specify --host, --target, and nonopt at the
812 # 2. Host defaults to nonopt.
813 # 3. If nonopt is not specified, then host defaults to the current host,
814 # as determined by config.guess.
815 # 4. Target and build default to nonopt.
816 # 5. If nonopt is not specified, then target and build default to host.
818 # The aliases save the names the user supplied, while $host etc.
819 # will get canonicalized.
820 case $host---$target---$nonopt in
821 NONE---*---* | *---NONE---* | *---*---NONE) ;;
822 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
828 program_prefix=${target_alias}-
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 # Don't use installbsd from OSF since it installs stuff as root
857 for ac_prog in ginstall scoinst install; do
858 if test -f $ac_dir/$ac_prog; then
859 if test $ac_prog = install &&
860 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # AIX install. It has an incompatible calling convention.
863 elif test $ac_prog = install &&
864 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # program-specific install script used by HP pwplus--don't use.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
900 echo "configure:901: checking whether build environment is sane" >&5
903 echo timestamp > conftestfile
904 # Do `set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
910 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911 if test "$*" = "X"; then
913 set X `ls -t $srcdir/configure conftestfile`
915 if test "$*" != "X $srcdir/configure conftestfile" \
916 && test "$*" != "X conftestfile $srcdir/configure"; then
918 # If neither matched, then we have a broken ls. This can happen
919 # if, for instance, CONFIG_SHELL is bash and it inherits a
920 # broken ls alias from the environment. This has actually
921 # happened. Such a system could not be considered "sane".
922 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
923 alias in your environment" 1>&2; exit 1; }
926 test "$2" = conftestfile
932 { echo "configure: error: newly created file is older than distributed files!
933 Check your system clock" 1>&2; exit 1; }
936 echo "$ac_t""yes" 1>&6
937 if test "$program_transform_name" = s,x,x,; then
938 program_transform_name=
940 # Double any \ or $. echo might interpret backslashes.
941 cat <<\EOF_SED > conftestsed
942 s,\\,\\\\,g; s,\$,$$,g
944 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
947 test "$program_prefix" != NONE &&
948 program_transform_name="s,^,${program_prefix},;$program_transform_name"
949 # Use a double $ so make ignores it.
950 test "$program_suffix" != NONE &&
951 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
953 # sed with no file args requires a program.
954 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
956 for ac_prog in mawk gawk nawk awk
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$AWK"; then
966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_AWK="$ac_prog"
980 AWK="$ac_cv_prog_AWK"
981 if test -n "$AWK"; then
982 echo "$ac_t""$AWK" 1>&6
984 echo "$ac_t""no" 1>&6
987 test -n "$AWK" && break
990 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${MAKE-make} sets \${MAKE}" >&5
992 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
993 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftestmake <<\EOF
998 @echo 'ac_maketemp="${MAKE}"'
1000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1001 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1002 if test -n "$ac_maketemp"; then
1003 eval ac_cv_prog_make_${ac_make}_set=yes
1005 eval ac_cv_prog_make_${ac_make}_set=no
1009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1010 echo "$ac_t""yes" 1>&6
1013 echo "$ac_t""no" 1>&6
1014 SET_MAKE="MAKE=${MAKE-make}"
1023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1024 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029 missing_dir=`cd $ac_aux_dir && pwd`
1030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working aclocal" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1037 echo "$ac_t""found" 1>&6
1039 ACLOCAL="$missing_dir/missing aclocal"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working autoconf" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1050 echo "$ac_t""found" 1>&6
1052 AUTOCONF="$missing_dir/missing autoconf"
1053 echo "$ac_t""missing" 1>&6
1056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1057 echo "configure:1058: checking for working automake" >&5
1058 # Run test in a subshell; some versions of sh will print an error if
1059 # an executable is not found, even if stderr is redirected.
1060 # Redirect stdin to placate older versions of autoconf. Sigh.
1061 if (automake --version) < /dev/null > /dev/null 2>&1; then
1063 echo "$ac_t""found" 1>&6
1065 AUTOMAKE="$missing_dir/missing automake"
1066 echo "$ac_t""missing" 1>&6
1069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working autoheader" >&5
1071 # Run test in a subshell; some versions of sh will print an error if
1072 # an executable is not found, even if stderr is redirected.
1073 # Redirect stdin to placate older versions of autoconf. Sigh.
1074 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1075 AUTOHEADER=autoheader
1076 echo "$ac_t""found" 1>&6
1078 AUTOHEADER="$missing_dir/missing autoheader"
1079 echo "$ac_t""missing" 1>&6
1082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working makeinfo" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 MAKEINFO="$missing_dir/missing makeinfo"
1092 echo "$ac_t""missing" 1>&6
1095 install_sh="$missing_dir/install-sh"
1096 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1098 for ac_prog in gnutar gtar tar
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$AMTAR"; then
1108 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AMTAR="$ac_prog"
1122 AMTAR="$ac_cv_prog_AMTAR"
1123 if test -n "$AMTAR"; then
1124 echo "$ac_t""$AMTAR" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 test -n "$AMTAR" && break
1134 if test -n "$AMTAR"; then
1135 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_PACKAGE "$PACKAGE"
1146 cat >> confdefs.h <<EOF
1147 #define OPENLDAP_VERSION "$VERSION"
1153 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1154 echo "configure:1155: checking configure arguments" >&5
1159 ldap_subdir="/openldap"
1161 # Check whether --with-subdir or --without-subdir was given.
1162 if test "${with_subdir+set}" = set; then
1163 withval="$with_subdir"
1170 ldap_subdir="$withval"
1173 ldap_subdir="/$withval"
1180 # OpenLDAP --enable-debug
1181 # Check whether --enable-debug or --disable-debug was given.
1182 if test "${enable_debug+set}" = set; then
1183 enableval="$enable_debug"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1194 ol_enable_debug="$ol_arg"
1197 ol_enable_debug="yes"
1199 # end --enable-debug
1200 # OpenLDAP --enable-syslog
1201 # Check whether --enable-syslog or --disable-syslog was given.
1202 if test "${enable_syslog+set}" = set; then
1203 enableval="$enable_syslog"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1214 ol_enable_syslog="$ol_arg"
1217 ol_enable_syslog="auto"
1219 # end --enable-syslog
1220 # OpenLDAP --enable-proctitle
1221 # Check whether --enable-proctitle or --disable-proctitle was given.
1222 if test "${enable_proctitle+set}" = set; then
1223 enableval="$enable_proctitle"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1234 ol_enable_proctitle="$ol_arg"
1237 ol_enable_proctitle="yes"
1239 # end --enable-proctitle
1240 # OpenLDAP --enable-cache
1241 # Check whether --enable-cache or --disable-cache was given.
1242 if test "${enable_cache+set}" = set; then
1243 enableval="$enable_cache"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1254 ol_enable_cache="$ol_arg"
1257 ol_enable_cache="yes"
1259 # end --enable-cache
1260 # OpenLDAP --enable-referrals
1261 # Check whether --enable-referrals or --disable-referrals was given.
1262 if test "${enable_referrals+set}" = set; then
1263 enableval="$enable_referrals"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1274 ol_enable_referrals="$ol_arg"
1277 ol_enable_referrals="yes"
1279 # end --enable-referrals
1280 # OpenLDAP --enable-kbind
1281 # Check whether --enable-kbind or --disable-kbind was given.
1282 if test "${enable_kbind+set}" = set; then
1283 enableval="$enable_kbind"
1286 for ol_val in auto yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1294 ol_enable_kbind="$ol_arg"
1297 ol_enable_kbind="auto"
1299 # end --enable-kbind
1300 # OpenLDAP --enable-cldap
1301 # Check whether --enable-cldap or --disable-cldap was given.
1302 if test "${enable_cldap+set}" = set; then
1303 enableval="$enable_cldap"
1306 for ol_val in auto yes no ; do
1307 if test "$enableval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1314 ol_enable_cldap="$ol_arg"
1317 ol_enable_cldap="no"
1319 # end --enable-cldap
1320 # OpenLDAP --enable-ldapi
1321 # Check whether --enable-ldapi or --disable-ldapi was given.
1322 if test "${enable_ldapi+set}" = set; then
1323 enableval="$enable_ldapi"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1334 ol_enable_ldapi="$ol_arg"
1337 ol_enable_ldapi="no"
1339 # end --enable-ldapi
1340 # OpenLDAP --enable-x_compile
1341 # Check whether --enable-x_compile or --disable-x_compile was given.
1342 if test "${enable_x_compile+set}" = set; then
1343 enableval="$enable_x_compile"
1346 for ol_val in yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1354 ol_enable_x_compile="$ol_arg"
1357 ol_enable_x_compile="no"
1359 # end --enable-x_compile
1362 # OpenLDAP --with-cyrus_sasl
1363 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1364 if test "${with_cyrus_sasl+set}" = set; then
1365 withval="$with_cyrus_sasl"
1368 for ol_val in auto yes no ; do
1369 if test "$withval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1376 ol_with_cyrus_sasl="$ol_arg"
1379 ol_with_cyrus_sasl="auto"
1381 # end --with-cyrus_sasl
1383 # OpenLDAP --with-fetch
1384 # Check whether --with-fetch or --without-fetch was given.
1385 if test "${with_fetch+set}" = set; then
1386 withval="$with_fetch"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1397 ol_with_fetch="$ol_arg"
1400 ol_with_fetch="auto"
1404 # OpenLDAP --with-kerberos
1405 # Check whether --with-kerberos or --without-kerberos was given.
1406 if test "${with_kerberos+set}" = set; then
1407 withval="$with_kerberos"
1410 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1418 ol_with_kerberos="$ol_arg"
1421 ol_with_kerberos="auto"
1423 # end --with-kerberos
1425 # OpenLDAP --with-readline
1426 # Check whether --with-readline or --without-readline was given.
1427 if test "${with_readline+set}" = set; then
1428 withval="$with_readline"
1431 for ol_val in auto yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1439 ol_with_readline="$ol_arg"
1442 ol_with_readline="auto"
1444 # end --with-readline
1446 # OpenLDAP --with-threads
1447 # Check whether --with-threads or --without-threads was given.
1448 if test "${with_threads+set}" = set; then
1449 withval="$with_threads"
1452 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1460 ol_with_threads="$ol_arg"
1463 ol_with_threads="auto"
1465 # end --with-threads
1467 # OpenLDAP --with-tls
1468 # Check whether --with-tls or --without-tls was given.
1469 if test "${with_tls+set}" = set; then
1473 for ol_val in auto ssleay openssl yes no ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1481 ol_with_tls="$ol_arg"
1488 # OpenLDAP --with-yielding_select
1489 # Check whether --with-yielding_select or --without-yielding_select was given.
1490 if test "${with_yielding_select+set}" = set; then
1491 withval="$with_yielding_select"
1494 for ol_val in auto yes no manual ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1502 ol_with_yielding_select="$ol_arg"
1505 ol_with_yielding_select="auto"
1507 # end --with-yielding_select
1511 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1512 if test "${with_xxslapdoptions+set}" = set; then
1513 withval="$with_xxslapdoptions"
1517 # OpenLDAP --enable-slapd
1518 # Check whether --enable-slapd or --disable-slapd was given.
1519 if test "${enable_slapd+set}" = set; then
1520 enableval="$enable_slapd"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1531 ol_enable_slapd="$ol_arg"
1534 ol_enable_slapd="yes"
1536 # end --enable-slapd
1537 # OpenLDAP --enable-cleartext
1538 # Check whether --enable-cleartext or --disable-cleartext was given.
1539 if test "${enable_cleartext+set}" = set; then
1540 enableval="$enable_cleartext"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1551 ol_enable_cleartext="$ol_arg"
1554 ol_enable_cleartext="yes"
1556 # end --enable-cleartext
1557 # OpenLDAP --enable-crypt
1558 # Check whether --enable-crypt or --disable-crypt was given.
1559 if test "${enable_crypt+set}" = set; then
1560 enableval="$enable_crypt"
1563 for ol_val in auto yes no ; do
1564 if test "$enableval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1571 ol_enable_crypt="$ol_arg"
1574 ol_enable_crypt="auto"
1576 # end --enable-crypt
1577 # OpenLDAP --enable-kpasswd
1578 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1579 if test "${enable_kpasswd+set}" = set; then
1580 enableval="$enable_kpasswd"
1583 for ol_val in auto yes no ; do
1584 if test "$enableval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1591 ol_enable_kpasswd="$ol_arg"
1594 ol_enable_kpasswd="no"
1596 # end --enable-kpasswd
1597 # OpenLDAP --enable-spasswd
1598 # Check whether --enable-spasswd or --disable-spasswd was given.
1599 if test "${enable_spasswd+set}" = set; then
1600 enableval="$enable_spasswd"
1603 for ol_val in auto yes no ; do
1604 if test "$enableval" = "$ol_val" ; then
1608 if test "$ol_arg" = "invalid" ; then
1609 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1611 ol_enable_spasswd="$ol_arg"
1614 ol_enable_spasswd="no"
1616 # end --enable-spasswd
1617 # OpenLDAP --enable-modules
1618 # Check whether --enable-modules or --disable-modules was given.
1619 if test "${enable_modules+set}" = set; then
1620 enableval="$enable_modules"
1623 for ol_val in auto yes no ; do
1624 if test "$enableval" = "$ol_val" ; then
1628 if test "$ol_arg" = "invalid" ; then
1629 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1631 ol_enable_modules="$ol_arg"
1634 ol_enable_modules="no"
1636 # end --enable-modules
1637 # OpenLDAP --enable-multimaster
1638 # Check whether --enable-multimaster or --disable-multimaster was given.
1639 if test "${enable_multimaster+set}" = set; then
1640 enableval="$enable_multimaster"
1643 for ol_val in auto yes no ; do
1644 if test "$enableval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1651 ol_enable_multimaster="$ol_arg"
1654 ol_enable_multimaster="no"
1656 # end --enable-multimaster
1657 # OpenLDAP --enable-phonetic
1658 # Check whether --enable-phonetic or --disable-phonetic was given.
1659 if test "${enable_phonetic+set}" = set; then
1660 enableval="$enable_phonetic"
1663 for ol_val in auto yes no ; do
1664 if test "$enableval" = "$ol_val" ; then
1668 if test "$ol_arg" = "invalid" ; then
1669 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1671 ol_enable_phonetic="$ol_arg"
1674 ol_enable_phonetic="no"
1676 # end --enable-phonetic
1677 # OpenLDAP --enable-quipu
1678 # Check whether --enable-quipu or --disable-quipu was given.
1679 if test "${enable_quipu+set}" = set; then
1680 enableval="$enable_quipu"
1683 for ol_val in auto yes no ; do
1684 if test "$enableval" = "$ol_val" ; then
1688 if test "$ol_arg" = "invalid" ; then
1689 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1691 ol_enable_quipu="$ol_arg"
1694 ol_enable_quipu="no"
1696 # end --enable-quipu
1697 # OpenLDAP --enable-rlookups
1698 # Check whether --enable-rlookups or --disable-rlookups was given.
1699 if test "${enable_rlookups+set}" = set; then
1700 enableval="$enable_rlookups"
1703 for ol_val in auto yes no ; do
1704 if test "$enableval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1711 ol_enable_rlookups="$ol_arg"
1714 ol_enable_rlookups="auto"
1716 # end --enable-rlookups
1717 # OpenLDAP --enable-aci
1718 # Check whether --enable-aci or --disable-aci was given.
1719 if test "${enable_aci+set}" = set; then
1720 enableval="$enable_aci"
1723 for ol_val in auto yes no ; do
1724 if test "$enableval" = "$ol_val" ; then
1728 if test "$ol_arg" = "invalid" ; then
1729 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1731 ol_enable_aci="$ol_arg"
1737 # OpenLDAP --enable-wrappers
1738 # Check whether --enable-wrappers or --disable-wrappers was given.
1739 if test "${enable_wrappers+set}" = set; then
1740 enableval="$enable_wrappers"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1751 ol_enable_wrappers="$ol_arg"
1754 ol_enable_wrappers="no"
1756 # end --enable-wrappers
1757 # OpenLDAP --enable-dynamic
1758 # Check whether --enable-dynamic or --disable-dynamic was given.
1759 if test "${enable_dynamic+set}" = set; then
1760 enableval="$enable_dynamic"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1771 ol_enable_dynamic="$ol_arg"
1774 ol_enable_dynamic="no"
1776 # end --enable-dynamic
1778 # OpenLDAP --enable-dnssrv
1779 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1780 if test "${enable_dnssrv+set}" = set; then
1781 enableval="$enable_dnssrv"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1792 ol_enable_dnssrv="$ol_arg"
1795 ol_enable_dnssrv="no"
1797 # end --enable-dnssrv
1798 # OpenLDAP --with-dnssrv_module
1799 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1800 if test "${with_dnssrv_module+set}" = set; then
1801 withval="$with_dnssrv_module"
1804 for ol_val in static dynamic ; do
1805 if test "$withval" = "$ol_val" ; then
1809 if test "$ol_arg" = "invalid" ; then
1810 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1812 ol_with_dnssrv_module="$ol_arg"
1815 ol_with_dnssrv_module="static"
1817 # end --with-dnssrv_module
1819 # OpenLDAP --enable-ldap
1820 # Check whether --enable-ldap or --disable-ldap was given.
1821 if test "${enable_ldap+set}" = set; then
1822 enableval="$enable_ldap"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1833 ol_enable_ldap="$ol_arg"
1839 # OpenLDAP --with-ldap_module
1840 # Check whether --with-ldap_module or --without-ldap_module was given.
1841 if test "${with_ldap_module+set}" = set; then
1842 withval="$with_ldap_module"
1845 for ol_val in static dynamic ; do
1846 if test "$withval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1853 ol_with_ldap_module="$ol_arg"
1856 ol_with_ldap_module="static"
1858 # end --with-ldap_module
1860 # OpenLDAP --enable-ldbm
1861 # Check whether --enable-ldbm or --disable-ldbm was given.
1862 if test "${enable_ldbm+set}" = set; then
1863 enableval="$enable_ldbm"
1866 for ol_val in auto yes no ; do
1867 if test "$enableval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1874 ol_enable_ldbm="$ol_arg"
1877 ol_enable_ldbm="yes"
1880 # OpenLDAP --with-ldbm_api
1881 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1882 if test "${with_ldbm_api+set}" = set; then
1883 withval="$with_ldbm_api"
1886 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1887 if test "$withval" = "$ol_val" ; then
1891 if test "$ol_arg" = "invalid" ; then
1892 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1894 ol_with_ldbm_api="$ol_arg"
1897 ol_with_ldbm_api="auto"
1899 # end --with-ldbm_api
1901 # OpenLDAP --with-ldbm_module
1902 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1903 if test "${with_ldbm_module+set}" = set; then
1904 withval="$with_ldbm_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1915 ol_with_ldbm_module="$ol_arg"
1918 ol_with_ldbm_module="static"
1920 # end --with-ldbm_module
1922 # OpenLDAP --with-ldbm_type
1923 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1924 if test "${with_ldbm_type+set}" = set; then
1925 withval="$with_ldbm_type"
1928 for ol_val in auto btree hash ; do
1929 if test "$withval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1936 ol_with_ldbm_type="$ol_arg"
1939 ol_with_ldbm_type="auto"
1941 # end --with-ldbm_type
1943 # OpenLDAP --enable-passwd
1944 # Check whether --enable-passwd or --disable-passwd was given.
1945 if test "${enable_passwd+set}" = set; then
1946 enableval="$enable_passwd"
1949 for ol_val in auto yes no ; do
1950 if test "$enableval" = "$ol_val" ; then
1954 if test "$ol_arg" = "invalid" ; then
1955 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1957 ol_enable_passwd="$ol_arg"
1960 ol_enable_passwd="no"
1962 # end --enable-passwd
1963 # OpenLDAP --with-passwd_module
1964 # Check whether --with-passwd_module or --without-passwd_module was given.
1965 if test "${with_passwd_module+set}" = set; then
1966 withval="$with_passwd_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1977 ol_with_passwd_module="$ol_arg"
1980 ol_with_passwd_module="static"
1982 # end --with-passwd_module
1984 # OpenLDAP --enable-perl
1985 # Check whether --enable-perl or --disable-perl was given.
1986 if test "${enable_perl+set}" = set; then
1987 enableval="$enable_perl"
1990 for ol_val in auto yes no ; do
1991 if test "$enableval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1998 ol_enable_perl="$ol_arg"
2004 # OpenLDAP --with-perl_module
2005 # Check whether --with-perl_module or --without-perl_module was given.
2006 if test "${with_perl_module+set}" = set; then
2007 withval="$with_perl_module"
2010 for ol_val in static dynamic ; do
2011 if test "$withval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2018 ol_with_perl_module="$ol_arg"
2021 ol_with_perl_module="static"
2023 # end --with-perl_module
2025 # OpenLDAP --enable-shell
2026 # Check whether --enable-shell or --disable-shell was given.
2027 if test "${enable_shell+set}" = set; then
2028 enableval="$enable_shell"
2031 for ol_val in auto yes no ; do
2032 if test "$enableval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2039 ol_enable_shell="$ol_arg"
2042 ol_enable_shell="no"
2044 # end --enable-shell
2045 # OpenLDAP --with-shell_module
2046 # Check whether --with-shell_module or --without-shell_module was given.
2047 if test "${with_shell_module+set}" = set; then
2048 withval="$with_shell_module"
2051 for ol_val in static dynamic ; do
2052 if test "$withval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2059 ol_with_shell_module="$ol_arg"
2062 ol_with_shell_module="static"
2064 # end --with-shell_module
2066 # OpenLDAP --enable-sql
2067 # Check whether --enable-sql or --disable-sql was given.
2068 if test "${enable_sql+set}" = set; then
2069 enableval="$enable_sql"
2072 for ol_val in auto yes no ; do
2073 if test "$enableval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2080 ol_enable_sql="$ol_arg"
2086 # OpenLDAP --with-sql_module
2087 # Check whether --with-sql_module or --without-sql_module was given.
2088 if test "${with_sql_module+set}" = set; then
2089 withval="$with_sql_module"
2092 for ol_val in static dynamic ; do
2093 if test "$withval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2100 ol_with_sql_module="$ol_arg"
2103 ol_with_sql_module="static"
2105 # end --with-sql_module
2107 # OpenLDAP --enable-tcl
2108 # Check whether --enable-tcl or --disable-tcl was given.
2109 if test "${enable_tcl+set}" = set; then
2110 enableval="$enable_tcl"
2113 for ol_val in auto yes no ; do
2114 if test "$enableval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2121 ol_enable_tcl="$ol_arg"
2127 # OpenLDAP --with-tcl_module
2128 # Check whether --with-tcl_module or --without-tcl_module was given.
2129 if test "${with_tcl_module+set}" = set; then
2130 withval="$with_tcl_module"
2133 for ol_val in static dynamic ; do
2134 if test "$withval" = "$ol_val" ; then
2138 if test "$ol_arg" = "invalid" ; then
2139 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2141 ol_with_tcl_module="$ol_arg"
2144 ol_with_tcl_module="static"
2146 # end --with-tcl_module
2149 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2150 if test "${with_xxslurpdoptions+set}" = set; then
2151 withval="$with_xxslurpdoptions"
2155 # OpenLDAP --enable-slurpd
2156 # Check whether --enable-slurpd or --disable-slurpd was given.
2157 if test "${enable_slurpd+set}" = set; then
2158 enableval="$enable_slurpd"
2161 for ol_val in auto yes no ; do
2162 if test "$enableval" = "$ol_val" ; then
2166 if test "$ol_arg" = "invalid" ; then
2167 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2169 ol_enable_slurpd="$ol_arg"
2172 ol_enable_slurpd="auto"
2174 # end --enable-slurpd
2176 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2177 if test "${with_xxliboptions+set}" = set; then
2178 withval="$with_xxliboptions"
2182 # Check whether --enable-static or --disable-static was given.
2183 if test "${enable_static+set}" = set; then
2184 enableval="$enable_static"
2185 p=${PACKAGE-default}
2186 case "$enableval" in
2187 yes) enable_static=yes ;;
2188 no) enable_static=no ;;
2191 # Look at the argument we got. We use all the common list separators.
2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2193 for pkg in $enableval; do
2194 if test "X$pkg" = "X$p"; then
2205 # Check whether --enable-shared or --disable-shared was given.
2206 if test "${enable_shared+set}" = set; then
2207 enableval="$enable_shared"
2208 p=${PACKAGE-default}
2209 case "$enableval" in
2210 yes) enable_shared=yes ;;
2211 no) enable_shared=no ;;
2214 # Look at the argument we got. We use all the common list separators.
2215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2216 for pkg in $enableval; do
2217 if test "X$pkg" = "X$p"; then
2231 if test $ol_enable_slapd = no ; then
2232 if test $ol_enable_dnssrv = yes ; then
2233 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2235 if test $ol_enable_ldap = yes ; then
2236 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2238 if test $ol_enable_ldbm = yes ; then
2239 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2241 if test $ol_enable_passwd = yes ; then
2242 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2244 if test $ol_enable_perl = yes ; then
2245 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2247 if test $ol_enable_shell = yes ; then
2248 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2250 if test $ol_enable_tcl = yes ; then
2251 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2253 if test $ol_enable_sql = yes ; then
2254 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2256 if test $ol_enable_modules = yes ; then
2257 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2259 if test $ol_enable_multimaster = yes ; then
2260 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2262 if test $ol_enable_wrappers = yes ; then
2263 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2265 if test $ol_enable_phonetic = yes ; then
2266 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2268 if test $ol_enable_quipu = yes ; then
2269 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2271 if test $ol_enable_rlookups = yes ; then
2272 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2274 if test $ol_enable_aci = yes ; then
2275 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2277 if test $ol_with_ldbm_api != auto ; then
2278 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2280 if test $ol_with_ldbm_type != auto ; then
2281 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2283 if test $ol_with_dnssrv_module != static ; then
2284 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2286 if test $ol_with_ldap_module != static ; then
2287 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2289 if test $ol_with_ldbm_module != static ; then
2290 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2292 if test $ol_with_passwd_module != static ; then
2293 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2295 if test $ol_with_perl_module != static ; then
2296 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2298 if test $ol_with_shell_module != static ; then
2299 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2301 if test $ol_with_tcl_module != static ; then
2302 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2304 if test $ol_with_sql_module != static ; then
2305 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2307 if test $ol_enable_slurpd = yes ; then
2308 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2311 # force settings to no
2321 ol_enable_modules=no
2322 ol_enable_multimaster=no
2323 ol_enable_phonetic=no
2325 ol_enable_rlookups=no
2327 ol_enable_wrappers=no
2328 ol_enable_dynamic=no
2331 ol_with_ldbm_type=no
2333 ol_with_dnssrv_module=static
2334 ol_with_ldap_module=static
2335 ol_with_ldbm_module=static
2336 ol_with_passwd_module=static
2337 ol_with_perl_module=static
2338 ol_with_shell_module=static
2339 ol_with_tcl_module=static
2340 ol_with_sql_module=static
2344 elif test $ol_enable_ldbm = no ; then
2346 if test $ol_with_ldbm_api != auto ; then
2347 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2350 if test $ol_with_ldbm_type != auto ; then
2351 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2354 if test $ol_with_ldbm_module != static ; then
2355 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2358 if test $ol_enable_modules != yes -a \
2359 $ol_enable_dnssrv = no -a \
2360 $ol_enable_ldap = no -a \
2361 $ol_enable_passwd = no -a \
2362 $ol_enable_perl = no -a \
2363 $ol_enable_shell = no -a \
2364 $ol_enable_sql = no -a \
2365 $ol_enable_tcl = no ; then
2366 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2370 ol_with_ldbm_type=no
2371 ol_with_ldbm_module=static
2374 if test $ol_with_ldbm_api = gdbm -a \
2375 $ol_with_ldbm_type = btree ; then
2376 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2378 if test $ol_with_ldbm_api = mdbm -a \
2379 $ol_with_ldbm_type = btree ; then
2380 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2382 if test $ol_with_ldbm_api = ndbm -a \
2383 $ol_with_ldbm_type = btree ; then
2384 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2388 if test $ol_enable_slurpd = yes ; then
2389 if test $ol_with_threads = no ; then
2390 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2394 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2395 if test $ol_with_kerberos = no ; then
2396 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2398 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2399 if test $ol_with_kerberos != auto ; then
2400 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2406 if test $ol_enable_spasswd = yes ; then
2407 if test $ol_with_cyrus_sasl = no ; then
2408 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2413 echo "$ac_t""done" 1>&6
2440 BUILD_DNSSRV_DYNAMIC=static
2441 BUILD_LDAP_DYNAMIC=static
2442 BUILD_LDBM_DYNAMIC=static
2443 BUILD_PASSWD_DYNAMIC=static
2444 BUILD_PERL_DYNAMIC=static
2445 BUILD_SHELL_DYNAMIC=static
2446 BUILD_TCL_DYNAMIC=static
2447 BUILD_SQL_DYNAMIC=static
2449 SLAPD_MODULES_LDFLAGS=
2450 SLAPD_MODULES_CPPFLAGS=
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_MKVERSION 1
2482 *-*-aix*) if test -z "$CC" ; then
2483 case "$ol_with_threads" in
2484 auto | yes | posix) ol_aix_threads=yes ;;
2490 if test $ol_aix_threads = yes ; then
2491 if test -z "${CC}" ; then
2492 for ac_prog in cc_r xlc_r cc
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 ac_cv_prog_CC="$ac_prog"
2517 if test -n "$CC"; then
2518 echo "$ac_t""$CC" 1>&6
2520 echo "$ac_t""no" 1>&6
2523 test -n "$CC" && break
2527 if test "$CC" = cc ; then
2528 if test $ol_with_threads != auto ; then
2529 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2531 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2537 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2538 ol_with_threads=posix
2539 ol_cv_pthread_create=yes
2543 if test -z "${CC}"; then
2546 # Extract the first word of "$ac_prog", so it can be a program name with args.
2547 set dummy $ac_prog; ac_word=$2
2548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_word" >&5
2550 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2561 ac_cv_prog_CC="$ac_prog"
2569 if test -n "$CC"; then
2570 echo "$ac_t""$CC" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 test -n "$CC" && break
2583 # Check whether --enable-fast-install or --disable-fast-install was given.
2584 if test "${enable_fast_install+set}" = set; then
2585 enableval="$enable_fast_install"
2586 p=${PACKAGE-default}
2587 case "$enableval" in
2588 yes) enable_fast_install=yes ;;
2589 no) enable_fast_install=no ;;
2591 enable_fast_install=no
2592 # Look at the argument we got. We use all the common list separators.
2593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2594 for pkg in $enableval; do
2595 if test "X$pkg" = "X$p"; then
2596 enable_fast_install=yes
2603 enable_fast_install=yes
2606 # Extract the first word of "ranlib", so it can be a program name with args.
2607 set dummy ranlib; ac_word=$2
2608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_word" >&5
2610 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 if test -n "$RANLIB"; then
2614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2618 for ac_dir in $ac_dummy; do
2619 test -z "$ac_dir" && ac_dir=.
2620 if test -f $ac_dir/$ac_word; then
2621 ac_cv_prog_RANLIB="ranlib"
2626 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2629 RANLIB="$ac_cv_prog_RANLIB"
2630 if test -n "$RANLIB"; then
2631 echo "$ac_t""$RANLIB" 1>&6
2633 echo "$ac_t""no" 1>&6
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc; ac_word=$2
2638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_word" >&5
2640 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2648 for ac_dir in $ac_dummy; do
2649 test -z "$ac_dir" && ac_dir=.
2650 if test -f $ac_dir/$ac_word; then
2659 if test -n "$CC"; then
2660 echo "$ac_t""$CC" 1>&6
2662 echo "$ac_t""no" 1>&6
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2679 for ac_dir in $ac_dummy; do
2680 test -z "$ac_dir" && ac_dir=.
2681 if test -f $ac_dir/$ac_word; then
2682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2683 ac_prog_rejected=yes
2691 if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2695 if test $# -gt 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2700 set dummy "$ac_dir/$ac_word" "$@"
2708 if test -n "$CC"; then
2709 echo "$ac_t""$CC" 1>&6
2711 echo "$ac_t""no" 1>&6
2714 if test -z "$CC"; then
2715 case "`uname -s`" in
2716 *win32* | *WIN32* | *CYGWIN*)
2717 # Extract the first word of "cl", so it can be a program name with args.
2718 set dummy cl; ac_word=$2
2719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2720 echo "configure:2721: checking for $ac_word" >&5
2721 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2729 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2740 if test -n "$CC"; then
2741 echo "$ac_t""$CC" 1>&6
2743 echo "$ac_t""no" 1>&6
2748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2759 cross_compiling=$ac_cv_prog_cc_cross
2761 cat > conftest.$ac_ext << EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2768 if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769 ac_cv_prog_cc_works=yes
2770 # If we can't run a trivial program, we are probably using a cross compiler.
2771 if (./conftest; exit) 2>/dev/null; then
2772 ac_cv_prog_cc_cross=no
2774 ac_cv_prog_cc_cross=yes
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 ac_cv_prog_cc_works=no
2783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2787 cross_compiling=$ac_cv_prog_cc_cross
2789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2790 if test $ac_cv_prog_cc_works = no; then
2791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2794 echo "configure:2795: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2796 cross_compiling=$ac_cv_prog_cc_cross
2798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2799 echo "configure:2800: checking whether we are using GNU C" >&5
2800 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.c <<EOF
2808 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2817 if test $ac_cv_prog_gcc = yes; then
2823 ac_test_CFLAGS="${CFLAGS+set}"
2824 ac_save_CFLAGS="$CFLAGS"
2826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2827 echo "configure:2828: checking whether ${CC-cc} accepts -g" >&5
2828 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 echo 'void f(){}' > conftest.c
2832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2842 if test "$ac_test_CFLAGS" = set; then
2843 CFLAGS="$ac_save_CFLAGS"
2844 elif test $ac_cv_prog_cc_g = yes; then
2845 if test "$GCC" = yes; then
2851 if test "$GCC" = yes; then
2858 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2859 if test "${with_gnu_ld+set}" = set; then
2860 withval="$with_gnu_ld"
2861 test "$withval" = no || with_gnu_ld=yes
2867 if test "$ac_cv_prog_gcc" = yes; then
2868 # Check if gcc -print-prog-name=ld gives a path.
2869 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2870 echo "configure:2871: checking for ld used by GCC" >&5
2871 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2873 # Accept absolute paths.
2874 [\\/]* | [A-Za-z]:[\\/]*)
2875 re_direlt='/[^/][^/]*/\.\./'
2876 # Canonicalize the path of ld
2877 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2878 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2879 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2881 test -z "$LD" && LD="$ac_prog"
2884 # If it fails, then pretend we aren't using GCC.
2888 # If it is relative, then search for the first ld in PATH.
2892 elif test "$with_gnu_ld" = yes; then
2893 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2894 echo "configure:2895: checking for GNU ld" >&5
2896 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2897 echo "configure:2898: checking for non-GNU ld" >&5
2899 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 if test -z "$LD"; then
2903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2904 for ac_dir in $PATH; do
2905 test -z "$ac_dir" && ac_dir=.
2906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2907 ac_cv_path_LD="$ac_dir/$ac_prog"
2908 # Check to see if the program is GNU ld. I'd rather use --version,
2909 # but apparently some GNU ld's only accept -v.
2910 # Break only if it was the GNU/non-GNU ld that we prefer.
2911 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2912 test "$with_gnu_ld" != no && break
2914 test "$with_gnu_ld" != yes && break
2920 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2925 if test -n "$LD"; then
2926 echo "$ac_t""$LD" 1>&6
2928 echo "$ac_t""no" 1>&6
2930 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2931 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2932 echo "configure:2933: checking if the linker ($LD) is GNU ld" >&5
2933 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2937 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2938 ac_cv_prog_gnu_ld=yes
2940 ac_cv_prog_gnu_ld=no
2944 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2947 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2948 echo "configure:2949: checking for BSD-compatible nm" >&5
2949 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 if test -n "$NM"; then
2953 # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2957 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2958 test -z "$ac_dir" && ac_dir=.
2959 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2960 # Check to see if the nm accepts a BSD-compat flag.
2961 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2962 # nm: unknown option "B" ignored
2963 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2964 ac_cv_path_NM="$ac_dir/nm -B"
2966 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2967 ac_cv_path_NM="$ac_dir/nm -p"
2970 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2971 continue # so that we can try to find one that supports BSD flags
2976 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2981 echo "$ac_t""$NM" 1>&6
2983 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2984 echo "configure:2985: checking whether ln -s works" >&5
2985 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2989 if ln -s X conftestdata 2>/dev/null
2992 ac_cv_prog_LN_S="ln -s"
2997 LN_S="$ac_cv_prog_LN_S"
2998 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2999 echo "$ac_t""yes" 1>&6
3001 echo "$ac_t""no" 1>&6
3004 if test $host != $build; then
3005 ac_tool_prefix=${host_alias}-
3012 NONE) lt_target="$host" ;;
3013 *) lt_target="$target" ;;
3016 # Check for any special flags to pass to ltconfig.
3017 libtool_flags="--cache-file=$cache_file"
3018 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3019 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3020 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3021 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3022 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3023 libtool_flags="$libtool_flags --enable-dlopen"
3024 libtool_flags="$libtool_flags --enable-win32-dll"
3025 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3026 if test "${enable_libtool_lock+set}" = set; then
3027 enableval="$enable_libtool_lock"
3031 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3032 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3034 # Some flags need to be propagated to the compiler or linker for good
3036 case "$lt_target" in
3038 # Find out which ABI we are using.
3039 echo '#line 3040 "configure"' > conftest.$ac_ext
3040 if { (eval echo configure:3041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3041 case "`/usr/bin/file conftest.o`" in
3057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3058 SAVE_CFLAGS="$CFLAGS"
3059 CFLAGS="$CFLAGS -belf"
3060 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3061 echo "configure:3062: checking whether the C compiler needs -belf" >&5
3062 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3075 lt_cv_cc_needs_belf=yes
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 lt_cv_cc_needs_belf=no
3085 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3086 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3087 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3088 CFLAGS="$SAVE_CFLAGS"
3092 *-*-cygwin* | *-*-mingw*)
3093 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3096 echo "configure:3097: checking for $ac_word" >&5
3097 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 if test -n "$DLLTOOL"; then
3101 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3105 for ac_dir in $ac_dummy; do
3106 test -z "$ac_dir" && ac_dir=.
3107 if test -f $ac_dir/$ac_word; then
3108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3115 DLLTOOL="$ac_cv_prog_DLLTOOL"
3116 if test -n "$DLLTOOL"; then
3117 echo "$ac_t""$DLLTOOL" 1>&6
3119 echo "$ac_t""no" 1>&6
3123 if test -z "$ac_cv_prog_DLLTOOL"; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "dlltool", so it can be a program name with args.
3126 set dummy dlltool; ac_word=$2
3127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3128 echo "configure:3129: checking for $ac_word" >&5
3129 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 if test -n "$DLLTOOL"; then
3133 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3137 for ac_dir in $ac_dummy; do
3138 test -z "$ac_dir" && ac_dir=.
3139 if test -f $ac_dir/$ac_word; then
3140 ac_cv_prog_DLLTOOL="dlltool"
3145 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3148 DLLTOOL="$ac_cv_prog_DLLTOOL"
3149 if test -n "$DLLTOOL"; then
3150 echo "$ac_t""$DLLTOOL" 1>&6
3152 echo "$ac_t""no" 1>&6
3160 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}as; ac_word=$2
3162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3163 echo "configure:3164: checking for $ac_word" >&5
3164 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 if test -n "$AS"; then
3168 ac_cv_prog_AS="$AS" # Let the user override the test.
3170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3172 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 if test -f $ac_dir/$ac_word; then
3175 ac_cv_prog_AS="${ac_tool_prefix}as"
3183 if test -n "$AS"; then
3184 echo "$ac_t""$AS" 1>&6
3186 echo "$ac_t""no" 1>&6
3190 if test -z "$ac_cv_prog_AS"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "as", so it can be a program name with args.
3193 set dummy as; ac_word=$2
3194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3195 echo "configure:3196: checking for $ac_word" >&5
3196 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 if test -n "$AS"; then
3200 ac_cv_prog_AS="$AS" # Let the user override the test.
3202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3204 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 if test -f $ac_dir/$ac_word; then
3212 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3216 if test -n "$AS"; then
3217 echo "$ac_t""$AS" 1>&6
3219 echo "$ac_t""no" 1>&6
3227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test -n "$OBJDUMP"; then
3235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 if test -f $ac_dir/$ac_word; then
3242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3249 OBJDUMP="$ac_cv_prog_OBJDUMP"
3250 if test -n "$OBJDUMP"; then
3251 echo "$ac_t""$OBJDUMP" 1>&6
3253 echo "$ac_t""no" 1>&6
3257 if test -z "$ac_cv_prog_OBJDUMP"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "objdump", so it can be a program name with args.
3260 set dummy objdump; ac_word=$2
3261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3262 echo "configure:3263: checking for $ac_word" >&5
3263 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 if test -n "$OBJDUMP"; then
3267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3271 for ac_dir in $ac_dummy; do
3272 test -z "$ac_dir" && ac_dir=.
3273 if test -f $ac_dir/$ac_word; then
3274 ac_cv_prog_OBJDUMP="objdump"
3279 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3282 OBJDUMP="$ac_cv_prog_OBJDUMP"
3283 if test -n "$OBJDUMP"; then
3284 echo "$ac_t""$OBJDUMP" 1>&6
3286 echo "$ac_t""no" 1>&6
3299 # Save cache, so that ltconfig can load it
3302 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3303 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3304 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3305 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3306 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3307 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3308 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3309 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3311 # Reload cache, that may have been modified by ltconfig
3314 # This can be used to rebuild libtool when needed
3315 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3317 # Always use our own libtool.
3318 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3320 # Redirect the config.log output again, so that the ltconfig log is not
3321 # clobbered by the next message.
3322 exec 5>>./config.log
3325 for ac_prog in mawk gawk nawk awk
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy $ac_prog; ac_word=$2
3329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3330 echo "configure:3331: checking for $ac_word" >&5
3331 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 if test -n "$AWK"; then
3335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3339 for ac_dir in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir=.
3341 if test -f $ac_dir/$ac_word; then
3342 ac_cv_prog_AWK="$ac_prog"
3349 AWK="$ac_cv_prog_AWK"
3350 if test -n "$AWK"; then
3351 echo "$ac_t""$AWK" 1>&6
3353 echo "$ac_t""no" 1>&6
3356 test -n "$AWK" && break
3359 # test for ln hardlink support
3360 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3361 echo "configure:3362: checking whether ln works" >&5
3362 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 rm -f conftest.src conftest.dst
3366 echo "conftest" > conftest.src
3367 if ln conftest.src conftest.dst 2>/dev/null
3369 ol_cv_prog_LN_H="ln"
3371 ol_cv_prog_LN_H="cp"
3373 rm -f conftest.src conftest.dst
3376 LN_H="$ol_cv_prog_LN_H"
3377 if test "$ol_cv_prog_LN_H" = "ln"; then
3378 echo "$ac_t""yes" 1>&6
3380 echo "$ac_t""no" 1>&6
3383 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether ln -s works" >&5
3385 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3389 if ln -s X conftestdata 2>/dev/null
3392 ac_cv_prog_LN_S="ln -s"
3397 LN_S="$ac_cv_prog_LN_S"
3398 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3399 echo "$ac_t""yes" 1>&6
3401 echo "$ac_t""no" 1>&6
3405 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3409 # Extract the first word of "sendmail", so it can be a program name with args.
3410 set dummy sendmail; ac_word=$2
3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_word" >&5
3413 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3421 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3425 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3426 for ac_dir in $ac_dummy; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3434 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3438 SENDMAIL="$ac_cv_path_SENDMAIL"
3439 if test -n "$SENDMAIL"; then
3440 echo "$ac_t""$SENDMAIL" 1>&6
3442 echo "$ac_t""no" 1>&6
3445 # Extract the first word of "vi", so it can be a program name with args.
3446 set dummy vi; ac_word=$2
3447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3448 echo "configure:3449: checking for $ac_word" >&5
3449 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3454 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3457 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3461 ac_dummy="$PATH:/usr/ucb"
3462 for ac_dir in $ac_dummy; do
3463 test -z "$ac_dir" && ac_dir=.
3464 if test -f $ac_dir/$ac_word; then
3465 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3470 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3474 EDITOR="$ac_cv_path_EDITOR"
3475 if test -n "$EDITOR"; then
3476 echo "$ac_t""$EDITOR" 1>&6
3478 echo "$ac_t""no" 1>&6
3481 # Extract the first word of "finger", so it can be a program name with args.
3482 set dummy finger; ac_word=$2
3483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3484 echo "configure:3485: checking for $ac_word" >&5
3485 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3493 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3497 ac_dummy="$PATH:/usr/ucb"
3498 for ac_dir in $ac_dummy; do
3499 test -z "$ac_dir" && ac_dir=.
3500 if test -f $ac_dir/$ac_word; then
3501 ac_cv_path_FINGER="$ac_dir/$ac_word"
3506 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3510 FINGER="$ac_cv_path_FINGER"
3511 if test -n "$FINGER"; then
3512 echo "$ac_t""$FINGER" 1>&6
3514 echo "$ac_t""no" 1>&6
3519 if test $ol_enable_perl != no ; then
3520 # Extract the first word of "perl", so it can be a program name with args.
3521 set dummy perl; ac_word=$2
3522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_word" >&5
3524 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3532 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3545 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3549 PERLBIN="$ac_cv_path_PERLBIN"
3550 if test -n "$PERLBIN"; then
3551 echo "$ac_t""$PERLBIN" 1>&6
3553 echo "$ac_t""no" 1>&6
3557 if test "no$PERLBIN" = "no" ; then
3558 if test $ol_enable_perl = yes ; then
3559 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3563 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3564 if test x"$ol_with_perl_module" = "xstatic" ; then
3565 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3567 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3573 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3574 echo "configure:3575: checking how to run the C preprocessor" >&5
3575 # On Suns, sometimes $CPP names a directory.
3576 if test -n "$CPP" && test -d "$CPP"; then
3579 if test -z "$CPP"; then
3580 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 # This must be in double quotes, not single quotes, because CPP may get
3584 # substituted into the Makefile and "${CC-cc}" will confuse make.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp.
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595 { (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3597 if test -z "$ac_err"; then
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 CPP="${CC-cc} -E -traditional-cpp"
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612 { (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614 if test -z "$ac_err"; then
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 CPP="${CC-cc} -nologo -E"
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3629 { (eval echo configure:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3631 if test -z "$ac_err"; then
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3645 ac_cv_prog_CPP="$CPP"
3647 CPP="$ac_cv_prog_CPP"
3649 ac_cv_prog_CPP="$CPP"
3651 echo "$ac_t""$CPP" 1>&6
3654 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3655 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3657 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3658 echo "configure: warning: programs compiled here do run here..." 1>&2
3659 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3661 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3662 echo "configure: warning: programs compiled here do not run here..." 1>&2
3663 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3666 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3667 echo "configure:3668: checking for AIX" >&5
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "yes" >/dev/null 2>&1; then
3679 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3680 #define _ALL_SOURCE 1
3685 echo "$ac_t""no" 1>&6
3690 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3691 echo "configure:3692: checking for POSIXized ISC" >&5
3692 if test -d /etc/conf/kconfig.d &&
3693 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3695 echo "$ac_t""yes" 1>&6
3696 ISC=yes # If later tests want to check for ISC.
3697 cat >> confdefs.h <<\EOF
3698 #define _POSIX_SOURCE 1
3701 if test "$GCC" = yes; then
3707 echo "$ac_t""no" 1>&6
3711 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3712 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3713 echo "configure:3714: checking for minix/config.h" >&5
3714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 #include <minix/config.h>
3722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3723 { (eval echo configure:3724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3725 if test -z "$ac_err"; then
3727 eval "ac_cv_header_$ac_safe=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 eval "ac_cv_header_$ac_safe=no"
3737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3741 echo "$ac_t""no" 1>&6
3745 if test "$MINIX" = yes; then
3746 cat >> confdefs.h <<\EOF
3747 #define _POSIX_SOURCE 1
3750 cat >> confdefs.h <<\EOF
3751 #define _POSIX_1_SOURCE 2
3754 cat >> confdefs.h <<\EOF
3761 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3762 echo "configure:3763: checking for Cygwin environment" >&5
3763 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3773 #define __CYGWIN__ __CYGWIN32__
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3790 echo "$ac_t""$ac_cv_cygwin" 1>&6
3792 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3793 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3794 echo "configure:3795: checking for mingw32 environment" >&5
3795 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3806 if { (eval echo configure:3807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3818 echo "$ac_t""$ac_cv_mingw32" 1>&6
3820 test "$ac_cv_mingw32" = yes && MINGW32=yes
3821 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3822 echo "configure:3823: checking for EMX OS/2 environment" >&5
3823 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3834 if { (eval echo configure:3835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3846 echo "$ac_t""$ac_cv_emxos2" 1>&6
3848 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3852 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3853 echo "configure:3854: checking for executable suffix" >&5
3854 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3861 echo 'int main () { return 0; }' > conftest.$ac_ext
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3864 for file in conftest.*; do
3866 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3867 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3871 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3874 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3879 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3880 echo "$ac_t""${ac_cv_exeext}" 1>&6
3883 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3884 echo "configure:3885: checking for object suffix" >&5
3885 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3889 echo 'int i = 1;' > conftest.$ac_ext
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3891 for ac_file in conftest.*; do
3894 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3898 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3903 echo "$ac_t""$ac_cv_objext" 1>&6
3904 OBJEXT=$ac_cv_objext
3905 ac_objext=$ac_cv_objext
3908 cat >> confdefs.h <<EOF
3909 #define EXEEXT "${EXEEXT}"
3913 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3914 echo "configure:3915: checking for be_app in -lbe" >&5
3915 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3916 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 ac_save_LIBS="$LIBS"
3920 LIBS="-lbe -lroot -lnet $LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 eval "ac_cv_lib_$ac_lib_var=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_lib_$ac_lib_var=no"
3943 LIBS="$ac_save_LIBS"
3946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 LIBS="$LIBS -lbe -lroot -lnet"
3950 echo "$ac_t""no" 1>&6
3958 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3959 echo "configure:3960: checking for ${CC-cc} option to accept ANSI C" >&5
3960 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 am_cv_prog_cc_stdc=no
3965 # Don't try gcc -ansi; that turns off useful extensions and
3966 # breaks some systems' header files.
3967 # AIX -qlanglvl=ansi
3968 # Ultrix and OSF/1 -std1
3969 # HP-UX 10.20 and later -Ae
3970 # HP-UX older versions -Aa -D_HPUX_SOURCE
3971 # SVR4 -Xc -D__EXTENSIONS__
3972 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3974 CC="$ac_save_CC $ac_arg"
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3980 #include <sys/types.h>
3981 #include <sys/stat.h>
3982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3983 struct buf { int x; };
3984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3985 static char *e (p, i)
3991 static char *f (char * (*g) (char **, int), char **p, ...)
3996 s = g (p, va_arg (v,int));
4000 int test (int i, double x);
4001 struct s1 {int (*f) (int a);};
4002 struct s2 {int (*f) (double a);};
4003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4015 am_cv_prog_cc_stdc="$ac_arg"; break
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4026 if test -z "$am_cv_prog_cc_stdc"; then
4027 echo "$ac_t""none needed" 1>&6
4029 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4031 case "x$am_cv_prog_cc_stdc" in
4033 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4036 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4037 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4040 # test for make depend flag
4043 if test -z "${MKDEP}"; then
4045 if test -z "${MKDEP_FLAGS}"; then
4046 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4047 echo "configure:4048: checking for ${OL_MKDEP} depend flag" >&5
4048 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4053 for flag in "-M" "-xM"; do
4054 cat > conftest.c <<EOF
4057 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4058 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4060 if test ! -f conftest."${ac_object}" ; then
4062 OL_MKDEP_FLAGS="$flag"
4071 echo "$ac_t""$ol_cv_mkdep" 1>&6
4074 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4079 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4084 if test "${ol_cv_mkdep}" = no ; then
4085 # this will soon become an error
4086 echo "configure: warning: do not know how to generate dependencies" 1>&2
4089 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4090 echo "configure:4091: checking for afopen in -ls" >&5
4091 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 ac_save_LIBS="$LIBS"
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* Override any gcc2 internal prototype to avoid an error. */
4101 /* We use char because int might match the return type of a gcc2
4102 builtin and then its argument prototype would still apply. */
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4111 eval "ac_cv_lib_$ac_lib_var=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4116 eval "ac_cv_lib_$ac_lib_var=no"
4119 LIBS="$ac_save_LIBS"
4122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4123 echo "$ac_t""yes" 1>&6
4126 cat >> confdefs.h <<\EOF
4127 #define HAVE_AIX_SECURITY 1
4132 echo "$ac_t""no" 1>&6
4137 if test $ol_enable_modules != no ; then
4138 for ac_hdr in ltdl.h
4140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_hdr" >&5
4143 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4152 { (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4154 if test -z "$ac_err"; then
4156 eval "ac_cv_header_$ac_safe=yes"
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 eval "ac_cv_header_$ac_safe=no"
4166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4169 cat >> confdefs.h <<EOF
4170 #define $ac_tr_hdr 1
4174 echo "$ac_t""no" 1>&6
4179 if test $ac_cv_header_ltdl_h = no ; then
4180 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4183 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4184 echo "configure:4185: checking for lt_dlinit in -lltdl" >&5
4185 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 ac_save_LIBS="$LIBS"
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 /* We use char because int might match the return type of a gcc2
4196 builtin and then its argument prototype would still apply. */
4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4205 eval "ac_cv_lib_$ac_lib_var=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_lib_$ac_lib_var=no"
4213 LIBS="$ac_save_LIBS"
4216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4217 echo "$ac_t""yes" 1>&6
4220 cat >> confdefs.h <<\EOF
4221 #define HAVE_LIBLTDL 1
4226 echo "$ac_t""no" 1>&6
4230 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4231 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4235 ol_with_dnssrv_module=static
4236 ol_with_ldap_module=static
4237 ol_with_ldbm_module=static
4238 ol_with_passwd_module=static
4239 ol_with_perl_module=static
4240 ol_with_shell_module=static
4241 ol_with_tcl_module=static
4242 ol_with_sql_module=static
4246 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4247 echo "configure:4248: checking for EBCDIC" >&5
4248 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 #include <__ASCII__/generate_error.h>
4261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4262 { (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4264 if test -z "$ac_err"; then
4266 ol_cv_cpp_ebcdic=yes
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4277 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4278 if test $ol_cv_cpp_ebcdic = yes ; then
4279 cat >> confdefs.h <<\EOF
4280 #define HAVE_EBCDIC 1
4285 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4286 echo "configure:4287: checking for ANSI C header files" >&5
4287 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4299 { (eval echo configure:4300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4301 if test -z "$ac_err"; then
4303 ol_cv_header_stdc=yes
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 ol_cv_header_stdc=no
4313 if test $ol_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 egrep "memchr" >/dev/null 2>&1; then
4325 ol_cv_header_stdc=no
4331 if test $ol_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 egrep "free" >/dev/null 2>&1; then
4343 ol_cv_header_stdc=no
4349 if test $ol_cv_header_stdc = yes; then
4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351 if test "$cross_compiling" = yes; then
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4362 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4363 || ('j' <= (c) && (c) <= 'r') \
4364 || ('s' <= (c) && (c) <= 'z'))
4365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 int main () { int i; for (i = 0; i < 256; i++)
4369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 ol_cv_header_stdc=no
4388 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4389 if test $ol_cv_header_stdc = yes; then
4390 cat >> confdefs.h <<\EOF
4391 #define STDC_HEADERS 1
4395 ac_cv_header_stdc=disable
4398 if test $ol_cv_header_stdc != yes; then
4399 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4403 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4406 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_hdr that defines DIR" >&5
4408 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <sys/types.h>
4420 if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4422 eval "ac_cv_header_dirent_$ac_safe=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_header_dirent_$ac_safe=no"
4431 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4434 cat >> confdefs.h <<EOF
4435 #define $ac_tr_hdr 1
4437 ac_header_dirent=$ac_hdr; break
4439 echo "$ac_t""no" 1>&6
4442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4443 if test $ac_header_dirent = dirent.h; then
4444 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4445 echo "configure:4446: checking for opendir in -ldir" >&5
4446 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_lib_$ac_lib_var=no"
4474 LIBS="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4481 echo "$ac_t""no" 1>&6
4485 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4486 echo "configure:4487: checking for opendir in -lx" >&5
4487 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 ac_save_LIBS="$LIBS"
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507 eval "ac_cv_lib_$ac_lib_var=yes"
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4512 eval "ac_cv_lib_$ac_lib_var=no"
4515 LIBS="$ac_save_LIBS"
4518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4522 echo "$ac_t""no" 1>&6
4527 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4528 echo "configure:4529: checking for sys/wait.h that is POSIX.1 compatible" >&5
4529 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <sys/types.h>
4536 #include <sys/wait.h>
4538 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4541 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4546 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4549 if { (eval echo configure:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 ac_cv_header_sys_wait_h=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 ac_cv_header_sys_wait_h=no
4561 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4562 if test $ac_cv_header_sys_wait_h = yes; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_SYS_WAIT_H 1
4569 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4570 echo "configure:4571: checking POSIX termios" >&5
4571 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <sys/types.h>
4579 #include <termios.h>
4581 /* SunOS 4.0.3 has termios.h but not the library calls. */
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 am_cv_sys_posix_termios=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 am_cv_sys_posix_termios=no
4597 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4600 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4601 echo "configure:4602: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4602 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4607 gwinsz_in_termios_h=no
4608 if test $am_cv_sys_posix_termios = yes; then
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <sys/types.h>
4613 # include <termios.h>
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 egrep "yes" >/dev/null 2>&1; then
4622 gwinsz_in_termios_h=yes
4628 if test $gwinsz_in_termios_h = no; then
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <sys/types.h>
4633 # include <sys/ioctl.h>
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 egrep "yes" >/dev/null 2>&1; then
4642 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4650 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4651 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4652 cat >> confdefs.h <<\EOF
4653 #define GWINSZ_IN_SYS_IOCTL 1
4658 if test $am_cv_sys_posix_termios = yes ; then
4659 cat >> confdefs.h <<\EOF
4660 #define HAVE_POSIX_TERMIOS 1
4711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4713 echo "configure:4714: checking for $ac_hdr" >&5
4714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4723 { (eval echo configure:4724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4725 if test -z "$ac_err"; then
4727 eval "ac_cv_header_$ac_safe=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_header_$ac_safe=no"
4737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4740 cat >> confdefs.h <<EOF
4741 #define $ac_tr_hdr 1
4745 echo "$ac_t""no" 1>&6
4752 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4753 echo "configure:4754: checking for sigset in -lV3" >&5
4754 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4755 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 ac_save_LIBS="$LIBS"
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774 eval "ac_cv_lib_$ac_lib_var=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 eval "ac_cv_lib_$ac_lib_var=no"
4782 LIBS="$ac_save_LIBS"
4785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4786 echo "$ac_t""yes" 1>&6
4787 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_lib 1
4796 echo "$ac_t""no" 1>&6
4800 if test $ac_cv_header_winsock_h = yes; then
4801 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4802 echo "configure:4803: checking for winsock" >&5
4803 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4809 #include <winsock.h>
4813 select(0,NULL,NULL,NULL,NULL);
4815 gethostname(NULL,0);
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4831 echo "$ac_t""$ol_cv_winsock" 1>&6
4833 if test $ol_cv_winsock = yes ; then
4834 cat >> confdefs.h <<\EOF
4835 #define HAVE_WINSOCK 1
4838 ac_cv_func_socket=yes
4839 ac_cv_func_select=yes
4840 ac_cv_func_closesocket=yes
4841 ac_cv_func_gethostname=yes
4846 echo $ac_n "checking for socket""... $ac_c" 1>&6
4847 echo "configure:4848: checking for socket" >&5
4848 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* System header to define __stub macros and hopefully few prototypes,
4855 which can conflict with char socket(); below. */
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4865 /* The GNU C library defines this for functions which it implements
4866 to always fail with ENOSYS. Some functions are actually named
4867 something starting with __ and the normal name is an alias. */
4868 #if defined (__stub_socket) || defined (__stub___socket)
4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4878 eval "ac_cv_func_socket=yes"
4880 echo "configure: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4883 eval "ac_cv_func_socket=no"
4888 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4892 echo "$ac_t""no" 1>&6
4894 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4895 echo "configure:4896: checking for main in -lsocket" >&5
4896 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 ac_save_LIBS="$LIBS"
4901 LIBS="-lsocket $LIBS"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 eval "ac_cv_lib_$ac_lib_var=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 eval "ac_cv_lib_$ac_lib_var=no"
4920 LIBS="$ac_save_LIBS"
4923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_lib 1
4931 LIBS="-lsocket $LIBS"
4934 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4938 echo "configure:4939: checking for main in -lnet" >&5
4939 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955 eval "ac_cv_lib_$ac_lib_var=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 eval "ac_cv_lib_$ac_lib_var=no"
4963 LIBS="$ac_save_LIBS"
4966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4968 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4970 cat >> confdefs.h <<EOF
4971 #define $ac_tr_lib 1
4977 echo "$ac_t""no" 1>&6
4980 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4981 echo "configure:4982: checking for main in -lnsl_s" >&5
4982 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 ac_save_LIBS="$LIBS"
4987 LIBS="-lnsl_s $LIBS"
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5011 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5013 cat >> confdefs.h <<EOF
5014 #define $ac_tr_lib 1
5017 LIBS="-lnsl_s $LIBS"
5020 echo "$ac_t""no" 1>&6
5023 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5024 echo "configure:5025: checking for main in -lnsl" >&5
5025 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5029 ac_save_LIBS="$LIBS"
5031 cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 eval "ac_cv_lib_$ac_lib_var=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 eval "ac_cv_lib_$ac_lib_var=no"
5049 LIBS="$ac_save_LIBS"
5052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5056 cat >> confdefs.h <<EOF
5057 #define $ac_tr_lib 1
5063 echo "$ac_t""no" 1>&6
5066 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5067 echo "configure:5068: checking for socket in -linet" >&5
5068 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5069 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 ac_save_LIBS="$LIBS"
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_lib_$ac_lib_var=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_lib_$ac_lib_var=no"
5096 LIBS="$ac_save_LIBS"
5099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5103 cat >> confdefs.h <<EOF
5104 #define $ac_tr_lib 1
5110 echo "$ac_t""no" 1>&6
5113 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5114 echo "configure:5115: checking for main in -lgen" >&5
5115 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 ac_save_LIBS="$LIBS"
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 eval "ac_cv_lib_$ac_lib_var=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 eval "ac_cv_lib_$ac_lib_var=no"
5139 LIBS="$ac_save_LIBS"
5142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5143 echo "$ac_t""yes" 1>&6
5144 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5146 cat >> confdefs.h <<EOF
5147 #define $ac_tr_lib 1
5153 echo "$ac_t""no" 1>&6
5160 echo $ac_n "checking for select""... $ac_c" 1>&6
5161 echo "configure:5162: checking for select" >&5
5162 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* System header to define __stub macros and hopefully few prototypes,
5169 which can conflict with char select(); below. */
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5179 /* The GNU C library defines this for functions which it implements
5180 to always fail with ENOSYS. Some functions are actually named
5181 something starting with __ and the normal name is an alias. */
5182 #if defined (__stub_select) || defined (__stub___select)
5190 if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5192 eval "ac_cv_func_select=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 eval "ac_cv_func_select=no"
5202 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5203 echo "$ac_t""yes" 1>&6
5206 echo "$ac_t""no" 1>&6
5207 { echo "configure: error: select() required." 1>&2; exit 1; }
5211 if test "${ac_cv_header_winsock_h}" != yes; then
5212 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5213 echo "configure:5214: checking types of arguments for select()" >&5
5214 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5224 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5225 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 #ifdef HAVE_SYS_TYPES_H
5230 #include <sys/types.h>
5232 #ifdef HAVE_SYS_TIME_H
5233 #include <sys/time.h>
5235 #ifdef HAVE_SYS_SELECT_H
5236 #include <sys/select.h>
5238 #ifdef HAVE_SYS_SOCKET_H
5239 #include <sys/socket.h>
5241 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);
5246 if { (eval echo configure:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248 ac_not_found=no ; break 3
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5265 if test "$ac_not_found" = yes; then
5266 ac_cv_func_select_arg1=int
5267 ac_cv_func_select_arg234='int *'
5268 ac_cv_func_select_arg5='struct timeval *'
5270 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5271 cat >> confdefs.h <<EOF
5272 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5275 cat >> confdefs.h <<EOF
5276 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5279 cat >> confdefs.h <<EOF
5280 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5287 for ac_hdr in regex.h
5289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_hdr" >&5
5292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5301 { (eval echo configure:5302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5303 if test -z "$ac_err"; then
5305 eval "ac_cv_header_$ac_safe=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_header_$ac_safe=no"
5315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5318 cat >> confdefs.h <<EOF
5319 #define $ac_tr_hdr 1
5323 echo "$ac_t""no" 1>&6
5327 if test "$ac_cv_header_regex_h" != yes ; then
5328 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5330 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5331 echo "configure:5332: checking for regfree" >&5
5332 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char regfree(); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5349 /* The GNU C library defines this for functions which it implements
5350 to always fail with ENOSYS. Some functions are actually named
5351 something starting with __ and the normal name is an alias. */
5352 #if defined (__stub_regfree) || defined (__stub___regfree)
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_func_regfree=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_func_regfree=no"
5372 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5377 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5382 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5383 echo "configure:5384: checking for compatible POSIX regex" >&5
5384 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5388 if test "$cross_compiling" = yes; then
5389 ol_cv_c_posix_regex=cross
5391 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure"
5393 #include "confdefs.h"
5395 #include <sys/types.h>
5397 static char *pattern, *string;
5405 if(regcomp(&re, pattern, 0)) {
5409 string = "ALL MATCH";
5411 rc = regexec(&re, string, 0, (void*)0, 0);
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5420 ol_cv_c_posix_regex=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 ol_cv_c_posix_regex=no
5432 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5434 if test "$ol_cv_c_posix_regex" = no ; then
5435 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5439 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5440 echo "configure:5441: checking for res_query" >&5
5441 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* System header to define __stub macros and hopefully few prototypes,
5448 which can conflict with char res_query(); below. */
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5458 /* The GNU C library defines this for functions which it implements
5459 to always fail with ENOSYS. Some functions are actually named
5460 something starting with __ and the normal name is an alias. */
5461 #if defined (__stub_res_query) || defined (__stub___res_query)
5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471 eval "ac_cv_func_res_query=yes"
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 eval "ac_cv_func_res_query=no"
5481 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5485 echo "$ac_t""no" 1>&6
5488 if test $ac_cv_func_res_query = no ; then
5489 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5490 echo "configure:5491: checking for res_query in -lbind" >&5
5491 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 ac_save_LIBS="$LIBS"
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5511 eval "ac_cv_lib_$ac_lib_var=yes"
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 eval "ac_cv_lib_$ac_lib_var=no"
5519 LIBS="$ac_save_LIBS"
5522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_lib 1
5533 echo "$ac_t""no" 1>&6
5536 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5539 if test $ac_cv_func_res_query = no ; then
5540 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5541 echo "configure:5542: checking for __res_query in -lbind" >&5
5542 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 ac_save_LIBS="$LIBS"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 eval "ac_cv_lib_$ac_lib_var=yes"
5564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 eval "ac_cv_lib_$ac_lib_var=no"
5570 LIBS="$ac_save_LIBS"
5573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5577 cat >> confdefs.h <<EOF
5578 #define $ac_tr_lib 1
5584 echo "$ac_t""no" 1>&6
5587 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5590 if test $ac_cv_func_res_query = no ; then
5591 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5592 echo "configure:5593: checking for res_query in -lresolv" >&5
5593 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 ac_save_LIBS="$LIBS"
5598 LIBS="-lresolv $LIBS"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5611 if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 eval "ac_cv_lib_$ac_lib_var=yes"
5615 echo "configure: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 eval "ac_cv_lib_$ac_lib_var=no"
5621 LIBS="$ac_save_LIBS"
5624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5628 cat >> confdefs.h <<EOF
5629 #define $ac_tr_lib 1
5632 LIBS="-lresolv $LIBS"
5635 echo "$ac_t""no" 1>&6
5638 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5641 if test "$ac_cv_func_res_query" = yes ; then
5642 cat >> confdefs.h <<\EOF
5643 #define HAVE_RES_QUERY 1
5647 if test $ol_enable_dnssrv != no ; then
5652 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5653 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5656 if test $ol_enable_quipu != no ; then
5657 for ac_hdr in quipu/commonarg.h
5659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_hdr" >&5
5662 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5671 { (eval echo configure:5672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5673 if test -z "$ac_err"; then
5675 eval "ac_cv_header_$ac_safe=yes"
5678 echo "configure: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5681 eval "ac_cv_header_$ac_safe=no"
5685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_hdr 1
5693 echo "$ac_t""no" 1>&6
5698 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5700 elif test $ol_enable_quipu = auto ; then
5701 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5703 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5712 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5713 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5715 for ac_hdr in krb5.h
5717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5719 echo "configure:5720: checking for $ac_hdr" >&5
5720 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5729 { (eval echo configure:5730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5731 if test -z "$ac_err"; then
5733 eval "ac_cv_header_$ac_safe=yes"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_header_$ac_safe=no"
5743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_hdr 1
5751 echo "$ac_t""no" 1>&6
5756 if test $ac_cv_header_krb5_h = yes ; then
5757 for ac_hdr in heim_err.h
5759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5761 echo "configure:5762: checking for $ac_hdr" >&5
5762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5771 { (eval echo configure:5772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5773 if test -z "$ac_err"; then
5775 eval "ac_cv_header_$ac_safe=yes"
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 eval "ac_cv_header_$ac_safe=no"
5785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5788 cat >> confdefs.h <<EOF
5789 #define $ac_tr_hdr 1
5793 echo "$ac_t""no" 1>&6
5797 if test $ac_cv_header_heim_err_h = yes ; then
5803 if test $krb5_impl = mit; then
5804 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5805 echo "configure:5806: checking for main in -lkrb5" >&5
5806 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5807 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 ac_save_LIBS="$LIBS"
5811 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 eval "ac_cv_lib_$ac_lib_var=yes"
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 eval "ac_cv_lib_$ac_lib_var=no"
5830 LIBS="$ac_save_LIBS"
5833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5836 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5838 echo "$ac_t""no" 1>&6
5843 elif test $krb5_impl = heimdal; then
5844 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5845 echo "configure:5846: checking for main in -lkrb5" >&5
5846 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5850 ac_save_LIBS="$LIBS"
5851 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 eval "ac_cv_lib_$ac_lib_var=yes"
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5867 eval "ac_cv_lib_$ac_lib_var=no"
5870 LIBS="$ac_save_LIBS"
5873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5876 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5878 echo "$ac_t""no" 1>&6
5883 cat >> confdefs.h <<\EOF
5884 #define HAVE_HEIMDAL_KERBEROS 1
5889 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5892 if test $have_krb5 = yes ; then
5895 cat >> confdefs.h <<\EOF
5900 if test $ol_enable_kpasswd != no ; then
5901 ol_link_kpasswd=yes;
5904 if test $ol_with_kerberos = k5only ; then
5905 ol_with_kerberos=found
5908 elif test $ol_with_kerberos != auto ; then
5909 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5915 if test $ol_link_krb5 = yes -a \
5916 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5918 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_hdr" >&5
5923 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5932 { (eval echo configure:5933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5934 if test -z "$ac_err"; then
5936 eval "ac_cv_header_$ac_safe=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_header_$ac_safe=no"
5946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5949 cat >> confdefs.h <<EOF
5950 #define $ac_tr_hdr 1
5954 echo "$ac_t""no" 1>&6
5959 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5960 if test $krb5_impl = mit; then
5961 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5962 echo "configure:5963: checking for main in -lkrb4" >&5
5963 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5967 ac_save_LIBS="$LIBS"
5968 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979 eval "ac_cv_lib_$ac_lib_var=yes"
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 eval "ac_cv_lib_$ac_lib_var=no"
5987 LIBS="$ac_save_LIBS"
5990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5993 KRB4_LIBS="-lkrb4 -ldes425"
5995 echo "$ac_t""no" 1>&6
6000 elif test $krb5_impl = heimdal; then
6001 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6002 echo "configure:6003: checking for main in -lkrb4" >&5
6003 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6007 ac_save_LIBS="$LIBS"
6008 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 eval "ac_cv_lib_$ac_lib_var=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 eval "ac_cv_lib_$ac_lib_var=no"
6027 LIBS="$ac_save_LIBS"
6030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6031 echo "$ac_t""yes" 1>&6
6035 echo "$ac_t""no" 1>&6
6042 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6045 if test $have_k425 = yes ; then
6046 ol_with_kerberos=found
6049 cat >> confdefs.h <<\EOF
6050 #define HAVE_KRB425 1
6053 cat >> confdefs.h <<\EOF
6058 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6059 echo "configure:6060: checking for des_debug in Kerberos libraries" >&5
6060 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6065 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6070 #include <kerberosIV/krb.h>
6071 #include <kerberosIV/des.h>
6072 extern int des_debug;
6080 if { (eval echo configure:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6082 ol_cv_var_des_debug=yes
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6087 ol_cv_var_des_debug=no
6094 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6096 if test $ol_cv_var_des_debug = yes ; then
6097 cat >> confdefs.h <<\EOF
6098 #define HAVE_DES_DEBUG 1
6108 if test $ol_link_krb5 = yes ; then
6109 ol_with_kerberos=found
6112 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6113 -o $ol_with_kerberos = kth ; then
6115 for ac_hdr in krb.h des.h krb-archaeology.h
6117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_hdr" >&5
6120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6129 { (eval echo configure:6130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6131 if test -z "$ac_err"; then
6133 eval "ac_cv_header_$ac_safe=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 eval "ac_cv_header_$ac_safe=no"
6143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6146 cat >> confdefs.h <<EOF
6147 #define $ac_tr_hdr 1
6151 echo "$ac_t""no" 1>&6
6156 if test $ac_cv_header_krb_h = yes ; then
6157 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6158 echo "configure:6159: checking for main in -lkrb" >&5
6159 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6160 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 ac_save_LIBS="$LIBS"
6164 LIBS="-lkrb -ldes $LIBS"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 eval "ac_cv_lib_$ac_lib_var=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 eval "ac_cv_lib_$ac_lib_var=no"
6183 LIBS="$ac_save_LIBS"
6186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6190 echo "$ac_t""no" 1>&6
6195 if test $have_k4 = yes ; then
6196 ol_with_kerberos=found
6199 cat >> confdefs.h <<\EOF
6204 KRB4_LIBS="-lkrb -ldes"
6206 if test $ac_cv_header_krb_archaeology_h = yes ; then
6207 cat >> confdefs.h <<\EOF
6208 #define HAVE_KTH_KERBEROS 1
6216 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6217 ol_link_kpasswd=yes;
6220 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6221 cat >> confdefs.h <<\EOF
6222 #define HAVE_KERBEROS 1
6226 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6227 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6231 if test $ol_with_tls != no ; then
6233 for ac_hdr in openssl/ssl.h ssl.h
6235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6237 echo "configure:6238: checking for $ac_hdr" >&5
6238 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6247 { (eval echo configure:6248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6249 if test -z "$ac_err"; then
6251 eval "ac_cv_header_$ac_safe=yes"
6254 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6257 eval "ac_cv_header_$ac_safe=no"
6261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6264 cat >> confdefs.h <<EOF
6265 #define $ac_tr_hdr 1
6269 echo "$ac_t""no" 1>&6
6274 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6275 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6276 echo "configure:6277: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6277 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6278 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6281 ac_save_LIBS="$LIBS"
6282 LIBS="-lssl -lcrypto $LIBS"
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6289 char SSLeay_add_ssl_algorithms();
6292 SSLeay_add_ssl_algorithms()
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_lib_$ac_lib_var=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_lib_$ac_lib_var=no"
6305 LIBS="$ac_save_LIBS"
6308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6309 echo "$ac_t""yes" 1>&6
6313 echo "$ac_t""no" 1>&6
6318 if test $have_ssleay = no ; then
6319 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6320 echo "configure:6321: checking for SSL_library_init in -lssl" >&5
6321 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 ac_save_LIBS="$LIBS"
6326 LIBS="-lssl -lcrypto $LIBS"
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6333 char SSL_library_init();
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 eval "ac_cv_lib_$ac_lib_var=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_lib_$ac_lib_var=no"
6349 LIBS="$ac_save_LIBS"
6352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6353 echo "$ac_t""yes" 1>&6
6357 echo "$ac_t""no" 1>&6
6363 if test $have_ssleay = no ; then
6364 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6365 echo "configure:6366: checking for ssl3_accept in -lssl" >&5
6366 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6370 ac_save_LIBS="$LIBS"
6371 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386 eval "ac_cv_lib_$ac_lib_var=yes"
6388 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 eval "ac_cv_lib_$ac_lib_var=no"
6394 LIBS="$ac_save_LIBS"
6397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6402 echo "$ac_t""no" 1>&6
6408 if test $have_ssleay = yes ; then
6412 cat >> confdefs.h <<\EOF
6413 #define HAVE_SSLEAY 1
6417 if test $need_rsaref = yes; then
6418 cat >> confdefs.h <<\EOF
6419 #define HAVE_RSAREF 1
6423 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6425 TLS_LIBS="-lssl -lcrypto"
6431 if test $ol_link_tls = yes ; then
6432 cat >> confdefs.h <<\EOF
6440 gethostbyname_r gethostbyaddr_r \
6443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6444 echo "configure:6445: checking for $ac_func" >&5
6445 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func(); below. */
6454 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6462 /* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */
6465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475 eval "ac_cv_func_$ac_func=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6480 eval "ac_cv_func_$ac_func=no"
6485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6486 echo "$ac_t""yes" 1>&6
6487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6488 cat >> confdefs.h <<EOF
6489 #define $ac_tr_func 1
6493 echo "$ac_t""no" 1>&6
6498 if test "$ac_cv_func_ctime_r" = no ; then
6499 ol_cv_func_ctime_r_nargs=0
6501 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6502 echo "configure:6503: checking number of arguments of ctime_r" >&5
6503 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6504 echo $ac_n "(cached) $ac_c" 1>&6
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6511 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6514 if { (eval echo configure:6515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6516 ol_cv_func_ctime_r_nargs3=yes
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 ol_cv_func_ctime_r_nargs3=no
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6530 time_t ti; char *buffer; ctime_r(&ti,buffer);
6533 if { (eval echo configure:6534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6535 ol_cv_func_ctime_r_nargs2=yes
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 ol_cv_func_ctime_r_nargs2=no
6544 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6545 $ol_cv_func_ctime_r_nargs2 = no ; then
6547 ol_cv_func_ctime_r_nargs=3
6549 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6550 $ol_cv_func_ctime_r_nargs2 = yes ; then
6552 ol_cv_func_ctime_r_nargs=2
6555 ol_cv_func_ctime_r_nargs=0
6560 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6562 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6563 cat >> confdefs.h <<EOF
6564 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6571 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6572 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6573 echo "configure:6574: checking number of arguments of gethostbyname_r" >&5
6574 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 #include <sys/types.h>
6581 #include <sys/socket.h>
6582 #include <netinet/in.h>
6584 #define BUFSIZE (sizeof(struct hostent)+10)
6586 struct hostent hent; char buffer[BUFSIZE];
6587 int bufsize=BUFSIZE;int h_errno;
6588 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6589 buffer, bufsize, &h_errno);
6592 if { (eval echo configure:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6594 ol_cv_func_gethostbyname_r_nargs5=yes
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 ol_cv_func_gethostbyname_r_nargs5=no
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 #include <sys/types.h>
6607 #include <sys/socket.h>
6608 #include <netinet/in.h>
6610 #define BUFSIZE (sizeof(struct hostent)+10)
6612 struct hostent hent;struct hostent *rhent;
6613 char buffer[BUFSIZE];
6614 int bufsize=BUFSIZE;int h_errno;
6615 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6619 if { (eval echo configure:6620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6621 ol_cv_func_gethostbyname_r_nargs6=yes
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 ol_cv_func_gethostbyname_r_nargs6=no
6630 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6631 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6633 ol_cv_func_gethostbyname_r_nargs=5
6635 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6636 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6638 ol_cv_func_gethostbyname_r_nargs=6
6641 ol_cv_func_gethostbyname_r_nargs=0
6646 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6647 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6648 cat >> confdefs.h <<EOF
6649 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6655 ol_cv_func_gethostbyname_r_nargs=0
6658 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6659 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6660 echo "configure:6661: checking number of arguments of gethostbyaddr_r" >&5
6661 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 #include <sys/types.h>
6668 #include <sys/socket.h>
6669 #include <netinet/in.h>
6671 #define BUFSIZE (sizeof(struct hostent)+10)
6673 struct hostent hent; char buffer[BUFSIZE];
6675 size_t alen=sizeof(struct in_addr);
6676 int bufsize=BUFSIZE;int h_errno;
6677 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6678 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6681 if { (eval echo configure:6682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6683 ol_cv_func_gethostbyaddr_r_nargs7=yes
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 ol_cv_func_gethostbyaddr_r_nargs7=no
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 #include <sys/types.h>
6696 #include <sys/socket.h>
6697 #include <netinet/in.h>
6699 #define BUFSIZE (sizeof(struct hostent)+10)
6701 struct hostent hent;
6702 struct hostent *rhent; char buffer[BUFSIZE];
6704 size_t alen=sizeof(struct in_addr);
6705 int bufsize=BUFSIZE;int h_errno;
6706 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6707 alen, AF_INET, &hent, buffer, bufsize,
6711 if { (eval echo configure:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6713 ol_cv_func_gethostbyaddr_r_nargs8=yes
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 ol_cv_func_gethostbyaddr_r_nargs8=no
6722 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6723 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6725 ol_cv_func_gethostbyaddr_r_nargs=7
6727 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6728 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6730 ol_cv_func_gethostbyaddr_r_nargs=8
6733 ol_cv_func_gethostbyaddr_r_nargs=0
6738 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6739 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6740 cat >> confdefs.h <<EOF
6741 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6747 ol_cv_func_gethostbyaddr_r_nargs=0
6750 if test "$ac_cv_func_ctime_r" = yes \
6751 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6752 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6753 -a "$ac_cv_func_gethostbyname_r" = yes \
6754 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6755 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6756 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6757 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6758 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6761 cat >> confdefs.h <<\EOF
6762 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6769 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6770 -o $ol_with_threads = nt ; then
6773 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6774 echo "configure:6775: checking for NT Threads" >&5
6775 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6779 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6780 echo "configure:6781: checking for _beginthread" >&5
6781 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6
6784 cat > conftest.$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 /* System header to define __stub macros and hopefully few prototypes,
6788 which can conflict with char _beginthread(); below. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6793 char _beginthread();
6798 /* The GNU C library defines this for functions which it implements
6799 to always fail with ENOSYS. Some functions are actually named
6800 something starting with __ and the normal name is an alias. */
6801 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 eval "ac_cv_func__beginthread=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_func__beginthread=no"
6821 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 ol_cv_nt_threads=yes
6825 echo "$ac_t""no" 1>&6
6832 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6834 if test $ol_cv_nt_threads = yes ; then
6835 cat >> confdefs.h <<\EOF
6836 #define HAVE_NT_THREADS 1
6842 if test "$ol_cv_nt_threads" = yes ; then
6844 ol_with_threads=found
6845 ol_with_yielding_select=yes
6847 cat >> confdefs.h <<\EOF
6848 #define HAVE_NT_SERVICE_MANAGER 1
6851 cat >> confdefs.h <<\EOF
6852 #define HAVE_NT_EVENT_LOG 1
6857 if test $ol_with_threads = nt ; then
6858 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6862 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6863 -o $ol_with_threads = posix ; then
6865 for ac_hdr in pthread.h
6867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6869 echo "configure:6870: checking for $ac_hdr" >&5
6870 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6879 { (eval echo configure:6880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6881 if test -z "$ac_err"; then
6883 eval "ac_cv_header_$ac_safe=yes"
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_header_$ac_safe=no"
6893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6896 cat >> confdefs.h <<EOF
6897 #define $ac_tr_hdr 1
6901 echo "$ac_t""no" 1>&6
6906 if test $ac_cv_header_pthread_h = yes ; then
6907 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6908 echo "configure:6909: checking POSIX thread version" >&5
6909 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6917 # include <pthread.h>
6918 /* this check could be improved */
6919 # ifdef PTHREAD_ONCE_INIT
6920 pthread_version_final;
6924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6925 egrep "pthread_version_final" >/dev/null 2>&1; then
6927 ol_pthread_final=yes
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6939 # include <pthread.h>
6940 /* this check could be improved */
6941 # ifdef pthread_once_init
6942 pthread_version_draft4;
6946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6947 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6949 ol_pthread_draft4=yes
6952 ol_pthread_draft4=no
6957 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6958 ol_cv_pthread_version=final
6959 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6960 ol_cv_pthread_version=draft4
6962 ol_cv_pthread_version=unknown
6967 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6970 if test $ol_cv_pthread_version = final ; then
6971 cat >> confdefs.h <<\EOF
6972 #define HAVE_PTHREADS_FINAL 1
6975 elif test $ol_cv_pthread_version = draft4 ; then
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_PTHREADS_D4 1
6981 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6984 # consider threads found
6985 ol_with_threads=found
6988 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6989 echo "configure:6990: checking for LinuxThreads pthread.h" >&5
6990 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 cat > conftest.$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6996 #include <pthread.h>
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7001 ol_cv_header_linux_threads=yes
7004 ol_cv_header_linux_threads=no
7011 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7012 if test $ol_cv_header_linux_threads = yes; then
7013 cat >> confdefs.h <<\EOF
7014 #define HAVE_LINUX_THREADS 1
7020 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7021 echo "configure:7022: checking for GNU Pth pthread.h" >&5
7022 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 #include <pthread.h>
7029 #ifdef _POSIX_THREAD_IS_GNU_PTH
7034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035 egrep "__gnu_pth__" >/dev/null 2>&1; then
7037 ol_cv_header_gnu_pth_pthread_h=yes
7040 ol_cv_header_gnu_pth_pthread_h=no
7047 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7050 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7051 for ac_hdr in sched.h
7053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7055 echo "configure:7056: checking for $ac_hdr" >&5
7056 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7057 echo $ac_n "(cached) $ac_c" 1>&6
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7065 { (eval echo configure:7066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7067 if test -z "$ac_err"; then
7069 eval "ac_cv_header_$ac_safe=yes"
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 eval "ac_cv_header_$ac_safe=no"
7079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7082 cat >> confdefs.h <<EOF
7083 #define $ac_tr_hdr 1
7087 echo "$ac_t""no" 1>&6
7094 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7095 echo "configure:7096: checking for pthread_create in default libraries" >&5
7096 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7100 if test "$cross_compiling" = yes; then
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* pthread test headers */
7105 #include <pthread.h>
7107 #define NULL (void*)0
7110 static void *task(p)
7113 return (void *) (p == NULL);
7118 /* pthread test function */
7121 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7122 /* This system (e.g. AIX) defaults detached; must override */
7123 pthread_attr_t attr;
7125 status = pthread_attr_init(&attr);
7126 if( status ) exit( status );
7128 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7129 if( status ) exit( status );
7133 #if HAVE_PTHREADS_D4
7134 #define ATTR pthread_attr_default
7139 /* make sure pthread_create() isn't just a stub */
7140 status = pthread_create(&t, ATTR, task, NULL);
7141 if( status ) exit( status );
7143 /* make sure pthread_detach() isn't just a stub */
7144 #if HAVE_PTHREADS_D4
7145 status = pthread_detach( &t );
7147 status = pthread_detach( t );
7150 #ifdef HAVE_LINUX_THREADS
7151 pthread_kill_other_threads_np();
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160 ol_cv_pthread_create=yes
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7165 ol_cv_pthread_create=no
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* pthread test headers */
7173 #include <pthread.h>
7175 #define NULL (void*)0
7178 static void *task(p)
7181 return (void *) (p == NULL);
7185 int main(argc, argv)
7190 /* pthread test function */
7193 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7194 /* This system (e.g. AIX) defaults detached; must override */
7195 pthread_attr_t attr;
7197 status = pthread_attr_init(&attr);
7198 if( status ) exit( status );
7200 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7201 if( status ) exit( status );
7205 #if HAVE_PTHREADS_D4
7206 #define ATTR pthread_attr_default
7211 /* make sure pthread_create() isn't just a stub */
7212 status = pthread_create(&t, ATTR, task, NULL);
7213 if( status ) exit( status );
7215 /* make sure pthread_detach() isn't just a stub */
7216 #if HAVE_PTHREADS_D4
7217 status = pthread_detach( &t );
7219 status = pthread_detach( t );
7222 #ifdef HAVE_LINUX_THREADS
7223 pthread_kill_other_threads_np();
7231 if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7233 ol_cv_pthread_create=yes
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 ol_cv_pthread_create=no
7245 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7247 if test $ol_cv_pthread_create != no ; then
7248 ol_link_threads=posix
7252 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7253 if test "$ol_link_threads" = no ; then
7255 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7256 echo "configure:7257: checking for pthread link with -kthread" >&5
7257 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7263 LIBS="-kthread $LIBS"
7265 if test "$cross_compiling" = yes; then
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* pthread test headers */
7270 #include <pthread.h>
7272 #define NULL (void*)0
7275 static void *task(p)
7278 return (void *) (p == NULL);
7283 /* pthread test function */
7286 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7287 /* This system (e.g. AIX) defaults detached; must override */
7288 pthread_attr_t attr;
7290 status = pthread_attr_init(&attr);
7291 if( status ) exit( status );
7293 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7294 if( status ) exit( status );
7298 #if HAVE_PTHREADS_D4
7299 #define ATTR pthread_attr_default
7304 /* make sure pthread_create() isn't just a stub */
7305 status = pthread_create(&t, ATTR, task, NULL);
7306 if( status ) exit( status );
7308 /* make sure pthread_detach() isn't just a stub */
7309 #if HAVE_PTHREADS_D4
7310 status = pthread_detach( &t );
7312 status = pthread_detach( t );
7315 #ifdef HAVE_LINUX_THREADS
7316 pthread_kill_other_threads_np();
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325 ol_cv_pthread_kthread=yes
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 ol_cv_pthread_kthread=no
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7337 /* pthread test headers */
7338 #include <pthread.h>
7340 #define NULL (void*)0
7343 static void *task(p)
7346 return (void *) (p == NULL);
7350 int main(argc, argv)
7355 /* pthread test function */
7358 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7359 /* This system (e.g. AIX) defaults detached; must override */
7360 pthread_attr_t attr;
7362 status = pthread_attr_init(&attr);
7363 if( status ) exit( status );
7365 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7366 if( status ) exit( status );
7370 #if HAVE_PTHREADS_D4
7371 #define ATTR pthread_attr_default
7376 /* make sure pthread_create() isn't just a stub */
7377 status = pthread_create(&t, ATTR, task, NULL);
7378 if( status ) exit( status );
7380 /* make sure pthread_detach() isn't just a stub */
7381 #if HAVE_PTHREADS_D4
7382 status = pthread_detach( &t );
7384 status = pthread_detach( t );
7387 #ifdef HAVE_LINUX_THREADS
7388 pthread_kill_other_threads_np();
7396 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7398 ol_cv_pthread_kthread=yes
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 ol_cv_pthread_kthread=no
7414 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7416 if test $ol_cv_pthread_kthread = yes ; then
7417 ol_link_pthreads="-kthread"
7418 ol_link_threads=posix
7422 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7423 if test "$ol_link_threads" = no ; then
7425 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7426 echo "configure:7427: checking for pthread link with -pthread" >&5
7427 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7433 LIBS="-pthread $LIBS"
7435 if test "$cross_compiling" = yes; then
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7439 /* pthread test headers */
7440 #include <pthread.h>
7442 #define NULL (void*)0
7445 static void *task(p)
7448 return (void *) (p == NULL);
7453 /* pthread test function */
7456 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7457 /* This system (e.g. AIX) defaults detached; must override */
7458 pthread_attr_t attr;
7460 status = pthread_attr_init(&attr);
7461 if( status ) exit( status );
7463 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7464 if( status ) exit( status );
7468 #if HAVE_PTHREADS_D4
7469 #define ATTR pthread_attr_default
7474 /* make sure pthread_create() isn't just a stub */
7475 status = pthread_create(&t, ATTR, task, NULL);
7476 if( status ) exit( status );
7478 /* make sure pthread_detach() isn't just a stub */
7479 #if HAVE_PTHREADS_D4
7480 status = pthread_detach( &t );
7482 status = pthread_detach( t );
7485 #ifdef HAVE_LINUX_THREADS
7486 pthread_kill_other_threads_np();
7493 if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7495 ol_cv_pthread_pthread=yes
7497 echo "configure: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 ol_cv_pthread_pthread=no
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* pthread test headers */
7508 #include <pthread.h>
7510 #define NULL (void*)0
7513 static void *task(p)
7516 return (void *) (p == NULL);
7520 int main(argc, argv)
7525 /* pthread test function */
7528 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7529 /* This system (e.g. AIX) defaults detached; must override */
7530 pthread_attr_t attr;
7532 status = pthread_attr_init(&attr);
7533 if( status ) exit( status );
7535 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7536 if( status ) exit( status );
7540 #if HAVE_PTHREADS_D4
7541 #define ATTR pthread_attr_default
7546 /* make sure pthread_create() isn't just a stub */
7547 status = pthread_create(&t, ATTR, task, NULL);
7548 if( status ) exit( status );
7550 /* make sure pthread_detach() isn't just a stub */
7551 #if HAVE_PTHREADS_D4
7552 status = pthread_detach( &t );
7554 status = pthread_detach( t );
7557 #ifdef HAVE_LINUX_THREADS
7558 pthread_kill_other_threads_np();
7566 if { (eval echo configure:7567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7568 ol_cv_pthread_pthread=yes
7570 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7573 ol_cv_pthread_pthread=no
7584 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7586 if test $ol_cv_pthread_pthread = yes ; then
7587 ol_link_pthreads="-pthread"
7588 ol_link_threads=posix
7592 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7593 if test "$ol_link_threads" = no ; then
7595 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7596 echo "configure:7597: checking for pthread link with -pthreads" >&5
7597 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7603 LIBS="-pthreads $LIBS"
7605 if test "$cross_compiling" = yes; then
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* pthread test headers */
7610 #include <pthread.h>
7612 #define NULL (void*)0
7615 static void *task(p)
7618 return (void *) (p == NULL);
7623 /* pthread test function */
7626 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7627 /* This system (e.g. AIX) defaults detached; must override */
7628 pthread_attr_t attr;
7630 status = pthread_attr_init(&attr);
7631 if( status ) exit( status );
7633 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7634 if( status ) exit( status );
7638 #if HAVE_PTHREADS_D4
7639 #define ATTR pthread_attr_default
7644 /* make sure pthread_create() isn't just a stub */
7645 status = pthread_create(&t, ATTR, task, NULL);
7646 if( status ) exit( status );
7648 /* make sure pthread_detach() isn't just a stub */
7649 #if HAVE_PTHREADS_D4
7650 status = pthread_detach( &t );
7652 status = pthread_detach( t );
7655 #ifdef HAVE_LINUX_THREADS
7656 pthread_kill_other_threads_np();
7663 if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7665 ol_cv_pthread_pthreads=yes
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7670 ol_cv_pthread_pthreads=no
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* pthread test headers */
7678 #include <pthread.h>
7680 #define NULL (void*)0
7683 static void *task(p)
7686 return (void *) (p == NULL);
7690 int main(argc, argv)
7695 /* pthread test function */
7698 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7699 /* This system (e.g. AIX) defaults detached; must override */
7700 pthread_attr_t attr;
7702 status = pthread_attr_init(&attr);
7703 if( status ) exit( status );
7705 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7706 if( status ) exit( status );
7710 #if HAVE_PTHREADS_D4
7711 #define ATTR pthread_attr_default
7716 /* make sure pthread_create() isn't just a stub */
7717 status = pthread_create(&t, ATTR, task, NULL);
7718 if( status ) exit( status );
7720 /* make sure pthread_detach() isn't just a stub */
7721 #if HAVE_PTHREADS_D4
7722 status = pthread_detach( &t );
7724 status = pthread_detach( t );
7727 #ifdef HAVE_LINUX_THREADS
7728 pthread_kill_other_threads_np();
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7738 ol_cv_pthread_pthreads=yes
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 ol_cv_pthread_pthreads=no
7754 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7756 if test $ol_cv_pthread_pthreads = yes ; then
7757 ol_link_pthreads="-pthreads"
7758 ol_link_threads=posix
7762 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7763 if test "$ol_link_threads" = no ; then
7765 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7766 echo "configure:7767: checking for pthread link with -mthreads" >&5
7767 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7773 LIBS="-mthreads $LIBS"
7775 if test "$cross_compiling" = yes; then
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7779 /* pthread test headers */
7780 #include <pthread.h>
7782 #define NULL (void*)0
7785 static void *task(p)
7788 return (void *) (p == NULL);
7793 /* pthread test function */
7796 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7797 /* This system (e.g. AIX) defaults detached; must override */
7798 pthread_attr_t attr;
7800 status = pthread_attr_init(&attr);
7801 if( status ) exit( status );
7803 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7804 if( status ) exit( status );
7808 #if HAVE_PTHREADS_D4
7809 #define ATTR pthread_attr_default
7814 /* make sure pthread_create() isn't just a stub */
7815 status = pthread_create(&t, ATTR, task, NULL);
7816 if( status ) exit( status );
7818 /* make sure pthread_detach() isn't just a stub */
7819 #if HAVE_PTHREADS_D4
7820 status = pthread_detach( &t );
7822 status = pthread_detach( t );
7825 #ifdef HAVE_LINUX_THREADS
7826 pthread_kill_other_threads_np();
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7835 ol_cv_pthread_mthreads=yes
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7840 ol_cv_pthread_mthreads=no
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 /* pthread test headers */
7848 #include <pthread.h>
7850 #define NULL (void*)0
7853 static void *task(p)
7856 return (void *) (p == NULL);
7860 int main(argc, argv)
7865 /* pthread test function */
7868 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7869 /* This system (e.g. AIX) defaults detached; must override */
7870 pthread_attr_t attr;
7872 status = pthread_attr_init(&attr);
7873 if( status ) exit( status );
7875 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7876 if( status ) exit( status );
7880 #if HAVE_PTHREADS_D4
7881 #define ATTR pthread_attr_default
7886 /* make sure pthread_create() isn't just a stub */
7887 status = pthread_create(&t, ATTR, task, NULL);
7888 if( status ) exit( status );
7890 /* make sure pthread_detach() isn't just a stub */
7891 #if HAVE_PTHREADS_D4
7892 status = pthread_detach( &t );
7894 status = pthread_detach( t );
7897 #ifdef HAVE_LINUX_THREADS
7898 pthread_kill_other_threads_np();
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7908 ol_cv_pthread_mthreads=yes
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7913 ol_cv_pthread_mthreads=no
7924 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7926 if test $ol_cv_pthread_mthreads = yes ; then
7927 ol_link_pthreads="-mthreads"
7928 ol_link_threads=posix
7932 # Pthread try link: -thread (ol_cv_pthread_thread)
7933 if test "$ol_link_threads" = no ; then
7935 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7936 echo "configure:7937: checking for pthread link with -thread" >&5
7937 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7943 LIBS="-thread $LIBS"
7945 if test "$cross_compiling" = yes; then
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7949 /* pthread test headers */
7950 #include <pthread.h>
7952 #define NULL (void*)0
7955 static void *task(p)
7958 return (void *) (p == NULL);
7963 /* pthread test function */
7966 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7967 /* This system (e.g. AIX) defaults detached; must override */
7968 pthread_attr_t attr;
7970 status = pthread_attr_init(&attr);
7971 if( status ) exit( status );
7973 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7974 if( status ) exit( status );
7978 #if HAVE_PTHREADS_D4
7979 #define ATTR pthread_attr_default
7984 /* make sure pthread_create() isn't just a stub */
7985 status = pthread_create(&t, ATTR, task, NULL);
7986 if( status ) exit( status );
7988 /* make sure pthread_detach() isn't just a stub */
7989 #if HAVE_PTHREADS_D4
7990 status = pthread_detach( &t );
7992 status = pthread_detach( t );
7995 #ifdef HAVE_LINUX_THREADS
7996 pthread_kill_other_threads_np();
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8005 ol_cv_pthread_thread=yes
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8010 ol_cv_pthread_thread=no
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* pthread test headers */
8018 #include <pthread.h>
8020 #define NULL (void*)0
8023 static void *task(p)
8026 return (void *) (p == NULL);
8030 int main(argc, argv)
8035 /* pthread test function */
8038 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8039 /* This system (e.g. AIX) defaults detached; must override */
8040 pthread_attr_t attr;
8042 status = pthread_attr_init(&attr);
8043 if( status ) exit( status );
8045 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8046 if( status ) exit( status );
8050 #if HAVE_PTHREADS_D4
8051 #define ATTR pthread_attr_default
8056 /* make sure pthread_create() isn't just a stub */
8057 status = pthread_create(&t, ATTR, task, NULL);
8058 if( status ) exit( status );
8060 /* make sure pthread_detach() isn't just a stub */
8061 #if HAVE_PTHREADS_D4
8062 status = pthread_detach( &t );
8064 status = pthread_detach( t );
8067 #ifdef HAVE_LINUX_THREADS
8068 pthread_kill_other_threads_np();
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8078 ol_cv_pthread_thread=yes
8080 echo "configure: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8083 ol_cv_pthread_thread=no
8094 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8096 if test $ol_cv_pthread_thread = yes ; then
8097 ol_link_pthreads="-thread"
8098 ol_link_threads=posix
8103 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8104 if test "$ol_link_threads" = no ; then
8105 # try -lpthread -lmach -lexc -lc_r
8106 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8107 echo "configure:8108: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8108 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8114 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8116 if test "$cross_compiling" = yes; then
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* pthread test headers */
8121 #include <pthread.h>
8123 #define NULL (void*)0
8126 static void *task(p)
8129 return (void *) (p == NULL);
8134 /* pthread test function */
8137 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8138 /* This system (e.g. AIX) defaults detached; must override */
8139 pthread_attr_t attr;
8141 status = pthread_attr_init(&attr);
8142 if( status ) exit( status );
8144 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8145 if( status ) exit( status );
8149 #if HAVE_PTHREADS_D4
8150 #define ATTR pthread_attr_default
8155 /* make sure pthread_create() isn't just a stub */
8156 status = pthread_create(&t, ATTR, task, NULL);
8157 if( status ) exit( status );
8159 /* make sure pthread_detach() isn't just a stub */
8160 #if HAVE_PTHREADS_D4
8161 status = pthread_detach( &t );
8163 status = pthread_detach( t );
8166 #ifdef HAVE_LINUX_THREADS
8167 pthread_kill_other_threads_np();
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8176 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* pthread test headers */
8189 #include <pthread.h>
8191 #define NULL (void*)0
8194 static void *task(p)
8197 return (void *) (p == NULL);
8201 int main(argc, argv)
8206 /* pthread test function */
8209 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8210 /* This system (e.g. AIX) defaults detached; must override */
8211 pthread_attr_t attr;
8213 status = pthread_attr_init(&attr);
8214 if( status ) exit( status );
8216 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8217 if( status ) exit( status );
8221 #if HAVE_PTHREADS_D4
8222 #define ATTR pthread_attr_default
8227 /* make sure pthread_create() isn't just a stub */
8228 status = pthread_create(&t, ATTR, task, NULL);
8229 if( status ) exit( status );
8231 /* make sure pthread_detach() isn't just a stub */
8232 #if HAVE_PTHREADS_D4
8233 status = pthread_detach( &t );
8235 status = pthread_detach( t );
8238 #ifdef HAVE_LINUX_THREADS
8239 pthread_kill_other_threads_np();
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8249 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8254 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8265 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8267 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8268 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8269 ol_link_threads=posix
8273 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8274 if test "$ol_link_threads" = no ; then
8275 # try -lpthread -lmach -lexc
8276 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8277 echo "configure:8278: checking for pthread link with -lpthread -lmach -lexc" >&5
8278 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8284 LIBS="-lpthread -lmach -lexc $LIBS"
8286 if test "$cross_compiling" = yes; then
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 /* pthread test headers */
8291 #include <pthread.h>
8293 #define NULL (void*)0
8296 static void *task(p)
8299 return (void *) (p == NULL);
8304 /* pthread test function */
8307 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8308 /* This system (e.g. AIX) defaults detached; must override */
8309 pthread_attr_t attr;
8311 status = pthread_attr_init(&attr);
8312 if( status ) exit( status );
8314 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8315 if( status ) exit( status );
8319 #if HAVE_PTHREADS_D4
8320 #define ATTR pthread_attr_default
8325 /* make sure pthread_create() isn't just a stub */
8326 status = pthread_create(&t, ATTR, task, NULL);
8327 if( status ) exit( status );
8329 /* make sure pthread_detach() isn't just a stub */
8330 #if HAVE_PTHREADS_D4
8331 status = pthread_detach( &t );
8333 status = pthread_detach( t );
8336 #ifdef HAVE_LINUX_THREADS
8337 pthread_kill_other_threads_np();
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8346 ol_cv_pthread_lpthread_lmach_lexc=yes
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 ol_cv_pthread_lpthread_lmach_lexc=no
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 /* pthread test headers */
8359 #include <pthread.h>
8361 #define NULL (void*)0
8364 static void *task(p)
8367 return (void *) (p == NULL);
8371 int main(argc, argv)
8376 /* pthread test function */
8379 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8380 /* This system (e.g. AIX) defaults detached; must override */
8381 pthread_attr_t attr;
8383 status = pthread_attr_init(&attr);
8384 if( status ) exit( status );
8386 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8387 if( status ) exit( status );
8391 #if HAVE_PTHREADS_D4
8392 #define ATTR pthread_attr_default
8397 /* make sure pthread_create() isn't just a stub */
8398 status = pthread_create(&t, ATTR, task, NULL);
8399 if( status ) exit( status );
8401 /* make sure pthread_detach() isn't just a stub */
8402 #if HAVE_PTHREADS_D4
8403 status = pthread_detach( &t );
8405 status = pthread_detach( t );
8408 #ifdef HAVE_LINUX_THREADS
8409 pthread_kill_other_threads_np();
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8419 ol_cv_pthread_lpthread_lmach_lexc=yes
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 ol_cv_pthread_lpthread_lmach_lexc=no
8435 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8437 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8438 ol_link_pthreads="-lpthread -lmach -lexc"
8439 ol_link_threads=posix
8444 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8445 if test "$ol_link_threads" = no ; then
8446 # try -lpthread -Wl,-woff,85
8447 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8448 echo "configure:8449: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8449 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8455 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8457 if test "$cross_compiling" = yes; then
8458 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure"
8460 #include "confdefs.h"
8461 /* pthread test headers */
8462 #include <pthread.h>
8464 #define NULL (void*)0
8467 static void *task(p)
8470 return (void *) (p == NULL);
8475 /* pthread test function */
8478 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8479 /* This system (e.g. AIX) defaults detached; must override */
8480 pthread_attr_t attr;
8482 status = pthread_attr_init(&attr);
8483 if( status ) exit( status );
8485 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8486 if( status ) exit( status );
8490 #if HAVE_PTHREADS_D4
8491 #define ATTR pthread_attr_default
8496 /* make sure pthread_create() isn't just a stub */
8497 status = pthread_create(&t, ATTR, task, NULL);
8498 if( status ) exit( status );
8500 /* make sure pthread_detach() isn't just a stub */
8501 #if HAVE_PTHREADS_D4
8502 status = pthread_detach( &t );
8504 status = pthread_detach( t );
8507 #ifdef HAVE_LINUX_THREADS
8508 pthread_kill_other_threads_np();
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 ol_cv_pthread_lib_lpthread_woff=yes
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 ol_cv_pthread_lib_lpthread_woff=no
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 /* pthread test headers */
8530 #include <pthread.h>
8532 #define NULL (void*)0
8535 static void *task(p)
8538 return (void *) (p == NULL);
8542 int main(argc, argv)
8547 /* pthread test function */
8550 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8551 /* This system (e.g. AIX) defaults detached; must override */
8552 pthread_attr_t attr;
8554 status = pthread_attr_init(&attr);
8555 if( status ) exit( status );
8557 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8558 if( status ) exit( status );
8562 #if HAVE_PTHREADS_D4
8563 #define ATTR pthread_attr_default
8568 /* make sure pthread_create() isn't just a stub */
8569 status = pthread_create(&t, ATTR, task, NULL);
8570 if( status ) exit( status );
8572 /* make sure pthread_detach() isn't just a stub */
8573 #if HAVE_PTHREADS_D4
8574 status = pthread_detach( &t );
8576 status = pthread_detach( t );
8579 #ifdef HAVE_LINUX_THREADS
8580 pthread_kill_other_threads_np();
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8590 ol_cv_pthread_lib_lpthread_woff=yes
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8595 ol_cv_pthread_lib_lpthread_woff=no
8606 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8608 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8609 ol_link_pthreads="-lpthread -Wl,-woff,85"
8610 ol_link_threads=posix
8615 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8616 if test "$ol_link_threads" = no ; then
8618 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8619 echo "configure:8620: checking for pthread link with -lpthread" >&5
8620 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8626 LIBS="-lpthread $LIBS"
8628 if test "$cross_compiling" = yes; then
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* pthread test headers */
8633 #include <pthread.h>
8635 #define NULL (void*)0
8638 static void *task(p)
8641 return (void *) (p == NULL);
8646 /* pthread test function */
8649 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8650 /* This system (e.g. AIX) defaults detached; must override */
8651 pthread_attr_t attr;
8653 status = pthread_attr_init(&attr);
8654 if( status ) exit( status );
8656 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8657 if( status ) exit( status );
8661 #if HAVE_PTHREADS_D4
8662 #define ATTR pthread_attr_default
8667 /* make sure pthread_create() isn't just a stub */
8668 status = pthread_create(&t, ATTR, task, NULL);
8669 if( status ) exit( status );
8671 /* make sure pthread_detach() isn't just a stub */
8672 #if HAVE_PTHREADS_D4
8673 status = pthread_detach( &t );
8675 status = pthread_detach( t );
8678 #ifdef HAVE_LINUX_THREADS
8679 pthread_kill_other_threads_np();
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8688 ol_cv_pthread_lpthread=yes
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 ol_cv_pthread_lpthread=no
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* pthread test headers */
8701 #include <pthread.h>
8703 #define NULL (void*)0
8706 static void *task(p)
8709 return (void *) (p == NULL);
8713 int main(argc, argv)
8718 /* pthread test function */
8721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8722 /* This system (e.g. AIX) defaults detached; must override */
8723 pthread_attr_t attr;
8725 status = pthread_attr_init(&attr);
8726 if( status ) exit( status );
8728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8729 if( status ) exit( status );
8733 #if HAVE_PTHREADS_D4
8734 #define ATTR pthread_attr_default
8739 /* make sure pthread_create() isn't just a stub */
8740 status = pthread_create(&t, ATTR, task, NULL);
8741 if( status ) exit( status );
8743 /* make sure pthread_detach() isn't just a stub */
8744 #if HAVE_PTHREADS_D4
8745 status = pthread_detach( &t );
8747 status = pthread_detach( t );
8750 #ifdef HAVE_LINUX_THREADS
8751 pthread_kill_other_threads_np();
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8761 ol_cv_pthread_lpthread=yes
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 ol_cv_pthread_lpthread=no
8777 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8779 if test $ol_cv_pthread_lpthread = yes ; then
8780 ol_link_pthreads="-lpthread"
8781 ol_link_threads=posix
8785 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8786 if test "$ol_link_threads" = no ; then
8788 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8789 echo "configure:8790: checking for pthread link with -lc_r" >&5
8790 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8798 if test "$cross_compiling" = yes; then
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* pthread test headers */
8803 #include <pthread.h>
8805 #define NULL (void*)0
8808 static void *task(p)
8811 return (void *) (p == NULL);
8816 /* pthread test function */
8819 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8820 /* This system (e.g. AIX) defaults detached; must override */
8821 pthread_attr_t attr;
8823 status = pthread_attr_init(&attr);
8824 if( status ) exit( status );
8826 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8827 if( status ) exit( status );
8831 #if HAVE_PTHREADS_D4
8832 #define ATTR pthread_attr_default
8837 /* make sure pthread_create() isn't just a stub */
8838 status = pthread_create(&t, ATTR, task, NULL);
8839 if( status ) exit( status );
8841 /* make sure pthread_detach() isn't just a stub */
8842 #if HAVE_PTHREADS_D4
8843 status = pthread_detach( &t );
8845 status = pthread_detach( t );
8848 #ifdef HAVE_LINUX_THREADS
8849 pthread_kill_other_threads_np();
8856 if { (eval echo configure:8857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8858 ol_cv_pthread_lc_r=yes
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8863 ol_cv_pthread_lc_r=no
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* pthread test headers */
8871 #include <pthread.h>
8873 #define NULL (void*)0
8876 static void *task(p)
8879 return (void *) (p == NULL);
8883 int main(argc, argv)
8888 /* pthread test function */
8891 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8892 /* This system (e.g. AIX) defaults detached; must override */
8893 pthread_attr_t attr;
8895 status = pthread_attr_init(&attr);
8896 if( status ) exit( status );
8898 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8899 if( status ) exit( status );
8903 #if HAVE_PTHREADS_D4
8904 #define ATTR pthread_attr_default
8909 /* make sure pthread_create() isn't just a stub */
8910 status = pthread_create(&t, ATTR, task, NULL);
8911 if( status ) exit( status );
8913 /* make sure pthread_detach() isn't just a stub */
8914 #if HAVE_PTHREADS_D4
8915 status = pthread_detach( &t );
8917 status = pthread_detach( t );
8920 #ifdef HAVE_LINUX_THREADS
8921 pthread_kill_other_threads_np();
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8931 ol_cv_pthread_lc_r=yes
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8936 ol_cv_pthread_lc_r=no
8947 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8949 if test $ol_cv_pthread_lc_r = yes ; then
8950 ol_link_pthreads="-lc_r"
8951 ol_link_threads=posix
8956 # Pthread try link: -threads (ol_cv_pthread_threads)
8957 if test "$ol_link_threads" = no ; then
8959 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8960 echo "configure:8961: checking for pthread link with -threads" >&5
8961 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8962 echo $ac_n "(cached) $ac_c" 1>&6
8967 LIBS="-threads $LIBS"
8969 if test "$cross_compiling" = yes; then
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8973 /* pthread test headers */
8974 #include <pthread.h>
8976 #define NULL (void*)0
8979 static void *task(p)
8982 return (void *) (p == NULL);
8987 /* pthread test function */
8990 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8991 /* This system (e.g. AIX) defaults detached; must override */
8992 pthread_attr_t attr;
8994 status = pthread_attr_init(&attr);
8995 if( status ) exit( status );
8997 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8998 if( status ) exit( status );
9002 #if HAVE_PTHREADS_D4
9003 #define ATTR pthread_attr_default
9008 /* make sure pthread_create() isn't just a stub */
9009 status = pthread_create(&t, ATTR, task, NULL);
9010 if( status ) exit( status );
9012 /* make sure pthread_detach() isn't just a stub */
9013 #if HAVE_PTHREADS_D4
9014 status = pthread_detach( &t );
9016 status = pthread_detach( t );
9019 #ifdef HAVE_LINUX_THREADS
9020 pthread_kill_other_threads_np();
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 ol_cv_pthread_threads=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 ol_cv_pthread_threads=no
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 /* pthread test headers */
9042 #include <pthread.h>
9044 #define NULL (void*)0
9047 static void *task(p)
9050 return (void *) (p == NULL);
9054 int main(argc, argv)
9059 /* pthread test function */
9062 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9063 /* This system (e.g. AIX) defaults detached; must override */
9064 pthread_attr_t attr;
9066 status = pthread_attr_init(&attr);
9067 if( status ) exit( status );
9069 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9070 if( status ) exit( status );
9074 #if HAVE_PTHREADS_D4
9075 #define ATTR pthread_attr_default
9080 /* make sure pthread_create() isn't just a stub */
9081 status = pthread_create(&t, ATTR, task, NULL);
9082 if( status ) exit( status );
9084 /* make sure pthread_detach() isn't just a stub */
9085 #if HAVE_PTHREADS_D4
9086 status = pthread_detach( &t );
9088 status = pthread_detach( t );
9091 #ifdef HAVE_LINUX_THREADS
9092 pthread_kill_other_threads_np();
9100 if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9102 ol_cv_pthread_threads=yes
9104 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9107 ol_cv_pthread_threads=no
9118 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9120 if test $ol_cv_pthread_threads = yes ; then
9121 ol_link_pthreads="-threads"
9122 ol_link_threads=posix
9127 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9128 if test "$ol_link_threads" = no ; then
9129 # try -lpthreads -lmach -lexc -lc_r
9130 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9131 echo "configure:9132: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9132 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9138 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9140 if test "$cross_compiling" = yes; then
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9144 /* pthread test headers */
9145 #include <pthread.h>
9147 #define NULL (void*)0
9150 static void *task(p)
9153 return (void *) (p == NULL);
9158 /* pthread test function */
9161 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9162 /* This system (e.g. AIX) defaults detached; must override */
9163 pthread_attr_t attr;
9165 status = pthread_attr_init(&attr);
9166 if( status ) exit( status );
9168 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9169 if( status ) exit( status );
9173 #if HAVE_PTHREADS_D4
9174 #define ATTR pthread_attr_default
9179 /* make sure pthread_create() isn't just a stub */
9180 status = pthread_create(&t, ATTR, task, NULL);
9181 if( status ) exit( status );
9183 /* make sure pthread_detach() isn't just a stub */
9184 #if HAVE_PTHREADS_D4
9185 status = pthread_detach( &t );
9187 status = pthread_detach( t );
9190 #ifdef HAVE_LINUX_THREADS
9191 pthread_kill_other_threads_np();
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9200 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 /* pthread test headers */
9213 #include <pthread.h>
9215 #define NULL (void*)0
9218 static void *task(p)
9221 return (void *) (p == NULL);
9225 int main(argc, argv)
9230 /* pthread test function */
9233 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9234 /* This system (e.g. AIX) defaults detached; must override */
9235 pthread_attr_t attr;
9237 status = pthread_attr_init(&attr);
9238 if( status ) exit( status );
9240 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9241 if( status ) exit( status );
9245 #if HAVE_PTHREADS_D4
9246 #define ATTR pthread_attr_default
9251 /* make sure pthread_create() isn't just a stub */
9252 status = pthread_create(&t, ATTR, task, NULL);
9253 if( status ) exit( status );
9255 /* make sure pthread_detach() isn't just a stub */
9256 #if HAVE_PTHREADS_D4
9257 status = pthread_detach( &t );
9259 status = pthread_detach( t );
9262 #ifdef HAVE_LINUX_THREADS
9263 pthread_kill_other_threads_np();
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9273 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9289 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9291 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9292 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9293 ol_link_threads=posix
9297 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9298 if test "$ol_link_threads" = no ; then
9299 # try -lpthreads -lmach -lexc
9300 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9301 echo "configure:9302: checking for pthread link with -lpthreads -lmach -lexc" >&5
9302 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9308 LIBS="-lpthreads -lmach -lexc $LIBS"
9310 if test "$cross_compiling" = yes; then
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 /* pthread test headers */
9315 #include <pthread.h>
9317 #define NULL (void*)0
9320 static void *task(p)
9323 return (void *) (p == NULL);
9328 /* pthread test function */
9331 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9332 /* This system (e.g. AIX) defaults detached; must override */
9333 pthread_attr_t attr;
9335 status = pthread_attr_init(&attr);
9336 if( status ) exit( status );
9338 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9339 if( status ) exit( status );
9343 #if HAVE_PTHREADS_D4
9344 #define ATTR pthread_attr_default
9349 /* make sure pthread_create() isn't just a stub */
9350 status = pthread_create(&t, ATTR, task, NULL);
9351 if( status ) exit( status );
9353 /* make sure pthread_detach() isn't just a stub */
9354 #if HAVE_PTHREADS_D4
9355 status = pthread_detach( &t );
9357 status = pthread_detach( t );
9360 #ifdef HAVE_LINUX_THREADS
9361 pthread_kill_other_threads_np();
9368 if { (eval echo configure:9369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9370 ol_cv_pthread_lpthreads_lmach_lexc=yes
9372 echo "configure: failed program was:" >&5
9373 cat conftest.$ac_ext >&5
9375 ol_cv_pthread_lpthreads_lmach_lexc=no
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 /* pthread test headers */
9383 #include <pthread.h>
9385 #define NULL (void*)0
9388 static void *task(p)
9391 return (void *) (p == NULL);
9395 int main(argc, argv)
9400 /* pthread test function */
9403 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9404 /* This system (e.g. AIX) defaults detached; must override */
9405 pthread_attr_t attr;
9407 status = pthread_attr_init(&attr);
9408 if( status ) exit( status );
9410 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9411 if( status ) exit( status );
9415 #if HAVE_PTHREADS_D4
9416 #define ATTR pthread_attr_default
9421 /* make sure pthread_create() isn't just a stub */
9422 status = pthread_create(&t, ATTR, task, NULL);
9423 if( status ) exit( status );
9425 /* make sure pthread_detach() isn't just a stub */
9426 #if HAVE_PTHREADS_D4
9427 status = pthread_detach( &t );
9429 status = pthread_detach( t );
9432 #ifdef HAVE_LINUX_THREADS
9433 pthread_kill_other_threads_np();
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9443 ol_cv_pthread_lpthreads_lmach_lexc=yes
9445 echo "configure: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9448 ol_cv_pthread_lpthreads_lmach_lexc=no
9459 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9461 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9462 ol_link_pthreads="-lpthreads -lmach -lexc"
9463 ol_link_threads=posix
9467 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9468 if test "$ol_link_threads" = no ; then
9469 # try -lpthreads -lexc
9470 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9471 echo "configure:9472: checking for pthread link with -lpthreads -lexc" >&5
9472 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9478 LIBS="-lpthreads -lexc $LIBS"
9480 if test "$cross_compiling" = yes; then
9481 cat > conftest.$ac_ext <<EOF
9482 #line 9483 "configure"
9483 #include "confdefs.h"
9484 /* pthread test headers */
9485 #include <pthread.h>
9487 #define NULL (void*)0
9490 static void *task(p)
9493 return (void *) (p == NULL);
9498 /* pthread test function */
9501 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9502 /* This system (e.g. AIX) defaults detached; must override */
9503 pthread_attr_t attr;
9505 status = pthread_attr_init(&attr);
9506 if( status ) exit( status );
9508 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9509 if( status ) exit( status );
9513 #if HAVE_PTHREADS_D4
9514 #define ATTR pthread_attr_default
9519 /* make sure pthread_create() isn't just a stub */
9520 status = pthread_create(&t, ATTR, task, NULL);
9521 if( status ) exit( status );
9523 /* make sure pthread_detach() isn't just a stub */
9524 #if HAVE_PTHREADS_D4
9525 status = pthread_detach( &t );
9527 status = pthread_detach( t );
9530 #ifdef HAVE_LINUX_THREADS
9531 pthread_kill_other_threads_np();
9538 if { (eval echo configure:9539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9540 ol_cv_pthread_lpthreads_lexc=yes
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 ol_cv_pthread_lpthreads_lexc=no
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 /* pthread test headers */
9553 #include <pthread.h>
9555 #define NULL (void*)0
9558 static void *task(p)
9561 return (void *) (p == NULL);
9565 int main(argc, argv)
9570 /* pthread test function */
9573 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9574 /* This system (e.g. AIX) defaults detached; must override */
9575 pthread_attr_t attr;
9577 status = pthread_attr_init(&attr);
9578 if( status ) exit( status );
9580 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9581 if( status ) exit( status );
9585 #if HAVE_PTHREADS_D4
9586 #define ATTR pthread_attr_default
9591 /* make sure pthread_create() isn't just a stub */
9592 status = pthread_create(&t, ATTR, task, NULL);
9593 if( status ) exit( status );
9595 /* make sure pthread_detach() isn't just a stub */
9596 #if HAVE_PTHREADS_D4
9597 status = pthread_detach( &t );
9599 status = pthread_detach( t );
9602 #ifdef HAVE_LINUX_THREADS
9603 pthread_kill_other_threads_np();
9611 if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9613 ol_cv_pthread_lpthreads_lexc=yes
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9618 ol_cv_pthread_lpthreads_lexc=no
9629 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9631 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9632 ol_link_pthreads="-lpthreads -lexc"
9633 ol_link_threads=posix
9638 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9639 if test "$ol_link_threads" = no ; then
9641 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9642 echo "configure:9643: checking for pthread link with -lpthreads" >&5
9643 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9644 echo $ac_n "(cached) $ac_c" 1>&6
9649 LIBS="-lpthreads $LIBS"
9651 if test "$cross_compiling" = yes; then
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 /* pthread test headers */
9656 #include <pthread.h>
9658 #define NULL (void*)0
9661 static void *task(p)
9664 return (void *) (p == NULL);
9669 /* pthread test function */
9672 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9673 /* This system (e.g. AIX) defaults detached; must override */
9674 pthread_attr_t attr;
9676 status = pthread_attr_init(&attr);
9677 if( status ) exit( status );
9679 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9680 if( status ) exit( status );
9684 #if HAVE_PTHREADS_D4
9685 #define ATTR pthread_attr_default
9690 /* make sure pthread_create() isn't just a stub */
9691 status = pthread_create(&t, ATTR, task, NULL);
9692 if( status ) exit( status );
9694 /* make sure pthread_detach() isn't just a stub */
9695 #if HAVE_PTHREADS_D4
9696 status = pthread_detach( &t );
9698 status = pthread_detach( t );
9701 #ifdef HAVE_LINUX_THREADS
9702 pthread_kill_other_threads_np();
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711 ol_cv_pthread_lib_lpthreads=yes
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 ol_cv_pthread_lib_lpthreads=no
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 /* pthread test headers */
9724 #include <pthread.h>
9726 #define NULL (void*)0
9729 static void *task(p)
9732 return (void *) (p == NULL);
9736 int main(argc, argv)
9741 /* pthread test function */
9744 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9745 /* This system (e.g. AIX) defaults detached; must override */
9746 pthread_attr_t attr;
9748 status = pthread_attr_init(&attr);
9749 if( status ) exit( status );
9751 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9752 if( status ) exit( status );
9756 #if HAVE_PTHREADS_D4
9757 #define ATTR pthread_attr_default
9762 /* make sure pthread_create() isn't just a stub */
9763 status = pthread_create(&t, ATTR, task, NULL);
9764 if( status ) exit( status );
9766 /* make sure pthread_detach() isn't just a stub */
9767 #if HAVE_PTHREADS_D4
9768 status = pthread_detach( &t );
9770 status = pthread_detach( t );
9773 #ifdef HAVE_LINUX_THREADS
9774 pthread_kill_other_threads_np();
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9784 ol_cv_pthread_lib_lpthreads=yes
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9789 ol_cv_pthread_lib_lpthreads=no
9800 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9802 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9803 ol_link_pthreads="-lpthreads"
9804 ol_link_threads=posix
9809 if test $ol_link_threads != no ; then
9810 cat >> confdefs.h <<\EOF
9811 #define HAVE_PTHREADS 1
9815 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9817 save_CPPFLAGS="$CPPFLAGS"
9819 LIBS="$LTHREAD_LIBS $LIBS"
9821 for ac_func in sched_yield pthread_yield
9823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9824 echo "configure:9825: checking for $ac_func" >&5
9825 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char $ac_func(); below. */
9834 /* Override any gcc2 internal prototype to avoid an error. */
9835 /* We use char because int might match the return type of a gcc2
9836 builtin and then its argument prototype would still apply. */
9842 /* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
9845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 eval "ac_cv_func_$ac_func=yes"
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 eval "ac_cv_func_$ac_func=no"
9865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9866 echo "$ac_t""yes" 1>&6
9867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9868 cat >> confdefs.h <<EOF
9869 #define $ac_tr_func 1
9873 echo "$ac_t""no" 1>&6
9878 if test $ac_cv_func_sched_yield = no -a \
9879 $ac_cv_func_pthread_yield = no ; then
9880 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9881 echo "configure:9882: checking for sched_yield in -lrt" >&5
9882 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9886 ac_save_LIBS="$LIBS"
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9891 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9900 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 eval "ac_cv_lib_$ac_lib_var=yes"
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9907 eval "ac_cv_lib_$ac_lib_var=no"
9910 LIBS="$ac_save_LIBS"
9913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_SCHED_YIELD 1
9920 ac_cv_func_sched_yield=yes
9922 echo "$ac_t""no" 1>&6
9923 ac_cv_func_sched_yield=no
9927 if test $ac_cv_func_sched_yield = no -a \
9928 $ac_cv_func_pthread_yield = no ; then
9929 for ac_func in thr_yield
9931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9932 echo "configure:9933: checking for $ac_func" >&5
9933 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char $ac_func(); below. */
9942 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9950 /* The GNU C library defines this for functions which it implements
9951 to always fail with ENOSYS. Some functions are actually named
9952 something starting with __ and the normal name is an alias. */
9953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 eval "ac_cv_func_$ac_func=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_func_$ac_func=no"
9973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9974 echo "$ac_t""yes" 1>&6
9975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9976 cat >> confdefs.h <<EOF
9977 #define $ac_tr_func 1
9981 echo "$ac_t""no" 1>&6
9986 if test $ac_cv_func_sched_yield = no -a \
9987 $ac_cv_func_pthread_yield = no -a \
9988 "$ac_cv_func_thr_yield" = no ; then
9989 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9992 for ac_func in pthread_kill pthread_rwlock_destroy
9994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9995 echo "configure:9996: checking for $ac_func" >&5
9996 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char $ac_func(); below. */
10004 #include <assert.h>
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 eval "ac_cv_func_$ac_func=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_func_$ac_func=no"
10036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10039 cat >> confdefs.h <<EOF
10040 #define $ac_tr_func 1
10044 echo "$ac_t""no" 1>&6
10049 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10050 echo "configure:10051: checking for pthread_detach with <pthread.h>" >&5
10051 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10052 echo $ac_n "(cached) $ac_c" 1>&6
10055 cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10059 #include <pthread.h>
10061 #define NULL (void*)0
10065 pthread_detach(NULL);
10068 if { (eval echo configure:10069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10070 ol_cv_func_pthread_detach=yes
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10075 ol_cv_func_pthread_detach=no
10081 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10083 if test $ol_cv_func_pthread_detach = no ; then
10084 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_PTHREAD_DETACH 1
10093 pthread_setconcurrency \
10094 pthread_getconcurrency \
10095 thr_setconcurrency \
10096 thr_getconcurrency \
10099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10100 echo "configure:10101: checking for $ac_func" >&5
10101 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10104 cat > conftest.$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func(); below. */
10109 #include <assert.h>
10110 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10118 /* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10129 if { (eval echo configure:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10131 eval "ac_cv_func_$ac_func=yes"
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10136 eval "ac_cv_func_$ac_func=no"
10141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10142 echo "$ac_t""yes" 1>&6
10143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10144 cat >> confdefs.h <<EOF
10145 #define $ac_tr_func 1
10149 echo "$ac_t""no" 1>&6
10155 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10156 echo "configure:10157: checking for pthread_kill_other_threads_np" >&5
10157 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10158 echo $ac_n "(cached) $ac_c" 1>&6
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 /* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char pthread_kill_other_threads_np(); below. */
10165 #include <assert.h>
10166 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char pthread_kill_other_threads_np();
10174 /* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10180 f = pthread_kill_other_threads_np;
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10192 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10197 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10201 echo "$ac_t""no" 1>&6
10204 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10205 echo "configure:10206: checking for LinuxThreads implementation" >&5
10206 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10209 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10212 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10217 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10218 echo "configure:10219: checking for LinuxThreads consistency" >&5
10219 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10220 echo $ac_n "(cached) $ac_c" 1>&6
10223 if test $ol_cv_header_linux_threads = yes -a \
10224 $ol_cv_sys_linux_threads = yes; then
10225 ol_cv_linux_threads=yes
10226 elif test $ol_cv_header_linux_threads = no -a \
10227 $ol_cv_sys_linux_threads = no; then
10228 ol_cv_linux_threads=no
10230 ol_cv_linux_threads=error
10235 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10238 if test $ol_cv_linux_threads = error; then
10239 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10242 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10243 echo "configure:10244: checking if pthread_create() works" >&5
10244 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10248 if test "$cross_compiling" = yes; then
10249 ol_cv_pthread_create_works=yes
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 /* pthread test headers */
10255 #include <pthread.h>
10257 #define NULL (void*)0
10260 static void *task(p)
10263 return (void *) (p == NULL);
10267 int main(argc, argv)
10272 /* pthread test function */
10275 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10276 /* This system (e.g. AIX) defaults detached; must override */
10277 pthread_attr_t attr;
10279 status = pthread_attr_init(&attr);
10280 if( status ) exit( status );
10282 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10283 if( status ) exit( status );
10287 #if HAVE_PTHREADS_D4
10288 #define ATTR pthread_attr_default
10293 /* make sure pthread_create() isn't just a stub */
10294 status = pthread_create(&t, ATTR, task, NULL);
10295 if( status ) exit( status );
10297 /* make sure pthread_detach() isn't just a stub */
10298 #if HAVE_PTHREADS_D4
10299 status = pthread_detach( &t );
10301 status = pthread_detach( t );
10304 #ifdef HAVE_LINUX_THREADS
10305 pthread_kill_other_threads_np();
10313 if { (eval echo configure:10314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10315 ol_cv_pthread_create_works=yes
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 ol_cv_pthread_create_works=no
10327 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10329 if test $ol_cv_pthread_create_works = no ; then
10330 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10333 if test $ol_with_yielding_select = auto ; then
10334 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10335 echo "configure:10336: checking if select yields when using pthreads" >&5
10336 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10340 if test "$cross_compiling" = yes; then
10341 ol_cv_pthread_select_yields=cross
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10347 #include <sys/types.h>
10348 #include <sys/time.h>
10349 #include <unistd.h>
10350 #include <pthread.h>
10352 #define NULL (void*) 0
10355 static int fildes[2];
10357 static void *task(p)
10369 FD_SET(fildes[0], &rfds);
10371 /* we're not interested in any fds */
10372 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10379 exit(0); /* if we exit here, the select blocked the whole process */
10382 int main(argc, argv)
10388 /* create a pipe to select */
10389 if(pipe(&fildes[0])) {
10394 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10395 (void) pthread_setconcurrency(2);
10397 #ifdef HAVE_THR_SETCONCURRENCY
10398 /* Set Solaris LWP concurrency to 2 */
10399 thr_setconcurrency(2);
10403 #if HAVE_PTHREADS_D4
10404 pthread_create(&t, pthread_attr_default, task, NULL);
10406 pthread_create(&t, NULL, task, NULL);
10409 #if HAVE_SCHED_YIELD
10410 sched_yield(); /* make sure task runs first */
10412 #ifdef HAVE_PTHREAD_YIELD
10413 pthread_yield(); /* make sure task runs first */
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10422 ol_cv_pthread_select_yields=no
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10427 ol_cv_pthread_select_yields=yes
10434 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10436 if test $ol_cv_pthread_select_yields = cross ; then
10437 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10440 if test $ol_cv_pthread_select_yields = yes ; then
10441 ol_with_yielding_select=yes
10445 CPPFLAGS="$save_CPPFLAGS"
10448 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10452 if test $ol_with_threads = posix ; then
10453 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10457 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10458 -o $ol_with_threads = mach ; then
10460 for ac_hdr in mach/cthreads.h
10462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10464 echo "configure:10465: checking for $ac_hdr" >&5
10465 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10474 { (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10476 if test -z "$ac_err"; then
10478 eval "ac_cv_header_$ac_safe=yes"
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10484 eval "ac_cv_header_$ac_safe=no"
10488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10489 echo "$ac_t""yes" 1>&6
10490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10491 cat >> confdefs.h <<EOF
10492 #define $ac_tr_hdr 1
10496 echo "$ac_t""no" 1>&6
10500 if test $ac_cv_header_mach_cthreads_h = yes ; then
10501 ol_with_threads=found
10503 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10504 echo "configure:10505: checking for cthread_fork" >&5
10505 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char cthread_fork(); below. */
10513 #include <assert.h>
10514 /* Override any gcc2 internal prototype to avoid an error. */
10515 /* We use char because int might match the return type of a gcc2
10516 builtin and then its argument prototype would still apply. */
10517 char cthread_fork();
10522 /* The GNU C library defines this for functions which it implements
10523 to always fail with ENOSYS. Some functions are actually named
10524 something starting with __ and the normal name is an alias. */
10525 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10533 if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10535 eval "ac_cv_func_cthread_fork=yes"
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10540 eval "ac_cv_func_cthread_fork=no"
10545 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10546 echo "$ac_t""yes" 1>&6
10547 ol_link_threads=yes
10549 echo "$ac_t""no" 1>&6
10553 if test $ol_link_threads = no ; then
10554 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10555 echo "configure:10556: checking for cthread_fork with -all_load" >&5
10556 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10561 LIBS="-all_load $LIBS"
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 #include <mach/cthreads.h>
10568 cthread_fork((void *)0, (void *)0);
10572 if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10574 ol_cv_cthread_all_load=yes
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10579 ol_cv_cthread_all_load=no
10586 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10588 if test $ol_cv_cthread_all_load = yes ; then
10589 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10590 ol_link_threads=mach
10594 if test $ol_link_threads != no ; then
10595 : check for cthread specific functionality here
10596 cat >> confdefs.h <<\EOF
10597 #define HAVE_MACH_CTHREADS 1
10601 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10605 if test $ol_with_threads = mach ; then
10606 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10610 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10611 -o $ol_with_threads = pth ; then
10613 for ac_hdr in pth.h
10615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10617 echo "configure:10618: checking for $ac_hdr" >&5
10618 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10627 { (eval echo configure:10628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10629 if test -z "$ac_err"; then
10631 eval "ac_cv_header_$ac_safe=yes"
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 eval "ac_cv_header_$ac_safe=no"
10641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10642 echo "$ac_t""yes" 1>&6
10643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10644 cat >> confdefs.h <<EOF
10645 #define $ac_tr_hdr 1
10649 echo "$ac_t""no" 1>&6
10654 if test $ac_cv_header_pth_h = yes ; then
10655 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10656 echo "configure:10657: checking for pth_version in -lpth" >&5
10657 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10661 ac_save_LIBS="$LIBS"
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char pth_version();
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_lib_$ac_lib_var=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_lib_$ac_lib_var=no"
10685 LIBS="$ac_save_LIBS"
10688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10692 echo "$ac_t""no" 1>&6
10697 if test $have_pth = yes ; then
10698 cat >> confdefs.h <<\EOF
10699 #define HAVE_GNU_PTH 1
10702 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10703 ol_link_threads=pth
10705 if test $ol_with_yielding_select = auto ; then
10706 ol_with_yielding_select=yes
10712 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10713 -o $ol_with_threads = lwp ; then
10715 for ac_hdr in thread.h synch.h
10717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10719 echo "configure:10720: checking for $ac_hdr" >&5
10720 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10723 cat > conftest.$ac_ext <<EOF
10724 #line 10725 "configure"
10725 #include "confdefs.h"
10728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10729 { (eval echo configure:10730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10731 if test -z "$ac_err"; then
10733 eval "ac_cv_header_$ac_safe=yes"
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10739 eval "ac_cv_header_$ac_safe=no"
10743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10744 echo "$ac_t""yes" 1>&6
10745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10746 cat >> confdefs.h <<EOF
10747 #define $ac_tr_hdr 1
10751 echo "$ac_t""no" 1>&6
10755 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10756 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10757 echo "configure:10758: checking for thr_create in -lthread" >&5
10758 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10759 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10762 ac_save_LIBS="$LIBS"
10763 LIBS="-lthread $LIBS"
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 eval "ac_cv_lib_$ac_lib_var=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_lib_$ac_lib_var=no"
10786 LIBS="$ac_save_LIBS"
10789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10790 echo "$ac_t""yes" 1>&6
10793 echo "$ac_t""no" 1>&6
10798 if test $have_thr = yes ; then
10799 cat >> confdefs.h <<\EOF
10803 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10804 ol_link_threads=thr
10806 if test $ol_with_yielding_select = auto ; then
10807 ol_with_yielding_select=yes
10811 thr_setconcurrency \
10812 thr_getconcurrency \
10815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10816 echo "configure:10817: checking for $ac_func" >&5
10817 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func(); below. */
10825 #include <assert.h>
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847 eval "ac_cv_func_$ac_func=yes"
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 eval "ac_cv_func_$ac_func=no"
10857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_func 1
10865 echo "$ac_t""no" 1>&6
10872 for ac_hdr in lwp/lwp.h
10874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10876 echo "configure:10877: checking for $ac_hdr" >&5
10877 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10886 { (eval echo configure:10887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10888 if test -z "$ac_err"; then
10890 eval "ac_cv_header_$ac_safe=yes"
10893 echo "configure: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10896 eval "ac_cv_header_$ac_safe=no"
10900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10901 echo "$ac_t""yes" 1>&6
10902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10903 cat >> confdefs.h <<EOF
10904 #define $ac_tr_hdr 1
10908 echo "$ac_t""no" 1>&6
10912 if test $ac_cv_header_lwp_lwp_h = yes ; then
10913 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10914 echo "configure:10915: checking for lwp_create in -llwp" >&5
10915 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10916 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10919 ac_save_LIBS="$LIBS"
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10924 /* Override any gcc2 internal prototype to avoid an error. */
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10935 eval "ac_cv_lib_$ac_lib_var=yes"
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10940 eval "ac_cv_lib_$ac_lib_var=no"
10943 LIBS="$ac_save_LIBS"
10946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10947 echo "$ac_t""yes" 1>&6
10950 echo "$ac_t""no" 1>&6
10955 if test $have_lwp = yes ; then
10956 cat >> confdefs.h <<\EOF
10960 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10961 ol_link_threads=lwp
10963 if test $ol_with_yielding_select = auto ; then
10964 ol_with_yielding_select=no
10970 if test $ol_with_yielding_select = yes ; then
10971 cat >> confdefs.h <<\EOF
10972 #define HAVE_YIELDING_SELECT 1
10977 if test $ol_with_threads = manual ; then
10978 ol_link_threads=yes
10980 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10982 for ac_hdr in pthread.h sched.h
10984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10986 echo "configure:10987: checking for $ac_hdr" >&5
10987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10996 { (eval echo configure:10997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10998 if test -z "$ac_err"; then
11000 eval "ac_cv_header_$ac_safe=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_header_$ac_safe=no"
11010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11013 cat >> confdefs.h <<EOF
11014 #define $ac_tr_hdr 1
11018 echo "$ac_t""no" 1>&6
11022 for ac_func in sched_yield pthread_yield
11024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11025 echo "configure:11026: checking for $ac_func" >&5
11026 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func(); below. */
11034 #include <assert.h>
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11043 /* The GNU C library defines this for functions which it implements
11044 to always fail with ENOSYS. Some functions are actually named
11045 something starting with __ and the normal name is an alias. */
11046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11056 eval "ac_cv_func_$ac_func=yes"
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 eval "ac_cv_func_$ac_func=no"
11066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11067 echo "$ac_t""yes" 1>&6
11068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11069 cat >> confdefs.h <<EOF
11070 #define $ac_tr_func 1
11074 echo "$ac_t""no" 1>&6
11079 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11080 echo "configure:11081: checking for LinuxThreads pthread.h" >&5
11081 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11084 cat > conftest.$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11087 #include <pthread.h>
11089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11090 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11092 ol_cv_header_linux_threads=yes
11095 ol_cv_header_linux_threads=no
11102 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11103 if test $ol_cv_header_linux_threads = yes; then
11104 cat >> confdefs.h <<\EOF
11105 #define HAVE_LINUX_THREADS 1
11111 for ac_hdr in mach/cthreads.h
11113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11115 echo "configure:11116: checking for $ac_hdr" >&5
11116 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11119 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11125 { (eval echo configure:11126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11127 if test -z "$ac_err"; then
11129 eval "ac_cv_header_$ac_safe=yes"
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 eval "ac_cv_header_$ac_safe=no"
11139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_hdr 1
11147 echo "$ac_t""no" 1>&6
11151 for ac_hdr in lwp/lwp.h
11153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11155 echo "configure:11156: checking for $ac_hdr" >&5
11156 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11165 { (eval echo configure:11166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11167 if test -z "$ac_err"; then
11169 eval "ac_cv_header_$ac_safe=yes"
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11175 eval "ac_cv_header_$ac_safe=no"
11179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11182 cat >> confdefs.h <<EOF
11183 #define $ac_tr_hdr 1
11187 echo "$ac_t""no" 1>&6
11191 for ac_hdr in thread.h synch.h
11193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11195 echo "configure:11196: checking for $ac_hdr" >&5
11196 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11205 { (eval echo configure:11206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11207 if test -z "$ac_err"; then
11209 eval "ac_cv_header_$ac_safe=yes"
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11215 eval "ac_cv_header_$ac_safe=no"
11219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11222 cat >> confdefs.h <<EOF
11223 #define $ac_tr_hdr 1
11227 echo "$ac_t""no" 1>&6
11233 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11234 cat >> confdefs.h <<\EOF
11235 #define REENTRANT 1
11238 cat >> confdefs.h <<\EOF
11239 #define _REENTRANT 1
11242 cat >> confdefs.h <<\EOF
11243 #define THREAD_SAFE 1
11246 cat >> confdefs.h <<\EOF
11247 #define _THREAD_SAFE 1
11250 cat >> confdefs.h <<\EOF
11251 #define THREADSAFE 1
11254 cat >> confdefs.h <<\EOF
11255 #define _THREADSAFE 1
11258 cat >> confdefs.h <<\EOF
11259 #define _SGI_MP_SOURCE 1
11263 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11264 echo "configure:11265: checking for thread specific errno" >&5
11265 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11277 if { (eval echo configure:11278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 ol_cv_errno_thread_specific=yes
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 ol_cv_errno_thread_specific=no
11290 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11292 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11293 echo "configure:11294: checking for thread specific h_errno" >&5
11294 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11298 cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11306 if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 ol_cv_h_errno_thread_specific=yes
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11313 ol_cv_h_errno_thread_specific=no
11319 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11321 if test $ol_cv_errno_thread_specific != yes \
11322 -o $ol_cv_h_errno_thread_specific != yes ; then
11323 LIBS="$LTHREAD_LIBS $LIBS"
11329 if test $ol_link_threads = no ; then
11330 if test $ol_with_threads = yes ; then
11331 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11334 if test $ol_with_threads = auto ; then
11335 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11339 cat >> confdefs.h <<\EOF
11340 #define NO_THREADS 1
11346 if test $ol_link_threads != no ; then
11347 cat >> confdefs.h <<\EOF
11348 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11355 if test $ol_with_ldbm_api = auto \
11356 -o $ol_with_ldbm_api = berkeley \
11357 -o $ol_with_ldbm_api = bcompat ; then
11359 if test $ol_with_ldbm_api = bcompat; then \
11360 ol_cv_berkeley_db=no
11361 for ac_hdr in db_185.h db.h
11363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11365 echo "configure:11366: checking for $ac_hdr" >&5
11366 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11375 { (eval echo configure:11376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11377 if test -z "$ac_err"; then
11379 eval "ac_cv_header_$ac_safe=yes"
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11385 eval "ac_cv_header_$ac_safe=no"
11389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11390 echo "$ac_t""yes" 1>&6
11391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11392 cat >> confdefs.h <<EOF
11393 #define $ac_tr_hdr 1
11397 echo "$ac_t""no" 1>&6
11401 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11402 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11403 echo "configure:11404: checking if Berkeley DB header compatibility" >&5
11404 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11408 cat > conftest.$ac_ext <<EOF
11409 #line 11410 "configure"
11410 #include "confdefs.h"
11413 # include <db_185.h>
11418 /* this check could be improved */
11419 #ifndef DB_VERSION_MAJOR
11420 # define DB_VERSION_MAJOR 1
11423 #if DB_VERSION_MAJOR == 1
11428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11429 egrep "__db_version_1" >/dev/null 2>&1; then
11431 ol_cv_header_db1=yes
11434 ol_cv_header_db1=no
11440 echo "$ac_t""$ol_cv_header_db1" 1>&6
11442 if test ol_cv_header_db1=yes ; then
11444 if test $ol_cv_lib_db = no ; then
11445 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11446 echo "configure:11447: checking for Berkeley DB link (default)" >&5
11447 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11453 LIBS="$ol_DB_LIB $LIBS"
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11459 #ifdef HAVE_DB_185_H
11460 # include <db_185.h>
11465 #ifndef DB_VERSION_MAJOR
11466 # define DB_VERSION_MAJOR 1
11470 #define NULL ((void*)0)
11475 #if DB_VERSION_MAJOR > 2
11476 db_env_create( NULL, 0 );
11477 #elif DB_VERSION_MAJOR > 1
11478 db_appexit( NULL );
11480 (void) dbopen( NULL, 0, 0, 0, NULL);
11485 if { (eval echo configure:11486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11489 echo "configure: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11500 echo "$ac_t""$ol_cv_db_none" 1>&6
11502 if test $ol_cv_db_none = yes ; then
11507 if test $ol_cv_lib_db = no ; then
11508 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11509 echo "configure:11510: checking for Berkeley DB link (-ldb)" >&5
11510 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11516 LIBS="$ol_DB_LIB $LIBS"
11518 cat > conftest.$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11522 #ifdef HAVE_DB_185_H
11523 # include <db_185.h>
11528 #ifndef DB_VERSION_MAJOR
11529 # define DB_VERSION_MAJOR 1
11533 #define NULL ((void*)0)
11538 #if DB_VERSION_MAJOR > 2
11539 db_env_create( NULL, 0 );
11540 #elif DB_VERSION_MAJOR > 1
11541 db_appexit( NULL );
11543 (void) dbopen( NULL, 0, 0, 0, NULL);
11548 if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11552 echo "configure: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11563 echo "$ac_t""$ol_cv_db_db" 1>&6
11565 if test $ol_cv_db_db = yes ; then
11570 if test $ol_cv_lib_db = no ; then
11571 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11572 echo "configure:11573: checking for Berkeley DB link (-ldb3)" >&5
11573 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11574 echo $ac_n "(cached) $ac_c" 1>&6
11579 LIBS="$ol_DB_LIB $LIBS"
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11585 #ifdef HAVE_DB_185_H
11586 # include <db_185.h>
11591 #ifndef DB_VERSION_MAJOR
11592 # define DB_VERSION_MAJOR 1
11596 #define NULL ((void*)0)
11601 #if DB_VERSION_MAJOR > 2
11602 db_env_create( NULL, 0 );
11603 #elif DB_VERSION_MAJOR > 1
11604 db_appexit( NULL );
11606 (void) dbopen( NULL, 0, 0, 0, NULL);
11611 if { (eval echo configure:11612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11615 echo "configure: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11626 echo "$ac_t""$ol_cv_db_db3" 1>&6
11628 if test $ol_cv_db_db3 = yes ; then
11633 if test $ol_cv_lib_db = no ; then
11634 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11635 echo "configure:11636: checking for Berkeley DB link (-ldb2)" >&5
11636 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11637 echo $ac_n "(cached) $ac_c" 1>&6
11642 LIBS="$ol_DB_LIB $LIBS"
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11648 #ifdef HAVE_DB_185_H
11649 # include <db_185.h>
11654 #ifndef DB_VERSION_MAJOR
11655 # define DB_VERSION_MAJOR 1
11659 #define NULL ((void*)0)
11664 #if DB_VERSION_MAJOR > 2
11665 db_env_create( NULL, 0 );
11666 #elif DB_VERSION_MAJOR > 1
11667 db_appexit( NULL );
11669 (void) dbopen( NULL, 0, 0, 0, NULL);
11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 echo "configure: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11689 echo "$ac_t""$ol_cv_db_db2" 1>&6
11691 if test $ol_cv_db_db2 = yes ; then
11696 if test $ol_cv_lib_db = no ; then
11697 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11698 echo "configure:11699: checking for Berkeley DB link (-ldb1)" >&5
11699 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11700 echo $ac_n "(cached) $ac_c" 1>&6
11705 LIBS="$ol_DB_LIB $LIBS"
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11711 #ifdef HAVE_DB_185_H
11712 # include <db_185.h>
11717 #ifndef DB_VERSION_MAJOR
11718 # define DB_VERSION_MAJOR 1
11722 #define NULL ((void*)0)
11727 #if DB_VERSION_MAJOR > 2
11728 db_env_create( NULL, 0 );
11729 #elif DB_VERSION_MAJOR > 1
11730 db_appexit( NULL );
11732 (void) dbopen( NULL, 0, 0, 0, NULL);
11737 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11752 echo "$ac_t""$ol_cv_db_db1" 1>&6
11754 if test $ol_cv_db_db1 = yes ; then
11760 if test "$ol_cv_lib_db" != no ; then
11761 ol_cv_berkeley_db=yes
11767 ol_cv_berkeley_db=no
11770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11772 echo "configure:11773: checking for $ac_hdr" >&5
11773 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11776 cat > conftest.$ac_ext <<EOF
11777 #line 11778 "configure"
11778 #include "confdefs.h"
11781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11782 { (eval echo configure:11783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11784 if test -z "$ac_err"; then
11786 eval "ac_cv_header_$ac_safe=yes"
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11792 eval "ac_cv_header_$ac_safe=no"
11796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11797 echo "$ac_t""yes" 1>&6
11798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11799 cat >> confdefs.h <<EOF
11800 #define $ac_tr_hdr 1
11804 echo "$ac_t""no" 1>&6
11808 if test $ac_cv_header_db_h = yes; then
11810 if test $ol_cv_lib_db = no ; then
11811 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11812 echo "configure:11813: checking for Berkeley DB link (default)" >&5
11813 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11819 LIBS="$ol_DB_LIB $LIBS"
11821 cat > conftest.$ac_ext <<EOF
11822 #line 11823 "configure"
11823 #include "confdefs.h"
11825 #ifdef HAVE_DB_185_H
11826 # include <db_185.h>
11831 #ifndef DB_VERSION_MAJOR
11832 # define DB_VERSION_MAJOR 1
11836 #define NULL ((void*)0)
11841 #if DB_VERSION_MAJOR > 2
11842 db_env_create( NULL, 0 );
11843 #elif DB_VERSION_MAJOR > 1
11844 db_appexit( NULL );
11846 (void) dbopen( NULL, 0, 0, 0, NULL);
11851 if { (eval echo configure:11852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11855 echo "configure: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11866 echo "$ac_t""$ol_cv_db_none" 1>&6
11868 if test $ol_cv_db_none = yes ; then
11873 if test $ol_cv_lib_db = no ; then
11874 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11875 echo "configure:11876: checking for Berkeley DB link (-ldb)" >&5
11876 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
11882 LIBS="$ol_DB_LIB $LIBS"
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11888 #ifdef HAVE_DB_185_H
11889 # include <db_185.h>
11894 #ifndef DB_VERSION_MAJOR
11895 # define DB_VERSION_MAJOR 1
11899 #define NULL ((void*)0)
11904 #if DB_VERSION_MAJOR > 2
11905 db_env_create( NULL, 0 );
11906 #elif DB_VERSION_MAJOR > 1
11907 db_appexit( NULL );
11909 (void) dbopen( NULL, 0, 0, 0, NULL);
11914 if { (eval echo configure:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 echo "configure: failed program was:" >&5
11919 cat conftest.$ac_ext >&5
11929 echo "$ac_t""$ol_cv_db_db" 1>&6
11931 if test $ol_cv_db_db = yes ; then
11936 if test $ol_cv_lib_db = no ; then
11937 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11938 echo "configure:11939: checking for Berkeley DB link (-ldb3)" >&5
11939 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11945 LIBS="$ol_DB_LIB $LIBS"
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11951 #ifdef HAVE_DB_185_H
11952 # include <db_185.h>
11957 #ifndef DB_VERSION_MAJOR
11958 # define DB_VERSION_MAJOR 1
11962 #define NULL ((void*)0)
11967 #if DB_VERSION_MAJOR > 2
11968 db_env_create( NULL, 0 );
11969 #elif DB_VERSION_MAJOR > 1
11970 db_appexit( NULL );
11972 (void) dbopen( NULL, 0, 0, 0, NULL);
11977 if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11992 echo "$ac_t""$ol_cv_db_db3" 1>&6
11994 if test $ol_cv_db_db3 = yes ; then
11999 if test $ol_cv_lib_db = no ; then
12000 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12001 echo "configure:12002: checking for Berkeley DB link (-ldb2)" >&5
12002 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12008 LIBS="$ol_DB_LIB $LIBS"
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12014 #ifdef HAVE_DB_185_H
12015 # include <db_185.h>
12020 #ifndef DB_VERSION_MAJOR
12021 # define DB_VERSION_MAJOR 1
12025 #define NULL ((void*)0)
12030 #if DB_VERSION_MAJOR > 2
12031 db_env_create( NULL, 0 );
12032 #elif DB_VERSION_MAJOR > 1
12033 db_appexit( NULL );
12035 (void) dbopen( NULL, 0, 0, 0, NULL);
12040 if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12055 echo "$ac_t""$ol_cv_db_db2" 1>&6
12057 if test $ol_cv_db_db2 = yes ; then
12062 if test $ol_cv_lib_db = no ; then
12063 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12064 echo "configure:12065: checking for Berkeley DB link (-ldb1)" >&5
12065 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12066 echo $ac_n "(cached) $ac_c" 1>&6
12071 LIBS="$ol_DB_LIB $LIBS"
12073 cat > conftest.$ac_ext <<EOF
12074 #line 12075 "configure"
12075 #include "confdefs.h"
12077 #ifdef HAVE_DB_185_H
12078 # include <db_185.h>
12083 #ifndef DB_VERSION_MAJOR
12084 # define DB_VERSION_MAJOR 1
12088 #define NULL ((void*)0)
12093 #if DB_VERSION_MAJOR > 2
12094 db_env_create( NULL, 0 );
12095 #elif DB_VERSION_MAJOR > 1
12096 db_appexit( NULL );
12098 (void) dbopen( NULL, 0, 0, 0, NULL);
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12118 echo "$ac_t""$ol_cv_db_db1" 1>&6
12120 if test $ol_cv_db_db1 = yes ; then
12126 if test "$ol_cv_lib_db" != no ; then
12127 ol_cv_berkeley_db=yes
12128 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12129 echo "configure:12130: checking for Berkeley DB thread support" >&5
12130 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12135 if test $ol_cv_lib_db != yes ; then
12136 LIBS="$ol_cv_lib_db"
12139 if test "$cross_compiling" = yes; then
12140 ol_cv_berkeley_db_thread=cross
12142 cat > conftest.$ac_ext <<EOF
12143 #line 12144 "configure"
12144 #include "confdefs.h"
12146 #ifdef HAVE_DB_185_H
12152 #define NULL ((void *)0)
12157 u_int32_t flags = DB_CREATE | DB_THREAD;
12160 #if DB_VERSION_MAJOR > 2
12161 DB_ENV *env = NULL;
12163 rc = db_env_create( &env, 0 );
12166 rc = env->open( env, NULL, NULL, flags, 0 );
12171 memset( &env, '\0', sizeof(env) );
12173 rc = db_appinit( NULL, NULL, &env, flags );
12176 db_appexit( &env );
12183 if { (eval echo configure:12184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12185 ol_cv_berkeley_db_thread=yes
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12190 ol_cv_berkeley_db_thread=no
12198 if test $ol_cv_berkeley_db_thread != no ; then
12199 cat >> confdefs.h <<\EOF
12200 #define HAVE_BERKELEY_DB_THREAD 1
12207 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12213 if test $ol_cv_berkeley_db != no ; then
12214 cat >> confdefs.h <<\EOF
12215 #define HAVE_BERKELEY_DB 1
12219 ol_link_ldbm=berkeley
12220 ol_with_ldbm_api=db
12222 if test $ol_with_ldbm_type = hash ; then
12223 cat >> confdefs.h <<\EOF
12224 #define LDBM_USE_DBHASH 1
12228 cat >> confdefs.h <<\EOF
12229 #define LDBM_USE_DBBTREE 1
12234 if test $ol_cv_lib_db != yes ; then
12235 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12240 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12241 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12242 ol_with_ldbm_api=none
12245 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12246 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12247 echo "configure:12248: checking for MDBM library" >&5
12248 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12249 echo $ac_n "(cached) $ac_c" 1>&6
12252 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12253 echo "configure:12254: checking for mdbm_set_chain" >&5
12254 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char mdbm_set_chain(); below. */
12262 #include <assert.h>
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12266 char mdbm_set_chain();
12271 /* The GNU C library defines this for functions which it implements
12272 to always fail with ENOSYS. Some functions are actually named
12273 something starting with __ and the normal name is an alias. */
12274 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12277 f = mdbm_set_chain;
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12284 eval "ac_cv_func_mdbm_set_chain=yes"
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12289 eval "ac_cv_func_mdbm_set_chain=no"
12294 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12295 echo "$ac_t""yes" 1>&6
12298 echo "$ac_t""no" 1>&6
12300 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12301 echo "configure:12302: checking for mdbm_set_chain in -lmdbm" >&5
12302 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12306 ac_save_LIBS="$LIBS"
12307 LIBS="-lmdbm $LIBS"
12308 cat > conftest.$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12311 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314 char mdbm_set_chain();
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12322 eval "ac_cv_lib_$ac_lib_var=yes"
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12327 eval "ac_cv_lib_$ac_lib_var=no"
12330 LIBS="$ac_save_LIBS"
12333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12334 echo "$ac_t""yes" 1>&6
12335 ol_cv_lib_mdbm=-lmdbm
12337 echo "$ac_t""no" 1>&6
12348 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12351 for ac_hdr in mdbm.h
12353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12355 echo "configure:12356: checking for $ac_hdr" >&5
12356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12357 echo $ac_n "(cached) $ac_c" 1>&6
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12365 { (eval echo configure:12366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12367 if test -z "$ac_err"; then
12369 eval "ac_cv_header_$ac_safe=yes"
12372 echo "configure: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12375 eval "ac_cv_header_$ac_safe=no"
12379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12380 echo "$ac_t""yes" 1>&6
12381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12382 cat >> confdefs.h <<EOF
12383 #define $ac_tr_hdr 1
12387 echo "$ac_t""no" 1>&6
12391 echo $ac_n "checking for db""... $ac_c" 1>&6
12392 echo "configure:12393: checking for db" >&5
12393 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12394 echo $ac_n "(cached) $ac_c" 1>&6
12397 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12405 echo "$ac_t""$ol_cv_mdbm" 1>&6
12406 if test $ol_cv_mdbm = yes ; then
12407 cat >> confdefs.h <<\EOF
12408 #define HAVE_MDBM 1
12414 if test $ol_cv_mdbm = yes ; then
12416 ol_with_ldbm_api=mdbm
12417 if test $ol_cv_lib_mdbm != yes ; then
12418 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12423 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12424 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12425 echo "configure:12426: checking for GDBM library" >&5
12426 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12427 echo $ac_n "(cached) $ac_c" 1>&6
12430 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12431 echo "configure:12432: checking for gdbm_open" >&5
12432 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12433 echo $ac_n "(cached) $ac_c" 1>&6
12435 cat > conftest.$ac_ext <<EOF
12436 #line 12437 "configure"
12437 #include "confdefs.h"
12438 /* System header to define __stub macros and hopefully few prototypes,
12439 which can conflict with char gdbm_open(); below. */
12440 #include <assert.h>
12441 /* Override any gcc2 internal prototype to avoid an error. */
12442 /* We use char because int might match the return type of a gcc2
12443 builtin and then its argument prototype would still apply. */
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12460 if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 eval "ac_cv_func_gdbm_open=yes"
12464 echo "configure: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12467 eval "ac_cv_func_gdbm_open=no"
12472 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12473 echo "$ac_t""yes" 1>&6
12476 echo "$ac_t""no" 1>&6
12478 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12479 echo "configure:12480: checking for gdbm_open in -lgdbm" >&5
12480 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12484 ac_save_LIBS="$LIBS"
12485 LIBS="-lgdbm $LIBS"
12486 cat > conftest.$ac_ext <<EOF
12487 #line 12488 "configure"
12488 #include "confdefs.h"
12489 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12498 if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12500 eval "ac_cv_lib_$ac_lib_var=yes"
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12505 eval "ac_cv_lib_$ac_lib_var=no"
12508 LIBS="$ac_save_LIBS"
12511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12512 echo "$ac_t""yes" 1>&6
12513 ol_cv_lib_gdbm=-lgdbm
12515 echo "$ac_t""no" 1>&6
12526 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12529 for ac_hdr in gdbm.h
12531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12533 echo "configure:12534: checking for $ac_hdr" >&5
12534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12535 echo $ac_n "(cached) $ac_c" 1>&6
12537 cat > conftest.$ac_ext <<EOF
12538 #line 12539 "configure"
12539 #include "confdefs.h"
12542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12543 { (eval echo configure:12544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12545 if test -z "$ac_err"; then
12547 eval "ac_cv_header_$ac_safe=yes"
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 eval "ac_cv_header_$ac_safe=no"
12557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12558 echo "$ac_t""yes" 1>&6
12559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12560 cat >> confdefs.h <<EOF
12561 #define $ac_tr_hdr 1
12565 echo "$ac_t""no" 1>&6
12569 echo $ac_n "checking for db""... $ac_c" 1>&6
12570 echo "configure:12571: checking for db" >&5
12571 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12572 echo $ac_n "(cached) $ac_c" 1>&6
12575 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12583 echo "$ac_t""$ol_cv_gdbm" 1>&6
12584 if test $ol_cv_gdbm = yes ; then
12585 cat >> confdefs.h <<\EOF
12586 #define HAVE_GDBM 1
12592 if test $ol_cv_gdbm = yes ; then
12594 ol_with_ldbm_api=gdbm
12596 if test $ol_cv_lib_gdbm != yes ; then
12597 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12602 if test $ol_with_ldbm_api = ndbm ; then
12603 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12604 echo "configure:12605: checking for NDBM library" >&5
12605 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12606 echo $ac_n "(cached) $ac_c" 1>&6
12609 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12610 echo "configure:12611: checking for dbm_open" >&5
12611 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* System header to define __stub macros and hopefully few prototypes,
12618 which can conflict with char dbm_open(); below. */
12619 #include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error. */
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12628 /* The GNU C library defines this for functions which it implements
12629 to always fail with ENOSYS. Some functions are actually named
12630 something starting with __ and the normal name is an alias. */
12631 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12639 if { (eval echo configure:12640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12641 eval "ac_cv_func_dbm_open=yes"
12643 echo "configure: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12646 eval "ac_cv_func_dbm_open=no"
12651 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12652 echo "$ac_t""yes" 1>&6
12655 echo "$ac_t""no" 1>&6
12657 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12658 echo "configure:12659: checking for dbm_open in -lndbm" >&5
12659 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12661 echo $ac_n "(cached) $ac_c" 1>&6
12663 ac_save_LIBS="$LIBS"
12664 LIBS="-lndbm $LIBS"
12665 cat > conftest.$ac_ext <<EOF
12666 #line 12667 "configure"
12667 #include "confdefs.h"
12668 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12677 if { (eval echo configure:12678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12679 eval "ac_cv_lib_$ac_lib_var=yes"
12681 echo "configure: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12684 eval "ac_cv_lib_$ac_lib_var=no"
12687 LIBS="$ac_save_LIBS"
12690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 ol_cv_lib_ndbm=-lndbm
12694 echo "$ac_t""no" 1>&6
12696 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12697 echo "configure:12698: checking for dbm_open in -ldbm" >&5
12698 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12700 echo $ac_n "(cached) $ac_c" 1>&6
12702 ac_save_LIBS="$LIBS"
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 /* Override any gcc2 internal prototype to avoid an error. */
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 eval "ac_cv_lib_$ac_lib_var=yes"
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 eval "ac_cv_lib_$ac_lib_var=no"
12726 LIBS="$ac_save_LIBS"
12729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12730 echo "$ac_t""yes" 1>&6
12731 ol_cv_lib_ndbm=-ldbm
12733 echo "$ac_t""no" 1>&6
12746 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12749 for ac_hdr in ndbm.h
12751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12753 echo "configure:12754: checking for $ac_hdr" >&5
12754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12763 { (eval echo configure:12764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12765 if test -z "$ac_err"; then
12767 eval "ac_cv_header_$ac_safe=yes"
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12773 eval "ac_cv_header_$ac_safe=no"
12777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12778 echo "$ac_t""yes" 1>&6
12779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12780 cat >> confdefs.h <<EOF
12781 #define $ac_tr_hdr 1
12785 echo "$ac_t""no" 1>&6
12789 echo $ac_n "checking for db""... $ac_c" 1>&6
12790 echo "configure:12791: checking for db" >&5
12791 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12792 echo $ac_n "(cached) $ac_c" 1>&6
12795 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12803 echo "$ac_t""$ol_cv_ndbm" 1>&6
12804 if test $ol_cv_ndbm = yes ; then
12805 cat >> confdefs.h <<\EOF
12806 #define HAVE_NDBM 1
12812 if test $ol_cv_ndbm = yes ; then
12814 ol_with_ldbm_api=ndbm
12816 if test $ol_cv_lib_ndbm != yes ; then
12817 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12822 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12823 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12824 if test $ol_enable_ldbm = yes ; then
12825 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12828 echo "configure: warning: disabling LDBM" 1>&2
12832 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12833 LINK_BINS_DYNAMIC="yes"
12835 LINK_BINS_DYNAMIC="no"
12838 if test $ol_enable_wrappers != no ; then
12839 for ac_hdr in tcpd.h
12841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12843 echo "configure:12844: checking for $ac_hdr" >&5
12844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12853 { (eval echo configure:12854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12855 if test -z "$ac_err"; then
12857 eval "ac_cv_header_$ac_safe=yes"
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12863 eval "ac_cv_header_$ac_safe=no"
12867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12870 cat >> confdefs.h <<EOF
12871 #define $ac_tr_hdr 1
12875 echo "$ac_t""no" 1>&6
12880 if test $ac_cv_header_tcpd_h != yes ; then
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12887 int allow_severity = 0;
12888 int deny_severity = 0;
12894 if { (eval echo configure:12895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12906 if test $have_wrappers = yes ; then
12907 cat >> confdefs.h <<\EOF
12908 #define HAVE_TCPD 1
12913 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12914 echo "configure:12915: checking for main in -lnsl" >&5
12915 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12916 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12919 ac_save_LIBS="$LIBS"
12921 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure"
12923 #include "confdefs.h"
12929 if { (eval echo configure:12930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12931 eval "ac_cv_lib_$ac_lib_var=yes"
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12936 eval "ac_cv_lib_$ac_lib_var=no"
12939 LIBS="$ac_save_LIBS"
12942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12943 echo "$ac_t""yes" 1>&6
12944 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12946 cat >> confdefs.h <<EOF
12947 #define $ac_tr_lib 1
12953 echo "$ac_t""no" 1>&6
12957 echo "configure: warning: could not find -lwrap" 1>&2
12958 if test $ol_enable_wrappers = yes ; then
12959 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12962 echo "configure: warning: disabling wrappers support" 1>&2
12963 ol_enable_wrappers=no
12968 if test $ol_enable_syslog != no ; then
12969 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12970 echo "configure:12971: checking for openlog" >&5
12971 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 /* System header to define __stub macros and hopefully few prototypes,
12978 which can conflict with char openlog(); below. */
12979 #include <assert.h>
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 /* We use char because int might match the return type of a gcc2
12982 builtin and then its argument prototype would still apply. */
12988 /* The GNU C library defines this for functions which it implements
12989 to always fail with ENOSYS. Some functions are actually named
12990 something starting with __ and the normal name is an alias. */
12991 #if defined (__stub_openlog) || defined (__stub___openlog)
12999 if { (eval echo configure:13000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13001 eval "ac_cv_func_openlog=yes"
13003 echo "configure: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13006 eval "ac_cv_func_openlog=no"
13011 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13012 echo "$ac_t""yes" 1>&6
13015 echo "$ac_t""no" 1>&6
13018 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13019 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13021 ol_enable_syslog=$ac_cv_func_openlog
13024 if test $ol_enable_tcl != no ; then
13025 for ac_hdr in tcl.h
13027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13029 echo "configure:13030: checking for $ac_hdr" >&5
13030 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13031 echo $ac_n "(cached) $ac_c" 1>&6
13033 cat > conftest.$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13039 { (eval echo configure:13040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13041 if test -z "$ac_err"; then
13043 eval "ac_cv_header_$ac_safe=yes"
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13049 eval "ac_cv_header_$ac_safe=no"
13053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13054 echo "$ac_t""yes" 1>&6
13055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13056 cat >> confdefs.h <<EOF
13057 #define $ac_tr_hdr 1
13061 echo "$ac_t""no" 1>&6
13066 if test $ac_cv_header_tcl_h != yes ; then
13069 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13070 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13071 echo "configure:13072: checking for main in -l$lib" >&5
13072 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13076 ac_save_LIBS="$LIBS"
13077 LIBS="-l$lib $LIBS"
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 eval "ac_cv_lib_$ac_lib_var=yes"
13090 echo "configure: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13093 eval "ac_cv_lib_$ac_lib_var=no"
13096 LIBS="$ac_save_LIBS"
13099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13102 if test x"$ol_with_tcl_module" = "xstatic" ; then
13103 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13105 MOD_TCL_LIB="-l${lib}"
13108 echo "$ac_t""no" 1>&6
13115 if test $have_tcl != yes ; then
13116 echo "configure: warning: could not find -ltcl" 1>&2
13117 if test $ol_enable_tcl = yes ; then
13118 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13126 for ac_hdr in termcap.h ncurses.h
13128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13130 echo "configure:13131: checking for $ac_hdr" >&5
13131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13140 { (eval echo configure:13141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13142 if test -z "$ac_err"; then
13144 eval "ac_cv_header_$ac_safe=yes"
13147 echo "configure: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13150 eval "ac_cv_header_$ac_safe=no"
13154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13157 cat >> confdefs.h <<EOF
13158 #define $ac_tr_hdr 1
13162 echo "$ac_t""no" 1>&6
13167 if test $ol_link_termcap = no ; then
13168 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13169 echo "configure:13170: checking for tputs in -ltermcap" >&5
13170 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13174 ac_save_LIBS="$LIBS"
13175 LIBS="-ltermcap $LIBS"
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 /* Override any gcc2 internal prototype to avoid an error. */
13180 /* We use char because int might match the return type of a gcc2
13181 builtin and then its argument prototype would still apply. */
13188 if { (eval echo configure:13189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13190 eval "ac_cv_lib_$ac_lib_var=yes"
13192 echo "configure: failed program was:" >&5
13193 cat conftest.$ac_ext >&5
13195 eval "ac_cv_lib_$ac_lib_var=no"
13198 LIBS="$ac_save_LIBS"
13201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13202 echo "$ac_t""yes" 1>&6
13205 echo "$ac_t""no" 1>&6
13209 if test $have_termcap = yes ; then
13210 cat >> confdefs.h <<\EOF
13211 #define HAVE_TERMCAP 1
13214 ol_link_termcap=yes
13215 TERMCAP_LIBS=-ltermcap
13219 if test $ol_link_termcap = no ; then
13220 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13221 echo "configure:13222: checking for initscr in -lncurses" >&5
13222 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13224 echo $ac_n "(cached) $ac_c" 1>&6
13226 ac_save_LIBS="$LIBS"
13227 LIBS="-lncurses $LIBS"
13228 cat > conftest.$ac_ext <<EOF
13229 #line 13230 "configure"
13230 #include "confdefs.h"
13231 /* Override any gcc2 internal prototype to avoid an error. */
13232 /* We use char because int might match the return type of a gcc2
13233 builtin and then its argument prototype would still apply. */
13240 if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13242 eval "ac_cv_lib_$ac_lib_var=yes"
13244 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13247 eval "ac_cv_lib_$ac_lib_var=no"
13250 LIBS="$ac_save_LIBS"
13253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13254 echo "$ac_t""yes" 1>&6
13257 echo "$ac_t""no" 1>&6
13261 if test $have_ncurses = yes ; then
13262 cat >> confdefs.h <<\EOF
13263 #define HAVE_NCURSES 1
13266 ol_link_termcap=yes
13267 TERMCAP_LIBS=-lncurses
13271 if test $ol_link_termcap = no ; then
13272 cat >> confdefs.h <<\EOF
13273 #define NO_TERMCAP 1
13281 if test $ol_with_cyrus_sasl != no ; then
13282 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13283 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13284 echo "configure:13285: checking for sasl.h" >&5
13285 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13286 echo $ac_n "(cached) $ac_c" 1>&6
13288 cat > conftest.$ac_ext <<EOF
13289 #line 13290 "configure"
13290 #include "confdefs.h"
13293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13294 { (eval echo configure:13295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13296 if test -z "$ac_err"; then
13298 eval "ac_cv_header_$ac_safe=yes"
13301 echo "configure: failed program was:" >&5
13302 cat conftest.$ac_ext >&5
13304 eval "ac_cv_header_$ac_safe=no"
13308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13309 echo "$ac_t""yes" 1>&6
13312 echo "$ac_t""no" 1>&6
13316 if test $ac_cv_header_sasl_h = yes ; then
13317 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13318 echo "configure:13319: checking for sasl_client_init in -lsasl" >&5
13319 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13323 ac_save_LIBS="$LIBS"
13324 LIBS="-lsasl $LIBS"
13325 cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13328 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13331 char sasl_client_init();
13337 if { (eval echo configure:13338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13339 eval "ac_cv_lib_$ac_lib_var=yes"
13341 echo "configure: failed program was:" >&5
13342 cat conftest.$ac_ext >&5
13344 eval "ac_cv_lib_$ac_lib_var=no"
13347 LIBS="$ac_save_LIBS"
13350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13351 echo "$ac_t""yes" 1>&6
13352 have_cyrus_sasl=yes
13354 echo "$ac_t""no" 1>&6
13359 if test $have_cyrus_sasl != no ; then
13361 cat >> confdefs.h <<\EOF
13362 #define HAVE_CYRUS_SASL 1
13369 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13370 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13374 if test $cross_compiling != yes ; then
13376 if test -r /dev/urandom ; then
13377 dev="/dev/urandom";
13378 elif test -r /idev/urandom ; then
13379 dev="/idev/urandom";
13380 elif test -r /dev/srandom ; then
13381 dev="/dev/srandom";
13382 elif test -r /dev/random ; then
13384 elif test -r /idev/random ; then
13385 dev="/idev/random";
13388 if test $dev != no ; then
13389 cat >> confdefs.h <<EOF
13390 #define URANDOM_DEVICE "$dev"
13397 if test $ol_with_fetch != no ; then
13399 LIBS="-lfetch -lcom_err $LIBS"
13400 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13401 echo "configure:13402: checking fetch(3) library" >&5
13402 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13410 #include <sys/param.h>
13414 struct url *u = fetchParseURL("file:///");
13417 if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419 ol_cv_lib_fetch=yes
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13429 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13431 if test $ol_cv_lib_fetch != no ; then
13432 ol_link_fetch="-lfetch -lcom_err"
13433 cat >> confdefs.h <<\EOF
13434 #define HAVE_FETCH 1
13440 if test $ol_cv_lib_fetch != no ; then
13441 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13442 ol_link_fetch=freebsd
13444 elif test $ol_with_fetch != auto ; then
13445 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13449 ol_link_readline=no
13450 if test $ol_with_readline != no ; then
13451 for ac_hdr in readline/readline.h readline/history.h
13453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13455 echo "configure:13456: checking for $ac_hdr" >&5
13456 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13465 { (eval echo configure:13466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13467 if test -z "$ac_err"; then
13469 eval "ac_cv_header_$ac_safe=yes"
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13475 eval "ac_cv_header_$ac_safe=no"
13479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13480 echo "$ac_t""yes" 1>&6
13481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13482 cat >> confdefs.h <<EOF
13483 #define $ac_tr_hdr 1
13487 echo "$ac_t""no" 1>&6
13492 if test $ac_cv_header_readline_readline_h = yes ; then
13494 LIBS="$TERMCAP_LIBS $LIBS"
13495 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13496 echo "configure:13497: checking for readline in -lreadline" >&5
13497 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13499 echo $ac_n "(cached) $ac_c" 1>&6
13501 ac_save_LIBS="$LIBS"
13502 LIBS="-lreadline $LIBS"
13503 cat > conftest.$ac_ext <<EOF
13504 #line 13505 "configure"
13505 #include "confdefs.h"
13506 /* Override any gcc2 internal prototype to avoid an error. */
13507 /* We use char because int might match the return type of a gcc2
13508 builtin and then its argument prototype would still apply. */
13515 if { (eval echo configure:13516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13517 eval "ac_cv_lib_$ac_lib_var=yes"
13519 echo "configure: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13522 eval "ac_cv_lib_$ac_lib_var=no"
13525 LIBS="$ac_save_LIBS"
13528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13529 echo "$ac_t""yes" 1>&6
13532 echo "$ac_t""no" 1>&6
13538 if test $have_readline = yes ; then
13539 ol_with_readline=found
13540 ol_link_readline=yes
13542 READLINE_LIBS="-lreadline"
13547 if test $ol_link_readline = yes ; then
13548 cat >> confdefs.h <<\EOF
13549 #define HAVE_READLINE 1
13555 if test $ol_enable_crypt != no ; then
13556 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13557 echo "configure:13558: checking for crypt" >&5
13558 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13559 echo $ac_n "(cached) $ac_c" 1>&6
13561 cat > conftest.$ac_ext <<EOF
13562 #line 13563 "configure"
13563 #include "confdefs.h"
13564 /* System header to define __stub macros and hopefully few prototypes,
13565 which can conflict with char crypt(); below. */
13566 #include <assert.h>
13567 /* Override any gcc2 internal prototype to avoid an error. */
13568 /* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
13575 /* The GNU C library defines this for functions which it implements
13576 to always fail with ENOSYS. Some functions are actually named
13577 something starting with __ and the normal name is an alias. */
13578 #if defined (__stub_crypt) || defined (__stub___crypt)
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13588 eval "ac_cv_func_crypt=yes"
13590 echo "configure: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13593 eval "ac_cv_func_crypt=no"
13598 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13599 echo "$ac_t""yes" 1>&6
13602 echo "$ac_t""no" 1>&6
13604 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13605 echo "configure:13606: checking for crypt in -lcrypt" >&5
13606 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13607 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13610 ac_save_LIBS="$LIBS"
13611 LIBS="-lcrypt $LIBS"
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13615 /* Override any gcc2 internal prototype to avoid an error. */
13616 /* We use char because int might match the return type of a gcc2
13617 builtin and then its argument prototype would still apply. */
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13626 eval "ac_cv_lib_$ac_lib_var=yes"
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13631 eval "ac_cv_lib_$ac_lib_var=no"
13634 LIBS="$ac_save_LIBS"
13637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13638 echo "$ac_t""yes" 1>&6
13639 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13642 echo "$ac_t""no" 1>&6
13649 if test $have_crypt = yes ; then
13650 cat >> confdefs.h <<\EOF
13651 #define HAVE_CRYPT 1
13655 echo "configure: warning: could not find crypt" 1>&2
13656 if test $ol_enable_crypt = yes ; then
13657 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13660 echo "configure: warning: disabling crypt support" 1>&2
13665 if test $ol_enable_proctitle != no ; then
13666 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13667 echo "configure:13668: checking for setproctitle" >&5
13668 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13669 echo $ac_n "(cached) $ac_c" 1>&6
13671 cat > conftest.$ac_ext <<EOF
13672 #line 13673 "configure"
13673 #include "confdefs.h"
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char setproctitle(); below. */
13676 #include <assert.h>
13677 /* Override any gcc2 internal prototype to avoid an error. */
13678 /* We use char because int might match the return type of a gcc2
13679 builtin and then its argument prototype would still apply. */
13680 char setproctitle();
13685 /* The GNU C library defines this for functions which it implements
13686 to always fail with ENOSYS. Some functions are actually named
13687 something starting with __ and the normal name is an alias. */
13688 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13696 if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13698 eval "ac_cv_func_setproctitle=yes"
13700 echo "configure: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13703 eval "ac_cv_func_setproctitle=no"
13708 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13709 echo "$ac_t""yes" 1>&6
13710 have_setproctitle=yes
13712 echo "$ac_t""no" 1>&6
13714 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13715 echo "configure:13716: checking for setproctitle in -lutil" >&5
13716 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13718 echo $ac_n "(cached) $ac_c" 1>&6
13720 ac_save_LIBS="$LIBS"
13721 LIBS="-lutil $LIBS"
13722 cat > conftest.$ac_ext <<EOF
13723 #line 13724 "configure"
13724 #include "confdefs.h"
13725 /* Override any gcc2 internal prototype to avoid an error. */
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13728 char setproctitle();
13734 if { (eval echo configure:13735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13736 eval "ac_cv_lib_$ac_lib_var=yes"
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13741 eval "ac_cv_lib_$ac_lib_var=no"
13744 LIBS="$ac_save_LIBS"
13747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 have_setproctitle=yes
13750 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13752 echo "$ac_t""no" 1>&6
13753 have_setproctitle=no
13754 LIBOBJS="$LIBOBJS setproctitle.o"
13755 LIBSRCS="$LIBSRCS setproctitle.c"
13761 if test $have_setproctitle = yes ; then
13762 cat >> confdefs.h <<\EOF
13763 #define HAVE_SETPROCTITLE 1
13769 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13770 echo "configure:13771: checking for ANSI C header files" >&5
13771 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 #include <stdlib.h>
13778 #include <stdarg.h>
13779 #include <string.h>
13782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13783 { (eval echo configure:13784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13785 if test -z "$ac_err"; then
13787 ac_cv_header_stdc=yes
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13793 ac_cv_header_stdc=no
13797 if test $ac_cv_header_stdc = yes; then
13798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 #include <string.h>
13804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13805 egrep "memchr" >/dev/null 2>&1; then
13809 ac_cv_header_stdc=no
13815 if test $ac_cv_header_stdc = yes; then
13816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13817 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure"
13819 #include "confdefs.h"
13820 #include <stdlib.h>
13822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13823 egrep "free" >/dev/null 2>&1; then
13827 ac_cv_header_stdc=no
13833 if test $ac_cv_header_stdc = yes; then
13834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13835 if test "$cross_compiling" = yes; then
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13842 #if ((' ' & 0x0FF) == 0x020)
13843 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13844 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13846 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13847 || ('j' <= (c) && (c) <= 'r') \
13848 || ('s' <= (c) && (c) <= 'z'))
13849 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13852 int main () { int i; for (i = 0; i < 256; i++)
13853 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13857 if { (eval echo configure:13858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13861 echo "configure: failed program was:" >&5
13862 cat conftest.$ac_ext >&5
13864 ac_cv_header_stdc=no
13872 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13873 if test $ac_cv_header_stdc = yes; then
13874 cat >> confdefs.h <<\EOF
13875 #define STDC_HEADERS 1
13880 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13881 echo "configure:13882: checking for mode_t" >&5
13882 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13883 echo $ac_n "(cached) $ac_c" 1>&6
13885 cat > conftest.$ac_ext <<EOF
13886 #line 13887 "configure"
13887 #include "confdefs.h"
13888 #include <sys/types.h>
13890 #include <stdlib.h>
13891 #include <stddef.h>
13895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13896 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13898 eval "ac_cv_type_mode_t=yes"
13901 eval "ac_cv_type_mode_t=no"
13906 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13909 echo "$ac_t""no" 1>&6
13910 cat >> confdefs.h <<EOF
13916 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13917 echo "configure:13918: checking for off_t" >&5
13918 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13921 cat > conftest.$ac_ext <<EOF
13922 #line 13923 "configure"
13923 #include "confdefs.h"
13924 #include <sys/types.h>
13926 #include <stdlib.h>
13927 #include <stddef.h>
13931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13932 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13934 eval "ac_cv_type_off_t=yes"
13937 eval "ac_cv_type_off_t=no"
13942 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13943 echo "$ac_t""yes" 1>&6
13945 echo "$ac_t""no" 1>&6
13946 cat >> confdefs.h <<EOF
13952 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13953 echo "configure:13954: checking for pid_t" >&5
13954 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13955 echo $ac_n "(cached) $ac_c" 1>&6
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 #include <sys/types.h>
13962 #include <stdlib.h>
13963 #include <stddef.h>
13967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13968 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13970 eval "ac_cv_type_pid_t=yes"
13973 eval "ac_cv_type_pid_t=no"
13978 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13979 echo "$ac_t""yes" 1>&6
13981 echo "$ac_t""no" 1>&6
13982 cat >> confdefs.h <<EOF
13988 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13989 echo "configure:13990: checking for ptrdiff_t" >&5
13990 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13991 echo $ac_n "(cached) $ac_c" 1>&6
13993 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure"
13995 #include "confdefs.h"
13996 #include <stddef.h>
14001 if { (eval echo configure:14002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14003 am_cv_type_ptrdiff_t=yes
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14008 am_cv_type_ptrdiff_t=no
14013 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14014 if test $am_cv_type_ptrdiff_t = yes; then
14015 cat >> confdefs.h <<\EOF
14016 #define HAVE_PTRDIFF_T 1
14021 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14022 echo "configure:14023: checking return type of signal handlers" >&5
14023 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14024 echo $ac_n "(cached) $ac_c" 1>&6
14026 cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 #include <sys/types.h>
14030 #include <signal.h>
14035 extern "C" void (*signal (int, void (*)(int)))(int);
14037 void (*signal ()) ();
14044 if { (eval echo configure:14045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14046 ac_cv_type_signal=void
14048 echo "configure: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14051 ac_cv_type_signal=int
14056 echo "$ac_t""$ac_cv_type_signal" 1>&6
14057 cat >> confdefs.h <<EOF
14058 #define RETSIGTYPE $ac_cv_type_signal
14062 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14063 echo "configure:14064: checking for size_t" >&5
14064 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14065 echo $ac_n "(cached) $ac_c" 1>&6
14067 cat > conftest.$ac_ext <<EOF
14068 #line 14069 "configure"
14069 #include "confdefs.h"
14070 #include <sys/types.h>
14072 #include <stdlib.h>
14073 #include <stddef.h>
14077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14078 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14080 eval "ac_cv_type_size_t=yes"
14083 eval "ac_cv_type_size_t=no"
14088 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14089 echo "$ac_t""yes" 1>&6
14091 echo "$ac_t""no" 1>&6
14092 cat >> confdefs.h <<EOF
14093 #define size_t unsigned
14099 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14100 echo "configure:14101: checking for ssize_t" >&5
14101 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14102 echo $ac_n "(cached) $ac_c" 1>&6
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14107 #include <sys/types.h>
14109 #include <stdlib.h>
14110 #include <stddef.h>
14114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14115 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14117 eval "ac_cv_type_ssize_t=yes"
14120 eval "ac_cv_type_ssize_t=no"
14125 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14126 echo "$ac_t""yes" 1>&6
14128 echo "$ac_t""no" 1>&6
14129 cat >> confdefs.h <<EOF
14130 #define ssize_t signed int
14135 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14136 echo "configure:14137: checking for caddr_t" >&5
14137 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14138 echo $ac_n "(cached) $ac_c" 1>&6
14140 cat > conftest.$ac_ext <<EOF
14141 #line 14142 "configure"
14142 #include "confdefs.h"
14143 #include <sys/types.h>
14145 #include <stdlib.h>
14146 #include <stddef.h>
14150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14151 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14153 eval "ac_cv_type_caddr_t=yes"
14156 eval "ac_cv_type_caddr_t=no"
14161 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14162 echo "$ac_t""yes" 1>&6
14164 echo "$ac_t""no" 1>&6
14165 cat >> confdefs.h <<EOF
14166 #define caddr_t char *
14172 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14173 echo "configure:14174: checking for socklen_t" >&5
14174 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14177 cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14181 #ifdef HAVE_SYS_TYPES_H
14182 #include <sys/types.h>
14184 #ifdef HAVE_SYS_SOCKET_H
14185 #include <sys/socket.h>
14192 if { (eval echo configure:14193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14194 ol_cv_type_socklen_t=yes
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14199 ol_cv_type_socklen_t=no
14204 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14205 if test $ol_cv_type_socklen_t = no; then
14206 cat >> confdefs.h <<\EOF
14207 #define socklen_t int
14212 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14213 echo "configure:14214: checking for member st_blksize in aggregate type struct stat" >&5
14214 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 #include <sys/types.h>
14221 #include <sys/stat.h>
14223 struct stat foo; foo.st_blksize;
14226 if { (eval echo configure:14227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14228 ac_cv_c_struct_member_st_blksize=yes
14230 echo "configure: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14233 ac_cv_c_struct_member_st_blksize=no
14238 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14239 st_blksize="$ac_cv_c_struct_member_st_blksize"
14240 if test $ac_cv_c_struct_member_st_blksize = yes; then
14241 cat >> confdefs.h <<\EOF
14242 #define HAVE_ST_BLKSIZE 1
14247 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14248 echo "configure:14249: checking whether time.h and sys/time.h may both be included" >&5
14249 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14250 echo $ac_n "(cached) $ac_c" 1>&6
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14255 #include <sys/types.h>
14256 #include <sys/time.h>
14262 if { (eval echo configure:14263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14264 ac_cv_header_time=yes
14266 echo "configure: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14269 ac_cv_header_time=no
14274 echo "$ac_t""$ac_cv_header_time" 1>&6
14275 if test $ac_cv_header_time = yes; then
14276 cat >> confdefs.h <<\EOF
14277 #define TIME_WITH_SYS_TIME 1
14282 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14283 echo "configure:14284: checking whether struct tm is in sys/time.h or time.h" >&5
14284 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14290 #include <sys/types.h>
14293 struct tm *tp; tp->tm_sec;
14296 if { (eval echo configure:14297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14298 ac_cv_struct_tm=time.h
14300 echo "configure: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14303 ac_cv_struct_tm=sys/time.h
14308 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14309 if test $ac_cv_struct_tm = sys/time.h; then
14310 cat >> confdefs.h <<\EOF
14311 #define TM_IN_SYS_TIME 1
14316 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14317 echo "configure:14318: checking for uid_t in sys/types.h" >&5
14318 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <sys/types.h>
14326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327 egrep "uid_t" >/dev/null 2>&1; then
14329 ac_cv_type_uid_t=yes
14332 ac_cv_type_uid_t=no
14338 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14339 if test $ac_cv_type_uid_t = no; then
14340 cat >> confdefs.h <<\EOF
14344 cat >> confdefs.h <<\EOF
14350 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14351 echo "configure:14352: checking for sig_atomic_t" >&5
14352 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14353 echo $ac_n "(cached) $ac_c" 1>&6
14355 cat > conftest.$ac_ext <<EOF
14356 #line 14357 "configure"
14357 #include "confdefs.h"
14358 #include <signal.h>
14360 sig_atomic_t atomic;
14363 if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14365 ol_cv_type_sig_atomic_t=yes
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14370 ol_cv_type_sig_atomic_t=no
14375 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14376 if test $ol_cv_type_sig_atomic_t = no; then
14377 cat >> confdefs.h <<\EOF
14378 #define sig_atomic_t int
14385 # test for pw_gecos in struct passwd
14386 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14387 echo "configure:14388: checking struct passwd for pw_gecos" >&5
14388 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14389 echo $ac_n "(cached) $ac_c" 1>&6
14392 cat > conftest.$ac_ext <<EOF
14393 #line 14394 "configure"
14394 #include "confdefs.h"
14399 pwd.pw_gecos = pwd.pw_name;
14403 if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14405 ol_cv_struct_passwd_pw_gecos=yes
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 ol_cv_struct_passwd_pw_gecos=no
14415 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14416 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14417 cat >> confdefs.h <<\EOF
14418 #define HAVE_PW_GECOS 1
14423 # test for pw_passwd in struct passwd
14424 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14425 echo "configure:14426: checking struct passwd for pw_passwd" >&5
14426 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14427 echo $ac_n "(cached) $ac_c" 1>&6
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14437 pwd.pw_passwd = pwd.pw_name;
14441 if { (eval echo configure:14442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14443 ol_cv_struct_passwd_pw_passwd=yes
14445 echo "configure: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14448 ol_cv_struct_passwd_pw_passwd=no
14453 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14454 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14455 cat >> confdefs.h <<\EOF
14456 #define HAVE_PW_PASSWD 1
14462 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14463 echo "configure:14464: checking if toupper() requires islower()" >&5
14464 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14465 echo $ac_n "(cached) $ac_c" 1>&6
14468 if test "$cross_compiling" = yes; then
14469 ol_cv_c_upper_lower=safe
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14478 if ('C' == toupper('C'))
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14486 ol_cv_c_upper_lower=no
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14491 ol_cv_c_upper_lower=yes
14498 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14499 if test $ol_cv_c_upper_lower != no ; then
14500 cat >> confdefs.h <<\EOF
14501 #define C_UPPER_LOWER 1
14506 echo $ac_n "checking for working const""... $ac_c" 1>&6
14507 echo "configure:14508: checking for working const" >&5
14508 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14517 /* Ultrix mips cc rejects this. */
14518 typedef int charset[2]; const charset x;
14519 /* SunOS 4.1.1 cc rejects this. */
14520 char const *const *ccp;
14522 /* NEC SVR4.0.2 mips cc rejects this. */
14523 struct point {int x, y;};
14524 static struct point const zero = {0,0};
14525 /* AIX XL C 1.02.0.0 rejects this.
14526 It does not let you subtract one const X* pointer from another in an arm
14527 of an if-expression whose if-part is not a constant expression */
14528 const char *g = "string";
14529 ccp = &g + (g ? g-g : 0);
14530 /* HPUX 7.0 cc rejects these. */
14533 ccp = (char const *const *) p;
14534 { /* SCO 3.2v4 cc rejects this. */
14536 char const *s = 0 ? (char *) 0 : (char const *) 0;
14540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14541 int x[] = {25, 17};
14542 const int *foo = &x[0];
14545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14546 typedef const int *iptr;
14550 { /* AIX XL C 1.02.0.0 rejects this saying
14551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14552 struct s { int j; const int *ap[3]; };
14553 struct s *b; b->j = 5;
14555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14556 const int foo = 10;
14561 if { (eval echo configure:14562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14573 echo "$ac_t""$ac_cv_c_const" 1>&6
14574 if test $ac_cv_c_const = no; then
14575 cat >> confdefs.h <<\EOF
14581 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14582 echo "configure:14583: checking if compiler understands volatile" >&5
14583 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14584 echo $ac_n "(cached) $ac_c" 1>&6
14586 cat > conftest.$ac_ext <<EOF
14587 #line 14588 "configure"
14588 #include "confdefs.h"
14591 volatile int a; int * volatile b = x ? &y : &z;
14592 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14596 if { (eval echo configure:14597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14598 ol_cv_c_volatile=yes
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14603 ol_cv_c_volatile=no
14608 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14609 if test $ol_cv_c_volatile = yes; then
14612 cat >> confdefs.h <<\EOF
14619 if test $cross_compiling = yes ; then
14620 cat >> confdefs.h <<\EOF
14621 #define CROSS_COMPILING 1
14625 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14626 echo "configure:14627: checking whether byte ordering is bigendian" >&5
14627 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
14630 ac_cv_c_bigendian=unknown
14631 # See if sys/param.h defines the BYTE_ORDER macro.
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 #include <sys/types.h>
14636 #include <sys/param.h>
14639 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14640 bogus endian macros
14644 if { (eval echo configure:14645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14646 # It does; now see whether it defined to BIG_ENDIAN or not.
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 #include <sys/types.h>
14651 #include <sys/param.h>
14654 #if BYTE_ORDER != BIG_ENDIAN
14659 if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14661 ac_cv_c_bigendian=yes
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14666 ac_cv_c_bigendian=no
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14674 if test $ac_cv_c_bigendian = unknown; then
14675 if test "$cross_compiling" = yes; then
14676 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14678 cat > conftest.$ac_ext <<EOF
14679 #line 14680 "configure"
14680 #include "confdefs.h"
14682 /* Are we little or big endian? From Harbison&Steele. */
14686 char c[sizeof (long)];
14689 exit (u.c[sizeof (long) - 1] == 1);
14692 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14694 ac_cv_c_bigendian=no
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14699 ac_cv_c_bigendian=yes
14707 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14708 if test $ac_cv_c_bigendian = yes; then
14709 cat >> confdefs.h <<\EOF
14710 #define WORDS_BIGENDIAN 1
14717 echo $ac_n "checking size of short""... $ac_c" 1>&6
14718 echo "configure:14719: checking size of short" >&5
14719 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14720 echo $ac_n "(cached) $ac_c" 1>&6
14722 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14723 cat > conftest.$ac_ext <<EOF
14724 #line 14725 "configure"
14725 #include "confdefs.h"
14726 #include "confdefs.h"
14727 #include <sys/types.h>
14731 switch (0) case 0: case (sizeof (short) == $ac_size):;
14734 if { (eval echo configure:14735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14736 ac_cv_sizeof_short=$ac_size
14738 echo "configure: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14742 if test x$ac_cv_sizeof_short != x ; then break; fi
14747 if test x$ac_cv_sizeof_short = x ; then
14748 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14750 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14751 cat >> confdefs.h <<EOF
14752 #define SIZEOF_SHORT $ac_cv_sizeof_short
14756 echo $ac_n "checking size of int""... $ac_c" 1>&6
14757 echo "configure:14758: checking size of int" >&5
14758 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14759 echo $ac_n "(cached) $ac_c" 1>&6
14761 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14762 cat > conftest.$ac_ext <<EOF
14763 #line 14764 "configure"
14764 #include "confdefs.h"
14765 #include "confdefs.h"
14766 #include <sys/types.h>
14770 switch (0) case 0: case (sizeof (int) == $ac_size):;
14773 if { (eval echo configure:14774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14775 ac_cv_sizeof_int=$ac_size
14777 echo "configure: failed program was:" >&5
14778 cat conftest.$ac_ext >&5
14781 if test x$ac_cv_sizeof_int != x ; then break; fi
14786 if test x$ac_cv_sizeof_int = x ; then
14787 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14789 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14790 cat >> confdefs.h <<EOF
14791 #define SIZEOF_INT $ac_cv_sizeof_int
14795 echo $ac_n "checking size of long""... $ac_c" 1>&6
14796 echo "configure:14797: checking size of long" >&5
14797 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14798 echo $ac_n "(cached) $ac_c" 1>&6
14800 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14801 cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure"
14803 #include "confdefs.h"
14804 #include "confdefs.h"
14805 #include <sys/types.h>
14809 switch (0) case 0: case (sizeof (long) == $ac_size):;
14812 if { (eval echo configure:14813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14814 ac_cv_sizeof_long=$ac_size
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14820 if test x$ac_cv_sizeof_long != x ; then break; fi
14825 if test x$ac_cv_sizeof_long = x ; then
14826 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14828 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14829 cat >> confdefs.h <<EOF
14830 #define SIZEOF_LONG $ac_cv_sizeof_long
14835 if test "$ac_cv_sizeof_int" -lt 4 ; then
14836 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14838 cat >> confdefs.h <<\EOF
14839 #define LBER_INT_T long
14843 cat >> confdefs.h <<\EOF
14844 #define LBER_INT_T int
14849 cat >> confdefs.h <<\EOF
14850 #define LBER_LEN_T long
14853 cat >> confdefs.h <<\EOF
14854 #define LBER_SOCKET_T int
14857 cat >> confdefs.h <<\EOF
14858 #define LBER_TAG_T long
14862 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14863 echo "configure:14864: checking for 8-bit clean memcmp" >&5
14864 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14867 if test "$cross_compiling" = yes; then
14868 ac_cv_func_memcmp_clean=no
14870 cat > conftest.$ac_ext <<EOF
14871 #line 14872 "configure"
14872 #include "confdefs.h"
14876 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14877 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14881 if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14883 ac_cv_func_memcmp_clean=yes
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14888 ac_cv_func_memcmp_clean=no
14895 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14896 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14898 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14899 echo "configure:14900: checking for strftime" >&5
14900 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char strftime(); below. */
14908 #include <assert.h>
14909 /* Override any gcc2 internal prototype to avoid an error. */
14910 /* We use char because int might match the return type of a gcc2
14911 builtin and then its argument prototype would still apply. */
14917 /* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920 #if defined (__stub_strftime) || defined (__stub___strftime)
14928 if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14930 eval "ac_cv_func_strftime=yes"
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14935 eval "ac_cv_func_strftime=no"
14940 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 cat >> confdefs.h <<\EOF
14943 #define HAVE_STRFTIME 1
14947 echo "$ac_t""no" 1>&6
14948 # strftime is in -lintl on SCO UNIX.
14949 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14950 echo "configure:14951: checking for strftime in -lintl" >&5
14951 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14952 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14955 ac_save_LIBS="$LIBS"
14956 LIBS="-lintl $LIBS"
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14971 eval "ac_cv_lib_$ac_lib_var=yes"
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14976 eval "ac_cv_lib_$ac_lib_var=no"
14979 LIBS="$ac_save_LIBS"
14982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14983 echo "$ac_t""yes" 1>&6
14984 cat >> confdefs.h <<\EOF
14985 #define HAVE_STRFTIME 1
14988 LIBS="-lintl $LIBS"
14990 echo "$ac_t""no" 1>&6
14996 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14997 echo "configure:14998: checking for inet_aton()" >&5
14998 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15005 #ifdef HAVE_SYS_TYPES_H
15006 # include <sys/types.h>
15008 #ifdef HAVE_SYS_SOCKET_H
15009 # include <sys/socket.h>
15010 # ifdef HAVE_SYS_SELECT_H
15011 # include <sys/select.h>
15013 # include <netinet/in.h>
15014 # ifdef HAVE_ARPA_INET_H
15015 # include <arpa/inet.h>
15021 int rc = inet_aton( "255.255.255.255", &in );
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 ol_cv_func_inet_aton=yes
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15031 ol_cv_func_inet_aton=no
15036 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15037 if test $ol_cv_func_inet_aton != no; then
15038 cat >> confdefs.h <<\EOF
15039 #define HAVE_INET_ATON 1
15045 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15046 echo "configure:15047: checking for _spawnlp" >&5
15047 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15050 cat > conftest.$ac_ext <<EOF
15051 #line 15052 "configure"
15052 #include "confdefs.h"
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char _spawnlp(); below. */
15055 #include <assert.h>
15056 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15064 /* The GNU C library defines this for functions which it implements
15065 to always fail with ENOSYS. Some functions are actually named
15066 something starting with __ and the normal name is an alias. */
15067 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15075 if { (eval echo configure:15076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15077 eval "ac_cv_func__spawnlp=yes"
15079 echo "configure: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15082 eval "ac_cv_func__spawnlp=no"
15087 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15088 echo "$ac_t""yes" 1>&6
15089 cat >> confdefs.h <<\EOF
15090 #define HAVE_SPAWNLP 1
15094 echo "$ac_t""no" 1>&6
15098 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15099 echo "configure:15100: checking for _snprintf" >&5
15100 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15101 echo $ac_n "(cached) $ac_c" 1>&6
15103 cat > conftest.$ac_ext <<EOF
15104 #line 15105 "configure"
15105 #include "confdefs.h"
15106 /* System header to define __stub macros and hopefully few prototypes,
15107 which can conflict with char _snprintf(); below. */
15108 #include <assert.h>
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 /* We use char because int might match the return type of a gcc2
15111 builtin and then its argument prototype would still apply. */
15117 /* The GNU C library defines this for functions which it implements
15118 to always fail with ENOSYS. Some functions are actually named
15119 something starting with __ and the normal name is an alias. */
15120 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15128 if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15130 eval "ac_cv_func__snprintf=yes"
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15135 eval "ac_cv_func__snprintf=no"
15140 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15141 echo "$ac_t""yes" 1>&6
15142 ac_cv_func_snprintf=yes
15143 cat >> confdefs.h <<\EOF
15144 #define snprintf _snprintf
15149 echo "$ac_t""no" 1>&6
15153 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15154 echo "configure:15155: checking for _vsnprintf" >&5
15155 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15158 cat > conftest.$ac_ext <<EOF
15159 #line 15160 "configure"
15160 #include "confdefs.h"
15161 /* System header to define __stub macros and hopefully few prototypes,
15162 which can conflict with char _vsnprintf(); below. */
15163 #include <assert.h>
15164 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15172 /* The GNU C library defines this for functions which it implements
15173 to always fail with ENOSYS. Some functions are actually named
15174 something starting with __ and the normal name is an alias. */
15175 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15183 if { (eval echo configure:15184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15185 eval "ac_cv_func__vsnprintf=yes"
15187 echo "configure: failed program was:" >&5
15188 cat conftest.$ac_ext >&5
15190 eval "ac_cv_func__vsnprintf=no"
15195 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15196 echo "$ac_t""yes" 1>&6
15197 ac_cv_func_vsnprintf=yes
15198 cat >> confdefs.h <<\EOF
15199 #define vsnprintf _vsnprintf
15204 echo "$ac_t""no" 1>&6
15208 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15209 echo "configure:15210: checking for vprintf" >&5
15210 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15211 echo $ac_n "(cached) $ac_c" 1>&6
15213 cat > conftest.$ac_ext <<EOF
15214 #line 15215 "configure"
15215 #include "confdefs.h"
15216 /* System header to define __stub macros and hopefully few prototypes,
15217 which can conflict with char vprintf(); below. */
15218 #include <assert.h>
15219 /* Override any gcc2 internal prototype to avoid an error. */
15220 /* We use char because int might match the return type of a gcc2
15221 builtin and then its argument prototype would still apply. */
15227 /* The GNU C library defines this for functions which it implements
15228 to always fail with ENOSYS. Some functions are actually named
15229 something starting with __ and the normal name is an alias. */
15230 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15238 if { (eval echo configure:15239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15240 eval "ac_cv_func_vprintf=yes"
15242 echo "configure: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15245 eval "ac_cv_func_vprintf=no"
15250 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15251 echo "$ac_t""yes" 1>&6
15252 cat >> confdefs.h <<\EOF
15253 #define HAVE_VPRINTF 1
15257 echo "$ac_t""no" 1>&6
15260 if test "$ac_cv_func_vprintf" != yes; then
15261 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15262 echo "configure:15263: checking for _doprnt" >&5
15263 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15264 echo $ac_n "(cached) $ac_c" 1>&6
15266 cat > conftest.$ac_ext <<EOF
15267 #line 15268 "configure"
15268 #include "confdefs.h"
15269 /* System header to define __stub macros and hopefully few prototypes,
15270 which can conflict with char _doprnt(); below. */
15271 #include <assert.h>
15272 /* Override any gcc2 internal prototype to avoid an error. */
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15280 /* The GNU C library defines this for functions which it implements
15281 to always fail with ENOSYS. Some functions are actually named
15282 something starting with __ and the normal name is an alias. */
15283 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15291 if { (eval echo configure:15292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15293 eval "ac_cv_func__doprnt=yes"
15295 echo "configure: failed program was:" >&5
15296 cat conftest.$ac_ext >&5
15298 eval "ac_cv_func__doprnt=no"
15303 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15304 echo "$ac_t""yes" 1>&6
15305 cat >> confdefs.h <<\EOF
15306 #define HAVE_DOPRNT 1
15310 echo "$ac_t""no" 1>&6
15316 if test $ac_cv_func_vprintf = yes ; then
15317 for ac_func in vsnprintf vsprintf
15319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15320 echo "configure:15321: checking for $ac_func" >&5
15321 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15324 cat > conftest.$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func(); below. */
15329 #include <assert.h>
15330 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15338 /* The GNU C library defines this for functions which it implements
15339 to always fail with ENOSYS. Some functions are actually named
15340 something starting with __ and the normal name is an alias. */
15341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15349 if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 eval "ac_cv_func_$ac_func=yes"
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15356 eval "ac_cv_func_$ac_func=no"
15361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15362 echo "$ac_t""yes" 1>&6
15363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15364 cat >> confdefs.h <<EOF
15365 #define $ac_tr_func 1
15369 echo "$ac_t""no" 1>&6
15427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15428 echo "configure:15429: checking for $ac_func" >&5
15429 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15430 echo $ac_n "(cached) $ac_c" 1>&6
15432 cat > conftest.$ac_ext <<EOF
15433 #line 15434 "configure"
15434 #include "confdefs.h"
15435 /* System header to define __stub macros and hopefully few prototypes,
15436 which can conflict with char $ac_func(); below. */
15437 #include <assert.h>
15438 /* Override any gcc2 internal prototype to avoid an error. */
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15446 /* The GNU C library defines this for functions which it implements
15447 to always fail with ENOSYS. Some functions are actually named
15448 something starting with __ and the normal name is an alias. */
15449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15457 if { (eval echo configure:15458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15459 eval "ac_cv_func_$ac_func=yes"
15461 echo "configure: failed program was:" >&5
15462 cat conftest.$ac_ext >&5
15464 eval "ac_cv_func_$ac_func=no"
15469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15470 echo "$ac_t""yes" 1>&6
15471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15472 cat >> confdefs.h <<EOF
15473 #define $ac_tr_func 1
15477 echo "$ac_t""no" 1>&6
15482 for ac_func in getopt tempnam
15484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15485 echo "configure:15486: checking for $ac_func" >&5
15486 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15489 cat > conftest.$ac_ext <<EOF
15490 #line 15491 "configure"
15491 #include "confdefs.h"
15492 /* System header to define __stub macros and hopefully few prototypes,
15493 which can conflict with char $ac_func(); below. */
15494 #include <assert.h>
15495 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15503 /* The GNU C library defines this for functions which it implements
15504 to always fail with ENOSYS. Some functions are actually named
15505 something starting with __ and the normal name is an alias. */
15506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 if { (eval echo configure:15515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15516 eval "ac_cv_func_$ac_func=yes"
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15521 eval "ac_cv_func_$ac_func=no"
15526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15527 echo "$ac_t""yes" 1>&6
15528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15529 cat >> confdefs.h <<EOF
15530 #define $ac_tr_func 1
15534 echo "$ac_t""no" 1>&6
15535 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15541 if test "$ac_cv_func_getopt" != yes; then
15542 LIBSRCS="$LIBSRCS getopt.c"
15545 if test "$ac_cv_func_tempnam" != yes; then
15546 LIBSRCS="$LIBSRCS tempnam.c"
15549 # Check Configuration
15550 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15551 echo "configure:15552: checking declaration of sys_errlist" >&5
15552 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15553 echo $ac_n "(cached) $ac_c" 1>&6
15556 cat > conftest.$ac_ext <<EOF
15557 #line 15558 "configure"
15558 #include "confdefs.h"
15561 #include <sys/types.h>
15564 #include <stdlib.h>
15567 char *c = (char *) *sys_errlist
15570 if { (eval echo configure:15571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15572 ol_cv_dcl_sys_errlist=yes
15573 ol_cv_have_sys_errlist=yes
15575 echo "configure: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15578 ol_cv_dcl_sys_errlist=no
15583 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15585 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15586 if test $ol_cv_dcl_sys_errlist = no ; then
15587 cat >> confdefs.h <<\EOF
15588 #define DECL_SYS_ERRLIST 1
15592 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15593 echo "configure:15594: checking existence of sys_errlist" >&5
15594 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15595 echo $ac_n "(cached) $ac_c" 1>&6
15598 cat > conftest.$ac_ext <<EOF
15599 #line 15600 "configure"
15600 #include "confdefs.h"
15603 char *c = (char *) *sys_errlist
15606 if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15608 ol_cv_have_sys_errlist=yes
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15613 ol_cv_have_sys_errlist=no
15618 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15620 if test $ol_cv_have_sys_errlist = yes ; then
15621 cat >> confdefs.h <<\EOF
15622 #define HAVE_SYS_ERRLIST 1
15629 if test "$ol_enable_debug" != no ; then
15630 cat >> confdefs.h <<\EOF
15631 #define LDAP_DEBUG 1
15635 if test "$ol_enable_syslog" = yes ; then
15636 cat >> confdefs.h <<\EOF
15637 #define LDAP_SYSLOG 1
15641 if test "$ol_enable_libui" = yes ; then
15642 cat >> confdefs.h <<\EOF
15643 #define LDAP_LIBUI 1
15647 if test "$ol_enable_cache" = no ; then
15648 cat >> confdefs.h <<\EOF
15649 #define LDAP_NOCACHE 1
15653 if test "$ol_link_kbind" != no ; then
15654 cat >> confdefs.h <<\EOF
15655 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15659 if test "$ol_enable_proctitle" != no ; then
15660 cat >> confdefs.h <<\EOF
15661 #define LDAP_PROCTITLE 1
15665 if test "$ol_enable_referrals" != no ; then
15666 cat >> confdefs.h <<\EOF
15667 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15671 if test "$ol_enable_cldap" != no ; then
15672 cat >> confdefs.h <<\EOF
15673 #define LDAP_CONNECTIONLESS 1
15677 if test "$ol_enable_ldapi" != no; then
15678 cat >> confdefs.h <<\EOF
15679 #define USE_PF_LOCAL 1
15684 if test "$ol_enable_cleartext" != no ; then
15685 cat >> confdefs.h <<\EOF
15686 #define SLAPD_CLEARTEXT 1
15690 if test "$ol_enable_crypt" != no ; then
15691 cat >> confdefs.h <<\EOF
15692 #define SLAPD_CRYPT 1
15696 if test "$ol_link_kpasswd" != no ; then
15697 cat >> confdefs.h <<\EOF
15698 #define SLAPD_KPASSWD 1
15702 if test "$ol_link_spasswd" != no ; then
15703 cat >> confdefs.h <<\EOF
15704 #define SLAPD_SPASSWD 1
15708 if test "$ol_enable_multimaster" != no ; then
15709 cat >> confdefs.h <<\EOF
15710 #define SLAPD_MULTIMASTER 1
15714 if test "$ol_enable_phonetic" != no ; then
15715 cat >> confdefs.h <<\EOF
15716 #define SLAPD_PHONETIC 1
15720 if test "$ol_enable_rlookups" != no ; then
15721 cat >> confdefs.h <<\EOF
15722 #define SLAPD_RLOOKUPS 1
15726 if test "$ol_enable_aci" != no ; then
15727 cat >> confdefs.h <<\EOF
15728 #define SLAPD_ACI_ENABLED 1
15733 if test "$ol_link_modules" != no ; then
15734 cat >> confdefs.h <<\EOF
15735 #define SLAPD_MODULES 1
15739 SLAPD_MODULES_LDFLAGS="-dlopen self"
15742 if test "$ol_link_dnssrv" != no ; then
15743 cat >> confdefs.h <<\EOF
15744 #define SLAPD_DNSSRV 1
15749 if test "$ol_with_dnssrv_module" != static ; then
15750 cat >> confdefs.h <<\EOF
15751 #define SLAPD_DNSSRV_DYNAMIC 1
15755 BUILD_DNSSRV_DYNAMIC=shared
15756 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15760 if test "$ol_enable_ldap" != no ; then
15761 cat >> confdefs.h <<\EOF
15762 #define SLAPD_LDAP 1
15767 if test "$ol_with_ldap_module" != static ; then
15768 cat >> confdefs.h <<\EOF
15769 #define SLAPD_LDAP_DYNAMIC 1
15773 BUILD_LDAP_DYNAMIC=shared
15774 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15778 if test "$ol_link_ldbm" != no ; then
15779 cat >> confdefs.h <<\EOF
15780 #define SLAPD_LDBM 1
15785 if test "$ol_with_ldbm_module" != static ; then
15786 cat >> confdefs.h <<\EOF
15787 #define SLAPD_LDBM_DYNAMIC 1
15791 BUILD_LDBM_DYNAMIC=shared
15792 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15796 if test "$ol_enable_passwd" != no ; then
15797 cat >> confdefs.h <<\EOF
15798 #define SLAPD_PASSWD 1
15803 if test "$ol_with_passwd_module" != static ; then
15804 cat >> confdefs.h <<\EOF
15805 #define SLAPD_PASSWD_DYNAMIC 1
15809 BUILD_PASSWD_DYNAMIC=shared
15810 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15814 if test "$ol_link_perl" != no ; then
15815 cat >> confdefs.h <<\EOF
15816 #define SLAPD_PERL 1
15821 if test "$ol_with_perl_module" != static ; then
15822 cat >> confdefs.h <<\EOF
15823 #define SLAPD_PERL_DYNAMIC 1
15827 BUILD_PERL_DYNAMIC=shared
15828 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15832 if test "$ol_enable_shell" != no ; then
15833 cat >> confdefs.h <<\EOF
15834 #define SLAPD_SHELL 1
15839 if test "$ol_with_shell_module" != static ; then
15840 cat >> confdefs.h <<\EOF
15841 #define SLAPD_SHELL_DYNAMIC 1
15845 BUILD_SHELL_DYNAMIC=shared
15846 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15850 if test "$ol_enable_tcl" != no ; then
15851 cat >> confdefs.h <<\EOF
15852 #define SLAPD_TCL 1
15857 if test "$ol_with_tcl_module" != static; then
15858 cat >> confdefs.h <<\EOF
15859 #define SLAPD_TCL_DYNAMIC 1
15863 BUILD_TCL_DYNAMIC=shared
15864 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15868 if test "$ol_enable_sql" != no ; then
15869 cat >> confdefs.h <<\EOF
15870 #define SLAPD_SQL 1
15875 SLAPD_SQL_LIBS=-liodbc
15876 if test "$ol_with_sql_module" != static; then
15877 cat >> confdefs.h <<\EOF
15878 #define SLAPD_SQL_DYNAMIC 1
15882 BUILD_SQL_DYNAMIC=shared
15883 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15887 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15888 $BUILD_SLAPD = yes ; then
15893 if test "$LINK_BINS_DYNAMIC" = yes; then
15895 LT_LIB_LINKAGE=shared
15898 LT_LIB_LINKAGE=static
15901 if test "$ac_cv_mingw32" = yes ; then
15972 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15975 # Let make expand exec_prefix.
15976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15978 # Any assignment to VPATH causes Sun make to only execute
15979 # the first set of double-colon rules, so remove it if not needed.
15980 # If there is a colon in the path, we need to keep it.
15981 if test "x$srcdir" = x.; then
15982 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15985 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15987 DEFS=-DHAVE_CONFIG_H
15989 # Without the "./", some shells look in PATH for config.status.
15990 : ${CONFIG_STATUS=./config.status}
15992 echo creating $CONFIG_STATUS
15993 rm -f $CONFIG_STATUS
15994 cat > $CONFIG_STATUS <<EOF
15996 # Generated automatically by configure.
15997 # Run this file to recreate the current configuration.
15998 # This directory was configured as follows,
15999 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16001 # $0 $ac_configure_args
16003 # Compiler output produced by configure, useful for debugging
16004 # configure, is in ./config.log if it exists.
16006 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16009 case "\$ac_option" in
16010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16011 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16012 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16013 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16014 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16016 -help | --help | --hel | --he | --h)
16017 echo "\$ac_cs_usage"; exit 0 ;;
16018 *) echo "\$ac_cs_usage"; exit 1 ;;
16022 ac_given_srcdir=$srcdir
16023 ac_given_INSTALL="$INSTALL"
16025 trap 'rm -fr `echo "\
16026 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16027 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16028 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16029 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16030 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16031 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16032 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16033 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16034 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16035 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16036 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16037 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16038 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16039 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16040 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16041 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16042 include/Makefile:build/top.mk:include/Makefile.in \
16043 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16044 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16045 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16046 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16047 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16048 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16049 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16050 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16051 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16052 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16053 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16054 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16055 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16056 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16057 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16058 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16059 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16060 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16061 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16062 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16063 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16064 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16065 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16066 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16067 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16068 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16069 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16070 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16072 cat >> $CONFIG_STATUS <<EOF
16074 # Protect against being on the right side of a sed subst in config.status.
16075 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16076 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16080 s%@CFLAGS@%$CFLAGS%g
16081 s%@CPPFLAGS@%$CPPFLAGS%g
16082 s%@CXXFLAGS@%$CXXFLAGS%g
16083 s%@FFLAGS@%$FFLAGS%g
16085 s%@LDFLAGS@%$LDFLAGS%g
16087 s%@exec_prefix@%$exec_prefix%g
16088 s%@prefix@%$prefix%g
16089 s%@program_transform_name@%$program_transform_name%g
16090 s%@bindir@%$bindir%g
16091 s%@sbindir@%$sbindir%g
16092 s%@libexecdir@%$libexecdir%g
16093 s%@datadir@%$datadir%g
16094 s%@sysconfdir@%$sysconfdir%g
16095 s%@sharedstatedir@%$sharedstatedir%g
16096 s%@localstatedir@%$localstatedir%g
16097 s%@libdir@%$libdir%g
16098 s%@includedir@%$includedir%g
16099 s%@oldincludedir@%$oldincludedir%g
16100 s%@infodir@%$infodir%g
16101 s%@mandir@%$mandir%g
16103 s%@host_alias@%$host_alias%g
16104 s%@host_cpu@%$host_cpu%g
16105 s%@host_vendor@%$host_vendor%g
16106 s%@host_os@%$host_os%g
16107 s%@target@%$target%g
16108 s%@target_alias@%$target_alias%g
16109 s%@target_cpu@%$target_cpu%g
16110 s%@target_vendor@%$target_vendor%g
16111 s%@target_os@%$target_os%g
16113 s%@build_alias@%$build_alias%g
16114 s%@build_cpu@%$build_cpu%g
16115 s%@build_vendor@%$build_vendor%g
16116 s%@build_os@%$build_os%g
16117 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16118 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16119 s%@INSTALL_DATA@%$INSTALL_DATA%g
16120 s%@PACKAGE@%$PACKAGE%g
16121 s%@VERSION@%$VERSION%g
16122 s%@ACLOCAL@%$ACLOCAL%g
16123 s%@AUTOCONF@%$AUTOCONF%g
16124 s%@AUTOMAKE@%$AUTOMAKE%g
16125 s%@AUTOHEADER@%$AUTOHEADER%g
16126 s%@MAKEINFO@%$MAKEINFO%g
16127 s%@install_sh@%$install_sh%g
16130 s%@AMTARFLAGS@%$AMTARFLAGS%g
16131 s%@SET_MAKE@%$SET_MAKE%g
16132 s%@top_builddir@%$top_builddir%g
16133 s%@ldap_subdir@%$ldap_subdir%g
16135 s%@RANLIB@%$RANLIB%g
16137 s%@DLLTOOL@%$DLLTOOL%g
16139 s%@OBJDUMP@%$OBJDUMP%g
16140 s%@LIBTOOL@%$LIBTOOL%g
16142 s%@SENDMAIL@%$SENDMAIL%g
16143 s%@EDITOR@%$EDITOR%g
16144 s%@FINGER@%$FINGER%g
16145 s%@PERLBIN@%$PERLBIN%g
16147 s%@EXEEXT@%$EXEEXT%g
16148 s%@OBJEXT@%$OBJEXT%g
16149 s%@OL_MKDEP@%$OL_MKDEP%g
16150 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16151 s%@LIBOBJS@%$LIBOBJS%g
16152 s%@LIBSRCS@%$LIBSRCS%g
16154 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16155 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16156 s%@DYN_EXT@%$DYN_EXT%g
16157 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16158 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16159 s%@BUILD_LDAP@%$BUILD_LDAP%g
16160 s%@BUILD_LDBM@%$BUILD_LDBM%g
16161 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16162 s%@BUILD_PERL@%$BUILD_PERL%g
16163 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16164 s%@BUILD_SHELL@%$BUILD_SHELL%g
16165 s%@BUILD_SQL@%$BUILD_SQL%g
16166 s%@BUILD_TCL@%$BUILD_TCL%g
16167 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16168 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16169 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16170 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16171 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16172 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16173 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16174 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16175 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16176 s%@LDAP_LIBS@%$LDAP_LIBS%g
16177 s%@LDIF_LIBS@%$LDIF_LIBS%g
16178 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16179 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16180 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16181 s%@LDBM_LIBS@%$LDBM_LIBS%g
16182 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16183 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16184 s%@WRAP_LIBS@%$WRAP_LIBS%g
16185 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16186 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16187 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16188 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16189 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16190 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16191 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16192 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16193 s%@KRB4_LIBS@%$KRB4_LIBS%g
16194 s%@KRB5_LIBS@%$KRB5_LIBS%g
16195 s%@READLINE_LIBS@%$READLINE_LIBS%g
16196 s%@SASL_LIBS@%$SASL_LIBS%g
16197 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16198 s%@TLS_LIBS@%$TLS_LIBS%g
16199 s%@MODULES_LIBS@%$MODULES_LIBS%g
16200 s%@AUTH_LIBS@%$AUTH_LIBS%g
16201 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16202 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16203 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16208 cat >> $CONFIG_STATUS <<\EOF
16210 # Split the substitutions into bite-sized pieces for seds with
16211 # small command number limits, like on Digital OSF/1 and HP-UX.
16212 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16213 ac_file=1 # Number of current file.
16214 ac_beg=1 # First line for current file.
16215 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16218 while $ac_more_lines; do
16219 if test $ac_beg -gt 1; then
16220 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16222 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16224 if test ! -s conftest.s$ac_file; then
16225 ac_more_lines=false
16226 rm -f conftest.s$ac_file
16228 if test -z "$ac_sed_cmds"; then
16229 ac_sed_cmds="sed -f conftest.s$ac_file"
16231 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16233 ac_file=`expr $ac_file + 1`
16235 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16238 if test -z "$ac_sed_cmds"; then
16243 cat >> $CONFIG_STATUS <<EOF
16245 CONFIG_FILES=\${CONFIG_FILES-"\
16246 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16247 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16248 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16249 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16250 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16251 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16252 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16253 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16254 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16255 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16256 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16257 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16258 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16259 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16260 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16261 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16262 include/Makefile:build/top.mk:include/Makefile.in \
16263 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16264 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16265 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16266 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16267 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16268 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16269 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16270 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16271 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16272 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16273 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16274 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16275 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16276 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16277 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16278 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16279 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16280 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16281 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16282 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16283 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16284 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16285 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16286 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16287 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16288 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16289 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16292 cat >> $CONFIG_STATUS <<\EOF
16293 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16296 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16297 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16298 *) ac_file_in="${ac_file}.in" ;;
16301 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16303 # Remove last slash and all that follows it. Not all systems have dirname.
16304 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16305 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16306 # The file is in a subdirectory.
16307 test ! -d "$ac_dir" && mkdir "$ac_dir"
16308 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16309 # A "../" for each directory in $ac_dir_suffix.
16310 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16312 ac_dir_suffix= ac_dots=
16315 case "$ac_given_srcdir" in
16317 if test -z "$ac_dots"; then top_srcdir=.
16318 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16319 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16320 *) # Relative path.
16321 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16322 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16325 case "$ac_given_INSTALL" in
16326 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16327 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16330 echo creating "$ac_file"
16332 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16334 *[Mm]akefile*) ac_comsub="1i\\
16335 # $configure_input" ;;
16339 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16341 s%@configure_input@%$configure_input%g
16342 s%@srcdir@%$srcdir%g
16343 s%@top_srcdir@%$top_srcdir%g
16344 s%@INSTALL@%$INSTALL%g
16345 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16349 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16350 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16352 # ac_d sets the value in "#define NAME VALUE" lines.
16353 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16354 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16357 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16358 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16359 ac_uB='\([ ]\)%\1#\2define\3'
16362 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16363 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16364 ac_eB='$%\1#\2define\3'
16368 if test "${CONFIG_HEADERS+set}" != set; then
16370 cat >> $CONFIG_STATUS <<EOF
16371 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16373 cat >> $CONFIG_STATUS <<\EOF
16375 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16378 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16379 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16380 *) ac_file_in="${ac_file}.in" ;;
16383 echo creating $ac_file
16385 rm -f conftest.frag conftest.in conftest.out
16386 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16387 cat $ac_file_inputs > conftest.in
16391 # Transform confdefs.h into a sed script conftest.vals that substitutes
16392 # the proper values into config.h.in to produce config.h. And first:
16393 # Protect against being on the right side of a sed subst in config.status.
16394 # Protect against being in an unquoted here document in config.status.
16395 rm -f conftest.vals
16396 cat > conftest.hdr <<\EOF
16399 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16403 sed -n -f conftest.hdr confdefs.h > conftest.vals
16406 # This sed command replaces #undef with comments. This is necessary, for
16407 # example, in the case of _POSIX_SOURCE, which is predefined and required
16408 # on some systems where configure will not decide to define it.
16409 cat >> conftest.vals <<\EOF
16410 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16413 # Break up conftest.vals because some shells have a limit on
16414 # the size of here documents, and old seds have small limits too.
16416 rm -f conftest.tail
16419 ac_lines=`grep -c . conftest.vals`
16420 # grep -c gives empty output for an empty file on some AIX systems.
16421 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16422 # Write a limited-size here document to conftest.frag.
16423 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16424 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16426 sed -f conftest.frag conftest.in > conftest.out
16428 mv conftest.out conftest.in
16429 ' >> $CONFIG_STATUS
16430 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16431 rm -f conftest.vals
16432 mv conftest.tail conftest.vals
16434 rm -f conftest.vals
16436 cat >> $CONFIG_STATUS <<\EOF
16437 rm -f conftest.frag conftest.h
16438 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16439 cat conftest.in >> conftest.h
16441 if cmp -s $ac_file conftest.h 2>/dev/null; then
16442 echo "$ac_file is unchanged"
16445 # Remove last slash and all that follows it. Not all systems have dirname.
16446 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16448 # The file is in a subdirectory.
16449 test ! -d "$ac_dir" && mkdir "$ac_dir"
16452 mv conftest.h $ac_file
16457 cat >> $CONFIG_STATUS <<EOF
16460 cat >> $CONFIG_STATUS <<\EOF
16463 echo Please \"make depend\" to build dependencies
16467 chmod +x $CONFIG_STATUS
16468 rm -fr confdefs* $ac_clean_files
16469 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1