3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.7 2000/07/06 16:45:22 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (auto)"
42 --enable-cldap enable connectionless ldap (no)"
44 --enable-ipv6 enable IPv6 support (auto)"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
48 --enable-x-compile enable cross compiling (no)"
50 --with-cyrus-sasl with Cyrus SASL support (auto)"
52 --with-fetch with fetch URL support (auto)"
54 --with-kerberos with support (auto)"
56 --with-readline with readline support (auto)"
58 --with-threads with threads (auto)"
60 --with-tls with TLS/SSL support (auto)"
62 --with-yielding-select with implicitly yielding select (auto)"
64 SLAPD (Standalone LDAP Daemon) Options:"
66 --enable-slapd enable building slapd (yes)"
68 --enable-cleartext enable cleartext passwords (yes)"
70 --enable-crypt enable crypt(3) passwords (auto)"
72 --enable-kpasswd enable kerberos password verification (no)"
74 --enable-spasswd enable (Cyrus) SASL password verification (no)"
76 --enable-modules enable dynamic module support (no)"
78 --enable-multimaster enable multimaster replication (no)"
80 --enable-phonetic enable phonetic/soundex (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 with 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-shell enable shell backend (no)"
112 --with-shell-module module type (static)"
114 --enable-sql enable sql backend (no)"
116 --with-sql-module module type (static)"
118 SLURPD (Replication Daemon) Options:"
120 --enable-slurpd enable building slurpd (auto)"
122 Library Generation & Linking Options"
124 --enable-static[=PKGS] build static libraries [default=yes]"
126 --enable-shared[=PKGS] build shared libraries [default=yes]"
128 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
130 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
132 --disable-libtool-lock avoid locking (might break parallel builds)"
134 # Initialize some variables set by options.
135 # The variables have the same names as the options, with
136 # dashes changed to underlines.
138 cache_file=./config.cache
147 program_transform_name=s,x,x,
155 bindir='${exec_prefix}/bin'
156 sbindir='${exec_prefix}/sbin'
157 libexecdir='${exec_prefix}/libexec'
158 datadir='${prefix}/share'
159 sysconfdir='${prefix}/etc'
160 sharedstatedir='${prefix}/com'
161 localstatedir='${prefix}/var'
162 libdir='${exec_prefix}/lib'
163 includedir='${prefix}/include'
164 oldincludedir='/usr/include'
165 infodir='${prefix}/info'
166 mandir='${prefix}/man'
168 # Initialize some other variables.
171 SHELL=${CONFIG_SHELL-/bin/sh}
172 # Maximum number of lines to put in a shell here document.
179 # If the previous option needs an argument, assign it.
180 if test -n "$ac_prev"; then
181 eval "$ac_prev=\$ac_option"
187 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
191 # Accept the important Cygnus configure options, so we can diagnose typos.
195 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
198 bindir="$ac_optarg" ;;
200 -build | --build | --buil | --bui | --bu)
202 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
203 build="$ac_optarg" ;;
205 -cache-file | --cache-file | --cache-fil | --cache-fi \
206 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
207 ac_prev=cache_file ;;
208 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
209 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
210 cache_file="$ac_optarg" ;;
212 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
214 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
216 datadir="$ac_optarg" ;;
218 -disable-* | --disable-*)
219 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
220 # Reject names that are not valid shell variable names.
221 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
222 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
224 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
225 eval "enable_${ac_feature}=no" ;;
227 -enable-* | --enable-*)
228 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
238 eval "enable_${ac_feature}='$ac_optarg'" ;;
240 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
241 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
242 | --exec | --exe | --ex)
243 ac_prev=exec_prefix ;;
244 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
245 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
246 | --exec=* | --exe=* | --ex=*)
247 exec_prefix="$ac_optarg" ;;
249 -gas | --gas | --ga | --g)
250 # Obsolete; use --with-gas.
253 -help | --help | --hel | --he)
254 # Omit some internal or obsolete options to make the list less imposing.
255 # This message is too long to be a string in the A/UX 3.1 sh.
257 Usage: configure [options] [host]
258 Options: [defaults in brackets after descriptions]
260 --cache-file=FILE cache test results in FILE
261 --help print this message
262 --no-create do not create output files
263 --quiet, --silent do not print \`checking...' messages
264 --version print the version of autoconf that created configure
265 Directory and file names:
266 --prefix=PREFIX install architecture-independent files in PREFIX
268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
270 --bindir=DIR user executables in DIR [EPREFIX/bin]
271 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
272 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
273 --datadir=DIR read-only architecture-independent data in DIR
275 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
276 --sharedstatedir=DIR modifiable architecture-independent data in DIR
278 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
279 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
280 --includedir=DIR C header files in DIR [PREFIX/include]
281 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
282 --infodir=DIR info documentation in DIR [PREFIX/info]
283 --mandir=DIR man documentation in DIR [PREFIX/man]
284 --srcdir=DIR find the sources in DIR [configure dir or ..]
285 --program-prefix=PREFIX prepend PREFIX to installed program names
286 --program-suffix=SUFFIX append SUFFIX to installed program names
287 --program-transform-name=PROGRAM
288 run sed PROGRAM on installed program names
292 --build=BUILD configure for building on BUILD [BUILD=HOST]
293 --host=HOST configure for HOST [guessed]
294 --target=TARGET configure for TARGET [TARGET=HOST]
295 Features and packages:
296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
300 --x-includes=DIR X include files are in DIR
301 --x-libraries=DIR X library files are in DIR
303 if test -n "$ac_help"; then
304 echo "--enable and --with options recognized:$ac_help"
308 -host | --host | --hos | --ho)
310 -host=* | --host=* | --hos=* | --ho=*)
313 -includedir | --includedir | --includedi | --included | --include \
314 | --includ | --inclu | --incl | --inc)
315 ac_prev=includedir ;;
316 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
317 | --includ=* | --inclu=* | --incl=* | --inc=*)
318 includedir="$ac_optarg" ;;
320 -infodir | --infodir | --infodi | --infod | --info | --inf)
322 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
323 infodir="$ac_optarg" ;;
325 -libdir | --libdir | --libdi | --libd)
327 -libdir=* | --libdir=* | --libdi=* | --libd=*)
328 libdir="$ac_optarg" ;;
330 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
331 | --libexe | --libex | --libe)
332 ac_prev=libexecdir ;;
333 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
334 | --libexe=* | --libex=* | --libe=*)
335 libexecdir="$ac_optarg" ;;
337 -localstatedir | --localstatedir | --localstatedi | --localstated \
338 | --localstate | --localstat | --localsta | --localst \
339 | --locals | --local | --loca | --loc | --lo)
340 ac_prev=localstatedir ;;
341 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
342 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
343 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
344 localstatedir="$ac_optarg" ;;
346 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
348 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
349 mandir="$ac_optarg" ;;
352 # Obsolete; use --without-fp.
355 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
359 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
360 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
363 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
364 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
365 | --oldin | --oldi | --old | --ol | --o)
366 ac_prev=oldincludedir ;;
367 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
368 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
369 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
370 oldincludedir="$ac_optarg" ;;
372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
375 prefix="$ac_optarg" ;;
377 -program-prefix | --program-prefix | --program-prefi | --program-pref \
378 | --program-pre | --program-pr | --program-p)
379 ac_prev=program_prefix ;;
380 -program-prefix=* | --program-prefix=* | --program-prefi=* \
381 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
382 program_prefix="$ac_optarg" ;;
384 -program-suffix | --program-suffix | --program-suffi | --program-suff \
385 | --program-suf | --program-su | --program-s)
386 ac_prev=program_suffix ;;
387 -program-suffix=* | --program-suffix=* | --program-suffi=* \
388 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
389 program_suffix="$ac_optarg" ;;
391 -program-transform-name | --program-transform-name \
392 | --program-transform-nam | --program-transform-na \
393 | --program-transform-n | --program-transform- \
394 | --program-transform | --program-transfor \
395 | --program-transfo | --program-transf \
396 | --program-trans | --program-tran \
397 | --progr-tra | --program-tr | --program-t)
398 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
409 | -silent | --silent | --silen | --sile | --sil)
412 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
414 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
416 sbindir="$ac_optarg" ;;
418 -sharedstatedir | --sharedstatedir | --sharedstatedi \
419 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
420 | --sharedst | --shareds | --shared | --share | --shar \
422 ac_prev=sharedstatedir ;;
423 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
424 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
425 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
427 sharedstatedir="$ac_optarg" ;;
429 -site | --site | --sit)
431 -site=* | --site=* | --sit=*)
434 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
436 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
437 srcdir="$ac_optarg" ;;
439 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
440 | --syscon | --sysco | --sysc | --sys | --sy)
441 ac_prev=sysconfdir ;;
442 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
443 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
444 sysconfdir="$ac_optarg" ;;
446 -target | --target | --targe | --targ | --tar | --ta | --t)
448 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
449 target="$ac_optarg" ;;
451 -v | -verbose | --verbose | --verbos | --verbo | --verb)
454 -version | --version | --versio | --versi | --vers)
455 echo "configure generated by autoconf version 2.13.1"
459 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
460 # Reject names that are not valid shell variable names.
461 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
462 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
464 ac_package=`echo $ac_package| sed 's/-/_/g'`
469 eval "with_${ac_package}='$ac_optarg'" ;;
471 -without-* | --without-*)
472 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
477 ac_package=`echo $ac_package| sed 's/-/_/g'`
478 eval "with_${ac_package}=no" ;;
481 # Obsolete; use --with-x.
484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
485 | --x-incl | --x-inc | --x-in | --x-i)
486 ac_prev=x_includes ;;
487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
489 x_includes="$ac_optarg" ;;
491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
493 ac_prev=x_libraries ;;
494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
496 x_libraries="$ac_optarg" ;;
498 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
502 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
503 echo "configure: warning: $ac_option: invalid host type" 1>&2
505 if test "x$nonopt" != xNONE; then
506 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
514 if test -n "$ac_prev"; then
515 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
518 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
520 # File descriptor usage:
523 # 2 errors and warnings
524 # 3 some systems may open it to /dev/tty
525 # 4 used on the Kubota Titan
526 # 6 checking for... messages and results
527 # 5 compiler messages saved in config.log
528 if test "$silent" = yes; then
536 This file contains any messages produced by compilers while
537 running configure, to aid debugging if configure makes a mistake.
540 # Strip out --no-create and --no-recursion so they do not pile up.
541 # Also quote any args containing shell metacharacters.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 | --no-cr | --no-c) ;;
548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
551 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
552 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
557 # Only set these to C if already set. These must not be set unconditionally
558 # because not all systems understand e.g. LANG=C (notably SCO).
559 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
560 # Non-C LC_CTYPE values break the ctype check.
561 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
562 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
563 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
564 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
567 rm -rf conftest* confdefs.h
568 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
571 # A filename unique to this package, relative to the directory that
572 # configure is in, which we can look for to find out if srcdir is correct.
573 ac_unique_file=build/version
575 # Find the source files, if location was not specified.
576 if test -z "$srcdir"; then
577 ac_srcdir_defaulted=yes
578 # Try the directory containing this script, then its parent.
580 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
581 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
583 if test ! -r $srcdir/$ac_unique_file; then
587 ac_srcdir_defaulted=no
589 if test ! -r $srcdir/$ac_unique_file; then
590 if test "$ac_srcdir_defaulted" = yes; then
591 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
593 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
596 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
598 # Prefer explicitly selected file to automatically selected ones.
599 if test -z "$CONFIG_SITE"; then
600 if test "x$prefix" != xNONE; then
601 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
603 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
606 for ac_site_file in $CONFIG_SITE; do
607 if test -r "$ac_site_file"; then
608 echo "loading site script $ac_site_file"
615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
616 ac_cpp='$CPP $CPPFLAGS'
617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
619 cross_compiling=$ac_cv_prog_cc_cross
623 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
624 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
625 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
632 ac_n= ac_c='\c' ac_t=
636 # set unset (borrowed from autoconf 2.14a)
637 if (unset FOO) >/dev/null 2>&1; then
643 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
646 for ac_dir in build $srcdir/build; do
647 if test -f $ac_dir/install-sh; then
649 ac_install_sh="$ac_aux_dir/install-sh -c"
651 elif test -f $ac_dir/install.sh; then
653 ac_install_sh="$ac_aux_dir/install.sh -c"
655 elif test -f $ac_dir/shtool; then
657 ac_install_sh="$ac_aux_dir/shtool install -c"
661 if test -z "$ac_aux_dir"; then
662 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
664 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
665 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
666 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
668 OL_VERSION=`cat $ac_aux_dir/version`
669 if test -z "$OL_VERSION"; then
670 { echo "configure: error: could not determine version" 1>&2; exit 1; }
673 echo "Configuring OpenLDAP $OL_VERSION ..."
676 echo $ac_n "checking host system type""... $ac_c" 1>&6
677 echo "configure:678: checking host system type" >&5
678 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
680 # Make sure we can run config.sub.
681 if $ac_config_sub sun4 >/dev/null 2>&1; then :
682 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
685 ac_cv_host_alias=$host
686 case "$ac_cv_host_alias" in
690 if ac_cv_host_alias=`$ac_config_guess`; then :
691 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
693 *) ac_cv_host_alias=$nonopt ;;
697 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
698 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo $ac_n "(cached) $ac_c" 1>&6
705 echo "$ac_t""$ac_cv_host" 1>&6
708 host_alias=$ac_cv_host_alias
709 host_cpu=$ac_cv_host_cpu
710 host_vendor=$ac_cv_host_vendor
711 host_os=$ac_cv_host_os
717 echo $ac_n "checking target system type""... $ac_c" 1>&6
718 echo "configure:719: checking target system type" >&5
719 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
721 # Make sure we can run config.sub.
722 if $ac_config_sub sun4 >/dev/null 2>&1; then :
723 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
726 ac_cv_target_alias=$target
727 case "$ac_cv_target_alias" in
731 ac_cv_target_alias=$host_alias ;;
733 *) ac_cv_target_alias=$nonopt ;;
737 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
738 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
742 echo $ac_n "(cached) $ac_c" 1>&6
745 echo "$ac_t""$ac_cv_target" 1>&6
748 target_alias=$ac_cv_target_alias
749 target_cpu=$ac_cv_target_cpu
750 target_vendor=$ac_cv_target_vendor
751 target_os=$ac_cv_target_os
757 echo $ac_n "checking build system type""... $ac_c" 1>&6
758 echo "configure:759: checking build system type" >&5
759 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
761 # Make sure we can run config.sub.
762 if $ac_config_sub sun4 >/dev/null 2>&1; then :
763 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
766 ac_cv_build_alias=$build
767 case "$ac_cv_build_alias" in
771 ac_cv_build_alias=$host_alias ;;
773 *) ac_cv_build_alias=$nonopt ;;
777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
778 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo $ac_n "(cached) $ac_c" 1>&6
785 echo "$ac_t""$ac_cv_build" 1>&6
788 build_alias=$ac_cv_build_alias
789 build_cpu=$ac_cv_build_cpu
790 build_vendor=$ac_cv_build_vendor
791 build_os=$ac_cv_build_os
797 # Do some error checking and defaulting for the host and target type.
799 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
802 # 1. You are not allowed to specify --host, --target, and nonopt at the
804 # 2. Host defaults to nonopt.
805 # 3. If nonopt is not specified, then host defaults to the current host,
806 # as determined by config.guess.
807 # 4. Target and build default to nonopt.
808 # 5. If nonopt is not specified, then target and build default to host.
810 # The aliases save the names the user supplied, while $host etc.
811 # will get canonicalized.
812 case $host---$target---$nonopt in
813 NONE---*---* | *---NONE---* | *---*---NONE) ;;
814 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
817 test "$host_alias" != "$target_alias" &&
818 test "$program_prefix$program_suffix$program_transform_name" = \
820 program_prefix=${target_alias}-
823 # Find a good install program. We prefer a C program (faster),
824 # so one script is as good as another. But avoid the broken or
825 # incompatible versions:
826 # SysV /etc/install, /usr/sbin/install
827 # SunOS /usr/etc/install
830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
833 # ./install, which can be erroneously created by make from ./install.sh.
834 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
835 echo "configure:836: checking for a BSD compatible install" >&5
836 if test -z "$INSTALL"; then
837 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
841 for ac_dir in $PATH; do
842 # Account for people who put trailing slashes in PATH elements.
844 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
846 # OSF1 and SCO ODT 3.0 have their own names for install.
847 # Don't use installbsd from OSF since it installs stuff as root
849 for ac_prog in ginstall scoinst install; do
850 if test -f $ac_dir/$ac_prog; then
851 if test $ac_prog = install &&
852 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
853 # AIX install. It has an incompatible calling convention.
855 elif test $ac_prog = install &&
856 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
857 # program-specific install script used by HP pwplus--don't use.
860 ac_cv_path_install="$ac_dir/$ac_prog -c"
871 if test "${ac_cv_path_install+set}" = set; then
872 INSTALL="$ac_cv_path_install"
874 # As a last resort, use the slow shell script. We don't cache a
875 # path for INSTALL within a source directory, because that will
876 # break other packages using the cache if that directory is
877 # removed, or if the path is relative.
878 INSTALL="$ac_install_sh"
881 echo "$ac_t""$INSTALL" 1>&6
883 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
884 # It thinks the first close brace ends the variable substitution.
885 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
887 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
891 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
892 echo "configure:893: checking whether build environment is sane" >&5
895 echo timestamp > conftestfile
896 # Do `set' in a subshell so we don't clobber the current shell's
897 # arguments. Must try -L first in case configure is actually a
898 # symlink; some systems play weird games with the mod time of symlinks
899 # (eg FreeBSD returns the mod time of the symlink's containing
902 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
903 if test "$*" = "X"; then
905 set X `ls -t $srcdir/configure conftestfile`
907 if test "$*" != "X $srcdir/configure conftestfile" \
908 && test "$*" != "X conftestfile $srcdir/configure"; then
910 # If neither matched, then we have a broken ls. This can happen
911 # if, for instance, CONFIG_SHELL is bash and it inherits a
912 # broken ls alias from the environment. This has actually
913 # happened. Such a system could not be considered "sane".
914 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
915 alias in your environment" 1>&2; exit 1; }
918 test "$2" = conftestfile
924 { echo "configure: error: newly created file is older than distributed files!
925 Check your system clock" 1>&2; exit 1; }
928 echo "$ac_t""yes" 1>&6
929 if test "$program_transform_name" = s,x,x,; then
930 program_transform_name=
932 # Double any \ or $. echo might interpret backslashes.
933 cat <<\EOF_SED > conftestsed
934 s,\\,\\\\,g; s,\$,$$,g
936 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
939 test "$program_prefix" != NONE &&
940 program_transform_name="s,^,${program_prefix},;$program_transform_name"
941 # Use a double $ so make ignores it.
942 test "$program_suffix" != NONE &&
943 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
945 # sed with no file args requires a program.
946 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
948 for ac_prog in mawk gawk nawk awk
950 # Extract the first word of "$ac_prog", so it can be a program name with args.
951 set dummy $ac_prog; ac_word=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 if test -n "$AWK"; then
958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
962 for ac_dir in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_prog_AWK="$ac_prog"
972 AWK="$ac_cv_prog_AWK"
973 if test -n "$AWK"; then
974 echo "$ac_t""$AWK" 1>&6
976 echo "$ac_t""no" 1>&6
979 test -n "$AWK" && break
982 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
983 echo "configure:984: checking whether ${MAKE-make} sets \${MAKE}" >&5
984 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
985 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftestmake <<\EOF
990 @echo 'ac_maketemp="${MAKE}"'
992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
993 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
994 if test -n "$ac_maketemp"; then
995 eval ac_cv_prog_make_${ac_make}_set=yes
997 eval ac_cv_prog_make_${ac_make}_set=no
1001 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1002 echo "$ac_t""yes" 1>&6
1005 echo "$ac_t""no" 1>&6
1006 SET_MAKE="MAKE=${MAKE-make}"
1015 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1016 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1021 missing_dir=`cd $ac_aux_dir && pwd`
1022 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1023 echo "configure:1024: checking for working aclocal" >&5
1024 # Run test in a subshell; some versions of sh will print an error if
1025 # an executable is not found, even if stderr is redirected.
1026 # Redirect stdin to placate older versions of autoconf. Sigh.
1027 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1029 echo "$ac_t""found" 1>&6
1031 ACLOCAL="$missing_dir/missing aclocal"
1032 echo "$ac_t""missing" 1>&6
1035 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1036 echo "configure:1037: checking for working autoconf" >&5
1037 # Run test in a subshell; some versions of sh will print an error if
1038 # an executable is not found, even if stderr is redirected.
1039 # Redirect stdin to placate older versions of autoconf. Sigh.
1040 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1042 echo "$ac_t""found" 1>&6
1044 AUTOCONF="$missing_dir/missing autoconf"
1045 echo "$ac_t""missing" 1>&6
1048 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1049 echo "configure:1050: checking for working automake" >&5
1050 # Run test in a subshell; some versions of sh will print an error if
1051 # an executable is not found, even if stderr is redirected.
1052 # Redirect stdin to placate older versions of autoconf. Sigh.
1053 if (automake --version) < /dev/null > /dev/null 2>&1; then
1055 echo "$ac_t""found" 1>&6
1057 AUTOMAKE="$missing_dir/missing automake"
1058 echo "$ac_t""missing" 1>&6
1061 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1062 echo "configure:1063: checking for working autoheader" >&5
1063 # Run test in a subshell; some versions of sh will print an error if
1064 # an executable is not found, even if stderr is redirected.
1065 # Redirect stdin to placate older versions of autoconf. Sigh.
1066 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1067 AUTOHEADER=autoheader
1068 echo "$ac_t""found" 1>&6
1070 AUTOHEADER="$missing_dir/missing autoheader"
1071 echo "$ac_t""missing" 1>&6
1074 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1075 echo "configure:1076: checking for working makeinfo" >&5
1076 # Run test in a subshell; some versions of sh will print an error if
1077 # an executable is not found, even if stderr is redirected.
1078 # Redirect stdin to placate older versions of autoconf. Sigh.
1079 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1081 echo "$ac_t""found" 1>&6
1083 MAKEINFO="$missing_dir/missing makeinfo"
1084 echo "$ac_t""missing" 1>&6
1087 install_sh="$missing_dir/install-sh"
1088 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1090 for ac_prog in gnutar gtar tar
1092 # Extract the first word of "$ac_prog", so it can be a program name with args.
1093 set dummy $ac_prog; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 if test -n "$AMTAR"; then
1100 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_AMTAR="$ac_prog"
1114 AMTAR="$ac_cv_prog_AMTAR"
1115 if test -n "$AMTAR"; then
1116 echo "$ac_t""$AMTAR" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 test -n "$AMTAR" && break
1126 if test -n "$AMTAR"; then
1127 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1134 cat >> confdefs.h <<EOF
1135 #define OPENLDAP_PACKAGE "$PACKAGE"
1138 cat >> confdefs.h <<EOF
1139 #define OPENLDAP_VERSION "$VERSION"
1145 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1146 echo "configure:1147: checking configure arguments" >&5
1151 ldap_subdir="/openldap"
1153 # Check whether --with-subdir or --without-subdir was given.
1154 if test "${with_subdir+set}" = set; then
1155 withval="$with_subdir"
1162 ldap_subdir="$withval"
1165 ldap_subdir="/$withval"
1172 # OpenLDAP --enable-debug
1173 # Check whether --enable-debug or --disable-debug was given.
1174 if test "${enable_debug+set}" = set; then
1175 enableval="$enable_debug"
1178 for ol_val in auto yes no ; do
1179 if test "$enableval" = "$ol_val" ; then
1183 if test "$ol_arg" = "invalid" ; then
1184 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1186 ol_enable_debug="$ol_arg"
1189 ol_enable_debug="yes"
1191 # end --enable-debug
1192 # OpenLDAP --enable-syslog
1193 # Check whether --enable-syslog or --disable-syslog was given.
1194 if test "${enable_syslog+set}" = set; then
1195 enableval="$enable_syslog"
1198 for ol_val in auto yes no ; do
1199 if test "$enableval" = "$ol_val" ; then
1203 if test "$ol_arg" = "invalid" ; then
1204 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1206 ol_enable_syslog="$ol_arg"
1209 ol_enable_syslog="auto"
1211 # end --enable-syslog
1212 # OpenLDAP --enable-proctitle
1213 # Check whether --enable-proctitle or --disable-proctitle was given.
1214 if test "${enable_proctitle+set}" = set; then
1215 enableval="$enable_proctitle"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1226 ol_enable_proctitle="$ol_arg"
1229 ol_enable_proctitle="yes"
1231 # end --enable-proctitle
1232 # OpenLDAP --enable-cache
1233 # Check whether --enable-cache or --disable-cache was given.
1234 if test "${enable_cache+set}" = set; then
1235 enableval="$enable_cache"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1246 ol_enable_cache="$ol_arg"
1249 ol_enable_cache="yes"
1251 # end --enable-cache
1252 # OpenLDAP --enable-referrals
1253 # Check whether --enable-referrals or --disable-referrals was given.
1254 if test "${enable_referrals+set}" = set; then
1255 enableval="$enable_referrals"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1266 ol_enable_referrals="$ol_arg"
1269 ol_enable_referrals="yes"
1271 # end --enable-referrals
1272 # OpenLDAP --enable-kbind
1273 # Check whether --enable-kbind or --disable-kbind was given.
1274 if test "${enable_kbind+set}" = set; then
1275 enableval="$enable_kbind"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1286 ol_enable_kbind="$ol_arg"
1289 ol_enable_kbind="auto"
1291 # end --enable-kbind
1292 # OpenLDAP --enable-cldap
1293 # Check whether --enable-cldap or --disable-cldap was given.
1294 if test "${enable_cldap+set}" = set; then
1295 enableval="$enable_cldap"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1306 ol_enable_cldap="$ol_arg"
1309 ol_enable_cldap="no"
1311 # end --enable-cldap
1312 # OpenLDAP --enable-ipv6
1313 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1314 if test "${enable_ipv6+set}" = set; then
1315 enableval="$enable_ipv6"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1326 ol_enable_ipv6="$ol_arg"
1329 ol_enable_ipv6="auto"
1332 # OpenLDAP --enable-local
1333 # Check whether --enable-local or --disable-local was given.
1334 if test "${enable_local+set}" = set; then
1335 enableval="$enable_local"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1346 ol_enable_local="$ol_arg"
1349 ol_enable_local="auto"
1351 # end --enable-local
1352 # OpenLDAP --enable-x_compile
1353 # Check whether --enable-x_compile or --disable-x_compile was given.
1354 if test "${enable_x_compile+set}" = set; then
1355 enableval="$enable_x_compile"
1358 for ol_val in yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1366 ol_enable_x_compile="$ol_arg"
1369 ol_enable_x_compile="no"
1371 # end --enable-x_compile
1374 # OpenLDAP --with-cyrus_sasl
1375 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1376 if test "${with_cyrus_sasl+set}" = set; then
1377 withval="$with_cyrus_sasl"
1380 for ol_val in auto yes no ; do
1381 if test "$withval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1388 ol_with_cyrus_sasl="$ol_arg"
1391 ol_with_cyrus_sasl="auto"
1393 # end --with-cyrus_sasl
1395 # OpenLDAP --with-fetch
1396 # Check whether --with-fetch or --without-fetch was given.
1397 if test "${with_fetch+set}" = set; then
1398 withval="$with_fetch"
1401 for ol_val in auto yes no ; do
1402 if test "$withval" = "$ol_val" ; then
1406 if test "$ol_arg" = "invalid" ; then
1407 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1409 ol_with_fetch="$ol_arg"
1412 ol_with_fetch="auto"
1416 # OpenLDAP --with-kerberos
1417 # Check whether --with-kerberos or --without-kerberos was given.
1418 if test "${with_kerberos+set}" = set; then
1419 withval="$with_kerberos"
1422 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1423 if test "$withval" = "$ol_val" ; then
1427 if test "$ol_arg" = "invalid" ; then
1428 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1430 ol_with_kerberos="$ol_arg"
1433 ol_with_kerberos="auto"
1435 # end --with-kerberos
1437 # OpenLDAP --with-readline
1438 # Check whether --with-readline or --without-readline was given.
1439 if test "${with_readline+set}" = set; then
1440 withval="$with_readline"
1443 for ol_val in auto yes no ; do
1444 if test "$withval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1451 ol_with_readline="$ol_arg"
1454 ol_with_readline="auto"
1456 # end --with-readline
1458 # OpenLDAP --with-threads
1459 # Check whether --with-threads or --without-threads was given.
1460 if test "${with_threads+set}" = set; then
1461 withval="$with_threads"
1464 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1465 if test "$withval" = "$ol_val" ; then
1469 if test "$ol_arg" = "invalid" ; then
1470 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1472 ol_with_threads="$ol_arg"
1475 ol_with_threads="auto"
1477 # end --with-threads
1479 # OpenLDAP --with-tls
1480 # Check whether --with-tls or --without-tls was given.
1481 if test "${with_tls+set}" = set; then
1485 for ol_val in auto ssleay openssl yes no ; do
1486 if test "$withval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1493 ol_with_tls="$ol_arg"
1500 # OpenLDAP --with-yielding_select
1501 # Check whether --with-yielding_select or --without-yielding_select was given.
1502 if test "${with_yielding_select+set}" = set; then
1503 withval="$with_yielding_select"
1506 for ol_val in auto yes no manual ; do
1507 if test "$withval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1514 ol_with_yielding_select="$ol_arg"
1517 ol_with_yielding_select="auto"
1519 # end --with-yielding_select
1523 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1524 if test "${with_xxslapdoptions+set}" = set; then
1525 withval="$with_xxslapdoptions"
1529 # OpenLDAP --enable-slapd
1530 # Check whether --enable-slapd or --disable-slapd was given.
1531 if test "${enable_slapd+set}" = set; then
1532 enableval="$enable_slapd"
1535 for ol_val in auto yes no ; do
1536 if test "$enableval" = "$ol_val" ; then
1540 if test "$ol_arg" = "invalid" ; then
1541 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1543 ol_enable_slapd="$ol_arg"
1546 ol_enable_slapd="yes"
1548 # end --enable-slapd
1549 # OpenLDAP --enable-cleartext
1550 # Check whether --enable-cleartext or --disable-cleartext was given.
1551 if test "${enable_cleartext+set}" = set; then
1552 enableval="$enable_cleartext"
1555 for ol_val in auto yes no ; do
1556 if test "$enableval" = "$ol_val" ; then
1560 if test "$ol_arg" = "invalid" ; then
1561 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1563 ol_enable_cleartext="$ol_arg"
1566 ol_enable_cleartext="yes"
1568 # end --enable-cleartext
1569 # OpenLDAP --enable-crypt
1570 # Check whether --enable-crypt or --disable-crypt was given.
1571 if test "${enable_crypt+set}" = set; then
1572 enableval="$enable_crypt"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1583 ol_enable_crypt="$ol_arg"
1586 ol_enable_crypt="auto"
1588 # end --enable-crypt
1589 # OpenLDAP --enable-kpasswd
1590 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1591 if test "${enable_kpasswd+set}" = set; then
1592 enableval="$enable_kpasswd"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1603 ol_enable_kpasswd="$ol_arg"
1606 ol_enable_kpasswd="no"
1608 # end --enable-kpasswd
1609 # OpenLDAP --enable-spasswd
1610 # Check whether --enable-spasswd or --disable-spasswd was given.
1611 if test "${enable_spasswd+set}" = set; then
1612 enableval="$enable_spasswd"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1623 ol_enable_spasswd="$ol_arg"
1626 ol_enable_spasswd="no"
1628 # end --enable-spasswd
1629 # OpenLDAP --enable-modules
1630 # Check whether --enable-modules or --disable-modules was given.
1631 if test "${enable_modules+set}" = set; then
1632 enableval="$enable_modules"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1643 ol_enable_modules="$ol_arg"
1646 ol_enable_modules="no"
1648 # end --enable-modules
1649 # OpenLDAP --enable-multimaster
1650 # Check whether --enable-multimaster or --disable-multimaster was given.
1651 if test "${enable_multimaster+set}" = set; then
1652 enableval="$enable_multimaster"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1663 ol_enable_multimaster="$ol_arg"
1666 ol_enable_multimaster="no"
1668 # end --enable-multimaster
1669 # OpenLDAP --enable-phonetic
1670 # Check whether --enable-phonetic or --disable-phonetic was given.
1671 if test "${enable_phonetic+set}" = set; then
1672 enableval="$enable_phonetic"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1683 ol_enable_phonetic="$ol_arg"
1686 ol_enable_phonetic="no"
1688 # end --enable-phonetic
1689 # OpenLDAP --enable-rlookups
1690 # Check whether --enable-rlookups or --disable-rlookups was given.
1691 if test "${enable_rlookups+set}" = set; then
1692 enableval="$enable_rlookups"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1703 ol_enable_rlookups="$ol_arg"
1706 ol_enable_rlookups="auto"
1708 # end --enable-rlookups
1709 # OpenLDAP --enable-aci
1710 # Check whether --enable-aci or --disable-aci was given.
1711 if test "${enable_aci+set}" = set; then
1712 enableval="$enable_aci"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1723 ol_enable_aci="$ol_arg"
1729 # OpenLDAP --enable-wrappers
1730 # Check whether --enable-wrappers or --disable-wrappers was given.
1731 if test "${enable_wrappers+set}" = set; then
1732 enableval="$enable_wrappers"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1743 ol_enable_wrappers="$ol_arg"
1746 ol_enable_wrappers="no"
1748 # end --enable-wrappers
1749 # OpenLDAP --enable-dynamic
1750 # Check whether --enable-dynamic or --disable-dynamic was given.
1751 if test "${enable_dynamic+set}" = set; then
1752 enableval="$enable_dynamic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1763 ol_enable_dynamic="$ol_arg"
1766 ol_enable_dynamic="no"
1768 # end --enable-dynamic
1770 # OpenLDAP --enable-dnssrv
1771 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1772 if test "${enable_dnssrv+set}" = set; then
1773 enableval="$enable_dnssrv"
1776 for ol_val in auto yes no ; do
1777 if test "$enableval" = "$ol_val" ; then
1781 if test "$ol_arg" = "invalid" ; then
1782 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1784 ol_enable_dnssrv="$ol_arg"
1787 ol_enable_dnssrv="no"
1789 # end --enable-dnssrv
1790 # OpenLDAP --with-dnssrv_module
1791 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1792 if test "${with_dnssrv_module+set}" = set; then
1793 withval="$with_dnssrv_module"
1796 for ol_val in static dynamic ; do
1797 if test "$withval" = "$ol_val" ; then
1801 if test "$ol_arg" = "invalid" ; then
1802 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1804 ol_with_dnssrv_module="$ol_arg"
1807 ol_with_dnssrv_module="static"
1809 # end --with-dnssrv_module
1811 # OpenLDAP --enable-ldap
1812 # Check whether --enable-ldap or --disable-ldap was given.
1813 if test "${enable_ldap+set}" = set; then
1814 enableval="$enable_ldap"
1817 for ol_val in auto yes no ; do
1818 if test "$enableval" = "$ol_val" ; then
1822 if test "$ol_arg" = "invalid" ; then
1823 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1825 ol_enable_ldap="$ol_arg"
1831 # OpenLDAP --with-ldap_module
1832 # Check whether --with-ldap_module or --without-ldap_module was given.
1833 if test "${with_ldap_module+set}" = set; then
1834 withval="$with_ldap_module"
1837 for ol_val in static dynamic ; do
1838 if test "$withval" = "$ol_val" ; then
1842 if test "$ol_arg" = "invalid" ; then
1843 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1845 ol_with_ldap_module="$ol_arg"
1848 ol_with_ldap_module="static"
1850 # end --with-ldap_module
1852 # OpenLDAP --enable-ldbm
1853 # Check whether --enable-ldbm or --disable-ldbm was given.
1854 if test "${enable_ldbm+set}" = set; then
1855 enableval="$enable_ldbm"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1866 ol_enable_ldbm="$ol_arg"
1869 ol_enable_ldbm="yes"
1872 # OpenLDAP --with-ldbm_api
1873 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1874 if test "${with_ldbm_api+set}" = set; then
1875 withval="$with_ldbm_api"
1878 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1879 if test "$withval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1886 ol_with_ldbm_api="$ol_arg"
1889 ol_with_ldbm_api="auto"
1891 # end --with-ldbm_api
1893 # OpenLDAP --with-ldbm_module
1894 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1895 if test "${with_ldbm_module+set}" = set; then
1896 withval="$with_ldbm_module"
1899 for ol_val in static dynamic ; do
1900 if test "$withval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1907 ol_with_ldbm_module="$ol_arg"
1910 ol_with_ldbm_module="static"
1912 # end --with-ldbm_module
1914 # OpenLDAP --with-ldbm_type
1915 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1916 if test "${with_ldbm_type+set}" = set; then
1917 withval="$with_ldbm_type"
1920 for ol_val in auto btree hash ; do
1921 if test "$withval" = "$ol_val" ; then
1925 if test "$ol_arg" = "invalid" ; then
1926 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1928 ol_with_ldbm_type="$ol_arg"
1931 ol_with_ldbm_type="auto"
1933 # end --with-ldbm_type
1935 # OpenLDAP --enable-passwd
1936 # Check whether --enable-passwd or --disable-passwd was given.
1937 if test "${enable_passwd+set}" = set; then
1938 enableval="$enable_passwd"
1941 for ol_val in auto yes no ; do
1942 if test "$enableval" = "$ol_val" ; then
1946 if test "$ol_arg" = "invalid" ; then
1947 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1949 ol_enable_passwd="$ol_arg"
1952 ol_enable_passwd="no"
1954 # end --enable-passwd
1955 # OpenLDAP --with-passwd_module
1956 # Check whether --with-passwd_module or --without-passwd_module was given.
1957 if test "${with_passwd_module+set}" = set; then
1958 withval="$with_passwd_module"
1961 for ol_val in static dynamic ; do
1962 if test "$withval" = "$ol_val" ; then
1966 if test "$ol_arg" = "invalid" ; then
1967 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1969 ol_with_passwd_module="$ol_arg"
1972 ol_with_passwd_module="static"
1974 # end --with-passwd_module
1976 # OpenLDAP --enable-shell
1977 # Check whether --enable-shell or --disable-shell was given.
1978 if test "${enable_shell+set}" = set; then
1979 enableval="$enable_shell"
1982 for ol_val in auto yes no ; do
1983 if test "$enableval" = "$ol_val" ; then
1987 if test "$ol_arg" = "invalid" ; then
1988 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1990 ol_enable_shell="$ol_arg"
1993 ol_enable_shell="no"
1995 # end --enable-shell
1996 # OpenLDAP --with-shell_module
1997 # Check whether --with-shell_module or --without-shell_module was given.
1998 if test "${with_shell_module+set}" = set; then
1999 withval="$with_shell_module"
2002 for ol_val in static dynamic ; do
2003 if test "$withval" = "$ol_val" ; then
2007 if test "$ol_arg" = "invalid" ; then
2008 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2010 ol_with_shell_module="$ol_arg"
2013 ol_with_shell_module="static"
2015 # end --with-shell_module
2017 # OpenLDAP --enable-sql
2018 # Check whether --enable-sql or --disable-sql was given.
2019 if test "${enable_sql+set}" = set; then
2020 enableval="$enable_sql"
2023 for ol_val in auto yes no ; do
2024 if test "$enableval" = "$ol_val" ; then
2028 if test "$ol_arg" = "invalid" ; then
2029 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2031 ol_enable_sql="$ol_arg"
2037 # OpenLDAP --with-sql_module
2038 # Check whether --with-sql_module or --without-sql_module was given.
2039 if test "${with_sql_module+set}" = set; then
2040 withval="$with_sql_module"
2043 for ol_val in static dynamic ; do
2044 if test "$withval" = "$ol_val" ; then
2048 if test "$ol_arg" = "invalid" ; then
2049 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2051 ol_with_sql_module="$ol_arg"
2054 ol_with_sql_module="static"
2056 # end --with-sql_module
2059 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2060 if test "${with_xxslurpdoptions+set}" = set; then
2061 withval="$with_xxslurpdoptions"
2065 # OpenLDAP --enable-slurpd
2066 # Check whether --enable-slurpd or --disable-slurpd was given.
2067 if test "${enable_slurpd+set}" = set; then
2068 enableval="$enable_slurpd"
2071 for ol_val in auto yes no ; do
2072 if test "$enableval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2079 ol_enable_slurpd="$ol_arg"
2082 ol_enable_slurpd="auto"
2084 # end --enable-slurpd
2086 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2087 if test "${with_xxliboptions+set}" = set; then
2088 withval="$with_xxliboptions"
2092 # Check whether --enable-static or --disable-static was given.
2093 if test "${enable_static+set}" = set; then
2094 enableval="$enable_static"
2095 p=${PACKAGE-default}
2096 case "$enableval" in
2097 yes) enable_static=yes ;;
2098 no) enable_static=no ;;
2101 # Look at the argument we got. We use all the common list separators.
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2103 for pkg in $enableval; do
2104 if test "X$pkg" = "X$p"; then
2115 # Check whether --enable-shared or --disable-shared was given.
2116 if test "${enable_shared+set}" = set; then
2117 enableval="$enable_shared"
2118 p=${PACKAGE-default}
2119 case "$enableval" in
2120 yes) enable_shared=yes ;;
2121 no) enable_shared=no ;;
2124 # Look at the argument we got. We use all the common list separators.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2126 for pkg in $enableval; do
2127 if test "X$pkg" = "X$p"; then
2141 if test $ol_enable_slapd = no ; then
2142 if test $ol_enable_dnssrv = yes ; then
2143 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2145 if test $ol_enable_ldap = yes ; then
2146 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2148 if test $ol_enable_ldbm = yes ; then
2149 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2151 if test $ol_enable_passwd = yes ; then
2152 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2154 if test $ol_enable_shell = yes ; then
2155 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2157 if test $ol_enable_sql = yes ; then
2158 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2160 if test $ol_enable_modules = yes ; then
2161 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2163 if test $ol_enable_multimaster = yes ; then
2164 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2166 if test $ol_enable_wrappers = yes ; then
2167 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2169 if test $ol_enable_phonetic = yes ; then
2170 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2172 if test $ol_enable_rlookups = yes ; then
2173 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2175 if test $ol_enable_aci = yes ; then
2176 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2178 if test $ol_with_ldbm_api != auto ; then
2179 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2181 if test $ol_with_ldbm_type != auto ; then
2182 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2184 if test $ol_with_dnssrv_module != static ; then
2185 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2187 if test $ol_with_ldap_module != static ; then
2188 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2190 if test $ol_with_ldbm_module != static ; then
2191 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2193 if test $ol_with_passwd_module != static ; then
2194 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2196 if test $ol_with_shell_module != static ; then
2197 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2199 if test $ol_with_sql_module != static ; then
2200 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2202 if test $ol_enable_slurpd = yes ; then
2203 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2206 # force settings to no
2214 ol_enable_modules=no
2215 ol_enable_multimaster=no
2216 ol_enable_phonetic=no
2217 ol_enable_rlookups=no
2219 ol_enable_wrappers=no
2220 ol_enable_dynamic=no
2223 ol_with_ldbm_type=no
2225 ol_with_dnssrv_module=static
2226 ol_with_ldap_module=static
2227 ol_with_ldbm_module=static
2228 ol_with_passwd_module=static
2229 ol_with_shell_module=static
2230 ol_with_sql_module=static
2234 elif test $ol_enable_ldbm = no ; then
2236 if test $ol_with_ldbm_api != auto ; then
2237 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2240 if test $ol_with_ldbm_type != auto ; then
2241 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2244 if test $ol_with_ldbm_module != static ; then
2245 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2248 if test $ol_enable_modules != yes -a \
2249 $ol_enable_dnssrv = no -a \
2250 $ol_enable_ldap = no -a \
2251 $ol_enable_passwd = no -a \
2252 $ol_enable_shell = no -a \
2253 $ol_enable_sql = no ; then
2254 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2258 ol_with_ldbm_type=no
2259 ol_with_ldbm_module=static
2262 if test $ol_with_ldbm_api = gdbm -a \
2263 $ol_with_ldbm_type = btree ; then
2264 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2266 if test $ol_with_ldbm_api = mdbm -a \
2267 $ol_with_ldbm_type = btree ; then
2268 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2270 if test $ol_with_ldbm_api = ndbm -a \
2271 $ol_with_ldbm_type = btree ; then
2272 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2276 if test $ol_enable_slurpd = yes ; then
2277 if test $ol_with_threads = no ; then
2278 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2282 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2283 if test $ol_with_kerberos = no ; then
2284 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2286 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2287 if test $ol_with_kerberos != auto ; then
2288 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2294 if test $ol_enable_spasswd = yes ; then
2295 if test $ol_with_cyrus_sasl = no ; then
2296 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2301 echo "$ac_t""done" 1>&6
2324 BUILD_DNSSRV_DYNAMIC=static
2325 BUILD_LDAP_DYNAMIC=static
2326 BUILD_LDBM_DYNAMIC=static
2327 BUILD_PASSWD_DYNAMIC=static
2328 BUILD_SHELL_DYNAMIC=static
2329 BUILD_SQL_DYNAMIC=static
2331 SLAPD_MODULES_LDFLAGS=
2332 SLAPD_MODULES_CPPFLAGS=
2350 cat >> confdefs.h <<\EOF
2351 #define HAVE_MKVERSION 1
2359 *-*-aix*) if test -z "$CC" ; then
2360 case "$ol_with_threads" in
2361 auto | yes | posix) ol_aix_threads=yes ;;
2367 if test $ol_aix_threads = yes ; then
2368 if test -z "${CC}" ; then
2369 for ac_prog in cc_r xlc_r cc
2371 # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2374 echo "configure:2375: checking for $ac_word" >&5
2375 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2383 for ac_dir in $ac_dummy; do
2384 test -z "$ac_dir" && ac_dir=.
2385 if test -f $ac_dir/$ac_word; then
2386 ac_cv_prog_CC="$ac_prog"
2394 if test -n "$CC"; then
2395 echo "$ac_t""$CC" 1>&6
2397 echo "$ac_t""no" 1>&6
2400 test -n "$CC" && break
2404 if test "$CC" = cc ; then
2405 if test $ol_with_threads != auto ; then
2406 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2408 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2414 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2415 ol_with_threads=posix
2416 ol_cv_pthread_create=yes
2420 if test -z "${CC}"; then
2423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2424 set dummy $ac_prog; ac_word=$2
2425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_word" >&5
2427 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2435 for ac_dir in $ac_dummy; do
2436 test -z "$ac_dir" && ac_dir=.
2437 if test -f $ac_dir/$ac_word; then
2438 ac_cv_prog_CC="$ac_prog"
2446 if test -n "$CC"; then
2447 echo "$ac_t""$CC" 1>&6
2449 echo "$ac_t""no" 1>&6
2452 test -n "$CC" && break
2460 # Check whether --enable-fast-install or --disable-fast-install was given.
2461 if test "${enable_fast_install+set}" = set; then
2462 enableval="$enable_fast_install"
2463 p=${PACKAGE-default}
2464 case "$enableval" in
2465 yes) enable_fast_install=yes ;;
2466 no) enable_fast_install=no ;;
2468 enable_fast_install=no
2469 # Look at the argument we got. We use all the common list separators.
2470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2471 for pkg in $enableval; do
2472 if test "X$pkg" = "X$p"; then
2473 enable_fast_install=yes
2480 enable_fast_install=yes
2483 # Extract the first word of "ranlib", so it can be a program name with args.
2484 set dummy ranlib; ac_word=$2
2485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_word" >&5
2487 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2490 if test -n "$RANLIB"; then
2491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2495 for ac_dir in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir=.
2497 if test -f $ac_dir/$ac_word; then
2498 ac_cv_prog_RANLIB="ranlib"
2503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2506 RANLIB="$ac_cv_prog_RANLIB"
2507 if test -n "$RANLIB"; then
2508 echo "$ac_t""$RANLIB" 1>&6
2510 echo "$ac_t""no" 1>&6
2513 # Extract the first word of "gcc", so it can be a program name with args.
2514 set dummy gcc; ac_word=$2
2515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_word" >&5
2517 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2536 if test -n "$CC"; then
2537 echo "$ac_t""$CC" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 if test -z "$CC"; then
2543 # Extract the first word of "cc", so it can be a program name with args.
2544 set dummy cc; ac_word=$2
2545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_word" >&5
2547 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2568 if test $ac_prog_rejected = yes; then
2569 # We found a bogon in the path, so make sure we never use it.
2570 set dummy $ac_cv_prog_CC
2572 if test $# -gt 0; then
2573 # We chose a different compiler from the bogus one.
2574 # However, it has the same basename, so the bogon will be chosen
2575 # first if we set CC to just the basename; use the full file name.
2577 set dummy "$ac_dir/$ac_word" "$@"
2585 if test -n "$CC"; then
2586 echo "$ac_t""$CC" 1>&6
2588 echo "$ac_t""no" 1>&6
2591 if test -z "$CC"; then
2592 case "`uname -s`" in
2593 *win32* | *WIN32* | *CYGWIN*)
2594 # Extract the first word of "cl", so it can be a program name with args.
2595 set dummy cl; ac_word=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2606 for ac_dir in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir=.
2608 if test -f $ac_dir/$ac_word; then
2617 if test -n "$CC"; then
2618 echo "$ac_t""$CC" 1>&6
2620 echo "$ac_t""no" 1>&6
2625 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2628 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2629 echo "configure:2630: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2636 cross_compiling=$ac_cv_prog_cc_cross
2638 cat > conftest.$ac_ext << EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2645 if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2646 ac_cv_prog_cc_works=yes
2647 # If we can't run a trivial program, we are probably using a cross compiler.
2648 if (./conftest; exit) 2>/dev/null; then
2649 ac_cv_prog_cc_cross=no
2651 ac_cv_prog_cc_cross=yes
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 ac_cv_prog_cc_works=no
2660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2664 cross_compiling=$ac_cv_prog_cc_cross
2666 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2667 if test $ac_cv_prog_cc_works = no; then
2668 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2670 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2671 echo "configure:2672: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2672 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2673 cross_compiling=$ac_cv_prog_cc_cross
2675 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2676 echo "configure:2677: checking whether we are using GNU C" >&5
2677 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.c <<EOF
2685 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2692 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2694 if test $ac_cv_prog_gcc = yes; then
2700 ac_test_CFLAGS="${CFLAGS+set}"
2701 ac_save_CFLAGS="$CFLAGS"
2703 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2704 echo "configure:2705: checking whether ${CC-cc} accepts -g" >&5
2705 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 echo 'void f(){}' > conftest.c
2709 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2718 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2719 if test "$ac_test_CFLAGS" = set; then
2720 CFLAGS="$ac_save_CFLAGS"
2721 elif test $ac_cv_prog_cc_g = yes; then
2722 if test "$GCC" = yes; then
2728 if test "$GCC" = yes; then
2735 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2736 if test "${with_gnu_ld+set}" = set; then
2737 withval="$with_gnu_ld"
2738 test "$withval" = no || with_gnu_ld=yes
2744 if test "$ac_cv_prog_gcc" = yes; then
2745 # Check if gcc -print-prog-name=ld gives a path.
2746 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2747 echo "configure:2748: checking for ld used by GCC" >&5
2748 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2750 # Accept absolute paths.
2751 [\\/]* | [A-Za-z]:[\\/]*)
2752 re_direlt='/[^/][^/]*/\.\./'
2753 # Canonicalize the path of ld
2754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2758 test -z "$LD" && LD="$ac_prog"
2761 # If it fails, then pretend we aren't using GCC.
2765 # If it is relative, then search for the first ld in PATH.
2769 elif test "$with_gnu_ld" = yes; then
2770 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2771 echo "configure:2772: checking for GNU ld" >&5
2773 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2774 echo "configure:2775: checking for non-GNU ld" >&5
2776 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 if test -z "$LD"; then
2780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2781 for ac_dir in $PATH; do
2782 test -z "$ac_dir" && ac_dir=.
2783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2784 ac_cv_path_LD="$ac_dir/$ac_prog"
2785 # Check to see if the program is GNU ld. I'd rather use --version,
2786 # but apparently some GNU ld's only accept -v.
2787 # Break only if it was the GNU/non-GNU ld that we prefer.
2788 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2789 test "$with_gnu_ld" != no && break
2791 test "$with_gnu_ld" != yes && break
2797 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2802 if test -n "$LD"; then
2803 echo "$ac_t""$LD" 1>&6
2805 echo "$ac_t""no" 1>&6
2807 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2808 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2809 echo "configure:2810: checking if the linker ($LD) is GNU ld" >&5
2810 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2814 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2815 ac_cv_prog_gnu_ld=yes
2817 ac_cv_prog_gnu_ld=no
2821 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2824 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2825 echo "configure:2826: checking for BSD-compatible nm" >&5
2826 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 if test -n "$NM"; then
2830 # Let the user override the test.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2834 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2837 # Check to see if the nm accepts a BSD-compat flag.
2838 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2839 # nm: unknown option "B" ignored
2840 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2841 ac_cv_path_NM="$ac_dir/nm -B"
2843 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2844 ac_cv_path_NM="$ac_dir/nm -p"
2847 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2848 continue # so that we can try to find one that supports BSD flags
2853 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2858 echo "$ac_t""$NM" 1>&6
2860 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2861 echo "configure:2862: checking whether ln -s works" >&5
2862 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2866 if ln -s X conftestdata 2>/dev/null
2869 ac_cv_prog_LN_S="ln -s"
2874 LN_S="$ac_cv_prog_LN_S"
2875 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2876 echo "$ac_t""yes" 1>&6
2878 echo "$ac_t""no" 1>&6
2881 if test $host != $build; then
2882 ac_tool_prefix=${host_alias}-
2889 NONE) lt_target="$host" ;;
2890 *) lt_target="$target" ;;
2893 # Check for any special flags to pass to ltconfig.
2894 libtool_flags="--cache-file=$cache_file"
2895 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2896 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2897 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2898 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2899 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2900 libtool_flags="$libtool_flags --enable-dlopen"
2901 libtool_flags="$libtool_flags --enable-win32-dll"
2902 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2903 if test "${enable_libtool_lock+set}" = set; then
2904 enableval="$enable_libtool_lock"
2908 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2909 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2911 # Some flags need to be propagated to the compiler or linker for good
2913 case "$lt_target" in
2915 # Find out which ABI we are using.
2916 echo '#line 2917 "configure"' > conftest.$ac_ext
2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 case "`/usr/bin/file conftest.o`" in
2934 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2935 SAVE_CFLAGS="$CFLAGS"
2936 CFLAGS="$CFLAGS -belf"
2937 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2938 echo "configure:2939: checking whether the C compiler needs -belf" >&5
2939 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2952 lt_cv_cc_needs_belf=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 lt_cv_cc_needs_belf=no
2962 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2965 CFLAGS="$SAVE_CFLAGS"
2969 *-*-cygwin* | *-*-mingw*)
2970 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2971 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test -n "$DLLTOOL"; then
2978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2982 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 if test -f $ac_dir/$ac_word; then
2985 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2992 DLLTOOL="$ac_cv_prog_DLLTOOL"
2993 if test -n "$DLLTOOL"; then
2994 echo "$ac_t""$DLLTOOL" 1>&6
2996 echo "$ac_t""no" 1>&6
3000 if test -z "$ac_cv_prog_DLLTOOL"; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "dlltool", so it can be a program name with args.
3003 set dummy dlltool; ac_word=$2
3004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_word" >&5
3006 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 if test -n "$DLLTOOL"; then
3010 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3014 for ac_dir in $ac_dummy; do
3015 test -z "$ac_dir" && ac_dir=.
3016 if test -f $ac_dir/$ac_word; then
3017 ac_cv_prog_DLLTOOL="dlltool"
3022 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3025 DLLTOOL="$ac_cv_prog_DLLTOOL"
3026 if test -n "$DLLTOOL"; then
3027 echo "$ac_t""$DLLTOOL" 1>&6
3029 echo "$ac_t""no" 1>&6
3037 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}as; ac_word=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 if test -n "$AS"; then
3045 ac_cv_prog_AS="$AS" # Let the user override the test.
3047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3049 for ac_dir in $ac_dummy; do
3050 test -z "$ac_dir" && ac_dir=.
3051 if test -f $ac_dir/$ac_word; then
3052 ac_cv_prog_AS="${ac_tool_prefix}as"
3060 if test -n "$AS"; then
3061 echo "$ac_t""$AS" 1>&6
3063 echo "$ac_t""no" 1>&6
3067 if test -z "$ac_cv_prog_AS"; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "as", so it can be a program name with args.
3070 set dummy as; ac_word=$2
3071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_word" >&5
3073 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 if test -n "$AS"; then
3077 ac_cv_prog_AS="$AS" # Let the user override the test.
3079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3081 for ac_dir in $ac_dummy; do
3082 test -z "$ac_dir" && ac_dir=.
3083 if test -f $ac_dir/$ac_word; then
3089 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3093 if test -n "$AS"; then
3094 echo "$ac_t""$AS" 1>&6
3096 echo "$ac_t""no" 1>&6
3104 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5
3108 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 if test -n "$OBJDUMP"; then
3112 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3116 for ac_dir in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3126 OBJDUMP="$ac_cv_prog_OBJDUMP"
3127 if test -n "$OBJDUMP"; then
3128 echo "$ac_t""$OBJDUMP" 1>&6
3130 echo "$ac_t""no" 1>&6
3134 if test -z "$ac_cv_prog_OBJDUMP"; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "objdump", so it can be a program name with args.
3137 set dummy objdump; ac_word=$2
3138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_word" >&5
3140 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test -n "$OBJDUMP"; then
3144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3148 for ac_dir in $ac_dummy; do
3149 test -z "$ac_dir" && ac_dir=.
3150 if test -f $ac_dir/$ac_word; then
3151 ac_cv_prog_OBJDUMP="objdump"
3156 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3159 OBJDUMP="$ac_cv_prog_OBJDUMP"
3160 if test -n "$OBJDUMP"; then
3161 echo "$ac_t""$OBJDUMP" 1>&6
3163 echo "$ac_t""no" 1>&6
3176 # Save cache, so that ltconfig can load it
3179 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3180 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3181 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3182 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3183 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3184 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3185 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3186 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3188 # Reload cache, that may have been modified by ltconfig
3191 # This can be used to rebuild libtool when needed
3192 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3194 # Always use our own libtool.
3195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3197 # Redirect the config.log output again, so that the ltconfig log is not
3198 # clobbered by the next message.
3199 exec 5>>./config.log
3202 for ac_prog in mawk gawk nawk awk
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3207 echo "configure:3208: checking for $ac_word" >&5
3208 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -n "$AWK"; then
3212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3216 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_prog_AWK="$ac_prog"
3226 AWK="$ac_cv_prog_AWK"
3227 if test -n "$AWK"; then
3228 echo "$ac_t""$AWK" 1>&6
3230 echo "$ac_t""no" 1>&6
3233 test -n "$AWK" && break
3236 # test for ln hardlink support
3237 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3238 echo "configure:3239: checking whether ln works" >&5
3239 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 rm -f conftest.src conftest.dst
3243 echo "conftest" > conftest.src
3244 if ln conftest.src conftest.dst 2>/dev/null
3246 ol_cv_prog_LN_H="ln"
3248 ol_cv_prog_LN_H="cp"
3250 rm -f conftest.src conftest.dst
3253 LN_H="$ol_cv_prog_LN_H"
3254 if test "$ol_cv_prog_LN_H" = "ln"; then
3255 echo "$ac_t""yes" 1>&6
3257 echo "$ac_t""no" 1>&6
3260 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3261 echo "configure:3262: checking whether ln -s works" >&5
3262 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3266 if ln -s X conftestdata 2>/dev/null
3269 ac_cv_prog_LN_S="ln -s"
3274 LN_S="$ac_cv_prog_LN_S"
3275 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3276 echo "$ac_t""yes" 1>&6
3278 echo "$ac_t""no" 1>&6
3282 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3286 # Extract the first word of "sendmail", so it can be a program name with args.
3287 set dummy sendmail; ac_word=$2
3288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_word" >&5
3290 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3295 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3298 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3303 for ac_dir in $ac_dummy; do
3304 test -z "$ac_dir" && ac_dir=.
3305 if test -f $ac_dir/$ac_word; then
3306 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3311 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3315 SENDMAIL="$ac_cv_path_SENDMAIL"
3316 if test -n "$SENDMAIL"; then
3317 echo "$ac_t""$SENDMAIL" 1>&6
3319 echo "$ac_t""no" 1>&6
3322 # Extract the first word of "vi", so it can be a program name with args.
3323 set dummy vi; ac_word=$2
3324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_word" >&5
3326 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3331 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3334 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3338 ac_dummy="$PATH:/usr/ucb"
3339 for ac_dir in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir=.
3341 if test -f $ac_dir/$ac_word; then
3342 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3347 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3351 EDITOR="$ac_cv_path_EDITOR"
3352 if test -n "$EDITOR"; then
3353 echo "$ac_t""$EDITOR" 1>&6
3355 echo "$ac_t""no" 1>&6
3358 # Extract the first word of "finger", so it can be a program name with args.
3359 set dummy finger; ac_word=$2
3360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_word" >&5
3362 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3367 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3370 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 ac_dummy="$PATH:/usr/ucb"
3375 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 if test -f $ac_dir/$ac_word; then
3378 ac_cv_path_FINGER="$ac_dir/$ac_word"
3383 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3387 FINGER="$ac_cv_path_FINGER"
3388 if test -n "$FINGER"; then
3389 echo "$ac_t""$FINGER" 1>&6
3391 echo "$ac_t""no" 1>&6
3395 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3396 echo "configure:3397: checking how to run the C preprocessor" >&5
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3401 if test -z "$CPP"; then
3402 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 # This must be in double quotes, not single quotes, because CPP may get
3406 # substituted into the Makefile and "${CC-cc}" will confuse make.
3408 # On the NeXT, cc -E runs the code through the compiler's parser,
3409 # not just through cpp.
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3417 { (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3419 if test -z "$ac_err"; then
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 CPP="${CC-cc} -E -traditional-cpp"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3434 { (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436 if test -z "$ac_err"; then
3440 echo "configure: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3443 CPP="${CC-cc} -nologo -E"
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3451 { (eval echo configure:3452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3453 if test -z "$ac_err"; then
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3467 ac_cv_prog_CPP="$CPP"
3469 CPP="$ac_cv_prog_CPP"
3471 ac_cv_prog_CPP="$CPP"
3473 echo "$ac_t""$CPP" 1>&6
3476 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3477 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3479 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3480 echo "configure: warning: programs compiled here do run here..." 1>&2
3481 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3483 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3484 echo "configure: warning: programs compiled here do not run here..." 1>&2
3485 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3488 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3489 echo "configure:3490: checking for AIX" >&5
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "yes" >/dev/null 2>&1; then
3501 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3502 #define _ALL_SOURCE 1
3507 echo "$ac_t""no" 1>&6
3512 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3513 echo "configure:3514: checking for POSIXized ISC" >&5
3514 if test -d /etc/conf/kconfig.d &&
3515 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3517 echo "$ac_t""yes" 1>&6
3518 ISC=yes # If later tests want to check for ISC.
3519 cat >> confdefs.h <<\EOF
3520 #define _POSIX_SOURCE 1
3523 if test "$GCC" = yes; then
3529 echo "$ac_t""no" 1>&6
3533 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3534 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3535 echo "configure:3536: checking for minix/config.h" >&5
3536 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <minix/config.h>
3544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3545 { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3547 if test -z "$ac_err"; then
3549 eval "ac_cv_header_$ac_safe=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 eval "ac_cv_header_$ac_safe=no"
3559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3563 echo "$ac_t""no" 1>&6
3567 if test "$MINIX" = yes; then
3568 cat >> confdefs.h <<\EOF
3569 #define _POSIX_SOURCE 1
3572 cat >> confdefs.h <<\EOF
3573 #define _POSIX_1_SOURCE 2
3576 cat >> confdefs.h <<\EOF
3583 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3584 echo "configure:3585: checking for Cygwin environment" >&5
3585 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3595 #define __CYGWIN__ __CYGWIN32__
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3612 echo "$ac_t""$ac_cv_cygwin" 1>&6
3614 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3615 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3616 echo "configure:3617: checking for mingw32 environment" >&5
3617 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3640 echo "$ac_t""$ac_cv_mingw32" 1>&6
3642 test "$ac_cv_mingw32" = yes && MINGW32=yes
3643 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3644 echo "configure:3645: checking for EMX OS/2 environment" >&5
3645 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3668 echo "$ac_t""$ac_cv_emxos2" 1>&6
3670 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3674 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3675 echo "configure:3676: checking for executable suffix" >&5
3676 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3683 echo 'int main () { return 0; }' > conftest.$ac_ext
3685 if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3686 for file in conftest.*; do
3688 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3689 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3693 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3696 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3701 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3702 echo "$ac_t""${ac_cv_exeext}" 1>&6
3705 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3706 echo "configure:3707: checking for object suffix" >&5
3707 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3711 echo 'int i = 1;' > conftest.$ac_ext
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 for ac_file in conftest.*; do
3716 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3720 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3725 echo "$ac_t""$ac_cv_objext" 1>&6
3726 OBJEXT=$ac_cv_objext
3727 ac_objext=$ac_cv_objext
3730 cat >> confdefs.h <<EOF
3731 #define EXEEXT "${EXEEXT}"
3735 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3736 echo "configure:3737: checking for be_app in -lbe" >&5
3737 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 ac_save_LIBS="$LIBS"
3742 LIBS="-lbe -lroot -lnet $LIBS"
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 eval "ac_cv_lib_$ac_lib_var=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_lib_$ac_lib_var=no"
3765 LIBS="$ac_save_LIBS"
3768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 LIBS="$LIBS -lbe -lroot -lnet"
3772 echo "$ac_t""no" 1>&6
3780 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3781 echo "configure:3782: checking for ${CC-cc} option to accept ANSI C" >&5
3782 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 am_cv_prog_cc_stdc=no
3787 # Don't try gcc -ansi; that turns off useful extensions and
3788 # breaks some systems' header files.
3789 # AIX -qlanglvl=ansi
3790 # Ultrix and OSF/1 -std1
3791 # HP-UX 10.20 and later -Ae
3792 # HP-UX older versions -Aa -D_HPUX_SOURCE
3793 # SVR4 -Xc -D__EXTENSIONS__
3794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 CC="$ac_save_CC $ac_arg"
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3802 #include <sys/types.h>
3803 #include <sys/stat.h>
3804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3805 struct buf { int x; };
3806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3807 static char *e (p, i)
3813 static char *f (char * (*g) (char **, int), char **p, ...)
3818 s = g (p, va_arg (v,int));
3822 int test (int i, double x);
3823 struct s1 {int (*f) (int a);};
3824 struct s2 {int (*f) (double a);};
3825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 am_cv_prog_cc_stdc="$ac_arg"; break
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3848 if test -z "$am_cv_prog_cc_stdc"; then
3849 echo "$ac_t""none needed" 1>&6
3851 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3853 case "x$am_cv_prog_cc_stdc" in
3855 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3858 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3859 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3862 # test for make depend flag
3865 if test -z "${MKDEP}"; then
3867 if test -z "${MKDEP_FLAGS}"; then
3868 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3869 echo "configure:3870: checking for ${OL_MKDEP} depend flag" >&5
3870 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3875 for flag in "-M" "-xM"; do
3876 cat > conftest.c <<EOF
3879 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3880 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3882 if test ! -f conftest."${ac_object}" ; then
3884 OL_MKDEP_FLAGS="$flag"
3893 echo "$ac_t""$ol_cv_mkdep" 1>&6
3896 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3901 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3906 if test "${ol_cv_mkdep}" = no ; then
3907 # this will soon become an error
3908 echo "configure: warning: do not know how to generate dependencies" 1>&2
3911 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3912 echo "configure:3913: checking for afopen in -ls" >&5
3913 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 ac_save_LIBS="$LIBS"
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3933 eval "ac_cv_lib_$ac_lib_var=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_lib_$ac_lib_var=no"
3941 LIBS="$ac_save_LIBS"
3944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3948 cat >> confdefs.h <<\EOF
3949 #define HAVE_AIX_SECURITY 1
3954 echo "$ac_t""no" 1>&6
3959 for ac_func in getaddrinfo
3961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_func" >&5
3963 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char $ac_func(); below. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3980 /* The GNU C library defines this for functions which it implements
3981 to always fail with ENOSYS. Some functions are actually named
3982 something starting with __ and the normal name is an alias. */
3983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 eval "ac_cv_func_$ac_func=yes"
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 eval "ac_cv_func_$ac_func=no"
4003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4006 cat >> confdefs.h <<EOF
4007 #define $ac_tr_func 1
4011 echo "$ac_t""no" 1>&6
4016 if test $ac_cv_func_getaddrinfo = no ; then
4017 if test $ol_enable_ipv6 = yes ; then
4018 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4023 if test $ol_enable_local != no ; then
4024 for ac_hdr in sys/un.h
4026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_hdr" >&5
4029 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4038 { (eval echo configure:4039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4040 if test -z "$ac_err"; then
4042 eval "ac_cv_header_$ac_safe=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 eval "ac_cv_header_$ac_safe=no"
4052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4055 cat >> confdefs.h <<EOF
4056 #define $ac_tr_hdr 1
4060 echo "$ac_t""no" 1>&6
4065 if test $ol_enable_local = auto ; then
4066 ol_enable_local=$ac_cv_header_sys_un_h
4067 elif test $ac_cv_header_sys_un_h = no ; then
4068 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4073 if test $ol_enable_modules != no ; then
4074 for ac_hdr in ltdl.h
4076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_hdr" >&5
4079 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4088 { (eval echo configure:4089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4090 if test -z "$ac_err"; then
4092 eval "ac_cv_header_$ac_safe=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_header_$ac_safe=no"
4102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_hdr 1
4110 echo "$ac_t""no" 1>&6
4115 if test $ac_cv_header_ltdl_h = no ; then
4116 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4119 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4120 echo "configure:4121: checking for lt_dlinit in -lltdl" >&5
4121 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4122 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4125 ac_save_LIBS="$LIBS"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4141 eval "ac_cv_lib_$ac_lib_var=yes"
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_lib_$ac_lib_var=no"
4149 LIBS="$ac_save_LIBS"
4152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_LIBLTDL 1
4162 echo "$ac_t""no" 1>&6
4166 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4167 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4171 ol_with_dnssrv_module=static
4172 ol_with_ldap_module=static
4173 ol_with_ldbm_module=static
4174 ol_with_passwd_module=static
4175 ol_with_shell_module=static
4176 ol_with_sql_module=static
4180 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4181 echo "configure:4182: checking for EBCDIC" >&5
4182 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4191 #include <__ASCII__/generate_error.h>
4195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4196 { (eval echo configure:4197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4198 if test -z "$ac_err"; then
4200 ol_cv_cpp_ebcdic=yes
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4211 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4212 if test $ol_cv_cpp_ebcdic = yes ; then
4213 cat >> confdefs.h <<\EOF
4214 #define HAVE_EBCDIC 1
4219 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4220 echo "configure:4221: checking for ANSI C header files" >&5
4221 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4233 { (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4235 if test -z "$ac_err"; then
4237 ol_cv_header_stdc=yes
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 ol_cv_header_stdc=no
4247 if test $ol_cv_header_stdc = yes; then
4248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 egrep "memchr" >/dev/null 2>&1; then
4259 ol_cv_header_stdc=no
4265 if test $ol_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 egrep "free" >/dev/null 2>&1; then
4277 ol_cv_header_stdc=no
4283 if test $ol_cv_header_stdc = yes; then
4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4285 if test "$cross_compiling" = yes; then
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4296 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4302 int main () { int i; for (i = 0; i < 256; i++)
4303 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 ol_cv_header_stdc=no
4322 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4323 if test $ol_cv_header_stdc = yes; then
4324 cat >> confdefs.h <<\EOF
4325 #define STDC_HEADERS 1
4329 ac_cv_header_stdc=disable
4332 if test $ol_cv_header_stdc != yes; then
4333 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4337 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4340 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_hdr that defines DIR" >&5
4342 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <sys/types.h>
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 eval "ac_cv_header_dirent_$ac_safe=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.$ac_ext >&5
4361 eval "ac_cv_header_dirent_$ac_safe=no"
4365 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4368 cat >> confdefs.h <<EOF
4369 #define $ac_tr_hdr 1
4371 ac_header_dirent=$ac_hdr; break
4373 echo "$ac_t""no" 1>&6
4376 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4377 if test $ac_header_dirent = dirent.h; then
4378 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4379 echo "configure:4380: checking for opendir in -ldir" >&5
4380 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4381 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4415 echo "$ac_t""no" 1>&6
4419 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4420 echo "configure:4421: checking for opendir in -lx" >&5
4421 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 ac_save_LIBS="$LIBS"
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_lib_$ac_lib_var=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_lib_$ac_lib_var=no"
4449 LIBS="$ac_save_LIBS"
4452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4456 echo "$ac_t""no" 1>&6
4461 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4462 echo "configure:4463: checking for sys/wait.h that is POSIX.1 compatible" >&5
4463 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 #include <sys/types.h>
4470 #include <sys/wait.h>
4472 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4475 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4480 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4483 if { (eval echo configure:4484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4485 ac_cv_header_sys_wait_h=yes
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 ac_cv_header_sys_wait_h=no
4495 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4496 if test $ac_cv_header_sys_wait_h = yes; then
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_SYS_WAIT_H 1
4503 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4504 echo "configure:4505: checking POSIX termios" >&5
4505 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 #include <sys/types.h>
4513 #include <termios.h>
4515 /* SunOS 4.0.3 has termios.h but not the library calls. */
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 am_cv_sys_posix_termios=yes
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 am_cv_sys_posix_termios=no
4531 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4534 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4535 echo "configure:4536: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4536 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4541 gwinsz_in_termios_h=no
4542 if test $am_cv_sys_posix_termios = yes; then
4543 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4546 #include <sys/types.h>
4547 # include <termios.h>
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 egrep "yes" >/dev/null 2>&1; then
4556 gwinsz_in_termios_h=yes
4562 if test $gwinsz_in_termios_h = no; then
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <sys/types.h>
4567 # include <sys/ioctl.h>
4573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 egrep "yes" >/dev/null 2>&1; then
4576 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4584 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4585 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4586 cat >> confdefs.h <<\EOF
4587 #define GWINSZ_IN_SYS_IOCTL 1
4592 if test $am_cv_sys_posix_termios = yes ; then
4593 cat >> confdefs.h <<\EOF
4594 #define HAVE_POSIX_TERMIOS 1
4645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_hdr" >&5
4648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4657 { (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4659 if test -z "$ac_err"; then
4661 eval "ac_cv_header_$ac_safe=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_header_$ac_safe=no"
4671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4674 cat >> confdefs.h <<EOF
4675 #define $ac_tr_hdr 1
4679 echo "$ac_t""no" 1>&6
4686 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4687 echo "configure:4688: checking for sigset in -lV3" >&5
4688 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 ac_save_LIBS="$LIBS"
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 eval "ac_cv_lib_$ac_lib_var=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_lib_$ac_lib_var=no"
4716 LIBS="$ac_save_LIBS"
4719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6
4721 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4723 cat >> confdefs.h <<EOF
4724 #define $ac_tr_lib 1
4730 echo "$ac_t""no" 1>&6
4734 if test $ac_cv_header_winsock_h = yes; then
4735 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4736 echo "configure:4737: checking for winsock" >&5
4737 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 #include <winsock.h>
4747 select(0,NULL,NULL,NULL,NULL);
4749 gethostname(NULL,0);
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4757 echo "configure: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4765 echo "$ac_t""$ol_cv_winsock" 1>&6
4767 if test $ol_cv_winsock = yes ; then
4768 cat >> confdefs.h <<\EOF
4769 #define HAVE_WINSOCK 1
4772 ac_cv_func_socket=yes
4773 ac_cv_func_select=yes
4774 ac_cv_func_closesocket=yes
4775 ac_cv_func_gethostname=yes
4780 echo $ac_n "checking for socket""... $ac_c" 1>&6
4781 echo "configure:4782: checking for socket" >&5
4782 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4788 /* System header to define __stub macros and hopefully few prototypes,
4789 which can conflict with char socket(); below. */
4791 /* Override any gcc2 internal prototype to avoid an error. */
4792 /* We use char because int might match the return type of a gcc2
4793 builtin and then its argument prototype would still apply. */
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_socket) || defined (__stub___socket)
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 eval "ac_cv_func_socket=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_func_socket=no"
4822 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4826 echo "$ac_t""no" 1>&6
4828 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4829 echo "configure:4830: checking for main in -lsocket" >&5
4830 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 ac_save_LIBS="$LIBS"
4835 LIBS="-lsocket $LIBS"
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_lib_$ac_lib_var=no"
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4860 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_lib 1
4865 LIBS="-lsocket $LIBS"
4868 echo "$ac_t""no" 1>&6
4871 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4872 echo "configure:4873: checking for main in -lnet" >&5
4873 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 ac_save_LIBS="$LIBS"
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 eval "ac_cv_lib_$ac_lib_var=yes"
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4894 eval "ac_cv_lib_$ac_lib_var=no"
4897 LIBS="$ac_save_LIBS"
4900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4903 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4904 cat >> confdefs.h <<EOF
4905 #define $ac_tr_lib 1
4911 echo "$ac_t""no" 1>&6
4914 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4915 echo "configure:4916: checking for main in -lnsl_s" >&5
4916 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4917 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 ac_save_LIBS="$LIBS"
4921 LIBS="-lnsl_s $LIBS"
4922 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932 eval "ac_cv_lib_$ac_lib_var=yes"
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 eval "ac_cv_lib_$ac_lib_var=no"
4940 LIBS="$ac_save_LIBS"
4943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4944 echo "$ac_t""yes" 1>&6
4945 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4946 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4947 cat >> confdefs.h <<EOF
4948 #define $ac_tr_lib 1
4951 LIBS="-lnsl_s $LIBS"
4954 echo "$ac_t""no" 1>&6
4957 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4958 echo "configure:4959: checking for main in -lnsl" >&5
4959 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 ac_save_LIBS="$LIBS"
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_lib_$ac_lib_var=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_lib_$ac_lib_var=no"
4983 LIBS="$ac_save_LIBS"
4986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4988 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_lib 1
4997 echo "$ac_t""no" 1>&6
5000 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5001 echo "configure:5002: checking for socket in -linet" >&5
5002 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5003 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 ac_save_LIBS="$LIBS"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5044 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5048 echo "configure:5049: checking for main in -lgen" >&5
5049 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS="$LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_lib 1
5087 echo "$ac_t""no" 1>&6
5094 echo $ac_n "checking for select""... $ac_c" 1>&6
5095 echo "configure:5096: checking for select" >&5
5096 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char select(); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_select) || defined (__stub___select)
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 eval "ac_cv_func_select=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_func_select=no"
5136 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5140 echo "$ac_t""no" 1>&6
5141 { echo "configure: error: select() required." 1>&2; exit 1; }
5145 if test "${ac_cv_header_winsock_h}" != yes; then
5146 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5147 echo "configure:5148: checking types of arguments for select()" >&5
5148 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5158 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5159 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 #ifdef HAVE_SYS_TYPES_H
5164 #include <sys/types.h>
5166 #ifdef HAVE_SYS_TIME_H
5167 #include <sys/time.h>
5169 #ifdef HAVE_SYS_SELECT_H
5170 #include <sys/select.h>
5172 #ifdef HAVE_SYS_SOCKET_H
5173 #include <sys/socket.h>
5175 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);
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 ac_not_found=no ; break 3
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5199 if test "$ac_not_found" = yes; then
5200 ac_cv_func_select_arg1=int
5201 ac_cv_func_select_arg234='int *'
5202 ac_cv_func_select_arg5='struct timeval *'
5204 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5205 cat >> confdefs.h <<EOF
5206 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5209 cat >> confdefs.h <<EOF
5210 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5213 cat >> confdefs.h <<EOF
5214 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5221 for ac_hdr in regex.h
5223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_hdr" >&5
5226 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5235 { (eval echo configure:5236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5237 if test -z "$ac_err"; then
5239 eval "ac_cv_header_$ac_safe=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 eval "ac_cv_header_$ac_safe=no"
5249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5252 cat >> confdefs.h <<EOF
5253 #define $ac_tr_hdr 1
5257 echo "$ac_t""no" 1>&6
5261 if test "$ac_cv_header_regex_h" != yes ; then
5262 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5264 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5265 echo "configure:5266: checking for regfree" >&5
5266 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* System header to define __stub macros and hopefully few prototypes,
5273 which can conflict with char regfree(); below. */
5275 /* Override any gcc2 internal prototype to avoid an error. */
5276 /* We use char because int might match the return type of a gcc2
5277 builtin and then its argument prototype would still apply. */
5283 /* The GNU C library defines this for functions which it implements
5284 to always fail with ENOSYS. Some functions are actually named
5285 something starting with __ and the normal name is an alias. */
5286 #if defined (__stub_regfree) || defined (__stub___regfree)
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 eval "ac_cv_func_regfree=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_func_regfree=no"
5306 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5310 echo "$ac_t""no" 1>&6
5311 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5316 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5317 echo "configure:5318: checking for compatible POSIX regex" >&5
5318 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5322 if test "$cross_compiling" = yes; then
5323 ol_cv_c_posix_regex=cross
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5329 #include <sys/types.h>
5331 static char *pattern, *string;
5339 if(regcomp(&re, pattern, 0)) {
5343 string = "ALL MATCH";
5345 rc = regexec(&re, string, 0, (void*)0, 0);
5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5354 ol_cv_c_posix_regex=yes
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5359 ol_cv_c_posix_regex=no
5366 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5368 if test "$ol_cv_c_posix_regex" = no ; then
5369 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5373 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5374 echo "configure:5375: checking for res_query" >&5
5375 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 /* System header to define __stub macros and hopefully few prototypes,
5382 which can conflict with char res_query(); below. */
5384 /* Override any gcc2 internal prototype to avoid an error. */
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_res_query) || defined (__stub___res_query)
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 eval "ac_cv_func_res_query=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 eval "ac_cv_func_res_query=no"
5415 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5419 echo "$ac_t""no" 1>&6
5422 if test $ac_cv_func_res_query = no ; then
5423 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5424 echo "configure:5425: checking for res_query in -lbind" >&5
5425 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 ac_save_LIBS="$LIBS"
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_lib_$ac_lib_var=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_lib_$ac_lib_var=no"
5453 LIBS="$ac_save_LIBS"
5456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5458 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_lib 1
5467 echo "$ac_t""no" 1>&6
5470 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5473 if test $ac_cv_func_res_query = no ; then
5474 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5475 echo "configure:5476: checking for __res_query in -lbind" >&5
5476 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5477 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 ac_save_LIBS="$LIBS"
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 eval "ac_cv_lib_$ac_lib_var=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 eval "ac_cv_lib_$ac_lib_var=no"
5504 LIBS="$ac_save_LIBS"
5507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5511 cat >> confdefs.h <<EOF
5512 #define $ac_tr_lib 1
5518 echo "$ac_t""no" 1>&6
5521 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5524 if test $ac_cv_func_res_query = no ; then
5525 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5526 echo "configure:5527: checking for res_query in -lresolv" >&5
5527 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5528 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 ac_save_LIBS="$LIBS"
5532 LIBS="-lresolv $LIBS"
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5547 eval "ac_cv_lib_$ac_lib_var=yes"
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5552 eval "ac_cv_lib_$ac_lib_var=no"
5555 LIBS="$ac_save_LIBS"
5558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5560 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5561 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5562 cat >> confdefs.h <<EOF
5563 #define $ac_tr_lib 1
5566 LIBS="-lresolv $LIBS"
5569 echo "$ac_t""no" 1>&6
5572 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5575 if test "$ac_cv_func_res_query" = yes ; then
5576 cat >> confdefs.h <<\EOF
5577 #define HAVE_RES_QUERY 1
5581 if test $ol_enable_dnssrv != no ; then
5586 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5587 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5595 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5596 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5598 for ac_hdr in krb5.h
5600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5602 echo "configure:5603: checking for $ac_hdr" >&5
5603 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5612 { (eval echo configure:5613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5614 if test -z "$ac_err"; then
5616 eval "ac_cv_header_$ac_safe=yes"
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 eval "ac_cv_header_$ac_safe=no"
5626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5629 cat >> confdefs.h <<EOF
5630 #define $ac_tr_hdr 1
5634 echo "$ac_t""no" 1>&6
5639 if test $ac_cv_header_krb5_h = yes ; then
5640 for ac_hdr in heim_err.h
5642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_hdr" >&5
5645 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5654 { (eval echo configure:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5656 if test -z "$ac_err"; then
5658 eval "ac_cv_header_$ac_safe=yes"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 eval "ac_cv_header_$ac_safe=no"
5668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5671 cat >> confdefs.h <<EOF
5672 #define $ac_tr_hdr 1
5676 echo "$ac_t""no" 1>&6
5680 if test $ac_cv_header_heim_err_h = yes ; then
5686 if test $krb5_impl = mit; then
5687 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5688 echo "configure:5689: checking for main in -lkrb5" >&5
5689 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5690 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 ac_save_LIBS="$LIBS"
5694 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_lib_$ac_lib_var=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_lib_$ac_lib_var=no"
5713 LIBS="$ac_save_LIBS"
5716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5719 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5721 echo "$ac_t""no" 1>&6
5726 elif test $krb5_impl = heimdal; then
5727 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5728 echo "configure:5729: checking for main in -lkrb5" >&5
5729 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5730 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 ac_save_LIBS="$LIBS"
5734 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5743 if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 eval "ac_cv_lib_$ac_lib_var=yes"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 eval "ac_cv_lib_$ac_lib_var=no"
5753 LIBS="$ac_save_LIBS"
5756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5757 echo "$ac_t""yes" 1>&6
5759 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5761 echo "$ac_t""no" 1>&6
5766 cat >> confdefs.h <<\EOF
5767 #define HAVE_HEIMDAL_KERBEROS 1
5772 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5775 if test $have_krb5 = yes ; then
5778 cat >> confdefs.h <<\EOF
5783 if test $ol_enable_kpasswd != no ; then
5784 ol_link_kpasswd=yes;
5787 if test $ol_with_kerberos = k5only ; then
5788 ol_with_kerberos=found
5791 elif test $ol_with_kerberos != auto ; then
5792 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5798 if test $ol_link_krb5 = yes -a \
5799 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5801 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_hdr" >&5
5806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5819 eval "ac_cv_header_$ac_safe=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_header_$ac_safe=no"
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_hdr 1
5837 echo "$ac_t""no" 1>&6
5842 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5843 if test $krb5_impl = mit; then
5844 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5845 echo "configure:5846: checking for main in -lkrb4" >&5
5846 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5850 ac_save_LIBS="$LIBS"
5851 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 eval "ac_cv_lib_$ac_lib_var=yes"
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5867 eval "ac_cv_lib_$ac_lib_var=no"
5870 LIBS="$ac_save_LIBS"
5873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5876 KRB4_LIBS="-lkrb4 -ldes425"
5878 echo "$ac_t""no" 1>&6
5883 elif test $krb5_impl = heimdal; then
5884 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5885 echo "configure:5886: checking for main in -lkrb4" >&5
5886 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 ac_save_LIBS="$LIBS"
5891 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 eval "ac_cv_lib_$ac_lib_var=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 eval "ac_cv_lib_$ac_lib_var=no"
5910 LIBS="$ac_save_LIBS"
5913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5918 echo "$ac_t""no" 1>&6
5925 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5928 if test $have_k425 = yes ; then
5929 ol_with_kerberos=found
5932 cat >> confdefs.h <<\EOF
5933 #define HAVE_KRB425 1
5936 cat >> confdefs.h <<\EOF
5941 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5942 echo "configure:5943: checking for des_debug in Kerberos libraries" >&5
5943 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5948 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5953 #include <kerberosIV/krb.h>
5954 #include <kerberosIV/des.h>
5955 extern int des_debug;
5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5965 ol_cv_var_des_debug=yes
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5970 ol_cv_var_des_debug=no
5977 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5979 if test $ol_cv_var_des_debug = yes ; then
5980 cat >> confdefs.h <<\EOF
5981 #define HAVE_DES_DEBUG 1
5991 if test $ol_link_krb5 = yes ; then
5992 ol_with_kerberos=found
5995 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
5996 -o $ol_with_kerberos = kth ; then
5998 for ac_hdr in krb.h des.h krb-archaeology.h
6000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6002 echo "configure:6003: checking for $ac_hdr" >&5
6003 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6012 { (eval echo configure:6013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6014 if test -z "$ac_err"; then
6016 eval "ac_cv_header_$ac_safe=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_header_$ac_safe=no"
6026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6029 cat >> confdefs.h <<EOF
6030 #define $ac_tr_hdr 1
6034 echo "$ac_t""no" 1>&6
6039 if test $ac_cv_header_krb_h = yes ; then
6040 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6041 echo "configure:6042: checking for main in -lkrb" >&5
6042 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 ac_save_LIBS="$LIBS"
6047 LIBS="-lkrb -ldes $LIBS"
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 eval "ac_cv_lib_$ac_lib_var=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 eval "ac_cv_lib_$ac_lib_var=no"
6066 LIBS="$ac_save_LIBS"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6073 echo "$ac_t""no" 1>&6
6078 if test $have_k4 = yes ; then
6079 ol_with_kerberos=found
6082 cat >> confdefs.h <<\EOF
6087 KRB4_LIBS="-lkrb -ldes"
6089 if test $ac_cv_header_krb_archaeology_h = yes ; then
6090 cat >> confdefs.h <<\EOF
6091 #define HAVE_KTH_KERBEROS 1
6099 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6100 ol_link_kpasswd=yes;
6103 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6104 cat >> confdefs.h <<\EOF
6105 #define HAVE_KERBEROS 1
6109 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6110 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6114 if test $ol_with_tls != no ; then
6115 for ac_hdr in openssl/ssl.h ssl.h
6117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_hdr" >&5
6120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6129 { (eval echo configure:6130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6131 if test -z "$ac_err"; then
6133 eval "ac_cv_header_$ac_safe=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 eval "ac_cv_header_$ac_safe=no"
6143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6146 cat >> confdefs.h <<EOF
6147 #define $ac_tr_hdr 1
6151 echo "$ac_t""no" 1>&6
6156 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6157 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6158 echo "configure:6159: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6159 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6160 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 ac_save_LIBS="$LIBS"
6164 LIBS="-lssl -lcrypto $LIBS"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6171 char SSLeay_add_ssl_algorithms();
6174 SSLeay_add_ssl_algorithms()
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6179 eval "ac_cv_lib_$ac_lib_var=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 eval "ac_cv_lib_$ac_lib_var=no"
6187 LIBS="$ac_save_LIBS"
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6191 echo "$ac_t""yes" 1>&6
6195 echo "$ac_t""no" 1>&6
6200 if test $have_ssleay = no ; then
6201 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6202 echo "configure:6203: checking for SSL_library_init in -lssl" >&5
6203 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 ac_save_LIBS="$LIBS"
6208 LIBS="-lssl -lcrypto $LIBS"
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 /* Override any gcc2 internal prototype to avoid an error. */
6213 /* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6215 char SSL_library_init();
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 eval "ac_cv_lib_$ac_lib_var=yes"
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6228 eval "ac_cv_lib_$ac_lib_var=no"
6231 LIBS="$ac_save_LIBS"
6234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6239 echo "$ac_t""no" 1>&6
6245 if test $have_ssleay = no ; then
6246 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6247 echo "configure:6248: checking for ssl3_accept in -lssl" >&5
6248 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6249 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6252 ac_save_LIBS="$LIBS"
6253 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6266 if { (eval echo configure:6267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6268 eval "ac_cv_lib_$ac_lib_var=yes"
6270 echo "configure: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6273 eval "ac_cv_lib_$ac_lib_var=no"
6276 LIBS="$ac_save_LIBS"
6279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6284 echo "$ac_t""no" 1>&6
6290 if test $have_ssleay = yes ; then
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_SSLEAY 1
6299 if test $need_rsaref = yes; then
6300 cat >> confdefs.h <<\EOF
6301 #define HAVE_RSAREF 1
6305 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6307 TLS_LIBS="-lssl -lcrypto"
6313 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6316 if test $ol_link_tls = yes ; then
6317 cat >> confdefs.h <<\EOF
6322 elif test $ol_with_tls = auto ; then
6323 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6324 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6326 elif test $ol_with_tls != no ; then
6327 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6332 gethostbyname_r gethostbyaddr_r \
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func(); below. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6354 /* The GNU C library defines this for functions which it implements
6355 to always fail with ENOSYS. Some functions are actually named
6356 something starting with __ and the normal name is an alias. */
6357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365 if { (eval echo configure:6366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6367 eval "ac_cv_func_$ac_func=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_func_$ac_func=no"
6377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6378 echo "$ac_t""yes" 1>&6
6379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6380 cat >> confdefs.h <<EOF
6381 #define $ac_tr_func 1
6385 echo "$ac_t""no" 1>&6
6390 if test "$ac_cv_func_ctime_r" = no ; then
6391 ol_cv_func_ctime_r_nargs=0
6393 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6394 echo "configure:6395: checking number of arguments of ctime_r" >&5
6395 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6403 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6406 if { (eval echo configure:6407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6408 ol_cv_func_ctime_r_nargs3=yes
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6413 ol_cv_func_ctime_r_nargs3=no
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6422 time_t ti; char *buffer; ctime_r(&ti,buffer);
6425 if { (eval echo configure:6426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6427 ol_cv_func_ctime_r_nargs2=yes
6429 echo "configure: failed program was:" >&5
6430 cat conftest.$ac_ext >&5
6432 ol_cv_func_ctime_r_nargs2=no
6436 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6437 $ol_cv_func_ctime_r_nargs2 = no ; then
6439 ol_cv_func_ctime_r_nargs=3
6441 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6442 $ol_cv_func_ctime_r_nargs2 = yes ; then
6444 ol_cv_func_ctime_r_nargs=2
6447 ol_cv_func_ctime_r_nargs=0
6452 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6454 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6455 cat >> confdefs.h <<EOF
6456 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6463 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6464 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6465 echo "configure:6466: checking number of arguments of gethostbyname_r" >&5
6466 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6467 echo $ac_n "(cached) $ac_c" 1>&6
6469 cat > conftest.$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6472 #include <sys/types.h>
6473 #include <sys/socket.h>
6474 #include <netinet/in.h>
6476 #define BUFSIZE (sizeof(struct hostent)+10)
6478 struct hostent hent; char buffer[BUFSIZE];
6479 int bufsize=BUFSIZE;int h_errno;
6480 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6481 buffer, bufsize, &h_errno);
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6486 ol_cv_func_gethostbyname_r_nargs5=yes
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 ol_cv_func_gethostbyname_r_nargs5=no
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netinet/in.h>
6502 #define BUFSIZE (sizeof(struct hostent)+10)
6504 struct hostent hent;struct hostent *rhent;
6505 char buffer[BUFSIZE];
6506 int bufsize=BUFSIZE;int h_errno;
6507 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6511 if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6513 ol_cv_func_gethostbyname_r_nargs6=yes
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 ol_cv_func_gethostbyname_r_nargs6=no
6522 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6523 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6525 ol_cv_func_gethostbyname_r_nargs=5
6527 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6528 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6530 ol_cv_func_gethostbyname_r_nargs=6
6533 ol_cv_func_gethostbyname_r_nargs=0
6538 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6539 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6540 cat >> confdefs.h <<EOF
6541 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6547 ol_cv_func_gethostbyname_r_nargs=0
6550 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6551 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6552 echo "configure:6553: checking number of arguments of gethostbyaddr_r" >&5
6553 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <sys/types.h>
6560 #include <sys/socket.h>
6561 #include <netinet/in.h>
6563 #define BUFSIZE (sizeof(struct hostent)+10)
6565 struct hostent hent; char buffer[BUFSIZE];
6567 size_t alen=sizeof(struct in_addr);
6568 int bufsize=BUFSIZE;int h_errno;
6569 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6570 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6573 if { (eval echo configure:6574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6575 ol_cv_func_gethostbyaddr_r_nargs7=yes
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 ol_cv_func_gethostbyaddr_r_nargs7=no
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 #include <sys/types.h>
6588 #include <sys/socket.h>
6589 #include <netinet/in.h>
6591 #define BUFSIZE (sizeof(struct hostent)+10)
6593 struct hostent hent;
6594 struct hostent *rhent; char buffer[BUFSIZE];
6596 size_t alen=sizeof(struct in_addr);
6597 int bufsize=BUFSIZE;int h_errno;
6598 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6599 alen, AF_INET, &hent, buffer, bufsize,
6603 if { (eval echo configure:6604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6605 ol_cv_func_gethostbyaddr_r_nargs8=yes
6607 echo "configure: failed program was:" >&5
6608 cat conftest.$ac_ext >&5
6610 ol_cv_func_gethostbyaddr_r_nargs8=no
6614 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6615 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6617 ol_cv_func_gethostbyaddr_r_nargs=7
6619 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6620 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6622 ol_cv_func_gethostbyaddr_r_nargs=8
6625 ol_cv_func_gethostbyaddr_r_nargs=0
6630 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6631 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6632 cat >> confdefs.h <<EOF
6633 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6639 ol_cv_func_gethostbyaddr_r_nargs=0
6642 if test "$ac_cv_func_ctime_r" = yes \
6643 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6644 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6645 -a "$ac_cv_func_gethostbyname_r" = yes \
6646 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6647 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6648 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6649 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6650 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6653 cat >> confdefs.h <<\EOF
6654 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6661 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6662 -o $ol_with_threads = nt ; then
6665 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6666 echo "configure:6667: checking for NT Threads" >&5
6667 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6671 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6672 echo "configure:6673: checking for _beginthread" >&5
6673 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char _beginthread(); below. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char _beginthread();
6690 /* The GNU C library defines this for functions which it implements
6691 to always fail with ENOSYS. Some functions are actually named
6692 something starting with __ and the normal name is an alias. */
6693 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6701 if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 eval "ac_cv_func__beginthread=yes"
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6708 eval "ac_cv_func__beginthread=no"
6713 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6715 ol_cv_nt_threads=yes
6717 echo "$ac_t""no" 1>&6
6724 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6726 if test $ol_cv_nt_threads = yes ; then
6727 cat >> confdefs.h <<\EOF
6728 #define HAVE_NT_THREADS 1
6734 if test "$ol_cv_nt_threads" = yes ; then
6736 ol_with_threads=found
6737 ol_with_yielding_select=yes
6739 cat >> confdefs.h <<\EOF
6740 #define HAVE_NT_SERVICE_MANAGER 1
6743 cat >> confdefs.h <<\EOF
6744 #define HAVE_NT_EVENT_LOG 1
6749 if test $ol_with_threads = nt ; then
6750 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6754 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6755 -o $ol_with_threads = posix ; then
6757 for ac_hdr in pthread.h
6759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6761 echo "configure:6762: checking for $ac_hdr" >&5
6762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6771 { (eval echo configure:6772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6773 if test -z "$ac_err"; then
6775 eval "ac_cv_header_$ac_safe=yes"
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6781 eval "ac_cv_header_$ac_safe=no"
6785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6788 cat >> confdefs.h <<EOF
6789 #define $ac_tr_hdr 1
6793 echo "$ac_t""no" 1>&6
6798 if test $ac_cv_header_pthread_h = yes ; then
6799 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6800 echo "configure:6801: checking POSIX thread version" >&5
6801 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6809 # include <pthread.h>
6810 /* this check could be improved */
6811 # ifdef PTHREAD_ONCE_INIT
6812 pthread_version_final;
6816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6817 egrep "pthread_version_final" >/dev/null 2>&1; then
6819 ol_pthread_final=yes
6827 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6831 # include <pthread.h>
6832 /* this check could be improved */
6833 # ifdef pthread_once_init
6834 pthread_version_draft4;
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6841 ol_pthread_draft4=yes
6844 ol_pthread_draft4=no
6849 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6850 ol_cv_pthread_version=final
6851 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6852 ol_cv_pthread_version=draft4
6854 ol_cv_pthread_version=unknown
6859 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6862 if test $ol_cv_pthread_version = final ; then
6863 cat >> confdefs.h <<\EOF
6864 #define HAVE_PTHREADS_FINAL 1
6867 elif test $ol_cv_pthread_version = draft4 ; then
6868 cat >> confdefs.h <<\EOF
6869 #define HAVE_PTHREADS_D4 1
6873 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6876 # consider threads found
6877 ol_with_threads=found
6880 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6881 echo "configure:6882: checking for LinuxThreads pthread.h" >&5
6882 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include <pthread.h>
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6893 ol_cv_header_linux_threads=yes
6896 ol_cv_header_linux_threads=no
6903 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6904 if test $ol_cv_header_linux_threads = yes; then
6905 cat >> confdefs.h <<\EOF
6906 #define HAVE_LINUX_THREADS 1
6912 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6913 echo "configure:6914: checking for GNU Pth pthread.h" >&5
6914 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 #include <pthread.h>
6921 #ifdef _POSIX_THREAD_IS_GNU_PTH
6926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927 egrep "__gnu_pth__" >/dev/null 2>&1; then
6929 ol_cv_header_gnu_pth_pthread_h=yes
6932 ol_cv_header_gnu_pth_pthread_h=no
6939 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6942 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6943 for ac_hdr in sched.h
6945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6947 echo "configure:6948: checking for $ac_hdr" >&5
6948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6949 echo $ac_n "(cached) $ac_c" 1>&6
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6957 { (eval echo configure:6958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6959 if test -z "$ac_err"; then
6961 eval "ac_cv_header_$ac_safe=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 eval "ac_cv_header_$ac_safe=no"
6971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6974 cat >> confdefs.h <<EOF
6975 #define $ac_tr_hdr 1
6979 echo "$ac_t""no" 1>&6
6986 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6987 echo "configure:6988: checking for pthread_create in default libraries" >&5
6988 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6992 if test "$cross_compiling" = yes; then
6993 cat > conftest.$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6996 /* pthread test headers */
6997 #include <pthread.h>
6999 #define NULL (void*)0
7002 static void *task(p)
7005 return (void *) (p == NULL);
7010 /* pthread test function */
7013 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7014 /* This system (e.g. AIX) defaults detached; must override */
7015 pthread_attr_t attr;
7017 status = pthread_attr_init(&attr);
7018 if( status ) exit( status );
7020 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7021 if( status ) exit( status );
7025 #if HAVE_PTHREADS_D4
7026 #define ATTR pthread_attr_default
7031 /* make sure pthread_create() isn't just a stub */
7032 status = pthread_create(&t, ATTR, task, NULL);
7033 if( status ) exit( status );
7035 /* make sure pthread_detach() isn't just a stub */
7036 #if HAVE_PTHREADS_D4
7037 status = pthread_detach( &t );
7039 status = pthread_detach( t );
7042 #ifdef HAVE_LINUX_THREADS
7043 pthread_kill_other_threads_np();
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 ol_cv_pthread_create=yes
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 ol_cv_pthread_create=no
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 /* pthread test headers */
7065 #include <pthread.h>
7067 #define NULL (void*)0
7070 static void *task(p)
7073 return (void *) (p == NULL);
7077 int main(argc, argv)
7082 /* pthread test function */
7085 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7086 /* This system (e.g. AIX) defaults detached; must override */
7087 pthread_attr_t attr;
7089 status = pthread_attr_init(&attr);
7090 if( status ) exit( status );
7092 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7093 if( status ) exit( status );
7097 #if HAVE_PTHREADS_D4
7098 #define ATTR pthread_attr_default
7103 /* make sure pthread_create() isn't just a stub */
7104 status = pthread_create(&t, ATTR, task, NULL);
7105 if( status ) exit( status );
7107 /* make sure pthread_detach() isn't just a stub */
7108 #if HAVE_PTHREADS_D4
7109 status = pthread_detach( &t );
7111 status = pthread_detach( t );
7114 #ifdef HAVE_LINUX_THREADS
7115 pthread_kill_other_threads_np();
7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7125 ol_cv_pthread_create=yes
7127 echo "configure: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7130 ol_cv_pthread_create=no
7137 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7139 if test $ol_cv_pthread_create != no ; then
7140 ol_link_threads=posix
7144 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7145 if test "$ol_link_threads" = no ; then
7147 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7148 echo "configure:7149: checking for pthread link with -kthread" >&5
7149 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7155 LIBS="-kthread $LIBS"
7157 if test "$cross_compiling" = yes; then
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* pthread test headers */
7162 #include <pthread.h>
7164 #define NULL (void*)0
7167 static void *task(p)
7170 return (void *) (p == NULL);
7175 /* pthread test function */
7178 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7179 /* This system (e.g. AIX) defaults detached; must override */
7180 pthread_attr_t attr;
7182 status = pthread_attr_init(&attr);
7183 if( status ) exit( status );
7185 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7186 if( status ) exit( status );
7190 #if HAVE_PTHREADS_D4
7191 #define ATTR pthread_attr_default
7196 /* make sure pthread_create() isn't just a stub */
7197 status = pthread_create(&t, ATTR, task, NULL);
7198 if( status ) exit( status );
7200 /* make sure pthread_detach() isn't just a stub */
7201 #if HAVE_PTHREADS_D4
7202 status = pthread_detach( &t );
7204 status = pthread_detach( t );
7207 #ifdef HAVE_LINUX_THREADS
7208 pthread_kill_other_threads_np();
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7217 ol_cv_pthread_kthread=yes
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 ol_cv_pthread_kthread=no
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7229 /* pthread test headers */
7230 #include <pthread.h>
7232 #define NULL (void*)0
7235 static void *task(p)
7238 return (void *) (p == NULL);
7242 int main(argc, argv)
7247 /* pthread test function */
7250 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7251 /* This system (e.g. AIX) defaults detached; must override */
7252 pthread_attr_t attr;
7254 status = pthread_attr_init(&attr);
7255 if( status ) exit( status );
7257 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7258 if( status ) exit( status );
7262 #if HAVE_PTHREADS_D4
7263 #define ATTR pthread_attr_default
7268 /* make sure pthread_create() isn't just a stub */
7269 status = pthread_create(&t, ATTR, task, NULL);
7270 if( status ) exit( status );
7272 /* make sure pthread_detach() isn't just a stub */
7273 #if HAVE_PTHREADS_D4
7274 status = pthread_detach( &t );
7276 status = pthread_detach( t );
7279 #ifdef HAVE_LINUX_THREADS
7280 pthread_kill_other_threads_np();
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7290 ol_cv_pthread_kthread=yes
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 ol_cv_pthread_kthread=no
7306 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7308 if test $ol_cv_pthread_kthread = yes ; then
7309 ol_link_pthreads="-kthread"
7310 ol_link_threads=posix
7314 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7315 if test "$ol_link_threads" = no ; then
7317 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7318 echo "configure:7319: checking for pthread link with -pthread" >&5
7319 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7325 LIBS="-pthread $LIBS"
7327 if test "$cross_compiling" = yes; then
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 /* pthread test headers */
7332 #include <pthread.h>
7334 #define NULL (void*)0
7337 static void *task(p)
7340 return (void *) (p == NULL);
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();
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387 ol_cv_pthread_pthread=yes
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ol_cv_pthread_pthread=no
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* pthread test headers */
7400 #include <pthread.h>
7402 #define NULL (void*)0
7405 static void *task(p)
7408 return (void *) (p == NULL);
7412 int main(argc, argv)
7417 /* pthread test function */
7420 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7421 /* This system (e.g. AIX) defaults detached; must override */
7422 pthread_attr_t attr;
7424 status = pthread_attr_init(&attr);
7425 if( status ) exit( status );
7427 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7428 if( status ) exit( status );
7432 #if HAVE_PTHREADS_D4
7433 #define ATTR pthread_attr_default
7438 /* make sure pthread_create() isn't just a stub */
7439 status = pthread_create(&t, ATTR, task, NULL);
7440 if( status ) exit( status );
7442 /* make sure pthread_detach() isn't just a stub */
7443 #if HAVE_PTHREADS_D4
7444 status = pthread_detach( &t );
7446 status = pthread_detach( t );
7449 #ifdef HAVE_LINUX_THREADS
7450 pthread_kill_other_threads_np();
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7460 ol_cv_pthread_pthread=yes
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 ol_cv_pthread_pthread=no
7476 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7478 if test $ol_cv_pthread_pthread = yes ; then
7479 ol_link_pthreads="-pthread"
7480 ol_link_threads=posix
7484 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7485 if test "$ol_link_threads" = no ; then
7487 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7488 echo "configure:7489: checking for pthread link with -pthreads" >&5
7489 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7495 LIBS="-pthreads $LIBS"
7497 if test "$cross_compiling" = yes; then
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 /* pthread test headers */
7502 #include <pthread.h>
7504 #define NULL (void*)0
7507 static void *task(p)
7510 return (void *) (p == NULL);
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();
7555 if { (eval echo configure:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7557 ol_cv_pthread_pthreads=yes
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7562 ol_cv_pthread_pthreads=no
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* pthread test headers */
7570 #include <pthread.h>
7572 #define NULL (void*)0
7575 static void *task(p)
7578 return (void *) (p == NULL);
7582 int main(argc, argv)
7587 /* pthread test function */
7590 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7591 /* This system (e.g. AIX) defaults detached; must override */
7592 pthread_attr_t attr;
7594 status = pthread_attr_init(&attr);
7595 if( status ) exit( status );
7597 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7598 if( status ) exit( status );
7602 #if HAVE_PTHREADS_D4
7603 #define ATTR pthread_attr_default
7608 /* make sure pthread_create() isn't just a stub */
7609 status = pthread_create(&t, ATTR, task, NULL);
7610 if( status ) exit( status );
7612 /* make sure pthread_detach() isn't just a stub */
7613 #if HAVE_PTHREADS_D4
7614 status = pthread_detach( &t );
7616 status = pthread_detach( t );
7619 #ifdef HAVE_LINUX_THREADS
7620 pthread_kill_other_threads_np();
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7630 ol_cv_pthread_pthreads=yes
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 ol_cv_pthread_pthreads=no
7646 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7648 if test $ol_cv_pthread_pthreads = yes ; then
7649 ol_link_pthreads="-pthreads"
7650 ol_link_threads=posix
7654 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7655 if test "$ol_link_threads" = no ; then
7657 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7658 echo "configure:7659: checking for pthread link with -mthreads" >&5
7659 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7660 echo $ac_n "(cached) $ac_c" 1>&6
7665 LIBS="-mthreads $LIBS"
7667 if test "$cross_compiling" = yes; then
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* pthread test headers */
7672 #include <pthread.h>
7674 #define NULL (void*)0
7677 static void *task(p)
7680 return (void *) (p == NULL);
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();
7725 if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7727 ol_cv_pthread_mthreads=yes
7729 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 ol_cv_pthread_mthreads=no
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 /* pthread test headers */
7740 #include <pthread.h>
7742 #define NULL (void*)0
7745 static void *task(p)
7748 return (void *) (p == NULL);
7752 int main(argc, argv)
7757 /* pthread test function */
7760 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7761 /* This system (e.g. AIX) defaults detached; must override */
7762 pthread_attr_t attr;
7764 status = pthread_attr_init(&attr);
7765 if( status ) exit( status );
7767 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7768 if( status ) exit( status );
7772 #if HAVE_PTHREADS_D4
7773 #define ATTR pthread_attr_default
7778 /* make sure pthread_create() isn't just a stub */
7779 status = pthread_create(&t, ATTR, task, NULL);
7780 if( status ) exit( status );
7782 /* make sure pthread_detach() isn't just a stub */
7783 #if HAVE_PTHREADS_D4
7784 status = pthread_detach( &t );
7786 status = pthread_detach( t );
7789 #ifdef HAVE_LINUX_THREADS
7790 pthread_kill_other_threads_np();
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7800 ol_cv_pthread_mthreads=yes
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 ol_cv_pthread_mthreads=no
7816 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7818 if test $ol_cv_pthread_mthreads = yes ; then
7819 ol_link_pthreads="-mthreads"
7820 ol_link_threads=posix
7824 # Pthread try link: -thread (ol_cv_pthread_thread)
7825 if test "$ol_link_threads" = no ; then
7827 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7828 echo "configure:7829: checking for pthread link with -thread" >&5
7829 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7835 LIBS="-thread $LIBS"
7837 if test "$cross_compiling" = yes; then
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* pthread test headers */
7842 #include <pthread.h>
7844 #define NULL (void*)0
7847 static void *task(p)
7850 return (void *) (p == NULL);
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();
7895 if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7897 ol_cv_pthread_thread=yes
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7902 ol_cv_pthread_thread=no
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* pthread test headers */
7910 #include <pthread.h>
7912 #define NULL (void*)0
7915 static void *task(p)
7918 return (void *) (p == NULL);
7922 int main(argc, argv)
7927 /* pthread test function */
7930 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7931 /* This system (e.g. AIX) defaults detached; must override */
7932 pthread_attr_t attr;
7934 status = pthread_attr_init(&attr);
7935 if( status ) exit( status );
7937 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7938 if( status ) exit( status );
7942 #if HAVE_PTHREADS_D4
7943 #define ATTR pthread_attr_default
7948 /* make sure pthread_create() isn't just a stub */
7949 status = pthread_create(&t, ATTR, task, NULL);
7950 if( status ) exit( status );
7952 /* make sure pthread_detach() isn't just a stub */
7953 #if HAVE_PTHREADS_D4
7954 status = pthread_detach( &t );
7956 status = pthread_detach( t );
7959 #ifdef HAVE_LINUX_THREADS
7960 pthread_kill_other_threads_np();
7968 if { (eval echo configure:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7970 ol_cv_pthread_thread=yes
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 ol_cv_pthread_thread=no
7986 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7988 if test $ol_cv_pthread_thread = yes ; then
7989 ol_link_pthreads="-thread"
7990 ol_link_threads=posix
7995 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7996 if test "$ol_link_threads" = no ; then
7997 # try -lpthread -lmach -lexc -lc_r
7998 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7999 echo "configure:8000: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8000 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8006 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8008 if test "$cross_compiling" = yes; then
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8012 /* pthread test headers */
8013 #include <pthread.h>
8015 #define NULL (void*)0
8018 static void *task(p)
8021 return (void *) (p == NULL);
8026 /* pthread test function */
8029 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8030 /* This system (e.g. AIX) defaults detached; must override */
8031 pthread_attr_t attr;
8033 status = pthread_attr_init(&attr);
8034 if( status ) exit( status );
8036 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8037 if( status ) exit( status );
8041 #if HAVE_PTHREADS_D4
8042 #define ATTR pthread_attr_default
8047 /* make sure pthread_create() isn't just a stub */
8048 status = pthread_create(&t, ATTR, task, NULL);
8049 if( status ) exit( status );
8051 /* make sure pthread_detach() isn't just a stub */
8052 #if HAVE_PTHREADS_D4
8053 status = pthread_detach( &t );
8055 status = pthread_detach( t );
8058 #ifdef HAVE_LINUX_THREADS
8059 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}; then
8068 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 /* pthread test headers */
8081 #include <pthread.h>
8083 #define NULL (void*)0
8086 static void *task(p)
8089 return (void *) (p == NULL);
8093 int main(argc, argv)
8098 /* pthread test function */
8101 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8102 /* This system (e.g. AIX) defaults detached; must override */
8103 pthread_attr_t attr;
8105 status = pthread_attr_init(&attr);
8106 if( status ) exit( status );
8108 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8109 if( status ) exit( status );
8113 #if HAVE_PTHREADS_D4
8114 #define ATTR pthread_attr_default
8119 /* make sure pthread_create() isn't just a stub */
8120 status = pthread_create(&t, ATTR, task, NULL);
8121 if( status ) exit( status );
8123 /* make sure pthread_detach() isn't just a stub */
8124 #if HAVE_PTHREADS_D4
8125 status = pthread_detach( &t );
8127 status = pthread_detach( t );
8130 #ifdef HAVE_LINUX_THREADS
8131 pthread_kill_other_threads_np();
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8141 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8157 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8159 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8160 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8161 ol_link_threads=posix
8165 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8166 if test "$ol_link_threads" = no ; then
8167 # try -lpthread -lmach -lexc
8168 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8169 echo "configure:8170: checking for pthread link with -lpthread -lmach -lexc" >&5
8170 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8176 LIBS="-lpthread -lmach -lexc $LIBS"
8178 if test "$cross_compiling" = yes; then
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* pthread test headers */
8183 #include <pthread.h>
8185 #define NULL (void*)0
8188 static void *task(p)
8191 return (void *) (p == NULL);
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();
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 ol_cv_pthread_lpthread_lmach_lexc=yes
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 ol_cv_pthread_lpthread_lmach_lexc=no
8247 cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8250 /* pthread test headers */
8251 #include <pthread.h>
8253 #define NULL (void*)0
8256 static void *task(p)
8259 return (void *) (p == NULL);
8263 int main(argc, argv)
8268 /* pthread test function */
8271 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8272 /* This system (e.g. AIX) defaults detached; must override */
8273 pthread_attr_t attr;
8275 status = pthread_attr_init(&attr);
8276 if( status ) exit( status );
8278 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8279 if( status ) exit( status );
8283 #if HAVE_PTHREADS_D4
8284 #define ATTR pthread_attr_default
8289 /* make sure pthread_create() isn't just a stub */
8290 status = pthread_create(&t, ATTR, task, NULL);
8291 if( status ) exit( status );
8293 /* make sure pthread_detach() isn't just a stub */
8294 #if HAVE_PTHREADS_D4
8295 status = pthread_detach( &t );
8297 status = pthread_detach( t );
8300 #ifdef HAVE_LINUX_THREADS
8301 pthread_kill_other_threads_np();
8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8311 ol_cv_pthread_lpthread_lmach_lexc=yes
8313 echo "configure: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8316 ol_cv_pthread_lpthread_lmach_lexc=no
8327 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8329 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8330 ol_link_pthreads="-lpthread -lmach -lexc"
8331 ol_link_threads=posix
8336 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8337 if test "$ol_link_threads" = no ; then
8338 # try -lpthread -Wl,-woff,85
8339 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8340 echo "configure:8341: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8341 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8342 echo $ac_n "(cached) $ac_c" 1>&6
8347 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8349 if test "$cross_compiling" = yes; then
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 /* pthread test headers */
8354 #include <pthread.h>
8356 #define NULL (void*)0
8359 static void *task(p)
8362 return (void *) (p == NULL);
8367 /* pthread test function */
8370 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8371 /* This system (e.g. AIX) defaults detached; must override */
8372 pthread_attr_t attr;
8374 status = pthread_attr_init(&attr);
8375 if( status ) exit( status );
8377 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8378 if( status ) exit( status );
8382 #if HAVE_PTHREADS_D4
8383 #define ATTR pthread_attr_default
8388 /* make sure pthread_create() isn't just a stub */
8389 status = pthread_create(&t, ATTR, task, NULL);
8390 if( status ) exit( status );
8392 /* make sure pthread_detach() isn't just a stub */
8393 #if HAVE_PTHREADS_D4
8394 status = pthread_detach( &t );
8396 status = pthread_detach( t );
8399 #ifdef HAVE_LINUX_THREADS
8400 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}; then
8409 ol_cv_pthread_lib_lpthread_woff=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 ol_cv_pthread_lib_lpthread_woff=no
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8421 /* pthread test headers */
8422 #include <pthread.h>
8424 #define NULL (void*)0
8427 static void *task(p)
8430 return (void *) (p == NULL);
8434 int main(argc, argv)
8439 /* pthread test function */
8442 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8443 /* This system (e.g. AIX) defaults detached; must override */
8444 pthread_attr_t attr;
8446 status = pthread_attr_init(&attr);
8447 if( status ) exit( status );
8449 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8450 if( status ) exit( status );
8454 #if HAVE_PTHREADS_D4
8455 #define ATTR pthread_attr_default
8460 /* make sure pthread_create() isn't just a stub */
8461 status = pthread_create(&t, ATTR, task, NULL);
8462 if( status ) exit( status );
8464 /* make sure pthread_detach() isn't just a stub */
8465 #if HAVE_PTHREADS_D4
8466 status = pthread_detach( &t );
8468 status = pthread_detach( t );
8471 #ifdef HAVE_LINUX_THREADS
8472 pthread_kill_other_threads_np();
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8482 ol_cv_pthread_lib_lpthread_woff=yes
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 ol_cv_pthread_lib_lpthread_woff=no
8498 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8500 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8501 ol_link_pthreads="-lpthread -Wl,-woff,85"
8502 ol_link_threads=posix
8507 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8508 if test "$ol_link_threads" = no ; then
8510 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8511 echo "configure:8512: checking for pthread link with -lpthread" >&5
8512 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8518 LIBS="-lpthread $LIBS"
8520 if test "$cross_compiling" = yes; then
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 /* pthread test headers */
8525 #include <pthread.h>
8527 #define NULL (void*)0
8530 static void *task(p)
8533 return (void *) (p == NULL);
8538 /* pthread test function */
8541 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8542 /* This system (e.g. AIX) defaults detached; must override */
8543 pthread_attr_t attr;
8545 status = pthread_attr_init(&attr);
8546 if( status ) exit( status );
8548 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8549 if( status ) exit( status );
8553 #if HAVE_PTHREADS_D4
8554 #define ATTR pthread_attr_default
8559 /* make sure pthread_create() isn't just a stub */
8560 status = pthread_create(&t, ATTR, task, NULL);
8561 if( status ) exit( status );
8563 /* make sure pthread_detach() isn't just a stub */
8564 #if HAVE_PTHREADS_D4
8565 status = pthread_detach( &t );
8567 status = pthread_detach( t );
8570 #ifdef HAVE_LINUX_THREADS
8571 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}; then
8580 ol_cv_pthread_lpthread=yes
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8585 ol_cv_pthread_lpthread=no
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* pthread test headers */
8593 #include <pthread.h>
8595 #define NULL (void*)0
8598 static void *task(p)
8601 return (void *) (p == NULL);
8605 int main(argc, argv)
8610 /* pthread test function */
8613 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8614 /* This system (e.g. AIX) defaults detached; must override */
8615 pthread_attr_t attr;
8617 status = pthread_attr_init(&attr);
8618 if( status ) exit( status );
8620 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8621 if( status ) exit( status );
8625 #if HAVE_PTHREADS_D4
8626 #define ATTR pthread_attr_default
8631 /* make sure pthread_create() isn't just a stub */
8632 status = pthread_create(&t, ATTR, task, NULL);
8633 if( status ) exit( status );
8635 /* make sure pthread_detach() isn't just a stub */
8636 #if HAVE_PTHREADS_D4
8637 status = pthread_detach( &t );
8639 status = pthread_detach( t );
8642 #ifdef HAVE_LINUX_THREADS
8643 pthread_kill_other_threads_np();
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8653 ol_cv_pthread_lpthread=yes
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 ol_cv_pthread_lpthread=no
8669 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8671 if test $ol_cv_pthread_lpthread = yes ; then
8672 ol_link_pthreads="-lpthread"
8673 ol_link_threads=posix
8677 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8678 if test "$ol_link_threads" = no ; then
8680 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8681 echo "configure:8682: checking for pthread link with -lc_r" >&5
8682 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8690 if test "$cross_compiling" = yes; then
8691 cat > conftest.$ac_ext <<EOF
8692 #line 8693 "configure"
8693 #include "confdefs.h"
8694 /* pthread test headers */
8695 #include <pthread.h>
8697 #define NULL (void*)0
8700 static void *task(p)
8703 return (void *) (p == NULL);
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();
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8750 ol_cv_pthread_lc_r=yes
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8755 ol_cv_pthread_lc_r=no
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 /* pthread test headers */
8763 #include <pthread.h>
8765 #define NULL (void*)0
8768 static void *task(p)
8771 return (void *) (p == NULL);
8775 int main(argc, argv)
8780 /* pthread test function */
8783 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8784 /* This system (e.g. AIX) defaults detached; must override */
8785 pthread_attr_t attr;
8787 status = pthread_attr_init(&attr);
8788 if( status ) exit( status );
8790 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8791 if( status ) exit( status );
8795 #if HAVE_PTHREADS_D4
8796 #define ATTR pthread_attr_default
8801 /* make sure pthread_create() isn't just a stub */
8802 status = pthread_create(&t, ATTR, task, NULL);
8803 if( status ) exit( status );
8805 /* make sure pthread_detach() isn't just a stub */
8806 #if HAVE_PTHREADS_D4
8807 status = pthread_detach( &t );
8809 status = pthread_detach( t );
8812 #ifdef HAVE_LINUX_THREADS
8813 pthread_kill_other_threads_np();
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8823 ol_cv_pthread_lc_r=yes
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8828 ol_cv_pthread_lc_r=no
8839 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8841 if test $ol_cv_pthread_lc_r = yes ; then
8842 ol_link_pthreads="-lc_r"
8843 ol_link_threads=posix
8848 # Pthread try link: -threads (ol_cv_pthread_threads)
8849 if test "$ol_link_threads" = no ; then
8851 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8852 echo "configure:8853: checking for pthread link with -threads" >&5
8853 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8859 LIBS="-threads $LIBS"
8861 if test "$cross_compiling" = yes; then
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* pthread test headers */
8866 #include <pthread.h>
8868 #define NULL (void*)0
8871 static void *task(p)
8874 return (void *) (p == NULL);
8879 /* pthread test function */
8882 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8883 /* This system (e.g. AIX) defaults detached; must override */
8884 pthread_attr_t attr;
8886 status = pthread_attr_init(&attr);
8887 if( status ) exit( status );
8889 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8890 if( status ) exit( status );
8894 #if HAVE_PTHREADS_D4
8895 #define ATTR pthread_attr_default
8900 /* make sure pthread_create() isn't just a stub */
8901 status = pthread_create(&t, ATTR, task, NULL);
8902 if( status ) exit( status );
8904 /* make sure pthread_detach() isn't just a stub */
8905 #if HAVE_PTHREADS_D4
8906 status = pthread_detach( &t );
8908 status = pthread_detach( t );
8911 #ifdef HAVE_LINUX_THREADS
8912 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}; then
8921 ol_cv_pthread_threads=yes
8923 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8926 ol_cv_pthread_threads=no
8930 cat > conftest.$ac_ext <<EOF
8931 #line 8932 "configure"
8932 #include "confdefs.h"
8933 /* pthread test headers */
8934 #include <pthread.h>
8936 #define NULL (void*)0
8939 static void *task(p)
8942 return (void *) (p == NULL);
8946 int main(argc, argv)
8951 /* pthread test function */
8954 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8955 /* This system (e.g. AIX) defaults detached; must override */
8956 pthread_attr_t attr;
8958 status = pthread_attr_init(&attr);
8959 if( status ) exit( status );
8961 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8962 if( status ) exit( status );
8966 #if HAVE_PTHREADS_D4
8967 #define ATTR pthread_attr_default
8972 /* make sure pthread_create() isn't just a stub */
8973 status = pthread_create(&t, ATTR, task, NULL);
8974 if( status ) exit( status );
8976 /* make sure pthread_detach() isn't just a stub */
8977 #if HAVE_PTHREADS_D4
8978 status = pthread_detach( &t );
8980 status = pthread_detach( t );
8983 #ifdef HAVE_LINUX_THREADS
8984 pthread_kill_other_threads_np();
8992 if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8994 ol_cv_pthread_threads=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8999 ol_cv_pthread_threads=no
9010 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9012 if test $ol_cv_pthread_threads = yes ; then
9013 ol_link_pthreads="-threads"
9014 ol_link_threads=posix
9019 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9020 if test "$ol_link_threads" = no ; then
9021 # try -lpthreads -lmach -lexc -lc_r
9022 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9023 echo "configure:9024: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9024 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9030 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9032 if test "$cross_compiling" = yes; then
9033 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure"
9035 #include "confdefs.h"
9036 /* pthread test headers */
9037 #include <pthread.h>
9039 #define NULL (void*)0
9042 static void *task(p)
9045 return (void *) (p == NULL);
9050 /* pthread test function */
9053 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9054 /* This system (e.g. AIX) defaults detached; must override */
9055 pthread_attr_t attr;
9057 status = pthread_attr_init(&attr);
9058 if( status ) exit( status );
9060 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9061 if( status ) exit( status );
9065 #if HAVE_PTHREADS_D4
9066 #define ATTR pthread_attr_default
9071 /* make sure pthread_create() isn't just a stub */
9072 status = pthread_create(&t, ATTR, task, NULL);
9073 if( status ) exit( status );
9075 /* make sure pthread_detach() isn't just a stub */
9076 #if HAVE_PTHREADS_D4
9077 status = pthread_detach( &t );
9079 status = pthread_detach( t );
9082 #ifdef HAVE_LINUX_THREADS
9083 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}; then
9092 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 /* pthread test headers */
9105 #include <pthread.h>
9107 #define NULL (void*)0
9110 static void *task(p)
9113 return (void *) (p == NULL);
9117 int main(argc, argv)
9122 /* pthread test function */
9125 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9126 /* This system (e.g. AIX) defaults detached; must override */
9127 pthread_attr_t attr;
9129 status = pthread_attr_init(&attr);
9130 if( status ) exit( status );
9132 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9133 if( status ) exit( status );
9137 #if HAVE_PTHREADS_D4
9138 #define ATTR pthread_attr_default
9143 /* make sure pthread_create() isn't just a stub */
9144 status = pthread_create(&t, ATTR, task, NULL);
9145 if( status ) exit( status );
9147 /* make sure pthread_detach() isn't just a stub */
9148 #if HAVE_PTHREADS_D4
9149 status = pthread_detach( &t );
9151 status = pthread_detach( t );
9154 #ifdef HAVE_LINUX_THREADS
9155 pthread_kill_other_threads_np();
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9165 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9181 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9183 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9184 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9185 ol_link_threads=posix
9189 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9190 if test "$ol_link_threads" = no ; then
9191 # try -lpthreads -lmach -lexc
9192 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9193 echo "configure:9194: checking for pthread link with -lpthreads -lmach -lexc" >&5
9194 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9200 LIBS="-lpthreads -lmach -lexc $LIBS"
9202 if test "$cross_compiling" = yes; then
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 /* pthread test headers */
9207 #include <pthread.h>
9209 #define NULL (void*)0
9212 static void *task(p)
9215 return (void *) (p == NULL);
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();
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9262 ol_cv_pthread_lpthreads_lmach_lexc=yes
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9267 ol_cv_pthread_lpthreads_lmach_lexc=no
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9274 /* pthread test headers */
9275 #include <pthread.h>
9277 #define NULL (void*)0
9280 static void *task(p)
9283 return (void *) (p == NULL);
9287 int main(argc, argv)
9292 /* pthread test function */
9295 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9296 /* This system (e.g. AIX) defaults detached; must override */
9297 pthread_attr_t attr;
9299 status = pthread_attr_init(&attr);
9300 if( status ) exit( status );
9302 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9303 if( status ) exit( status );
9307 #if HAVE_PTHREADS_D4
9308 #define ATTR pthread_attr_default
9313 /* make sure pthread_create() isn't just a stub */
9314 status = pthread_create(&t, ATTR, task, NULL);
9315 if( status ) exit( status );
9317 /* make sure pthread_detach() isn't just a stub */
9318 #if HAVE_PTHREADS_D4
9319 status = pthread_detach( &t );
9321 status = pthread_detach( t );
9324 #ifdef HAVE_LINUX_THREADS
9325 pthread_kill_other_threads_np();
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9335 ol_cv_pthread_lpthreads_lmach_lexc=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 ol_cv_pthread_lpthreads_lmach_lexc=no
9351 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9353 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9354 ol_link_pthreads="-lpthreads -lmach -lexc"
9355 ol_link_threads=posix
9359 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9360 if test "$ol_link_threads" = no ; then
9361 # try -lpthreads -lexc
9362 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9363 echo "configure:9364: checking for pthread link with -lpthreads -lexc" >&5
9364 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9370 LIBS="-lpthreads -lexc $LIBS"
9372 if test "$cross_compiling" = yes; then
9373 cat > conftest.$ac_ext <<EOF
9374 #line 9375 "configure"
9375 #include "confdefs.h"
9376 /* pthread test headers */
9377 #include <pthread.h>
9379 #define NULL (void*)0
9382 static void *task(p)
9385 return (void *) (p == NULL);
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();
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9432 ol_cv_pthread_lpthreads_lexc=yes
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 ol_cv_pthread_lpthreads_lexc=no
9441 cat > conftest.$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9444 /* pthread test headers */
9445 #include <pthread.h>
9447 #define NULL (void*)0
9450 static void *task(p)
9453 return (void *) (p == NULL);
9457 int main(argc, argv)
9462 /* pthread test function */
9465 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9466 /* This system (e.g. AIX) defaults detached; must override */
9467 pthread_attr_t attr;
9469 status = pthread_attr_init(&attr);
9470 if( status ) exit( status );
9472 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9473 if( status ) exit( status );
9477 #if HAVE_PTHREADS_D4
9478 #define ATTR pthread_attr_default
9483 /* make sure pthread_create() isn't just a stub */
9484 status = pthread_create(&t, ATTR, task, NULL);
9485 if( status ) exit( status );
9487 /* make sure pthread_detach() isn't just a stub */
9488 #if HAVE_PTHREADS_D4
9489 status = pthread_detach( &t );
9491 status = pthread_detach( t );
9494 #ifdef HAVE_LINUX_THREADS
9495 pthread_kill_other_threads_np();
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9505 ol_cv_pthread_lpthreads_lexc=yes
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 ol_cv_pthread_lpthreads_lexc=no
9521 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9523 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9524 ol_link_pthreads="-lpthreads -lexc"
9525 ol_link_threads=posix
9530 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9531 if test "$ol_link_threads" = no ; then
9533 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9534 echo "configure:9535: checking for pthread link with -lpthreads" >&5
9535 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9541 LIBS="-lpthreads $LIBS"
9543 if test "$cross_compiling" = yes; then
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 /* pthread test headers */
9548 #include <pthread.h>
9550 #define NULL (void*)0
9553 static void *task(p)
9556 return (void *) (p == NULL);
9561 /* pthread test function */
9564 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9565 /* This system (e.g. AIX) defaults detached; must override */
9566 pthread_attr_t attr;
9568 status = pthread_attr_init(&attr);
9569 if( status ) exit( status );
9571 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9572 if( status ) exit( status );
9576 #if HAVE_PTHREADS_D4
9577 #define ATTR pthread_attr_default
9582 /* make sure pthread_create() isn't just a stub */
9583 status = pthread_create(&t, ATTR, task, NULL);
9584 if( status ) exit( status );
9586 /* make sure pthread_detach() isn't just a stub */
9587 #if HAVE_PTHREADS_D4
9588 status = pthread_detach( &t );
9590 status = pthread_detach( t );
9593 #ifdef HAVE_LINUX_THREADS
9594 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}; then
9603 ol_cv_pthread_lib_lpthreads=yes
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 ol_cv_pthread_lib_lpthreads=no
9612 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure"
9614 #include "confdefs.h"
9615 /* pthread test headers */
9616 #include <pthread.h>
9618 #define NULL (void*)0
9621 static void *task(p)
9624 return (void *) (p == NULL);
9628 int main(argc, argv)
9633 /* pthread test function */
9636 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9637 /* This system (e.g. AIX) defaults detached; must override */
9638 pthread_attr_t attr;
9640 status = pthread_attr_init(&attr);
9641 if( status ) exit( status );
9643 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9644 if( status ) exit( status );
9648 #if HAVE_PTHREADS_D4
9649 #define ATTR pthread_attr_default
9654 /* make sure pthread_create() isn't just a stub */
9655 status = pthread_create(&t, ATTR, task, NULL);
9656 if( status ) exit( status );
9658 /* make sure pthread_detach() isn't just a stub */
9659 #if HAVE_PTHREADS_D4
9660 status = pthread_detach( &t );
9662 status = pthread_detach( t );
9665 #ifdef HAVE_LINUX_THREADS
9666 pthread_kill_other_threads_np();
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9676 ol_cv_pthread_lib_lpthreads=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 ol_cv_pthread_lib_lpthreads=no
9692 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9694 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9695 ol_link_pthreads="-lpthreads"
9696 ol_link_threads=posix
9701 if test $ol_link_threads != no ; then
9702 cat >> confdefs.h <<\EOF
9703 #define HAVE_PTHREADS 1
9707 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9709 save_CPPFLAGS="$CPPFLAGS"
9711 LIBS="$LTHREAD_LIBS $LIBS"
9713 for ac_func in sched_yield pthread_yield
9715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9716 echo "configure:9717: checking for $ac_func" >&5
9717 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 /* System header to define __stub macros and hopefully few prototypes,
9724 which can conflict with char $ac_func(); below. */
9726 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9734 /* The GNU C library defines this for functions which it implements
9735 to always fail with ENOSYS. Some functions are actually named
9736 something starting with __ and the normal name is an alias. */
9737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9745 if { (eval echo configure:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9747 eval "ac_cv_func_$ac_func=yes"
9749 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9752 eval "ac_cv_func_$ac_func=no"
9757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9758 echo "$ac_t""yes" 1>&6
9759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9760 cat >> confdefs.h <<EOF
9761 #define $ac_tr_func 1
9765 echo "$ac_t""no" 1>&6
9770 if test $ac_cv_func_sched_yield = no -a \
9771 $ac_cv_func_pthread_yield = no ; then
9772 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9773 echo "configure:9774: checking for sched_yield in -lrt" >&5
9774 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9775 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9778 ac_save_LIBS="$LIBS"
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 /* Override any gcc2 internal prototype to avoid an error. */
9784 /* We use char because int might match the return type of a gcc2
9785 builtin and then its argument prototype would still apply. */
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 eval "ac_cv_lib_$ac_lib_var=yes"
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9799 eval "ac_cv_lib_$ac_lib_var=no"
9802 LIBS="$ac_save_LIBS"
9805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9808 cat >> confdefs.h <<\EOF
9809 #define HAVE_SCHED_YIELD 1
9812 ac_cv_func_sched_yield=yes
9814 echo "$ac_t""no" 1>&6
9815 ac_cv_func_sched_yield=no
9819 if test $ac_cv_func_sched_yield = no -a \
9820 $ac_cv_func_pthread_yield = no ; then
9821 for ac_func in thr_yield
9823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9824 echo "configure:9825: checking for $ac_func" >&5
9825 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char $ac_func(); below. */
9834 /* Override any gcc2 internal prototype to avoid an error. */
9835 /* We use char because int might match the return type of a gcc2
9836 builtin and then its argument prototype would still apply. */
9842 /* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
9845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 eval "ac_cv_func_$ac_func=yes"
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 eval "ac_cv_func_$ac_func=no"
9865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9866 echo "$ac_t""yes" 1>&6
9867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9868 cat >> confdefs.h <<EOF
9869 #define $ac_tr_func 1
9873 echo "$ac_t""no" 1>&6
9878 if test $ac_cv_func_sched_yield = no -a \
9879 $ac_cv_func_pthread_yield = no -a \
9880 "$ac_cv_func_thr_yield" = no ; then
9881 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9884 for ac_func in pthread_kill pthread_rwlock_destroy
9886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9887 echo "configure:9888: checking for $ac_func" >&5
9888 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char $ac_func(); below. */
9897 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9918 eval "ac_cv_func_$ac_func=yes"
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9923 eval "ac_cv_func_$ac_func=no"
9928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9931 cat >> confdefs.h <<EOF
9932 #define $ac_tr_func 1
9936 echo "$ac_t""no" 1>&6
9941 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9942 echo "configure:9943: checking for pthread_detach with <pthread.h>" >&5
9943 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9944 echo $ac_n "(cached) $ac_c" 1>&6
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9951 #include <pthread.h>
9953 #define NULL (void*)0
9957 pthread_detach(NULL);
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 ol_cv_func_pthread_detach=yes
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 ol_cv_func_pthread_detach=no
9973 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9975 if test $ol_cv_func_pthread_detach = no ; then
9976 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9979 cat >> confdefs.h <<\EOF
9980 #define HAVE_PTHREAD_DETACH 1
9985 pthread_setconcurrency \
9986 pthread_getconcurrency \
9987 thr_setconcurrency \
9988 thr_getconcurrency \
9991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9992 echo "configure:9993: checking for $ac_func" >&5
9993 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char $ac_func(); below. */
10001 #include <assert.h>
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10023 eval "ac_cv_func_$ac_func=yes"
10025 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10028 eval "ac_cv_func_$ac_func=no"
10033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10034 echo "$ac_t""yes" 1>&6
10035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10036 cat >> confdefs.h <<EOF
10037 #define $ac_tr_func 1
10041 echo "$ac_t""no" 1>&6
10047 for ac_func in pthread_kill_other_threads_np
10049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10050 echo "configure:10051: checking for $ac_func" >&5
10051 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10052 echo $ac_n "(cached) $ac_c" 1>&6
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 /* System header to define __stub macros and hopefully few prototypes,
10058 which can conflict with char $ac_func(); below. */
10059 #include <assert.h>
10060 /* Override any gcc2 internal prototype to avoid an error. */
10061 /* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10068 /* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
10071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10081 eval "ac_cv_func_$ac_func=yes"
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10086 eval "ac_cv_func_$ac_func=no"
10091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10094 cat >> confdefs.h <<EOF
10095 #define $ac_tr_func 1
10099 echo "$ac_t""no" 1>&6
10103 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10104 echo "configure:10105: checking for LinuxThreads implementation" >&5
10105 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10108 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10111 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10116 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10117 echo "configure:10118: checking for LinuxThreads consistency" >&5
10118 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10122 if test $ol_cv_header_linux_threads = yes -a \
10123 $ol_cv_sys_linux_threads = yes; then
10124 ol_cv_linux_threads=yes
10125 elif test $ol_cv_header_linux_threads = no -a \
10126 $ol_cv_sys_linux_threads = no; then
10127 ol_cv_linux_threads=no
10129 ol_cv_linux_threads=error
10134 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10137 if test $ol_cv_linux_threads = error; then
10138 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10141 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10142 echo "configure:10143: checking if pthread_create() works" >&5
10143 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10147 if test "$cross_compiling" = yes; then
10148 ol_cv_pthread_create_works=yes
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* pthread test headers */
10154 #include <pthread.h>
10156 #define NULL (void*)0
10159 static void *task(p)
10162 return (void *) (p == NULL);
10166 int main(argc, argv)
10171 /* pthread test function */
10174 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10175 /* This system (e.g. AIX) defaults detached; must override */
10176 pthread_attr_t attr;
10178 status = pthread_attr_init(&attr);
10179 if( status ) exit( status );
10181 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10182 if( status ) exit( status );
10186 #if HAVE_PTHREADS_D4
10187 #define ATTR pthread_attr_default
10192 /* make sure pthread_create() isn't just a stub */
10193 status = pthread_create(&t, ATTR, task, NULL);
10194 if( status ) exit( status );
10196 /* make sure pthread_detach() isn't just a stub */
10197 #if HAVE_PTHREADS_D4
10198 status = pthread_detach( &t );
10200 status = pthread_detach( t );
10203 #ifdef HAVE_LINUX_THREADS
10204 pthread_kill_other_threads_np();
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10214 ol_cv_pthread_create_works=yes
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10219 ol_cv_pthread_create_works=no
10226 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10228 if test $ol_cv_pthread_create_works = no ; then
10229 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10232 if test $ol_with_yielding_select = auto ; then
10233 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10234 echo "configure:10235: checking if select yields when using pthreads" >&5
10235 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
10239 if test "$cross_compiling" = yes; then
10240 ol_cv_pthread_select_yields=cross
10242 cat > conftest.$ac_ext <<EOF
10243 #line 10244 "configure"
10244 #include "confdefs.h"
10246 #include <sys/types.h>
10247 #include <sys/time.h>
10248 #include <unistd.h>
10249 #include <pthread.h>
10251 #define NULL (void*) 0
10254 static int fildes[2];
10256 static void *task(p)
10268 FD_SET(fildes[0], &rfds);
10270 /* we're not interested in any fds */
10271 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10278 exit(0); /* if we exit here, the select blocked the whole process */
10281 int main(argc, argv)
10287 /* create a pipe to select */
10288 if(pipe(&fildes[0])) {
10293 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10294 (void) pthread_setconcurrency(2);
10296 #ifdef HAVE_THR_SETCONCURRENCY
10297 /* Set Solaris LWP concurrency to 2 */
10298 thr_setconcurrency(2);
10302 #if HAVE_PTHREADS_D4
10303 pthread_create(&t, pthread_attr_default, task, NULL);
10305 pthread_create(&t, NULL, task, NULL);
10308 #if HAVE_SCHED_YIELD
10309 sched_yield(); /* make sure task runs first */
10311 #ifdef HAVE_PTHREAD_YIELD
10312 pthread_yield(); /* make sure task runs first */
10319 if { (eval echo configure:10320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10321 ol_cv_pthread_select_yields=no
10323 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5
10326 ol_cv_pthread_select_yields=yes
10333 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10335 if test $ol_cv_pthread_select_yields = cross ; then
10336 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10339 if test $ol_cv_pthread_select_yields = yes ; then
10340 ol_with_yielding_select=yes
10344 CPPFLAGS="$save_CPPFLAGS"
10347 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10351 if test $ol_with_threads = posix ; then
10352 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10356 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10357 -o $ol_with_threads = mach ; then
10359 for ac_hdr in mach/cthreads.h
10361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10363 echo "configure:10364: checking for $ac_hdr" >&5
10364 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10373 { (eval echo configure:10374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10375 if test -z "$ac_err"; then
10377 eval "ac_cv_header_$ac_safe=yes"
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 eval "ac_cv_header_$ac_safe=no"
10387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10388 echo "$ac_t""yes" 1>&6
10389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10390 cat >> confdefs.h <<EOF
10391 #define $ac_tr_hdr 1
10395 echo "$ac_t""no" 1>&6
10399 if test $ac_cv_header_mach_cthreads_h = yes ; then
10400 ol_with_threads=found
10402 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10403 echo "configure:10404: checking for cthread_fork" >&5
10404 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 /* System header to define __stub macros and hopefully few prototypes,
10411 which can conflict with char cthread_fork(); below. */
10412 #include <assert.h>
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */
10416 char cthread_fork();
10421 /* The GNU C library defines this for functions which it implements
10422 to always fail with ENOSYS. Some functions are actually named
10423 something starting with __ and the normal name is an alias. */
10424 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10434 eval "ac_cv_func_cthread_fork=yes"
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 eval "ac_cv_func_cthread_fork=no"
10444 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 ol_link_threads=yes
10448 echo "$ac_t""no" 1>&6
10452 if test $ol_link_threads = no ; then
10453 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10454 echo "configure:10455: checking for cthread_fork with -all_load" >&5
10455 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10460 LIBS="-all_load $LIBS"
10461 cat > conftest.$ac_ext <<EOF
10462 #line 10463 "configure"
10463 #include "confdefs.h"
10464 #include <mach/cthreads.h>
10467 cthread_fork((void *)0, (void *)0);
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10473 ol_cv_cthread_all_load=yes
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10478 ol_cv_cthread_all_load=no
10485 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10487 if test $ol_cv_cthread_all_load = yes ; then
10488 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10489 ol_link_threads=mach
10493 if test $ol_link_threads != no ; then
10494 : check for cthread specific functionality here
10495 cat >> confdefs.h <<\EOF
10496 #define HAVE_MACH_CTHREADS 1
10500 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10504 if test $ol_with_threads = mach ; then
10505 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10509 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10510 -o $ol_with_threads = pth ; then
10512 for ac_hdr in pth.h
10514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10516 echo "configure:10517: checking for $ac_hdr" >&5
10517 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10526 { (eval echo configure:10527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10528 if test -z "$ac_err"; then
10530 eval "ac_cv_header_$ac_safe=yes"
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10536 eval "ac_cv_header_$ac_safe=no"
10540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10541 echo "$ac_t""yes" 1>&6
10542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10543 cat >> confdefs.h <<EOF
10544 #define $ac_tr_hdr 1
10548 echo "$ac_t""no" 1>&6
10553 if test $ac_cv_header_pth_h = yes ; then
10554 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10555 echo "configure:10556: checking for pth_version in -lpth" >&5
10556 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10558 echo $ac_n "(cached) $ac_c" 1>&6
10560 ac_save_LIBS="$LIBS"
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 /* Override any gcc2 internal prototype to avoid an error. */
10566 /* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568 char pth_version();
10574 if { (eval echo configure:10575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10576 eval "ac_cv_lib_$ac_lib_var=yes"
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10581 eval "ac_cv_lib_$ac_lib_var=no"
10584 LIBS="$ac_save_LIBS"
10587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10588 echo "$ac_t""yes" 1>&6
10591 echo "$ac_t""no" 1>&6
10596 if test $have_pth = yes ; then
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_GNU_PTH 1
10601 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10602 ol_link_threads=pth
10604 if test $ol_with_yielding_select = auto ; then
10605 ol_with_yielding_select=yes
10611 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10612 -o $ol_with_threads = lwp ; then
10614 for ac_hdr in thread.h synch.h
10616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10618 echo "configure:10619: checking for $ac_hdr" >&5
10619 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10628 { (eval echo configure:10629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10630 if test -z "$ac_err"; then
10632 eval "ac_cv_header_$ac_safe=yes"
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 eval "ac_cv_header_$ac_safe=no"
10642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10645 cat >> confdefs.h <<EOF
10646 #define $ac_tr_hdr 1
10650 echo "$ac_t""no" 1>&6
10654 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10655 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10656 echo "configure:10657: checking for thr_create in -lthread" >&5
10657 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10661 ac_save_LIBS="$LIBS"
10662 LIBS="-lthread $LIBS"
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_lib_$ac_lib_var=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_lib_$ac_lib_var=no"
10685 LIBS="$ac_save_LIBS"
10688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10692 echo "$ac_t""no" 1>&6
10697 if test $have_thr = yes ; then
10698 cat >> confdefs.h <<\EOF
10702 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10703 ol_link_threads=thr
10705 if test $ol_with_yielding_select = auto ; then
10706 ol_with_yielding_select=yes
10710 thr_setconcurrency \
10711 thr_getconcurrency \
10714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10715 echo "configure:10716: checking for $ac_func" >&5
10716 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10717 echo $ac_n "(cached) $ac_c" 1>&6
10719 cat > conftest.$ac_ext <<EOF
10720 #line 10721 "configure"
10721 #include "confdefs.h"
10722 /* System header to define __stub macros and hopefully few prototypes,
10723 which can conflict with char $ac_func(); below. */
10724 #include <assert.h>
10725 /* Override any gcc2 internal prototype to avoid an error. */
10726 /* We use char because int might match the return type of a gcc2
10727 builtin and then its argument prototype would still apply. */
10733 /* The GNU C library defines this for functions which it implements
10734 to always fail with ENOSYS. Some functions are actually named
10735 something starting with __ and the normal name is an alias. */
10736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10744 if { (eval echo configure:10745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10746 eval "ac_cv_func_$ac_func=yes"
10748 echo "configure: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10751 eval "ac_cv_func_$ac_func=no"
10756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10759 cat >> confdefs.h <<EOF
10760 #define $ac_tr_func 1
10764 echo "$ac_t""no" 1>&6
10771 for ac_hdr in lwp/lwp.h
10773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10775 echo "configure:10776: checking for $ac_hdr" >&5
10776 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10777 echo $ac_n "(cached) $ac_c" 1>&6
10779 cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10785 { (eval echo configure:10786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10787 if test -z "$ac_err"; then
10789 eval "ac_cv_header_$ac_safe=yes"
10792 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10795 eval "ac_cv_header_$ac_safe=no"
10799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10800 echo "$ac_t""yes" 1>&6
10801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10802 cat >> confdefs.h <<EOF
10803 #define $ac_tr_hdr 1
10807 echo "$ac_t""no" 1>&6
10811 if test $ac_cv_header_lwp_lwp_h = yes ; then
10812 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10813 echo "configure:10814: checking for lwp_create in -llwp" >&5
10814 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10815 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10818 ac_save_LIBS="$LIBS"
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823 /* Override any gcc2 internal prototype to avoid an error. */
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10832 if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10834 eval "ac_cv_lib_$ac_lib_var=yes"
10836 echo "configure: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10839 eval "ac_cv_lib_$ac_lib_var=no"
10842 LIBS="$ac_save_LIBS"
10845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10846 echo "$ac_t""yes" 1>&6
10849 echo "$ac_t""no" 1>&6
10854 if test $have_lwp = yes ; then
10855 cat >> confdefs.h <<\EOF
10859 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10860 ol_link_threads=lwp
10862 if test $ol_with_yielding_select = auto ; then
10863 ol_with_yielding_select=no
10869 if test $ol_with_yielding_select = yes ; then
10870 cat >> confdefs.h <<\EOF
10871 #define HAVE_YIELDING_SELECT 1
10876 if test $ol_with_threads = manual ; then
10877 ol_link_threads=yes
10879 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10881 for ac_hdr in pthread.h sched.h
10883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10885 echo "configure:10886: checking for $ac_hdr" >&5
10886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10895 { (eval echo configure:10896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10897 if test -z "$ac_err"; then
10899 eval "ac_cv_header_$ac_safe=yes"
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 eval "ac_cv_header_$ac_safe=no"
10909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10912 cat >> confdefs.h <<EOF
10913 #define $ac_tr_hdr 1
10917 echo "$ac_t""no" 1>&6
10921 for ac_func in sched_yield pthread_yield
10923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10924 echo "configure:10925: checking for $ac_func" >&5
10925 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 /* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func(); below. */
10933 #include <assert.h>
10934 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10955 eval "ac_cv_func_$ac_func=yes"
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 eval "ac_cv_func_$ac_func=no"
10965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10968 cat >> confdefs.h <<EOF
10969 #define $ac_tr_func 1
10973 echo "$ac_t""no" 1>&6
10978 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10979 echo "configure:10980: checking for LinuxThreads pthread.h" >&5
10980 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 #include <pthread.h>
10988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10989 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10991 ol_cv_header_linux_threads=yes
10994 ol_cv_header_linux_threads=no
11001 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11002 if test $ol_cv_header_linux_threads = yes; then
11003 cat >> confdefs.h <<\EOF
11004 #define HAVE_LINUX_THREADS 1
11010 for ac_hdr in mach/cthreads.h
11012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11014 echo "configure:11015: checking for $ac_hdr" >&5
11015 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11024 { (eval echo configure:11025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11026 if test -z "$ac_err"; then
11028 eval "ac_cv_header_$ac_safe=yes"
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11034 eval "ac_cv_header_$ac_safe=no"
11038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11039 echo "$ac_t""yes" 1>&6
11040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11041 cat >> confdefs.h <<EOF
11042 #define $ac_tr_hdr 1
11046 echo "$ac_t""no" 1>&6
11050 for ac_hdr in lwp/lwp.h
11052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11054 echo "configure:11055: checking for $ac_hdr" >&5
11055 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11064 { (eval echo configure:11065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11066 if test -z "$ac_err"; then
11068 eval "ac_cv_header_$ac_safe=yes"
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11074 eval "ac_cv_header_$ac_safe=no"
11078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11081 cat >> confdefs.h <<EOF
11082 #define $ac_tr_hdr 1
11086 echo "$ac_t""no" 1>&6
11090 for ac_hdr in thread.h synch.h
11092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11094 echo "configure:11095: checking for $ac_hdr" >&5
11095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11106 if test -z "$ac_err"; then
11108 eval "ac_cv_header_$ac_safe=yes"
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11114 eval "ac_cv_header_$ac_safe=no"
11118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_hdr 1
11126 echo "$ac_t""no" 1>&6
11132 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11133 cat >> confdefs.h <<\EOF
11134 #define REENTRANT 1
11137 cat >> confdefs.h <<\EOF
11138 #define _REENTRANT 1
11141 cat >> confdefs.h <<\EOF
11142 #define THREAD_SAFE 1
11145 cat >> confdefs.h <<\EOF
11146 #define _THREAD_SAFE 1
11149 cat >> confdefs.h <<\EOF
11150 #define THREADSAFE 1
11153 cat >> confdefs.h <<\EOF
11154 #define _THREADSAFE 1
11157 cat >> confdefs.h <<\EOF
11158 #define _SGI_MP_SOURCE 1
11162 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11163 echo "configure:11164: checking for thread specific errno" >&5
11164 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11178 ol_cv_errno_thread_specific=yes
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 ol_cv_errno_thread_specific=no
11189 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11191 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11192 echo "configure:11193: checking for thread specific h_errno" >&5
11193 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11205 if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 ol_cv_h_errno_thread_specific=yes
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11212 ol_cv_h_errno_thread_specific=no
11218 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11220 if test $ol_cv_errno_thread_specific != yes \
11221 -o $ol_cv_h_errno_thread_specific != yes ; then
11222 LIBS="$LTHREAD_LIBS $LIBS"
11228 if test $ol_link_threads = no ; then
11229 if test $ol_with_threads = yes ; then
11230 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11233 if test $ol_with_threads = auto ; then
11234 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11238 cat >> confdefs.h <<\EOF
11239 #define NO_THREADS 1
11245 if test $ol_link_threads != no ; then
11246 cat >> confdefs.h <<\EOF
11247 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11254 if test $ol_with_ldbm_api = auto \
11255 -o $ol_with_ldbm_api = berkeley \
11256 -o $ol_with_ldbm_api = bcompat ; then
11258 if test $ol_with_ldbm_api = bcompat; then \
11259 ol_cv_berkeley_db=no
11260 for ac_hdr in db_185.h db.h
11262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11264 echo "configure:11265: checking for $ac_hdr" >&5
11265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then
11278 eval "ac_cv_header_$ac_safe=yes"
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 eval "ac_cv_header_$ac_safe=no"
11288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11289 echo "$ac_t""yes" 1>&6
11290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11291 cat >> confdefs.h <<EOF
11292 #define $ac_tr_hdr 1
11296 echo "$ac_t""no" 1>&6
11300 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11301 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11302 echo "configure:11303: checking if Berkeley DB header compatibility" >&5
11303 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11307 cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11312 # include <db_185.h>
11317 /* this check could be improved */
11318 #ifndef DB_VERSION_MAJOR
11319 # define DB_VERSION_MAJOR 1
11322 #if DB_VERSION_MAJOR == 1
11327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11328 egrep "__db_version_1" >/dev/null 2>&1; then
11330 ol_cv_header_db1=yes
11333 ol_cv_header_db1=no
11339 echo "$ac_t""$ol_cv_header_db1" 1>&6
11341 if test ol_cv_header_db1=yes ; then
11343 if test $ol_cv_lib_db = no ; then
11344 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11345 echo "configure:11346: checking for Berkeley DB link (default)" >&5
11346 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11352 LIBS="$ol_DB_LIB $LIBS"
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11358 #ifdef HAVE_DB_185_H
11359 # include <db_185.h>
11364 #ifndef DB_VERSION_MAJOR
11365 # define DB_VERSION_MAJOR 1
11369 #define NULL ((void*)0)
11374 #if DB_VERSION_MAJOR > 2
11375 db_env_create( NULL, 0 );
11376 #elif DB_VERSION_MAJOR > 1
11377 db_appexit( NULL );
11379 (void) dbopen( NULL, 0, 0, 0, NULL);
11384 if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11388 echo "configure: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11399 echo "$ac_t""$ol_cv_db_none" 1>&6
11401 if test $ol_cv_db_none = yes ; then
11406 if test $ol_cv_lib_db = no ; then
11407 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11408 echo "configure:11409: checking for Berkeley DB link (-ldb)" >&5
11409 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11410 echo $ac_n "(cached) $ac_c" 1>&6
11415 LIBS="$ol_DB_LIB $LIBS"
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11421 #ifdef HAVE_DB_185_H
11422 # include <db_185.h>
11427 #ifndef DB_VERSION_MAJOR
11428 # define DB_VERSION_MAJOR 1
11432 #define NULL ((void*)0)
11437 #if DB_VERSION_MAJOR > 2
11438 db_env_create( NULL, 0 );
11439 #elif DB_VERSION_MAJOR > 1
11440 db_appexit( NULL );
11442 (void) dbopen( NULL, 0, 0, 0, NULL);
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11462 echo "$ac_t""$ol_cv_db_db" 1>&6
11464 if test $ol_cv_db_db = yes ; then
11469 if test $ol_cv_lib_db = no ; then
11470 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11471 echo "configure:11472: checking for Berkeley DB link (-ldb3)" >&5
11472 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11478 LIBS="$ol_DB_LIB $LIBS"
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11484 #ifdef HAVE_DB_185_H
11485 # include <db_185.h>
11490 #ifndef DB_VERSION_MAJOR
11491 # define DB_VERSION_MAJOR 1
11495 #define NULL ((void*)0)
11500 #if DB_VERSION_MAJOR > 2
11501 db_env_create( NULL, 0 );
11502 #elif DB_VERSION_MAJOR > 1
11503 db_appexit( NULL );
11505 (void) dbopen( NULL, 0, 0, 0, NULL);
11510 if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11525 echo "$ac_t""$ol_cv_db_db3" 1>&6
11527 if test $ol_cv_db_db3 = yes ; then
11532 if test $ol_cv_lib_db = no ; then
11533 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11534 echo "configure:11535: checking for Berkeley DB link (-ldb2)" >&5
11535 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11541 LIBS="$ol_DB_LIB $LIBS"
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11547 #ifdef HAVE_DB_185_H
11548 # include <db_185.h>
11553 #ifndef DB_VERSION_MAJOR
11554 # define DB_VERSION_MAJOR 1
11558 #define NULL ((void*)0)
11563 #if DB_VERSION_MAJOR > 2
11564 db_env_create( NULL, 0 );
11565 #elif DB_VERSION_MAJOR > 1
11566 db_appexit( NULL );
11568 (void) dbopen( NULL, 0, 0, 0, NULL);
11573 if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11588 echo "$ac_t""$ol_cv_db_db2" 1>&6
11590 if test $ol_cv_db_db2 = yes ; then
11595 if test $ol_cv_lib_db = no ; then
11596 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11597 echo "configure:11598: checking for Berkeley DB link (-ldb1)" >&5
11598 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11604 LIBS="$ol_DB_LIB $LIBS"
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11610 #ifdef HAVE_DB_185_H
11611 # include <db_185.h>
11616 #ifndef DB_VERSION_MAJOR
11617 # define DB_VERSION_MAJOR 1
11621 #define NULL ((void*)0)
11626 #if DB_VERSION_MAJOR > 2
11627 db_env_create( NULL, 0 );
11628 #elif DB_VERSION_MAJOR > 1
11629 db_appexit( NULL );
11631 (void) dbopen( NULL, 0, 0, 0, NULL);
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11651 echo "$ac_t""$ol_cv_db_db1" 1>&6
11653 if test $ol_cv_db_db1 = yes ; then
11659 if test "$ol_cv_lib_db" != no ; then
11660 ol_cv_berkeley_db=yes
11666 ol_cv_berkeley_db=no
11669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11671 echo "configure:11672: checking for $ac_hdr" >&5
11672 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11675 cat > conftest.$ac_ext <<EOF
11676 #line 11677 "configure"
11677 #include "confdefs.h"
11680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681 { (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683 if test -z "$ac_err"; then
11685 eval "ac_cv_header_$ac_safe=yes"
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11691 eval "ac_cv_header_$ac_safe=no"
11695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11698 cat >> confdefs.h <<EOF
11699 #define $ac_tr_hdr 1
11703 echo "$ac_t""no" 1>&6
11707 if test $ac_cv_header_db_h = yes; then
11709 if test $ol_cv_lib_db = no ; then
11710 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11711 echo "configure:11712: checking for Berkeley DB link (default)" >&5
11712 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11718 LIBS="$ol_DB_LIB $LIBS"
11720 cat > conftest.$ac_ext <<EOF
11721 #line 11722 "configure"
11722 #include "confdefs.h"
11724 #ifdef HAVE_DB_185_H
11725 # include <db_185.h>
11730 #ifndef DB_VERSION_MAJOR
11731 # define DB_VERSION_MAJOR 1
11735 #define NULL ((void*)0)
11740 #if DB_VERSION_MAJOR > 2
11741 db_env_create( NULL, 0 );
11742 #elif DB_VERSION_MAJOR > 1
11743 db_appexit( NULL );
11745 (void) dbopen( NULL, 0, 0, 0, NULL);
11750 if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11765 echo "$ac_t""$ol_cv_db_none" 1>&6
11767 if test $ol_cv_db_none = yes ; then
11772 if test $ol_cv_lib_db = no ; then
11773 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11774 echo "configure:11775: checking for Berkeley DB link (-ldb)" >&5
11775 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11781 LIBS="$ol_DB_LIB $LIBS"
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11787 #ifdef HAVE_DB_185_H
11788 # include <db_185.h>
11793 #ifndef DB_VERSION_MAJOR
11794 # define DB_VERSION_MAJOR 1
11798 #define NULL ((void*)0)
11803 #if DB_VERSION_MAJOR > 2
11804 db_env_create( NULL, 0 );
11805 #elif DB_VERSION_MAJOR > 1
11806 db_appexit( NULL );
11808 (void) dbopen( NULL, 0, 0, 0, NULL);
11813 if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11828 echo "$ac_t""$ol_cv_db_db" 1>&6
11830 if test $ol_cv_db_db = yes ; then
11835 if test $ol_cv_lib_db = no ; then
11836 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11837 echo "configure:11838: checking for Berkeley DB link (-ldb3)" >&5
11838 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11844 LIBS="$ol_DB_LIB $LIBS"
11846 cat > conftest.$ac_ext <<EOF
11847 #line 11848 "configure"
11848 #include "confdefs.h"
11850 #ifdef HAVE_DB_185_H
11851 # include <db_185.h>
11856 #ifndef DB_VERSION_MAJOR
11857 # define DB_VERSION_MAJOR 1
11861 #define NULL ((void*)0)
11866 #if DB_VERSION_MAJOR > 2
11867 db_env_create( NULL, 0 );
11868 #elif DB_VERSION_MAJOR > 1
11869 db_appexit( NULL );
11871 (void) dbopen( NULL, 0, 0, 0, NULL);
11876 if { (eval echo configure:11877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11880 echo "configure: failed program was:" >&5
11881 cat conftest.$ac_ext >&5
11891 echo "$ac_t""$ol_cv_db_db3" 1>&6
11893 if test $ol_cv_db_db3 = yes ; then
11898 if test $ol_cv_lib_db = no ; then
11899 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11900 echo "configure:11901: checking for Berkeley DB link (-ldb2)" >&5
11901 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11907 LIBS="$ol_DB_LIB $LIBS"
11909 cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11913 #ifdef HAVE_DB_185_H
11914 # include <db_185.h>
11919 #ifndef DB_VERSION_MAJOR
11920 # define DB_VERSION_MAJOR 1
11924 #define NULL ((void*)0)
11929 #if DB_VERSION_MAJOR > 2
11930 db_env_create( NULL, 0 );
11931 #elif DB_VERSION_MAJOR > 1
11932 db_appexit( NULL );
11934 (void) dbopen( NULL, 0, 0, 0, NULL);
11939 if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11954 echo "$ac_t""$ol_cv_db_db2" 1>&6
11956 if test $ol_cv_db_db2 = yes ; then
11961 if test $ol_cv_lib_db = no ; then
11962 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11963 echo "configure:11964: checking for Berkeley DB link (-ldb1)" >&5
11964 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11970 LIBS="$ol_DB_LIB $LIBS"
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11976 #ifdef HAVE_DB_185_H
11977 # include <db_185.h>
11982 #ifndef DB_VERSION_MAJOR
11983 # define DB_VERSION_MAJOR 1
11987 #define NULL ((void*)0)
11992 #if DB_VERSION_MAJOR > 2
11993 db_env_create( NULL, 0 );
11994 #elif DB_VERSION_MAJOR > 1
11995 db_appexit( NULL );
11997 (void) dbopen( NULL, 0, 0, 0, NULL);
12002 if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12006 echo "configure: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12017 echo "$ac_t""$ol_cv_db_db1" 1>&6
12019 if test $ol_cv_db_db1 = yes ; then
12025 if test "$ol_cv_lib_db" != no ; then
12026 ol_cv_berkeley_db=yes
12027 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12028 echo "configure:12029: checking for Berkeley DB thread support" >&5
12029 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12034 if test $ol_cv_lib_db != yes ; then
12035 LIBS="$ol_cv_lib_db"
12038 if test "$cross_compiling" = yes; then
12039 ol_cv_berkeley_db_thread=cross
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12045 #ifdef HAVE_DB_185_H
12051 #define NULL ((void *)0)
12056 u_int32_t flags = DB_CREATE | DB_THREAD;
12059 #if DB_VERSION_MAJOR > 2
12060 DB_ENV *env = NULL;
12062 rc = db_env_create( &env, 0 );
12065 rc = env->open( env, NULL, NULL, flags, 0 );
12070 memset( &env, '\0', sizeof(env) );
12072 rc = db_appinit( NULL, NULL, &env, flags );
12075 db_appexit( &env );
12082 if { (eval echo configure:12083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12084 ol_cv_berkeley_db_thread=yes
12086 echo "configure: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12089 ol_cv_berkeley_db_thread=no
12097 if test $ol_cv_berkeley_db_thread != no ; then
12098 cat >> confdefs.h <<\EOF
12099 #define HAVE_BERKELEY_DB_THREAD 1
12106 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12112 if test $ol_cv_berkeley_db != no ; then
12113 cat >> confdefs.h <<\EOF
12114 #define HAVE_BERKELEY_DB 1
12118 ol_link_ldbm=berkeley
12119 ol_with_ldbm_api=db
12121 if test $ol_with_ldbm_type = hash ; then
12122 cat >> confdefs.h <<\EOF
12123 #define LDBM_USE_DBHASH 1
12127 cat >> confdefs.h <<\EOF
12128 #define LDBM_USE_DBBTREE 1
12133 if test $ol_cv_lib_db != yes ; then
12134 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12139 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12140 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12141 ol_with_ldbm_api=none
12144 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12145 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12146 echo "configure:12147: checking for MDBM library" >&5
12147 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12151 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12152 echo "configure:12153: checking for mdbm_set_chain" >&5
12153 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12156 cat > conftest.$ac_ext <<EOF
12157 #line 12158 "configure"
12158 #include "confdefs.h"
12159 /* System header to define __stub macros and hopefully few prototypes,
12160 which can conflict with char mdbm_set_chain(); below. */
12161 #include <assert.h>
12162 /* Override any gcc2 internal prototype to avoid an error. */
12163 /* We use char because int might match the return type of a gcc2
12164 builtin and then its argument prototype would still apply. */
12165 char mdbm_set_chain();
12170 /* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12176 f = mdbm_set_chain;
12181 if { (eval echo configure:12182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12183 eval "ac_cv_func_mdbm_set_chain=yes"
12185 echo "configure: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12188 eval "ac_cv_func_mdbm_set_chain=no"
12193 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12194 echo "$ac_t""yes" 1>&6
12197 echo "$ac_t""no" 1>&6
12199 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12200 echo "configure:12201: checking for mdbm_set_chain in -lmdbm" >&5
12201 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12205 ac_save_LIBS="$LIBS"
12206 LIBS="-lmdbm $LIBS"
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12210 /* Override any gcc2 internal prototype to avoid an error. */
12211 /* We use char because int might match the return type of a gcc2
12212 builtin and then its argument prototype would still apply. */
12213 char mdbm_set_chain();
12219 if { (eval echo configure:12220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12221 eval "ac_cv_lib_$ac_lib_var=yes"
12223 echo "configure: failed program was:" >&5
12224 cat conftest.$ac_ext >&5
12226 eval "ac_cv_lib_$ac_lib_var=no"
12229 LIBS="$ac_save_LIBS"
12232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12233 echo "$ac_t""yes" 1>&6
12234 ol_cv_lib_mdbm=-lmdbm
12236 echo "$ac_t""no" 1>&6
12247 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12250 for ac_hdr in mdbm.h
12252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12254 echo "configure:12255: checking for $ac_hdr" >&5
12255 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12264 { (eval echo configure:12265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12266 if test -z "$ac_err"; then
12268 eval "ac_cv_header_$ac_safe=yes"
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12274 eval "ac_cv_header_$ac_safe=no"
12278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12279 echo "$ac_t""yes" 1>&6
12280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12281 cat >> confdefs.h <<EOF
12282 #define $ac_tr_hdr 1
12286 echo "$ac_t""no" 1>&6
12290 echo $ac_n "checking for db""... $ac_c" 1>&6
12291 echo "configure:12292: checking for db" >&5
12292 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12293 echo $ac_n "(cached) $ac_c" 1>&6
12296 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12304 echo "$ac_t""$ol_cv_mdbm" 1>&6
12305 if test $ol_cv_mdbm = yes ; then
12306 cat >> confdefs.h <<\EOF
12307 #define HAVE_MDBM 1
12313 if test $ol_cv_mdbm = yes ; then
12315 ol_with_ldbm_api=mdbm
12316 if test $ol_cv_lib_mdbm != yes ; then
12317 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12322 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12323 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12324 echo "configure:12325: checking for GDBM library" >&5
12325 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
12329 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12330 echo "configure:12331: checking for gdbm_open" >&5
12331 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 /* System header to define __stub macros and hopefully few prototypes,
12338 which can conflict with char gdbm_open(); below. */
12339 #include <assert.h>
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12348 /* The GNU C library defines this for functions which it implements
12349 to always fail with ENOSYS. Some functions are actually named
12350 something starting with __ and the normal name is an alias. */
12351 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12361 eval "ac_cv_func_gdbm_open=yes"
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12366 eval "ac_cv_func_gdbm_open=no"
12371 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12372 echo "$ac_t""yes" 1>&6
12375 echo "$ac_t""no" 1>&6
12377 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12378 echo "configure:12379: checking for gdbm_open in -lgdbm" >&5
12379 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12380 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12381 echo $ac_n "(cached) $ac_c" 1>&6
12383 ac_save_LIBS="$LIBS"
12384 LIBS="-lgdbm $LIBS"
12385 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure"
12387 #include "confdefs.h"
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 /* We use char because int might match the return type of a gcc2
12390 builtin and then its argument prototype would still apply. */
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12399 eval "ac_cv_lib_$ac_lib_var=yes"
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12404 eval "ac_cv_lib_$ac_lib_var=no"
12407 LIBS="$ac_save_LIBS"
12410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12411 echo "$ac_t""yes" 1>&6
12412 ol_cv_lib_gdbm=-lgdbm
12414 echo "$ac_t""no" 1>&6
12425 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12428 for ac_hdr in gdbm.h
12430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12432 echo "configure:12433: checking for $ac_hdr" >&5
12433 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12434 echo $ac_n "(cached) $ac_c" 1>&6
12436 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12442 { (eval echo configure:12443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12444 if test -z "$ac_err"; then
12446 eval "ac_cv_header_$ac_safe=yes"
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12452 eval "ac_cv_header_$ac_safe=no"
12456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12459 cat >> confdefs.h <<EOF
12460 #define $ac_tr_hdr 1
12464 echo "$ac_t""no" 1>&6
12468 echo $ac_n "checking for db""... $ac_c" 1>&6
12469 echo "configure:12470: checking for db" >&5
12470 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12471 echo $ac_n "(cached) $ac_c" 1>&6
12474 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12482 echo "$ac_t""$ol_cv_gdbm" 1>&6
12483 if test $ol_cv_gdbm = yes ; then
12484 cat >> confdefs.h <<\EOF
12485 #define HAVE_GDBM 1
12491 if test $ol_cv_gdbm = yes ; then
12493 ol_with_ldbm_api=gdbm
12495 if test $ol_cv_lib_gdbm != yes ; then
12496 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12501 if test $ol_with_ldbm_api = ndbm ; then
12502 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12503 echo "configure:12504: checking for NDBM library" >&5
12504 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12505 echo $ac_n "(cached) $ac_c" 1>&6
12508 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12509 echo "configure:12510: checking for dbm_open" >&5
12510 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12511 echo $ac_n "(cached) $ac_c" 1>&6
12513 cat > conftest.$ac_ext <<EOF
12514 #line 12515 "configure"
12515 #include "confdefs.h"
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char dbm_open(); below. */
12518 #include <assert.h>
12519 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12527 /* The GNU C library defines this for functions which it implements
12528 to always fail with ENOSYS. Some functions are actually named
12529 something starting with __ and the normal name is an alias. */
12530 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12538 if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12540 eval "ac_cv_func_dbm_open=yes"
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12545 eval "ac_cv_func_dbm_open=no"
12550 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12554 echo "$ac_t""no" 1>&6
12556 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12557 echo "configure:12558: checking for dbm_open in -lndbm" >&5
12558 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12559 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12560 echo $ac_n "(cached) $ac_c" 1>&6
12562 ac_save_LIBS="$LIBS"
12563 LIBS="-lndbm $LIBS"
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12576 if { (eval echo configure:12577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578 eval "ac_cv_lib_$ac_lib_var=yes"
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12583 eval "ac_cv_lib_$ac_lib_var=no"
12586 LIBS="$ac_save_LIBS"
12589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 ol_cv_lib_ndbm=-lndbm
12593 echo "$ac_t""no" 1>&6
12595 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12596 echo "configure:12597: checking for dbm_open in -ldbm" >&5
12597 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12598 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12599 echo $ac_n "(cached) $ac_c" 1>&6
12601 ac_save_LIBS="$LIBS"
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12617 eval "ac_cv_lib_$ac_lib_var=yes"
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12622 eval "ac_cv_lib_$ac_lib_var=no"
12625 LIBS="$ac_save_LIBS"
12628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12629 echo "$ac_t""yes" 1>&6
12630 ol_cv_lib_ndbm=-ldbm
12632 echo "$ac_t""no" 1>&6
12645 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12648 for ac_hdr in ndbm.h
12650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12652 echo "configure:12653: checking for $ac_hdr" >&5
12653 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12662 { (eval echo configure:12663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12664 if test -z "$ac_err"; then
12666 eval "ac_cv_header_$ac_safe=yes"
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12672 eval "ac_cv_header_$ac_safe=no"
12676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12677 echo "$ac_t""yes" 1>&6
12678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12679 cat >> confdefs.h <<EOF
12680 #define $ac_tr_hdr 1
12684 echo "$ac_t""no" 1>&6
12688 echo $ac_n "checking for db""... $ac_c" 1>&6
12689 echo "configure:12690: checking for db" >&5
12690 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12694 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12702 echo "$ac_t""$ol_cv_ndbm" 1>&6
12703 if test $ol_cv_ndbm = yes ; then
12704 cat >> confdefs.h <<\EOF
12705 #define HAVE_NDBM 1
12711 if test $ol_cv_ndbm = yes ; then
12713 ol_with_ldbm_api=ndbm
12715 if test $ol_cv_lib_ndbm != yes ; then
12716 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12721 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12722 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12723 if test $ol_enable_ldbm = yes ; then
12724 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12727 echo "configure: warning: disabling LDBM" 1>&2
12731 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12732 LINK_BINS_DYNAMIC="yes"
12734 LINK_BINS_DYNAMIC="no"
12737 if test $ol_enable_wrappers != no ; then
12738 for ac_hdr in tcpd.h
12740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12742 echo "configure:12743: checking for $ac_hdr" >&5
12743 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12744 echo $ac_n "(cached) $ac_c" 1>&6
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12752 { (eval echo configure:12753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12754 if test -z "$ac_err"; then
12756 eval "ac_cv_header_$ac_safe=yes"
12759 echo "configure: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12762 eval "ac_cv_header_$ac_safe=no"
12766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12767 echo "$ac_t""yes" 1>&6
12768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12769 cat >> confdefs.h <<EOF
12770 #define $ac_tr_hdr 1
12774 echo "$ac_t""no" 1>&6
12779 if test $ac_cv_header_tcpd_h != yes ; then
12782 cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12786 int allow_severity = 0;
12787 int deny_severity = 0;
12793 if { (eval echo configure:12794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12805 if test $have_wrappers = yes ; then
12806 cat >> confdefs.h <<\EOF
12807 #define HAVE_TCPD 1
12812 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12813 echo "configure:12814: checking for main in -lnsl" >&5
12814 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12815 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12818 ac_save_LIBS="$LIBS"
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12828 if { (eval echo configure:12829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830 eval "ac_cv_lib_$ac_lib_var=yes"
12832 echo "configure: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12835 eval "ac_cv_lib_$ac_lib_var=no"
12838 LIBS="$ac_save_LIBS"
12841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12843 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12845 cat >> confdefs.h <<EOF
12846 #define $ac_tr_lib 1
12852 echo "$ac_t""no" 1>&6
12856 echo "configure: warning: could not find -lwrap" 1>&2
12857 if test $ol_enable_wrappers = yes ; then
12858 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12861 echo "configure: warning: disabling wrappers support" 1>&2
12862 ol_enable_wrappers=no
12867 if test $ol_enable_syslog != no ; then
12868 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12869 echo "configure:12870: checking for openlog" >&5
12870 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12873 cat > conftest.$ac_ext <<EOF
12874 #line 12875 "configure"
12875 #include "confdefs.h"
12876 /* System header to define __stub macros and hopefully few prototypes,
12877 which can conflict with char openlog(); below. */
12878 #include <assert.h>
12879 /* Override any gcc2 internal prototype to avoid an error. */
12880 /* We use char because int might match the return type of a gcc2
12881 builtin and then its argument prototype would still apply. */
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined (__stub_openlog) || defined (__stub___openlog)
12898 if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12900 eval "ac_cv_func_openlog=yes"
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12905 eval "ac_cv_func_openlog=no"
12910 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12914 echo "$ac_t""no" 1>&6
12917 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12918 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12920 ol_enable_syslog=$ac_cv_func_openlog
12924 for ac_hdr in termcap.h ncurses.h
12926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_hdr" >&5
12929 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12938 { (eval echo configure:12939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12940 if test -z "$ac_err"; then
12942 eval "ac_cv_header_$ac_safe=yes"
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12948 eval "ac_cv_header_$ac_safe=no"
12952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12953 echo "$ac_t""yes" 1>&6
12954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12955 cat >> confdefs.h <<EOF
12956 #define $ac_tr_hdr 1
12960 echo "$ac_t""no" 1>&6
12965 if test $ol_link_termcap = no ; then
12966 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12967 echo "configure:12968: checking for tputs in -ltermcap" >&5
12968 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12970 echo $ac_n "(cached) $ac_c" 1>&6
12972 ac_save_LIBS="$LIBS"
12973 LIBS="-ltermcap $LIBS"
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12986 if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12988 eval "ac_cv_lib_$ac_lib_var=yes"
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 eval "ac_cv_lib_$ac_lib_var=no"
12996 LIBS="$ac_save_LIBS"
12999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13000 echo "$ac_t""yes" 1>&6
13003 echo "$ac_t""no" 1>&6
13007 if test $have_termcap = yes ; then
13008 cat >> confdefs.h <<\EOF
13009 #define HAVE_TERMCAP 1
13012 ol_link_termcap=yes
13013 TERMCAP_LIBS=-ltermcap
13017 if test $ol_link_termcap = no ; then
13018 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13019 echo "configure:13020: checking for initscr in -lncurses" >&5
13020 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13024 ac_save_LIBS="$LIBS"
13025 LIBS="-lncurses $LIBS"
13026 cat > conftest.$ac_ext <<EOF
13027 #line 13028 "configure"
13028 #include "confdefs.h"
13029 /* Override any gcc2 internal prototype to avoid an error. */
13030 /* We use char because int might match the return type of a gcc2
13031 builtin and then its argument prototype would still apply. */
13038 if { (eval echo configure:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13040 eval "ac_cv_lib_$ac_lib_var=yes"
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13045 eval "ac_cv_lib_$ac_lib_var=no"
13048 LIBS="$ac_save_LIBS"
13051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13052 echo "$ac_t""yes" 1>&6
13055 echo "$ac_t""no" 1>&6
13059 if test $have_ncurses = yes ; then
13060 cat >> confdefs.h <<\EOF
13061 #define HAVE_NCURSES 1
13064 ol_link_termcap=yes
13065 TERMCAP_LIBS=-lncurses
13069 if test $ol_link_termcap = no ; then
13070 cat >> confdefs.h <<\EOF
13071 #define NO_TERMCAP 1
13079 if test $ol_with_cyrus_sasl != no ; then
13080 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13081 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13082 echo "configure:13083: checking for sasl.h" >&5
13083 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 cat > conftest.$ac_ext <<EOF
13087 #line 13088 "configure"
13088 #include "confdefs.h"
13091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13092 { (eval echo configure:13093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13094 if test -z "$ac_err"; then
13096 eval "ac_cv_header_$ac_safe=yes"
13099 echo "configure: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13102 eval "ac_cv_header_$ac_safe=no"
13106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13107 echo "$ac_t""yes" 1>&6
13110 echo "$ac_t""no" 1>&6
13114 if test $ac_cv_header_sasl_h = yes ; then
13115 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13116 echo "configure:13117: checking for sasl_client_init in -lsasl" >&5
13117 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13118 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13119 echo $ac_n "(cached) $ac_c" 1>&6
13121 ac_save_LIBS="$LIBS"
13122 LIBS="-lsasl $LIBS"
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 /* Override any gcc2 internal prototype to avoid an error. */
13127 /* We use char because int might match the return type of a gcc2
13128 builtin and then its argument prototype would still apply. */
13129 char sasl_client_init();
13135 if { (eval echo configure:13136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13137 eval "ac_cv_lib_$ac_lib_var=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_lib_$ac_lib_var=no"
13145 LIBS="$ac_save_LIBS"
13148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13149 echo "$ac_t""yes" 1>&6
13150 have_cyrus_sasl=yes
13152 echo "$ac_t""no" 1>&6
13157 if test $have_cyrus_sasl != no ; then
13159 cat >> confdefs.h <<\EOF
13160 #define HAVE_CYRUS_SASL 1
13167 if test $ol_link_sasl = no ; then
13168 if test $ol_with_cyrus_sasl != auto ; then
13169 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13171 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13172 echo "configure: warning: SASL authentication not supported!" 1>&2
13173 if test $ol_link_tls = no ; then
13174 echo "configure: warning: Strong authentication not supported!" 1>&2
13179 echo "configure: warning: SASL authentication not supported!" 1>&2
13180 if test $ol_link_tls = no ; then
13181 echo "configure: warning: Strong authentication not supported!" 1>&2
13185 if test $cross_compiling != yes ; then
13187 if test -r /dev/urandom ; then
13188 dev="/dev/urandom";
13189 elif test -r /idev/urandom ; then
13190 dev="/idev/urandom";
13191 elif test -r /dev/srandom ; then
13192 dev="/dev/srandom";
13193 elif test -r /dev/random ; then
13195 elif test -r /idev/random ; then
13196 dev="/idev/random";
13199 if test $dev != no ; then
13200 cat >> confdefs.h <<EOF
13201 #define URANDOM_DEVICE "$dev"
13208 if test $ol_with_fetch != no ; then
13210 LIBS="-lfetch -lcom_err $LIBS"
13211 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13212 echo "configure:13213: checking fetch(3) library" >&5
13213 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13217 cat > conftest.$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13221 #include <sys/param.h>
13225 struct url *u = fetchParseURL("file:///");
13228 if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13230 ol_cv_lib_fetch=yes
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13240 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13242 if test $ol_cv_lib_fetch != no ; then
13243 ol_link_fetch="-lfetch -lcom_err"
13244 cat >> confdefs.h <<\EOF
13245 #define HAVE_FETCH 1
13251 if test $ol_cv_lib_fetch != no ; then
13252 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13253 ol_link_fetch=freebsd
13255 elif test $ol_with_fetch != auto ; then
13256 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13260 ol_link_readline=no
13261 if test $ol_with_readline != no ; then
13262 for ac_hdr in readline/readline.h readline/history.h
13264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13266 echo "configure:13267: checking for $ac_hdr" >&5
13267 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
13270 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure"
13272 #include "confdefs.h"
13275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13276 { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13278 if test -z "$ac_err"; then
13280 eval "ac_cv_header_$ac_safe=yes"
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13286 eval "ac_cv_header_$ac_safe=no"
13290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13291 echo "$ac_t""yes" 1>&6
13292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13293 cat >> confdefs.h <<EOF
13294 #define $ac_tr_hdr 1
13298 echo "$ac_t""no" 1>&6
13303 if test $ac_cv_header_readline_readline_h = yes ; then
13305 LIBS="$TERMCAP_LIBS $LIBS"
13306 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13307 echo "configure:13308: checking for readline in -lreadline" >&5
13308 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13310 echo $ac_n "(cached) $ac_c" 1>&6
13312 ac_save_LIBS="$LIBS"
13313 LIBS="-lreadline $LIBS"
13314 cat > conftest.$ac_ext <<EOF
13315 #line 13316 "configure"
13316 #include "confdefs.h"
13317 /* Override any gcc2 internal prototype to avoid an error. */
13318 /* We use char because int might match the return type of a gcc2
13319 builtin and then its argument prototype would still apply. */
13326 if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13328 eval "ac_cv_lib_$ac_lib_var=yes"
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13333 eval "ac_cv_lib_$ac_lib_var=no"
13336 LIBS="$ac_save_LIBS"
13339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13340 echo "$ac_t""yes" 1>&6
13343 echo "$ac_t""no" 1>&6
13349 if test $have_readline = yes ; then
13350 ol_with_readline=found
13351 ol_link_readline=yes
13353 READLINE_LIBS="-lreadline"
13358 if test $ol_link_readline = yes ; then
13359 cat >> confdefs.h <<\EOF
13360 #define HAVE_READLINE 1
13366 if test $ol_enable_crypt != no ; then
13367 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13368 echo "configure:13369: checking for crypt" >&5
13369 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13370 echo $ac_n "(cached) $ac_c" 1>&6
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 /* System header to define __stub macros and hopefully few prototypes,
13376 which can conflict with char crypt(); below. */
13377 #include <assert.h>
13378 /* Override any gcc2 internal prototype to avoid an error. */
13379 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */
13386 /* The GNU C library defines this for functions which it implements
13387 to always fail with ENOSYS. Some functions are actually named
13388 something starting with __ and the normal name is an alias. */
13389 #if defined (__stub_crypt) || defined (__stub___crypt)
13397 if { (eval echo configure:13398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13399 eval "ac_cv_func_crypt=yes"
13401 echo "configure: failed program was:" >&5
13402 cat conftest.$ac_ext >&5
13404 eval "ac_cv_func_crypt=no"
13409 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13413 echo "$ac_t""no" 1>&6
13415 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13416 echo "configure:13417: checking for crypt in -lcrypt" >&5
13417 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13421 ac_save_LIBS="$LIBS"
13422 LIBS="-lcrypt $LIBS"
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 /* Override any gcc2 internal prototype to avoid an error. */
13427 /* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13437 eval "ac_cv_lib_$ac_lib_var=yes"
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13442 eval "ac_cv_lib_$ac_lib_var=no"
13445 LIBS="$ac_save_LIBS"
13448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13450 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13453 echo "$ac_t""no" 1>&6
13460 if test $have_crypt = yes ; then
13461 cat >> confdefs.h <<\EOF
13462 #define HAVE_CRYPT 1
13466 echo "configure: warning: could not find crypt" 1>&2
13467 if test $ol_enable_crypt = yes ; then
13468 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13471 echo "configure: warning: disabling crypt support" 1>&2
13476 if test $ol_enable_proctitle != no ; then
13477 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13478 echo "configure:13479: checking for setproctitle" >&5
13479 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13480 echo $ac_n "(cached) $ac_c" 1>&6
13482 cat > conftest.$ac_ext <<EOF
13483 #line 13484 "configure"
13484 #include "confdefs.h"
13485 /* System header to define __stub macros and hopefully few prototypes,
13486 which can conflict with char setproctitle(); below. */
13487 #include <assert.h>
13488 /* Override any gcc2 internal prototype to avoid an error. */
13489 /* We use char because int might match the return type of a gcc2
13490 builtin and then its argument prototype would still apply. */
13491 char setproctitle();
13496 /* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13507 if { (eval echo configure:13508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13509 eval "ac_cv_func_setproctitle=yes"
13511 echo "configure: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13514 eval "ac_cv_func_setproctitle=no"
13519 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13520 echo "$ac_t""yes" 1>&6
13521 have_setproctitle=yes
13523 echo "$ac_t""no" 1>&6
13525 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13526 echo "configure:13527: checking for setproctitle in -lutil" >&5
13527 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13528 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13531 ac_save_LIBS="$LIBS"
13532 LIBS="-lutil $LIBS"
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13539 char setproctitle();
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 eval "ac_cv_lib_$ac_lib_var=no"
13555 LIBS="$ac_save_LIBS"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 have_setproctitle=yes
13561 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13563 echo "$ac_t""no" 1>&6
13564 have_setproctitle=no
13565 LIBOBJS="$LIBOBJS setproctitle.o"
13566 LIBSRCS="$LIBSRCS setproctitle.c"
13572 if test $have_setproctitle = yes ; then
13573 cat >> confdefs.h <<\EOF
13574 #define HAVE_SETPROCTITLE 1
13580 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13581 echo "configure:13582: checking for ANSI C header files" >&5
13582 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13585 cat > conftest.$ac_ext <<EOF
13586 #line 13587 "configure"
13587 #include "confdefs.h"
13588 #include <stdlib.h>
13589 #include <stdarg.h>
13590 #include <string.h>
13593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13594 { (eval echo configure:13595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13596 if test -z "$ac_err"; then
13598 ac_cv_header_stdc=yes
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13604 ac_cv_header_stdc=no
13608 if test $ac_cv_header_stdc = yes; then
13609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13613 #include <string.h>
13615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 egrep "memchr" >/dev/null 2>&1; then
13620 ac_cv_header_stdc=no
13626 if test $ac_cv_header_stdc = yes; then
13627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 #include <stdlib.h>
13633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13634 egrep "free" >/dev/null 2>&1; then
13638 ac_cv_header_stdc=no
13644 if test $ac_cv_header_stdc = yes; then
13645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13646 if test "$cross_compiling" = yes; then
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13653 #if ((' ' & 0x0FF) == 0x020)
13654 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13655 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13657 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13658 || ('j' <= (c) && (c) <= 'r') \
13659 || ('s' <= (c) && (c) <= 'z'))
13660 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13663 int main () { int i; for (i = 0; i < 256; i++)
13664 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13675 ac_cv_header_stdc=no
13683 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13684 if test $ac_cv_header_stdc = yes; then
13685 cat >> confdefs.h <<\EOF
13686 #define STDC_HEADERS 1
13691 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13692 echo "configure:13693: checking for mode_t" >&5
13693 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13694 echo $ac_n "(cached) $ac_c" 1>&6
13696 cat > conftest.$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 #include <sys/types.h>
13701 #include <stdlib.h>
13702 #include <stddef.h>
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13709 eval "ac_cv_type_mode_t=yes"
13712 eval "ac_cv_type_mode_t=no"
13717 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13718 echo "$ac_t""yes" 1>&6
13720 echo "$ac_t""no" 1>&6
13721 cat >> confdefs.h <<EOF
13727 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13728 echo "configure:13729: checking for off_t" >&5
13729 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13730 echo $ac_n "(cached) $ac_c" 1>&6
13732 cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure"
13734 #include "confdefs.h"
13735 #include <sys/types.h>
13737 #include <stdlib.h>
13738 #include <stddef.h>
13742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13743 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13745 eval "ac_cv_type_off_t=yes"
13748 eval "ac_cv_type_off_t=no"
13753 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13754 echo "$ac_t""yes" 1>&6
13756 echo "$ac_t""no" 1>&6
13757 cat >> confdefs.h <<EOF
13763 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13764 echo "configure:13765: checking for pid_t" >&5
13765 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13768 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure"
13770 #include "confdefs.h"
13771 #include <sys/types.h>
13773 #include <stdlib.h>
13774 #include <stddef.h>
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13781 eval "ac_cv_type_pid_t=yes"
13784 eval "ac_cv_type_pid_t=no"
13789 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
13792 echo "$ac_t""no" 1>&6
13793 cat >> confdefs.h <<EOF
13799 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13800 echo "configure:13801: checking for ptrdiff_t" >&5
13801 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13802 echo $ac_n "(cached) $ac_c" 1>&6
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13807 #include <stddef.h>
13812 if { (eval echo configure:13813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13814 am_cv_type_ptrdiff_t=yes
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13819 am_cv_type_ptrdiff_t=no
13824 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13825 if test $am_cv_type_ptrdiff_t = yes; then
13826 cat >> confdefs.h <<\EOF
13827 #define HAVE_PTRDIFF_T 1
13832 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13833 echo "configure:13834: checking return type of signal handlers" >&5
13834 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13835 echo $ac_n "(cached) $ac_c" 1>&6
13837 cat > conftest.$ac_ext <<EOF
13838 #line 13839 "configure"
13839 #include "confdefs.h"
13840 #include <sys/types.h>
13841 #include <signal.h>
13846 extern "C" void (*signal (int, void (*)(int)))(int);
13848 void (*signal ()) ();
13855 if { (eval echo configure:13856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13857 ac_cv_type_signal=void
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13862 ac_cv_type_signal=int
13867 echo "$ac_t""$ac_cv_type_signal" 1>&6
13868 cat >> confdefs.h <<EOF
13869 #define RETSIGTYPE $ac_cv_type_signal
13873 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13874 echo "configure:13875: checking for size_t" >&5
13875 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 #include <sys/types.h>
13883 #include <stdlib.h>
13884 #include <stddef.h>
13888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13889 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13891 eval "ac_cv_type_size_t=yes"
13894 eval "ac_cv_type_size_t=no"
13899 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13902 echo "$ac_t""no" 1>&6
13903 cat >> confdefs.h <<EOF
13904 #define size_t unsigned
13910 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13911 echo "configure:13912: checking for ssize_t" >&5
13912 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13913 echo $ac_n "(cached) $ac_c" 1>&6
13915 cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13918 #include <sys/types.h>
13920 #include <stdlib.h>
13921 #include <stddef.h>
13925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13926 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13928 eval "ac_cv_type_ssize_t=yes"
13931 eval "ac_cv_type_ssize_t=no"
13936 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13937 echo "$ac_t""yes" 1>&6
13939 echo "$ac_t""no" 1>&6
13940 cat >> confdefs.h <<EOF
13941 #define ssize_t signed int
13946 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13947 echo "configure:13948: checking for caddr_t" >&5
13948 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13951 cat > conftest.$ac_ext <<EOF
13952 #line 13953 "configure"
13953 #include "confdefs.h"
13954 #include <sys/types.h>
13956 #include <stdlib.h>
13957 #include <stddef.h>
13961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13962 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13964 eval "ac_cv_type_caddr_t=yes"
13967 eval "ac_cv_type_caddr_t=no"
13972 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13973 echo "$ac_t""yes" 1>&6
13975 echo "$ac_t""no" 1>&6
13976 cat >> confdefs.h <<EOF
13977 #define caddr_t char *
13983 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13984 echo "configure:13985: checking for socklen_t" >&5
13985 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13988 cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure"
13990 #include "confdefs.h"
13992 #ifdef HAVE_SYS_TYPES_H
13993 #include <sys/types.h>
13995 #ifdef HAVE_SYS_SOCKET_H
13996 #include <sys/socket.h>
14003 if { (eval echo configure:14004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14005 ol_cv_type_socklen_t=yes
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14010 ol_cv_type_socklen_t=no
14015 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14016 if test $ol_cv_type_socklen_t = no; then
14017 cat >> confdefs.h <<\EOF
14018 #define socklen_t int
14023 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14024 echo "configure:14025: checking for member st_blksize in aggregate type struct stat" >&5
14025 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14026 echo $ac_n "(cached) $ac_c" 1>&6
14028 cat > conftest.$ac_ext <<EOF
14029 #line 14030 "configure"
14030 #include "confdefs.h"
14031 #include <sys/types.h>
14032 #include <sys/stat.h>
14034 struct stat foo; foo.st_blksize;
14037 if { (eval echo configure:14038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14039 ac_cv_c_struct_member_st_blksize=yes
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14044 ac_cv_c_struct_member_st_blksize=no
14049 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14050 st_blksize="$ac_cv_c_struct_member_st_blksize"
14051 if test $ac_cv_c_struct_member_st_blksize = yes; then
14052 cat >> confdefs.h <<\EOF
14053 #define HAVE_ST_BLKSIZE 1
14058 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14059 echo "configure:14060: checking whether time.h and sys/time.h may both be included" >&5
14060 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066 #include <sys/types.h>
14067 #include <sys/time.h>
14073 if { (eval echo configure:14074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14075 ac_cv_header_time=yes
14077 echo "configure: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14080 ac_cv_header_time=no
14085 echo "$ac_t""$ac_cv_header_time" 1>&6
14086 if test $ac_cv_header_time = yes; then
14087 cat >> confdefs.h <<\EOF
14088 #define TIME_WITH_SYS_TIME 1
14093 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14094 echo "configure:14095: checking whether struct tm is in sys/time.h or time.h" >&5
14095 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14098 cat > conftest.$ac_ext <<EOF
14099 #line 14100 "configure"
14100 #include "confdefs.h"
14101 #include <sys/types.h>
14104 struct tm *tp; tp->tm_sec;
14107 if { (eval echo configure:14108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14109 ac_cv_struct_tm=time.h
14111 echo "configure: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14114 ac_cv_struct_tm=sys/time.h
14119 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14120 if test $ac_cv_struct_tm = sys/time.h; then
14121 cat >> confdefs.h <<\EOF
14122 #define TM_IN_SYS_TIME 1
14127 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14128 echo "configure:14129: checking for uid_t in sys/types.h" >&5
14129 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 #include <sys/types.h>
14137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14138 egrep "uid_t" >/dev/null 2>&1; then
14140 ac_cv_type_uid_t=yes
14143 ac_cv_type_uid_t=no
14149 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14150 if test $ac_cv_type_uid_t = no; then
14151 cat >> confdefs.h <<\EOF
14155 cat >> confdefs.h <<\EOF
14161 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14162 echo "configure:14163: checking for sig_atomic_t" >&5
14163 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14164 echo $ac_n "(cached) $ac_c" 1>&6
14166 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14169 #include <signal.h>
14171 sig_atomic_t atomic;
14174 if { (eval echo configure:14175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14176 ol_cv_type_sig_atomic_t=yes
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14181 ol_cv_type_sig_atomic_t=no
14186 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14187 if test $ol_cv_type_sig_atomic_t = no; then
14188 cat >> confdefs.h <<\EOF
14189 #define sig_atomic_t int
14196 # test for pw_gecos in struct passwd
14197 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14198 echo "configure:14199: checking struct passwd for pw_gecos" >&5
14199 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14200 echo $ac_n "(cached) $ac_c" 1>&6
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14210 pwd.pw_gecos = pwd.pw_name;
14214 if { (eval echo configure:14215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14216 ol_cv_struct_passwd_pw_gecos=yes
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14221 ol_cv_struct_passwd_pw_gecos=no
14226 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14227 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14228 cat >> confdefs.h <<\EOF
14229 #define HAVE_PW_GECOS 1
14234 # test for pw_passwd in struct passwd
14235 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14236 echo "configure:14237: checking struct passwd for pw_passwd" >&5
14237 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14241 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14248 pwd.pw_passwd = pwd.pw_name;
14252 if { (eval echo configure:14253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14254 ol_cv_struct_passwd_pw_passwd=yes
14256 echo "configure: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14259 ol_cv_struct_passwd_pw_passwd=no
14264 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14265 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14266 cat >> confdefs.h <<\EOF
14267 #define HAVE_PW_PASSWD 1
14273 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14274 echo "configure:14275: checking if toupper() requires islower()" >&5
14275 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14276 echo $ac_n "(cached) $ac_c" 1>&6
14279 if test "$cross_compiling" = yes; then
14280 ol_cv_c_upper_lower=safe
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14289 if ('C' == toupper('C'))
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14297 ol_cv_c_upper_lower=no
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14302 ol_cv_c_upper_lower=yes
14309 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14310 if test $ol_cv_c_upper_lower != no ; then
14311 cat >> confdefs.h <<\EOF
14312 #define C_UPPER_LOWER 1
14317 echo $ac_n "checking for working const""... $ac_c" 1>&6
14318 echo "configure:14319: checking for working const" >&5
14319 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14320 echo $ac_n "(cached) $ac_c" 1>&6
14322 cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14328 /* Ultrix mips cc rejects this. */
14329 typedef int charset[2]; const charset x;
14330 /* SunOS 4.1.1 cc rejects this. */
14331 char const *const *ccp;
14333 /* NEC SVR4.0.2 mips cc rejects this. */
14334 struct point {int x, y;};
14335 static struct point const zero = {0,0};
14336 /* AIX XL C 1.02.0.0 rejects this.
14337 It does not let you subtract one const X* pointer from another in an arm
14338 of an if-expression whose if-part is not a constant expression */
14339 const char *g = "string";
14340 ccp = &g + (g ? g-g : 0);
14341 /* HPUX 7.0 cc rejects these. */
14344 ccp = (char const *const *) p;
14345 { /* SCO 3.2v4 cc rejects this. */
14347 char const *s = 0 ? (char *) 0 : (char const *) 0;
14351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14352 int x[] = {25, 17};
14353 const int *foo = &x[0];
14356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14357 typedef const int *iptr;
14361 { /* AIX XL C 1.02.0.0 rejects this saying
14362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14363 struct s { int j; const int *ap[3]; };
14364 struct s *b; b->j = 5;
14366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14367 const int foo = 10;
14372 if { (eval echo configure:14373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14376 echo "configure: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14384 echo "$ac_t""$ac_cv_c_const" 1>&6
14385 if test $ac_cv_c_const = no; then
14386 cat >> confdefs.h <<\EOF
14392 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14393 echo "configure:14394: checking if compiler understands volatile" >&5
14394 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14395 echo $ac_n "(cached) $ac_c" 1>&6
14397 cat > conftest.$ac_ext <<EOF
14398 #line 14399 "configure"
14399 #include "confdefs.h"
14402 volatile int a; int * volatile b = x ? &y : &z;
14403 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14407 if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14409 ol_cv_c_volatile=yes
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14414 ol_cv_c_volatile=no
14419 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14420 if test $ol_cv_c_volatile = yes; then
14423 cat >> confdefs.h <<\EOF
14430 if test $cross_compiling = yes ; then
14431 cat >> confdefs.h <<\EOF
14432 #define CROSS_COMPILING 1
14436 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14437 echo "configure:14438: checking whether byte ordering is bigendian" >&5
14438 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14439 echo $ac_n "(cached) $ac_c" 1>&6
14441 ac_cv_c_bigendian=unknown
14442 # See if sys/param.h defines the BYTE_ORDER macro.
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 #include <sys/types.h>
14447 #include <sys/param.h>
14450 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14451 bogus endian macros
14455 if { (eval echo configure:14456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14457 # It does; now see whether it defined to BIG_ENDIAN or not.
14458 cat > conftest.$ac_ext <<EOF
14459 #line 14460 "configure"
14460 #include "confdefs.h"
14461 #include <sys/types.h>
14462 #include <sys/param.h>
14465 #if BYTE_ORDER != BIG_ENDIAN
14470 if { (eval echo configure:14471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14472 ac_cv_c_bigendian=yes
14474 echo "configure: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14477 ac_cv_c_bigendian=no
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14485 if test $ac_cv_c_bigendian = unknown; then
14486 if test "$cross_compiling" = yes; then
14487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14489 cat > conftest.$ac_ext <<EOF
14490 #line 14491 "configure"
14491 #include "confdefs.h"
14493 /* Are we little or big endian? From Harbison&Steele. */
14497 char c[sizeof (long)];
14500 exit (u.c[sizeof (long) - 1] == 1);
14503 if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14505 ac_cv_c_bigendian=no
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14510 ac_cv_c_bigendian=yes
14518 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14519 if test $ac_cv_c_bigendian = yes; then
14520 cat >> confdefs.h <<\EOF
14521 #define WORDS_BIGENDIAN 1
14528 echo $ac_n "checking size of short""... $ac_c" 1>&6
14529 echo "configure:14530: checking size of short" >&5
14530 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14533 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14534 cat > conftest.$ac_ext <<EOF
14535 #line 14536 "configure"
14536 #include "confdefs.h"
14537 #include "confdefs.h"
14538 #include <sys/types.h>
14542 switch (0) case 0: case (sizeof (short) == $ac_size):;
14545 if { (eval echo configure:14546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14547 ac_cv_sizeof_short=$ac_size
14549 echo "configure: failed program was:" >&5
14550 cat conftest.$ac_ext >&5
14553 if test x$ac_cv_sizeof_short != x ; then break; fi
14558 if test x$ac_cv_sizeof_short = x ; then
14559 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14561 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14562 cat >> confdefs.h <<EOF
14563 #define SIZEOF_SHORT $ac_cv_sizeof_short
14567 echo $ac_n "checking size of int""... $ac_c" 1>&6
14568 echo "configure:14569: checking size of int" >&5
14569 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14572 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14573 cat > conftest.$ac_ext <<EOF
14574 #line 14575 "configure"
14575 #include "confdefs.h"
14576 #include "confdefs.h"
14577 #include <sys/types.h>
14581 switch (0) case 0: case (sizeof (int) == $ac_size):;
14584 if { (eval echo configure:14585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14586 ac_cv_sizeof_int=$ac_size
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14592 if test x$ac_cv_sizeof_int != x ; then break; fi
14597 if test x$ac_cv_sizeof_int = x ; then
14598 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14600 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14601 cat >> confdefs.h <<EOF
14602 #define SIZEOF_INT $ac_cv_sizeof_int
14606 echo $ac_n "checking size of long""... $ac_c" 1>&6
14607 echo "configure:14608: checking size of long" >&5
14608 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14611 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14612 cat > conftest.$ac_ext <<EOF
14613 #line 14614 "configure"
14614 #include "confdefs.h"
14615 #include "confdefs.h"
14616 #include <sys/types.h>
14620 switch (0) case 0: case (sizeof (long) == $ac_size):;
14623 if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14625 ac_cv_sizeof_long=$ac_size
14627 echo "configure: failed program was:" >&5
14628 cat conftest.$ac_ext >&5
14631 if test x$ac_cv_sizeof_long != x ; then break; fi
14636 if test x$ac_cv_sizeof_long = x ; then
14637 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14639 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14640 cat >> confdefs.h <<EOF
14641 #define SIZEOF_LONG $ac_cv_sizeof_long
14646 if test "$ac_cv_sizeof_int" -lt 4 ; then
14647 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14649 cat >> confdefs.h <<\EOF
14650 #define LBER_INT_T long
14654 cat >> confdefs.h <<\EOF
14655 #define LBER_INT_T int
14660 cat >> confdefs.h <<\EOF
14661 #define LBER_LEN_T long
14664 cat >> confdefs.h <<\EOF
14665 #define LBER_SOCKET_T int
14668 cat >> confdefs.h <<\EOF
14669 #define LBER_TAG_T long
14673 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14674 echo "configure:14675: checking for 8-bit clean memcmp" >&5
14675 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14676 echo $ac_n "(cached) $ac_c" 1>&6
14678 if test "$cross_compiling" = yes; then
14679 ac_cv_func_memcmp_clean=no
14681 cat > conftest.$ac_ext <<EOF
14682 #line 14683 "configure"
14683 #include "confdefs.h"
14687 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14688 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14692 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14694 ac_cv_func_memcmp_clean=yes
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14699 ac_cv_func_memcmp_clean=no
14706 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14707 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14709 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14710 echo "configure:14711: checking for strftime" >&5
14711 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14712 echo $ac_n "(cached) $ac_c" 1>&6
14714 cat > conftest.$ac_ext <<EOF
14715 #line 14716 "configure"
14716 #include "confdefs.h"
14717 /* System header to define __stub macros and hopefully few prototypes,
14718 which can conflict with char strftime(); below. */
14719 #include <assert.h>
14720 /* Override any gcc2 internal prototype to avoid an error. */
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14728 /* The GNU C library defines this for functions which it implements
14729 to always fail with ENOSYS. Some functions are actually named
14730 something starting with __ and the normal name is an alias. */
14731 #if defined (__stub_strftime) || defined (__stub___strftime)
14739 if { (eval echo configure:14740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14741 eval "ac_cv_func_strftime=yes"
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14746 eval "ac_cv_func_strftime=no"
14751 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14752 echo "$ac_t""yes" 1>&6
14753 cat >> confdefs.h <<\EOF
14754 #define HAVE_STRFTIME 1
14758 echo "$ac_t""no" 1>&6
14759 # strftime is in -lintl on SCO UNIX.
14760 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14761 echo "configure:14762: checking for strftime in -lintl" >&5
14762 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14764 echo $ac_n "(cached) $ac_c" 1>&6
14766 ac_save_LIBS="$LIBS"
14767 LIBS="-lintl $LIBS"
14768 cat > conftest.$ac_ext <<EOF
14769 #line 14770 "configure"
14770 #include "confdefs.h"
14771 /* Override any gcc2 internal prototype to avoid an error. */
14772 /* We use char because int might match the return type of a gcc2
14773 builtin and then its argument prototype would still apply. */
14780 if { (eval echo configure:14781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14782 eval "ac_cv_lib_$ac_lib_var=yes"
14784 echo "configure: failed program was:" >&5
14785 cat conftest.$ac_ext >&5
14787 eval "ac_cv_lib_$ac_lib_var=no"
14790 LIBS="$ac_save_LIBS"
14793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14794 echo "$ac_t""yes" 1>&6
14795 cat >> confdefs.h <<\EOF
14796 #define HAVE_STRFTIME 1
14799 LIBS="-lintl $LIBS"
14801 echo "$ac_t""no" 1>&6
14807 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14808 echo "configure:14809: checking for inet_aton()" >&5
14809 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14810 echo $ac_n "(cached) $ac_c" 1>&6
14812 cat > conftest.$ac_ext <<EOF
14813 #line 14814 "configure"
14814 #include "confdefs.h"
14816 #ifdef HAVE_SYS_TYPES_H
14817 # include <sys/types.h>
14819 #ifdef HAVE_SYS_SOCKET_H
14820 # include <sys/socket.h>
14821 # ifdef HAVE_SYS_SELECT_H
14822 # include <sys/select.h>
14824 # include <netinet/in.h>
14825 # ifdef HAVE_ARPA_INET_H
14826 # include <arpa/inet.h>
14832 int rc = inet_aton( "255.255.255.255", &in );
14835 if { (eval echo configure:14836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14837 ol_cv_func_inet_aton=yes
14839 echo "configure: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14842 ol_cv_func_inet_aton=no
14847 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14848 if test $ol_cv_func_inet_aton != no; then
14849 cat >> confdefs.h <<\EOF
14850 #define HAVE_INET_ATON 1
14856 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14857 echo "configure:14858: checking for _spawnlp" >&5
14858 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14859 echo $ac_n "(cached) $ac_c" 1>&6
14861 cat > conftest.$ac_ext <<EOF
14862 #line 14863 "configure"
14863 #include "confdefs.h"
14864 /* System header to define __stub macros and hopefully few prototypes,
14865 which can conflict with char _spawnlp(); below. */
14866 #include <assert.h>
14867 /* Override any gcc2 internal prototype to avoid an error. */
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14875 /* The GNU C library defines this for functions which it implements
14876 to always fail with ENOSYS. Some functions are actually named
14877 something starting with __ and the normal name is an alias. */
14878 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14886 if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888 eval "ac_cv_func__spawnlp=yes"
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14893 eval "ac_cv_func__spawnlp=no"
14898 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14899 echo "$ac_t""yes" 1>&6
14900 cat >> confdefs.h <<\EOF
14901 #define HAVE_SPAWNLP 1
14905 echo "$ac_t""no" 1>&6
14909 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14910 echo "configure:14911: checking for _snprintf" >&5
14911 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char _snprintf(); below. */
14919 #include <assert.h>
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 /* We use char because int might match the return type of a gcc2
14922 builtin and then its argument prototype would still apply. */
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14939 if { (eval echo configure:14940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14941 eval "ac_cv_func__snprintf=yes"
14943 echo "configure: failed program was:" >&5
14944 cat conftest.$ac_ext >&5
14946 eval "ac_cv_func__snprintf=no"
14951 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14952 echo "$ac_t""yes" 1>&6
14953 ac_cv_func_snprintf=yes
14954 cat >> confdefs.h <<\EOF
14955 #define snprintf _snprintf
14960 echo "$ac_t""no" 1>&6
14964 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14965 echo "configure:14966: checking for _vsnprintf" >&5
14966 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14967 echo $ac_n "(cached) $ac_c" 1>&6
14969 cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14972 /* System header to define __stub macros and hopefully few prototypes,
14973 which can conflict with char _vsnprintf(); below. */
14974 #include <assert.h>
14975 /* Override any gcc2 internal prototype to avoid an error. */
14976 /* We use char because int might match the return type of a gcc2
14977 builtin and then its argument prototype would still apply. */
14983 /* The GNU C library defines this for functions which it implements
14984 to always fail with ENOSYS. Some functions are actually named
14985 something starting with __ and the normal name is an alias. */
14986 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14994 if { (eval echo configure:14995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14996 eval "ac_cv_func__vsnprintf=yes"
14998 echo "configure: failed program was:" >&5
14999 cat conftest.$ac_ext >&5
15001 eval "ac_cv_func__vsnprintf=no"
15006 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15007 echo "$ac_t""yes" 1>&6
15008 ac_cv_func_vsnprintf=yes
15009 cat >> confdefs.h <<\EOF
15010 #define vsnprintf _vsnprintf
15015 echo "$ac_t""no" 1>&6
15019 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15020 echo "configure:15021: checking for vprintf" >&5
15021 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15022 echo $ac_n "(cached) $ac_c" 1>&6
15024 cat > conftest.$ac_ext <<EOF
15025 #line 15026 "configure"
15026 #include "confdefs.h"
15027 /* System header to define __stub macros and hopefully few prototypes,
15028 which can conflict with char vprintf(); below. */
15029 #include <assert.h>
15030 /* Override any gcc2 internal prototype to avoid an error. */
15031 /* We use char because int might match the return type of a gcc2
15032 builtin and then its argument prototype would still apply. */
15038 /* The GNU C library defines this for functions which it implements
15039 to always fail with ENOSYS. Some functions are actually named
15040 something starting with __ and the normal name is an alias. */
15041 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15049 if { (eval echo configure:15050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15051 eval "ac_cv_func_vprintf=yes"
15053 echo "configure: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15056 eval "ac_cv_func_vprintf=no"
15061 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15062 echo "$ac_t""yes" 1>&6
15063 cat >> confdefs.h <<\EOF
15064 #define HAVE_VPRINTF 1
15068 echo "$ac_t""no" 1>&6
15071 if test "$ac_cv_func_vprintf" != yes; then
15072 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15073 echo "configure:15074: checking for _doprnt" >&5
15074 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15075 echo $ac_n "(cached) $ac_c" 1>&6
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15080 /* System header to define __stub macros and hopefully few prototypes,
15081 which can conflict with char _doprnt(); below. */
15082 #include <assert.h>
15083 /* Override any gcc2 internal prototype to avoid an error. */
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15091 /* The GNU C library defines this for functions which it implements
15092 to always fail with ENOSYS. Some functions are actually named
15093 something starting with __ and the normal name is an alias. */
15094 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15104 eval "ac_cv_func__doprnt=yes"
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15109 eval "ac_cv_func__doprnt=no"
15114 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15115 echo "$ac_t""yes" 1>&6
15116 cat >> confdefs.h <<\EOF
15117 #define HAVE_DOPRNT 1
15121 echo "$ac_t""no" 1>&6
15127 if test $ac_cv_func_vprintf = yes ; then
15128 for ac_func in vsnprintf vsprintf
15130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15131 echo "configure:15132: checking for $ac_func" >&5
15132 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
15135 cat > conftest.$ac_ext <<EOF
15136 #line 15137 "configure"
15137 #include "confdefs.h"
15138 /* System header to define __stub macros and hopefully few prototypes,
15139 which can conflict with char $ac_func(); below. */
15140 #include <assert.h>
15141 /* Override any gcc2 internal prototype to avoid an error. */
15142 /* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15149 /* The GNU C library defines this for functions which it implements
15150 to always fail with ENOSYS. Some functions are actually named
15151 something starting with __ and the normal name is an alias. */
15152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15160 if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15162 eval "ac_cv_func_$ac_func=yes"
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15167 eval "ac_cv_func_$ac_func=no"
15172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15173 echo "$ac_t""yes" 1>&6
15174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15175 cat >> confdefs.h <<EOF
15176 #define $ac_tr_func 1
15180 echo "$ac_t""no" 1>&6
15238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15239 echo "configure:15240: checking for $ac_func" >&5
15240 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246 /* System header to define __stub macros and hopefully few prototypes,
15247 which can conflict with char $ac_func(); below. */
15248 #include <assert.h>
15249 /* Override any gcc2 internal prototype to avoid an error. */
15250 /* We use char because int might match the return type of a gcc2
15251 builtin and then its argument prototype would still apply. */
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15268 if { (eval echo configure:15269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15270 eval "ac_cv_func_$ac_func=yes"
15272 echo "configure: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15275 eval "ac_cv_func_$ac_func=no"
15280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15281 echo "$ac_t""yes" 1>&6
15282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15283 cat >> confdefs.h <<EOF
15284 #define $ac_tr_func 1
15288 echo "$ac_t""no" 1>&6
15293 for ac_func in getopt tempnam
15295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15296 echo "configure:15297: checking for $ac_func" >&5
15297 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15298 echo $ac_n "(cached) $ac_c" 1>&6
15300 cat > conftest.$ac_ext <<EOF
15301 #line 15302 "configure"
15302 #include "confdefs.h"
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func(); below. */
15305 #include <assert.h>
15306 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15314 /* The GNU C library defines this for functions which it implements
15315 to always fail with ENOSYS. Some functions are actually named
15316 something starting with __ and the normal name is an alias. */
15317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15325 if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15327 eval "ac_cv_func_$ac_func=yes"
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15332 eval "ac_cv_func_$ac_func=no"
15337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15340 cat >> confdefs.h <<EOF
15341 #define $ac_tr_func 1
15345 echo "$ac_t""no" 1>&6
15346 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15352 if test "$ac_cv_func_getopt" != yes; then
15353 LIBSRCS="$LIBSRCS getopt.c"
15356 if test "$ac_cv_func_tempnam" != yes; then
15357 LIBSRCS="$LIBSRCS tempnam.c"
15360 # Check Configuration
15361 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15362 echo "configure:15363: checking declaration of sys_errlist" >&5
15363 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15367 cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15372 #include <sys/types.h>
15375 #include <stdlib.h>
15378 char *c = (char *) *sys_errlist
15381 if { (eval echo configure:15382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15383 ol_cv_dcl_sys_errlist=yes
15384 ol_cv_have_sys_errlist=yes
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15389 ol_cv_dcl_sys_errlist=no
15394 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15396 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15397 if test $ol_cv_dcl_sys_errlist = no ; then
15398 cat >> confdefs.h <<\EOF
15399 #define DECL_SYS_ERRLIST 1
15403 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15404 echo "configure:15405: checking existence of sys_errlist" >&5
15405 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15414 char *c = (char *) *sys_errlist
15417 if { (eval echo configure:15418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15419 ol_cv_have_sys_errlist=yes
15421 echo "configure: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15424 ol_cv_have_sys_errlist=no
15429 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15431 if test $ol_cv_have_sys_errlist = yes ; then
15432 cat >> confdefs.h <<\EOF
15433 #define HAVE_SYS_ERRLIST 1
15440 if test "$ol_enable_debug" != no ; then
15441 cat >> confdefs.h <<\EOF
15442 #define LDAP_DEBUG 1
15446 if test "$ol_enable_syslog" = yes ; then
15447 cat >> confdefs.h <<\EOF
15448 #define LDAP_SYSLOG 1
15452 if test "$ol_enable_libui" = yes ; then
15453 cat >> confdefs.h <<\EOF
15454 #define LDAP_LIBUI 1
15458 if test "$ol_enable_cache" = no ; then
15459 cat >> confdefs.h <<\EOF
15460 #define LDAP_NOCACHE 1
15464 if test "$ol_link_kbind" != no ; then
15465 cat >> confdefs.h <<\EOF
15466 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15470 if test "$ol_enable_proctitle" != no ; then
15471 cat >> confdefs.h <<\EOF
15472 #define LDAP_PROCTITLE 1
15476 if test "$ol_enable_referrals" != no ; then
15477 cat >> confdefs.h <<\EOF
15478 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15482 if test "$ol_enable_cldap" != no ; then
15483 cat >> confdefs.h <<\EOF
15484 #define LDAP_CONNECTIONLESS 1
15488 if test "$ol_enable_local" != no; then
15489 cat >> confdefs.h <<\EOF
15490 #define LDAP_PF_LOCAL 1
15494 if test "$ol_enable_ipv6" != no; then
15495 cat >> confdefs.h <<\EOF
15496 #define LDAP_PF_INET6 1
15500 if test "$ol_enable_cleartext" != no ; then
15501 cat >> confdefs.h <<\EOF
15502 #define SLAPD_CLEARTEXT 1
15506 if test "$ol_enable_crypt" != no ; then
15507 cat >> confdefs.h <<\EOF
15508 #define SLAPD_CRYPT 1
15512 if test "$ol_link_kpasswd" != no ; then
15513 cat >> confdefs.h <<\EOF
15514 #define SLAPD_KPASSWD 1
15518 if test "$ol_link_spasswd" != no ; then
15519 cat >> confdefs.h <<\EOF
15520 #define SLAPD_SPASSWD 1
15524 if test "$ol_enable_multimaster" != no ; then
15525 cat >> confdefs.h <<\EOF
15526 #define SLAPD_MULTIMASTER 1
15530 if test "$ol_enable_phonetic" != no ; then
15531 cat >> confdefs.h <<\EOF
15532 #define SLAPD_PHONETIC 1
15536 if test "$ol_enable_rlookups" != no ; then
15537 cat >> confdefs.h <<\EOF
15538 #define SLAPD_RLOOKUPS 1
15542 if test "$ol_enable_aci" != no ; then
15543 cat >> confdefs.h <<\EOF
15544 #define SLAPD_ACI_ENABLED 1
15549 if test "$ol_link_modules" != no ; then
15550 cat >> confdefs.h <<\EOF
15551 #define SLAPD_MODULES 1
15555 SLAPD_MODULES_LDFLAGS="-dlopen self"
15558 if test "$ol_link_dnssrv" != no ; then
15559 cat >> confdefs.h <<\EOF
15560 #define SLAPD_DNSSRV 1
15565 if test "$ol_with_dnssrv_module" != static ; then
15566 cat >> confdefs.h <<\EOF
15567 #define SLAPD_DNSSRV_DYNAMIC 1
15571 BUILD_DNSSRV_DYNAMIC=shared
15572 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15576 if test "$ol_enable_ldap" != no ; then
15577 cat >> confdefs.h <<\EOF
15578 #define SLAPD_LDAP 1
15583 if test "$ol_with_ldap_module" != static ; then
15584 cat >> confdefs.h <<\EOF
15585 #define SLAPD_LDAP_DYNAMIC 1
15589 BUILD_LDAP_DYNAMIC=shared
15590 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15594 if test "$ol_link_ldbm" != no ; then
15595 cat >> confdefs.h <<\EOF
15596 #define SLAPD_LDBM 1
15601 if test "$ol_with_ldbm_module" != static ; then
15602 cat >> confdefs.h <<\EOF
15603 #define SLAPD_LDBM_DYNAMIC 1
15607 BUILD_LDBM_DYNAMIC=shared
15608 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15612 if test "$ol_enable_passwd" != no ; then
15613 cat >> confdefs.h <<\EOF
15614 #define SLAPD_PASSWD 1
15619 if test "$ol_with_passwd_module" != static ; then
15620 cat >> confdefs.h <<\EOF
15621 #define SLAPD_PASSWD_DYNAMIC 1
15625 BUILD_PASSWD_DYNAMIC=shared
15626 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15630 if test "$ol_enable_shell" != no ; then
15631 cat >> confdefs.h <<\EOF
15632 #define SLAPD_SHELL 1
15637 if test "$ol_with_shell_module" != static ; then
15638 cat >> confdefs.h <<\EOF
15639 #define SLAPD_SHELL_DYNAMIC 1
15643 BUILD_SHELL_DYNAMIC=shared
15644 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15648 if test "$ol_enable_sql" != no ; then
15649 cat >> confdefs.h <<\EOF
15650 #define SLAPD_SQL 1
15655 SLAPD_SQL_LIBS=-liodbc
15656 if test "$ol_with_sql_module" != static; then
15657 cat >> confdefs.h <<\EOF
15658 #define SLAPD_SQL_DYNAMIC 1
15662 BUILD_SQL_DYNAMIC=shared
15663 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15667 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15668 $BUILD_SLAPD = yes ; then
15673 if test "$LINK_BINS_DYNAMIC" = yes; then
15675 LT_LIB_LINKAGE=shared
15678 LT_LIB_LINKAGE=static
15681 if test "$ac_cv_mingw32" = yes ; then
15741 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15744 # Let make expand exec_prefix.
15745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15747 # Any assignment to VPATH causes Sun make to only execute
15748 # the first set of double-colon rules, so remove it if not needed.
15749 # If there is a colon in the path, we need to keep it.
15750 if test "x$srcdir" = x.; then
15751 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15754 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15756 DEFS=-DHAVE_CONFIG_H
15758 # Without the "./", some shells look in PATH for config.status.
15759 : ${CONFIG_STATUS=./config.status}
15761 echo creating $CONFIG_STATUS
15762 rm -f $CONFIG_STATUS
15763 cat > $CONFIG_STATUS <<EOF
15765 # Generated automatically by configure.
15766 # Run this file to recreate the current configuration.
15767 # This directory was configured as follows,
15768 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15770 # $0 $ac_configure_args
15772 # Compiler output produced by configure, useful for debugging
15773 # configure, is in ./config.log if it exists.
15775 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15778 case "\$ac_option" in
15779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15780 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15781 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15782 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15783 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15785 -help | --help | --hel | --he | --h)
15786 echo "\$ac_cs_usage"; exit 0 ;;
15787 *) echo "\$ac_cs_usage"; exit 1 ;;
15791 ac_given_srcdir=$srcdir
15792 ac_given_INSTALL="$INSTALL"
15794 trap 'rm -fr `echo "\
15795 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15796 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15797 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15798 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15799 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15800 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15801 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15802 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15803 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15804 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15805 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15806 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15807 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15808 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15809 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
15810 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15811 include/Makefile:build/top.mk:include/Makefile.in \
15812 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15813 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15814 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15815 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15816 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15817 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15818 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15819 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15820 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15821 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15822 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15823 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
15824 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15825 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15826 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15827 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15828 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15829 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15830 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15831 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15832 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15833 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15834 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15835 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15836 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15837 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15839 cat >> $CONFIG_STATUS <<EOF
15841 # Protect against being on the right side of a sed subst in config.status.
15842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15847 s%@CFLAGS@%$CFLAGS%g
15848 s%@CPPFLAGS@%$CPPFLAGS%g
15849 s%@CXXFLAGS@%$CXXFLAGS%g
15850 s%@FFLAGS@%$FFLAGS%g
15852 s%@LDFLAGS@%$LDFLAGS%g
15854 s%@exec_prefix@%$exec_prefix%g
15855 s%@prefix@%$prefix%g
15856 s%@program_transform_name@%$program_transform_name%g
15857 s%@bindir@%$bindir%g
15858 s%@sbindir@%$sbindir%g
15859 s%@libexecdir@%$libexecdir%g
15860 s%@datadir@%$datadir%g
15861 s%@sysconfdir@%$sysconfdir%g
15862 s%@sharedstatedir@%$sharedstatedir%g
15863 s%@localstatedir@%$localstatedir%g
15864 s%@libdir@%$libdir%g
15865 s%@includedir@%$includedir%g
15866 s%@oldincludedir@%$oldincludedir%g
15867 s%@infodir@%$infodir%g
15868 s%@mandir@%$mandir%g
15870 s%@host_alias@%$host_alias%g
15871 s%@host_cpu@%$host_cpu%g
15872 s%@host_vendor@%$host_vendor%g
15873 s%@host_os@%$host_os%g
15874 s%@target@%$target%g
15875 s%@target_alias@%$target_alias%g
15876 s%@target_cpu@%$target_cpu%g
15877 s%@target_vendor@%$target_vendor%g
15878 s%@target_os@%$target_os%g
15880 s%@build_alias@%$build_alias%g
15881 s%@build_cpu@%$build_cpu%g
15882 s%@build_vendor@%$build_vendor%g
15883 s%@build_os@%$build_os%g
15884 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15885 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15886 s%@INSTALL_DATA@%$INSTALL_DATA%g
15887 s%@PACKAGE@%$PACKAGE%g
15888 s%@VERSION@%$VERSION%g
15889 s%@ACLOCAL@%$ACLOCAL%g
15890 s%@AUTOCONF@%$AUTOCONF%g
15891 s%@AUTOMAKE@%$AUTOMAKE%g
15892 s%@AUTOHEADER@%$AUTOHEADER%g
15893 s%@MAKEINFO@%$MAKEINFO%g
15894 s%@install_sh@%$install_sh%g
15897 s%@AMTARFLAGS@%$AMTARFLAGS%g
15898 s%@SET_MAKE@%$SET_MAKE%g
15899 s%@top_builddir@%$top_builddir%g
15900 s%@ldap_subdir@%$ldap_subdir%g
15902 s%@RANLIB@%$RANLIB%g
15904 s%@DLLTOOL@%$DLLTOOL%g
15906 s%@OBJDUMP@%$OBJDUMP%g
15907 s%@LIBTOOL@%$LIBTOOL%g
15909 s%@SENDMAIL@%$SENDMAIL%g
15910 s%@EDITOR@%$EDITOR%g
15911 s%@FINGER@%$FINGER%g
15913 s%@EXEEXT@%$EXEEXT%g
15914 s%@OBJEXT@%$OBJEXT%g
15915 s%@OL_MKDEP@%$OL_MKDEP%g
15916 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15917 s%@LIBOBJS@%$LIBOBJS%g
15918 s%@LIBSRCS@%$LIBSRCS%g
15920 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15921 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15922 s%@DYN_EXT@%$DYN_EXT%g
15923 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15924 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
15925 s%@BUILD_LDAP@%$BUILD_LDAP%g
15926 s%@BUILD_LDBM@%$BUILD_LDBM%g
15927 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15928 s%@BUILD_SHELL@%$BUILD_SHELL%g
15929 s%@BUILD_SQL@%$BUILD_SQL%g
15930 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
15931 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15932 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15933 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15934 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15935 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
15936 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15937 s%@LDAP_LIBS@%$LDAP_LIBS%g
15938 s%@LDIF_LIBS@%$LDIF_LIBS%g
15939 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15940 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15941 s%@LDBM_LIBS@%$LDBM_LIBS%g
15942 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15943 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15944 s%@WRAP_LIBS@%$WRAP_LIBS%g
15945 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15946 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15947 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15948 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15949 s%@KRB4_LIBS@%$KRB4_LIBS%g
15950 s%@KRB5_LIBS@%$KRB5_LIBS%g
15951 s%@READLINE_LIBS@%$READLINE_LIBS%g
15952 s%@SASL_LIBS@%$SASL_LIBS%g
15953 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15954 s%@TLS_LIBS@%$TLS_LIBS%g
15955 s%@MODULES_LIBS@%$MODULES_LIBS%g
15956 s%@AUTH_LIBS@%$AUTH_LIBS%g
15957 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
15958 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
15959 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
15964 cat >> $CONFIG_STATUS <<\EOF
15966 # Split the substitutions into bite-sized pieces for seds with
15967 # small command number limits, like on Digital OSF/1 and HP-UX.
15968 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15969 ac_file=1 # Number of current file.
15970 ac_beg=1 # First line for current file.
15971 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15974 while $ac_more_lines; do
15975 if test $ac_beg -gt 1; then
15976 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15978 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15980 if test ! -s conftest.s$ac_file; then
15981 ac_more_lines=false
15982 rm -f conftest.s$ac_file
15984 if test -z "$ac_sed_cmds"; then
15985 ac_sed_cmds="sed -f conftest.s$ac_file"
15987 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15989 ac_file=`expr $ac_file + 1`
15991 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15994 if test -z "$ac_sed_cmds"; then
15999 cat >> $CONFIG_STATUS <<EOF
16001 CONFIG_FILES=\${CONFIG_FILES-"\
16002 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16003 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16004 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16005 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16006 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16007 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16008 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16009 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16010 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16011 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16012 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16013 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16014 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16015 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16016 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16017 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16018 include/Makefile:build/top.mk:include/Makefile.in \
16019 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16020 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16021 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16022 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16023 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16024 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16025 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16026 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16027 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16028 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16029 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16030 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16031 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16032 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16033 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16034 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16035 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16036 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16037 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16038 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16039 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16040 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16041 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16042 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16043 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16046 cat >> $CONFIG_STATUS <<\EOF
16047 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16050 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16051 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16052 *) ac_file_in="${ac_file}.in" ;;
16055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16057 # Remove last slash and all that follows it. Not all systems have dirname.
16058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16060 # The file is in a subdirectory.
16061 test ! -d "$ac_dir" && mkdir "$ac_dir"
16062 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16063 # A "../" for each directory in $ac_dir_suffix.
16064 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16066 ac_dir_suffix= ac_dots=
16069 case "$ac_given_srcdir" in
16071 if test -z "$ac_dots"; then top_srcdir=.
16072 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16073 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16074 *) # Relative path.
16075 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16076 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16079 case "$ac_given_INSTALL" in
16080 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16081 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16084 echo creating "$ac_file"
16086 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16088 *[Mm]akefile*) ac_comsub="1i\\
16089 # $configure_input" ;;
16093 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16095 s%@configure_input@%$configure_input%g
16096 s%@srcdir@%$srcdir%g
16097 s%@top_srcdir@%$top_srcdir%g
16098 s%@INSTALL@%$INSTALL%g
16099 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16103 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16104 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16106 # ac_d sets the value in "#define NAME VALUE" lines.
16107 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16108 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16111 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16112 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16113 ac_uB='\([ ]\)%\1#\2define\3'
16116 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16117 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16118 ac_eB='$%\1#\2define\3'
16122 if test "${CONFIG_HEADERS+set}" != set; then
16124 cat >> $CONFIG_STATUS <<EOF
16125 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16127 cat >> $CONFIG_STATUS <<\EOF
16129 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16134 *) ac_file_in="${ac_file}.in" ;;
16137 echo creating $ac_file
16139 rm -f conftest.frag conftest.in conftest.out
16140 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16141 cat $ac_file_inputs > conftest.in
16145 # Transform confdefs.h into a sed script conftest.vals that substitutes
16146 # the proper values into config.h.in to produce config.h. And first:
16147 # Protect against being on the right side of a sed subst in config.status.
16148 # Protect against being in an unquoted here document in config.status.
16149 rm -f conftest.vals
16150 cat > conftest.hdr <<\EOF
16153 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16157 sed -n -f conftest.hdr confdefs.h > conftest.vals
16160 # This sed command replaces #undef with comments. This is necessary, for
16161 # example, in the case of _POSIX_SOURCE, which is predefined and required
16162 # on some systems where configure will not decide to define it.
16163 cat >> conftest.vals <<\EOF
16164 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16167 # Break up conftest.vals because some shells have a limit on
16168 # the size of here documents, and old seds have small limits too.
16170 rm -f conftest.tail
16173 ac_lines=`grep -c . conftest.vals`
16174 # grep -c gives empty output for an empty file on some AIX systems.
16175 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16176 # Write a limited-size here document to conftest.frag.
16177 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16178 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16180 sed -f conftest.frag conftest.in > conftest.out
16182 mv conftest.out conftest.in
16183 ' >> $CONFIG_STATUS
16184 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16185 rm -f conftest.vals
16186 mv conftest.tail conftest.vals
16188 rm -f conftest.vals
16190 cat >> $CONFIG_STATUS <<\EOF
16191 rm -f conftest.frag conftest.h
16192 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16193 cat conftest.in >> conftest.h
16195 if cmp -s $ac_file conftest.h 2>/dev/null; then
16196 echo "$ac_file is unchanged"
16199 # Remove last slash and all that follows it. Not all systems have dirname.
16200 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16201 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16202 # The file is in a subdirectory.
16203 test ! -d "$ac_dir" && mkdir "$ac_dir"
16206 mv conftest.h $ac_file
16211 cat >> $CONFIG_STATUS <<EOF
16214 cat >> $CONFIG_STATUS <<\EOF
16217 echo Please \"make depend\" to build dependencies
16221 chmod +x $CONFIG_STATUS
16222 rm -fr confdefs* $ac_clean_files
16223 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1