3 # from OpenLDAP: pkg/ldap/configure.in,v 1.307 2000/06/05 21:56:28 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "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 for ac_dir in build $srcdir/build; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
653 elif test -f $ac_dir/shtool; then
655 ac_install_sh="$ac_aux_dir/shtool install -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
662 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
663 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
664 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
666 OL_VERSION=`cat $ac_aux_dir/version`
667 if test -z "$OL_VERSION"; then
668 { echo "configure: error: could not determine version" 1>&2; exit 1; }
671 echo "Configuring OpenLDAP $OL_VERSION ..."
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
676 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
678 # Make sure we can run config.sub.
679 if $ac_config_sub sun4 >/dev/null 2>&1; then :
680 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
683 ac_cv_host_alias=$host
684 case "$ac_cv_host_alias" in
688 if ac_cv_host_alias=`$ac_config_guess`; then :
689 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
691 *) ac_cv_host_alias=$nonopt ;;
695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
696 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo $ac_n "(cached) $ac_c" 1>&6
703 echo "$ac_t""$ac_cv_host" 1>&6
706 host_alias=$ac_cv_host_alias
707 host_cpu=$ac_cv_host_cpu
708 host_vendor=$ac_cv_host_vendor
709 host_os=$ac_cv_host_os
715 echo $ac_n "checking target system type""... $ac_c" 1>&6
716 echo "configure:717: checking target system type" >&5
717 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4 >/dev/null 2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 ac_cv_target_alias=$target
725 case "$ac_cv_target_alias" in
729 ac_cv_target_alias=$host_alias ;;
731 *) ac_cv_target_alias=$nonopt ;;
735 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
736 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
740 echo $ac_n "(cached) $ac_c" 1>&6
743 echo "$ac_t""$ac_cv_target" 1>&6
746 target_alias=$ac_cv_target_alias
747 target_cpu=$ac_cv_target_cpu
748 target_vendor=$ac_cv_target_vendor
749 target_os=$ac_cv_target_os
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
757 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
759 # Make sure we can run config.sub.
760 if $ac_config_sub sun4 >/dev/null 2>&1; then :
761 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
764 ac_cv_build_alias=$build
765 case "$ac_cv_build_alias" in
769 ac_cv_build_alias=$host_alias ;;
771 *) ac_cv_build_alias=$nonopt ;;
775 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
776 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
780 echo $ac_n "(cached) $ac_c" 1>&6
783 echo "$ac_t""$ac_cv_build" 1>&6
786 build_alias=$ac_cv_build_alias
787 build_cpu=$ac_cv_build_cpu
788 build_vendor=$ac_cv_build_vendor
789 build_os=$ac_cv_build_os
795 # Do some error checking and defaulting for the host and target type.
797 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
800 # 1. You are not allowed to specify --host, --target, and nonopt at the
802 # 2. Host defaults to nonopt.
803 # 3. If nonopt is not specified, then host defaults to the current host,
804 # as determined by config.guess.
805 # 4. Target and build default to nonopt.
806 # 5. If nonopt is not specified, then target and build default to host.
808 # The aliases save the names the user supplied, while $host etc.
809 # will get canonicalized.
810 case $host---$target---$nonopt in
811 NONE---*---* | *---NONE---* | *---*---NONE) ;;
812 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
815 test "$host_alias" != "$target_alias" &&
816 test "$program_prefix$program_suffix$program_transform_name" = \
818 program_prefix=${target_alias}-
821 # Find a good install program. We prefer a C program (faster),
822 # so one script is as good as another. But avoid the broken or
823 # incompatible versions:
824 # SysV /etc/install, /usr/sbin/install
825 # SunOS /usr/etc/install
828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
831 # ./install, which can be erroneously created by make from ./install.sh.
832 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
833 echo "configure:834: checking for a BSD compatible install" >&5
834 if test -z "$INSTALL"; then
835 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
839 for ac_dir in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 # Don't use installbsd from OSF since it installs stuff as root
847 for ac_prog in ginstall scoinst install; do
848 if test -f $ac_dir/$ac_prog; then
849 if test $ac_prog = install &&
850 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
851 # AIX install. It has an incompatible calling convention.
853 elif test $ac_prog = install &&
854 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # program-specific install script used by HP pwplus--don't use.
858 ac_cv_path_install="$ac_dir/$ac_prog -c"
869 if test "${ac_cv_path_install+set}" = set; then
870 INSTALL="$ac_cv_path_install"
872 # As a last resort, use the slow shell script. We don't cache a
873 # path for INSTALL within a source directory, because that will
874 # break other packages using the cache if that directory is
875 # removed, or if the path is relative.
876 INSTALL="$ac_install_sh"
879 echo "$ac_t""$INSTALL" 1>&6
881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
882 # It thinks the first close brace ends the variable substitution.
883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
890 echo "configure:891: checking whether build environment is sane" >&5
893 echo timestamp > conftestfile
894 # Do `set' in a subshell so we don't clobber the current shell's
895 # arguments. Must try -L first in case configure is actually a
896 # symlink; some systems play weird games with the mod time of symlinks
897 # (eg FreeBSD returns the mod time of the symlink's containing
900 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
901 if test "$*" = "X"; then
903 set X `ls -t $srcdir/configure conftestfile`
905 if test "$*" != "X $srcdir/configure conftestfile" \
906 && test "$*" != "X conftestfile $srcdir/configure"; then
908 # If neither matched, then we have a broken ls. This can happen
909 # if, for instance, CONFIG_SHELL is bash and it inherits a
910 # broken ls alias from the environment. This has actually
911 # happened. Such a system could not be considered "sane".
912 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
913 alias in your environment" 1>&2; exit 1; }
916 test "$2" = conftestfile
922 { echo "configure: error: newly created file is older than distributed files!
923 Check your system clock" 1>&2; exit 1; }
926 echo "$ac_t""yes" 1>&6
927 if test "$program_transform_name" = s,x,x,; then
928 program_transform_name=
930 # Double any \ or $. echo might interpret backslashes.
931 cat <<\EOF_SED > conftestsed
932 s,\\,\\\\,g; s,\$,$$,g
934 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
937 test "$program_prefix" != NONE &&
938 program_transform_name="s,^,${program_prefix},;$program_transform_name"
939 # Use a double $ so make ignores it.
940 test "$program_suffix" != NONE &&
941 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
943 # sed with no file args requires a program.
944 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
946 for ac_prog in mawk gawk nawk awk
948 # Extract the first word of "$ac_prog", so it can be a program name with args.
949 set dummy $ac_prog; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$AWK"; then
956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_AWK="$ac_prog"
970 AWK="$ac_cv_prog_AWK"
971 if test -n "$AWK"; then
972 echo "$ac_t""$AWK" 1>&6
974 echo "$ac_t""no" 1>&6
977 test -n "$AWK" && break
980 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${MAKE-make} sets \${MAKE}" >&5
982 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
983 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftestmake <<\EOF
988 @echo 'ac_maketemp="${MAKE}"'
990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
991 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
992 if test -n "$ac_maketemp"; then
993 eval ac_cv_prog_make_${ac_make}_set=yes
995 eval ac_cv_prog_make_${ac_make}_set=no
999 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1000 echo "$ac_t""yes" 1>&6
1003 echo "$ac_t""no" 1>&6
1004 SET_MAKE="MAKE=${MAKE-make}"
1013 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1014 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1019 missing_dir=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 ACLOCAL="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 AUTOCONF="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 AUTOMAKE="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1065 AUTOHEADER=autoheader
1066 echo "$ac_t""found" 1>&6
1068 AUTOHEADER="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 MAKEINFO="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1085 install_sh="$missing_dir/install-sh"
1086 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1088 for ac_prog in gnutar gtar tar
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$AMTAR"; then
1098 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_AMTAR="$ac_prog"
1112 AMTAR="$ac_cv_prog_AMTAR"
1113 if test -n "$AMTAR"; then
1114 echo "$ac_t""$AMTAR" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -n "$AMTAR" && break
1124 if test -n "$AMTAR"; then
1125 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_PACKAGE "$PACKAGE"
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_VERSION "$VERSION"
1143 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1144 echo "configure:1145: checking configure arguments" >&5
1149 ldap_subdir="/openldap"
1151 # Check whether --with-subdir or --without-subdir was given.
1152 if test "${with_subdir+set}" = set; then
1153 withval="$with_subdir"
1160 ldap_subdir="$withval"
1163 ldap_subdir="/$withval"
1170 # OpenLDAP --enable-debug
1171 # Check whether --enable-debug or --disable-debug was given.
1172 if test "${enable_debug+set}" = set; then
1173 enableval="$enable_debug"
1176 for ol_val in auto yes no ; do
1177 if test "$enableval" = "$ol_val" ; then
1181 if test "$ol_arg" = "invalid" ; then
1182 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1184 ol_enable_debug="$ol_arg"
1187 ol_enable_debug="yes"
1189 # end --enable-debug
1190 # OpenLDAP --enable-syslog
1191 # Check whether --enable-syslog or --disable-syslog was given.
1192 if test "${enable_syslog+set}" = set; then
1193 enableval="$enable_syslog"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1204 ol_enable_syslog="$ol_arg"
1207 ol_enable_syslog="auto"
1209 # end --enable-syslog
1210 # OpenLDAP --enable-proctitle
1211 # Check whether --enable-proctitle or --disable-proctitle was given.
1212 if test "${enable_proctitle+set}" = set; then
1213 enableval="$enable_proctitle"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1224 ol_enable_proctitle="$ol_arg"
1227 ol_enable_proctitle="yes"
1229 # end --enable-proctitle
1230 # OpenLDAP --enable-cache
1231 # Check whether --enable-cache or --disable-cache was given.
1232 if test "${enable_cache+set}" = set; then
1233 enableval="$enable_cache"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1244 ol_enable_cache="$ol_arg"
1247 ol_enable_cache="yes"
1249 # end --enable-cache
1250 # OpenLDAP --enable-referrals
1251 # Check whether --enable-referrals or --disable-referrals was given.
1252 if test "${enable_referrals+set}" = set; then
1253 enableval="$enable_referrals"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1264 ol_enable_referrals="$ol_arg"
1267 ol_enable_referrals="yes"
1269 # end --enable-referrals
1270 # OpenLDAP --enable-kbind
1271 # Check whether --enable-kbind or --disable-kbind was given.
1272 if test "${enable_kbind+set}" = set; then
1273 enableval="$enable_kbind"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1284 ol_enable_kbind="$ol_arg"
1287 ol_enable_kbind="auto"
1289 # end --enable-kbind
1290 # OpenLDAP --enable-cldap
1291 # Check whether --enable-cldap or --disable-cldap was given.
1292 if test "${enable_cldap+set}" = set; then
1293 enableval="$enable_cldap"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1304 ol_enable_cldap="$ol_arg"
1307 ol_enable_cldap="no"
1309 # end --enable-cldap
1310 # OpenLDAP --enable-ldapi
1311 # Check whether --enable-ldapi or --disable-ldapi was given.
1312 if test "${enable_ldapi+set}" = set; then
1313 enableval="$enable_ldapi"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1324 ol_enable_ldapi="$ol_arg"
1327 ol_enable_ldapi="no"
1329 # end --enable-ldapi
1330 # OpenLDAP --enable-x_compile
1331 # Check whether --enable-x_compile or --disable-x_compile was given.
1332 if test "${enable_x_compile+set}" = set; then
1333 enableval="$enable_x_compile"
1336 for ol_val in yes no ; do
1337 if test "$enableval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1344 ol_enable_x_compile="$ol_arg"
1347 ol_enable_x_compile="no"
1349 # end --enable-x_compile
1352 # OpenLDAP --with-cyrus_sasl
1353 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1354 if test "${with_cyrus_sasl+set}" = set; then
1355 withval="$with_cyrus_sasl"
1358 for ol_val in auto yes no ; do
1359 if test "$withval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1366 ol_with_cyrus_sasl="$ol_arg"
1369 ol_with_cyrus_sasl="auto"
1371 # end --with-cyrus_sasl
1373 # OpenLDAP --with-fetch
1374 # Check whether --with-fetch or --without-fetch was given.
1375 if test "${with_fetch+set}" = set; then
1376 withval="$with_fetch"
1379 for ol_val in auto yes no ; do
1380 if test "$withval" = "$ol_val" ; then
1384 if test "$ol_arg" = "invalid" ; then
1385 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1387 ol_with_fetch="$ol_arg"
1390 ol_with_fetch="auto"
1394 # OpenLDAP --with-kerberos
1395 # Check whether --with-kerberos or --without-kerberos was given.
1396 if test "${with_kerberos+set}" = set; then
1397 withval="$with_kerberos"
1400 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1401 if test "$withval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1408 ol_with_kerberos="$ol_arg"
1411 ol_with_kerberos="auto"
1413 # end --with-kerberos
1415 # OpenLDAP --with-readline
1416 # Check whether --with-readline or --without-readline was given.
1417 if test "${with_readline+set}" = set; then
1418 withval="$with_readline"
1421 for ol_val in auto yes no ; do
1422 if test "$withval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1429 ol_with_readline="$ol_arg"
1432 ol_with_readline="auto"
1434 # end --with-readline
1436 # OpenLDAP --with-threads
1437 # Check whether --with-threads or --without-threads was given.
1438 if test "${with_threads+set}" = set; then
1439 withval="$with_threads"
1442 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1443 if test "$withval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1450 ol_with_threads="$ol_arg"
1453 ol_with_threads="auto"
1455 # end --with-threads
1457 # OpenLDAP --with-tls
1458 # Check whether --with-tls or --without-tls was given.
1459 if test "${with_tls+set}" = set; then
1463 for ol_val in auto ssleay openssl yes no ; do
1464 if test "$withval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1471 ol_with_tls="$ol_arg"
1478 # OpenLDAP --with-yielding_select
1479 # Check whether --with-yielding_select or --without-yielding_select was given.
1480 if test "${with_yielding_select+set}" = set; then
1481 withval="$with_yielding_select"
1484 for ol_val in auto yes no manual ; do
1485 if test "$withval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1492 ol_with_yielding_select="$ol_arg"
1495 ol_with_yielding_select="auto"
1497 # end --with-yielding_select
1501 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1502 if test "${with_xxslapdoptions+set}" = set; then
1503 withval="$with_xxslapdoptions"
1507 # OpenLDAP --enable-slapd
1508 # Check whether --enable-slapd or --disable-slapd was given.
1509 if test "${enable_slapd+set}" = set; then
1510 enableval="$enable_slapd"
1513 for ol_val in auto yes no ; do
1514 if test "$enableval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1521 ol_enable_slapd="$ol_arg"
1524 ol_enable_slapd="yes"
1526 # end --enable-slapd
1527 # OpenLDAP --enable-cleartext
1528 # Check whether --enable-cleartext or --disable-cleartext was given.
1529 if test "${enable_cleartext+set}" = set; then
1530 enableval="$enable_cleartext"
1533 for ol_val in auto yes no ; do
1534 if test "$enableval" = "$ol_val" ; then
1538 if test "$ol_arg" = "invalid" ; then
1539 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1541 ol_enable_cleartext="$ol_arg"
1544 ol_enable_cleartext="yes"
1546 # end --enable-cleartext
1547 # OpenLDAP --enable-crypt
1548 # Check whether --enable-crypt or --disable-crypt was given.
1549 if test "${enable_crypt+set}" = set; then
1550 enableval="$enable_crypt"
1553 for ol_val in auto yes no ; do
1554 if test "$enableval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1561 ol_enable_crypt="$ol_arg"
1564 ol_enable_crypt="auto"
1566 # end --enable-crypt
1567 # OpenLDAP --enable-kpasswd
1568 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1569 if test "${enable_kpasswd+set}" = set; then
1570 enableval="$enable_kpasswd"
1573 for ol_val in auto yes no ; do
1574 if test "$enableval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1581 ol_enable_kpasswd="$ol_arg"
1584 ol_enable_kpasswd="no"
1586 # end --enable-kpasswd
1587 # OpenLDAP --enable-spasswd
1588 # Check whether --enable-spasswd or --disable-spasswd was given.
1589 if test "${enable_spasswd+set}" = set; then
1590 enableval="$enable_spasswd"
1593 for ol_val in auto yes no ; do
1594 if test "$enableval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1601 ol_enable_spasswd="$ol_arg"
1604 ol_enable_spasswd="no"
1606 # end --enable-spasswd
1607 # OpenLDAP --enable-modules
1608 # Check whether --enable-modules or --disable-modules was given.
1609 if test "${enable_modules+set}" = set; then
1610 enableval="$enable_modules"
1613 for ol_val in auto yes no ; do
1614 if test "$enableval" = "$ol_val" ; then
1618 if test "$ol_arg" = "invalid" ; then
1619 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1621 ol_enable_modules="$ol_arg"
1624 ol_enable_modules="no"
1626 # end --enable-modules
1627 # OpenLDAP --enable-multimaster
1628 # Check whether --enable-multimaster or --disable-multimaster was given.
1629 if test "${enable_multimaster+set}" = set; then
1630 enableval="$enable_multimaster"
1633 for ol_val in auto yes no ; do
1634 if test "$enableval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1641 ol_enable_multimaster="$ol_arg"
1644 ol_enable_multimaster="no"
1646 # end --enable-multimaster
1647 # OpenLDAP --enable-phonetic
1648 # Check whether --enable-phonetic or --disable-phonetic was given.
1649 if test "${enable_phonetic+set}" = set; then
1650 enableval="$enable_phonetic"
1653 for ol_val in auto yes no ; do
1654 if test "$enableval" = "$ol_val" ; then
1658 if test "$ol_arg" = "invalid" ; then
1659 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1661 ol_enable_phonetic="$ol_arg"
1664 ol_enable_phonetic="no"
1666 # end --enable-phonetic
1667 # OpenLDAP --enable-quipu
1668 # Check whether --enable-quipu or --disable-quipu was given.
1669 if test "${enable_quipu+set}" = set; then
1670 enableval="$enable_quipu"
1673 for ol_val in auto yes no ; do
1674 if test "$enableval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1681 ol_enable_quipu="$ol_arg"
1684 ol_enable_quipu="no"
1686 # end --enable-quipu
1687 # OpenLDAP --enable-rlookups
1688 # Check whether --enable-rlookups or --disable-rlookups was given.
1689 if test "${enable_rlookups+set}" = set; then
1690 enableval="$enable_rlookups"
1693 for ol_val in auto yes no ; do
1694 if test "$enableval" = "$ol_val" ; then
1698 if test "$ol_arg" = "invalid" ; then
1699 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1701 ol_enable_rlookups="$ol_arg"
1704 ol_enable_rlookups="auto"
1706 # end --enable-rlookups
1707 # OpenLDAP --enable-aci
1708 # Check whether --enable-aci or --disable-aci was given.
1709 if test "${enable_aci+set}" = set; then
1710 enableval="$enable_aci"
1713 for ol_val in auto yes no ; do
1714 if test "$enableval" = "$ol_val" ; then
1718 if test "$ol_arg" = "invalid" ; then
1719 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1721 ol_enable_aci="$ol_arg"
1727 # OpenLDAP --enable-wrappers
1728 # Check whether --enable-wrappers or --disable-wrappers was given.
1729 if test "${enable_wrappers+set}" = set; then
1730 enableval="$enable_wrappers"
1733 for ol_val in auto yes no ; do
1734 if test "$enableval" = "$ol_val" ; then
1738 if test "$ol_arg" = "invalid" ; then
1739 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1741 ol_enable_wrappers="$ol_arg"
1744 ol_enable_wrappers="no"
1746 # end --enable-wrappers
1747 # OpenLDAP --enable-dynamic
1748 # Check whether --enable-dynamic or --disable-dynamic was given.
1749 if test "${enable_dynamic+set}" = set; then
1750 enableval="$enable_dynamic"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1761 ol_enable_dynamic="$ol_arg"
1764 ol_enable_dynamic="no"
1766 # end --enable-dynamic
1768 # OpenLDAP --enable-dnssrv
1769 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1770 if test "${enable_dnssrv+set}" = set; then
1771 enableval="$enable_dnssrv"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1782 ol_enable_dnssrv="$ol_arg"
1785 ol_enable_dnssrv="no"
1787 # end --enable-dnssrv
1788 # OpenLDAP --with-dnssrv_module
1789 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1790 if test "${with_dnssrv_module+set}" = set; then
1791 withval="$with_dnssrv_module"
1794 for ol_val in static dynamic ; do
1795 if test "$withval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1802 ol_with_dnssrv_module="$ol_arg"
1805 ol_with_dnssrv_module="static"
1807 # end --with-dnssrv_module
1809 # OpenLDAP --enable-ldap
1810 # Check whether --enable-ldap or --disable-ldap was given.
1811 if test "${enable_ldap+set}" = set; then
1812 enableval="$enable_ldap"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1823 ol_enable_ldap="$ol_arg"
1829 # OpenLDAP --with-ldap_module
1830 # Check whether --with-ldap_module or --without-ldap_module was given.
1831 if test "${with_ldap_module+set}" = set; then
1832 withval="$with_ldap_module"
1835 for ol_val in static dynamic ; do
1836 if test "$withval" = "$ol_val" ; then
1840 if test "$ol_arg" = "invalid" ; then
1841 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1843 ol_with_ldap_module="$ol_arg"
1846 ol_with_ldap_module="static"
1848 # end --with-ldap_module
1850 # OpenLDAP --enable-ldbm
1851 # Check whether --enable-ldbm or --disable-ldbm was given.
1852 if test "${enable_ldbm+set}" = set; then
1853 enableval="$enable_ldbm"
1856 for ol_val in auto yes no ; do
1857 if test "$enableval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1864 ol_enable_ldbm="$ol_arg"
1867 ol_enable_ldbm="yes"
1870 # OpenLDAP --with-ldbm_api
1871 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1872 if test "${with_ldbm_api+set}" = set; then
1873 withval="$with_ldbm_api"
1876 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1877 if test "$withval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1884 ol_with_ldbm_api="$ol_arg"
1887 ol_with_ldbm_api="auto"
1889 # end --with-ldbm_api
1891 # OpenLDAP --with-ldbm_module
1892 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1893 if test "${with_ldbm_module+set}" = set; then
1894 withval="$with_ldbm_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1905 ol_with_ldbm_module="$ol_arg"
1908 ol_with_ldbm_module="static"
1910 # end --with-ldbm_module
1912 # OpenLDAP --with-ldbm_type
1913 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1914 if test "${with_ldbm_type+set}" = set; then
1915 withval="$with_ldbm_type"
1918 for ol_val in auto btree hash ; do
1919 if test "$withval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1926 ol_with_ldbm_type="$ol_arg"
1929 ol_with_ldbm_type="auto"
1931 # end --with-ldbm_type
1933 # OpenLDAP --enable-passwd
1934 # Check whether --enable-passwd or --disable-passwd was given.
1935 if test "${enable_passwd+set}" = set; then
1936 enableval="$enable_passwd"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1947 ol_enable_passwd="$ol_arg"
1950 ol_enable_passwd="no"
1952 # end --enable-passwd
1953 # OpenLDAP --with-passwd_module
1954 # Check whether --with-passwd_module or --without-passwd_module was given.
1955 if test "${with_passwd_module+set}" = set; then
1956 withval="$with_passwd_module"
1959 for ol_val in static dynamic ; do
1960 if test "$withval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1967 ol_with_passwd_module="$ol_arg"
1970 ol_with_passwd_module="static"
1972 # end --with-passwd_module
1974 # OpenLDAP --enable-perl
1975 # Check whether --enable-perl or --disable-perl was given.
1976 if test "${enable_perl+set}" = set; then
1977 enableval="$enable_perl"
1980 for ol_val in auto yes no ; do
1981 if test "$enableval" = "$ol_val" ; then
1985 if test "$ol_arg" = "invalid" ; then
1986 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1988 ol_enable_perl="$ol_arg"
1994 # OpenLDAP --with-perl_module
1995 # Check whether --with-perl_module or --without-perl_module was given.
1996 if test "${with_perl_module+set}" = set; then
1997 withval="$with_perl_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2008 ol_with_perl_module="$ol_arg"
2011 ol_with_perl_module="static"
2013 # end --with-perl_module
2015 # OpenLDAP --enable-shell
2016 # Check whether --enable-shell or --disable-shell was given.
2017 if test "${enable_shell+set}" = set; then
2018 enableval="$enable_shell"
2021 for ol_val in auto yes no ; do
2022 if test "$enableval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2029 ol_enable_shell="$ol_arg"
2032 ol_enable_shell="no"
2034 # end --enable-shell
2035 # OpenLDAP --with-shell_module
2036 # Check whether --with-shell_module or --without-shell_module was given.
2037 if test "${with_shell_module+set}" = set; then
2038 withval="$with_shell_module"
2041 for ol_val in static dynamic ; do
2042 if test "$withval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2049 ol_with_shell_module="$ol_arg"
2052 ol_with_shell_module="static"
2054 # end --with-shell_module
2056 # OpenLDAP --enable-sql
2057 # Check whether --enable-sql or --disable-sql was given.
2058 if test "${enable_sql+set}" = set; then
2059 enableval="$enable_sql"
2062 for ol_val in auto yes no ; do
2063 if test "$enableval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2070 ol_enable_sql="$ol_arg"
2076 # OpenLDAP --with-sql_module
2077 # Check whether --with-sql_module or --without-sql_module was given.
2078 if test "${with_sql_module+set}" = set; then
2079 withval="$with_sql_module"
2082 for ol_val in static dynamic ; do
2083 if test "$withval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2090 ol_with_sql_module="$ol_arg"
2093 ol_with_sql_module="static"
2095 # end --with-sql_module
2097 # OpenLDAP --enable-tcl
2098 # Check whether --enable-tcl or --disable-tcl was given.
2099 if test "${enable_tcl+set}" = set; then
2100 enableval="$enable_tcl"
2103 for ol_val in auto yes no ; do
2104 if test "$enableval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2111 ol_enable_tcl="$ol_arg"
2117 # OpenLDAP --with-tcl_module
2118 # Check whether --with-tcl_module or --without-tcl_module was given.
2119 if test "${with_tcl_module+set}" = set; then
2120 withval="$with_tcl_module"
2123 for ol_val in static dynamic ; do
2124 if test "$withval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2131 ol_with_tcl_module="$ol_arg"
2134 ol_with_tcl_module="static"
2136 # end --with-tcl_module
2139 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2140 if test "${with_xxslurpdoptions+set}" = set; then
2141 withval="$with_xxslurpdoptions"
2145 # OpenLDAP --enable-slurpd
2146 # Check whether --enable-slurpd or --disable-slurpd was given.
2147 if test "${enable_slurpd+set}" = set; then
2148 enableval="$enable_slurpd"
2151 for ol_val in auto yes no ; do
2152 if test "$enableval" = "$ol_val" ; then
2156 if test "$ol_arg" = "invalid" ; then
2157 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2159 ol_enable_slurpd="$ol_arg"
2162 ol_enable_slurpd="auto"
2164 # end --enable-slurpd
2166 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2167 if test "${with_xxliboptions+set}" = set; then
2168 withval="$with_xxliboptions"
2172 # Check whether --enable-static or --disable-static was given.
2173 if test "${enable_static+set}" = set; then
2174 enableval="$enable_static"
2175 p=${PACKAGE-default}
2176 case "$enableval" in
2177 yes) enable_static=yes ;;
2178 no) enable_static=no ;;
2181 # Look at the argument we got. We use all the common list separators.
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2183 for pkg in $enableval; do
2184 if test "X$pkg" = "X$p"; then
2195 # Check whether --enable-shared or --disable-shared was given.
2196 if test "${enable_shared+set}" = set; then
2197 enableval="$enable_shared"
2198 p=${PACKAGE-default}
2199 case "$enableval" in
2200 yes) enable_shared=yes ;;
2201 no) enable_shared=no ;;
2204 # Look at the argument we got. We use all the common list separators.
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2206 for pkg in $enableval; do
2207 if test "X$pkg" = "X$p"; then
2221 if test $ol_enable_slapd = no ; then
2222 if test $ol_enable_dnssrv = yes ; then
2223 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2225 if test $ol_enable_ldap = yes ; then
2226 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2228 if test $ol_enable_ldbm = yes ; then
2229 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2231 if test $ol_enable_passwd = yes ; then
2232 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2234 if test $ol_enable_perl = yes ; then
2235 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2237 if test $ol_enable_shell = yes ; then
2238 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2240 if test $ol_enable_tcl = yes ; then
2241 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2243 if test $ol_enable_sql = yes ; then
2244 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2246 if test $ol_enable_modules = yes ; then
2247 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2249 if test $ol_enable_multimaster = yes ; then
2250 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2252 if test $ol_enable_wrappers = yes ; then
2253 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2255 if test $ol_enable_phonetic = yes ; then
2256 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2258 if test $ol_enable_quipu = yes ; then
2259 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2261 if test $ol_enable_rlookups = yes ; then
2262 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2264 if test $ol_enable_aci = yes ; then
2265 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2267 if test $ol_with_ldbm_api != auto ; then
2268 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2270 if test $ol_with_ldbm_type != auto ; then
2271 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2273 if test $ol_with_dnssrv_module != static ; then
2274 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2276 if test $ol_with_ldap_module != static ; then
2277 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2279 if test $ol_with_ldbm_module != static ; then
2280 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2282 if test $ol_with_passwd_module != static ; then
2283 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2285 if test $ol_with_perl_module != static ; then
2286 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2288 if test $ol_with_shell_module != static ; then
2289 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2291 if test $ol_with_tcl_module != static ; then
2292 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2294 if test $ol_with_sql_module != static ; then
2295 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2297 if test $ol_enable_slurpd = yes ; then
2298 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2301 # force settings to no
2311 ol_enable_modules=no
2312 ol_enable_multimaster=no
2313 ol_enable_phonetic=no
2315 ol_enable_rlookups=no
2317 ol_enable_wrappers=no
2318 ol_enable_dynamic=no
2321 ol_with_ldbm_type=no
2323 ol_with_dnssrv_module=static
2324 ol_with_ldap_module=static
2325 ol_with_ldbm_module=static
2326 ol_with_passwd_module=static
2327 ol_with_perl_module=static
2328 ol_with_shell_module=static
2329 ol_with_tcl_module=static
2330 ol_with_sql_module=static
2334 elif test $ol_enable_ldbm = no ; then
2336 if test $ol_with_ldbm_api != auto ; then
2337 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2340 if test $ol_with_ldbm_type != auto ; then
2341 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2344 if test $ol_with_ldbm_module != static ; then
2345 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2348 if test $ol_enable_modules != yes -a \
2349 $ol_enable_dnssrv = no -a \
2350 $ol_enable_ldap = no -a \
2351 $ol_enable_passwd = no -a \
2352 $ol_enable_perl = no -a \
2353 $ol_enable_shell = no -a \
2354 $ol_enable_sql = no -a \
2355 $ol_enable_tcl = no ; then
2356 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2360 ol_with_ldbm_type=no
2361 ol_with_ldbm_module=static
2364 if test $ol_with_ldbm_api = gdbm -a \
2365 $ol_with_ldbm_type = btree ; then
2366 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2368 if test $ol_with_ldbm_api = mdbm -a \
2369 $ol_with_ldbm_type = btree ; then
2370 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2372 if test $ol_with_ldbm_api = ndbm -a \
2373 $ol_with_ldbm_type = btree ; then
2374 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2378 if test $ol_enable_slurpd = yes ; then
2379 if test $ol_with_threads = no ; then
2380 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2384 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2385 if test $ol_with_kerberos = no ; then
2386 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2388 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2389 if test $ol_with_kerberos != auto ; then
2390 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2396 if test $ol_enable_spasswd = yes ; then
2397 if test $ol_with_cyrus_sasl = no ; then
2398 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2403 echo "$ac_t""done" 1>&6
2430 BUILD_DNSSRV_DYNAMIC=static
2431 BUILD_LDAP_DYNAMIC=static
2432 BUILD_LDBM_DYNAMIC=static
2433 BUILD_PASSWD_DYNAMIC=static
2434 BUILD_PERL_DYNAMIC=static
2435 BUILD_SHELL_DYNAMIC=static
2436 BUILD_TCL_DYNAMIC=static
2437 BUILD_SQL_DYNAMIC=static
2439 SLAPD_MODULES_LDFLAGS=
2440 SLAPD_MODULES_CPPFLAGS=
2463 cat >> confdefs.h <<\EOF
2464 #define HAVE_MKVERSION 1
2472 *-*-aix*) if test -z "$CC" ; then
2473 case "$ol_with_threads" in
2474 auto | yes | posix) ol_aix_threads=yes ;;
2480 if test $ol_aix_threads = yes ; then
2481 if test -z "${CC}" ; then
2482 for ac_prog in cc_r xlc_r cc
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2487 echo "configure:2488: checking for $ac_word" >&5
2488 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2496 for ac_dir in $ac_dummy; do
2497 test -z "$ac_dir" && ac_dir=.
2498 if test -f $ac_dir/$ac_word; then
2499 ac_cv_prog_CC="$ac_prog"
2507 if test -n "$CC"; then
2508 echo "$ac_t""$CC" 1>&6
2510 echo "$ac_t""no" 1>&6
2513 test -n "$CC" && break
2517 if test "$CC" = cc ; then
2518 if test $ol_with_threads != auto ; then
2519 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2521 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2527 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2528 ol_with_threads=posix
2529 ol_cv_pthread_create=yes
2533 if test -z "${CC}"; then
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_word" >&5
2540 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2548 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 if test -f $ac_dir/$ac_word; then
2551 ac_cv_prog_CC="$ac_prog"
2559 if test -n "$CC"; then
2560 echo "$ac_t""$CC" 1>&6
2562 echo "$ac_t""no" 1>&6
2565 test -n "$CC" && break
2573 # Check whether --enable-fast-install or --disable-fast-install was given.
2574 if test "${enable_fast_install+set}" = set; then
2575 enableval="$enable_fast_install"
2576 p=${PACKAGE-default}
2577 case "$enableval" in
2578 yes) enable_fast_install=yes ;;
2579 no) enable_fast_install=no ;;
2581 enable_fast_install=no
2582 # Look at the argument we got. We use all the common list separators.
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2584 for pkg in $enableval; do
2585 if test "X$pkg" = "X$p"; then
2586 enable_fast_install=yes
2593 enable_fast_install=yes
2596 # Extract the first word of "ranlib", so it can be a program name with args.
2597 set dummy ranlib; ac_word=$2
2598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_word" >&5
2600 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 if test -n "$RANLIB"; then
2604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2608 for ac_dir in $ac_dummy; do
2609 test -z "$ac_dir" && ac_dir=.
2610 if test -f $ac_dir/$ac_word; then
2611 ac_cv_prog_RANLIB="ranlib"
2616 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2619 RANLIB="$ac_cv_prog_RANLIB"
2620 if test -n "$RANLIB"; then
2621 echo "$ac_t""$RANLIB" 1>&6
2623 echo "$ac_t""no" 1>&6
2626 # Extract the first word of "gcc", so it can be a program name with args.
2627 set dummy gcc; ac_word=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2638 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2649 if test -n "$CC"; then
2650 echo "$ac_t""$CC" 1>&6
2652 echo "$ac_t""no" 1>&6
2655 if test -z "$CC"; then
2656 # Extract the first word of "cc", so it can be a program name with args.
2657 set dummy cc; ac_word=$2
2658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_word" >&5
2660 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2669 for ac_dir in $ac_dummy; do
2670 test -z "$ac_dir" && ac_dir=.
2671 if test -f $ac_dir/$ac_word; then
2672 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2673 ac_prog_rejected=yes
2681 if test $ac_prog_rejected = yes; then
2682 # We found a bogon in the path, so make sure we never use it.
2683 set dummy $ac_cv_prog_CC
2685 if test $# -gt 0; then
2686 # We chose a different compiler from the bogus one.
2687 # However, it has the same basename, so the bogon will be chosen
2688 # first if we set CC to just the basename; use the full file name.
2690 set dummy "$ac_dir/$ac_word" "$@"
2698 if test -n "$CC"; then
2699 echo "$ac_t""$CC" 1>&6
2701 echo "$ac_t""no" 1>&6
2704 if test -z "$CC"; then
2705 case "`uname -s`" in
2706 *win32* | *WIN32* | *CYGWIN*)
2707 # Extract the first word of "cl", so it can be a program name with args.
2708 set dummy cl; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2738 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2742 echo "configure:2743: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2749 cross_compiling=$ac_cv_prog_cc_cross
2751 cat > conftest.$ac_ext << EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2758 if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 ac_cv_prog_cc_works=yes
2760 # If we can't run a trivial program, we are probably using a cross compiler.
2761 if (./conftest; exit) 2>/dev/null; then
2762 ac_cv_prog_cc_cross=no
2764 ac_cv_prog_cc_cross=yes
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 ac_cv_prog_cc_works=no
2773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2777 cross_compiling=$ac_cv_prog_cc_cross
2779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2780 if test $ac_cv_prog_cc_works = no; then
2781 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2784 echo "configure:2785: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2786 cross_compiling=$ac_cv_prog_cc_cross
2788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2789 echo "configure:2790: checking whether we are using GNU C" >&5
2790 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.c <<EOF
2798 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2807 if test $ac_cv_prog_gcc = yes; then
2813 ac_test_CFLAGS="${CFLAGS+set}"
2814 ac_save_CFLAGS="$CFLAGS"
2816 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2817 echo "configure:2818: checking whether ${CC-cc} accepts -g" >&5
2818 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 echo 'void f(){}' > conftest.c
2822 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2831 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2832 if test "$ac_test_CFLAGS" = set; then
2833 CFLAGS="$ac_save_CFLAGS"
2834 elif test $ac_cv_prog_cc_g = yes; then
2835 if test "$GCC" = yes; then
2841 if test "$GCC" = yes; then
2848 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2849 if test "${with_gnu_ld+set}" = set; then
2850 withval="$with_gnu_ld"
2851 test "$withval" = no || with_gnu_ld=yes
2857 if test "$ac_cv_prog_gcc" = yes; then
2858 # Check if gcc -print-prog-name=ld gives a path.
2859 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2860 echo "configure:2861: checking for ld used by GCC" >&5
2861 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2863 # Accept absolute paths.
2864 [\\/]* | [A-Za-z]:[\\/]*)
2865 re_direlt='/[^/][^/]*/\.\./'
2866 # Canonicalize the path of ld
2867 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2868 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2869 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2871 test -z "$LD" && LD="$ac_prog"
2874 # If it fails, then pretend we aren't using GCC.
2878 # If it is relative, then search for the first ld in PATH.
2882 elif test "$with_gnu_ld" = yes; then
2883 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2884 echo "configure:2885: checking for GNU ld" >&5
2886 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2887 echo "configure:2888: checking for non-GNU ld" >&5
2889 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 if test -z "$LD"; then
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2894 for ac_dir in $PATH; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2897 ac_cv_path_LD="$ac_dir/$ac_prog"
2898 # Check to see if the program is GNU ld. I'd rather use --version,
2899 # but apparently some GNU ld's only accept -v.
2900 # Break only if it was the GNU/non-GNU ld that we prefer.
2901 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2902 test "$with_gnu_ld" != no && break
2904 test "$with_gnu_ld" != yes && break
2910 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2915 if test -n "$LD"; then
2916 echo "$ac_t""$LD" 1>&6
2918 echo "$ac_t""no" 1>&6
2920 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2921 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2922 echo "configure:2923: checking if the linker ($LD) is GNU ld" >&5
2923 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2927 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2928 ac_cv_prog_gnu_ld=yes
2930 ac_cv_prog_gnu_ld=no
2934 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2937 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2938 echo "configure:2939: checking for BSD-compatible nm" >&5
2939 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 if test -n "$NM"; then
2943 # Let the user override the test.
2946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2947 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2948 test -z "$ac_dir" && ac_dir=.
2949 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2950 # Check to see if the nm accepts a BSD-compat flag.
2951 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2952 # nm: unknown option "B" ignored
2953 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2954 ac_cv_path_NM="$ac_dir/nm -B"
2956 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2957 ac_cv_path_NM="$ac_dir/nm -p"
2960 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2961 continue # so that we can try to find one that supports BSD flags
2966 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2971 echo "$ac_t""$NM" 1>&6
2973 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2974 echo "configure:2975: checking whether ln -s works" >&5
2975 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2979 if ln -s X conftestdata 2>/dev/null
2982 ac_cv_prog_LN_S="ln -s"
2987 LN_S="$ac_cv_prog_LN_S"
2988 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2989 echo "$ac_t""yes" 1>&6
2991 echo "$ac_t""no" 1>&6
2994 if test $host != $build; then
2995 ac_tool_prefix=${host_alias}-
3002 NONE) lt_target="$host" ;;
3003 *) lt_target="$target" ;;
3006 # Check for any special flags to pass to ltconfig.
3007 libtool_flags="--cache-file=$cache_file"
3008 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3009 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3010 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3011 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3012 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3013 libtool_flags="$libtool_flags --enable-dlopen"
3014 libtool_flags="$libtool_flags --enable-win32-dll"
3015 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3016 if test "${enable_libtool_lock+set}" = set; then
3017 enableval="$enable_libtool_lock"
3021 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3022 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3024 # Some flags need to be propagated to the compiler or linker for good
3026 case "$lt_target" in
3028 # Find out which ABI we are using.
3029 echo '#line 3030 "configure"' > conftest.$ac_ext
3030 if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 case "`/usr/bin/file conftest.o`" in
3047 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3048 SAVE_CFLAGS="$CFLAGS"
3049 CFLAGS="$CFLAGS -belf"
3050 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3051 echo "configure:3052: checking whether the C compiler needs -belf" >&5
3052 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3063 if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3065 lt_cv_cc_needs_belf=yes
3067 echo "configure: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3070 lt_cv_cc_needs_belf=no
3075 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3076 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3077 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3078 CFLAGS="$SAVE_CFLAGS"
3082 *-*-cygwin* | *-*-mingw*)
3083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$DLLTOOL"; then
3091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3105 DLLTOOL="$ac_cv_prog_DLLTOOL"
3106 if test -n "$DLLTOOL"; then
3107 echo "$ac_t""$DLLTOOL" 1>&6
3109 echo "$ac_t""no" 1>&6
3113 if test -z "$ac_cv_prog_DLLTOOL"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "dlltool", so it can be a program name with args.
3116 set dummy dlltool; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test -n "$DLLTOOL"; then
3123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_prog_DLLTOOL="dlltool"
3135 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3138 DLLTOOL="$ac_cv_prog_DLLTOOL"
3139 if test -n "$DLLTOOL"; then
3140 echo "$ac_t""$DLLTOOL" 1>&6
3142 echo "$ac_t""no" 1>&6
3150 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}as; ac_word=$2
3152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_word" >&5
3154 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 if test -n "$AS"; then
3158 ac_cv_prog_AS="$AS" # Let the user override the test.
3160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3162 for ac_dir in $ac_dummy; do
3163 test -z "$ac_dir" && ac_dir=.
3164 if test -f $ac_dir/$ac_word; then
3165 ac_cv_prog_AS="${ac_tool_prefix}as"
3173 if test -n "$AS"; then
3174 echo "$ac_t""$AS" 1>&6
3176 echo "$ac_t""no" 1>&6
3180 if test -z "$ac_cv_prog_AS"; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "as", so it can be a program name with args.
3183 set dummy as; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$AS"; then
3190 ac_cv_prog_AS="$AS" # Let the user override the test.
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3194 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f $ac_dir/$ac_word; then
3202 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3206 if test -n "$AS"; then
3207 echo "$ac_t""$AS" 1>&6
3209 echo "$ac_t""no" 1>&6
3217 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test -n "$OBJDUMP"; then
3225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3229 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 if test -f $ac_dir/$ac_word; then
3232 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3239 OBJDUMP="$ac_cv_prog_OBJDUMP"
3240 if test -n "$OBJDUMP"; then
3241 echo "$ac_t""$OBJDUMP" 1>&6
3243 echo "$ac_t""no" 1>&6
3247 if test -z "$ac_cv_prog_OBJDUMP"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "objdump", so it can be a program name with args.
3250 set dummy objdump; ac_word=$2
3251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_word" >&5
3253 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 if test -n "$OBJDUMP"; then
3257 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3261 for ac_dir in $ac_dummy; do
3262 test -z "$ac_dir" && ac_dir=.
3263 if test -f $ac_dir/$ac_word; then
3264 ac_cv_prog_OBJDUMP="objdump"
3269 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3272 OBJDUMP="$ac_cv_prog_OBJDUMP"
3273 if test -n "$OBJDUMP"; then
3274 echo "$ac_t""$OBJDUMP" 1>&6
3276 echo "$ac_t""no" 1>&6
3289 # Save cache, so that ltconfig can load it
3292 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3293 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3294 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3295 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3296 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3297 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3298 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3299 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3301 # Reload cache, that may have been modified by ltconfig
3304 # This can be used to rebuild libtool when needed
3305 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3307 # Always use our own libtool.
3308 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3310 # Redirect the config.log output again, so that the ltconfig log is not
3311 # clobbered by the next message.
3312 exec 5>>./config.log
3315 for ac_prog in mawk gawk nawk awk
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5
3321 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 if test -n "$AWK"; then
3325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3329 for ac_dir in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir=.
3331 if test -f $ac_dir/$ac_word; then
3332 ac_cv_prog_AWK="$ac_prog"
3339 AWK="$ac_cv_prog_AWK"
3340 if test -n "$AWK"; then
3341 echo "$ac_t""$AWK" 1>&6
3343 echo "$ac_t""no" 1>&6
3346 test -n "$AWK" && break
3349 # test for ln hardlink support
3350 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3351 echo "configure:3352: checking whether ln works" >&5
3352 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 rm -f conftest.src conftest.dst
3356 echo "conftest" > conftest.src
3357 if ln conftest.src conftest.dst 2>/dev/null
3359 ol_cv_prog_LN_H="ln"
3361 ol_cv_prog_LN_H="cp"
3363 rm -f conftest.src conftest.dst
3366 LN_H="$ol_cv_prog_LN_H"
3367 if test "$ol_cv_prog_LN_H" = "ln"; then
3368 echo "$ac_t""yes" 1>&6
3370 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3374 echo "configure:3375: checking whether ln -s works" >&5
3375 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3379 if ln -s X conftestdata 2>/dev/null
3382 ac_cv_prog_LN_S="ln -s"
3387 LN_S="$ac_cv_prog_LN_S"
3388 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3389 echo "$ac_t""yes" 1>&6
3391 echo "$ac_t""no" 1>&6
3395 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3399 # Extract the first word of "sendmail", so it can be a program name with args.
3400 set dummy sendmail; ac_word=$2
3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_word" >&5
3403 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3408 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3411 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3416 for ac_dir in $ac_dummy; do
3417 test -z "$ac_dir" && ac_dir=.
3418 if test -f $ac_dir/$ac_word; then
3419 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3424 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3428 SENDMAIL="$ac_cv_path_SENDMAIL"
3429 if test -n "$SENDMAIL"; then
3430 echo "$ac_t""$SENDMAIL" 1>&6
3432 echo "$ac_t""no" 1>&6
3435 # Extract the first word of "vi", so it can be a program name with args.
3436 set dummy vi; ac_word=$2
3437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_word" >&5
3439 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3444 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3447 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3451 ac_dummy="$PATH:/usr/ucb"
3452 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3460 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3464 EDITOR="$ac_cv_path_EDITOR"
3465 if test -n "$EDITOR"; then
3466 echo "$ac_t""$EDITOR" 1>&6
3468 echo "$ac_t""no" 1>&6
3471 # Extract the first word of "finger", so it can be a program name with args.
3472 set dummy finger; ac_word=$2
3473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_word" >&5
3475 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3480 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3483 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3487 ac_dummy="$PATH:/usr/ucb"
3488 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_path_FINGER="$ac_dir/$ac_word"
3496 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3500 FINGER="$ac_cv_path_FINGER"
3501 if test -n "$FINGER"; then
3502 echo "$ac_t""$FINGER" 1>&6
3504 echo "$ac_t""no" 1>&6
3509 if test $ol_enable_perl != no ; then
3510 # Extract the first word of "perl", so it can be a program name with args.
3511 set dummy perl; ac_word=$2
3512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_word" >&5
3514 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3519 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3522 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3527 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3535 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3539 PERLBIN="$ac_cv_path_PERLBIN"
3540 if test -n "$PERLBIN"; then
3541 echo "$ac_t""$PERLBIN" 1>&6
3543 echo "$ac_t""no" 1>&6
3547 if test "no$PERLBIN" = "no" ; then
3548 if test $ol_enable_perl = yes ; then
3549 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3553 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3554 if test x"$ol_with_perl_module" = "xstatic" ; then
3555 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3557 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3563 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3564 echo "configure:3565: checking how to run the C preprocessor" >&5
3565 # On Suns, sometimes $CPP names a directory.
3566 if test -n "$CPP" && test -d "$CPP"; then
3569 if test -z "$CPP"; then
3570 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 # This must be in double quotes, not single quotes, because CPP may get
3574 # substituted into the Makefile and "${CC-cc}" will confuse make.
3576 # On the NeXT, cc -E runs the code through the compiler's parser,
3577 # not just through cpp.
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3585 { (eval echo configure:3586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3587 if test -z "$ac_err"; then
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3594 CPP="${CC-cc} -E -traditional-cpp"
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3602 { (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3604 if test -z "$ac_err"; then
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 CPP="${CC-cc} -nologo -E"
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3619 { (eval echo configure:3620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3621 if test -z "$ac_err"; then
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3635 ac_cv_prog_CPP="$CPP"
3637 CPP="$ac_cv_prog_CPP"
3639 ac_cv_prog_CPP="$CPP"
3641 echo "$ac_t""$CPP" 1>&6
3644 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3645 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3647 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3648 echo "configure: warning: programs compiled here do run here..." 1>&2
3649 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3651 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3652 echo "configure: warning: programs compiled here do not run here..." 1>&2
3653 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3656 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3657 echo "configure:3658: checking for AIX" >&5
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 egrep "yes" >/dev/null 2>&1; then
3669 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3670 #define _ALL_SOURCE 1
3675 echo "$ac_t""no" 1>&6
3680 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3681 echo "configure:3682: checking for POSIXized ISC" >&5
3682 if test -d /etc/conf/kconfig.d &&
3683 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3685 echo "$ac_t""yes" 1>&6
3686 ISC=yes # If later tests want to check for ISC.
3687 cat >> confdefs.h <<\EOF
3688 #define _POSIX_SOURCE 1
3691 if test "$GCC" = yes; then
3697 echo "$ac_t""no" 1>&6
3701 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3702 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3703 echo "configure:3704: checking for minix/config.h" >&5
3704 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <minix/config.h>
3712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3713 { (eval echo configure:3714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3715 if test -z "$ac_err"; then
3717 eval "ac_cv_header_$ac_safe=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_header_$ac_safe=no"
3727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3731 echo "$ac_t""no" 1>&6
3735 if test "$MINIX" = yes; then
3736 cat >> confdefs.h <<\EOF
3737 #define _POSIX_SOURCE 1
3740 cat >> confdefs.h <<\EOF
3741 #define _POSIX_1_SOURCE 2
3744 cat >> confdefs.h <<\EOF
3751 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3752 echo "configure:3753: checking for Cygwin environment" >&5
3753 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3763 #define __CYGWIN__ __CYGWIN32__
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3780 echo "$ac_t""$ac_cv_cygwin" 1>&6
3782 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3783 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3784 echo "configure:3785: checking for mingw32 environment" >&5
3785 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3808 echo "$ac_t""$ac_cv_mingw32" 1>&6
3810 test "$ac_cv_mingw32" = yes && MINGW32=yes
3811 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3812 echo "configure:3813: checking for EMX OS/2 environment" >&5
3813 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3824 if { (eval echo configure:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3836 echo "$ac_t""$ac_cv_emxos2" 1>&6
3838 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3842 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3843 echo "configure:3844: checking for executable suffix" >&5
3844 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3851 echo 'int main () { return 0; }' > conftest.$ac_ext
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3854 for file in conftest.*; do
3856 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3857 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3861 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3864 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3869 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3870 echo "$ac_t""${ac_cv_exeext}" 1>&6
3873 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3874 echo "configure:3875: checking for object suffix" >&5
3875 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3879 echo 'int i = 1;' > conftest.$ac_ext
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 for ac_file in conftest.*; do
3884 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3888 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3893 echo "$ac_t""$ac_cv_objext" 1>&6
3894 OBJEXT=$ac_cv_objext
3895 ac_objext=$ac_cv_objext
3898 cat >> confdefs.h <<EOF
3899 #define EXEEXT "${EXEEXT}"
3903 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3904 echo "configure:3905: checking for be_app in -lbe" >&5
3905 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 ac_save_LIBS="$LIBS"
3910 LIBS="-lbe -lroot -lnet $LIBS"
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3930 eval "ac_cv_lib_$ac_lib_var=no"
3933 LIBS="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 LIBS="$LIBS -lbe -lroot -lnet"
3940 echo "$ac_t""no" 1>&6
3948 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3949 echo "configure:3950: checking for ${CC-cc} option to accept ANSI C" >&5
3950 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 am_cv_prog_cc_stdc=no
3955 # Don't try gcc -ansi; that turns off useful extensions and
3956 # breaks some systems' header files.
3957 # AIX -qlanglvl=ansi
3958 # Ultrix and OSF/1 -std1
3959 # HP-UX 10.20 and later -Ae
3960 # HP-UX older versions -Aa -D_HPUX_SOURCE
3961 # SVR4 -Xc -D__EXTENSIONS__
3962 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3964 CC="$ac_save_CC $ac_arg"
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4003 if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 am_cv_prog_cc_stdc="$ac_arg"; break
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4016 if test -z "$am_cv_prog_cc_stdc"; then
4017 echo "$ac_t""none needed" 1>&6
4019 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4021 case "x$am_cv_prog_cc_stdc" in
4023 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4026 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4027 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4030 # test for make depend flag
4033 if test -z "${MKDEP}"; then
4035 if test -z "${MKDEP_FLAGS}"; then
4036 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4037 echo "configure:4038: checking for ${OL_MKDEP} depend flag" >&5
4038 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4043 for flag in "-M" "-xM"; do
4044 cat > conftest.c <<EOF
4047 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4048 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4050 if test ! -f conftest."${ac_object}" ; then
4052 OL_MKDEP_FLAGS="$flag"
4061 echo "$ac_t""$ol_cv_mkdep" 1>&6
4064 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4069 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4074 if test "${ol_cv_mkdep}" = no ; then
4075 # this will soon become an error
4076 echo "configure: warning: do not know how to generate dependencies" 1>&2
4079 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4080 echo "configure:4081: checking for afopen in -ls" >&5
4081 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 ac_save_LIBS="$LIBS"
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101 eval "ac_cv_lib_$ac_lib_var=yes"
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4106 eval "ac_cv_lib_$ac_lib_var=no"
4109 LIBS="$ac_save_LIBS"
4112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_AIX_SECURITY 1
4122 echo "$ac_t""no" 1>&6
4127 if test $ol_enable_modules != no ; then
4128 for ac_hdr in ltdl.h
4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_hdr" >&5
4133 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4144 if test -z "$ac_err"; then
4146 eval "ac_cv_header_$ac_safe=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_header_$ac_safe=no"
4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_hdr 1
4164 echo "$ac_t""no" 1>&6
4169 if test $ac_cv_header_ltdl_h = no ; then
4170 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4173 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4174 echo "configure:4175: checking for lt_dlinit in -lltdl" >&5
4175 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 ac_save_LIBS="$LIBS"
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 eval "ac_cv_lib_$ac_lib_var=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_lib_$ac_lib_var=no"
4203 LIBS="$ac_save_LIBS"
4206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_LIBLTDL 1
4216 echo "$ac_t""no" 1>&6
4220 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4221 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4225 ol_with_dnssrv_module=static
4226 ol_with_ldap_module=static
4227 ol_with_ldbm_module=static
4228 ol_with_passwd_module=static
4229 ol_with_perl_module=static
4230 ol_with_shell_module=static
4231 ol_with_tcl_module=static
4232 ol_with_sql_module=static
4236 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4237 echo "configure:4238: checking for EBCDIC" >&5
4238 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 #include <__ASCII__/generate_error.h>
4251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4252 { (eval echo configure:4253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4254 if test -z "$ac_err"; then
4256 ol_cv_cpp_ebcdic=yes
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4267 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4268 if test $ol_cv_cpp_ebcdic = yes ; then
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_EBCDIC 1
4275 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4276 echo "configure:4277: checking for ANSI C header files" >&5
4277 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4289 { (eval echo configure:4290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4291 if test -z "$ac_err"; then
4293 ol_cv_header_stdc=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 ol_cv_header_stdc=no
4303 if test $ol_cv_header_stdc = yes; then
4304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 egrep "memchr" >/dev/null 2>&1; then
4315 ol_cv_header_stdc=no
4321 if test $ol_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 egrep "free" >/dev/null 2>&1; then
4333 ol_cv_header_stdc=no
4339 if test $ol_cv_header_stdc = yes; then
4340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4341 if test "$cross_compiling" = yes; then
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4353 || ('j' <= (c) && (c) <= 'r') \
4354 || ('s' <= (c) && (c) <= 'z'))
4355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 int main () { int i; for (i = 0; i < 256; i++)
4359 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 ol_cv_header_stdc=no
4378 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4379 if test $ol_cv_header_stdc = yes; then
4380 cat >> confdefs.h <<\EOF
4381 #define STDC_HEADERS 1
4385 ac_cv_header_stdc=disable
4388 if test $ol_cv_header_stdc != yes; then
4389 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4393 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4396 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_hdr that defines DIR" >&5
4398 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <sys/types.h>
4410 if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 eval "ac_cv_header_dirent_$ac_safe=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_header_dirent_$ac_safe=no"
4421 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_hdr 1
4427 ac_header_dirent=$ac_hdr; break
4429 echo "$ac_t""no" 1>&6
4432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4433 if test $ac_header_dirent = dirent.h; then
4434 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4435 echo "configure:4436: checking for opendir in -ldir" >&5
4436 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 ac_save_LIBS="$LIBS"
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4445 /* Override any gcc2 internal prototype to avoid an error. */
4446 /* We use char because int might match the return type of a gcc2
4447 builtin and then its argument prototype would still apply. */
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456 eval "ac_cv_lib_$ac_lib_var=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_lib_$ac_lib_var=no"
4464 LIBS="$ac_save_LIBS"
4467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4471 echo "$ac_t""no" 1>&6
4475 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4476 echo "configure:4477: checking for opendir in -lx" >&5
4477 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4478 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 ac_save_LIBS="$LIBS"
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4497 eval "ac_cv_lib_$ac_lib_var=yes"
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4502 eval "ac_cv_lib_$ac_lib_var=no"
4505 LIBS="$ac_save_LIBS"
4508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4512 echo "$ac_t""no" 1>&6
4517 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4518 echo "configure:4519: checking for sys/wait.h that is POSIX.1 compatible" >&5
4519 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 #include <sys/types.h>
4526 #include <sys/wait.h>
4528 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4531 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4536 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4539 if { (eval echo configure:4540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4541 ac_cv_header_sys_wait_h=yes
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 ac_cv_header_sys_wait_h=no
4551 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4552 if test $ac_cv_header_sys_wait_h = yes; then
4553 cat >> confdefs.h <<\EOF
4554 #define HAVE_SYS_WAIT_H 1
4559 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4560 echo "configure:4561: checking POSIX termios" >&5
4561 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4569 #include <termios.h>
4571 /* SunOS 4.0.3 has termios.h but not the library calls. */
4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4577 am_cv_sys_posix_termios=yes
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4582 am_cv_sys_posix_termios=no
4587 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4590 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4591 echo "configure:4592: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4592 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4597 gwinsz_in_termios_h=no
4598 if test $am_cv_sys_posix_termios = yes; then
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 #include <sys/types.h>
4603 # include <termios.h>
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "yes" >/dev/null 2>&1; then
4612 gwinsz_in_termios_h=yes
4618 if test $gwinsz_in_termios_h = no; then
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <sys/types.h>
4623 # include <sys/ioctl.h>
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 egrep "yes" >/dev/null 2>&1; then
4632 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4640 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4641 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4642 cat >> confdefs.h <<\EOF
4643 #define GWINSZ_IN_SYS_IOCTL 1
4648 if test $am_cv_sys_posix_termios = yes ; then
4649 cat >> confdefs.h <<\EOF
4650 #define HAVE_POSIX_TERMIOS 1
4701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_hdr" >&5
4704 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4713 { (eval echo configure:4714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4715 if test -z "$ac_err"; then
4717 eval "ac_cv_header_$ac_safe=yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4723 eval "ac_cv_header_$ac_safe=no"
4727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4730 cat >> confdefs.h <<EOF
4731 #define $ac_tr_hdr 1
4735 echo "$ac_t""no" 1>&6
4742 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4743 echo "configure:4744: checking for sigset in -lV3" >&5
4744 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 ac_save_LIBS="$LIBS"
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_lib_$ac_lib_var=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_lib_$ac_lib_var=no"
4772 LIBS="$ac_save_LIBS"
4775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_lib 1
4786 echo "$ac_t""no" 1>&6
4790 if test $ac_cv_header_winsock_h = yes; then
4791 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4792 echo "configure:4793: checking for winsock" >&5
4793 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 #include <winsock.h>
4803 select(0,NULL,NULL,NULL,NULL);
4805 gethostname(NULL,0);
4809 if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4813 echo "configure: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4821 echo "$ac_t""$ol_cv_winsock" 1>&6
4823 if test $ol_cv_winsock = yes ; then
4824 cat >> confdefs.h <<\EOF
4825 #define HAVE_WINSOCK 1
4828 ac_cv_func_socket=yes
4829 ac_cv_func_select=yes
4830 ac_cv_func_closesocket=yes
4831 ac_cv_func_gethostname=yes
4836 echo $ac_n "checking for socket""... $ac_c" 1>&6
4837 echo "configure:4838: checking for socket" >&5
4838 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char socket(); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4855 /* The GNU C library defines this for functions which it implements
4856 to always fail with ENOSYS. Some functions are actually named
4857 something starting with __ and the normal name is an alias. */
4858 #if defined (__stub_socket) || defined (__stub___socket)
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 eval "ac_cv_func_socket=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_func_socket=no"
4878 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4882 echo "$ac_t""no" 1>&6
4884 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4885 echo "configure:4886: checking for main in -lsocket" >&5
4886 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 ac_save_LIBS="$LIBS"
4891 LIBS="-lsocket $LIBS"
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 eval "ac_cv_lib_$ac_lib_var=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_lib_$ac_lib_var=no"
4910 LIBS="$ac_save_LIBS"
4913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4916 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_lib 1
4921 LIBS="-lsocket $LIBS"
4924 echo "$ac_t""no" 1>&6
4927 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4928 echo "configure:4929: checking for main in -lnet" >&5
4929 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4930 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 ac_save_LIBS="$LIBS"
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4945 eval "ac_cv_lib_$ac_lib_var=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 eval "ac_cv_lib_$ac_lib_var=no"
4953 LIBS="$ac_save_LIBS"
4956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4957 echo "$ac_t""yes" 1>&6
4958 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4960 cat >> confdefs.h <<EOF
4961 #define $ac_tr_lib 1
4967 echo "$ac_t""no" 1>&6
4970 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4971 echo "configure:4972: checking for main in -lnsl_s" >&5
4972 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 ac_save_LIBS="$LIBS"
4977 LIBS="-lnsl_s $LIBS"
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 eval "ac_cv_lib_$ac_lib_var=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_lib_$ac_lib_var=no"
4996 LIBS="$ac_save_LIBS"
4999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5000 echo "$ac_t""yes" 1>&6
5001 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_lib 1
5007 LIBS="-lnsl_s $LIBS"
5010 echo "$ac_t""no" 1>&6
5013 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5014 echo "configure:5015: checking for main in -lnsl" >&5
5015 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5016 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 ac_save_LIBS="$LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031 eval "ac_cv_lib_$ac_lib_var=yes"
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 eval "ac_cv_lib_$ac_lib_var=no"
5039 LIBS="$ac_save_LIBS"
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5045 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5046 cat >> confdefs.h <<EOF
5047 #define $ac_tr_lib 1
5053 echo "$ac_t""no" 1>&6
5056 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5057 echo "configure:5058: checking for socket in -linet" >&5
5058 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 ac_save_LIBS="$LIBS"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 eval "ac_cv_lib_$ac_lib_var=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 eval "ac_cv_lib_$ac_lib_var=no"
5086 LIBS="$ac_save_LIBS"
5089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5093 cat >> confdefs.h <<EOF
5094 #define $ac_tr_lib 1
5100 echo "$ac_t""no" 1>&6
5103 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5104 echo "configure:5105: checking for main in -lgen" >&5
5105 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5106 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 ac_save_LIBS="$LIBS"
5111 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 eval "ac_cv_lib_$ac_lib_var=yes"
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5126 eval "ac_cv_lib_$ac_lib_var=no"
5129 LIBS="$ac_save_LIBS"
5132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5136 cat >> confdefs.h <<EOF
5137 #define $ac_tr_lib 1
5143 echo "$ac_t""no" 1>&6
5150 echo $ac_n "checking for select""... $ac_c" 1>&6
5151 echo "configure:5152: checking for select" >&5
5152 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* System header to define __stub macros and hopefully few prototypes,
5159 which can conflict with char select(); below. */
5161 /* Override any gcc2 internal prototype to avoid an error. */
5162 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */
5169 /* The GNU C library defines this for functions which it implements
5170 to always fail with ENOSYS. Some functions are actually named
5171 something starting with __ and the normal name is an alias. */
5172 #if defined (__stub_select) || defined (__stub___select)
5180 if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5182 eval "ac_cv_func_select=yes"
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 eval "ac_cv_func_select=no"
5192 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5196 echo "$ac_t""no" 1>&6
5197 { echo "configure: error: select() required." 1>&2; exit 1; }
5201 if test "${ac_cv_header_winsock_h}" != yes; then
5202 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5203 echo "configure:5204: checking types of arguments for select()" >&5
5204 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5214 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5215 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 #ifdef HAVE_SYS_TYPES_H
5220 #include <sys/types.h>
5222 #ifdef HAVE_SYS_TIME_H
5223 #include <sys/time.h>
5225 #ifdef HAVE_SYS_SELECT_H
5226 #include <sys/select.h>
5228 #ifdef HAVE_SYS_SOCKET_H
5229 #include <sys/socket.h>
5231 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);
5236 if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 ac_not_found=no ; break 3
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5255 if test "$ac_not_found" = yes; then
5256 ac_cv_func_select_arg1=int
5257 ac_cv_func_select_arg234='int *'
5258 ac_cv_func_select_arg5='struct timeval *'
5260 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5261 cat >> confdefs.h <<EOF
5262 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5265 cat >> confdefs.h <<EOF
5266 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5269 cat >> confdefs.h <<EOF
5270 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5277 for ac_hdr in regex.h
5279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5281 echo "configure:5282: checking for $ac_hdr" >&5
5282 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5291 { (eval echo configure:5292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5293 if test -z "$ac_err"; then
5295 eval "ac_cv_header_$ac_safe=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_header_$ac_safe=no"
5305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5308 cat >> confdefs.h <<EOF
5309 #define $ac_tr_hdr 1
5313 echo "$ac_t""no" 1>&6
5317 if test "$ac_cv_header_regex_h" != yes ; then
5318 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5320 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5321 echo "configure:5322: checking for regfree" >&5
5322 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* System header to define __stub macros and hopefully few prototypes,
5329 which can conflict with char regfree(); below. */
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5339 /* The GNU C library defines this for functions which it implements
5340 to always fail with ENOSYS. Some functions are actually named
5341 something starting with __ and the normal name is an alias. */
5342 #if defined (__stub_regfree) || defined (__stub___regfree)
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 eval "ac_cv_func_regfree=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_func_regfree=no"
5362 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5366 echo "$ac_t""no" 1>&6
5367 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5372 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5373 echo "configure:5374: checking for compatible POSIX regex" >&5
5374 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5378 if test "$cross_compiling" = yes; then
5379 ol_cv_c_posix_regex=cross
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5385 #include <sys/types.h>
5387 static char *pattern, *string;
5395 if(regcomp(&re, pattern, 0)) {
5399 string = "ALL MATCH";
5401 rc = regexec(&re, string, 0, (void*)0, 0);
5408 if { (eval echo configure:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5410 ol_cv_c_posix_regex=yes
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5415 ol_cv_c_posix_regex=no
5422 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5424 if test "$ol_cv_c_posix_regex" = no ; then
5425 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5429 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5430 echo "configure:5431: checking for res_query" >&5
5431 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char res_query(); below. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5448 /* The GNU C library defines this for functions which it implements
5449 to always fail with ENOSYS. Some functions are actually named
5450 something starting with __ and the normal name is an alias. */
5451 #if defined (__stub_res_query) || defined (__stub___res_query)
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 eval "ac_cv_func_res_query=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5466 eval "ac_cv_func_res_query=no"
5471 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5472 echo "$ac_t""yes" 1>&6
5475 echo "$ac_t""no" 1>&6
5478 if test $ac_cv_func_res_query = no ; then
5479 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5480 echo "configure:5481: checking for res_query in -lbind" >&5
5481 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 ac_save_LIBS="$LIBS"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5501 eval "ac_cv_lib_$ac_lib_var=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 eval "ac_cv_lib_$ac_lib_var=no"
5509 LIBS="$ac_save_LIBS"
5512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5516 cat >> confdefs.h <<EOF
5517 #define $ac_tr_lib 1
5523 echo "$ac_t""no" 1>&6
5526 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5529 if test $ac_cv_func_res_query = no ; then
5530 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5531 echo "configure:5532: checking for __res_query in -lbind" >&5
5532 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 ac_save_LIBS="$LIBS"
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5552 eval "ac_cv_lib_$ac_lib_var=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 eval "ac_cv_lib_$ac_lib_var=no"
5560 LIBS="$ac_save_LIBS"
5563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5564 echo "$ac_t""yes" 1>&6
5565 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5567 cat >> confdefs.h <<EOF
5568 #define $ac_tr_lib 1
5574 echo "$ac_t""no" 1>&6
5577 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5580 if test $ac_cv_func_res_query = no ; then
5581 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5582 echo "configure:5583: checking for res_query in -lresolv" >&5
5583 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 ac_save_LIBS="$LIBS"
5588 LIBS="-lresolv $LIBS"
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 eval "ac_cv_lib_$ac_lib_var=yes"
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 eval "ac_cv_lib_$ac_lib_var=no"
5611 LIBS="$ac_save_LIBS"
5614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5615 echo "$ac_t""yes" 1>&6
5616 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5618 cat >> confdefs.h <<EOF
5619 #define $ac_tr_lib 1
5622 LIBS="-lresolv $LIBS"
5625 echo "$ac_t""no" 1>&6
5628 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5631 if test "$ac_cv_func_res_query" = yes ; then
5632 cat >> confdefs.h <<\EOF
5633 #define HAVE_RES_QUERY 1
5637 if test $ol_enable_dnssrv != no ; then
5642 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5643 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5646 if test $ol_enable_quipu != no ; then
5647 for ac_hdr in quipu/commonarg.h
5649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5651 echo "configure:5652: checking for $ac_hdr" >&5
5652 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5661 { (eval echo configure:5662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5663 if test -z "$ac_err"; then
5665 eval "ac_cv_header_$ac_safe=yes"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 eval "ac_cv_header_$ac_safe=no"
5675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_hdr 1
5683 echo "$ac_t""no" 1>&6
5688 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5690 elif test $ol_enable_quipu = auto ; then
5691 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5693 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5702 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5703 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5705 for ac_hdr in krb5.h
5707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5709 echo "configure:5710: checking for $ac_hdr" >&5
5710 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5719 { (eval echo configure:5720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5721 if test -z "$ac_err"; then
5723 eval "ac_cv_header_$ac_safe=yes"
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 eval "ac_cv_header_$ac_safe=no"
5733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5734 echo "$ac_t""yes" 1>&6
5735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5736 cat >> confdefs.h <<EOF
5737 #define $ac_tr_hdr 1
5741 echo "$ac_t""no" 1>&6
5746 if test $ac_cv_header_krb5_h = yes ; then
5747 for ac_hdr in heim_err.h
5749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_hdr" >&5
5752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5761 { (eval echo configure:5762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5763 if test -z "$ac_err"; then
5765 eval "ac_cv_header_$ac_safe=yes"
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 eval "ac_cv_header_$ac_safe=no"
5775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5778 cat >> confdefs.h <<EOF
5779 #define $ac_tr_hdr 1
5783 echo "$ac_t""no" 1>&6
5787 if test $ac_cv_header_heim_err_h = yes ; then
5793 if test $krb5_impl = mit; then
5794 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5795 echo "configure:5796: checking for main in -lkrb5" >&5
5796 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5800 ac_save_LIBS="$LIBS"
5801 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5810 if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5812 eval "ac_cv_lib_$ac_lib_var=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_lib_$ac_lib_var=no"
5820 LIBS="$ac_save_LIBS"
5823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5826 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5828 echo "$ac_t""no" 1>&6
5833 elif test $krb5_impl = heimdal; then
5834 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5835 echo "configure:5836: checking for main in -lkrb5" >&5
5836 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5840 ac_save_LIBS="$LIBS"
5841 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5850 if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5852 eval "ac_cv_lib_$ac_lib_var=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 eval "ac_cv_lib_$ac_lib_var=no"
5860 LIBS="$ac_save_LIBS"
5863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5866 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5868 echo "$ac_t""no" 1>&6
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE_HEIMDAL_KERBEROS 1
5879 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5882 if test $have_krb5 = yes ; then
5885 cat >> confdefs.h <<\EOF
5890 if test $ol_enable_kpasswd != no ; then
5891 ol_link_kpasswd=yes;
5894 if test $ol_with_kerberos = k5only ; then
5895 ol_with_kerberos=found
5898 elif test $ol_with_kerberos != auto ; then
5899 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5905 if test $ol_link_krb5 = yes -a \
5906 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5908 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_hdr" >&5
5913 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5922 { (eval echo configure:5923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5924 if test -z "$ac_err"; then
5926 eval "ac_cv_header_$ac_safe=yes"
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 eval "ac_cv_header_$ac_safe=no"
5936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5937 echo "$ac_t""yes" 1>&6
5938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5939 cat >> confdefs.h <<EOF
5940 #define $ac_tr_hdr 1
5944 echo "$ac_t""no" 1>&6
5949 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5950 if test $krb5_impl = mit; then
5951 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5952 echo "configure:5953: checking for main in -lkrb4" >&5
5953 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5954 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 ac_save_LIBS="$LIBS"
5958 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 eval "ac_cv_lib_$ac_lib_var=yes"
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 eval "ac_cv_lib_$ac_lib_var=no"
5977 LIBS="$ac_save_LIBS"
5980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5983 KRB4_LIBS="-lkrb4 -ldes425"
5985 echo "$ac_t""no" 1>&6
5990 elif test $krb5_impl = heimdal; then
5991 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5992 echo "configure:5993: checking for main in -lkrb4" >&5
5993 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5994 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5997 ac_save_LIBS="$LIBS"
5998 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 eval "ac_cv_lib_$ac_lib_var=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6014 eval "ac_cv_lib_$ac_lib_var=no"
6017 LIBS="$ac_save_LIBS"
6020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6025 echo "$ac_t""no" 1>&6
6032 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6035 if test $have_k425 = yes ; then
6036 ol_with_kerberos=found
6039 cat >> confdefs.h <<\EOF
6040 #define HAVE_KRB425 1
6043 cat >> confdefs.h <<\EOF
6048 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6049 echo "configure:6050: checking for des_debug in Kerberos libraries" >&5
6050 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6055 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6060 #include <kerberosIV/krb.h>
6061 #include <kerberosIV/des.h>
6062 extern int des_debug;
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6072 ol_cv_var_des_debug=yes
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 ol_cv_var_des_debug=no
6084 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6086 if test $ol_cv_var_des_debug = yes ; then
6087 cat >> confdefs.h <<\EOF
6088 #define HAVE_DES_DEBUG 1
6098 if test $ol_link_krb5 = yes ; then
6099 ol_with_kerberos=found
6102 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6103 -o $ol_with_kerberos = kth ; then
6105 for ac_hdr in krb.h des.h krb-archaeology.h
6107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_hdr" >&5
6110 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6119 { (eval echo configure:6120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6121 if test -z "$ac_err"; then
6123 eval "ac_cv_header_$ac_safe=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6129 eval "ac_cv_header_$ac_safe=no"
6133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6136 cat >> confdefs.h <<EOF
6137 #define $ac_tr_hdr 1
6141 echo "$ac_t""no" 1>&6
6146 if test $ac_cv_header_krb_h = yes ; then
6147 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6148 echo "configure:6149: checking for main in -lkrb" >&5
6149 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 ac_save_LIBS="$LIBS"
6154 LIBS="-lkrb -ldes $LIBS"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 eval "ac_cv_lib_$ac_lib_var=yes"
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6170 eval "ac_cv_lib_$ac_lib_var=no"
6173 LIBS="$ac_save_LIBS"
6176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6180 echo "$ac_t""no" 1>&6
6185 if test $have_k4 = yes ; then
6186 ol_with_kerberos=found
6189 cat >> confdefs.h <<\EOF
6194 KRB4_LIBS="-lkrb -ldes"
6196 if test $ac_cv_header_krb_archaeology_h = yes ; then
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_KTH_KERBEROS 1
6206 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6207 ol_link_kpasswd=yes;
6210 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6211 cat >> confdefs.h <<\EOF
6212 #define HAVE_KERBEROS 1
6216 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6217 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6221 if test $ol_with_tls != no ; then
6223 for ac_hdr in openssl/ssl.h ssl.h
6225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6227 echo "configure:6228: checking for $ac_hdr" >&5
6228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6231 cat > conftest.$ac_ext <<EOF
6232 #line 6233 "configure"
6233 #include "confdefs.h"
6236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6237 { (eval echo configure:6238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6239 if test -z "$ac_err"; then
6241 eval "ac_cv_header_$ac_safe=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 eval "ac_cv_header_$ac_safe=no"
6251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6254 cat >> confdefs.h <<EOF
6255 #define $ac_tr_hdr 1
6259 echo "$ac_t""no" 1>&6
6264 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6265 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6266 echo "configure:6267: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6267 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6268 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 ac_save_LIBS="$LIBS"
6272 LIBS="-lssl -lcrypto $LIBS"
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 /* We use char because int might match the return type of a gcc2
6278 builtin and then its argument prototype would still apply. */
6279 char SSLeay_add_ssl_algorithms();
6282 SSLeay_add_ssl_algorithms()
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 eval "ac_cv_lib_$ac_lib_var=yes"
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6292 eval "ac_cv_lib_$ac_lib_var=no"
6295 LIBS="$ac_save_LIBS"
6298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6303 echo "$ac_t""no" 1>&6
6308 if test $have_ssleay = no ; then
6309 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6310 echo "configure:6311: checking for SSL_library_init in -lssl" >&5
6311 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 ac_save_LIBS="$LIBS"
6316 LIBS="-lssl -lcrypto $LIBS"
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char SSL_library_init();
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6331 eval "ac_cv_lib_$ac_lib_var=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6336 eval "ac_cv_lib_$ac_lib_var=no"
6339 LIBS="$ac_save_LIBS"
6342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6347 echo "$ac_t""no" 1>&6
6353 if test $have_ssleay = no ; then
6354 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6355 echo "configure:6356: checking for ssl3_accept in -lssl" >&5
6356 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6357 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6360 ac_save_LIBS="$LIBS"
6361 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 eval "ac_cv_lib_$ac_lib_var=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_lib_$ac_lib_var=no"
6384 LIBS="$ac_save_LIBS"
6387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6392 echo "$ac_t""no" 1>&6
6398 if test $have_ssleay = yes ; then
6402 cat >> confdefs.h <<\EOF
6403 #define HAVE_SSLEAY 1
6407 if test $need_rsaref = yes; then
6408 cat >> confdefs.h <<\EOF
6409 #define HAVE_RSAREF 1
6413 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6415 TLS_LIBS="-lssl -lcrypto"
6421 if test $ol_link_tls = yes ; then
6422 cat >> confdefs.h <<\EOF
6430 gethostbyname_r gethostbyaddr_r \
6433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6434 echo "configure:6435: checking for $ac_func" >&5
6435 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func(); below. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6452 /* The GNU C library defines this for functions which it implements
6453 to always fail with ENOSYS. Some functions are actually named
6454 something starting with __ and the normal name is an alias. */
6455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6463 if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6465 eval "ac_cv_func_$ac_func=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 eval "ac_cv_func_$ac_func=no"
6475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6478 cat >> confdefs.h <<EOF
6479 #define $ac_tr_func 1
6483 echo "$ac_t""no" 1>&6
6488 if test "$ac_cv_func_ctime_r" = no ; then
6489 ol_cv_func_ctime_r_nargs=0
6491 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6492 echo "configure:6493: checking number of arguments of ctime_r" >&5
6493 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6501 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6504 if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6506 ol_cv_func_ctime_r_nargs3=yes
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 ol_cv_func_ctime_r_nargs3=no
6515 cat > conftest.$ac_ext <<EOF
6516 #line 6517 "configure"
6517 #include "confdefs.h"
6520 time_t ti; char *buffer; ctime_r(&ti,buffer);
6523 if { (eval echo configure:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6525 ol_cv_func_ctime_r_nargs2=yes
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 ol_cv_func_ctime_r_nargs2=no
6534 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6535 $ol_cv_func_ctime_r_nargs2 = no ; then
6537 ol_cv_func_ctime_r_nargs=3
6539 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6540 $ol_cv_func_ctime_r_nargs2 = yes ; then
6542 ol_cv_func_ctime_r_nargs=2
6545 ol_cv_func_ctime_r_nargs=0
6550 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6552 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6553 cat >> confdefs.h <<EOF
6554 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6561 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6562 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6563 echo "configure:6564: checking number of arguments of gethostbyname_r" >&5
6564 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 #include <sys/types.h>
6571 #include <sys/socket.h>
6572 #include <netinet/in.h>
6574 #define BUFSIZE (sizeof(struct hostent)+10)
6576 struct hostent hent; char buffer[BUFSIZE];
6577 int bufsize=BUFSIZE;int h_errno;
6578 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6579 buffer, bufsize, &h_errno);
6582 if { (eval echo configure:6583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6584 ol_cv_func_gethostbyname_r_nargs5=yes
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 ol_cv_func_gethostbyname_r_nargs5=no
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <sys/types.h>
6597 #include <sys/socket.h>
6598 #include <netinet/in.h>
6600 #define BUFSIZE (sizeof(struct hostent)+10)
6602 struct hostent hent;struct hostent *rhent;
6603 char buffer[BUFSIZE];
6604 int bufsize=BUFSIZE;int h_errno;
6605 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6609 if { (eval echo configure:6610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6611 ol_cv_func_gethostbyname_r_nargs6=yes
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 ol_cv_func_gethostbyname_r_nargs6=no
6620 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6621 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6623 ol_cv_func_gethostbyname_r_nargs=5
6625 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6626 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6628 ol_cv_func_gethostbyname_r_nargs=6
6631 ol_cv_func_gethostbyname_r_nargs=0
6636 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6637 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6638 cat >> confdefs.h <<EOF
6639 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6645 ol_cv_func_gethostbyname_r_nargs=0
6648 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6649 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6650 echo "configure:6651: checking number of arguments of gethostbyaddr_r" >&5
6651 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 #include <sys/types.h>
6658 #include <sys/socket.h>
6659 #include <netinet/in.h>
6661 #define BUFSIZE (sizeof(struct hostent)+10)
6663 struct hostent hent; char buffer[BUFSIZE];
6665 size_t alen=sizeof(struct in_addr);
6666 int bufsize=BUFSIZE;int h_errno;
6667 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6668 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6671 if { (eval echo configure:6672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6673 ol_cv_func_gethostbyaddr_r_nargs7=yes
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 ol_cv_func_gethostbyaddr_r_nargs7=no
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6685 #include <sys/types.h>
6686 #include <sys/socket.h>
6687 #include <netinet/in.h>
6689 #define BUFSIZE (sizeof(struct hostent)+10)
6691 struct hostent hent;
6692 struct hostent *rhent; char buffer[BUFSIZE];
6694 size_t alen=sizeof(struct in_addr);
6695 int bufsize=BUFSIZE;int h_errno;
6696 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6697 alen, AF_INET, &hent, buffer, bufsize,
6701 if { (eval echo configure:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703 ol_cv_func_gethostbyaddr_r_nargs8=yes
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6708 ol_cv_func_gethostbyaddr_r_nargs8=no
6712 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6713 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6715 ol_cv_func_gethostbyaddr_r_nargs=7
6717 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6718 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6720 ol_cv_func_gethostbyaddr_r_nargs=8
6723 ol_cv_func_gethostbyaddr_r_nargs=0
6728 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6729 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6730 cat >> confdefs.h <<EOF
6731 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6737 ol_cv_func_gethostbyaddr_r_nargs=0
6740 if test "$ac_cv_func_ctime_r" = yes \
6741 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6742 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6743 -a "$ac_cv_func_gethostbyname_r" = yes \
6744 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6745 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6746 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6747 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6748 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6751 cat >> confdefs.h <<\EOF
6752 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6759 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6760 -o $ol_with_threads = nt ; then
6763 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6764 echo "configure:6765: checking for NT Threads" >&5
6765 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6769 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6770 echo "configure:6771: checking for _beginthread" >&5
6771 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char _beginthread(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6783 char _beginthread();
6788 /* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
6791 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 eval "ac_cv_func__beginthread=yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6806 eval "ac_cv_func__beginthread=no"
6811 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6813 ol_cv_nt_threads=yes
6815 echo "$ac_t""no" 1>&6
6822 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6824 if test $ol_cv_nt_threads = yes ; then
6825 cat >> confdefs.h <<\EOF
6826 #define HAVE_NT_THREADS 1
6832 if test "$ol_cv_nt_threads" = yes ; then
6834 ol_with_threads=found
6835 ol_with_yielding_select=yes
6837 cat >> confdefs.h <<\EOF
6838 #define HAVE_NT_SERVICE_MANAGER 1
6841 cat >> confdefs.h <<\EOF
6842 #define HAVE_NT_EVENT_LOG 1
6847 if test $ol_with_threads = nt ; then
6848 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6852 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6853 -o $ol_with_threads = posix ; then
6855 for ac_hdr in pthread.h
6857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6859 echo "configure:6860: checking for $ac_hdr" >&5
6860 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6869 { (eval echo configure:6870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6871 if test -z "$ac_err"; then
6873 eval "ac_cv_header_$ac_safe=yes"
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 eval "ac_cv_header_$ac_safe=no"
6883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6886 cat >> confdefs.h <<EOF
6887 #define $ac_tr_hdr 1
6891 echo "$ac_t""no" 1>&6
6896 if test $ac_cv_header_pthread_h = yes ; then
6897 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6898 echo "configure:6899: checking POSIX thread version" >&5
6899 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6907 # include <pthread.h>
6908 /* this check could be improved */
6909 # ifdef PTHREAD_ONCE_INIT
6910 pthread_version_final;
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 egrep "pthread_version_final" >/dev/null 2>&1; then
6917 ol_pthread_final=yes
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6929 # include <pthread.h>
6930 /* this check could be improved */
6931 # ifdef pthread_once_init
6932 pthread_version_draft4;
6936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6939 ol_pthread_draft4=yes
6942 ol_pthread_draft4=no
6947 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6948 ol_cv_pthread_version=final
6949 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6950 ol_cv_pthread_version=draft4
6952 ol_cv_pthread_version=unknown
6957 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6960 if test $ol_cv_pthread_version = final ; then
6961 cat >> confdefs.h <<\EOF
6962 #define HAVE_PTHREADS_FINAL 1
6965 elif test $ol_cv_pthread_version = draft4 ; then
6966 cat >> confdefs.h <<\EOF
6967 #define HAVE_PTHREADS_D4 1
6971 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6974 # consider threads found
6975 ol_with_threads=found
6978 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6979 echo "configure:6980: checking for LinuxThreads pthread.h" >&5
6980 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 cat > conftest.$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6986 #include <pthread.h>
6988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6991 ol_cv_header_linux_threads=yes
6994 ol_cv_header_linux_threads=no
7001 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7002 if test $ol_cv_header_linux_threads = yes; then
7003 cat >> confdefs.h <<\EOF
7004 #define HAVE_LINUX_THREADS 1
7010 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7011 echo "configure:7012: checking for GNU Pth pthread.h" >&5
7012 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 #include <pthread.h>
7019 #ifdef _POSIX_THREAD_IS_GNU_PTH
7024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 egrep "__gnu_pth__" >/dev/null 2>&1; then
7027 ol_cv_header_gnu_pth_pthread_h=yes
7030 ol_cv_header_gnu_pth_pthread_h=no
7037 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7040 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7041 for ac_hdr in sched.h
7043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_hdr" >&5
7046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7055 { (eval echo configure:7056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7057 if test -z "$ac_err"; then
7059 eval "ac_cv_header_$ac_safe=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_header_$ac_safe=no"
7069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7070 echo "$ac_t""yes" 1>&6
7071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7072 cat >> confdefs.h <<EOF
7073 #define $ac_tr_hdr 1
7077 echo "$ac_t""no" 1>&6
7084 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7085 echo "configure:7086: checking for pthread_create in default libraries" >&5
7086 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7090 if test "$cross_compiling" = yes; then
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 /* pthread test headers */
7095 #include <pthread.h>
7097 #define NULL (void*)0
7100 static void *task(p)
7103 return (void *) (p == NULL);
7108 /* pthread test function */
7111 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7112 /* This system (e.g. AIX) defaults detached; must override */
7113 pthread_attr_t attr;
7115 status = pthread_attr_init(&attr);
7116 if( status ) exit( status );
7118 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7119 if( status ) exit( status );
7123 #if HAVE_PTHREADS_D4
7124 #define ATTR pthread_attr_default
7129 /* make sure pthread_create() isn't just a stub */
7130 status = pthread_create(&t, ATTR, task, NULL);
7131 if( status ) exit( status );
7133 /* make sure pthread_detach() isn't just a stub */
7134 #if HAVE_PTHREADS_D4
7135 status = pthread_detach( &t );
7137 status = pthread_detach( t );
7140 #ifdef HAVE_LINUX_THREADS
7141 pthread_kill_other_threads_np();
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7150 ol_cv_pthread_create=yes
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 ol_cv_pthread_create=no
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* pthread test headers */
7163 #include <pthread.h>
7165 #define NULL (void*)0
7168 static void *task(p)
7171 return (void *) (p == NULL);
7175 int main(argc, argv)
7180 /* pthread test function */
7183 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7184 /* This system (e.g. AIX) defaults detached; must override */
7185 pthread_attr_t attr;
7187 status = pthread_attr_init(&attr);
7188 if( status ) exit( status );
7190 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7191 if( status ) exit( status );
7195 #if HAVE_PTHREADS_D4
7196 #define ATTR pthread_attr_default
7201 /* make sure pthread_create() isn't just a stub */
7202 status = pthread_create(&t, ATTR, task, NULL);
7203 if( status ) exit( status );
7205 /* make sure pthread_detach() isn't just a stub */
7206 #if HAVE_PTHREADS_D4
7207 status = pthread_detach( &t );
7209 status = pthread_detach( t );
7212 #ifdef HAVE_LINUX_THREADS
7213 pthread_kill_other_threads_np();
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7223 ol_cv_pthread_create=yes
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 ol_cv_pthread_create=no
7235 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7237 if test $ol_cv_pthread_create != no ; then
7238 ol_link_threads=posix
7242 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7243 if test "$ol_link_threads" = no ; then
7245 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7246 echo "configure:7247: checking for pthread link with -kthread" >&5
7247 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7253 LIBS="-kthread $LIBS"
7255 if test "$cross_compiling" = yes; then
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259 /* pthread test headers */
7260 #include <pthread.h>
7262 #define NULL (void*)0
7265 static void *task(p)
7268 return (void *) (p == NULL);
7273 /* pthread test function */
7276 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7277 /* This system (e.g. AIX) defaults detached; must override */
7278 pthread_attr_t attr;
7280 status = pthread_attr_init(&attr);
7281 if( status ) exit( status );
7283 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7284 if( status ) exit( status );
7288 #if HAVE_PTHREADS_D4
7289 #define ATTR pthread_attr_default
7294 /* make sure pthread_create() isn't just a stub */
7295 status = pthread_create(&t, ATTR, task, NULL);
7296 if( status ) exit( status );
7298 /* make sure pthread_detach() isn't just a stub */
7299 #if HAVE_PTHREADS_D4
7300 status = pthread_detach( &t );
7302 status = pthread_detach( t );
7305 #ifdef HAVE_LINUX_THREADS
7306 pthread_kill_other_threads_np();
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 ol_cv_pthread_kthread=yes
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 ol_cv_pthread_kthread=no
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 /* pthread test headers */
7328 #include <pthread.h>
7330 #define NULL (void*)0
7333 static void *task(p)
7336 return (void *) (p == NULL);
7340 int main(argc, argv)
7345 /* pthread test function */
7348 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7349 /* This system (e.g. AIX) defaults detached; must override */
7350 pthread_attr_t attr;
7352 status = pthread_attr_init(&attr);
7353 if( status ) exit( status );
7355 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7356 if( status ) exit( status );
7360 #if HAVE_PTHREADS_D4
7361 #define ATTR pthread_attr_default
7366 /* make sure pthread_create() isn't just a stub */
7367 status = pthread_create(&t, ATTR, task, NULL);
7368 if( status ) exit( status );
7370 /* make sure pthread_detach() isn't just a stub */
7371 #if HAVE_PTHREADS_D4
7372 status = pthread_detach( &t );
7374 status = pthread_detach( t );
7377 #ifdef HAVE_LINUX_THREADS
7378 pthread_kill_other_threads_np();
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7388 ol_cv_pthread_kthread=yes
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7393 ol_cv_pthread_kthread=no
7404 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7406 if test $ol_cv_pthread_kthread = yes ; then
7407 ol_link_pthreads="-kthread"
7408 ol_link_threads=posix
7412 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7413 if test "$ol_link_threads" = no ; then
7415 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7416 echo "configure:7417: checking for pthread link with -pthread" >&5
7417 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7423 LIBS="-pthread $LIBS"
7425 if test "$cross_compiling" = yes; then
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 /* pthread test headers */
7430 #include <pthread.h>
7432 #define NULL (void*)0
7435 static void *task(p)
7438 return (void *) (p == NULL);
7443 /* pthread test function */
7446 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7447 /* This system (e.g. AIX) defaults detached; must override */
7448 pthread_attr_t attr;
7450 status = pthread_attr_init(&attr);
7451 if( status ) exit( status );
7453 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7454 if( status ) exit( status );
7458 #if HAVE_PTHREADS_D4
7459 #define ATTR pthread_attr_default
7464 /* make sure pthread_create() isn't just a stub */
7465 status = pthread_create(&t, ATTR, task, NULL);
7466 if( status ) exit( status );
7468 /* make sure pthread_detach() isn't just a stub */
7469 #if HAVE_PTHREADS_D4
7470 status = pthread_detach( &t );
7472 status = pthread_detach( t );
7475 #ifdef HAVE_LINUX_THREADS
7476 pthread_kill_other_threads_np();
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7485 ol_cv_pthread_pthread=yes
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 ol_cv_pthread_pthread=no
7494 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* pthread test headers */
7498 #include <pthread.h>
7500 #define NULL (void*)0
7503 static void *task(p)
7506 return (void *) (p == NULL);
7510 int main(argc, argv)
7515 /* pthread test function */
7518 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7519 /* This system (e.g. AIX) defaults detached; must override */
7520 pthread_attr_t attr;
7522 status = pthread_attr_init(&attr);
7523 if( status ) exit( status );
7525 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7526 if( status ) exit( status );
7530 #if HAVE_PTHREADS_D4
7531 #define ATTR pthread_attr_default
7536 /* make sure pthread_create() isn't just a stub */
7537 status = pthread_create(&t, ATTR, task, NULL);
7538 if( status ) exit( status );
7540 /* make sure pthread_detach() isn't just a stub */
7541 #if HAVE_PTHREADS_D4
7542 status = pthread_detach( &t );
7544 status = pthread_detach( t );
7547 #ifdef HAVE_LINUX_THREADS
7548 pthread_kill_other_threads_np();
7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7558 ol_cv_pthread_pthread=yes
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7563 ol_cv_pthread_pthread=no
7574 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7576 if test $ol_cv_pthread_pthread = yes ; then
7577 ol_link_pthreads="-pthread"
7578 ol_link_threads=posix
7582 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7583 if test "$ol_link_threads" = no ; then
7585 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7586 echo "configure:7587: checking for pthread link with -pthreads" >&5
7587 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7593 LIBS="-pthreads $LIBS"
7595 if test "$cross_compiling" = yes; then
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* pthread test headers */
7600 #include <pthread.h>
7602 #define NULL (void*)0
7605 static void *task(p)
7608 return (void *) (p == NULL);
7613 /* pthread test function */
7616 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7617 /* This system (e.g. AIX) defaults detached; must override */
7618 pthread_attr_t attr;
7620 status = pthread_attr_init(&attr);
7621 if( status ) exit( status );
7623 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7624 if( status ) exit( status );
7628 #if HAVE_PTHREADS_D4
7629 #define ATTR pthread_attr_default
7634 /* make sure pthread_create() isn't just a stub */
7635 status = pthread_create(&t, ATTR, task, NULL);
7636 if( status ) exit( status );
7638 /* make sure pthread_detach() isn't just a stub */
7639 #if HAVE_PTHREADS_D4
7640 status = pthread_detach( &t );
7642 status = pthread_detach( t );
7645 #ifdef HAVE_LINUX_THREADS
7646 pthread_kill_other_threads_np();
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7655 ol_cv_pthread_pthreads=yes
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 ol_cv_pthread_pthreads=no
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 /* pthread test headers */
7668 #include <pthread.h>
7670 #define NULL (void*)0
7673 static void *task(p)
7676 return (void *) (p == NULL);
7680 int main(argc, argv)
7685 /* pthread test function */
7688 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7689 /* This system (e.g. AIX) defaults detached; must override */
7690 pthread_attr_t attr;
7692 status = pthread_attr_init(&attr);
7693 if( status ) exit( status );
7695 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7696 if( status ) exit( status );
7700 #if HAVE_PTHREADS_D4
7701 #define ATTR pthread_attr_default
7706 /* make sure pthread_create() isn't just a stub */
7707 status = pthread_create(&t, ATTR, task, NULL);
7708 if( status ) exit( status );
7710 /* make sure pthread_detach() isn't just a stub */
7711 #if HAVE_PTHREADS_D4
7712 status = pthread_detach( &t );
7714 status = pthread_detach( t );
7717 #ifdef HAVE_LINUX_THREADS
7718 pthread_kill_other_threads_np();
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7728 ol_cv_pthread_pthreads=yes
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7733 ol_cv_pthread_pthreads=no
7744 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7746 if test $ol_cv_pthread_pthreads = yes ; then
7747 ol_link_pthreads="-pthreads"
7748 ol_link_threads=posix
7752 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7753 if test "$ol_link_threads" = no ; then
7755 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7756 echo "configure:7757: checking for pthread link with -mthreads" >&5
7757 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7763 LIBS="-mthreads $LIBS"
7765 if test "$cross_compiling" = yes; then
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* pthread test headers */
7770 #include <pthread.h>
7772 #define NULL (void*)0
7775 static void *task(p)
7778 return (void *) (p == NULL);
7783 /* pthread test function */
7786 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7787 /* This system (e.g. AIX) defaults detached; must override */
7788 pthread_attr_t attr;
7790 status = pthread_attr_init(&attr);
7791 if( status ) exit( status );
7793 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7794 if( status ) exit( status );
7798 #if HAVE_PTHREADS_D4
7799 #define ATTR pthread_attr_default
7804 /* make sure pthread_create() isn't just a stub */
7805 status = pthread_create(&t, ATTR, task, NULL);
7806 if( status ) exit( status );
7808 /* make sure pthread_detach() isn't just a stub */
7809 #if HAVE_PTHREADS_D4
7810 status = pthread_detach( &t );
7812 status = pthread_detach( t );
7815 #ifdef HAVE_LINUX_THREADS
7816 pthread_kill_other_threads_np();
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 ol_cv_pthread_mthreads=yes
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 ol_cv_pthread_mthreads=no
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* pthread test headers */
7838 #include <pthread.h>
7840 #define NULL (void*)0
7843 static void *task(p)
7846 return (void *) (p == NULL);
7850 int main(argc, argv)
7855 /* pthread test function */
7858 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7859 /* This system (e.g. AIX) defaults detached; must override */
7860 pthread_attr_t attr;
7862 status = pthread_attr_init(&attr);
7863 if( status ) exit( status );
7865 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7866 if( status ) exit( status );
7870 #if HAVE_PTHREADS_D4
7871 #define ATTR pthread_attr_default
7876 /* make sure pthread_create() isn't just a stub */
7877 status = pthread_create(&t, ATTR, task, NULL);
7878 if( status ) exit( status );
7880 /* make sure pthread_detach() isn't just a stub */
7881 #if HAVE_PTHREADS_D4
7882 status = pthread_detach( &t );
7884 status = pthread_detach( t );
7887 #ifdef HAVE_LINUX_THREADS
7888 pthread_kill_other_threads_np();
7896 if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7898 ol_cv_pthread_mthreads=yes
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7903 ol_cv_pthread_mthreads=no
7914 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7916 if test $ol_cv_pthread_mthreads = yes ; then
7917 ol_link_pthreads="-mthreads"
7918 ol_link_threads=posix
7922 # Pthread try link: -thread (ol_cv_pthread_thread)
7923 if test "$ol_link_threads" = no ; then
7925 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7926 echo "configure:7927: checking for pthread link with -thread" >&5
7927 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7933 LIBS="-thread $LIBS"
7935 if test "$cross_compiling" = yes; then
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* pthread test headers */
7940 #include <pthread.h>
7942 #define NULL (void*)0
7945 static void *task(p)
7948 return (void *) (p == NULL);
7953 /* pthread test function */
7956 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7957 /* This system (e.g. AIX) defaults detached; must override */
7958 pthread_attr_t attr;
7960 status = pthread_attr_init(&attr);
7961 if( status ) exit( status );
7963 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7964 if( status ) exit( status );
7968 #if HAVE_PTHREADS_D4
7969 #define ATTR pthread_attr_default
7974 /* make sure pthread_create() isn't just a stub */
7975 status = pthread_create(&t, ATTR, task, NULL);
7976 if( status ) exit( status );
7978 /* make sure pthread_detach() isn't just a stub */
7979 #if HAVE_PTHREADS_D4
7980 status = pthread_detach( &t );
7982 status = pthread_detach( t );
7985 #ifdef HAVE_LINUX_THREADS
7986 pthread_kill_other_threads_np();
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 ol_cv_pthread_thread=yes
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
8000 ol_cv_pthread_thread=no
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* pthread test headers */
8008 #include <pthread.h>
8010 #define NULL (void*)0
8013 static void *task(p)
8016 return (void *) (p == NULL);
8020 int main(argc, argv)
8025 /* pthread test function */
8028 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8029 /* This system (e.g. AIX) defaults detached; must override */
8030 pthread_attr_t attr;
8032 status = pthread_attr_init(&attr);
8033 if( status ) exit( status );
8035 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8036 if( status ) exit( status );
8040 #if HAVE_PTHREADS_D4
8041 #define ATTR pthread_attr_default
8046 /* make sure pthread_create() isn't just a stub */
8047 status = pthread_create(&t, ATTR, task, NULL);
8048 if( status ) exit( status );
8050 /* make sure pthread_detach() isn't just a stub */
8051 #if HAVE_PTHREADS_D4
8052 status = pthread_detach( &t );
8054 status = pthread_detach( t );
8057 #ifdef HAVE_LINUX_THREADS
8058 pthread_kill_other_threads_np();
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8068 ol_cv_pthread_thread=yes
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 ol_cv_pthread_thread=no
8084 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8086 if test $ol_cv_pthread_thread = yes ; then
8087 ol_link_pthreads="-thread"
8088 ol_link_threads=posix
8093 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8094 if test "$ol_link_threads" = no ; then
8095 # try -lpthread -lmach -lexc -lc_r
8096 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8097 echo "configure:8098: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8098 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
8104 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8106 if test "$cross_compiling" = yes; then
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* pthread test headers */
8111 #include <pthread.h>
8113 #define NULL (void*)0
8116 static void *task(p)
8119 return (void *) (p == NULL);
8124 /* pthread test function */
8127 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8128 /* This system (e.g. AIX) defaults detached; must override */
8129 pthread_attr_t attr;
8131 status = pthread_attr_init(&attr);
8132 if( status ) exit( status );
8134 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8135 if( status ) exit( status );
8139 #if HAVE_PTHREADS_D4
8140 #define ATTR pthread_attr_default
8145 /* make sure pthread_create() isn't just a stub */
8146 status = pthread_create(&t, ATTR, task, NULL);
8147 if( status ) exit( status );
8149 /* make sure pthread_detach() isn't just a stub */
8150 #if HAVE_PTHREADS_D4
8151 status = pthread_detach( &t );
8153 status = pthread_detach( t );
8156 #ifdef HAVE_LINUX_THREADS
8157 pthread_kill_other_threads_np();
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8171 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* pthread test headers */
8179 #include <pthread.h>
8181 #define NULL (void*)0
8184 static void *task(p)
8187 return (void *) (p == NULL);
8191 int main(argc, argv)
8196 /* pthread test function */
8199 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8200 /* This system (e.g. AIX) defaults detached; must override */
8201 pthread_attr_t attr;
8203 status = pthread_attr_init(&attr);
8204 if( status ) exit( status );
8206 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8207 if( status ) exit( status );
8211 #if HAVE_PTHREADS_D4
8212 #define ATTR pthread_attr_default
8217 /* make sure pthread_create() isn't just a stub */
8218 status = pthread_create(&t, ATTR, task, NULL);
8219 if( status ) exit( status );
8221 /* make sure pthread_detach() isn't just a stub */
8222 #if HAVE_PTHREADS_D4
8223 status = pthread_detach( &t );
8225 status = pthread_detach( t );
8228 #ifdef HAVE_LINUX_THREADS
8229 pthread_kill_other_threads_np();
8237 if { (eval echo configure:8238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8239 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8255 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8257 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8258 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8259 ol_link_threads=posix
8263 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8264 if test "$ol_link_threads" = no ; then
8265 # try -lpthread -lmach -lexc
8266 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8267 echo "configure:8268: checking for pthread link with -lpthread -lmach -lexc" >&5
8268 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8274 LIBS="-lpthread -lmach -lexc $LIBS"
8276 if test "$cross_compiling" = yes; then
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* pthread test headers */
8281 #include <pthread.h>
8283 #define NULL (void*)0
8286 static void *task(p)
8289 return (void *) (p == NULL);
8294 /* pthread test function */
8297 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8298 /* This system (e.g. AIX) defaults detached; must override */
8299 pthread_attr_t attr;
8301 status = pthread_attr_init(&attr);
8302 if( status ) exit( status );
8304 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8305 if( status ) exit( status );
8309 #if HAVE_PTHREADS_D4
8310 #define ATTR pthread_attr_default
8315 /* make sure pthread_create() isn't just a stub */
8316 status = pthread_create(&t, ATTR, task, NULL);
8317 if( status ) exit( status );
8319 /* make sure pthread_detach() isn't just a stub */
8320 #if HAVE_PTHREADS_D4
8321 status = pthread_detach( &t );
8323 status = pthread_detach( t );
8326 #ifdef HAVE_LINUX_THREADS
8327 pthread_kill_other_threads_np();
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 ol_cv_pthread_lpthread_lmach_lexc=yes
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 ol_cv_pthread_lpthread_lmach_lexc=no
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 /* pthread test headers */
8349 #include <pthread.h>
8351 #define NULL (void*)0
8354 static void *task(p)
8357 return (void *) (p == NULL);
8361 int main(argc, argv)
8366 /* pthread test function */
8369 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8370 /* This system (e.g. AIX) defaults detached; must override */
8371 pthread_attr_t attr;
8373 status = pthread_attr_init(&attr);
8374 if( status ) exit( status );
8376 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8377 if( status ) exit( status );
8381 #if HAVE_PTHREADS_D4
8382 #define ATTR pthread_attr_default
8387 /* make sure pthread_create() isn't just a stub */
8388 status = pthread_create(&t, ATTR, task, NULL);
8389 if( status ) exit( status );
8391 /* make sure pthread_detach() isn't just a stub */
8392 #if HAVE_PTHREADS_D4
8393 status = pthread_detach( &t );
8395 status = pthread_detach( t );
8398 #ifdef HAVE_LINUX_THREADS
8399 pthread_kill_other_threads_np();
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8409 ol_cv_pthread_lpthread_lmach_lexc=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 ol_cv_pthread_lpthread_lmach_lexc=no
8425 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8427 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8428 ol_link_pthreads="-lpthread -lmach -lexc"
8429 ol_link_threads=posix
8434 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8435 if test "$ol_link_threads" = no ; then
8436 # try -lpthread -Wl,-woff,85
8437 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8438 echo "configure:8439: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8439 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8445 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8447 if test "$cross_compiling" = yes; then
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* pthread test headers */
8452 #include <pthread.h>
8454 #define NULL (void*)0
8457 static void *task(p)
8460 return (void *) (p == NULL);
8465 /* pthread test function */
8468 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8469 /* This system (e.g. AIX) defaults detached; must override */
8470 pthread_attr_t attr;
8472 status = pthread_attr_init(&attr);
8473 if( status ) exit( status );
8475 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8476 if( status ) exit( status );
8480 #if HAVE_PTHREADS_D4
8481 #define ATTR pthread_attr_default
8486 /* make sure pthread_create() isn't just a stub */
8487 status = pthread_create(&t, ATTR, task, NULL);
8488 if( status ) exit( status );
8490 /* make sure pthread_detach() isn't just a stub */
8491 #if HAVE_PTHREADS_D4
8492 status = pthread_detach( &t );
8494 status = pthread_detach( t );
8497 #ifdef HAVE_LINUX_THREADS
8498 pthread_kill_other_threads_np();
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 ol_cv_pthread_lib_lpthread_woff=yes
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 ol_cv_pthread_lib_lpthread_woff=no
8516 cat > conftest.$ac_ext <<EOF
8517 #line 8518 "configure"
8518 #include "confdefs.h"
8519 /* pthread test headers */
8520 #include <pthread.h>
8522 #define NULL (void*)0
8525 static void *task(p)
8528 return (void *) (p == NULL);
8532 int main(argc, argv)
8537 /* pthread test function */
8540 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8541 /* This system (e.g. AIX) defaults detached; must override */
8542 pthread_attr_t attr;
8544 status = pthread_attr_init(&attr);
8545 if( status ) exit( status );
8547 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8548 if( status ) exit( status );
8552 #if HAVE_PTHREADS_D4
8553 #define ATTR pthread_attr_default
8558 /* make sure pthread_create() isn't just a stub */
8559 status = pthread_create(&t, ATTR, task, NULL);
8560 if( status ) exit( status );
8562 /* make sure pthread_detach() isn't just a stub */
8563 #if HAVE_PTHREADS_D4
8564 status = pthread_detach( &t );
8566 status = pthread_detach( t );
8569 #ifdef HAVE_LINUX_THREADS
8570 pthread_kill_other_threads_np();
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8580 ol_cv_pthread_lib_lpthread_woff=yes
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8585 ol_cv_pthread_lib_lpthread_woff=no
8596 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8598 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8599 ol_link_pthreads="-lpthread -Wl,-woff,85"
8600 ol_link_threads=posix
8605 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8606 if test "$ol_link_threads" = no ; then
8608 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8609 echo "configure:8610: checking for pthread link with -lpthread" >&5
8610 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8616 LIBS="-lpthread $LIBS"
8618 if test "$cross_compiling" = yes; then
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 /* pthread test headers */
8623 #include <pthread.h>
8625 #define NULL (void*)0
8628 static void *task(p)
8631 return (void *) (p == NULL);
8636 /* pthread test function */
8639 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8640 /* This system (e.g. AIX) defaults detached; must override */
8641 pthread_attr_t attr;
8643 status = pthread_attr_init(&attr);
8644 if( status ) exit( status );
8646 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8647 if( status ) exit( status );
8651 #if HAVE_PTHREADS_D4
8652 #define ATTR pthread_attr_default
8657 /* make sure pthread_create() isn't just a stub */
8658 status = pthread_create(&t, ATTR, task, NULL);
8659 if( status ) exit( status );
8661 /* make sure pthread_detach() isn't just a stub */
8662 #if HAVE_PTHREADS_D4
8663 status = pthread_detach( &t );
8665 status = pthread_detach( t );
8668 #ifdef HAVE_LINUX_THREADS
8669 pthread_kill_other_threads_np();
8676 if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 ol_cv_pthread_lpthread=yes
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 ol_cv_pthread_lpthread=no
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 /* pthread test headers */
8691 #include <pthread.h>
8693 #define NULL (void*)0
8696 static void *task(p)
8699 return (void *) (p == NULL);
8703 int main(argc, argv)
8708 /* pthread test function */
8711 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8712 /* This system (e.g. AIX) defaults detached; must override */
8713 pthread_attr_t attr;
8715 status = pthread_attr_init(&attr);
8716 if( status ) exit( status );
8718 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8719 if( status ) exit( status );
8723 #if HAVE_PTHREADS_D4
8724 #define ATTR pthread_attr_default
8729 /* make sure pthread_create() isn't just a stub */
8730 status = pthread_create(&t, ATTR, task, NULL);
8731 if( status ) exit( status );
8733 /* make sure pthread_detach() isn't just a stub */
8734 #if HAVE_PTHREADS_D4
8735 status = pthread_detach( &t );
8737 status = pthread_detach( t );
8740 #ifdef HAVE_LINUX_THREADS
8741 pthread_kill_other_threads_np();
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8751 ol_cv_pthread_lpthread=yes
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 ol_cv_pthread_lpthread=no
8767 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8769 if test $ol_cv_pthread_lpthread = yes ; then
8770 ol_link_pthreads="-lpthread"
8771 ol_link_threads=posix
8775 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8776 if test "$ol_link_threads" = no ; then
8778 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8779 echo "configure:8780: checking for pthread link with -lc_r" >&5
8780 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8788 if test "$cross_compiling" = yes; then
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8792 /* pthread test headers */
8793 #include <pthread.h>
8795 #define NULL (void*)0
8798 static void *task(p)
8801 return (void *) (p == NULL);
8806 /* pthread test function */
8809 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8810 /* This system (e.g. AIX) defaults detached; must override */
8811 pthread_attr_t attr;
8813 status = pthread_attr_init(&attr);
8814 if( status ) exit( status );
8816 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8817 if( status ) exit( status );
8821 #if HAVE_PTHREADS_D4
8822 #define ATTR pthread_attr_default
8827 /* make sure pthread_create() isn't just a stub */
8828 status = pthread_create(&t, ATTR, task, NULL);
8829 if( status ) exit( status );
8831 /* make sure pthread_detach() isn't just a stub */
8832 #if HAVE_PTHREADS_D4
8833 status = pthread_detach( &t );
8835 status = pthread_detach( t );
8838 #ifdef HAVE_LINUX_THREADS
8839 pthread_kill_other_threads_np();
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848 ol_cv_pthread_lc_r=yes
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 ol_cv_pthread_lc_r=no
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 /* pthread test headers */
8861 #include <pthread.h>
8863 #define NULL (void*)0
8866 static void *task(p)
8869 return (void *) (p == NULL);
8873 int main(argc, argv)
8878 /* pthread test function */
8881 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8882 /* This system (e.g. AIX) defaults detached; must override */
8883 pthread_attr_t attr;
8885 status = pthread_attr_init(&attr);
8886 if( status ) exit( status );
8888 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8889 if( status ) exit( status );
8893 #if HAVE_PTHREADS_D4
8894 #define ATTR pthread_attr_default
8899 /* make sure pthread_create() isn't just a stub */
8900 status = pthread_create(&t, ATTR, task, NULL);
8901 if( status ) exit( status );
8903 /* make sure pthread_detach() isn't just a stub */
8904 #if HAVE_PTHREADS_D4
8905 status = pthread_detach( &t );
8907 status = pthread_detach( t );
8910 #ifdef HAVE_LINUX_THREADS
8911 pthread_kill_other_threads_np();
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8921 ol_cv_pthread_lc_r=yes
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8926 ol_cv_pthread_lc_r=no
8937 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8939 if test $ol_cv_pthread_lc_r = yes ; then
8940 ol_link_pthreads="-lc_r"
8941 ol_link_threads=posix
8946 # Pthread try link: -threads (ol_cv_pthread_threads)
8947 if test "$ol_link_threads" = no ; then
8949 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8950 echo "configure:8951: checking for pthread link with -threads" >&5
8951 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8957 LIBS="-threads $LIBS"
8959 if test "$cross_compiling" = yes; then
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* pthread test headers */
8964 #include <pthread.h>
8966 #define NULL (void*)0
8969 static void *task(p)
8972 return (void *) (p == NULL);
8977 /* pthread test function */
8980 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8981 /* This system (e.g. AIX) defaults detached; must override */
8982 pthread_attr_t attr;
8984 status = pthread_attr_init(&attr);
8985 if( status ) exit( status );
8987 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8988 if( status ) exit( status );
8992 #if HAVE_PTHREADS_D4
8993 #define ATTR pthread_attr_default
8998 /* make sure pthread_create() isn't just a stub */
8999 status = pthread_create(&t, ATTR, task, NULL);
9000 if( status ) exit( status );
9002 /* make sure pthread_detach() isn't just a stub */
9003 #if HAVE_PTHREADS_D4
9004 status = pthread_detach( &t );
9006 status = pthread_detach( t );
9009 #ifdef HAVE_LINUX_THREADS
9010 pthread_kill_other_threads_np();
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 ol_cv_pthread_threads=yes
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9024 ol_cv_pthread_threads=no
9028 cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 /* pthread test headers */
9032 #include <pthread.h>
9034 #define NULL (void*)0
9037 static void *task(p)
9040 return (void *) (p == NULL);
9044 int main(argc, argv)
9049 /* pthread test function */
9052 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9053 /* This system (e.g. AIX) defaults detached; must override */
9054 pthread_attr_t attr;
9056 status = pthread_attr_init(&attr);
9057 if( status ) exit( status );
9059 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9060 if( status ) exit( status );
9064 #if HAVE_PTHREADS_D4
9065 #define ATTR pthread_attr_default
9070 /* make sure pthread_create() isn't just a stub */
9071 status = pthread_create(&t, ATTR, task, NULL);
9072 if( status ) exit( status );
9074 /* make sure pthread_detach() isn't just a stub */
9075 #if HAVE_PTHREADS_D4
9076 status = pthread_detach( &t );
9078 status = pthread_detach( t );
9081 #ifdef HAVE_LINUX_THREADS
9082 pthread_kill_other_threads_np();
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9092 ol_cv_pthread_threads=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 ol_cv_pthread_threads=no
9108 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9110 if test $ol_cv_pthread_threads = yes ; then
9111 ol_link_pthreads="-threads"
9112 ol_link_threads=posix
9117 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9118 if test "$ol_link_threads" = no ; then
9119 # try -lpthreads -lmach -lexc -lc_r
9120 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9121 echo "configure:9122: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9122 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9128 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9130 if test "$cross_compiling" = yes; then
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 /* pthread test headers */
9135 #include <pthread.h>
9137 #define NULL (void*)0
9140 static void *task(p)
9143 return (void *) (p == NULL);
9148 /* pthread test function */
9151 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9152 /* This system (e.g. AIX) defaults detached; must override */
9153 pthread_attr_t attr;
9155 status = pthread_attr_init(&attr);
9156 if( status ) exit( status );
9158 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9159 if( status ) exit( status );
9163 #if HAVE_PTHREADS_D4
9164 #define ATTR pthread_attr_default
9169 /* make sure pthread_create() isn't just a stub */
9170 status = pthread_create(&t, ATTR, task, NULL);
9171 if( status ) exit( status );
9173 /* make sure pthread_detach() isn't just a stub */
9174 #if HAVE_PTHREADS_D4
9175 status = pthread_detach( &t );
9177 status = pthread_detach( t );
9180 #ifdef HAVE_LINUX_THREADS
9181 pthread_kill_other_threads_np();
9188 if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9190 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9195 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* pthread test headers */
9203 #include <pthread.h>
9205 #define NULL (void*)0
9208 static void *task(p)
9211 return (void *) (p == NULL);
9215 int main(argc, argv)
9220 /* pthread test function */
9223 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9224 /* This system (e.g. AIX) defaults detached; must override */
9225 pthread_attr_t attr;
9227 status = pthread_attr_init(&attr);
9228 if( status ) exit( status );
9230 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9231 if( status ) exit( status );
9235 #if HAVE_PTHREADS_D4
9236 #define ATTR pthread_attr_default
9241 /* make sure pthread_create() isn't just a stub */
9242 status = pthread_create(&t, ATTR, task, NULL);
9243 if( status ) exit( status );
9245 /* make sure pthread_detach() isn't just a stub */
9246 #if HAVE_PTHREADS_D4
9247 status = pthread_detach( &t );
9249 status = pthread_detach( t );
9252 #ifdef HAVE_LINUX_THREADS
9253 pthread_kill_other_threads_np();
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9263 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9268 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9279 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9281 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9282 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9283 ol_link_threads=posix
9287 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9288 if test "$ol_link_threads" = no ; then
9289 # try -lpthreads -lmach -lexc
9290 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9291 echo "configure:9292: checking for pthread link with -lpthreads -lmach -lexc" >&5
9292 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9298 LIBS="-lpthreads -lmach -lexc $LIBS"
9300 if test "$cross_compiling" = yes; then
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9304 /* pthread test headers */
9305 #include <pthread.h>
9307 #define NULL (void*)0
9310 static void *task(p)
9313 return (void *) (p == NULL);
9318 /* pthread test function */
9321 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9322 /* This system (e.g. AIX) defaults detached; must override */
9323 pthread_attr_t attr;
9325 status = pthread_attr_init(&attr);
9326 if( status ) exit( status );
9328 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9329 if( status ) exit( status );
9333 #if HAVE_PTHREADS_D4
9334 #define ATTR pthread_attr_default
9339 /* make sure pthread_create() isn't just a stub */
9340 status = pthread_create(&t, ATTR, task, NULL);
9341 if( status ) exit( status );
9343 /* make sure pthread_detach() isn't just a stub */
9344 #if HAVE_PTHREADS_D4
9345 status = pthread_detach( &t );
9347 status = pthread_detach( t );
9350 #ifdef HAVE_LINUX_THREADS
9351 pthread_kill_other_threads_np();
9358 if { (eval echo configure:9359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9360 ol_cv_pthread_lpthreads_lmach_lexc=yes
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9365 ol_cv_pthread_lpthreads_lmach_lexc=no
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372 /* pthread test headers */
9373 #include <pthread.h>
9375 #define NULL (void*)0
9378 static void *task(p)
9381 return (void *) (p == NULL);
9385 int main(argc, argv)
9390 /* pthread test function */
9393 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9394 /* This system (e.g. AIX) defaults detached; must override */
9395 pthread_attr_t attr;
9397 status = pthread_attr_init(&attr);
9398 if( status ) exit( status );
9400 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9401 if( status ) exit( status );
9405 #if HAVE_PTHREADS_D4
9406 #define ATTR pthread_attr_default
9411 /* make sure pthread_create() isn't just a stub */
9412 status = pthread_create(&t, ATTR, task, NULL);
9413 if( status ) exit( status );
9415 /* make sure pthread_detach() isn't just a stub */
9416 #if HAVE_PTHREADS_D4
9417 status = pthread_detach( &t );
9419 status = pthread_detach( t );
9422 #ifdef HAVE_LINUX_THREADS
9423 pthread_kill_other_threads_np();
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9433 ol_cv_pthread_lpthreads_lmach_lexc=yes
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 ol_cv_pthread_lpthreads_lmach_lexc=no
9449 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9451 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9452 ol_link_pthreads="-lpthreads -lmach -lexc"
9453 ol_link_threads=posix
9457 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9458 if test "$ol_link_threads" = no ; then
9459 # try -lpthreads -lexc
9460 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9461 echo "configure:9462: checking for pthread link with -lpthreads -lexc" >&5
9462 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9468 LIBS="-lpthreads -lexc $LIBS"
9470 if test "$cross_compiling" = yes; then
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* pthread test headers */
9475 #include <pthread.h>
9477 #define NULL (void*)0
9480 static void *task(p)
9483 return (void *) (p == NULL);
9488 /* pthread test function */
9491 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9492 /* This system (e.g. AIX) defaults detached; must override */
9493 pthread_attr_t attr;
9495 status = pthread_attr_init(&attr);
9496 if( status ) exit( status );
9498 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9499 if( status ) exit( status );
9503 #if HAVE_PTHREADS_D4
9504 #define ATTR pthread_attr_default
9509 /* make sure pthread_create() isn't just a stub */
9510 status = pthread_create(&t, ATTR, task, NULL);
9511 if( status ) exit( status );
9513 /* make sure pthread_detach() isn't just a stub */
9514 #if HAVE_PTHREADS_D4
9515 status = pthread_detach( &t );
9517 status = pthread_detach( t );
9520 #ifdef HAVE_LINUX_THREADS
9521 pthread_kill_other_threads_np();
9528 if { (eval echo configure:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530 ol_cv_pthread_lpthreads_lexc=yes
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9535 ol_cv_pthread_lpthreads_lexc=no
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* pthread test headers */
9543 #include <pthread.h>
9545 #define NULL (void*)0
9548 static void *task(p)
9551 return (void *) (p == NULL);
9555 int main(argc, argv)
9560 /* pthread test function */
9563 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9564 /* This system (e.g. AIX) defaults detached; must override */
9565 pthread_attr_t attr;
9567 status = pthread_attr_init(&attr);
9568 if( status ) exit( status );
9570 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9571 if( status ) exit( status );
9575 #if HAVE_PTHREADS_D4
9576 #define ATTR pthread_attr_default
9581 /* make sure pthread_create() isn't just a stub */
9582 status = pthread_create(&t, ATTR, task, NULL);
9583 if( status ) exit( status );
9585 /* make sure pthread_detach() isn't just a stub */
9586 #if HAVE_PTHREADS_D4
9587 status = pthread_detach( &t );
9589 status = pthread_detach( t );
9592 #ifdef HAVE_LINUX_THREADS
9593 pthread_kill_other_threads_np();
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9603 ol_cv_pthread_lpthreads_lexc=yes
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 ol_cv_pthread_lpthreads_lexc=no
9619 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9621 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9622 ol_link_pthreads="-lpthreads -lexc"
9623 ol_link_threads=posix
9628 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9629 if test "$ol_link_threads" = no ; then
9631 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9632 echo "configure:9633: checking for pthread link with -lpthreads" >&5
9633 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9639 LIBS="-lpthreads $LIBS"
9641 if test "$cross_compiling" = yes; then
9642 cat > conftest.$ac_ext <<EOF
9643 #line 9644 "configure"
9644 #include "confdefs.h"
9645 /* pthread test headers */
9646 #include <pthread.h>
9648 #define NULL (void*)0
9651 static void *task(p)
9654 return (void *) (p == NULL);
9659 /* pthread test function */
9662 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9663 /* This system (e.g. AIX) defaults detached; must override */
9664 pthread_attr_t attr;
9666 status = pthread_attr_init(&attr);
9667 if( status ) exit( status );
9669 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9670 if( status ) exit( status );
9674 #if HAVE_PTHREADS_D4
9675 #define ATTR pthread_attr_default
9680 /* make sure pthread_create() isn't just a stub */
9681 status = pthread_create(&t, ATTR, task, NULL);
9682 if( status ) exit( status );
9684 /* make sure pthread_detach() isn't just a stub */
9685 #if HAVE_PTHREADS_D4
9686 status = pthread_detach( &t );
9688 status = pthread_detach( t );
9691 #ifdef HAVE_LINUX_THREADS
9692 pthread_kill_other_threads_np();
9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9701 ol_cv_pthread_lib_lpthreads=yes
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9706 ol_cv_pthread_lib_lpthreads=no
9710 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure"
9712 #include "confdefs.h"
9713 /* pthread test headers */
9714 #include <pthread.h>
9716 #define NULL (void*)0
9719 static void *task(p)
9722 return (void *) (p == NULL);
9726 int main(argc, argv)
9731 /* pthread test function */
9734 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9735 /* This system (e.g. AIX) defaults detached; must override */
9736 pthread_attr_t attr;
9738 status = pthread_attr_init(&attr);
9739 if( status ) exit( status );
9741 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9742 if( status ) exit( status );
9746 #if HAVE_PTHREADS_D4
9747 #define ATTR pthread_attr_default
9752 /* make sure pthread_create() isn't just a stub */
9753 status = pthread_create(&t, ATTR, task, NULL);
9754 if( status ) exit( status );
9756 /* make sure pthread_detach() isn't just a stub */
9757 #if HAVE_PTHREADS_D4
9758 status = pthread_detach( &t );
9760 status = pthread_detach( t );
9763 #ifdef HAVE_LINUX_THREADS
9764 pthread_kill_other_threads_np();
9772 if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9774 ol_cv_pthread_lib_lpthreads=yes
9776 echo "configure: failed program was:" >&5
9777 cat conftest.$ac_ext >&5
9779 ol_cv_pthread_lib_lpthreads=no
9790 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9792 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9793 ol_link_pthreads="-lpthreads"
9794 ol_link_threads=posix
9799 if test $ol_link_threads != no ; then
9800 cat >> confdefs.h <<\EOF
9801 #define HAVE_PTHREADS 1
9805 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9807 save_CPPFLAGS="$CPPFLAGS"
9809 LIBS="$LTHREAD_LIBS $LIBS"
9811 for ac_func in sched_yield pthread_yield
9813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9814 echo "configure:9815: checking for $ac_func" >&5
9815 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char $ac_func(); below. */
9824 /* Override any gcc2 internal prototype to avoid an error. */
9825 /* We use char because int might match the return type of a gcc2
9826 builtin and then its argument prototype would still apply. */
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9845 eval "ac_cv_func_$ac_func=yes"
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9850 eval "ac_cv_func_$ac_func=no"
9855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9856 echo "$ac_t""yes" 1>&6
9857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9858 cat >> confdefs.h <<EOF
9859 #define $ac_tr_func 1
9863 echo "$ac_t""no" 1>&6
9868 if test $ac_cv_func_sched_yield = no -a \
9869 $ac_cv_func_pthread_yield = no ; then
9870 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9871 echo "configure:9872: checking for sched_yield in -lrt" >&5
9872 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9876 ac_save_LIBS="$LIBS"
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9892 eval "ac_cv_lib_$ac_lib_var=yes"
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 eval "ac_cv_lib_$ac_lib_var=no"
9900 LIBS="$ac_save_LIBS"
9903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9906 cat >> confdefs.h <<\EOF
9907 #define HAVE_SCHED_YIELD 1
9910 ac_cv_func_sched_yield=yes
9912 echo "$ac_t""no" 1>&6
9913 ac_cv_func_sched_yield=no
9917 if test $ac_cv_func_sched_yield = no -a \
9918 $ac_cv_func_pthread_yield = no ; then
9919 for ac_func in thr_yield
9921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9922 echo "configure:9923: checking for $ac_func" >&5
9923 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char $ac_func(); below. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 eval "ac_cv_func_$ac_func=yes"
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 eval "ac_cv_func_$ac_func=no"
9963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9964 echo "$ac_t""yes" 1>&6
9965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9966 cat >> confdefs.h <<EOF
9967 #define $ac_tr_func 1
9971 echo "$ac_t""no" 1>&6
9976 if test $ac_cv_func_sched_yield = no -a \
9977 $ac_cv_func_pthread_yield = no -a \
9978 "$ac_cv_func_thr_yield" = no ; then
9979 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9982 for ac_func in pthread_kill
9984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9985 echo "configure:9986: checking for $ac_func" >&5
9986 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9987 echo $ac_n "(cached) $ac_c" 1>&6
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func(); below. */
9995 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10014 if { (eval echo configure:10015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10016 eval "ac_cv_func_$ac_func=yes"
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10021 eval "ac_cv_func_$ac_func=no"
10026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10027 echo "$ac_t""yes" 1>&6
10028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10029 cat >> confdefs.h <<EOF
10030 #define $ac_tr_func 1
10034 echo "$ac_t""no" 1>&6
10039 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10040 echo "configure:10041: checking for pthread_detach with <pthread.h>" >&5
10041 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10042 echo $ac_n "(cached) $ac_c" 1>&6
10045 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure"
10047 #include "confdefs.h"
10049 #include <pthread.h>
10051 #define NULL (void*)0
10055 pthread_detach(NULL);
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10060 ol_cv_func_pthread_detach=yes
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10065 ol_cv_func_pthread_detach=no
10071 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10073 if test $ol_cv_func_pthread_detach = no ; then
10074 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_PTHREAD_DETACH 1
10083 pthread_setconcurrency \
10084 pthread_getconcurrency \
10085 thr_setconcurrency \
10086 thr_getconcurrency \
10089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10090 echo "configure:10091: checking for $ac_func" >&5
10091 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 /* System header to define __stub macros and hopefully few prototypes,
10098 which can conflict with char $ac_func(); below. */
10099 #include <assert.h>
10100 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10108 /* The GNU C library defines this for functions which it implements
10109 to always fail with ENOSYS. Some functions are actually named
10110 something starting with __ and the normal name is an alias. */
10111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10119 if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 eval "ac_cv_func_$ac_func=yes"
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10126 eval "ac_cv_func_$ac_func=no"
10131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10134 cat >> confdefs.h <<EOF
10135 #define $ac_tr_func 1
10139 echo "$ac_t""no" 1>&6
10145 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10146 echo "configure:10147: checking for pthread_kill_other_threads_np" >&5
10147 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* System header to define __stub macros and hopefully few prototypes,
10154 which can conflict with char pthread_kill_other_threads_np(); below. */
10155 #include <assert.h>
10156 /* Override any gcc2 internal prototype to avoid an error. */
10157 /* We use char because int might match the return type of a gcc2
10158 builtin and then its argument prototype would still apply. */
10159 char pthread_kill_other_threads_np();
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10170 f = pthread_kill_other_threads_np;
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10187 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10188 echo "$ac_t""yes" 1>&6
10191 echo "$ac_t""no" 1>&6
10194 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10195 echo "configure:10196: checking for LinuxThreads implementation" >&5
10196 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10199 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10202 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10207 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10208 echo "configure:10209: checking for LinuxThreads consistency" >&5
10209 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10213 if test $ol_cv_header_linux_threads = yes -a \
10214 $ol_cv_sys_linux_threads = yes; then
10215 ol_cv_linux_threads=yes
10216 elif test $ol_cv_header_linux_threads = no -a \
10217 $ol_cv_sys_linux_threads = no; then
10218 ol_cv_linux_threads=no
10220 ol_cv_linux_threads=error
10225 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10228 if test $ol_cv_linux_threads = error; then
10229 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10232 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10233 echo "configure:10234: checking if pthread_create() works" >&5
10234 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10238 if test "$cross_compiling" = yes; then
10239 ol_cv_pthread_create_works=yes
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 /* pthread test headers */
10245 #include <pthread.h>
10247 #define NULL (void*)0
10250 static void *task(p)
10253 return (void *) (p == NULL);
10257 int main(argc, argv)
10262 /* pthread test function */
10265 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10266 /* This system (e.g. AIX) defaults detached; must override */
10267 pthread_attr_t attr;
10269 status = pthread_attr_init(&attr);
10270 if( status ) exit( status );
10272 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10273 if( status ) exit( status );
10277 #if HAVE_PTHREADS_D4
10278 #define ATTR pthread_attr_default
10283 /* make sure pthread_create() isn't just a stub */
10284 status = pthread_create(&t, ATTR, task, NULL);
10285 if( status ) exit( status );
10287 /* make sure pthread_detach() isn't just a stub */
10288 #if HAVE_PTHREADS_D4
10289 status = pthread_detach( &t );
10291 status = pthread_detach( t );
10294 #ifdef HAVE_LINUX_THREADS
10295 pthread_kill_other_threads_np();
10303 if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10305 ol_cv_pthread_create_works=yes
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10310 ol_cv_pthread_create_works=no
10317 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10319 if test $ol_cv_pthread_create_works = no ; then
10320 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10323 if test $ol_with_yielding_select = auto ; then
10324 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10325 echo "configure:10326: checking if select yields when using pthreads" >&5
10326 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10330 if test "$cross_compiling" = yes; then
10331 ol_cv_pthread_select_yields=cross
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10337 #include <sys/types.h>
10338 #include <sys/time.h>
10339 #include <unistd.h>
10340 #include <pthread.h>
10342 #define NULL (void*) 0
10345 static int fildes[2];
10347 static void *task(p)
10359 FD_SET(fildes[0], &rfds);
10361 /* we're not interested in any fds */
10362 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10369 exit(0); /* if we exit here, the select blocked the whole process */
10372 int main(argc, argv)
10378 /* create a pipe to select */
10379 if(pipe(&fildes[0])) {
10384 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10385 (void) pthread_setconcurrency(2);
10387 #ifdef HAVE_THR_SETCONCURRENCY
10388 /* Set Solaris LWP concurrency to 2 */
10389 thr_setconcurrency(2);
10393 #if HAVE_PTHREADS_D4
10394 pthread_create(&t, pthread_attr_default, task, NULL);
10396 pthread_create(&t, NULL, task, NULL);
10399 #if HAVE_SCHED_YIELD
10400 sched_yield(); /* make sure task runs first */
10402 #ifdef HAVE_PTHREAD_YIELD
10403 pthread_yield(); /* make sure task runs first */
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10412 ol_cv_pthread_select_yields=no
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 ol_cv_pthread_select_yields=yes
10424 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10426 if test $ol_cv_pthread_select_yields = cross ; then
10427 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10430 if test $ol_cv_pthread_select_yields = yes ; then
10431 ol_with_yielding_select=yes
10435 CPPFLAGS="$save_CPPFLAGS"
10438 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10442 if test $ol_with_threads = posix ; then
10443 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10447 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10448 -o $ol_with_threads = mach ; then
10450 for ac_hdr in mach/cthreads.h
10452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10454 echo "configure:10455: checking for $ac_hdr" >&5
10455 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10464 { (eval echo configure:10465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10466 if test -z "$ac_err"; then
10468 eval "ac_cv_header_$ac_safe=yes"
10471 echo "configure: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10474 eval "ac_cv_header_$ac_safe=no"
10478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10481 cat >> confdefs.h <<EOF
10482 #define $ac_tr_hdr 1
10486 echo "$ac_t""no" 1>&6
10490 if test $ac_cv_header_mach_cthreads_h = yes ; then
10491 ol_with_threads=found
10493 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10494 echo "configure:10495: checking for cthread_fork" >&5
10495 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10501 /* System header to define __stub macros and hopefully few prototypes,
10502 which can conflict with char cthread_fork(); below. */
10503 #include <assert.h>
10504 /* Override any gcc2 internal prototype to avoid an error. */
10505 /* We use char because int might match the return type of a gcc2
10506 builtin and then its argument prototype would still apply. */
10507 char cthread_fork();
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10525 eval "ac_cv_func_cthread_fork=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_func_cthread_fork=no"
10535 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 ol_link_threads=yes
10539 echo "$ac_t""no" 1>&6
10543 if test $ol_link_threads = no ; then
10544 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10545 echo "configure:10546: checking for cthread_fork with -all_load" >&5
10546 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10551 LIBS="-all_load $LIBS"
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10555 #include <mach/cthreads.h>
10558 cthread_fork((void *)0, (void *)0);
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 ol_cv_cthread_all_load=yes
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 ol_cv_cthread_all_load=no
10576 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10578 if test $ol_cv_cthread_all_load = yes ; then
10579 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10580 ol_link_threads=mach
10584 if test $ol_link_threads != no ; then
10585 : check for cthread specific functionality here
10586 cat >> confdefs.h <<\EOF
10587 #define HAVE_MACH_CTHREADS 1
10591 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10595 if test $ol_with_threads = mach ; then
10596 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10600 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10601 -o $ol_with_threads = pth ; then
10603 for ac_hdr in pth.h
10605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10607 echo "configure:10608: checking for $ac_hdr" >&5
10608 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10617 { (eval echo configure:10618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10619 if test -z "$ac_err"; then
10621 eval "ac_cv_header_$ac_safe=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 eval "ac_cv_header_$ac_safe=no"
10631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10632 echo "$ac_t""yes" 1>&6
10633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10634 cat >> confdefs.h <<EOF
10635 #define $ac_tr_hdr 1
10639 echo "$ac_t""no" 1>&6
10644 if test $ac_cv_header_pth_h = yes ; then
10645 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10646 echo "configure:10647: checking for pth_version in -lpth" >&5
10647 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10648 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 ac_save_LIBS="$LIBS"
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10659 char pth_version();
10665 if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10667 eval "ac_cv_lib_$ac_lib_var=yes"
10669 echo "configure: failed program was:" >&5
10670 cat conftest.$ac_ext >&5
10672 eval "ac_cv_lib_$ac_lib_var=no"
10675 LIBS="$ac_save_LIBS"
10678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10679 echo "$ac_t""yes" 1>&6
10682 echo "$ac_t""no" 1>&6
10687 if test $have_pth = yes ; then
10688 cat >> confdefs.h <<\EOF
10689 #define HAVE_GNU_PTH 1
10692 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10693 ol_link_threads=pth
10695 if test $ol_with_yielding_select = auto ; then
10696 ol_with_yielding_select=yes
10702 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10703 -o $ol_with_threads = lwp ; then
10705 for ac_hdr in thread.h synch.h
10707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10709 echo "configure:10710: checking for $ac_hdr" >&5
10710 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10719 { (eval echo configure:10720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10721 if test -z "$ac_err"; then
10723 eval "ac_cv_header_$ac_safe=yes"
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10729 eval "ac_cv_header_$ac_safe=no"
10733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10734 echo "$ac_t""yes" 1>&6
10735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10736 cat >> confdefs.h <<EOF
10737 #define $ac_tr_hdr 1
10741 echo "$ac_t""no" 1>&6
10745 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10746 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10747 echo "configure:10748: checking for thr_create in -lthread" >&5
10748 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10752 ac_save_LIBS="$LIBS"
10753 LIBS="-lthread $LIBS"
10754 cat > conftest.$ac_ext <<EOF
10755 #line 10756 "configure"
10756 #include "confdefs.h"
10757 /* Override any gcc2 internal prototype to avoid an error. */
10758 /* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10766 if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10768 eval "ac_cv_lib_$ac_lib_var=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_lib_$ac_lib_var=no"
10776 LIBS="$ac_save_LIBS"
10779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10780 echo "$ac_t""yes" 1>&6
10783 echo "$ac_t""no" 1>&6
10788 if test $have_thr = yes ; then
10789 cat >> confdefs.h <<\EOF
10793 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10794 ol_link_threads=thr
10796 if test $ol_with_yielding_select = auto ; then
10797 ol_with_yielding_select=yes
10801 thr_setconcurrency \
10802 thr_getconcurrency \
10805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10806 echo "configure:10807: checking for $ac_func" >&5
10807 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 /* System header to define __stub macros and hopefully few prototypes,
10814 which can conflict with char $ac_func(); below. */
10815 #include <assert.h>
10816 /* Override any gcc2 internal prototype to avoid an error. */
10817 /* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10824 /* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 eval "ac_cv_func_$ac_func=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_func_$ac_func=no"
10847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10848 echo "$ac_t""yes" 1>&6
10849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10850 cat >> confdefs.h <<EOF
10851 #define $ac_tr_func 1
10855 echo "$ac_t""no" 1>&6
10862 for ac_hdr in lwp/lwp.h
10864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10866 echo "configure:10867: checking for $ac_hdr" >&5
10867 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10876 { (eval echo configure:10877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10878 if test -z "$ac_err"; then
10880 eval "ac_cv_header_$ac_safe=yes"
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 eval "ac_cv_header_$ac_safe=no"
10890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10893 cat >> confdefs.h <<EOF
10894 #define $ac_tr_hdr 1
10898 echo "$ac_t""no" 1>&6
10902 if test $ac_cv_header_lwp_lwp_h = yes ; then
10903 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10904 echo "configure:10905: checking for lwp_create in -llwp" >&5
10905 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10909 ac_save_LIBS="$LIBS"
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10923 if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10925 eval "ac_cv_lib_$ac_lib_var=yes"
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10930 eval "ac_cv_lib_$ac_lib_var=no"
10933 LIBS="$ac_save_LIBS"
10936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10937 echo "$ac_t""yes" 1>&6
10940 echo "$ac_t""no" 1>&6
10945 if test $have_lwp = yes ; then
10946 cat >> confdefs.h <<\EOF
10950 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10951 ol_link_threads=lwp
10953 if test $ol_with_yielding_select = auto ; then
10954 ol_with_yielding_select=no
10960 if test $ol_with_yielding_select = yes ; then
10961 cat >> confdefs.h <<\EOF
10962 #define HAVE_YIELDING_SELECT 1
10967 if test $ol_with_threads = manual ; then
10968 ol_link_threads=yes
10970 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10972 for ac_hdr in pthread.h sched.h
10974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10976 echo "configure:10977: checking for $ac_hdr" >&5
10977 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10978 echo $ac_n "(cached) $ac_c" 1>&6
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10986 { (eval echo configure:10987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10988 if test -z "$ac_err"; then
10990 eval "ac_cv_header_$ac_safe=yes"
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10996 eval "ac_cv_header_$ac_safe=no"
11000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11001 echo "$ac_t""yes" 1>&6
11002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11003 cat >> confdefs.h <<EOF
11004 #define $ac_tr_hdr 1
11008 echo "$ac_t""no" 1>&6
11012 for ac_func in sched_yield pthread_yield
11014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_func" >&5
11016 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 /* System header to define __stub macros and hopefully few prototypes,
11023 which can conflict with char $ac_func(); below. */
11024 #include <assert.h>
11025 /* Override any gcc2 internal prototype to avoid an error. */
11026 /* We use char because int might match the return type of a gcc2
11027 builtin and then its argument prototype would still apply. */
11033 /* The GNU C library defines this for functions which it implements
11034 to always fail with ENOSYS. Some functions are actually named
11035 something starting with __ and the normal name is an alias. */
11036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_func_$ac_func=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_func_$ac_func=no"
11056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11059 cat >> confdefs.h <<EOF
11060 #define $ac_tr_func 1
11064 echo "$ac_t""no" 1>&6
11069 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11070 echo "configure:11071: checking for LinuxThreads pthread.h" >&5
11071 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11074 cat > conftest.$ac_ext <<EOF
11075 #line 11076 "configure"
11076 #include "confdefs.h"
11077 #include <pthread.h>
11079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11080 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11082 ol_cv_header_linux_threads=yes
11085 ol_cv_header_linux_threads=no
11092 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11093 if test $ol_cv_header_linux_threads = yes; then
11094 cat >> confdefs.h <<\EOF
11095 #define HAVE_LINUX_THREADS 1
11101 for ac_hdr in mach/cthreads.h
11103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11105 echo "configure:11106: checking for $ac_hdr" >&5
11106 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11115 { (eval echo configure:11116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11117 if test -z "$ac_err"; then
11119 eval "ac_cv_header_$ac_safe=yes"
11122 echo "configure: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11125 eval "ac_cv_header_$ac_safe=no"
11129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11130 echo "$ac_t""yes" 1>&6
11131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11132 cat >> confdefs.h <<EOF
11133 #define $ac_tr_hdr 1
11137 echo "$ac_t""no" 1>&6
11141 for ac_hdr in lwp/lwp.h
11143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11145 echo "configure:11146: checking for $ac_hdr" >&5
11146 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11155 { (eval echo configure:11156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11157 if test -z "$ac_err"; then
11159 eval "ac_cv_header_$ac_safe=yes"
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 eval "ac_cv_header_$ac_safe=no"
11169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11172 cat >> confdefs.h <<EOF
11173 #define $ac_tr_hdr 1
11177 echo "$ac_t""no" 1>&6
11181 for ac_hdr in thread.h synch.h
11183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11185 echo "configure:11186: checking for $ac_hdr" >&5
11186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11195 { (eval echo configure:11196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11197 if test -z "$ac_err"; then
11199 eval "ac_cv_header_$ac_safe=yes"
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11205 eval "ac_cv_header_$ac_safe=no"
11209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11212 cat >> confdefs.h <<EOF
11213 #define $ac_tr_hdr 1
11217 echo "$ac_t""no" 1>&6
11223 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11224 cat >> confdefs.h <<\EOF
11225 #define REENTRANT 1
11228 cat >> confdefs.h <<\EOF
11229 #define _REENTRANT 1
11232 cat >> confdefs.h <<\EOF
11233 #define THREAD_SAFE 1
11236 cat >> confdefs.h <<\EOF
11237 #define _THREAD_SAFE 1
11240 cat >> confdefs.h <<\EOF
11241 #define THREADSAFE 1
11244 cat >> confdefs.h <<\EOF
11245 #define _THREADSAFE 1
11248 cat >> confdefs.h <<\EOF
11249 #define _SGI_MP_SOURCE 1
11253 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11254 echo "configure:11255: checking for thread specific errno" >&5
11255 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269 ol_cv_errno_thread_specific=yes
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11274 ol_cv_errno_thread_specific=no
11280 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11282 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11283 echo "configure:11284: checking for thread specific h_errno" >&5
11284 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11296 if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11298 ol_cv_h_errno_thread_specific=yes
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11303 ol_cv_h_errno_thread_specific=no
11309 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11311 if test $ol_cv_errno_thread_specific != yes \
11312 -o $ol_cv_h_errno_thread_specific != yes ; then
11313 LIBS="$LTHREAD_LIBS $LIBS"
11319 if test $ol_link_threads = no ; then
11320 if test $ol_with_threads = yes ; then
11321 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11324 if test $ol_with_threads = auto ; then
11325 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11329 cat >> confdefs.h <<\EOF
11330 #define NO_THREADS 1
11336 if test $ol_link_threads != no ; then
11337 cat >> confdefs.h <<\EOF
11338 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11345 if test $ol_with_ldbm_api = auto \
11346 -o $ol_with_ldbm_api = berkeley \
11347 -o $ol_with_ldbm_api = bcompat ; then
11349 if test $ol_with_ldbm_api = bcompat; then \
11350 ol_cv_berkeley_db=no
11351 for ac_hdr in db_185.h db.h
11353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11355 echo "configure:11356: checking for $ac_hdr" >&5
11356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 cat > conftest.$ac_ext <<EOF
11360 #line 11361 "configure"
11361 #include "confdefs.h"
11364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11365 { (eval echo configure:11366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11367 if test -z "$ac_err"; then
11369 eval "ac_cv_header_$ac_safe=yes"
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11375 eval "ac_cv_header_$ac_safe=no"
11379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11382 cat >> confdefs.h <<EOF
11383 #define $ac_tr_hdr 1
11387 echo "$ac_t""no" 1>&6
11391 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11392 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11393 echo "configure:11394: checking if Berkeley DB header compatibility" >&5
11394 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11403 # include <db_185.h>
11408 /* this check could be improved */
11409 #ifndef DB_VERSION_MAJOR
11410 # define DB_VERSION_MAJOR 1
11413 #if DB_VERSION_MAJOR == 1
11418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11419 egrep "__db_version_1" >/dev/null 2>&1; then
11421 ol_cv_header_db1=yes
11424 ol_cv_header_db1=no
11430 echo "$ac_t""$ol_cv_header_db1" 1>&6
11432 if test ol_cv_header_db1=yes ; then
11434 if test $ol_cv_lib_db = no ; then
11435 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11436 echo "configure:11437: checking for Berkeley DB link (default)" >&5
11437 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11438 echo $ac_n "(cached) $ac_c" 1>&6
11443 LIBS="$ol_DB_LIB $LIBS"
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11449 #ifdef HAVE_DB_185_H
11450 # include <db_185.h>
11455 #ifndef DB_VERSION_MAJOR
11456 # define DB_VERSION_MAJOR 1
11460 #define NULL ((void*)0)
11465 #if DB_VERSION_MAJOR > 2
11466 db_env_create( NULL, 0 );
11467 #elif DB_VERSION_MAJOR > 1
11468 db_appexit( NULL );
11470 (void) dbopen( NULL, 0, 0, 0, NULL);
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11490 echo "$ac_t""$ol_cv_db_none" 1>&6
11492 if test $ol_cv_db_none = yes ; then
11497 if test $ol_cv_lib_db = no ; then
11498 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11499 echo "configure:11500: checking for Berkeley DB link (-ldb)" >&5
11500 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
11506 LIBS="$ol_DB_LIB $LIBS"
11508 cat > conftest.$ac_ext <<EOF
11509 #line 11510 "configure"
11510 #include "confdefs.h"
11512 #ifdef HAVE_DB_185_H
11513 # include <db_185.h>
11518 #ifndef DB_VERSION_MAJOR
11519 # define DB_VERSION_MAJOR 1
11523 #define NULL ((void*)0)
11528 #if DB_VERSION_MAJOR > 2
11529 db_env_create( NULL, 0 );
11530 #elif DB_VERSION_MAJOR > 1
11531 db_appexit( NULL );
11533 (void) dbopen( NULL, 0, 0, 0, NULL);
11538 if { (eval echo configure:11539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11542 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11553 echo "$ac_t""$ol_cv_db_db" 1>&6
11555 if test $ol_cv_db_db = yes ; then
11560 if test $ol_cv_lib_db = no ; then
11561 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11562 echo "configure:11563: checking for Berkeley DB link (-ldb3)" >&5
11563 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11564 echo $ac_n "(cached) $ac_c" 1>&6
11569 LIBS="$ol_DB_LIB $LIBS"
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11575 #ifdef HAVE_DB_185_H
11576 # include <db_185.h>
11581 #ifndef DB_VERSION_MAJOR
11582 # define DB_VERSION_MAJOR 1
11586 #define NULL ((void*)0)
11591 #if DB_VERSION_MAJOR > 2
11592 db_env_create( NULL, 0 );
11593 #elif DB_VERSION_MAJOR > 1
11594 db_appexit( NULL );
11596 (void) dbopen( NULL, 0, 0, 0, NULL);
11601 if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11616 echo "$ac_t""$ol_cv_db_db3" 1>&6
11618 if test $ol_cv_db_db3 = yes ; then
11623 if test $ol_cv_lib_db = no ; then
11624 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11625 echo "configure:11626: checking for Berkeley DB link (-ldb2)" >&5
11626 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11632 LIBS="$ol_DB_LIB $LIBS"
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11638 #ifdef HAVE_DB_185_H
11639 # include <db_185.h>
11644 #ifndef DB_VERSION_MAJOR
11645 # define DB_VERSION_MAJOR 1
11649 #define NULL ((void*)0)
11654 #if DB_VERSION_MAJOR > 2
11655 db_env_create( NULL, 0 );
11656 #elif DB_VERSION_MAJOR > 1
11657 db_appexit( NULL );
11659 (void) dbopen( NULL, 0, 0, 0, NULL);
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11679 echo "$ac_t""$ol_cv_db_db2" 1>&6
11681 if test $ol_cv_db_db2 = yes ; then
11686 if test $ol_cv_lib_db = no ; then
11687 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11688 echo "configure:11689: checking for Berkeley DB link (-ldb1)" >&5
11689 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11695 LIBS="$ol_DB_LIB $LIBS"
11697 cat > conftest.$ac_ext <<EOF
11698 #line 11699 "configure"
11699 #include "confdefs.h"
11701 #ifdef HAVE_DB_185_H
11702 # include <db_185.h>
11707 #ifndef DB_VERSION_MAJOR
11708 # define DB_VERSION_MAJOR 1
11712 #define NULL ((void*)0)
11717 #if DB_VERSION_MAJOR > 2
11718 db_env_create( NULL, 0 );
11719 #elif DB_VERSION_MAJOR > 1
11720 db_appexit( NULL );
11722 (void) dbopen( NULL, 0, 0, 0, NULL);
11727 if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11742 echo "$ac_t""$ol_cv_db_db1" 1>&6
11744 if test $ol_cv_db_db1 = yes ; then
11750 if test "$ol_cv_lib_db" != no ; then
11751 ol_cv_berkeley_db=yes
11757 ol_cv_berkeley_db=no
11760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11762 echo "configure:11763: checking for $ac_hdr" >&5
11763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11764 echo $ac_n "(cached) $ac_c" 1>&6
11766 cat > conftest.$ac_ext <<EOF
11767 #line 11768 "configure"
11768 #include "confdefs.h"
11771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11772 { (eval echo configure:11773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11774 if test -z "$ac_err"; then
11776 eval "ac_cv_header_$ac_safe=yes"
11779 echo "configure: failed program was:" >&5
11780 cat conftest.$ac_ext >&5
11782 eval "ac_cv_header_$ac_safe=no"
11786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11787 echo "$ac_t""yes" 1>&6
11788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11789 cat >> confdefs.h <<EOF
11790 #define $ac_tr_hdr 1
11794 echo "$ac_t""no" 1>&6
11798 if test $ac_cv_header_db_h = yes; then
11800 if test $ol_cv_lib_db = no ; then
11801 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11802 echo "configure:11803: checking for Berkeley DB link (default)" >&5
11803 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11804 echo $ac_n "(cached) $ac_c" 1>&6
11809 LIBS="$ol_DB_LIB $LIBS"
11811 cat > conftest.$ac_ext <<EOF
11812 #line 11813 "configure"
11813 #include "confdefs.h"
11815 #ifdef HAVE_DB_185_H
11816 # include <db_185.h>
11821 #ifndef DB_VERSION_MAJOR
11822 # define DB_VERSION_MAJOR 1
11826 #define NULL ((void*)0)
11831 #if DB_VERSION_MAJOR > 2
11832 db_env_create( NULL, 0 );
11833 #elif DB_VERSION_MAJOR > 1
11834 db_appexit( NULL );
11836 (void) dbopen( NULL, 0, 0, 0, NULL);
11841 if { (eval echo configure:11842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11856 echo "$ac_t""$ol_cv_db_none" 1>&6
11858 if test $ol_cv_db_none = yes ; then
11863 if test $ol_cv_lib_db = no ; then
11864 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11865 echo "configure:11866: checking for Berkeley DB link (-ldb)" >&5
11866 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11872 LIBS="$ol_DB_LIB $LIBS"
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11878 #ifdef HAVE_DB_185_H
11879 # include <db_185.h>
11884 #ifndef DB_VERSION_MAJOR
11885 # define DB_VERSION_MAJOR 1
11889 #define NULL ((void*)0)
11894 #if DB_VERSION_MAJOR > 2
11895 db_env_create( NULL, 0 );
11896 #elif DB_VERSION_MAJOR > 1
11897 db_appexit( NULL );
11899 (void) dbopen( NULL, 0, 0, 0, NULL);
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11919 echo "$ac_t""$ol_cv_db_db" 1>&6
11921 if test $ol_cv_db_db = yes ; then
11926 if test $ol_cv_lib_db = no ; then
11927 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11928 echo "configure:11929: checking for Berkeley DB link (-ldb3)" >&5
11929 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11935 LIBS="$ol_DB_LIB $LIBS"
11937 cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11941 #ifdef HAVE_DB_185_H
11942 # include <db_185.h>
11947 #ifndef DB_VERSION_MAJOR
11948 # define DB_VERSION_MAJOR 1
11952 #define NULL ((void*)0)
11957 #if DB_VERSION_MAJOR > 2
11958 db_env_create( NULL, 0 );
11959 #elif DB_VERSION_MAJOR > 1
11960 db_appexit( NULL );
11962 (void) dbopen( NULL, 0, 0, 0, NULL);
11967 if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11982 echo "$ac_t""$ol_cv_db_db3" 1>&6
11984 if test $ol_cv_db_db3 = yes ; then
11989 if test $ol_cv_lib_db = no ; then
11990 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11991 echo "configure:11992: checking for Berkeley DB link (-ldb2)" >&5
11992 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11998 LIBS="$ol_DB_LIB $LIBS"
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12004 #ifdef HAVE_DB_185_H
12005 # include <db_185.h>
12010 #ifndef DB_VERSION_MAJOR
12011 # define DB_VERSION_MAJOR 1
12015 #define NULL ((void*)0)
12020 #if DB_VERSION_MAJOR > 2
12021 db_env_create( NULL, 0 );
12022 #elif DB_VERSION_MAJOR > 1
12023 db_appexit( NULL );
12025 (void) dbopen( NULL, 0, 0, 0, NULL);
12030 if { (eval echo configure:12031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12045 echo "$ac_t""$ol_cv_db_db2" 1>&6
12047 if test $ol_cv_db_db2 = yes ; then
12052 if test $ol_cv_lib_db = no ; then
12053 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12054 echo "configure:12055: checking for Berkeley DB link (-ldb1)" >&5
12055 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12061 LIBS="$ol_DB_LIB $LIBS"
12063 cat > conftest.$ac_ext <<EOF
12064 #line 12065 "configure"
12065 #include "confdefs.h"
12067 #ifdef HAVE_DB_185_H
12068 # include <db_185.h>
12073 #ifndef DB_VERSION_MAJOR
12074 # define DB_VERSION_MAJOR 1
12078 #define NULL ((void*)0)
12083 #if DB_VERSION_MAJOR > 2
12084 db_env_create( NULL, 0 );
12085 #elif DB_VERSION_MAJOR > 1
12086 db_appexit( NULL );
12088 (void) dbopen( NULL, 0, 0, 0, NULL);
12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12097 echo "configure: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12108 echo "$ac_t""$ol_cv_db_db1" 1>&6
12110 if test $ol_cv_db_db1 = yes ; then
12116 if test "$ol_cv_lib_db" != no ; then
12117 ol_cv_berkeley_db=yes
12118 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12119 echo "configure:12120: checking for Berkeley DB thread support" >&5
12120 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12121 echo $ac_n "(cached) $ac_c" 1>&6
12125 if test $ol_cv_lib_db != yes ; then
12126 LIBS="$ol_cv_lib_db"
12129 if test "$cross_compiling" = yes; then
12130 ol_cv_berkeley_db_thread=cross
12132 cat > conftest.$ac_ext <<EOF
12133 #line 12134 "configure"
12134 #include "confdefs.h"
12136 #ifdef HAVE_DB_185_H
12142 #define NULL ((void *)0)
12147 u_int32_t flags = DB_CREATE | DB_THREAD;
12150 #if DB_VERSION_MAJOR > 2
12151 DB_ENV *env = NULL;
12153 rc = db_env_create( &env, 0 );
12156 rc = env->open( env, NULL, NULL, flags, 0 );
12161 memset( &env, '\0', sizeof(env) );
12163 rc = db_appinit( NULL, NULL, &env, flags );
12166 db_appexit( &env );
12173 if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12175 ol_cv_berkeley_db_thread=yes
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12180 ol_cv_berkeley_db_thread=no
12188 if test $ol_cv_berkeley_db_thread != no ; then
12189 cat >> confdefs.h <<\EOF
12190 #define HAVE_BERKELEY_DB_THREAD 1
12197 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12203 if test $ol_cv_berkeley_db != no ; then
12204 cat >> confdefs.h <<\EOF
12205 #define HAVE_BERKELEY_DB 1
12209 ol_link_ldbm=berkeley
12210 ol_with_ldbm_api=db
12212 if test $ol_with_ldbm_type = hash ; then
12213 cat >> confdefs.h <<\EOF
12214 #define LDBM_USE_DBHASH 1
12218 cat >> confdefs.h <<\EOF
12219 #define LDBM_USE_DBBTREE 1
12224 if test $ol_cv_lib_db != yes ; then
12225 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12230 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12231 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12232 ol_with_ldbm_api=none
12235 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12236 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12237 echo "configure:12238: checking for MDBM library" >&5
12238 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12239 echo $ac_n "(cached) $ac_c" 1>&6
12242 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12243 echo "configure:12244: checking for mdbm_set_chain" >&5
12244 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12247 cat > conftest.$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12250 /* System header to define __stub macros and hopefully few prototypes,
12251 which can conflict with char mdbm_set_chain(); below. */
12252 #include <assert.h>
12253 /* Override any gcc2 internal prototype to avoid an error. */
12254 /* We use char because int might match the return type of a gcc2
12255 builtin and then its argument prototype would still apply. */
12256 char mdbm_set_chain();
12261 /* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12267 f = mdbm_set_chain;
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 eval "ac_cv_func_mdbm_set_chain=yes"
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12279 eval "ac_cv_func_mdbm_set_chain=no"
12284 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12285 echo "$ac_t""yes" 1>&6
12288 echo "$ac_t""no" 1>&6
12290 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12291 echo "configure:12292: checking for mdbm_set_chain in -lmdbm" >&5
12292 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12293 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12296 ac_save_LIBS="$LIBS"
12297 LIBS="-lmdbm $LIBS"
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char mdbm_set_chain();
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12312 eval "ac_cv_lib_$ac_lib_var=yes"
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12317 eval "ac_cv_lib_$ac_lib_var=no"
12320 LIBS="$ac_save_LIBS"
12323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12324 echo "$ac_t""yes" 1>&6
12325 ol_cv_lib_mdbm=-lmdbm
12327 echo "$ac_t""no" 1>&6
12338 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12341 for ac_hdr in mdbm.h
12343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12345 echo "configure:12346: checking for $ac_hdr" >&5
12346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12349 cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure"
12351 #include "confdefs.h"
12354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12355 { (eval echo configure:12356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12357 if test -z "$ac_err"; then
12359 eval "ac_cv_header_$ac_safe=yes"
12362 echo "configure: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12365 eval "ac_cv_header_$ac_safe=no"
12369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12370 echo "$ac_t""yes" 1>&6
12371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12372 cat >> confdefs.h <<EOF
12373 #define $ac_tr_hdr 1
12377 echo "$ac_t""no" 1>&6
12381 echo $ac_n "checking for db""... $ac_c" 1>&6
12382 echo "configure:12383: checking for db" >&5
12383 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12387 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12395 echo "$ac_t""$ol_cv_mdbm" 1>&6
12396 if test $ol_cv_mdbm = yes ; then
12397 cat >> confdefs.h <<\EOF
12398 #define HAVE_MDBM 1
12404 if test $ol_cv_mdbm = yes ; then
12406 ol_with_ldbm_api=mdbm
12407 if test $ol_cv_lib_mdbm != yes ; then
12408 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12413 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12414 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12415 echo "configure:12416: checking for GDBM library" >&5
12416 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12420 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12421 echo "configure:12422: checking for gdbm_open" >&5
12422 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429 which can conflict with char gdbm_open(); below. */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error. */
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12439 /* The GNU C library defines this for functions which it implements
12440 to always fail with ENOSYS. Some functions are actually named
12441 something starting with __ and the normal name is an alias. */
12442 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12450 if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12452 eval "ac_cv_func_gdbm_open=yes"
12454 echo "configure: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12457 eval "ac_cv_func_gdbm_open=no"
12462 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12463 echo "$ac_t""yes" 1>&6
12466 echo "$ac_t""no" 1>&6
12468 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12469 echo "configure:12470: checking for gdbm_open in -lgdbm" >&5
12470 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12474 ac_save_LIBS="$LIBS"
12475 LIBS="-lgdbm $LIBS"
12476 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 eval "ac_cv_lib_$ac_lib_var=yes"
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12495 eval "ac_cv_lib_$ac_lib_var=no"
12498 LIBS="$ac_save_LIBS"
12501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12503 ol_cv_lib_gdbm=-lgdbm
12505 echo "$ac_t""no" 1>&6
12516 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12519 for ac_hdr in gdbm.h
12521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12523 echo "configure:12524: checking for $ac_hdr" >&5
12524 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12525 echo $ac_n "(cached) $ac_c" 1>&6
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12533 { (eval echo configure:12534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12535 if test -z "$ac_err"; then
12537 eval "ac_cv_header_$ac_safe=yes"
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12543 eval "ac_cv_header_$ac_safe=no"
12547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12548 echo "$ac_t""yes" 1>&6
12549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12550 cat >> confdefs.h <<EOF
12551 #define $ac_tr_hdr 1
12555 echo "$ac_t""no" 1>&6
12559 echo $ac_n "checking for db""... $ac_c" 1>&6
12560 echo "configure:12561: checking for db" >&5
12561 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12565 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12573 echo "$ac_t""$ol_cv_gdbm" 1>&6
12574 if test $ol_cv_gdbm = yes ; then
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_GDBM 1
12582 if test $ol_cv_gdbm = yes ; then
12584 ol_with_ldbm_api=gdbm
12586 if test $ol_cv_lib_gdbm != yes ; then
12587 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12592 if test $ol_with_ldbm_api = ndbm ; then
12593 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12594 echo "configure:12595: checking for NDBM library" >&5
12595 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
12599 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12600 echo "configure:12601: checking for dbm_open" >&5
12601 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char dbm_open(); below. */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12618 /* The GNU C library defines this for functions which it implements
12619 to always fail with ENOSYS. Some functions are actually named
12620 something starting with __ and the normal name is an alias. */
12621 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12629 if { (eval echo configure:12630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 eval "ac_cv_func_dbm_open=yes"
12633 echo "configure: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12636 eval "ac_cv_func_dbm_open=no"
12641 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12645 echo "$ac_t""no" 1>&6
12647 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12648 echo "configure:12649: checking for dbm_open in -lndbm" >&5
12649 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12653 ac_save_LIBS="$LIBS"
12654 LIBS="-lndbm $LIBS"
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12669 eval "ac_cv_lib_$ac_lib_var=yes"
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12674 eval "ac_cv_lib_$ac_lib_var=no"
12677 LIBS="$ac_save_LIBS"
12680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12681 echo "$ac_t""yes" 1>&6
12682 ol_cv_lib_ndbm=-lndbm
12684 echo "$ac_t""no" 1>&6
12686 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12687 echo "configure:12688: checking for dbm_open in -ldbm" >&5
12688 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12692 ac_save_LIBS="$LIBS"
12694 cat > conftest.$ac_ext <<EOF
12695 #line 12696 "configure"
12696 #include "confdefs.h"
12697 /* Override any gcc2 internal prototype to avoid an error. */
12698 /* We use char because int might match the return type of a gcc2
12699 builtin and then its argument prototype would still apply. */
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12708 eval "ac_cv_lib_$ac_lib_var=yes"
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12713 eval "ac_cv_lib_$ac_lib_var=no"
12716 LIBS="$ac_save_LIBS"
12719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12720 echo "$ac_t""yes" 1>&6
12721 ol_cv_lib_ndbm=-ldbm
12723 echo "$ac_t""no" 1>&6
12736 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12739 for ac_hdr in ndbm.h
12741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12743 echo "configure:12744: checking for $ac_hdr" >&5
12744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12745 echo $ac_n "(cached) $ac_c" 1>&6
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12753 { (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12755 if test -z "$ac_err"; then
12757 eval "ac_cv_header_$ac_safe=yes"
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12763 eval "ac_cv_header_$ac_safe=no"
12767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12768 echo "$ac_t""yes" 1>&6
12769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12770 cat >> confdefs.h <<EOF
12771 #define $ac_tr_hdr 1
12775 echo "$ac_t""no" 1>&6
12779 echo $ac_n "checking for db""... $ac_c" 1>&6
12780 echo "configure:12781: checking for db" >&5
12781 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12785 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12793 echo "$ac_t""$ol_cv_ndbm" 1>&6
12794 if test $ol_cv_ndbm = yes ; then
12795 cat >> confdefs.h <<\EOF
12796 #define HAVE_NDBM 1
12802 if test $ol_cv_ndbm = yes ; then
12804 ol_with_ldbm_api=ndbm
12806 if test $ol_cv_lib_ndbm != yes ; then
12807 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12812 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12813 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12814 if test $ol_enable_ldbm = yes ; then
12815 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12818 echo "configure: warning: disabling LDBM" 1>&2
12822 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12823 LINK_BINS_DYNAMIC="yes"
12825 LINK_BINS_DYNAMIC="no"
12828 if test $ol_enable_wrappers != no ; then
12829 for ac_hdr in tcpd.h
12831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12833 echo "configure:12834: checking for $ac_hdr" >&5
12834 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12837 cat > conftest.$ac_ext <<EOF
12838 #line 12839 "configure"
12839 #include "confdefs.h"
12842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12843 { (eval echo configure:12844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12845 if test -z "$ac_err"; then
12847 eval "ac_cv_header_$ac_safe=yes"
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12853 eval "ac_cv_header_$ac_safe=no"
12857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12858 echo "$ac_t""yes" 1>&6
12859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12860 cat >> confdefs.h <<EOF
12861 #define $ac_tr_hdr 1
12865 echo "$ac_t""no" 1>&6
12870 if test $ac_cv_header_tcpd_h != yes ; then
12873 cat > conftest.$ac_ext <<EOF
12874 #line 12875 "configure"
12875 #include "confdefs.h"
12877 int allow_severity = 0;
12878 int deny_severity = 0;
12884 if { (eval echo configure:12885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12896 if test $have_wrappers = yes ; then
12897 cat >> confdefs.h <<\EOF
12898 #define HAVE_TCPD 1
12903 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12904 echo "configure:12905: checking for main in -lnsl" >&5
12905 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12907 echo $ac_n "(cached) $ac_c" 1>&6
12909 ac_save_LIBS="$LIBS"
12911 cat > conftest.$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12919 if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12921 eval "ac_cv_lib_$ac_lib_var=yes"
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12926 eval "ac_cv_lib_$ac_lib_var=no"
12929 LIBS="$ac_save_LIBS"
12932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12933 echo "$ac_t""yes" 1>&6
12934 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12936 cat >> confdefs.h <<EOF
12937 #define $ac_tr_lib 1
12943 echo "$ac_t""no" 1>&6
12947 echo "configure: warning: could not find -lwrap" 1>&2
12948 if test $ol_enable_wrappers = yes ; then
12949 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12952 echo "configure: warning: disabling wrappers support" 1>&2
12953 ol_enable_wrappers=no
12958 if test $ol_enable_syslog != no ; then
12959 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12960 echo "configure:12961: checking for openlog" >&5
12961 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12962 echo $ac_n "(cached) $ac_c" 1>&6
12964 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 /* System header to define __stub macros and hopefully few prototypes,
12968 which can conflict with char openlog(); below. */
12969 #include <assert.h>
12970 /* Override any gcc2 internal prototype to avoid an error. */
12971 /* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12978 /* The GNU C library defines this for functions which it implements
12979 to always fail with ENOSYS. Some functions are actually named
12980 something starting with __ and the normal name is an alias. */
12981 #if defined (__stub_openlog) || defined (__stub___openlog)
12989 if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12991 eval "ac_cv_func_openlog=yes"
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12996 eval "ac_cv_func_openlog=no"
13001 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13002 echo "$ac_t""yes" 1>&6
13005 echo "$ac_t""no" 1>&6
13008 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13009 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13011 ol_enable_syslog=$ac_cv_func_openlog
13014 if test $ol_enable_tcl != no ; then
13015 for ac_hdr in tcl.h
13017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13019 echo "configure:13020: checking for $ac_hdr" >&5
13020 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13021 echo $ac_n "(cached) $ac_c" 1>&6
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13029 { (eval echo configure:13030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13031 if test -z "$ac_err"; then
13033 eval "ac_cv_header_$ac_safe=yes"
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13039 eval "ac_cv_header_$ac_safe=no"
13043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13044 echo "$ac_t""yes" 1>&6
13045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13046 cat >> confdefs.h <<EOF
13047 #define $ac_tr_hdr 1
13051 echo "$ac_t""no" 1>&6
13056 if test $ac_cv_header_tcl_h != yes ; then
13059 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13060 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13061 echo "configure:13062: checking for main in -l$lib" >&5
13062 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13063 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
13066 ac_save_LIBS="$LIBS"
13067 LIBS="-l$lib $LIBS"
13068 cat > conftest.$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13076 if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13078 eval "ac_cv_lib_$ac_lib_var=yes"
13080 echo "configure: failed program was:" >&5
13081 cat conftest.$ac_ext >&5
13083 eval "ac_cv_lib_$ac_lib_var=no"
13086 LIBS="$ac_save_LIBS"
13089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13090 echo "$ac_t""yes" 1>&6
13092 if test x"$ol_with_tcl_module" = "xstatic" ; then
13093 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13095 MOD_TCL_LIB="-l${lib}"
13098 echo "$ac_t""no" 1>&6
13105 if test $have_tcl != yes ; then
13106 echo "configure: warning: could not find -ltcl" 1>&2
13107 if test $ol_enable_tcl = yes ; then
13108 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13116 for ac_hdr in termcap.h ncurses.h
13118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13120 echo "configure:13121: checking for $ac_hdr" >&5
13121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13122 echo $ac_n "(cached) $ac_c" 1>&6
13124 cat > conftest.$ac_ext <<EOF
13125 #line 13126 "configure"
13126 #include "confdefs.h"
13129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13130 { (eval echo configure:13131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13132 if test -z "$ac_err"; then
13134 eval "ac_cv_header_$ac_safe=yes"
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13140 eval "ac_cv_header_$ac_safe=no"
13144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13145 echo "$ac_t""yes" 1>&6
13146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13147 cat >> confdefs.h <<EOF
13148 #define $ac_tr_hdr 1
13152 echo "$ac_t""no" 1>&6
13157 if test $ol_link_termcap = no ; then
13158 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13159 echo "configure:13160: checking for tputs in -ltermcap" >&5
13160 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13161 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13164 ac_save_LIBS="$LIBS"
13165 LIBS="-ltermcap $LIBS"
13166 cat > conftest.$ac_ext <<EOF
13167 #line 13168 "configure"
13168 #include "confdefs.h"
13169 /* Override any gcc2 internal prototype to avoid an error. */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13180 eval "ac_cv_lib_$ac_lib_var=yes"
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13185 eval "ac_cv_lib_$ac_lib_var=no"
13188 LIBS="$ac_save_LIBS"
13191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13192 echo "$ac_t""yes" 1>&6
13195 echo "$ac_t""no" 1>&6
13199 if test $have_termcap = yes ; then
13200 cat >> confdefs.h <<\EOF
13201 #define HAVE_TERMCAP 1
13204 ol_link_termcap=yes
13205 TERMCAP_LIBS=-ltermcap
13209 if test $ol_link_termcap = no ; then
13210 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13211 echo "configure:13212: checking for initscr in -lncurses" >&5
13212 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13216 ac_save_LIBS="$LIBS"
13217 LIBS="-lncurses $LIBS"
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 /* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13230 if { (eval echo configure:13231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13232 eval "ac_cv_lib_$ac_lib_var=yes"
13234 echo "configure: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13237 eval "ac_cv_lib_$ac_lib_var=no"
13240 LIBS="$ac_save_LIBS"
13243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13244 echo "$ac_t""yes" 1>&6
13247 echo "$ac_t""no" 1>&6
13251 if test $have_ncurses = yes ; then
13252 cat >> confdefs.h <<\EOF
13253 #define HAVE_NCURSES 1
13256 ol_link_termcap=yes
13257 TERMCAP_LIBS=-lncurses
13261 if test $ol_link_termcap = no ; then
13262 cat >> confdefs.h <<\EOF
13263 #define NO_TERMCAP 1
13271 if test $ol_with_cyrus_sasl != no ; then
13272 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13273 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13274 echo "configure:13275: checking for sasl.h" >&5
13275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13284 { (eval echo configure:13285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13286 if test -z "$ac_err"; then
13288 eval "ac_cv_header_$ac_safe=yes"
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13294 eval "ac_cv_header_$ac_safe=no"
13298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13302 echo "$ac_t""no" 1>&6
13306 if test $ac_cv_header_sasl_h = yes ; then
13307 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13308 echo "configure:13309: checking for sasl_client_init in -lsasl" >&5
13309 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
13313 ac_save_LIBS="$LIBS"
13314 LIBS="-lsasl $LIBS"
13315 cat > conftest.$ac_ext <<EOF
13316 #line 13317 "configure"
13317 #include "confdefs.h"
13318 /* Override any gcc2 internal prototype to avoid an error. */
13319 /* We use char because int might match the return type of a gcc2
13320 builtin and then its argument prototype would still apply. */
13321 char sasl_client_init();
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13329 eval "ac_cv_lib_$ac_lib_var=yes"
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13334 eval "ac_cv_lib_$ac_lib_var=no"
13337 LIBS="$ac_save_LIBS"
13340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13341 echo "$ac_t""yes" 1>&6
13342 have_cyrus_sasl=yes
13344 echo "$ac_t""no" 1>&6
13349 if test $have_cyrus_sasl != no ; then
13351 cat >> confdefs.h <<\EOF
13352 #define HAVE_CYRUS_SASL 1
13359 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13360 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13364 if test $cross_compiling != yes ; then
13366 if test -r /dev/urandom ; then
13367 dev="/dev/urandom";
13368 elif test -r /idev/urandom ; then
13369 dev="/idev/urandom";
13370 elif test -r /dev/srandom ; then
13371 dev="/dev/srandom";
13372 elif test -r /dev/random ; then
13374 elif test -r /idev/random ; then
13375 dev="/idev/random";
13378 if test $dev != no ; then
13379 cat >> confdefs.h <<EOF
13380 #define URANDOM_DEVICE "$dev"
13387 if test $ol_with_fetch != no ; then
13389 LIBS="-lfetch -lcom_err $LIBS"
13390 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13391 echo "configure:13392: checking fetch(3) library" >&5
13392 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13393 echo $ac_n "(cached) $ac_c" 1>&6
13396 cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13400 #include <sys/param.h>
13404 struct url *u = fetchParseURL("file:///");
13407 if { (eval echo configure:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13409 ol_cv_lib_fetch=yes
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13419 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13421 if test $ol_cv_lib_fetch != no ; then
13422 ol_link_fetch="-lfetch -lcom_err"
13423 cat >> confdefs.h <<\EOF
13424 #define HAVE_FETCH 1
13430 if test $ol_cv_lib_fetch != no ; then
13431 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13432 ol_link_fetch=freebsd
13434 elif test $ol_with_fetch != auto ; then
13435 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13439 ol_link_readline=no
13440 if test $ol_with_readline != no ; then
13441 for ac_hdr in readline/readline.h readline/history.h
13443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13445 echo "configure:13446: checking for $ac_hdr" >&5
13446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13455 { (eval echo configure:13456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13457 if test -z "$ac_err"; then
13459 eval "ac_cv_header_$ac_safe=yes"
13462 echo "configure: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13465 eval "ac_cv_header_$ac_safe=no"
13469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13470 echo "$ac_t""yes" 1>&6
13471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13472 cat >> confdefs.h <<EOF
13473 #define $ac_tr_hdr 1
13477 echo "$ac_t""no" 1>&6
13482 if test $ac_cv_header_readline_readline_h = yes ; then
13484 LIBS="$TERMCAP_LIBS $LIBS"
13485 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13486 echo "configure:13487: checking for readline in -lreadline" >&5
13487 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13489 echo $ac_n "(cached) $ac_c" 1>&6
13491 ac_save_LIBS="$LIBS"
13492 LIBS="-lreadline $LIBS"
13493 cat > conftest.$ac_ext <<EOF
13494 #line 13495 "configure"
13495 #include "confdefs.h"
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13507 eval "ac_cv_lib_$ac_lib_var=yes"
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13512 eval "ac_cv_lib_$ac_lib_var=no"
13515 LIBS="$ac_save_LIBS"
13518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13519 echo "$ac_t""yes" 1>&6
13522 echo "$ac_t""no" 1>&6
13528 if test $have_readline = yes ; then
13529 ol_with_readline=found
13530 ol_link_readline=yes
13532 READLINE_LIBS="-lreadline"
13537 if test $ol_link_readline = yes ; then
13538 cat >> confdefs.h <<\EOF
13539 #define HAVE_READLINE 1
13545 if test $ol_enable_crypt != no ; then
13546 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13547 echo "configure:13548: checking for crypt" >&5
13548 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13549 echo $ac_n "(cached) $ac_c" 1>&6
13551 cat > conftest.$ac_ext <<EOF
13552 #line 13553 "configure"
13553 #include "confdefs.h"
13554 /* System header to define __stub macros and hopefully few prototypes,
13555 which can conflict with char crypt(); below. */
13556 #include <assert.h>
13557 /* Override any gcc2 internal prototype to avoid an error. */
13558 /* We use char because int might match the return type of a gcc2
13559 builtin and then its argument prototype would still apply. */
13565 /* The GNU C library defines this for functions which it implements
13566 to always fail with ENOSYS. Some functions are actually named
13567 something starting with __ and the normal name is an alias. */
13568 #if defined (__stub_crypt) || defined (__stub___crypt)
13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13578 eval "ac_cv_func_crypt=yes"
13580 echo "configure: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13583 eval "ac_cv_func_crypt=no"
13588 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13589 echo "$ac_t""yes" 1>&6
13592 echo "$ac_t""no" 1>&6
13594 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13595 echo "configure:13596: checking for crypt in -lcrypt" >&5
13596 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13597 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13598 echo $ac_n "(cached) $ac_c" 1>&6
13600 ac_save_LIBS="$LIBS"
13601 LIBS="-lcrypt $LIBS"
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13605 /* Override any gcc2 internal prototype to avoid an error. */
13606 /* We use char because int might match the return type of a gcc2
13607 builtin and then its argument prototype would still apply. */
13614 if { (eval echo configure:13615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13616 eval "ac_cv_lib_$ac_lib_var=yes"
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13621 eval "ac_cv_lib_$ac_lib_var=no"
13624 LIBS="$ac_save_LIBS"
13627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13628 echo "$ac_t""yes" 1>&6
13629 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13632 echo "$ac_t""no" 1>&6
13639 if test $have_crypt = yes ; then
13640 cat >> confdefs.h <<\EOF
13641 #define HAVE_CRYPT 1
13645 echo "configure: warning: could not find crypt" 1>&2
13646 if test $ol_enable_crypt = yes ; then
13647 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13650 echo "configure: warning: disabling crypt support" 1>&2
13655 if test $ol_enable_proctitle != no ; then
13656 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13657 echo "configure:13658: checking for setproctitle" >&5
13658 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13661 cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure"
13663 #include "confdefs.h"
13664 /* System header to define __stub macros and hopefully few prototypes,
13665 which can conflict with char setproctitle(); below. */
13666 #include <assert.h>
13667 /* Override any gcc2 internal prototype to avoid an error. */
13668 /* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13670 char setproctitle();
13675 /* The GNU C library defines this for functions which it implements
13676 to always fail with ENOSYS. Some functions are actually named
13677 something starting with __ and the normal name is an alias. */
13678 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13686 if { (eval echo configure:13687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13688 eval "ac_cv_func_setproctitle=yes"
13690 echo "configure: failed program was:" >&5
13691 cat conftest.$ac_ext >&5
13693 eval "ac_cv_func_setproctitle=no"
13698 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13699 echo "$ac_t""yes" 1>&6
13700 have_setproctitle=yes
13702 echo "$ac_t""no" 1>&6
13704 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13705 echo "configure:13706: checking for setproctitle in -lutil" >&5
13706 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13707 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13708 echo $ac_n "(cached) $ac_c" 1>&6
13710 ac_save_LIBS="$LIBS"
13711 LIBS="-lutil $LIBS"
13712 cat > conftest.$ac_ext <<EOF
13713 #line 13714 "configure"
13714 #include "confdefs.h"
13715 /* Override any gcc2 internal prototype to avoid an error. */
13716 /* We use char because int might match the return type of a gcc2
13717 builtin and then its argument prototype would still apply. */
13718 char setproctitle();
13724 if { (eval echo configure:13725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 eval "ac_cv_lib_$ac_lib_var=yes"
13728 echo "configure: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13731 eval "ac_cv_lib_$ac_lib_var=no"
13734 LIBS="$ac_save_LIBS"
13737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13738 echo "$ac_t""yes" 1>&6
13739 have_setproctitle=yes
13740 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13742 echo "$ac_t""no" 1>&6
13743 have_setproctitle=no
13744 LIBOBJS="$LIBOBJS setproctitle.o"
13745 LIBSRCS="$LIBSRCS setproctitle.c"
13751 if test $have_setproctitle = yes ; then
13752 cat >> confdefs.h <<\EOF
13753 #define HAVE_SETPROCTITLE 1
13759 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13760 echo "configure:13761: checking for ANSI C header files" >&5
13761 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13762 echo $ac_n "(cached) $ac_c" 1>&6
13764 cat > conftest.$ac_ext <<EOF
13765 #line 13766 "configure"
13766 #include "confdefs.h"
13767 #include <stdlib.h>
13768 #include <stdarg.h>
13769 #include <string.h>
13772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13773 { (eval echo configure:13774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13775 if test -z "$ac_err"; then
13777 ac_cv_header_stdc=yes
13780 echo "configure: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13783 ac_cv_header_stdc=no
13787 if test $ac_cv_header_stdc = yes; then
13788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13789 cat > conftest.$ac_ext <<EOF
13790 #line 13791 "configure"
13791 #include "confdefs.h"
13792 #include <string.h>
13794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13795 egrep "memchr" >/dev/null 2>&1; then
13799 ac_cv_header_stdc=no
13805 if test $ac_cv_header_stdc = yes; then
13806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 #include <stdlib.h>
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 egrep "free" >/dev/null 2>&1; then
13817 ac_cv_header_stdc=no
13823 if test $ac_cv_header_stdc = yes; then
13824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13825 if test "$cross_compiling" = yes; then
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13832 #if ((' ' & 0x0FF) == 0x020)
13833 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13834 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13836 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13837 || ('j' <= (c) && (c) <= 'r') \
13838 || ('s' <= (c) && (c) <= 'z'))
13839 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13842 int main () { int i; for (i = 0; i < 256; i++)
13843 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13847 if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13854 ac_cv_header_stdc=no
13862 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13863 if test $ac_cv_header_stdc = yes; then
13864 cat >> confdefs.h <<\EOF
13865 #define STDC_HEADERS 1
13870 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13871 echo "configure:13872: checking for mode_t" >&5
13872 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13878 #include <sys/types.h>
13880 #include <stdlib.h>
13881 #include <stddef.h>
13885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13886 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13888 eval "ac_cv_type_mode_t=yes"
13891 eval "ac_cv_type_mode_t=no"
13896 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13897 echo "$ac_t""yes" 1>&6
13899 echo "$ac_t""no" 1>&6
13900 cat >> confdefs.h <<EOF
13906 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13907 echo "configure:13908: checking for off_t" >&5
13908 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13911 cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 #include <sys/types.h>
13916 #include <stdlib.h>
13917 #include <stddef.h>
13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13922 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13924 eval "ac_cv_type_off_t=yes"
13927 eval "ac_cv_type_off_t=no"
13932 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13933 echo "$ac_t""yes" 1>&6
13935 echo "$ac_t""no" 1>&6
13936 cat >> confdefs.h <<EOF
13942 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13943 echo "configure:13944: checking for pid_t" >&5
13944 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13945 echo $ac_n "(cached) $ac_c" 1>&6
13947 cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 #include <sys/types.h>
13952 #include <stdlib.h>
13953 #include <stddef.h>
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13960 eval "ac_cv_type_pid_t=yes"
13963 eval "ac_cv_type_pid_t=no"
13968 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13969 echo "$ac_t""yes" 1>&6
13971 echo "$ac_t""no" 1>&6
13972 cat >> confdefs.h <<EOF
13978 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13979 echo "configure:13980: checking for ptrdiff_t" >&5
13980 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13983 cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 #include <stddef.h>
13991 if { (eval echo configure:13992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13993 am_cv_type_ptrdiff_t=yes
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13998 am_cv_type_ptrdiff_t=no
14003 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14004 if test $am_cv_type_ptrdiff_t = yes; then
14005 cat >> confdefs.h <<\EOF
14006 #define HAVE_PTRDIFF_T 1
14011 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14012 echo "configure:14013: checking return type of signal handlers" >&5
14013 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14014 echo $ac_n "(cached) $ac_c" 1>&6
14016 cat > conftest.$ac_ext <<EOF
14017 #line 14018 "configure"
14018 #include "confdefs.h"
14019 #include <sys/types.h>
14020 #include <signal.h>
14025 extern "C" void (*signal (int, void (*)(int)))(int);
14027 void (*signal ()) ();
14034 if { (eval echo configure:14035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14036 ac_cv_type_signal=void
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14041 ac_cv_type_signal=int
14046 echo "$ac_t""$ac_cv_type_signal" 1>&6
14047 cat >> confdefs.h <<EOF
14048 #define RETSIGTYPE $ac_cv_type_signal
14052 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14053 echo "configure:14054: checking for size_t" >&5
14054 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 #include <sys/types.h>
14062 #include <stdlib.h>
14063 #include <stddef.h>
14067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14068 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14070 eval "ac_cv_type_size_t=yes"
14073 eval "ac_cv_type_size_t=no"
14078 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14081 echo "$ac_t""no" 1>&6
14082 cat >> confdefs.h <<EOF
14083 #define size_t unsigned
14089 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14090 echo "configure:14091: checking for ssize_t" >&5
14091 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14092 echo $ac_n "(cached) $ac_c" 1>&6
14094 cat > conftest.$ac_ext <<EOF
14095 #line 14096 "configure"
14096 #include "confdefs.h"
14097 #include <sys/types.h>
14099 #include <stdlib.h>
14100 #include <stddef.h>
14104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14105 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14107 eval "ac_cv_type_ssize_t=yes"
14110 eval "ac_cv_type_ssize_t=no"
14115 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14116 echo "$ac_t""yes" 1>&6
14118 echo "$ac_t""no" 1>&6
14119 cat >> confdefs.h <<EOF
14120 #define ssize_t signed int
14125 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14126 echo "configure:14127: checking for caddr_t" >&5
14127 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14128 echo $ac_n "(cached) $ac_c" 1>&6
14130 cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure"
14132 #include "confdefs.h"
14133 #include <sys/types.h>
14135 #include <stdlib.h>
14136 #include <stddef.h>
14140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14141 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14143 eval "ac_cv_type_caddr_t=yes"
14146 eval "ac_cv_type_caddr_t=no"
14151 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14152 echo "$ac_t""yes" 1>&6
14154 echo "$ac_t""no" 1>&6
14155 cat >> confdefs.h <<EOF
14156 #define caddr_t char *
14162 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14163 echo "configure:14164: checking for socklen_t" >&5
14164 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14165 echo $ac_n "(cached) $ac_c" 1>&6
14167 cat > conftest.$ac_ext <<EOF
14168 #line 14169 "configure"
14169 #include "confdefs.h"
14171 #ifdef HAVE_SYS_TYPES_H
14172 #include <sys/types.h>
14174 #ifdef HAVE_SYS_SOCKET_H
14175 #include <sys/socket.h>
14182 if { (eval echo configure:14183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14184 ol_cv_type_socklen_t=yes
14186 echo "configure: failed program was:" >&5
14187 cat conftest.$ac_ext >&5
14189 ol_cv_type_socklen_t=no
14194 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14195 if test $ol_cv_type_socklen_t = no; then
14196 cat >> confdefs.h <<\EOF
14197 #define socklen_t int
14202 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14203 echo "configure:14204: checking for member st_blksize in aggregate type struct stat" >&5
14204 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14205 echo $ac_n "(cached) $ac_c" 1>&6
14207 cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14210 #include <sys/types.h>
14211 #include <sys/stat.h>
14213 struct stat foo; foo.st_blksize;
14216 if { (eval echo configure:14217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14218 ac_cv_c_struct_member_st_blksize=yes
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14223 ac_cv_c_struct_member_st_blksize=no
14228 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14229 st_blksize="$ac_cv_c_struct_member_st_blksize"
14230 if test $ac_cv_c_struct_member_st_blksize = yes; then
14231 cat >> confdefs.h <<\EOF
14232 #define HAVE_ST_BLKSIZE 1
14237 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14238 echo "configure:14239: checking whether time.h and sys/time.h may both be included" >&5
14239 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14240 echo $ac_n "(cached) $ac_c" 1>&6
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 #include <sys/types.h>
14246 #include <sys/time.h>
14252 if { (eval echo configure:14253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14254 ac_cv_header_time=yes
14256 echo "configure: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14259 ac_cv_header_time=no
14264 echo "$ac_t""$ac_cv_header_time" 1>&6
14265 if test $ac_cv_header_time = yes; then
14266 cat >> confdefs.h <<\EOF
14267 #define TIME_WITH_SYS_TIME 1
14272 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14273 echo "configure:14274: checking whether struct tm is in sys/time.h or time.h" >&5
14274 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14275 echo $ac_n "(cached) $ac_c" 1>&6
14277 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 #include <sys/types.h>
14283 struct tm *tp; tp->tm_sec;
14286 if { (eval echo configure:14287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14288 ac_cv_struct_tm=time.h
14290 echo "configure: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14293 ac_cv_struct_tm=sys/time.h
14298 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14299 if test $ac_cv_struct_tm = sys/time.h; then
14300 cat >> confdefs.h <<\EOF
14301 #define TM_IN_SYS_TIME 1
14306 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14307 echo "configure:14308: checking for uid_t in sys/types.h" >&5
14308 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14311 cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14314 #include <sys/types.h>
14316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14317 egrep "uid_t" >/dev/null 2>&1; then
14319 ac_cv_type_uid_t=yes
14322 ac_cv_type_uid_t=no
14328 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14329 if test $ac_cv_type_uid_t = no; then
14330 cat >> confdefs.h <<\EOF
14334 cat >> confdefs.h <<\EOF
14340 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14341 echo "configure:14342: checking for sig_atomic_t" >&5
14342 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14343 echo $ac_n "(cached) $ac_c" 1>&6
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 #include <signal.h>
14350 sig_atomic_t atomic;
14353 if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14355 ol_cv_type_sig_atomic_t=yes
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14360 ol_cv_type_sig_atomic_t=no
14365 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14366 if test $ol_cv_type_sig_atomic_t = no; then
14367 cat >> confdefs.h <<\EOF
14368 #define sig_atomic_t int
14375 # test for pw_gecos in struct passwd
14376 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14377 echo "configure:14378: checking struct passwd for pw_gecos" >&5
14378 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14389 pwd.pw_gecos = pwd.pw_name;
14393 if { (eval echo configure:14394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14395 ol_cv_struct_passwd_pw_gecos=yes
14397 echo "configure: failed program was:" >&5
14398 cat conftest.$ac_ext >&5
14400 ol_cv_struct_passwd_pw_gecos=no
14405 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14406 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14407 cat >> confdefs.h <<\EOF
14408 #define HAVE_PW_GECOS 1
14413 # test for pw_passwd in struct passwd
14414 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14415 echo "configure:14416: checking struct passwd for pw_passwd" >&5
14416 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14417 echo $ac_n "(cached) $ac_c" 1>&6
14420 cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14427 pwd.pw_passwd = pwd.pw_name;
14431 if { (eval echo configure:14432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14433 ol_cv_struct_passwd_pw_passwd=yes
14435 echo "configure: failed program was:" >&5
14436 cat conftest.$ac_ext >&5
14438 ol_cv_struct_passwd_pw_passwd=no
14443 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14444 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14445 cat >> confdefs.h <<\EOF
14446 #define HAVE_PW_PASSWD 1
14452 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14453 echo "configure:14454: checking if toupper() requires islower()" >&5
14454 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14455 echo $ac_n "(cached) $ac_c" 1>&6
14458 if test "$cross_compiling" = yes; then
14459 ol_cv_c_upper_lower=safe
14461 cat > conftest.$ac_ext <<EOF
14462 #line 14463 "configure"
14463 #include "confdefs.h"
14468 if ('C' == toupper('C'))
14474 if { (eval echo configure:14475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14476 ol_cv_c_upper_lower=no
14478 echo "configure: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14481 ol_cv_c_upper_lower=yes
14488 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14489 if test $ol_cv_c_upper_lower != no ; then
14490 cat >> confdefs.h <<\EOF
14491 #define C_UPPER_LOWER 1
14496 echo $ac_n "checking for working const""... $ac_c" 1>&6
14497 echo "configure:14498: checking for working const" >&5
14498 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14499 echo $ac_n "(cached) $ac_c" 1>&6
14501 cat > conftest.$ac_ext <<EOF
14502 #line 14503 "configure"
14503 #include "confdefs.h"
14507 /* Ultrix mips cc rejects this. */
14508 typedef int charset[2]; const charset x;
14509 /* SunOS 4.1.1 cc rejects this. */
14510 char const *const *ccp;
14512 /* NEC SVR4.0.2 mips cc rejects this. */
14513 struct point {int x, y;};
14514 static struct point const zero = {0,0};
14515 /* AIX XL C 1.02.0.0 rejects this.
14516 It does not let you subtract one const X* pointer from another in an arm
14517 of an if-expression whose if-part is not a constant expression */
14518 const char *g = "string";
14519 ccp = &g + (g ? g-g : 0);
14520 /* HPUX 7.0 cc rejects these. */
14523 ccp = (char const *const *) p;
14524 { /* SCO 3.2v4 cc rejects this. */
14526 char const *s = 0 ? (char *) 0 : (char const *) 0;
14530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14531 int x[] = {25, 17};
14532 const int *foo = &x[0];
14535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14536 typedef const int *iptr;
14540 { /* AIX XL C 1.02.0.0 rejects this saying
14541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14542 struct s { int j; const int *ap[3]; };
14543 struct s *b; b->j = 5;
14545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14546 const int foo = 10;
14551 if { (eval echo configure:14552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14555 echo "configure: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14563 echo "$ac_t""$ac_cv_c_const" 1>&6
14564 if test $ac_cv_c_const = no; then
14565 cat >> confdefs.h <<\EOF
14571 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14572 echo "configure:14573: checking if compiler understands volatile" >&5
14573 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14574 echo $ac_n "(cached) $ac_c" 1>&6
14576 cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14581 volatile int a; int * volatile b = x ? &y : &z;
14582 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14586 if { (eval echo configure:14587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14588 ol_cv_c_volatile=yes
14590 echo "configure: failed program was:" >&5
14591 cat conftest.$ac_ext >&5
14593 ol_cv_c_volatile=no
14598 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14599 if test $ol_cv_c_volatile = yes; then
14602 cat >> confdefs.h <<\EOF
14609 if test $cross_compiling = yes ; then
14610 cat >> confdefs.h <<\EOF
14611 #define CROSS_COMPILING 1
14615 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14616 echo "configure:14617: checking whether byte ordering is bigendian" >&5
14617 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14620 ac_cv_c_bigendian=unknown
14621 # See if sys/param.h defines the BYTE_ORDER macro.
14622 cat > conftest.$ac_ext <<EOF
14623 #line 14624 "configure"
14624 #include "confdefs.h"
14625 #include <sys/types.h>
14626 #include <sys/param.h>
14629 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14630 bogus endian macros
14634 if { (eval echo configure:14635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14636 # It does; now see whether it defined to BIG_ENDIAN or not.
14637 cat > conftest.$ac_ext <<EOF
14638 #line 14639 "configure"
14639 #include "confdefs.h"
14640 #include <sys/types.h>
14641 #include <sys/param.h>
14644 #if BYTE_ORDER != BIG_ENDIAN
14649 if { (eval echo configure:14650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14651 ac_cv_c_bigendian=yes
14653 echo "configure: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14656 ac_cv_c_bigendian=no
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14664 if test $ac_cv_c_bigendian = unknown; then
14665 if test "$cross_compiling" = yes; then
14666 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14668 cat > conftest.$ac_ext <<EOF
14669 #line 14670 "configure"
14670 #include "confdefs.h"
14672 /* Are we little or big endian? From Harbison&Steele. */
14676 char c[sizeof (long)];
14679 exit (u.c[sizeof (long) - 1] == 1);
14682 if { (eval echo configure:14683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14684 ac_cv_c_bigendian=no
14686 echo "configure: failed program was:" >&5
14687 cat conftest.$ac_ext >&5
14689 ac_cv_c_bigendian=yes
14697 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14698 if test $ac_cv_c_bigendian = yes; then
14699 cat >> confdefs.h <<\EOF
14700 #define WORDS_BIGENDIAN 1
14707 echo $ac_n "checking size of short""... $ac_c" 1>&6
14708 echo "configure:14709: checking size of short" >&5
14709 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14710 echo $ac_n "(cached) $ac_c" 1>&6
14712 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14713 cat > conftest.$ac_ext <<EOF
14714 #line 14715 "configure"
14715 #include "confdefs.h"
14716 #include "confdefs.h"
14717 #include <sys/types.h>
14721 switch (0) case 0: case (sizeof (short) == $ac_size):;
14724 if { (eval echo configure:14725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14726 ac_cv_sizeof_short=$ac_size
14728 echo "configure: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14732 if test x$ac_cv_sizeof_short != x ; then break; fi
14737 if test x$ac_cv_sizeof_short = x ; then
14738 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14740 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14741 cat >> confdefs.h <<EOF
14742 #define SIZEOF_SHORT $ac_cv_sizeof_short
14746 echo $ac_n "checking size of int""... $ac_c" 1>&6
14747 echo "configure:14748: checking size of int" >&5
14748 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14751 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14752 cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 #include "confdefs.h"
14756 #include <sys/types.h>
14760 switch (0) case 0: case (sizeof (int) == $ac_size):;
14763 if { (eval echo configure:14764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14765 ac_cv_sizeof_int=$ac_size
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14771 if test x$ac_cv_sizeof_int != x ; then break; fi
14776 if test x$ac_cv_sizeof_int = x ; then
14777 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14779 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14780 cat >> confdefs.h <<EOF
14781 #define SIZEOF_INT $ac_cv_sizeof_int
14785 echo $ac_n "checking size of long""... $ac_c" 1>&6
14786 echo "configure:14787: checking size of long" >&5
14787 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14790 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794 #include "confdefs.h"
14795 #include <sys/types.h>
14799 switch (0) case 0: case (sizeof (long) == $ac_size):;
14802 if { (eval echo configure:14803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14804 ac_cv_sizeof_long=$ac_size
14806 echo "configure: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14810 if test x$ac_cv_sizeof_long != x ; then break; fi
14815 if test x$ac_cv_sizeof_long = x ; then
14816 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14818 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14819 cat >> confdefs.h <<EOF
14820 #define SIZEOF_LONG $ac_cv_sizeof_long
14825 if test "$ac_cv_sizeof_int" -lt 4 ; then
14826 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14828 cat >> confdefs.h <<\EOF
14829 #define LBER_INT_T long
14833 cat >> confdefs.h <<\EOF
14834 #define LBER_INT_T int
14839 cat >> confdefs.h <<\EOF
14840 #define LBER_LEN_T long
14843 cat >> confdefs.h <<\EOF
14844 #define LBER_SOCKET_T int
14847 cat >> confdefs.h <<\EOF
14848 #define LBER_TAG_T long
14852 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14853 echo "configure:14854: checking for 8-bit clean memcmp" >&5
14854 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14855 echo $ac_n "(cached) $ac_c" 1>&6
14857 if test "$cross_compiling" = yes; then
14858 ac_cv_func_memcmp_clean=no
14860 cat > conftest.$ac_ext <<EOF
14861 #line 14862 "configure"
14862 #include "confdefs.h"
14866 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14867 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14871 if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14873 ac_cv_func_memcmp_clean=yes
14875 echo "configure: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14878 ac_cv_func_memcmp_clean=no
14885 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14886 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14888 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14889 echo "configure:14890: checking for strftime" >&5
14890 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char strftime(); below. */
14898 #include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_strftime) || defined (__stub___strftime)
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14920 eval "ac_cv_func_strftime=yes"
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14925 eval "ac_cv_func_strftime=no"
14930 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 cat >> confdefs.h <<\EOF
14933 #define HAVE_STRFTIME 1
14937 echo "$ac_t""no" 1>&6
14938 # strftime is in -lintl on SCO UNIX.
14939 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14940 echo "configure:14941: checking for strftime in -lintl" >&5
14941 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14945 ac_save_LIBS="$LIBS"
14946 LIBS="-lintl $LIBS"
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* Override any gcc2 internal prototype to avoid an error. */
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14959 if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14961 eval "ac_cv_lib_$ac_lib_var=yes"
14963 echo "configure: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14966 eval "ac_cv_lib_$ac_lib_var=no"
14969 LIBS="$ac_save_LIBS"
14972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 cat >> confdefs.h <<\EOF
14975 #define HAVE_STRFTIME 1
14978 LIBS="-lintl $LIBS"
14980 echo "$ac_t""no" 1>&6
14986 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14987 echo "configure:14988: checking for inet_aton()" >&5
14988 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14989 echo $ac_n "(cached) $ac_c" 1>&6
14991 cat > conftest.$ac_ext <<EOF
14992 #line 14993 "configure"
14993 #include "confdefs.h"
14995 #ifdef HAVE_SYS_TYPES_H
14996 # include <sys/types.h>
14998 #ifdef HAVE_SYS_SOCKET_H
14999 # include <sys/socket.h>
15000 # ifdef HAVE_SYS_SELECT_H
15001 # include <sys/select.h>
15003 # include <netinet/in.h>
15004 # ifdef HAVE_ARPA_INET_H
15005 # include <arpa/inet.h>
15011 int rc = inet_aton( "255.255.255.255", &in );
15014 if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15016 ol_cv_func_inet_aton=yes
15018 echo "configure: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15021 ol_cv_func_inet_aton=no
15026 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15027 if test $ol_cv_func_inet_aton != no; then
15028 cat >> confdefs.h <<\EOF
15029 #define HAVE_INET_ATON 1
15035 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15036 echo "configure:15037: checking for _spawnlp" >&5
15037 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15040 cat > conftest.$ac_ext <<EOF
15041 #line 15042 "configure"
15042 #include "confdefs.h"
15043 /* System header to define __stub macros and hopefully few prototypes,
15044 which can conflict with char _spawnlp(); below. */
15045 #include <assert.h>
15046 /* Override any gcc2 internal prototype to avoid an error. */
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15054 /* The GNU C library defines this for functions which it implements
15055 to always fail with ENOSYS. Some functions are actually named
15056 something starting with __ and the normal name is an alias. */
15057 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15067 eval "ac_cv_func__spawnlp=yes"
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15072 eval "ac_cv_func__spawnlp=no"
15077 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15078 echo "$ac_t""yes" 1>&6
15079 cat >> confdefs.h <<\EOF
15080 #define HAVE_SPAWNLP 1
15084 echo "$ac_t""no" 1>&6
15088 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15089 echo "configure:15090: checking for _snprintf" >&5
15090 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15091 echo $ac_n "(cached) $ac_c" 1>&6
15093 cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15096 /* System header to define __stub macros and hopefully few prototypes,
15097 which can conflict with char _snprintf(); below. */
15098 #include <assert.h>
15099 /* Override any gcc2 internal prototype to avoid an error. */
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15107 /* The GNU C library defines this for functions which it implements
15108 to always fail with ENOSYS. Some functions are actually named
15109 something starting with __ and the normal name is an alias. */
15110 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15118 if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15120 eval "ac_cv_func__snprintf=yes"
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15125 eval "ac_cv_func__snprintf=no"
15130 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15131 echo "$ac_t""yes" 1>&6
15132 ac_cv_func_snprintf=yes
15133 cat >> confdefs.h <<\EOF
15134 #define snprintf _snprintf
15139 echo "$ac_t""no" 1>&6
15143 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15144 echo "configure:15145: checking for _vsnprintf" >&5
15145 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15146 echo $ac_n "(cached) $ac_c" 1>&6
15148 cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 /* System header to define __stub macros and hopefully few prototypes,
15152 which can conflict with char _vsnprintf(); below. */
15153 #include <assert.h>
15154 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15162 /* The GNU C library defines this for functions which it implements
15163 to always fail with ENOSYS. Some functions are actually named
15164 something starting with __ and the normal name is an alias. */
15165 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15173 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15175 eval "ac_cv_func__vsnprintf=yes"
15177 echo "configure: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15180 eval "ac_cv_func__vsnprintf=no"
15185 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15186 echo "$ac_t""yes" 1>&6
15187 ac_cv_func_vsnprintf=yes
15188 cat >> confdefs.h <<\EOF
15189 #define vsnprintf _vsnprintf
15194 echo "$ac_t""no" 1>&6
15198 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15199 echo "configure:15200: checking for vprintf" >&5
15200 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15201 echo $ac_n "(cached) $ac_c" 1>&6
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* System header to define __stub macros and hopefully few prototypes,
15207 which can conflict with char vprintf(); below. */
15208 #include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15228 if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 eval "ac_cv_func_vprintf=yes"
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 eval "ac_cv_func_vprintf=no"
15240 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15241 echo "$ac_t""yes" 1>&6
15242 cat >> confdefs.h <<\EOF
15243 #define HAVE_VPRINTF 1
15247 echo "$ac_t""no" 1>&6
15250 if test "$ac_cv_func_vprintf" != yes; then
15251 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15252 echo "configure:15253: checking for _doprnt" >&5
15253 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15256 cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char _doprnt(); below. */
15261 #include <assert.h>
15262 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15281 if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15283 eval "ac_cv_func__doprnt=yes"
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15288 eval "ac_cv_func__doprnt=no"
15293 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15294 echo "$ac_t""yes" 1>&6
15295 cat >> confdefs.h <<\EOF
15296 #define HAVE_DOPRNT 1
15300 echo "$ac_t""no" 1>&6
15306 if test $ac_cv_func_vprintf = yes ; then
15307 for ac_func in vsnprintf vsprintf
15309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15310 echo "configure:15311: checking for $ac_func" >&5
15311 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15312 echo $ac_n "(cached) $ac_c" 1>&6
15314 cat > conftest.$ac_ext <<EOF
15315 #line 15316 "configure"
15316 #include "confdefs.h"
15317 /* System header to define __stub macros and hopefully few prototypes,
15318 which can conflict with char $ac_func(); below. */
15319 #include <assert.h>
15320 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15328 /* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
15331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15339 if { (eval echo configure:15340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15341 eval "ac_cv_func_$ac_func=yes"
15343 echo "configure: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15346 eval "ac_cv_func_$ac_func=no"
15351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15352 echo "$ac_t""yes" 1>&6
15353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15354 cat >> confdefs.h <<EOF
15355 #define $ac_tr_func 1
15359 echo "$ac_t""no" 1>&6
15417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15418 echo "configure:15419: checking for $ac_func" >&5
15419 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char $ac_func(); below. */
15427 #include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15449 eval "ac_cv_func_$ac_func=yes"
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15454 eval "ac_cv_func_$ac_func=no"
15459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15460 echo "$ac_t""yes" 1>&6
15461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15462 cat >> confdefs.h <<EOF
15463 #define $ac_tr_func 1
15467 echo "$ac_t""no" 1>&6
15472 for ac_func in getopt tempnam
15474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15475 echo "configure:15476: checking for $ac_func" >&5
15476 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15477 echo $ac_n "(cached) $ac_c" 1>&6
15479 cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 /* System header to define __stub macros and hopefully few prototypes,
15483 which can conflict with char $ac_func(); below. */
15484 #include <assert.h>
15485 /* Override any gcc2 internal prototype to avoid an error. */
15486 /* We use char because int might match the return type of a gcc2
15487 builtin and then its argument prototype would still apply. */
15493 /* The GNU C library defines this for functions which it implements
15494 to always fail with ENOSYS. Some functions are actually named
15495 something starting with __ and the normal name is an alias. */
15496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15504 if { (eval echo configure:15505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15506 eval "ac_cv_func_$ac_func=yes"
15508 echo "configure: failed program was:" >&5
15509 cat conftest.$ac_ext >&5
15511 eval "ac_cv_func_$ac_func=no"
15516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15517 echo "$ac_t""yes" 1>&6
15518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15519 cat >> confdefs.h <<EOF
15520 #define $ac_tr_func 1
15524 echo "$ac_t""no" 1>&6
15525 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15531 if test "$ac_cv_func_getopt" != yes; then
15532 LIBSRCS="$LIBSRCS getopt.c"
15535 if test "$ac_cv_func_tempnam" != yes; then
15536 LIBSRCS="$LIBSRCS tempnam.c"
15539 # Check Configuration
15540 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15541 echo "configure:15542: checking declaration of sys_errlist" >&5
15542 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15546 cat > conftest.$ac_ext <<EOF
15547 #line 15548 "configure"
15548 #include "confdefs.h"
15551 #include <sys/types.h>
15554 #include <stdlib.h>
15557 char *c = (char *) *sys_errlist
15560 if { (eval echo configure:15561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15562 ol_cv_dcl_sys_errlist=yes
15563 ol_cv_have_sys_errlist=yes
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15568 ol_cv_dcl_sys_errlist=no
15573 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15575 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15576 if test $ol_cv_dcl_sys_errlist = no ; then
15577 cat >> confdefs.h <<\EOF
15578 #define DECL_SYS_ERRLIST 1
15582 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15583 echo "configure:15584: checking existence of sys_errlist" >&5
15584 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15585 echo $ac_n "(cached) $ac_c" 1>&6
15588 cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15593 char *c = (char *) *sys_errlist
15596 if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15598 ol_cv_have_sys_errlist=yes
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15603 ol_cv_have_sys_errlist=no
15608 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15610 if test $ol_cv_have_sys_errlist = yes ; then
15611 cat >> confdefs.h <<\EOF
15612 #define HAVE_SYS_ERRLIST 1
15619 if test "$ol_enable_debug" != no ; then
15620 cat >> confdefs.h <<\EOF
15621 #define LDAP_DEBUG 1
15625 if test "$ol_enable_syslog" = yes ; then
15626 cat >> confdefs.h <<\EOF
15627 #define LDAP_SYSLOG 1
15631 if test "$ol_enable_libui" = yes ; then
15632 cat >> confdefs.h <<\EOF
15633 #define LDAP_LIBUI 1
15637 if test "$ol_enable_cache" = no ; then
15638 cat >> confdefs.h <<\EOF
15639 #define LDAP_NOCACHE 1
15643 if test "$ol_link_kbind" != no ; then
15644 cat >> confdefs.h <<\EOF
15645 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15649 if test "$ol_enable_proctitle" != no ; then
15650 cat >> confdefs.h <<\EOF
15651 #define LDAP_PROCTITLE 1
15655 if test "$ol_enable_referrals" != no ; then
15656 cat >> confdefs.h <<\EOF
15657 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15661 if test "$ol_enable_cldap" != no ; then
15662 cat >> confdefs.h <<\EOF
15663 #define LDAP_CONNECTIONLESS 1
15667 if test "$ol_enable_ldapi" != no; then
15668 cat >> confdefs.h <<\EOF
15669 #define USE_PF_LOCAL 1
15674 if test "$ol_enable_cleartext" != no ; then
15675 cat >> confdefs.h <<\EOF
15676 #define SLAPD_CLEARTEXT 1
15680 if test "$ol_enable_crypt" != no ; then
15681 cat >> confdefs.h <<\EOF
15682 #define SLAPD_CRYPT 1
15686 if test "$ol_link_kpasswd" != no ; then
15687 cat >> confdefs.h <<\EOF
15688 #define SLAPD_KPASSWD 1
15692 if test "$ol_link_spasswd" != no ; then
15693 cat >> confdefs.h <<\EOF
15694 #define SLAPD_SPASSWD 1
15698 if test "$ol_enable_multimaster" != no ; then
15699 cat >> confdefs.h <<\EOF
15700 #define SLAPD_MULTIMASTER 1
15704 if test "$ol_enable_phonetic" != no ; then
15705 cat >> confdefs.h <<\EOF
15706 #define SLAPD_PHONETIC 1
15710 if test "$ol_enable_rlookups" != no ; then
15711 cat >> confdefs.h <<\EOF
15712 #define SLAPD_RLOOKUPS 1
15716 if test "$ol_enable_aci" != no ; then
15717 cat >> confdefs.h <<\EOF
15718 #define SLAPD_ACI_ENABLED 1
15723 if test "$ol_link_modules" != no ; then
15724 cat >> confdefs.h <<\EOF
15725 #define SLAPD_MODULES 1
15729 SLAPD_MODULES_LDFLAGS="-dlopen self"
15732 if test "$ol_link_dnssrv" != no ; then
15733 cat >> confdefs.h <<\EOF
15734 #define SLAPD_DNSSRV 1
15739 if test "$ol_with_dnssrv_module" != static ; then
15740 cat >> confdefs.h <<\EOF
15741 #define SLAPD_DNSSRV_DYNAMIC 1
15745 BUILD_DNSSRV_DYNAMIC=shared
15746 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15750 if test "$ol_enable_ldap" != no ; then
15751 cat >> confdefs.h <<\EOF
15752 #define SLAPD_LDAP 1
15757 if test "$ol_with_ldap_module" != static ; then
15758 cat >> confdefs.h <<\EOF
15759 #define SLAPD_LDAP_DYNAMIC 1
15763 BUILD_LDAP_DYNAMIC=shared
15764 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15768 if test "$ol_link_ldbm" != no ; then
15769 cat >> confdefs.h <<\EOF
15770 #define SLAPD_LDBM 1
15775 if test "$ol_with_ldbm_module" != static ; then
15776 cat >> confdefs.h <<\EOF
15777 #define SLAPD_LDBM_DYNAMIC 1
15781 BUILD_LDBM_DYNAMIC=shared
15782 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15786 if test "$ol_enable_passwd" != no ; then
15787 cat >> confdefs.h <<\EOF
15788 #define SLAPD_PASSWD 1
15793 if test "$ol_with_passwd_module" != static ; then
15794 cat >> confdefs.h <<\EOF
15795 #define SLAPD_PASSWD_DYNAMIC 1
15799 BUILD_PASSWD_DYNAMIC=shared
15800 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15804 if test "$ol_link_perl" != no ; then
15805 cat >> confdefs.h <<\EOF
15806 #define SLAPD_PERL 1
15811 if test "$ol_with_perl_module" != static ; then
15812 cat >> confdefs.h <<\EOF
15813 #define SLAPD_PERL_DYNAMIC 1
15817 BUILD_PERL_DYNAMIC=shared
15818 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15822 if test "$ol_enable_shell" != no ; then
15823 cat >> confdefs.h <<\EOF
15824 #define SLAPD_SHELL 1
15829 if test "$ol_with_shell_module" != static ; then
15830 cat >> confdefs.h <<\EOF
15831 #define SLAPD_SHELL_DYNAMIC 1
15835 BUILD_SHELL_DYNAMIC=shared
15836 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15840 if test "$ol_enable_tcl" != no ; then
15841 cat >> confdefs.h <<\EOF
15842 #define SLAPD_TCL 1
15847 if test "$ol_with_tcl_module" != static; then
15848 cat >> confdefs.h <<\EOF
15849 #define SLAPD_TCL_DYNAMIC 1
15853 BUILD_TCL_DYNAMIC=shared
15854 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15858 if test "$ol_enable_sql" != no ; then
15859 cat >> confdefs.h <<\EOF
15860 #define SLAPD_SQL 1
15865 SLAPD_SQL_LIBS=-liodbc
15866 if test "$ol_with_sql_module" != static; then
15867 cat >> confdefs.h <<\EOF
15868 #define SLAPD_SQL_DYNAMIC 1
15872 BUILD_SQL_DYNAMIC=shared
15873 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15877 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15878 $BUILD_SLAPD = yes ; then
15883 if test "$LINK_BINS_DYNAMIC" = yes; then
15885 LT_LIB_LINKAGE=shared
15888 LT_LIB_LINKAGE=static
15891 if test "$ac_cv_mingw32" = yes ; then
15962 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15965 # Let make expand exec_prefix.
15966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15968 # Any assignment to VPATH causes Sun make to only execute
15969 # the first set of double-colon rules, so remove it if not needed.
15970 # If there is a colon in the path, we need to keep it.
15971 if test "x$srcdir" = x.; then
15972 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15975 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15977 DEFS=-DHAVE_CONFIG_H
15979 # Without the "./", some shells look in PATH for config.status.
15980 : ${CONFIG_STATUS=./config.status}
15982 echo creating $CONFIG_STATUS
15983 rm -f $CONFIG_STATUS
15984 cat > $CONFIG_STATUS <<EOF
15986 # Generated automatically by configure.
15987 # Run this file to recreate the current configuration.
15988 # This directory was configured as follows,
15989 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15991 # $0 $ac_configure_args
15993 # Compiler output produced by configure, useful for debugging
15994 # configure, is in ./config.log if it exists.
15996 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15999 case "\$ac_option" in
16000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16001 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16002 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16003 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16004 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16006 -help | --help | --hel | --he | --h)
16007 echo "\$ac_cs_usage"; exit 0 ;;
16008 *) echo "\$ac_cs_usage"; exit 1 ;;
16012 ac_given_srcdir=$srcdir
16013 ac_given_INSTALL="$INSTALL"
16015 trap 'rm -fr `echo "\
16016 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16017 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16018 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16019 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16020 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16021 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16022 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16023 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16024 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16025 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16026 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16027 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16028 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16029 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16030 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16031 include/Makefile:build/top.mk:include/Makefile.in \
16032 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16033 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16034 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16035 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16036 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16037 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16038 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16039 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16040 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16041 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16042 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16043 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16044 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16045 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16046 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16047 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16048 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16049 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16050 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16051 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16052 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16053 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16054 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16055 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16056 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16057 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16058 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16059 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16061 cat >> $CONFIG_STATUS <<EOF
16063 # Protect against being on the right side of a sed subst in config.status.
16064 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16065 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16069 s%@CFLAGS@%$CFLAGS%g
16070 s%@CPPFLAGS@%$CPPFLAGS%g
16071 s%@CXXFLAGS@%$CXXFLAGS%g
16072 s%@FFLAGS@%$FFLAGS%g
16074 s%@LDFLAGS@%$LDFLAGS%g
16076 s%@exec_prefix@%$exec_prefix%g
16077 s%@prefix@%$prefix%g
16078 s%@program_transform_name@%$program_transform_name%g
16079 s%@bindir@%$bindir%g
16080 s%@sbindir@%$sbindir%g
16081 s%@libexecdir@%$libexecdir%g
16082 s%@datadir@%$datadir%g
16083 s%@sysconfdir@%$sysconfdir%g
16084 s%@sharedstatedir@%$sharedstatedir%g
16085 s%@localstatedir@%$localstatedir%g
16086 s%@libdir@%$libdir%g
16087 s%@includedir@%$includedir%g
16088 s%@oldincludedir@%$oldincludedir%g
16089 s%@infodir@%$infodir%g
16090 s%@mandir@%$mandir%g
16092 s%@host_alias@%$host_alias%g
16093 s%@host_cpu@%$host_cpu%g
16094 s%@host_vendor@%$host_vendor%g
16095 s%@host_os@%$host_os%g
16096 s%@target@%$target%g
16097 s%@target_alias@%$target_alias%g
16098 s%@target_cpu@%$target_cpu%g
16099 s%@target_vendor@%$target_vendor%g
16100 s%@target_os@%$target_os%g
16102 s%@build_alias@%$build_alias%g
16103 s%@build_cpu@%$build_cpu%g
16104 s%@build_vendor@%$build_vendor%g
16105 s%@build_os@%$build_os%g
16106 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16107 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16108 s%@INSTALL_DATA@%$INSTALL_DATA%g
16109 s%@PACKAGE@%$PACKAGE%g
16110 s%@VERSION@%$VERSION%g
16111 s%@ACLOCAL@%$ACLOCAL%g
16112 s%@AUTOCONF@%$AUTOCONF%g
16113 s%@AUTOMAKE@%$AUTOMAKE%g
16114 s%@AUTOHEADER@%$AUTOHEADER%g
16115 s%@MAKEINFO@%$MAKEINFO%g
16116 s%@install_sh@%$install_sh%g
16119 s%@AMTARFLAGS@%$AMTARFLAGS%g
16120 s%@SET_MAKE@%$SET_MAKE%g
16121 s%@top_builddir@%$top_builddir%g
16122 s%@ldap_subdir@%$ldap_subdir%g
16124 s%@RANLIB@%$RANLIB%g
16126 s%@DLLTOOL@%$DLLTOOL%g
16128 s%@OBJDUMP@%$OBJDUMP%g
16129 s%@LIBTOOL@%$LIBTOOL%g
16131 s%@SENDMAIL@%$SENDMAIL%g
16132 s%@EDITOR@%$EDITOR%g
16133 s%@FINGER@%$FINGER%g
16134 s%@PERLBIN@%$PERLBIN%g
16136 s%@EXEEXT@%$EXEEXT%g
16137 s%@OBJEXT@%$OBJEXT%g
16138 s%@OL_MKDEP@%$OL_MKDEP%g
16139 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16140 s%@LIBOBJS@%$LIBOBJS%g
16141 s%@LIBSRCS@%$LIBSRCS%g
16143 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16144 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16145 s%@DYN_EXT@%$DYN_EXT%g
16146 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16147 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16148 s%@BUILD_LDAP@%$BUILD_LDAP%g
16149 s%@BUILD_LDBM@%$BUILD_LDBM%g
16150 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16151 s%@BUILD_PERL@%$BUILD_PERL%g
16152 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16153 s%@BUILD_SHELL@%$BUILD_SHELL%g
16154 s%@BUILD_SQL@%$BUILD_SQL%g
16155 s%@BUILD_TCL@%$BUILD_TCL%g
16156 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16157 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16158 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16159 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16160 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16161 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16162 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16163 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16164 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16165 s%@LDAP_LIBS@%$LDAP_LIBS%g
16166 s%@LDIF_LIBS@%$LDIF_LIBS%g
16167 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16168 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16169 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16170 s%@LDBM_LIBS@%$LDBM_LIBS%g
16171 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16172 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16173 s%@WRAP_LIBS@%$WRAP_LIBS%g
16174 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16175 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16176 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16177 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16178 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16179 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16180 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16181 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16182 s%@KRB4_LIBS@%$KRB4_LIBS%g
16183 s%@KRB5_LIBS@%$KRB5_LIBS%g
16184 s%@READLINE_LIBS@%$READLINE_LIBS%g
16185 s%@SASL_LIBS@%$SASL_LIBS%g
16186 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16187 s%@TLS_LIBS@%$TLS_LIBS%g
16188 s%@MODULES_LIBS@%$MODULES_LIBS%g
16189 s%@AUTH_LIBS@%$AUTH_LIBS%g
16190 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16191 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16192 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16197 cat >> $CONFIG_STATUS <<\EOF
16199 # Split the substitutions into bite-sized pieces for seds with
16200 # small command number limits, like on Digital OSF/1 and HP-UX.
16201 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16202 ac_file=1 # Number of current file.
16203 ac_beg=1 # First line for current file.
16204 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16207 while $ac_more_lines; do
16208 if test $ac_beg -gt 1; then
16209 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16211 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16213 if test ! -s conftest.s$ac_file; then
16214 ac_more_lines=false
16215 rm -f conftest.s$ac_file
16217 if test -z "$ac_sed_cmds"; then
16218 ac_sed_cmds="sed -f conftest.s$ac_file"
16220 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16222 ac_file=`expr $ac_file + 1`
16224 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16227 if test -z "$ac_sed_cmds"; then
16232 cat >> $CONFIG_STATUS <<EOF
16234 CONFIG_FILES=\${CONFIG_FILES-"\
16235 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16236 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16237 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16238 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16239 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16240 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16241 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16242 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16243 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16244 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16245 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16246 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16247 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16248 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16249 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16250 include/Makefile:build/top.mk:include/Makefile.in \
16251 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16252 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16253 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16254 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16255 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16256 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16257 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16258 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16259 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16260 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16261 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16262 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16263 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16264 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16265 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16266 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16267 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16268 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16269 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16270 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16271 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16272 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16273 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16274 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16275 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16276 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16277 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16280 cat >> $CONFIG_STATUS <<\EOF
16281 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16284 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16285 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16286 *) ac_file_in="${ac_file}.in" ;;
16289 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16291 # Remove last slash and all that follows it. Not all systems have dirname.
16292 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16293 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16294 # The file is in a subdirectory.
16295 test ! -d "$ac_dir" && mkdir "$ac_dir"
16296 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16297 # A "../" for each directory in $ac_dir_suffix.
16298 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16300 ac_dir_suffix= ac_dots=
16303 case "$ac_given_srcdir" in
16305 if test -z "$ac_dots"; then top_srcdir=.
16306 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16307 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16308 *) # Relative path.
16309 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16310 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16313 case "$ac_given_INSTALL" in
16314 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16315 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16318 echo creating "$ac_file"
16320 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16322 *[Mm]akefile*) ac_comsub="1i\\
16323 # $configure_input" ;;
16327 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16329 s%@configure_input@%$configure_input%g
16330 s%@srcdir@%$srcdir%g
16331 s%@top_srcdir@%$top_srcdir%g
16332 s%@INSTALL@%$INSTALL%g
16333 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16340 # ac_d sets the value in "#define NAME VALUE" lines.
16341 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16342 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16345 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16346 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16347 ac_uB='\([ ]\)%\1#\2define\3'
16350 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16351 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16352 ac_eB='$%\1#\2define\3'
16356 if test "${CONFIG_HEADERS+set}" != set; then
16358 cat >> $CONFIG_STATUS <<EOF
16359 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16361 cat >> $CONFIG_STATUS <<\EOF
16363 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16366 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16367 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16368 *) ac_file_in="${ac_file}.in" ;;
16371 echo creating $ac_file
16373 rm -f conftest.frag conftest.in conftest.out
16374 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16375 cat $ac_file_inputs > conftest.in
16379 # Transform confdefs.h into a sed script conftest.vals that substitutes
16380 # the proper values into config.h.in to produce config.h. And first:
16381 # Protect against being on the right side of a sed subst in config.status.
16382 # Protect against being in an unquoted here document in config.status.
16383 rm -f conftest.vals
16384 cat > conftest.hdr <<\EOF
16387 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16391 sed -n -f conftest.hdr confdefs.h > conftest.vals
16394 # This sed command replaces #undef with comments. This is necessary, for
16395 # example, in the case of _POSIX_SOURCE, which is predefined and required
16396 # on some systems where configure will not decide to define it.
16397 cat >> conftest.vals <<\EOF
16398 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16401 # Break up conftest.vals because some shells have a limit on
16402 # the size of here documents, and old seds have small limits too.
16404 rm -f conftest.tail
16407 ac_lines=`grep -c . conftest.vals`
16408 # grep -c gives empty output for an empty file on some AIX systems.
16409 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16410 # Write a limited-size here document to conftest.frag.
16411 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16412 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16414 sed -f conftest.frag conftest.in > conftest.out
16416 mv conftest.out conftest.in
16417 ' >> $CONFIG_STATUS
16418 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16419 rm -f conftest.vals
16420 mv conftest.tail conftest.vals
16422 rm -f conftest.vals
16424 cat >> $CONFIG_STATUS <<\EOF
16425 rm -f conftest.frag conftest.h
16426 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16427 cat conftest.in >> conftest.h
16429 if cmp -s $ac_file conftest.h 2>/dev/null; then
16430 echo "$ac_file is unchanged"
16433 # Remove last slash and all that follows it. Not all systems have dirname.
16434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16436 # The file is in a subdirectory.
16437 test ! -d "$ac_dir" && mkdir "$ac_dir"
16440 mv conftest.h $ac_file
16445 cat >> $CONFIG_STATUS <<EOF
16448 cat >> $CONFIG_STATUS <<\EOF
16451 echo Please \"make depend\" to build dependencies
16455 chmod +x $CONFIG_STATUS
16456 rm -fr confdefs* $ac_clean_files
16457 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1