3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.42 2002/09/20 17:09:47 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-x-compile enable cross compiling [no]"
49 --with-cyrus-sasl with Cyrus SASL support [auto]"
51 --with-fetch with fetch URL support [auto]"
53 --with-kerberos with Kerberos support [auto]"
55 --with-readline with readline support [auto]"
57 --with-threads with threads [auto]"
59 --with-tls with TLS/SSL support [auto]"
61 --with-yielding-select with implicitly yielding select [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [auto]"
71 --enable-kpasswd enable kerberos password verification [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-phonetic enable phonetic/soundex [no]"
79 --enable-rlookups enable reverse lookups [no]"
81 --enable-aci enable per-object ACIs [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-dynamic enable linking built binaries with dynamic libs [no]"
87 --enable-dnssrv enable dnssrv backend [no]"
89 --with-dnssrv-module module type [static]"
91 --enable-ldap enable ldap backend [no]"
93 --with-ldap-module module type [static]"
95 --enable-ldbm enable ldbm backend [yes]"
97 --with-ldbm-api with LDBM API [auto]"
99 --with-ldbm-module module type [static]"
101 --with-ldbm-type use LDBM type [auto]"
103 --enable-passwd enable passwd backend [no]"
105 --with-passwd-module module type [static]"
107 --enable-shell enable shell backend [no]"
109 --with-shell-module module type [static]"
111 --enable-sql enable sql backend [no]"
113 --with-sql-module module type [static]"
115 SLURPD (Replication Daemon) Options:"
117 --enable-slurpd enable building slurpd [auto]"
119 Library Generation & Linking Options"
121 --enable-static[=PKGS] build static libraries [default=yes]"
123 --enable-shared[=PKGS] build shared libraries [default=yes]"
125 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
127 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
129 --disable-libtool-lock avoid locking (might break parallel builds)"
131 # Initialize some variables set by options.
132 # The variables have the same names as the options, with
133 # dashes changed to underlines.
135 cache_file=./config.cache
144 program_transform_name=s,x,x,
152 bindir='${exec_prefix}/bin'
153 sbindir='${exec_prefix}/sbin'
154 libexecdir='${exec_prefix}/libexec'
155 datadir='${prefix}/share'
156 sysconfdir='${prefix}/etc'
157 sharedstatedir='${prefix}/com'
158 localstatedir='${prefix}/var'
159 libdir='${exec_prefix}/lib'
160 includedir='${prefix}/include'
161 oldincludedir='/usr/include'
162 infodir='${prefix}/info'
163 mandir='${prefix}/man'
165 # Initialize some other variables.
168 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Maximum number of lines to put in a shell here document.
176 # If the previous option needs an argument, assign it.
177 if test -n "$ac_prev"; then
178 eval "$ac_prev=\$ac_option"
184 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
188 # Accept the important Cygnus configure options, so we can diagnose typos.
192 -bindir | --bindir | --bindi | --bind | --bin | --bi)
194 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
195 bindir="$ac_optarg" ;;
197 -build | --build | --buil | --bui | --bu)
199 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
200 build="$ac_optarg" ;;
202 -cache-file | --cache-file | --cache-fil | --cache-fi \
203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
204 ac_prev=cache_file ;;
205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
207 cache_file="$ac_optarg" ;;
209 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
211 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
213 datadir="$ac_optarg" ;;
215 -disable-* | --disable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}=no" ;;
224 -enable-* | --enable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}='$ac_optarg'" ;;
237 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
238 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
239 | --exec | --exe | --ex)
240 ac_prev=exec_prefix ;;
241 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
242 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
243 | --exec=* | --exe=* | --ex=*)
244 exec_prefix="$ac_optarg" ;;
246 -gas | --gas | --ga | --g)
247 # Obsolete; use --with-gas.
250 -help | --help | --hel | --he)
251 # Omit some internal or obsolete options to make the list less imposing.
252 # This message is too long to be a string in the A/UX 3.1 sh.
254 Usage: configure [options] [host]
255 Options: [defaults in brackets after descriptions]
257 --cache-file=FILE cache test results in FILE
258 --help print this message
259 --no-create do not create output files
260 --quiet, --silent do not print \`checking...' messages
261 --version print the version of autoconf that created configure
262 Directory and file names:
263 --prefix=PREFIX install architecture-independent files in PREFIX
265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
267 --bindir=DIR user executables in DIR [EPREFIX/bin]
268 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
269 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
270 --datadir=DIR read-only architecture-independent data in DIR
272 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
273 --sharedstatedir=DIR modifiable architecture-independent data in DIR
275 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
276 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
277 --includedir=DIR C header files in DIR [PREFIX/include]
278 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
279 --infodir=DIR info documentation in DIR [PREFIX/info]
280 --mandir=DIR man documentation in DIR [PREFIX/man]
281 --srcdir=DIR find the sources in DIR [configure dir or ..]
282 --program-prefix=PREFIX prepend PREFIX to installed program names
283 --program-suffix=SUFFIX append SUFFIX to installed program names
284 --program-transform-name=PROGRAM
285 run sed PROGRAM on installed program names
289 --build=BUILD configure for building on BUILD [BUILD=HOST]
290 --host=HOST configure for HOST [guessed]
291 --target=TARGET configure for TARGET [TARGET=HOST]
292 Features and packages:
293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
297 --x-includes=DIR X include files are in DIR
298 --x-libraries=DIR X library files are in DIR
300 if test -n "$ac_help"; then
301 echo "--enable and --with options recognized:$ac_help"
305 -host | --host | --hos | --ho)
307 -host=* | --host=* | --hos=* | --ho=*)
310 -includedir | --includedir | --includedi | --included | --include \
311 | --includ | --inclu | --incl | --inc)
312 ac_prev=includedir ;;
313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
314 | --includ=* | --inclu=* | --incl=* | --inc=*)
315 includedir="$ac_optarg" ;;
317 -infodir | --infodir | --infodi | --infod | --info | --inf)
319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
320 infodir="$ac_optarg" ;;
322 -libdir | --libdir | --libdi | --libd)
324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
325 libdir="$ac_optarg" ;;
327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
328 | --libexe | --libex | --libe)
329 ac_prev=libexecdir ;;
330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
331 | --libexe=* | --libex=* | --libe=*)
332 libexecdir="$ac_optarg" ;;
334 -localstatedir | --localstatedir | --localstatedi | --localstated \
335 | --localstate | --localstat | --localsta | --localst \
336 | --locals | --local | --loca | --loc | --lo)
337 ac_prev=localstatedir ;;
338 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
339 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
340 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
341 localstatedir="$ac_optarg" ;;
343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
346 mandir="$ac_optarg" ;;
349 # Obsolete; use --without-fp.
352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
362 | --oldin | --oldi | --old | --ol | --o)
363 ac_prev=oldincludedir ;;
364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
367 oldincludedir="$ac_optarg" ;;
369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
372 prefix="$ac_optarg" ;;
374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
375 | --program-pre | --program-pr | --program-p)
376 ac_prev=program_prefix ;;
377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
379 program_prefix="$ac_optarg" ;;
381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
382 | --program-suf | --program-su | --program-s)
383 ac_prev=program_suffix ;;
384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
386 program_suffix="$ac_optarg" ;;
388 -program-transform-name | --program-transform-name \
389 | --program-transform-nam | --program-transform-na \
390 | --program-transform-n | --program-transform- \
391 | --program-transform | --program-transfor \
392 | --program-transfo | --program-transf \
393 | --program-trans | --program-tran \
394 | --progr-tra | --program-tr | --program-t)
395 ac_prev=program_transform_name ;;
396 -program-transform-name=* | --program-transform-name=* \
397 | --program-transform-nam=* | --program-transform-na=* \
398 | --program-transform-n=* | --program-transform-=* \
399 | --program-transform=* | --program-transfor=* \
400 | --program-transfo=* | --program-transf=* \
401 | --program-trans=* | --program-tran=* \
402 | --progr-tra=* | --program-tr=* | --program-t=*)
403 program_transform_name="$ac_optarg" ;;
405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406 | -silent | --silent | --silen | --sile | --sil)
409 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
411 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
413 sbindir="$ac_optarg" ;;
415 -sharedstatedir | --sharedstatedir | --sharedstatedi \
416 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
417 | --sharedst | --shareds | --shared | --share | --shar \
419 ac_prev=sharedstatedir ;;
420 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
421 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
422 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
424 sharedstatedir="$ac_optarg" ;;
426 -site | --site | --sit)
428 -site=* | --site=* | --sit=*)
431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
434 srcdir="$ac_optarg" ;;
436 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
437 | --syscon | --sysco | --sysc | --sys | --sy)
438 ac_prev=sysconfdir ;;
439 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
440 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
441 sysconfdir="$ac_optarg" ;;
443 -target | --target | --targe | --targ | --tar | --ta | --t)
445 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
446 target="$ac_optarg" ;;
448 -v | -verbose | --verbose | --verbos | --verbo | --verb)
451 -version | --version | --versio | --versi | --vers)
452 echo "configure generated by autoconf version 2.13.1"
456 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}='$ac_optarg'" ;;
468 -without-* | --without-*)
469 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}=no" ;;
478 # Obsolete; use --with-x.
481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
482 | --x-incl | --x-inc | --x-in | --x-i)
483 ac_prev=x_includes ;;
484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
486 x_includes="$ac_optarg" ;;
488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
490 ac_prev=x_libraries ;;
491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
493 x_libraries="$ac_optarg" ;;
495 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
499 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
500 echo "configure: warning: $ac_option: invalid host type" 1>&2
502 if test "x$nonopt" != xNONE; then
503 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
511 if test -n "$ac_prev"; then
512 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
517 # File descriptor usage:
520 # 2 errors and warnings
521 # 3 some systems may open it to /dev/tty
522 # 4 used on the Kubota Titan
523 # 6 checking for... messages and results
524 # 5 compiler messages saved in config.log
525 if test "$silent" = yes; then
533 This file contains any messages produced by compilers while
534 running configure, to aid debugging if configure makes a mistake.
537 # Strip out --no-create and --no-recursion so they do not pile up.
538 # Also quote any args containing shell metacharacters.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
544 | --no-cr | --no-c) ;;
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
548 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
549 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
554 # Only set these to C if already set. These must not be set unconditionally
555 # because not all systems understand e.g. LANG=C (notably SCO).
556 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
557 # Non-C LC_CTYPE values break the ctype check.
558 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
559 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
560 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
561 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
564 rm -rf conftest* confdefs.h
565 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
568 # A filename unique to this package, relative to the directory that
569 # configure is in, which we can look for to find out if srcdir is correct.
570 ac_unique_file=build/version
572 # Find the source files, if location was not specified.
573 if test -z "$srcdir"; then
574 ac_srcdir_defaulted=yes
575 # Try the directory containing this script, then its parent.
577 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
578 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
580 if test ! -r $srcdir/$ac_unique_file; then
584 ac_srcdir_defaulted=no
586 if test ! -r $srcdir/$ac_unique_file; then
587 if test "$ac_srcdir_defaulted" = yes; then
588 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
590 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
593 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
595 # Prefer explicitly selected file to automatically selected ones.
596 if test -z "$CONFIG_SITE"; then
597 if test "x$prefix" != xNONE; then
598 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
600 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
603 for ac_site_file in $CONFIG_SITE; do
604 if test -r "$ac_site_file"; then
605 echo "loading site script $ac_site_file"
612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
613 ac_cpp='$CPP $CPPFLAGS'
614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
616 cross_compiling=$ac_cv_prog_cc_cross
620 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
621 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
622 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
629 ac_n= ac_c='\c' ac_t=
633 # set unset (borrowed from autoconf 2.49c)
634 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
640 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
643 for ac_dir in build $srcdir/build; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
652 elif test -f $ac_dir/shtool; then
654 ac_install_sh="$ac_aux_dir/shtool install -c"
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
661 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
662 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
663 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
665 OL_VERSION=`cat $ac_aux_dir/version`
666 if test -z "$OL_VERSION"; then
667 { echo "configure: error: could not determine version" 1>&2; exit 1; }
670 echo "Configuring OpenLDAP $OL_VERSION ..."
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
675 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
677 # Make sure we can run config.sub.
678 if $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
682 ac_cv_host_alias=$host
683 case "$ac_cv_host_alias" in
687 if ac_cv_host_alias=`$ac_config_guess`; then :
688 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
690 *) ac_cv_host_alias=$nonopt ;;
694 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
695 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
696 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
697 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo $ac_n "(cached) $ac_c" 1>&6
702 echo "$ac_t""$ac_cv_host" 1>&6
705 host_alias=$ac_cv_host_alias
706 host_cpu=$ac_cv_host_cpu
707 host_vendor=$ac_cv_host_vendor
708 host_os=$ac_cv_host_os
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
718 # Make sure we can run config.sub.
719 if $ac_config_sub sun4 >/dev/null 2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 ac_cv_target_alias=$target
724 case "$ac_cv_target_alias" in
728 ac_cv_target_alias=$host_alias ;;
730 *) ac_cv_target_alias=$nonopt ;;
734 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
735 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo $ac_n "(cached) $ac_c" 1>&6
742 echo "$ac_t""$ac_cv_target" 1>&6
745 target_alias=$ac_cv_target_alias
746 target_cpu=$ac_cv_target_cpu
747 target_vendor=$ac_cv_target_vendor
748 target_os=$ac_cv_target_os
754 echo $ac_n "checking build system type""... $ac_c" 1>&6
755 echo "configure:756: checking build system type" >&5
756 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
758 # Make sure we can run config.sub.
759 if $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
763 ac_cv_build_alias=$build
764 case "$ac_cv_build_alias" in
768 ac_cv_build_alias=$host_alias ;;
770 *) ac_cv_build_alias=$nonopt ;;
774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
775 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779 echo $ac_n "(cached) $ac_c" 1>&6
782 echo "$ac_t""$ac_cv_build" 1>&6
785 build_alias=$ac_cv_build_alias
786 build_cpu=$ac_cv_build_cpu
787 build_vendor=$ac_cv_build_vendor
788 build_os=$ac_cv_build_os
794 # Do some error checking and defaulting for the host and target type.
796 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
799 # 1. You are not allowed to specify --host, --target, and nonopt at the
801 # 2. Host defaults to nonopt.
802 # 3. If nonopt is not specified, then host defaults to the current host,
803 # as determined by config.guess.
804 # 4. Target and build default to nonopt.
805 # 5. If nonopt is not specified, then target and build default to host.
807 # The aliases save the names the user supplied, while $host etc.
808 # will get canonicalized.
809 case $host---$target---$nonopt in
810 NONE---*---* | *---NONE---* | *---*---NONE) ;;
811 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814 test "$host_alias" != "$target_alias" &&
815 test "$program_prefix$program_suffix$program_transform_name" = \
817 program_prefix=${target_alias}-
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 echo "configure:833: checking for a BSD compatible install" >&5
833 if test -z "$INSTALL"; then
834 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
838 for ac_dir in $PATH; do
839 # Account for people who put trailing slashes in PATH elements.
841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
843 # OSF1 and SCO ODT 3.0 have their own names for install.
844 # Don't use installbsd from OSF since it installs stuff as root
846 for ac_prog in ginstall scoinst install; do
847 if test -f $ac_dir/$ac_prog; then
848 if test $ac_prog = install &&
849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
850 # AIX install. It has an incompatible calling convention.
852 elif test $ac_prog = install &&
853 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
854 # program-specific install script used by HP pwplus--don't use.
857 ac_cv_path_install="$ac_dir/$ac_prog -c"
868 if test "${ac_cv_path_install+set}" = set; then
869 INSTALL="$ac_cv_path_install"
871 # As a last resort, use the slow shell script. We don't cache a
872 # path for INSTALL within a source directory, because that will
873 # break other packages using the cache if that directory is
874 # removed, or if the path is relative.
875 INSTALL="$ac_install_sh"
878 echo "$ac_t""$INSTALL" 1>&6
880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
881 # It thinks the first close brace ends the variable substitution.
882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
888 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
889 echo "configure:890: checking whether build environment is sane" >&5
892 echo timestamp > conftestfile
893 # Do `set' in a subshell so we don't clobber the current shell's
894 # arguments. Must try -L first in case configure is actually a
895 # symlink; some systems play weird games with the mod time of symlinks
896 # (eg FreeBSD returns the mod time of the symlink's containing
899 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
900 if test "$*" = "X"; then
902 set X `ls -t $srcdir/configure conftestfile`
904 if test "$*" != "X $srcdir/configure conftestfile" \
905 && test "$*" != "X conftestfile $srcdir/configure"; then
907 # If neither matched, then we have a broken ls. This can happen
908 # if, for instance, CONFIG_SHELL is bash and it inherits a
909 # broken ls alias from the environment. This has actually
910 # happened. Such a system could not be considered "sane".
911 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
912 alias in your environment" 1>&2; exit 1; }
915 test "$2" = conftestfile
921 { echo "configure: error: newly created file is older than distributed files!
922 Check your system clock" 1>&2; exit 1; }
925 echo "$ac_t""yes" 1>&6
926 if test "$program_transform_name" = s,x,x,; then
927 program_transform_name=
929 # Double any \ or $. echo might interpret backslashes.
930 cat <<\EOF_SED > conftestsed
931 s,\\,\\\\,g; s,\$,$$,g
933 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
936 test "$program_prefix" != NONE &&
937 program_transform_name="s,^,${program_prefix},;$program_transform_name"
938 # Use a double $ so make ignores it.
939 test "$program_suffix" != NONE &&
940 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
942 # sed with no file args requires a program.
943 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
945 for ac_prog in mawk gawk nawk awk
947 # Extract the first word of "$ac_prog", so it can be a program name with args.
948 set dummy $ac_prog; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 if test -n "$AWK"; then
955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_AWK="$ac_prog"
969 AWK="$ac_cv_prog_AWK"
970 if test -n "$AWK"; then
971 echo "$ac_t""$AWK" 1>&6
973 echo "$ac_t""no" 1>&6
976 test -n "$AWK" && break
979 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${MAKE-make} sets \${MAKE}" >&5
981 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
982 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftestmake <<\EOF
987 @echo 'ac_maketemp="${MAKE}"'
989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
990 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
991 if test -n "$ac_maketemp"; then
992 eval ac_cv_prog_make_${ac_make}_set=yes
994 eval ac_cv_prog_make_${ac_make}_set=no
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1002 echo "$ac_t""no" 1>&6
1003 SET_MAKE="MAKE=${MAKE-make}"
1012 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1013 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1018 missing_dir=`cd $ac_aux_dir && pwd`
1019 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working aclocal" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 ACLOCAL="$missing_dir/missing aclocal"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoconf" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 AUTOCONF="$missing_dir/missing autoconf"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working automake" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (automake --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOMAKE="$missing_dir/missing automake"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoheader" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1064 AUTOHEADER=autoheader
1065 echo "$ac_t""found" 1>&6
1067 AUTOHEADER="$missing_dir/missing autoheader"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working makeinfo" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 MAKEINFO="$missing_dir/missing makeinfo"
1081 echo "$ac_t""missing" 1>&6
1084 install_sh="$missing_dir/install-sh"
1085 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1087 for ac_prog in gnutar gtar tar
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$AMTAR"; then
1097 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AMTAR="$ac_prog"
1111 AMTAR="$ac_cv_prog_AMTAR"
1112 if test -n "$AMTAR"; then
1113 echo "$ac_t""$AMTAR" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AMTAR" && break
1123 if test -n "$AMTAR"; then
1124 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1129 cat >> confdefs.h <<EOF
1130 #define OPENLDAP_PACKAGE "$PACKAGE"
1133 cat >> confdefs.h <<EOF
1134 #define OPENLDAP_VERSION "$VERSION"
1140 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1141 echo "configure:1142: checking configure arguments" >&5
1146 ldap_subdir="/openldap"
1148 # Check whether --with-subdir or --without-subdir was given.
1149 if test "${with_subdir+set}" = set; then
1150 withval="$with_subdir"
1157 ldap_subdir="$withval"
1160 ldap_subdir="/$withval"
1167 # OpenLDAP --enable-debug
1168 # Check whether --enable-debug or --disable-debug was given.
1169 if test "${enable_debug+set}" = set; then
1170 enableval="$enable_debug"
1173 for ol_val in auto yes no ; do
1174 if test "$enableval" = "$ol_val" ; then
1178 if test "$ol_arg" = "invalid" ; then
1179 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1181 ol_enable_debug="$ol_arg"
1184 ol_enable_debug="yes"
1186 # end --enable-debug
1187 # OpenLDAP --enable-syslog
1188 # Check whether --enable-syslog or --disable-syslog was given.
1189 if test "${enable_syslog+set}" = set; then
1190 enableval="$enable_syslog"
1193 for ol_val in auto yes no ; do
1194 if test "$enableval" = "$ol_val" ; then
1198 if test "$ol_arg" = "invalid" ; then
1199 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1201 ol_enable_syslog="$ol_arg"
1204 ol_enable_syslog="auto"
1206 # end --enable-syslog
1207 # OpenLDAP --enable-proctitle
1208 # Check whether --enable-proctitle or --disable-proctitle was given.
1209 if test "${enable_proctitle+set}" = set; then
1210 enableval="$enable_proctitle"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1221 ol_enable_proctitle="$ol_arg"
1224 ol_enable_proctitle="yes"
1226 # end --enable-proctitle
1227 # OpenLDAP --enable-cache
1228 # Check whether --enable-cache or --disable-cache was given.
1229 if test "${enable_cache+set}" = set; then
1230 enableval="$enable_cache"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1241 ol_enable_cache="$ol_arg"
1244 ol_enable_cache="no"
1246 # end --enable-cache
1247 # OpenLDAP --enable-referrals
1248 # Check whether --enable-referrals or --disable-referrals was given.
1249 if test "${enable_referrals+set}" = set; then
1250 enableval="$enable_referrals"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1261 ol_enable_referrals="$ol_arg"
1264 ol_enable_referrals="no"
1266 # end --enable-referrals
1267 # OpenLDAP --enable-kbind
1268 # Check whether --enable-kbind or --disable-kbind was given.
1269 if test "${enable_kbind+set}" = set; then
1270 enableval="$enable_kbind"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1281 ol_enable_kbind="$ol_arg"
1284 ol_enable_kbind="no"
1286 # end --enable-kbind
1287 # OpenLDAP --enable-ipv6
1288 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1289 if test "${enable_ipv6+set}" = set; then
1290 enableval="$enable_ipv6"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1301 ol_enable_ipv6="$ol_arg"
1304 ol_enable_ipv6="auto"
1307 # OpenLDAP --enable-local
1308 # Check whether --enable-local or --disable-local was given.
1309 if test "${enable_local+set}" = set; then
1310 enableval="$enable_local"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1321 ol_enable_local="$ol_arg"
1324 ol_enable_local="auto"
1326 # end --enable-local
1327 # OpenLDAP --enable-x_compile
1328 # Check whether --enable-x_compile or --disable-x_compile was given.
1329 if test "${enable_x_compile+set}" = set; then
1330 enableval="$enable_x_compile"
1333 for ol_val in yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1341 ol_enable_x_compile="$ol_arg"
1344 ol_enable_x_compile="no"
1346 # end --enable-x_compile
1349 # OpenLDAP --with-cyrus_sasl
1350 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1351 if test "${with_cyrus_sasl+set}" = set; then
1352 withval="$with_cyrus_sasl"
1355 for ol_val in auto yes no ; do
1356 if test "$withval" = "$ol_val" ; then
1360 if test "$ol_arg" = "invalid" ; then
1361 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1363 ol_with_cyrus_sasl="$ol_arg"
1366 ol_with_cyrus_sasl="auto"
1368 # end --with-cyrus_sasl
1370 # OpenLDAP --with-fetch
1371 # Check whether --with-fetch or --without-fetch was given.
1372 if test "${with_fetch+set}" = set; then
1373 withval="$with_fetch"
1376 for ol_val in auto yes no ; do
1377 if test "$withval" = "$ol_val" ; then
1381 if test "$ol_arg" = "invalid" ; then
1382 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1384 ol_with_fetch="$ol_arg"
1387 ol_with_fetch="auto"
1391 # OpenLDAP --with-kerberos
1392 # Check whether --with-kerberos or --without-kerberos was given.
1393 if test "${with_kerberos+set}" = set; then
1394 withval="$with_kerberos"
1397 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1398 if test "$withval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1405 ol_with_kerberos="$ol_arg"
1408 ol_with_kerberos="auto"
1410 # end --with-kerberos
1412 # OpenLDAP --with-readline
1413 # Check whether --with-readline or --without-readline was given.
1414 if test "${with_readline+set}" = set; then
1415 withval="$with_readline"
1418 for ol_val in auto yes no ; do
1419 if test "$withval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1426 ol_with_readline="$ol_arg"
1429 ol_with_readline="auto"
1431 # end --with-readline
1433 # OpenLDAP --with-threads
1434 # Check whether --with-threads or --without-threads was given.
1435 if test "${with_threads+set}" = set; then
1436 withval="$with_threads"
1439 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1440 if test "$withval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1447 ol_with_threads="$ol_arg"
1450 ol_with_threads="auto"
1452 # end --with-threads
1454 # OpenLDAP --with-tls
1455 # Check whether --with-tls or --without-tls was given.
1456 if test "${with_tls+set}" = set; then
1460 for ol_val in auto ssleay openssl yes no ; do
1461 if test "$withval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1468 ol_with_tls="$ol_arg"
1475 # OpenLDAP --with-yielding_select
1476 # Check whether --with-yielding_select or --without-yielding_select was given.
1477 if test "${with_yielding_select+set}" = set; then
1478 withval="$with_yielding_select"
1481 for ol_val in auto yes no manual ; do
1482 if test "$withval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1489 ol_with_yielding_select="$ol_arg"
1492 ol_with_yielding_select="auto"
1494 # end --with-yielding_select
1498 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1499 if test "${with_xxslapdoptions+set}" = set; then
1500 withval="$with_xxslapdoptions"
1504 # OpenLDAP --enable-slapd
1505 # Check whether --enable-slapd or --disable-slapd was given.
1506 if test "${enable_slapd+set}" = set; then
1507 enableval="$enable_slapd"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1518 ol_enable_slapd="$ol_arg"
1521 ol_enable_slapd="yes"
1523 # end --enable-slapd
1524 # OpenLDAP --enable-cleartext
1525 # Check whether --enable-cleartext or --disable-cleartext was given.
1526 if test "${enable_cleartext+set}" = set; then
1527 enableval="$enable_cleartext"
1530 for ol_val in auto yes no ; do
1531 if test "$enableval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1538 ol_enable_cleartext="$ol_arg"
1541 ol_enable_cleartext="yes"
1543 # end --enable-cleartext
1544 # OpenLDAP --enable-crypt
1545 # Check whether --enable-crypt or --disable-crypt was given.
1546 if test "${enable_crypt+set}" = set; then
1547 enableval="$enable_crypt"
1550 for ol_val in auto yes no ; do
1551 if test "$enableval" = "$ol_val" ; then
1555 if test "$ol_arg" = "invalid" ; then
1556 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1558 ol_enable_crypt="$ol_arg"
1561 ol_enable_crypt="auto"
1563 # end --enable-crypt
1564 # OpenLDAP --enable-kpasswd
1565 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1566 if test "${enable_kpasswd+set}" = set; then
1567 enableval="$enable_kpasswd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1578 ol_enable_kpasswd="$ol_arg"
1581 ol_enable_kpasswd="no"
1583 # end --enable-kpasswd
1584 # OpenLDAP --enable-spasswd
1585 # Check whether --enable-spasswd or --disable-spasswd was given.
1586 if test "${enable_spasswd+set}" = set; then
1587 enableval="$enable_spasswd"
1590 for ol_val in auto yes no ; do
1591 if test "$enableval" = "$ol_val" ; then
1595 if test "$ol_arg" = "invalid" ; then
1596 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1598 ol_enable_spasswd="$ol_arg"
1601 ol_enable_spasswd="no"
1603 # end --enable-spasswd
1604 # OpenLDAP --enable-modules
1605 # Check whether --enable-modules or --disable-modules was given.
1606 if test "${enable_modules+set}" = set; then
1607 enableval="$enable_modules"
1610 for ol_val in auto yes no ; do
1611 if test "$enableval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1618 ol_enable_modules="$ol_arg"
1621 ol_enable_modules="no"
1623 # end --enable-modules
1624 # OpenLDAP --enable-phonetic
1625 # Check whether --enable-phonetic or --disable-phonetic was given.
1626 if test "${enable_phonetic+set}" = set; then
1627 enableval="$enable_phonetic"
1630 for ol_val in auto yes no ; do
1631 if test "$enableval" = "$ol_val" ; then
1635 if test "$ol_arg" = "invalid" ; then
1636 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1638 ol_enable_phonetic="$ol_arg"
1641 ol_enable_phonetic="no"
1643 # end --enable-phonetic
1644 # OpenLDAP --enable-rlookups
1645 # Check whether --enable-rlookups or --disable-rlookups was given.
1646 if test "${enable_rlookups+set}" = set; then
1647 enableval="$enable_rlookups"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1658 ol_enable_rlookups="$ol_arg"
1661 ol_enable_rlookups="no"
1663 # end --enable-rlookups
1664 # OpenLDAP --enable-aci
1665 # Check whether --enable-aci or --disable-aci was given.
1666 if test "${enable_aci+set}" = set; then
1667 enableval="$enable_aci"
1670 for ol_val in auto yes no ; do
1671 if test "$enableval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1678 ol_enable_aci="$ol_arg"
1684 # OpenLDAP --enable-wrappers
1685 # Check whether --enable-wrappers or --disable-wrappers was given.
1686 if test "${enable_wrappers+set}" = set; then
1687 enableval="$enable_wrappers"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1698 ol_enable_wrappers="$ol_arg"
1701 ol_enable_wrappers="no"
1703 # end --enable-wrappers
1704 # OpenLDAP --enable-dynamic
1705 # Check whether --enable-dynamic or --disable-dynamic was given.
1706 if test "${enable_dynamic+set}" = set; then
1707 enableval="$enable_dynamic"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1718 ol_enable_dynamic="$ol_arg"
1721 ol_enable_dynamic="no"
1723 # end --enable-dynamic
1725 # OpenLDAP --enable-dnssrv
1726 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1727 if test "${enable_dnssrv+set}" = set; then
1728 enableval="$enable_dnssrv"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1739 ol_enable_dnssrv="$ol_arg"
1742 ol_enable_dnssrv="no"
1744 # end --enable-dnssrv
1745 # OpenLDAP --with-dnssrv_module
1746 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1747 if test "${with_dnssrv_module+set}" = set; then
1748 withval="$with_dnssrv_module"
1751 for ol_val in static dynamic ; do
1752 if test "$withval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1759 ol_with_dnssrv_module="$ol_arg"
1762 ol_with_dnssrv_module="static"
1764 # end --with-dnssrv_module
1766 # OpenLDAP --enable-ldap
1767 # Check whether --enable-ldap or --disable-ldap was given.
1768 if test "${enable_ldap+set}" = set; then
1769 enableval="$enable_ldap"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1780 ol_enable_ldap="$ol_arg"
1786 # OpenLDAP --with-ldap_module
1787 # Check whether --with-ldap_module or --without-ldap_module was given.
1788 if test "${with_ldap_module+set}" = set; then
1789 withval="$with_ldap_module"
1792 for ol_val in static dynamic ; do
1793 if test "$withval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1800 ol_with_ldap_module="$ol_arg"
1803 ol_with_ldap_module="static"
1805 # end --with-ldap_module
1807 # OpenLDAP --enable-ldbm
1808 # Check whether --enable-ldbm or --disable-ldbm was given.
1809 if test "${enable_ldbm+set}" = set; then
1810 enableval="$enable_ldbm"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1821 ol_enable_ldbm="$ol_arg"
1824 ol_enable_ldbm="yes"
1827 # OpenLDAP --with-ldbm_api
1828 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1829 if test "${with_ldbm_api+set}" = set; then
1830 withval="$with_ldbm_api"
1833 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1834 if test "$withval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1841 ol_with_ldbm_api="$ol_arg"
1844 ol_with_ldbm_api="auto"
1846 # end --with-ldbm_api
1848 # OpenLDAP --with-ldbm_module
1849 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1850 if test "${with_ldbm_module+set}" = set; then
1851 withval="$with_ldbm_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1862 ol_with_ldbm_module="$ol_arg"
1865 ol_with_ldbm_module="static"
1867 # end --with-ldbm_module
1869 # OpenLDAP --with-ldbm_type
1870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1871 if test "${with_ldbm_type+set}" = set; then
1872 withval="$with_ldbm_type"
1875 for ol_val in auto btree hash ; do
1876 if test "$withval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1883 ol_with_ldbm_type="$ol_arg"
1886 ol_with_ldbm_type="auto"
1888 # end --with-ldbm_type
1890 # OpenLDAP --enable-passwd
1891 # Check whether --enable-passwd or --disable-passwd was given.
1892 if test "${enable_passwd+set}" = set; then
1893 enableval="$enable_passwd"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1904 ol_enable_passwd="$ol_arg"
1907 ol_enable_passwd="no"
1909 # end --enable-passwd
1910 # OpenLDAP --with-passwd_module
1911 # Check whether --with-passwd_module or --without-passwd_module was given.
1912 if test "${with_passwd_module+set}" = set; then
1913 withval="$with_passwd_module"
1916 for ol_val in static dynamic ; do
1917 if test "$withval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1924 ol_with_passwd_module="$ol_arg"
1927 ol_with_passwd_module="static"
1929 # end --with-passwd_module
1931 # OpenLDAP --enable-shell
1932 # Check whether --enable-shell or --disable-shell was given.
1933 if test "${enable_shell+set}" = set; then
1934 enableval="$enable_shell"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1945 ol_enable_shell="$ol_arg"
1948 ol_enable_shell="no"
1950 # end --enable-shell
1951 # OpenLDAP --with-shell_module
1952 # Check whether --with-shell_module or --without-shell_module was given.
1953 if test "${with_shell_module+set}" = set; then
1954 withval="$with_shell_module"
1957 for ol_val in static dynamic ; do
1958 if test "$withval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1965 ol_with_shell_module="$ol_arg"
1968 ol_with_shell_module="static"
1970 # end --with-shell_module
1972 # OpenLDAP --enable-sql
1973 # Check whether --enable-sql or --disable-sql was given.
1974 if test "${enable_sql+set}" = set; then
1975 enableval="$enable_sql"
1978 for ol_val in auto yes no ; do
1979 if test "$enableval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1986 ol_enable_sql="$ol_arg"
1992 # OpenLDAP --with-sql_module
1993 # Check whether --with-sql_module or --without-sql_module was given.
1994 if test "${with_sql_module+set}" = set; then
1995 withval="$with_sql_module"
1998 for ol_val in static dynamic ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2006 ol_with_sql_module="$ol_arg"
2009 ol_with_sql_module="static"
2011 # end --with-sql_module
2014 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2015 if test "${with_xxslurpdoptions+set}" = set; then
2016 withval="$with_xxslurpdoptions"
2020 # OpenLDAP --enable-slurpd
2021 # Check whether --enable-slurpd or --disable-slurpd was given.
2022 if test "${enable_slurpd+set}" = set; then
2023 enableval="$enable_slurpd"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2034 ol_enable_slurpd="$ol_arg"
2037 ol_enable_slurpd="auto"
2039 # end --enable-slurpd
2041 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2042 if test "${with_xxliboptions+set}" = set; then
2043 withval="$with_xxliboptions"
2047 # Check whether --enable-static or --disable-static was given.
2048 if test "${enable_static+set}" = set; then
2049 enableval="$enable_static"
2050 p=${PACKAGE-default}
2051 case "$enableval" in
2052 yes) enable_static=yes ;;
2053 no) enable_static=no ;;
2056 # Look at the argument we got. We use all the common list separators.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2058 for pkg in $enableval; do
2059 if test "X$pkg" = "X$p"; then
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2096 if test $ol_enable_slapd = no ; then
2097 if test $ol_enable_dnssrv = yes ; then
2098 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2100 if test $ol_enable_ldap = yes ; then
2101 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2103 if test $ol_enable_ldbm = yes ; then
2104 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2106 if test $ol_enable_passwd = yes ; then
2107 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2109 if test $ol_enable_shell = yes ; then
2110 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2112 if test $ol_enable_sql = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2115 if test $ol_enable_modules = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2118 if test $ol_enable_wrappers = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2121 if test $ol_enable_phonetic = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2124 if test $ol_enable_rlookups = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2127 if test $ol_enable_aci = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2130 if test $ol_with_ldbm_api != auto ; then
2131 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2133 if test $ol_with_ldbm_type != auto ; then
2134 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2136 if test $ol_with_dnssrv_module != static ; then
2137 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2139 if test $ol_with_ldap_module != static ; then
2140 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2142 if test $ol_with_ldbm_module != static ; then
2143 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2145 if test $ol_with_passwd_module != static ; then
2146 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2148 if test $ol_with_shell_module != static ; then
2149 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2151 if test $ol_with_sql_module != static ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2154 if test $ol_enable_slurpd = yes ; then
2155 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2158 # force settings to no
2166 ol_enable_modules=no
2167 ol_enable_phonetic=no
2168 ol_enable_rlookups=no
2170 ol_enable_wrappers=no
2171 ol_enable_dynamic=no
2174 ol_with_ldbm_type=no
2176 ol_with_dnssrv_module=static
2177 ol_with_ldap_module=static
2178 ol_with_ldbm_module=static
2179 ol_with_passwd_module=static
2180 ol_with_shell_module=static
2181 ol_with_sql_module=static
2185 elif test $ol_enable_ldbm = no ; then
2187 if test $ol_with_ldbm_api != auto ; then
2188 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2191 if test $ol_with_ldbm_type != auto ; then
2192 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2195 if test $ol_with_ldbm_module != static ; then
2196 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2199 if test $ol_enable_modules != yes -a \
2200 $ol_enable_dnssrv = no -a \
2201 $ol_enable_ldap = no -a \
2202 $ol_enable_passwd = no -a \
2203 $ol_enable_shell = no -a \
2204 $ol_enable_sql = no ; then
2205 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2209 ol_with_ldbm_type=no
2210 ol_with_ldbm_module=static
2213 if test $ol_with_ldbm_api = gdbm -a \
2214 $ol_with_ldbm_type = btree ; then
2215 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2217 if test $ol_with_ldbm_api = mdbm -a \
2218 $ol_with_ldbm_type = btree ; then
2219 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2221 if test $ol_with_ldbm_api = ndbm -a \
2222 $ol_with_ldbm_type = btree ; then
2223 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2227 if test $ol_enable_slurpd = yes ; then
2228 if test $ol_with_threads = no ; then
2229 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2233 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2234 if test $ol_with_kerberos = no ; then
2235 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2236 elif test $ol_with_kerberos = auto ; then
2237 ol_with_kerberos=yes
2240 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2241 if test $ol_with_kerberos = auto ; then
2243 elif test $ol_with_kerberos != no ; then
2244 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2249 if test $ol_enable_spasswd = yes ; then
2250 if test $ol_with_cyrus_sasl = no ; then
2251 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2253 ol_with_cyrus_sasl=yes
2256 echo "$ac_t""done" 1>&6
2279 BUILD_DNSSRV_DYNAMIC=static
2280 BUILD_LDAP_DYNAMIC=static
2281 BUILD_LDBM_DYNAMIC=static
2282 BUILD_PASSWD_DYNAMIC=static
2283 BUILD_SHELL_DYNAMIC=static
2284 BUILD_SQL_DYNAMIC=static
2286 SLAPD_MODULES_LDFLAGS=
2287 SLAPD_MODULES_CPPFLAGS=
2305 cat >> confdefs.h <<\EOF
2306 #define HAVE_MKVERSION 1
2314 *-*-aix*) if test -z "$CC" ; then
2315 case "$ol_with_threads" in
2316 auto | yes | posix) ol_aix_threads=yes ;;
2322 if test $ol_aix_threads = yes ; then
2323 if test -z "${CC}" ; then
2324 for ac_prog in cc_r xlc_r cc
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_CC="$ac_prog"
2349 if test -n "$CC"; then
2350 echo "$ac_t""$CC" 1>&6
2352 echo "$ac_t""no" 1>&6
2355 test -n "$CC" && break
2359 if test "$CC" = cc ; then
2360 if test $ol_with_threads != auto ; then
2361 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2363 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2369 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2370 ol_with_threads=posix
2371 ol_cv_pthread_create=yes
2375 if test -z "${CC}"; then
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2390 for ac_dir in $ac_dummy; do
2391 test -z "$ac_dir" && ac_dir=.
2392 if test -f $ac_dir/$ac_word; then
2393 ac_cv_prog_CC="$ac_prog"
2401 if test -n "$CC"; then
2402 echo "$ac_t""$CC" 1>&6
2404 echo "$ac_t""no" 1>&6
2407 test -n "$CC" && break
2413 for ac_prog in ar gar
2415 # Extract the first word of "$ac_prog", so it can be a program name with args.
2416 set dummy $ac_prog; ac_word=$2
2417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_word" >&5
2419 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 if test -n "$AR"; then
2423 ac_cv_prog_AR="$AR" # Let the user override the test.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_prog_AR="$ac_prog"
2438 if test -n "$AR"; then
2439 echo "$ac_t""$AR" 1>&6
2441 echo "$ac_t""no" 1>&6
2444 test -n "$AR" && break
2450 # Check whether --enable-fast-install or --disable-fast-install was given.
2451 if test "${enable_fast_install+set}" = set; then
2452 enableval="$enable_fast_install"
2453 p=${PACKAGE-default}
2454 case "$enableval" in
2455 yes) enable_fast_install=yes ;;
2456 no) enable_fast_install=no ;;
2458 enable_fast_install=no
2459 # Look at the argument we got. We use all the common list separators.
2460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2461 for pkg in $enableval; do
2462 if test "X$pkg" = "X$p"; then
2463 enable_fast_install=yes
2470 enable_fast_install=yes
2473 # Extract the first word of "ranlib", so it can be a program name with args.
2474 set dummy ranlib; ac_word=$2
2475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_word" >&5
2477 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 if test -n "$RANLIB"; then
2481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2485 for ac_dir in $ac_dummy; do
2486 test -z "$ac_dir" && ac_dir=.
2487 if test -f $ac_dir/$ac_word; then
2488 ac_cv_prog_RANLIB="ranlib"
2493 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2496 RANLIB="$ac_cv_prog_RANLIB"
2497 if test -n "$RANLIB"; then
2498 echo "$ac_t""$RANLIB" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_word" >&5
2507 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2515 for ac_dir in $ac_dummy; do
2516 test -z "$ac_dir" && ac_dir=.
2517 if test -f $ac_dir/$ac_word; then
2526 if test -n "$CC"; then
2527 echo "$ac_t""$CC" 1>&6
2529 echo "$ac_t""no" 1>&6
2532 if test -z "$CC"; then
2533 # Extract the first word of "cc", so it can be a program name with args.
2534 set dummy cc; ac_word=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2546 for ac_dir in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir=.
2548 if test -f $ac_dir/$ac_word; then
2549 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2550 ac_prog_rejected=yes
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2562 if test $# -gt 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 set dummy "$ac_dir/$ac_word" "$@"
2575 if test -n "$CC"; then
2576 echo "$ac_t""$CC" 1>&6
2578 echo "$ac_t""no" 1>&6
2581 if test -z "$CC"; then
2582 case "`uname -s`" in
2583 *win32* | *WIN32* | *CYGWIN*)
2584 # Extract the first word of "cl", so it can be a program name with args.
2585 set dummy cl; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2596 for ac_dir in $ac_dummy; do
2597 test -z "$ac_dir" && ac_dir=.
2598 if test -f $ac_dir/$ac_word; then
2607 if test -n "$CC"; then
2608 echo "$ac_t""$CC" 1>&6
2610 echo "$ac_t""no" 1>&6
2615 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2618 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2619 echo "configure:2620: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2622 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2625 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2626 cross_compiling=$ac_cv_prog_cc_cross
2628 cat > conftest.$ac_ext << EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2636 ac_cv_prog_cc_works=yes
2637 # If we can't run a trivial program, we are probably using a cross compiler.
2638 if (./conftest; exit) 2>/dev/null; then
2639 ac_cv_prog_cc_cross=no
2641 ac_cv_prog_cc_cross=yes
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 ac_cv_prog_cc_works=no
2650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2654 cross_compiling=$ac_cv_prog_cc_cross
2656 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2657 if test $ac_cv_prog_cc_works = no; then
2658 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2661 echo "configure:2662: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2662 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2663 cross_compiling=$ac_cv_prog_cc_cross
2665 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether we are using GNU C" >&5
2667 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.c <<EOF
2675 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2682 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2684 if test $ac_cv_prog_gcc = yes; then
2690 ac_test_CFLAGS="${CFLAGS+set}"
2691 ac_save_CFLAGS="$CFLAGS"
2693 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2694 echo "configure:2695: checking whether ${CC-cc} accepts -g" >&5
2695 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 echo 'void f(){}' > conftest.c
2699 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2708 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2709 if test "$ac_test_CFLAGS" = set; then
2710 CFLAGS="$ac_save_CFLAGS"
2711 elif test $ac_cv_prog_cc_g = yes; then
2712 if test "$GCC" = yes; then
2718 if test "$GCC" = yes; then
2725 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2726 if test "${with_gnu_ld+set}" = set; then
2727 withval="$with_gnu_ld"
2728 test "$withval" = no || with_gnu_ld=yes
2734 if test "$ac_cv_prog_gcc" = yes; then
2735 # Check if gcc -print-prog-name=ld gives a path.
2736 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2737 echo "configure:2738: checking for ld used by GCC" >&5
2738 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2740 # Accept absolute paths.
2741 [\\/]* | [A-Za-z]:[\\/]*)
2742 re_direlt='/[^/][^/]*/\.\./'
2743 # Canonicalize the path of ld
2744 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2745 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2746 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2748 test -z "$LD" && LD="$ac_prog"
2751 # If it fails, then pretend we aren't using GCC.
2755 # If it is relative, then search for the first ld in PATH.
2759 elif test "$with_gnu_ld" = yes; then
2760 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2761 echo "configure:2762: checking for GNU ld" >&5
2763 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2764 echo "configure:2765: checking for non-GNU ld" >&5
2766 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 if test -z "$LD"; then
2770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2771 for ac_dir in $PATH; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2774 ac_cv_path_LD="$ac_dir/$ac_prog"
2775 # Check to see if the program is GNU ld. I'd rather use --version,
2776 # but apparently some GNU ld's only accept -v.
2777 # Break only if it was the GNU/non-GNU ld that we prefer.
2778 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2779 test "$with_gnu_ld" != no && break
2781 test "$with_gnu_ld" != yes && break
2787 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2792 if test -n "$LD"; then
2793 echo "$ac_t""$LD" 1>&6
2795 echo "$ac_t""no" 1>&6
2797 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2798 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2799 echo "configure:2800: checking if the linker ($LD) is GNU ld" >&5
2800 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2804 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2805 ac_cv_prog_gnu_ld=yes
2807 ac_cv_prog_gnu_ld=no
2811 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2814 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2815 echo "configure:2816: checking for BSD-compatible nm" >&5
2816 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 if test -n "$NM"; then
2820 # Let the user override the test.
2823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2824 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2825 test -z "$ac_dir" && ac_dir=.
2826 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2827 # Check to see if the nm accepts a BSD-compat flag.
2828 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2829 # nm: unknown option "B" ignored
2830 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2831 ac_cv_path_NM="$ac_dir/nm -B"
2833 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2834 ac_cv_path_NM="$ac_dir/nm -p"
2837 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2838 continue # so that we can try to find one that supports BSD flags
2843 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2848 echo "$ac_t""$NM" 1>&6
2850 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2851 echo "configure:2852: checking whether ln -s works" >&5
2852 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2856 if ln -s X conftestdata 2>/dev/null
2859 ac_cv_prog_LN_S="ln -s"
2864 LN_S="$ac_cv_prog_LN_S"
2865 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2866 echo "$ac_t""yes" 1>&6
2868 echo "$ac_t""no" 1>&6
2871 if test $host != $build; then
2872 ac_tool_prefix=${host_alias}-
2879 NONE) lt_target="$host" ;;
2880 *) lt_target="$target" ;;
2883 # Check for any special flags to pass to ltconfig.
2884 libtool_flags="--cache-file=$cache_file"
2885 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2886 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2887 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2888 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2889 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2890 libtool_flags="$libtool_flags --enable-dlopen"
2891 libtool_flags="$libtool_flags --enable-win32-dll"
2892 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2893 if test "${enable_libtool_lock+set}" = set; then
2894 enableval="$enable_libtool_lock"
2898 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2899 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2901 # Some flags need to be propagated to the compiler or linker for good
2903 case "$lt_target" in
2905 # Find out which ABI we are using.
2906 echo '#line 2907 "configure"' > conftest.$ac_ext
2907 if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2908 case "`/usr/bin/file conftest.o`" in
2924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2925 SAVE_CFLAGS="$CFLAGS"
2926 CFLAGS="$CFLAGS -belf"
2927 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2928 echo "configure:2929: checking whether the C compiler needs -belf" >&5
2929 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 lt_cv_cc_needs_belf=yes
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 lt_cv_cc_needs_belf=no
2952 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2955 CFLAGS="$SAVE_CFLAGS"
2959 *-*-cygwin* | *-*-mingw*)
2960 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2963 echo "configure:2964: checking for $ac_word" >&5
2964 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 if test -n "$DLLTOOL"; then
2968 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2972 for ac_dir in $ac_dummy; do
2973 test -z "$ac_dir" && ac_dir=.
2974 if test -f $ac_dir/$ac_word; then
2975 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2982 DLLTOOL="$ac_cv_prog_DLLTOOL"
2983 if test -n "$DLLTOOL"; then
2984 echo "$ac_t""$DLLTOOL" 1>&6
2986 echo "$ac_t""no" 1>&6
2990 if test -z "$ac_cv_prog_DLLTOOL"; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "dlltool", so it can be a program name with args.
2993 set dummy dlltool; ac_word=$2
2994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_word" >&5
2996 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 if test -n "$DLLTOOL"; then
3000 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 for ac_dir in $ac_dummy; do
3005 test -z "$ac_dir" && ac_dir=.
3006 if test -f $ac_dir/$ac_word; then
3007 ac_cv_prog_DLLTOOL="dlltool"
3012 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3015 DLLTOOL="$ac_cv_prog_DLLTOOL"
3016 if test -n "$DLLTOOL"; then
3017 echo "$ac_t""$DLLTOOL" 1>&6
3019 echo "$ac_t""no" 1>&6
3027 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}as; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 if test -n "$AS"; then
3035 ac_cv_prog_AS="$AS" # Let the user override the test.
3037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if test -f $ac_dir/$ac_word; then
3042 ac_cv_prog_AS="${ac_tool_prefix}as"
3050 if test -n "$AS"; then
3051 echo "$ac_t""$AS" 1>&6
3053 echo "$ac_t""no" 1>&6
3057 if test -z "$ac_cv_prog_AS"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "as", so it can be a program name with args.
3060 set dummy as; ac_word=$2
3061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_word" >&5
3063 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 if test -n "$AS"; then
3067 ac_cv_prog_AS="$AS" # Let the user override the test.
3069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3071 for ac_dir in $ac_dummy; do
3072 test -z "$ac_dir" && ac_dir=.
3073 if test -f $ac_dir/$ac_word; then
3079 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3083 if test -n "$AS"; then
3084 echo "$ac_t""$AS" 1>&6
3086 echo "$ac_t""no" 1>&6
3094 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_word" >&5
3098 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 if test -n "$OBJDUMP"; then
3102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3106 for ac_dir in $ac_dummy; do
3107 test -z "$ac_dir" && ac_dir=.
3108 if test -f $ac_dir/$ac_word; then
3109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3116 OBJDUMP="$ac_cv_prog_OBJDUMP"
3117 if test -n "$OBJDUMP"; then
3118 echo "$ac_t""$OBJDUMP" 1>&6
3120 echo "$ac_t""no" 1>&6
3124 if test -z "$ac_cv_prog_OBJDUMP"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "objdump", so it can be a program name with args.
3127 set dummy objdump; ac_word=$2
3128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3129 echo "configure:3130: checking for $ac_word" >&5
3130 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 if test -n "$OBJDUMP"; then
3134 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3138 for ac_dir in $ac_dummy; do
3139 test -z "$ac_dir" && ac_dir=.
3140 if test -f $ac_dir/$ac_word; then
3141 ac_cv_prog_OBJDUMP="objdump"
3146 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3149 OBJDUMP="$ac_cv_prog_OBJDUMP"
3150 if test -n "$OBJDUMP"; then
3151 echo "$ac_t""$OBJDUMP" 1>&6
3153 echo "$ac_t""no" 1>&6
3166 # Save cache, so that ltconfig can load it
3169 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3170 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3171 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3172 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3173 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3174 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3175 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3176 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3178 # Reload cache, that may have been modified by ltconfig
3181 # This can be used to rebuild libtool when needed
3182 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3184 # Always use our own libtool.
3185 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3187 # Redirect the config.log output again, so that the ltconfig log is not
3188 # clobbered by the next message.
3189 exec 5>>./config.log
3192 for ac_prog in mawk gawk nawk awk
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_word" >&5
3198 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 if test -n "$AWK"; then
3202 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3206 for ac_dir in $ac_dummy; do
3207 test -z "$ac_dir" && ac_dir=.
3208 if test -f $ac_dir/$ac_word; then
3209 ac_cv_prog_AWK="$ac_prog"
3216 AWK="$ac_cv_prog_AWK"
3217 if test -n "$AWK"; then
3218 echo "$ac_t""$AWK" 1>&6
3220 echo "$ac_t""no" 1>&6
3223 test -n "$AWK" && break
3226 # test for ln hardlink support
3227 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether ln works" >&5
3229 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 rm -f conftest.src conftest.dst
3233 echo "conftest" > conftest.src
3234 if ln conftest.src conftest.dst 2>/dev/null
3236 ol_cv_prog_LN_H="ln"
3238 ol_cv_prog_LN_H="cp"
3240 rm -f conftest.src conftest.dst
3243 LN_H="$ol_cv_prog_LN_H"
3244 if test "$ol_cv_prog_LN_H" = "ln"; then
3245 echo "$ac_t""yes" 1>&6
3247 echo "$ac_t""no" 1>&6
3250 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3251 echo "configure:3252: checking whether ln -s works" >&5
3252 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3256 if ln -s X conftestdata 2>/dev/null
3259 ac_cv_prog_LN_S="ln -s"
3264 LN_S="$ac_cv_prog_LN_S"
3265 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3266 echo "$ac_t""yes" 1>&6
3268 echo "$ac_t""no" 1>&6
3272 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3276 # Extract the first word of "sendmail", so it can be a program name with args.
3277 set dummy sendmail; ac_word=$2
3278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3279 echo "configure:3280: checking for $ac_word" >&5
3280 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3285 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3288 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3292 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3293 for ac_dir in $ac_dummy; do
3294 test -z "$ac_dir" && ac_dir=.
3295 if test -f $ac_dir/$ac_word; then
3296 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3301 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3305 SENDMAIL="$ac_cv_path_SENDMAIL"
3306 if test -n "$SENDMAIL"; then
3307 echo "$ac_t""$SENDMAIL" 1>&6
3309 echo "$ac_t""no" 1>&6
3312 # Extract the first word of "vi", so it can be a program name with args.
3313 set dummy vi; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3321 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3324 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3328 ac_dummy="$PATH:/usr/ucb"
3329 for ac_dir in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir=.
3331 if test -f $ac_dir/$ac_word; then
3332 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3337 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3341 EDITOR="$ac_cv_path_EDITOR"
3342 if test -n "$EDITOR"; then
3343 echo "$ac_t""$EDITOR" 1>&6
3345 echo "$ac_t""no" 1>&6
3348 # Extract the first word of "finger", so it can be a program name with args.
3349 set dummy finger; ac_word=$2
3350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_word" >&5
3352 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3360 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3364 ac_dummy="$PATH:/usr/ucb"
3365 for ac_dir in $ac_dummy; do
3366 test -z "$ac_dir" && ac_dir=.
3367 if test -f $ac_dir/$ac_word; then
3368 ac_cv_path_FINGER="$ac_dir/$ac_word"
3373 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3377 FINGER="$ac_cv_path_FINGER"
3378 if test -n "$FINGER"; then
3379 echo "$ac_t""$FINGER" 1>&6
3381 echo "$ac_t""no" 1>&6
3385 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3386 echo "configure:3387: checking how to run the C preprocessor" >&5
3387 # On Suns, sometimes $CPP names a directory.
3388 if test -n "$CPP" && test -d "$CPP"; then
3391 if test -z "$CPP"; then
3392 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 # This must be in double quotes, not single quotes, because CPP may get
3396 # substituted into the Makefile and "${CC-cc}" will confuse make.
3398 # On the NeXT, cc -E runs the code through the compiler's parser,
3399 # not just through cpp.
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3407 { (eval echo configure:3408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3409 if test -z "$ac_err"; then
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3416 CPP="${CC-cc} -E -traditional-cpp"
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3424 { (eval echo configure:3425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3426 if test -z "$ac_err"; then
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3433 CPP="${CC-cc} -nologo -E"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3441 { (eval echo configure:3442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3443 if test -z "$ac_err"; then
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3457 ac_cv_prog_CPP="$CPP"
3459 CPP="$ac_cv_prog_CPP"
3461 ac_cv_prog_CPP="$CPP"
3463 echo "$ac_t""$CPP" 1>&6
3466 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3467 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3469 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3470 echo "configure: warning: programs compiled here do run here..." 1>&2
3471 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3473 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3474 echo "configure: warning: programs compiled here do not run here..." 1>&2
3475 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3478 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3479 echo "configure:3480: checking for AIX" >&5
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "yes" >/dev/null 2>&1; then
3491 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3492 #define _ALL_SOURCE 1
3497 echo "$ac_t""no" 1>&6
3502 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3503 echo "configure:3504: checking for POSIXized ISC" >&5
3504 if test -d /etc/conf/kconfig.d &&
3505 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3507 echo "$ac_t""yes" 1>&6
3508 ISC=yes # If later tests want to check for ISC.
3509 cat >> confdefs.h <<\EOF
3510 #define _POSIX_SOURCE 1
3513 if test "$GCC" = yes; then
3519 echo "$ac_t""no" 1>&6
3523 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3524 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3525 echo "configure:3526: checking for minix/config.h" >&5
3526 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <minix/config.h>
3534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3535 { (eval echo configure:3536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3537 if test -z "$ac_err"; then
3539 eval "ac_cv_header_$ac_safe=yes"
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3545 eval "ac_cv_header_$ac_safe=no"
3549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3557 if test "$MINIX" = yes; then
3558 cat >> confdefs.h <<\EOF
3559 #define _POSIX_SOURCE 1
3562 cat >> confdefs.h <<\EOF
3563 #define _POSIX_1_SOURCE 2
3566 cat >> confdefs.h <<\EOF
3573 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3574 echo "configure:3575: checking for Cygwin environment" >&5
3575 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3585 #define __CYGWIN__ __CYGWIN32__
3590 if { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3602 echo "$ac_t""$ac_cv_cygwin" 1>&6
3604 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3605 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3606 echo "configure:3607: checking for mingw32 environment" >&5
3607 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3630 echo "$ac_t""$ac_cv_mingw32" 1>&6
3632 test "$ac_cv_mingw32" = yes && MINGW32=yes
3633 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3634 echo "configure:3635: checking for EMX OS/2 environment" >&5
3635 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3646 if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3658 echo "$ac_t""$ac_cv_emxos2" 1>&6
3660 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3664 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3665 echo "configure:3666: checking for executable suffix" >&5
3666 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3673 echo 'int main () { return 0; }' > conftest.$ac_ext
3675 if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3676 for file in conftest.*; do
3678 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3679 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3683 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3686 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3691 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3692 echo "$ac_t""${ac_cv_exeext}" 1>&6
3695 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3696 echo "configure:3697: checking for object suffix" >&5
3697 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3701 echo 'int i = 1;' > conftest.$ac_ext
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 for ac_file in conftest.*; do
3706 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3710 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3715 echo "$ac_t""$ac_cv_objext" 1>&6
3716 OBJEXT=$ac_cv_objext
3717 ac_objext=$ac_cv_objext
3720 cat >> confdefs.h <<EOF
3721 #define EXEEXT "${EXEEXT}"
3725 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3726 echo "configure:3727: checking for be_app in -lbe" >&5
3727 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_save_LIBS="$LIBS"
3732 LIBS="-lbe -lroot -lnet $LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_lib_$ac_lib_var=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_lib_$ac_lib_var=no"
3755 LIBS="$ac_save_LIBS"
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3760 LIBS="$LIBS -lbe -lroot -lnet"
3762 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3771 echo "configure:3772: checking for ${CC-cc} option to accept ANSI C" >&5
3772 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 am_cv_prog_cc_stdc=no
3777 # Don't try gcc -ansi; that turns off useful extensions and
3778 # breaks some systems' header files.
3779 # AIX -qlanglvl=ansi
3780 # Ultrix and OSF/1 -std1
3781 # HP-UX 10.20 and later -Ae
3782 # HP-UX older versions -Aa -D_HPUX_SOURCE
3783 # SVR4 -Xc -D__EXTENSIONS__
3784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3792 #include <sys/types.h>
3793 #include <sys/stat.h>
3794 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3795 struct buf { int x; };
3796 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797 static char *e (p, i)
3803 static char *f (char * (*g) (char **, int), char **p, ...)
3808 s = g (p, va_arg (v,int));
3812 int test (int i, double x);
3813 struct s1 {int (*f) (int a);};
3814 struct s2 {int (*f) (double a);};
3815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 am_cv_prog_cc_stdc="$ac_arg"; break
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3838 if test -z "$am_cv_prog_cc_stdc"; then
3839 echo "$ac_t""none needed" 1>&6
3841 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3843 case "x$am_cv_prog_cc_stdc" in
3845 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3848 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3849 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3852 # test for make depend flag
3855 if test -z "${MKDEP}"; then
3857 if test -z "${MKDEP_FLAGS}"; then
3858 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3859 echo "configure:3860: checking for ${OL_MKDEP} depend flag" >&5
3860 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3865 for flag in "-M" "-xM"; do
3866 cat > conftest.c <<EOF
3869 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3870 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3872 if test ! -f conftest."${ac_object}" ; then
3874 OL_MKDEP_FLAGS="$flag"
3883 echo "$ac_t""$ol_cv_mkdep" 1>&6
3886 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3891 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3896 if test "${ol_cv_mkdep}" = no ; then
3897 # this will soon become an error
3898 echo "configure: warning: do not know how to generate dependencies" 1>&2
3901 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3902 echo "configure:3903: checking for afopen in -ls" >&5
3903 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 ac_save_LIBS="$LIBS"
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 eval "ac_cv_lib_$ac_lib_var=yes"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 eval "ac_cv_lib_$ac_lib_var=no"
3931 LIBS="$ac_save_LIBS"
3934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_AIX_SECURITY 1
3944 echo "$ac_t""no" 1>&6
3950 if test $ol_enable_modules != no ; then
3951 for ac_hdr in ltdl.h
3953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3955 echo "configure:3956: checking for $ac_hdr" >&5
3956 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3965 { (eval echo configure:3966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3967 if test -z "$ac_err"; then
3969 eval "ac_cv_header_$ac_safe=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 eval "ac_cv_header_$ac_safe=no"
3979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3982 cat >> confdefs.h <<EOF
3983 #define $ac_tr_hdr 1
3987 echo "$ac_t""no" 1>&6
3992 if test $ac_cv_header_ltdl_h = no ; then
3993 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3996 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3997 echo "configure:3998: checking for lt_dlinit in -lltdl" >&5
3998 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 ac_save_LIBS="$LIBS"
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 eval "ac_cv_lib_$ac_lib_var=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 eval "ac_cv_lib_$ac_lib_var=no"
4026 LIBS="$ac_save_LIBS"
4029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4030 echo "$ac_t""yes" 1>&6
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_LIBLTDL 1
4039 echo "$ac_t""no" 1>&6
4043 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4044 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4048 ol_with_dnssrv_module=static
4049 ol_with_ldap_module=static
4050 ol_with_ldbm_module=static
4051 ol_with_passwd_module=static
4052 ol_with_shell_module=static
4053 ol_with_sql_module=static
4057 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4058 echo "configure:4059: checking for EBCDIC" >&5
4059 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4068 #include <__ASCII__/generate_error.h>
4072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4073 { (eval echo configure:4074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4075 if test -z "$ac_err"; then
4077 ol_cv_cpp_ebcdic=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4088 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4089 if test $ol_cv_cpp_ebcdic = yes ; then
4090 cat >> confdefs.h <<\EOF
4091 #define HAVE_EBCDIC 1
4096 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4097 echo "configure:4098: checking for ANSI C header files" >&5
4098 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4110 { (eval echo configure:4111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4112 if test -z "$ac_err"; then
4114 ol_cv_header_stdc=yes
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 ol_cv_header_stdc=no
4124 if test $ol_cv_header_stdc = yes; then
4125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 egrep "memchr" >/dev/null 2>&1; then
4136 ol_cv_header_stdc=no
4142 if test $ol_cv_header_stdc = yes; then
4143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 egrep "free" >/dev/null 2>&1; then
4154 ol_cv_header_stdc=no
4160 if test $ol_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179 int main () { int i; for (i = 0; i < 256; i++)
4180 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 ol_cv_header_stdc=no
4199 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4200 if test $ol_cv_header_stdc = yes; then
4201 cat >> confdefs.h <<\EOF
4202 #define STDC_HEADERS 1
4206 ac_cv_header_stdc=disable
4209 if test $ol_cv_header_stdc != yes; then
4210 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4217 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4218 echo "configure:4219: checking for $ac_hdr that defines DIR" >&5
4219 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <sys/types.h>
4231 if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4233 eval "ac_cv_header_dirent_$ac_safe=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_header_dirent_$ac_safe=no"
4242 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_hdr 1
4248 ac_header_dirent=$ac_hdr; break
4250 echo "$ac_t""no" 1>&6
4253 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4254 if test $ac_header_dirent = dirent.h; then
4255 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4256 echo "configure:4257: checking for opendir in -ldir" >&5
4257 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4292 echo "$ac_t""no" 1>&6
4296 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4297 echo "configure:4298: checking for opendir in -lx" >&5
4298 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4299 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 ac_save_LIBS="$LIBS"
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4318 eval "ac_cv_lib_$ac_lib_var=yes"
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4323 eval "ac_cv_lib_$ac_lib_var=no"
4326 LIBS="$ac_save_LIBS"
4329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4333 echo "$ac_t""no" 1>&6
4338 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4339 echo "configure:4340: checking for sys/wait.h that is POSIX.1 compatible" >&5
4340 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 #include <sys/types.h>
4347 #include <sys/wait.h>
4349 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4352 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4360 if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 ac_cv_header_sys_wait_h=yes
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4367 ac_cv_header_sys_wait_h=no
4372 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4373 if test $ac_cv_header_sys_wait_h = yes; then
4374 cat >> confdefs.h <<\EOF
4375 #define HAVE_SYS_WAIT_H 1
4380 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4381 echo "configure:4382: checking POSIX termios" >&5
4382 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 #include <sys/types.h>
4390 #include <termios.h>
4392 /* SunOS 4.0.3 has termios.h but not the library calls. */
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398 am_cv_sys_posix_termios=yes
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 am_cv_sys_posix_termios=no
4408 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4411 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4412 echo "configure:4413: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4413 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4418 gwinsz_in_termios_h=no
4419 if test $am_cv_sys_posix_termios = yes; then
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <sys/types.h>
4424 # include <termios.h>
4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431 egrep "yes" >/dev/null 2>&1; then
4433 gwinsz_in_termios_h=yes
4439 if test $gwinsz_in_termios_h = no; then
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 #include <sys/types.h>
4444 # include <sys/ioctl.h>
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451 egrep "yes" >/dev/null 2>&1; then
4453 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4461 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4462 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4463 cat >> confdefs.h <<\EOF
4464 #define GWINSZ_IN_SYS_IOCTL 1
4469 if test $am_cv_sys_posix_termios = yes ; then
4470 cat >> confdefs.h <<\EOF
4471 #define HAVE_POSIX_TERMIOS 1
4522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_hdr" >&5
4525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4534 { (eval echo configure:4535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4536 if test -z "$ac_err"; then
4538 eval "ac_cv_header_$ac_safe=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_header_$ac_safe=no"
4548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_hdr 1
4556 echo "$ac_t""no" 1>&6
4563 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4564 echo "configure:4565: checking for dlopen" >&5
4565 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* System header to define __stub macros and hopefully few prototypes,
4572 which can conflict with char dlopen(); below. */
4574 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_func_dlopen=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_func_dlopen=no"
4605 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4609 echo "$ac_t""no" 1>&6
4610 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4611 echo "configure:4612: checking for dlopen in -ldl" >&5
4612 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4613 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 ac_save_LIBS="$LIBS"
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 eval "ac_cv_lib_$ac_lib_var=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 eval "ac_cv_lib_$ac_lib_var=no"
4640 LIBS="$ac_save_LIBS"
4643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_lib 1
4654 echo "$ac_t""no" 1>&6
4660 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4661 echo "configure:4662: checking for sigset in -lV3" >&5
4662 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4663 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 ac_save_LIBS="$LIBS"
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* Override any gcc2 internal prototype to avoid an error. */
4672 /* We use char because int might match the return type of a gcc2
4673 builtin and then its argument prototype would still apply. */
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4682 eval "ac_cv_lib_$ac_lib_var=yes"
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4687 eval "ac_cv_lib_$ac_lib_var=no"
4690 LIBS="$ac_save_LIBS"
4693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_lib 1
4704 echo "$ac_t""no" 1>&6
4708 if test $ac_cv_header_winsock_h = yes; then
4709 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4710 echo "configure:4711: checking for winsock" >&5
4711 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 #include <winsock.h>
4721 select(0,NULL,NULL,NULL,NULL);
4723 gethostname(NULL,0);
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4739 echo "$ac_t""$ol_cv_winsock" 1>&6
4741 if test $ol_cv_winsock = yes ; then
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_WINSOCK 1
4746 ac_cv_func_socket=yes
4747 ac_cv_func_select=yes
4748 ac_cv_func_closesocket=yes
4749 ac_cv_func_gethostname=yes
4754 echo $ac_n "checking for socket""... $ac_c" 1>&6
4755 echo "configure:4756: checking for socket" >&5
4756 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char socket(); below. */
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_socket) || defined (__stub___socket)
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 eval "ac_cv_func_socket=yes"
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4791 eval "ac_cv_func_socket=no"
4796 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4800 echo "$ac_t""no" 1>&6
4802 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4803 echo "configure:4804: checking for main in -lsocket" >&5
4804 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 ac_save_LIBS="$LIBS"
4809 LIBS="-lsocket $LIBS"
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4818 if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4820 eval "ac_cv_lib_$ac_lib_var=yes"
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4825 eval "ac_cv_lib_$ac_lib_var=no"
4828 LIBS="$ac_save_LIBS"
4831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4835 cat >> confdefs.h <<EOF
4836 #define $ac_tr_lib 1
4839 LIBS="-lsocket $LIBS"
4842 echo "$ac_t""no" 1>&6
4845 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4846 echo "configure:4847: checking for main in -lnet" >&5
4847 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4848 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 ac_save_LIBS="$LIBS"
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4863 eval "ac_cv_lib_$ac_lib_var=yes"
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4868 eval "ac_cv_lib_$ac_lib_var=no"
4871 LIBS="$ac_save_LIBS"
4874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4875 echo "$ac_t""yes" 1>&6
4876 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4877 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4878 cat >> confdefs.h <<EOF
4879 #define $ac_tr_lib 1
4885 echo "$ac_t""no" 1>&6
4888 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4889 echo "configure:4890: checking for main in -lnsl_s" >&5
4890 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4891 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 ac_save_LIBS="$LIBS"
4895 LIBS="-lnsl_s $LIBS"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 eval "ac_cv_lib_$ac_lib_var=yes"
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 eval "ac_cv_lib_$ac_lib_var=no"
4914 LIBS="$ac_save_LIBS"
4917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4919 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4921 cat >> confdefs.h <<EOF
4922 #define $ac_tr_lib 1
4925 LIBS="-lnsl_s $LIBS"
4928 echo "$ac_t""no" 1>&6
4931 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4932 echo "configure:4933: checking for main in -lnsl" >&5
4933 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 ac_save_LIBS="$LIBS"
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 eval "ac_cv_lib_$ac_lib_var=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_lib_$ac_lib_var=no"
4957 LIBS="$ac_save_LIBS"
4960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_lib 1
4971 echo "$ac_t""no" 1>&6
4974 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4975 echo "configure:4976: checking for socket in -linet" >&5
4976 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 ac_save_LIBS="$LIBS"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4994 if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4996 eval "ac_cv_lib_$ac_lib_var=yes"
4998 echo "configure: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5001 eval "ac_cv_lib_$ac_lib_var=no"
5004 LIBS="$ac_save_LIBS"
5007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5008 echo "$ac_t""yes" 1>&6
5009 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5011 cat >> confdefs.h <<EOF
5012 #define $ac_tr_lib 1
5018 echo "$ac_t""no" 1>&6
5021 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5022 echo "configure:5023: checking for main in -lgen" >&5
5023 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 ac_save_LIBS="$LIBS"
5029 cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5037 if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5039 eval "ac_cv_lib_$ac_lib_var=yes"
5041 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5044 eval "ac_cv_lib_$ac_lib_var=no"
5047 LIBS="$ac_save_LIBS"
5050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5051 echo "$ac_t""yes" 1>&6
5052 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5054 cat >> confdefs.h <<EOF
5055 #define $ac_tr_lib 1
5061 echo "$ac_t""no" 1>&6
5068 echo $ac_n "checking for select""... $ac_c" 1>&6
5069 echo "configure:5070: checking for select" >&5
5070 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char select(); below. */
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5087 /* The GNU C library defines this for functions which it implements
5088 to always fail with ENOSYS. Some functions are actually named
5089 something starting with __ and the normal name is an alias. */
5090 #if defined (__stub_select) || defined (__stub___select)
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 eval "ac_cv_func_select=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_func_select=no"
5110 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5111 echo "$ac_t""yes" 1>&6
5114 echo "$ac_t""no" 1>&6
5115 { echo "configure: error: select() required." 1>&2; exit 1; }
5119 if test "${ac_cv_header_winsock_h}" != yes; then
5120 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5121 echo "configure:5122: checking types of arguments for select()" >&5
5122 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5132 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5133 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 #ifdef HAVE_SYS_TYPES_H
5138 #include <sys/types.h>
5140 #ifdef HAVE_SYS_TIME_H
5141 #include <sys/time.h>
5143 #ifdef HAVE_SYS_SELECT_H
5144 #include <sys/select.h>
5146 #ifdef HAVE_SYS_SOCKET_H
5147 #include <sys/socket.h>
5149 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);
5154 if { (eval echo configure:5155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5156 ac_not_found=no ; break 3
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5173 if test "$ac_not_found" = yes; then
5174 ac_cv_func_select_arg1=int
5175 ac_cv_func_select_arg234='int *'
5176 ac_cv_func_select_arg5='struct timeval *'
5178 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5179 cat >> confdefs.h <<EOF
5180 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5183 cat >> confdefs.h <<EOF
5184 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5187 cat >> confdefs.h <<EOF
5188 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5195 for ac_hdr in regex.h
5197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5199 echo "configure:5200: checking for $ac_hdr" >&5
5200 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5209 { (eval echo configure:5210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5211 if test -z "$ac_err"; then
5213 eval "ac_cv_header_$ac_safe=yes"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 eval "ac_cv_header_$ac_safe=no"
5223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5226 cat >> confdefs.h <<EOF
5227 #define $ac_tr_hdr 1
5231 echo "$ac_t""no" 1>&6
5235 if test "$ac_cv_header_regex_h" != yes ; then
5236 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5238 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5239 echo "configure:5240: checking for regfree" >&5
5240 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* System header to define __stub macros and hopefully few prototypes,
5247 which can conflict with char regfree(); below. */
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_regfree) || defined (__stub___regfree)
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_func_regfree=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_func_regfree=no"
5280 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5284 echo "$ac_t""no" 1>&6
5285 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5290 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5291 echo "configure:5292: checking for compatible POSIX regex" >&5
5292 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5296 if test "$cross_compiling" = yes; then
5297 ol_cv_c_posix_regex=cross
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 #include <sys/types.h>
5305 static char *pattern, *string;
5313 if(regcomp(&re, pattern, 0)) {
5317 string = "ALL MATCH";
5319 rc = regexec(&re, string, 0, (void*)0, 0);
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5328 ol_cv_c_posix_regex=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ol_cv_c_posix_regex=no
5340 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5342 if test "$ol_cv_c_posix_regex" = no ; then
5343 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5347 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5348 echo "configure:5349: checking for res_query" >&5
5349 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 /* System header to define __stub macros and hopefully few prototypes,
5356 which can conflict with char res_query(); below. */
5358 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_res_query) || defined (__stub___res_query)
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 eval "ac_cv_func_res_query=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_func_res_query=no"
5389 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5393 echo "$ac_t""no" 1>&6
5396 if test $ac_cv_func_res_query = no ; then
5397 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5398 echo "configure:5399: checking for __res_query" >&5
5399 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* System header to define __stub macros and hopefully few prototypes,
5406 which can conflict with char __res_query(); below. */
5408 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5416 /* The GNU C library defines this for functions which it implements
5417 to always fail with ENOSYS. Some functions are actually named
5418 something starting with __ and the normal name is an alias. */
5419 #if defined (__stub___res_query) || defined (__stub_____res_query)
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 eval "ac_cv_func___res_query=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_func___res_query=no"
5439 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5443 echo "$ac_t""no" 1>&6
5446 ac_cv_func_res_query=$ac_cv_func___res_query
5449 if test $ac_cv_func_res_query = no ; then
5450 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5451 echo "configure:5452: checking for res_query in -lbind" >&5
5452 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5453 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 ac_save_LIBS="$LIBS"
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5472 eval "ac_cv_lib_$ac_lib_var=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 eval "ac_cv_lib_$ac_lib_var=no"
5480 LIBS="$ac_save_LIBS"
5483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5487 cat >> confdefs.h <<EOF
5488 #define $ac_tr_lib 1
5494 echo "$ac_t""no" 1>&6
5497 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5500 if test $ac_cv_func_res_query = no ; then
5501 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5502 echo "configure:5503: checking for __res_query in -lbind" >&5
5503 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 ac_save_LIBS="$LIBS"
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5521 if { (eval echo configure:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5523 eval "ac_cv_lib_$ac_lib_var=yes"
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5528 eval "ac_cv_lib_$ac_lib_var=no"
5531 LIBS="$ac_save_LIBS"
5534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5538 cat >> confdefs.h <<EOF
5539 #define $ac_tr_lib 1
5545 echo "$ac_t""no" 1>&6
5548 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5551 if test $ac_cv_func_res_query = no ; then
5552 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5553 echo "configure:5554: checking for res_query in -lresolv" >&5
5554 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 ac_save_LIBS="$LIBS"
5559 LIBS="-lresolv $LIBS"
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5574 eval "ac_cv_lib_$ac_lib_var=yes"
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 eval "ac_cv_lib_$ac_lib_var=no"
5582 LIBS="$ac_save_LIBS"
5585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5587 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5589 cat >> confdefs.h <<EOF
5590 #define $ac_tr_lib 1
5593 LIBS="-lresolv $LIBS"
5596 echo "$ac_t""no" 1>&6
5599 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5602 if test $ac_cv_func_res_query = no ; then
5603 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
5604 echo "configure:5605: checking for __res_query in -lresolv" >&5
5605 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
5606 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 ac_save_LIBS="$LIBS"
5610 LIBS="-lresolv $LIBS"
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5625 eval "ac_cv_lib_$ac_lib_var=yes"
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5630 eval "ac_cv_lib_$ac_lib_var=no"
5633 LIBS="$ac_save_LIBS"
5636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5639 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5640 cat >> confdefs.h <<EOF
5641 #define $ac_tr_lib 1
5644 LIBS="-lresolv $LIBS"
5647 echo "$ac_t""no" 1>&6
5650 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
5653 if test "$ac_cv_func_res_query" = yes ; then
5654 cat >> confdefs.h <<\EOF
5655 #define HAVE_RES_QUERY 1
5659 if test $ol_enable_dnssrv != no ; then
5664 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5665 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5668 for ac_func in getaddrinfo gai_strerror inet_ntop
5670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_func" >&5
5672 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 /* System header to define __stub macros and hopefully few prototypes,
5679 which can conflict with char $ac_func(); below. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5689 /* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 eval "ac_cv_func_$ac_func=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_func_$ac_func=no"
5712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5715 cat >> confdefs.h <<EOF
5716 #define $ac_tr_func 1
5720 echo "$ac_t""no" 1>&6
5726 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5727 if test $ol_enable_ipv6 = yes ; then
5728 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5730 elif test $ol_enable_ipv6 != no ; then
5731 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5732 echo "configure:5733: checking INET6_ADDRSTRLEN" >&5
5733 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5741 # include <netinet/in.h>
5742 # ifdef INET6_ADDRSTRLEN
5743 __has_inet6_addrstrlen__;
5747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5750 ol_cv_inet6_addrstrlen=yes
5753 ol_cv_inet6_addrstrlen=no
5759 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5761 if test $ol_cv_inet6_addrstrlen = yes ; then
5763 elif test $ol_enable_ipv6 = yes ; then
5764 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5768 if test $ol_enable_local != no ; then
5769 for ac_hdr in sys/un.h
5771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_hdr" >&5
5774 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5783 { (eval echo configure:5784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5785 if test -z "$ac_err"; then
5787 eval "ac_cv_header_$ac_safe=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_header_$ac_safe=no"
5797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5800 cat >> confdefs.h <<EOF
5801 #define $ac_tr_hdr 1
5805 echo "$ac_t""no" 1>&6
5810 if test $ol_enable_local = auto ; then
5811 ol_enable_local=$ac_cv_header_sys_un_h
5812 elif test $ac_cv_header_sys_un_h = no ; then
5813 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5822 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5823 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5824 -o $ol_with_kerberos = k425 ; then
5826 for ac_hdr in krb5.h
5828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_hdr" >&5
5831 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5840 { (eval echo configure:5841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5842 if test -z "$ac_err"; then
5844 eval "ac_cv_header_$ac_safe=yes"
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5850 eval "ac_cv_header_$ac_safe=no"
5854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5855 echo "$ac_t""yes" 1>&6
5856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5857 cat >> confdefs.h <<EOF
5858 #define $ac_tr_hdr 1
5862 echo "$ac_t""no" 1>&6
5867 if test $ac_cv_header_krb5_h = yes ; then
5868 for ac_hdr in heim_err.h
5870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_hdr" >&5
5873 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5882 { (eval echo configure:5883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5884 if test -z "$ac_err"; then
5886 eval "ac_cv_header_$ac_safe=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_header_$ac_safe=no"
5896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5897 echo "$ac_t""yes" 1>&6
5898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5899 cat >> confdefs.h <<EOF
5900 #define $ac_tr_hdr 1
5904 echo "$ac_t""no" 1>&6
5908 if test $ac_cv_header_heim_err_h = yes ; then
5914 if test $krb5_impl = mit; then
5915 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
5916 echo "configure:5917: checking for main in -lk5crypto" >&5
5917 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
5918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5921 ac_save_LIBS="$LIBS"
5922 LIBS="-lk5crypto $LIBS"
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933 eval "ac_cv_lib_$ac_lib_var=yes"
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 eval "ac_cv_lib_$ac_lib_var=no"
5941 LIBS="$ac_save_LIBS"
5944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5948 echo "$ac_t""no" 1>&6
5953 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5954 echo "configure:5955: checking for main in -lkrb5" >&5
5955 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 ac_save_LIBS="$LIBS"
5960 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 eval "ac_cv_lib_$ac_lib_var=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 eval "ac_cv_lib_$ac_lib_var=no"
5979 LIBS="$ac_save_LIBS"
5982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5985 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
5987 echo "$ac_t""no" 1>&6
5992 elif test $krb5_impl = heimdal; then
5993 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5994 echo "configure:5995: checking for main in -lkrb5" >&5
5995 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5996 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 ac_save_LIBS="$LIBS"
6000 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6011 eval "ac_cv_lib_$ac_lib_var=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 eval "ac_cv_lib_$ac_lib_var=no"
6019 LIBS="$ac_save_LIBS"
6022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6025 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6027 echo "$ac_t""no" 1>&6
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_HEIMDAL_KERBEROS 1
6039 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6042 if test $have_krb5 = yes ; then
6045 cat >> confdefs.h <<\EOF
6050 if test $ol_enable_kpasswd != no ; then
6051 ol_link_kpasswd=yes;
6054 if test $ol_with_kerberos = k5only ; then
6055 ol_with_kerberos=found
6058 elif test $ol_with_kerberos != auto ; then
6059 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6065 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6066 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6068 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_hdr" >&5
6073 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6084 if test -z "$ac_err"; then
6086 eval "ac_cv_header_$ac_safe=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_header_$ac_safe=no"
6096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6099 cat >> confdefs.h <<EOF
6100 #define $ac_tr_hdr 1
6104 echo "$ac_t""no" 1>&6
6109 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6110 if test $krb5_impl = mit; then
6111 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6112 echo "configure:6113: checking for main in -lkrb4" >&5
6113 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 ac_save_LIBS="$LIBS"
6118 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6129 eval "ac_cv_lib_$ac_lib_var=yes"
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6134 eval "ac_cv_lib_$ac_lib_var=no"
6137 LIBS="$ac_save_LIBS"
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6141 echo "$ac_t""yes" 1>&6
6143 KRB4_LIBS="-lkrb4 -ldes425"
6145 echo "$ac_t""no" 1>&6
6150 elif test $krb5_impl = heimdal; then
6151 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6152 echo "configure:6153: checking for main in -lkrb4" >&5
6153 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6157 ac_save_LIBS="$LIBS"
6158 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 eval "ac_cv_lib_$ac_lib_var=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_lib_$ac_lib_var=no"
6177 LIBS="$ac_save_LIBS"
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6192 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6195 if test $have_k425 = yes ; then
6196 ol_with_kerberos=found
6199 cat >> confdefs.h <<\EOF
6200 #define HAVE_KRB425 1
6203 cat >> confdefs.h <<\EOF
6208 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6209 echo "configure:6210: checking for des_debug in Kerberos libraries" >&5
6210 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6215 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6220 #include <kerberosIV/krb.h>
6221 #include <kerberosIV/des.h>
6222 extern int des_debug;
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 ol_cv_var_des_debug=yes
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 ol_cv_var_des_debug=no
6244 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6246 if test $ol_cv_var_des_debug = yes ; then
6247 cat >> confdefs.h <<\EOF
6248 #define HAVE_DES_DEBUG 1
6258 if test $ol_link_krb5 = yes ; then
6259 ol_with_kerberos=found
6262 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6263 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6265 for ac_hdr in krb.h des.h krb-archaeology.h
6267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_hdr" >&5
6270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6279 { (eval echo configure:6280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6281 if test -z "$ac_err"; then
6283 eval "ac_cv_header_$ac_safe=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_header_$ac_safe=no"
6293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_hdr 1
6301 echo "$ac_t""no" 1>&6
6306 if test $ac_cv_header_krb_h = yes ; then
6307 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6308 echo "configure:6309: checking for main in -lkrb" >&5
6309 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 ac_save_LIBS="$LIBS"
6314 LIBS="-lkrb -ldes $LIBS"
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_lib_$ac_lib_var=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_lib_$ac_lib_var=no"
6333 LIBS="$ac_save_LIBS"
6336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6340 echo "$ac_t""no" 1>&6
6345 if test $have_k4 = yes ; then
6346 ol_with_kerberos=found
6349 cat >> confdefs.h <<\EOF
6354 KRB4_LIBS="-lkrb -ldes"
6356 if test $ac_cv_header_krb_archaeology_h = yes ; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_KTH_KERBEROS 1
6366 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6370 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6373 elif test $ol_enable_kbind = yes ; then
6374 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6377 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6378 cat >> confdefs.h <<\EOF
6379 #define HAVE_KERBEROS 1
6383 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6384 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6388 if test $ol_with_tls != no ; then
6389 for ac_hdr in openssl/ssl.h ssl.h
6391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6393 echo "configure:6394: checking for $ac_hdr" >&5
6394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6403 { (eval echo configure:6404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6405 if test -z "$ac_err"; then
6407 eval "ac_cv_header_$ac_safe=yes"
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6413 eval "ac_cv_header_$ac_safe=no"
6417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6420 cat >> confdefs.h <<EOF
6421 #define $ac_tr_hdr 1
6425 echo "$ac_t""no" 1>&6
6430 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6431 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6432 echo "configure:6433: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6433 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6434 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 ac_save_LIBS="$LIBS"
6438 LIBS="-lssl -lcrypto $LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6445 char SSLeay_add_ssl_algorithms();
6448 SSLeay_add_ssl_algorithms()
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_lib_$ac_lib_var=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_lib_$ac_lib_var=no"
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6469 echo "$ac_t""no" 1>&6
6474 if test $have_ssleay = no ; then
6475 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6476 echo "configure:6477: checking for SSL_library_init in -lssl" >&5
6477 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6478 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 ac_save_LIBS="$LIBS"
6482 LIBS="-lssl -lcrypto $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char SSL_library_init();
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_lib_$ac_lib_var=no"
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6513 echo "$ac_t""no" 1>&6
6519 if test $have_ssleay = no ; then
6520 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6521 echo "configure:6522: checking for ssl3_accept in -lssl" >&5
6522 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 ac_save_LIBS="$LIBS"
6527 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6540 if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 eval "ac_cv_lib_$ac_lib_var=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_lib_$ac_lib_var=no"
6550 LIBS="$ac_save_LIBS"
6553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6558 echo "$ac_t""no" 1>&6
6564 if test $have_ssleay = yes ; then
6568 cat >> confdefs.h <<\EOF
6569 #define HAVE_SSLEAY 1
6573 if test $need_rsaref = yes; then
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_RSAREF 1
6579 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6581 TLS_LIBS="-lssl -lcrypto"
6587 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6590 if test $ol_link_tls = yes ; then
6591 cat >> confdefs.h <<\EOF
6596 elif test $ol_with_tls = auto ; then
6597 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6598 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6600 elif test $ol_with_tls != no ; then
6601 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6606 gethostbyname_r gethostbyaddr_r \
6609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6610 echo "configure:6611: checking for $ac_func" >&5
6611 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char $ac_func(); below. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 /* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */
6628 /* The GNU C library defines this for functions which it implements
6629 to always fail with ENOSYS. Some functions are actually named
6630 something starting with __ and the normal name is an alias. */
6631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6641 eval "ac_cv_func_$ac_func=yes"
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 eval "ac_cv_func_$ac_func=no"
6651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6654 cat >> confdefs.h <<EOF
6655 #define $ac_tr_func 1
6659 echo "$ac_t""no" 1>&6
6664 if test "$ac_cv_func_ctime_r" = no ; then
6665 ol_cv_func_ctime_r_nargs=0
6667 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6668 echo "configure:6669: checking number of arguments of ctime_r" >&5
6669 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6677 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6680 if { (eval echo configure:6681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6682 ol_cv_func_ctime_r_nargs3=yes
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6687 ol_cv_func_ctime_r_nargs3=no
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6696 time_t ti; char *buffer; ctime_r(&ti,buffer);
6699 if { (eval echo configure:6700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6701 ol_cv_func_ctime_r_nargs2=yes
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 ol_cv_func_ctime_r_nargs2=no
6710 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6711 $ol_cv_func_ctime_r_nargs2 = no ; then
6713 ol_cv_func_ctime_r_nargs=3
6715 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6716 $ol_cv_func_ctime_r_nargs2 = yes ; then
6718 ol_cv_func_ctime_r_nargs=2
6721 ol_cv_func_ctime_r_nargs=0
6726 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6728 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6729 cat >> confdefs.h <<EOF
6730 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6737 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6738 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6739 echo "configure:6740: checking number of arguments of gethostbyname_r" >&5
6740 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 #include <sys/types.h>
6747 #include <sys/socket.h>
6748 #include <netinet/in.h>
6750 #define BUFSIZE (sizeof(struct hostent)+10)
6752 struct hostent hent; char buffer[BUFSIZE];
6753 int bufsize=BUFSIZE;int h_errno;
6754 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6755 buffer, bufsize, &h_errno);
6758 if { (eval echo configure:6759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6760 ol_cv_func_gethostbyname_r_nargs5=yes
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6765 ol_cv_func_gethostbyname_r_nargs5=no
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 #include <sys/types.h>
6773 #include <sys/socket.h>
6774 #include <netinet/in.h>
6776 #define BUFSIZE (sizeof(struct hostent)+10)
6778 struct hostent hent;struct hostent *rhent;
6779 char buffer[BUFSIZE];
6780 int bufsize=BUFSIZE;int h_errno;
6781 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6785 if { (eval echo configure:6786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6787 ol_cv_func_gethostbyname_r_nargs6=yes
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6792 ol_cv_func_gethostbyname_r_nargs6=no
6796 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6797 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6799 ol_cv_func_gethostbyname_r_nargs=5
6801 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6802 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6804 ol_cv_func_gethostbyname_r_nargs=6
6807 ol_cv_func_gethostbyname_r_nargs=0
6812 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6813 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6814 cat >> confdefs.h <<EOF
6815 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6821 ol_cv_func_gethostbyname_r_nargs=0
6824 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6825 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6826 echo "configure:6827: checking number of arguments of gethostbyaddr_r" >&5
6827 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 #include <sys/types.h>
6834 #include <sys/socket.h>
6835 #include <netinet/in.h>
6837 #define BUFSIZE (sizeof(struct hostent)+10)
6839 struct hostent hent; char buffer[BUFSIZE];
6841 size_t alen=sizeof(struct in_addr);
6842 int bufsize=BUFSIZE;int h_errno;
6843 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6844 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6847 if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6849 ol_cv_func_gethostbyaddr_r_nargs7=yes
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 ol_cv_func_gethostbyaddr_r_nargs7=no
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <sys/types.h>
6862 #include <sys/socket.h>
6863 #include <netinet/in.h>
6865 #define BUFSIZE (sizeof(struct hostent)+10)
6867 struct hostent hent;
6868 struct hostent *rhent; char buffer[BUFSIZE];
6870 size_t alen=sizeof(struct in_addr);
6871 int bufsize=BUFSIZE;int h_errno;
6872 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6873 alen, AF_INET, &hent, buffer, bufsize,
6877 if { (eval echo configure:6878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6879 ol_cv_func_gethostbyaddr_r_nargs8=yes
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 ol_cv_func_gethostbyaddr_r_nargs8=no
6888 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6889 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6891 ol_cv_func_gethostbyaddr_r_nargs=7
6893 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6894 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6896 ol_cv_func_gethostbyaddr_r_nargs=8
6899 ol_cv_func_gethostbyaddr_r_nargs=0
6904 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6905 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6906 cat >> confdefs.h <<EOF
6907 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6913 ol_cv_func_gethostbyaddr_r_nargs=0
6916 if test "$ac_cv_func_ctime_r" = yes \
6917 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6918 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6919 -a "$ac_cv_func_gethostbyname_r" = yes \
6920 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6921 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6922 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6923 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6924 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6927 cat >> confdefs.h <<\EOF
6928 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6935 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6936 -o $ol_with_threads = nt ; then
6939 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6940 echo "configure:6941: checking for _beginthread" >&5
6941 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6947 /* System header to define __stub macros and hopefully few prototypes,
6948 which can conflict with char _beginthread(); below. */
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6953 char _beginthread();
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6969 if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6971 eval "ac_cv_func__beginthread=yes"
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6976 eval "ac_cv_func__beginthread=no"
6981 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6985 echo "$ac_t""no" 1>&6
6989 if test $ac_cv_func__beginthread = yes ; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_NT_THREADS 1
6997 if test "$ol_cv_nt_threads" = yes ; then
6999 ol_with_threads=found
7000 ol_with_yielding_select=yes
7002 cat >> confdefs.h <<\EOF
7003 #define HAVE_NT_SERVICE_MANAGER 1
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_NT_EVENT_LOG 1
7012 if test $ol_with_threads = nt ; then
7013 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7017 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7018 -o $ol_with_threads = posix ; then
7020 for ac_hdr in pthread.h
7022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7024 echo "configure:7025: checking for $ac_hdr" >&5
7025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7034 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7036 if test -z "$ac_err"; then
7038 eval "ac_cv_header_$ac_safe=yes"
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 eval "ac_cv_header_$ac_safe=no"
7048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7051 cat >> confdefs.h <<EOF
7052 #define $ac_tr_hdr 1
7056 echo "$ac_t""no" 1>&6
7061 if test $ac_cv_header_pthread_h = yes ; then
7062 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7063 echo "configure:7064: checking POSIX thread version" >&5
7064 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7068 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7072 # include <pthread.h>
7073 /* this check could be improved */
7074 # ifdef PTHREAD_ONCE_INIT
7075 pthread_version_final;
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080 egrep "pthread_version_final" >/dev/null 2>&1; then
7082 ol_pthread_final=yes
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7094 # include <pthread.h>
7095 /* this check could be improved */
7096 # ifdef pthread_once_init
7097 pthread_version_draft4;
7101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7104 ol_pthread_draft4=yes
7107 ol_pthread_draft4=no
7112 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7113 ol_cv_pthread_version=final
7114 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7115 ol_cv_pthread_version=draft4
7117 ol_cv_pthread_version=unknown
7122 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7125 if test $ol_cv_pthread_version = final ; then
7126 cat >> confdefs.h <<\EOF
7127 #define HAVE_PTHREADS_FINAL 1
7130 elif test $ol_cv_pthread_version = draft4 ; then
7131 cat >> confdefs.h <<\EOF
7132 #define HAVE_PTHREADS_D4 1
7136 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7139 # consider threads found
7140 ol_with_threads=found
7143 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7144 echo "configure:7145: checking for LinuxThreads pthread.h" >&5
7145 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 #include <pthread.h>
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7156 ol_cv_header_linux_threads=yes
7159 ol_cv_header_linux_threads=no
7166 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7167 if test $ol_cv_header_linux_threads = yes; then
7168 cat >> confdefs.h <<\EOF
7169 #define HAVE_LINUX_THREADS 1
7175 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7176 echo "configure:7177: checking for GNU Pth pthread.h" >&5
7177 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 #include <pthread.h>
7184 #ifdef _POSIX_THREAD_IS_GNU_PTH
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190 egrep "__gnu_pth__" >/dev/null 2>&1; then
7192 ol_cv_header_gnu_pth_pthread_h=yes
7195 ol_cv_header_gnu_pth_pthread_h=no
7202 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7205 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7206 for ac_hdr in sched.h
7208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7210 echo "configure:7211: checking for $ac_hdr" >&5
7211 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7220 { (eval echo configure:7221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7222 if test -z "$ac_err"; then
7224 eval "ac_cv_header_$ac_safe=yes"
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7230 eval "ac_cv_header_$ac_safe=no"
7234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7235 echo "$ac_t""yes" 1>&6
7236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7237 cat >> confdefs.h <<EOF
7238 #define $ac_tr_hdr 1
7242 echo "$ac_t""no" 1>&6
7249 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7250 echo "configure:7251: checking for pthread_create in default libraries" >&5
7251 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7255 if test "$cross_compiling" = yes; then
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7259 /* pthread test headers */
7260 #include <pthread.h>
7262 #define NULL (void*)0
7265 static void *task(p)
7268 return (void *) (p == NULL);
7273 /* pthread test function */
7278 #ifdef HAVE_PTHREADS_FINAL
7279 /* Final pthreads */
7280 pthread_attr_t attr;
7282 status = pthread_attr_init(&attr);
7283 if( status ) return status;
7285 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7287 #if defined( PTHREAD_CREATE_JOINABLE )
7288 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7290 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7293 #ifdef PTHREAD_CREATE_DETACHED
7295 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7298 if( status ) return status;
7301 status = pthread_create( &t, &attr, task, NULL );
7302 if( status ) return status;
7304 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7306 /* give thread a chance to complete */
7307 /* it should remain joinable and hence detachable */
7310 status = pthread_detach( t );
7311 if( status ) return status;
7316 /* Draft 4 pthreads */
7317 status = pthread_create( &t, pthread_attr_default, task, NULL );
7318 if( status ) return status;
7321 /* give thread a chance to complete */
7322 /* it should remain joinable and hence detachable */
7325 status = pthread_detach( &t );
7326 if( status ) return status;
7330 #ifdef HAVE_LINUX_THREADS
7331 pthread_kill_other_threads_np();
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7340 ol_cv_pthread_create=yes
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 ol_cv_pthread_create=no
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 /* pthread test headers */
7353 #include <pthread.h>
7355 #define NULL (void*)0
7358 static void *task(p)
7361 return (void *) (p == NULL);
7365 int main(argc, argv)
7370 /* pthread test function */
7375 #ifdef HAVE_PTHREADS_FINAL
7376 /* Final pthreads */
7377 pthread_attr_t attr;
7379 status = pthread_attr_init(&attr);
7380 if( status ) return status;
7382 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7384 #if defined( PTHREAD_CREATE_JOINABLE )
7385 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7387 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7390 #ifdef PTHREAD_CREATE_DETACHED
7392 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7395 if( status ) return status;
7398 status = pthread_create( &t, &attr, task, NULL );
7399 if( status ) return status;
7401 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7403 /* give thread a chance to complete */
7404 /* it should remain joinable and hence detachable */
7407 status = pthread_detach( t );
7408 if( status ) return status;
7413 /* Draft 4 pthreads */
7414 status = pthread_create( &t, pthread_attr_default, task, NULL );
7415 if( status ) return status;
7418 /* give thread a chance to complete */
7419 /* it should remain joinable and hence detachable */
7422 status = pthread_detach( &t );
7423 if( status ) return status;
7427 #ifdef HAVE_LINUX_THREADS
7428 pthread_kill_other_threads_np();
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7438 ol_cv_pthread_create=yes
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 ol_cv_pthread_create=no
7450 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7452 if test $ol_cv_pthread_create != no ; then
7453 ol_link_threads=posix
7457 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7458 if test "$ol_link_threads" = no ; then
7460 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7461 echo "configure:7462: checking for pthread link with -kthread" >&5
7462 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7468 LIBS="-kthread $LIBS"
7470 if test "$cross_compiling" = yes; then
7471 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* pthread test headers */
7475 #include <pthread.h>
7477 #define NULL (void*)0
7480 static void *task(p)
7483 return (void *) (p == NULL);
7488 /* pthread test function */
7493 #ifdef HAVE_PTHREADS_FINAL
7494 /* Final pthreads */
7495 pthread_attr_t attr;
7497 status = pthread_attr_init(&attr);
7498 if( status ) return status;
7500 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7502 #if defined( PTHREAD_CREATE_JOINABLE )
7503 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7505 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7508 #ifdef PTHREAD_CREATE_DETACHED
7510 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7513 if( status ) return status;
7516 status = pthread_create( &t, &attr, task, NULL );
7517 if( status ) return status;
7519 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7521 /* give thread a chance to complete */
7522 /* it should remain joinable and hence detachable */
7525 status = pthread_detach( t );
7526 if( status ) return status;
7531 /* Draft 4 pthreads */
7532 status = pthread_create( &t, pthread_attr_default, task, NULL );
7533 if( status ) return status;
7536 /* give thread a chance to complete */
7537 /* it should remain joinable and hence detachable */
7540 status = pthread_detach( &t );
7541 if( status ) return status;
7545 #ifdef HAVE_LINUX_THREADS
7546 pthread_kill_other_threads_np();
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7555 ol_cv_pthread_kthread=yes
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7560 ol_cv_pthread_kthread=no
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7567 /* pthread test headers */
7568 #include <pthread.h>
7570 #define NULL (void*)0
7573 static void *task(p)
7576 return (void *) (p == NULL);
7580 int main(argc, argv)
7585 /* pthread test function */
7590 #ifdef HAVE_PTHREADS_FINAL
7591 /* Final pthreads */
7592 pthread_attr_t attr;
7594 status = pthread_attr_init(&attr);
7595 if( status ) return status;
7597 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7599 #if defined( PTHREAD_CREATE_JOINABLE )
7600 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7602 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7605 #ifdef PTHREAD_CREATE_DETACHED
7607 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7610 if( status ) return status;
7613 status = pthread_create( &t, &attr, task, NULL );
7614 if( status ) return status;
7616 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7618 /* give thread a chance to complete */
7619 /* it should remain joinable and hence detachable */
7622 status = pthread_detach( t );
7623 if( status ) return status;
7628 /* Draft 4 pthreads */
7629 status = pthread_create( &t, pthread_attr_default, task, NULL );
7630 if( status ) return status;
7633 /* give thread a chance to complete */
7634 /* it should remain joinable and hence detachable */
7637 status = pthread_detach( &t );
7638 if( status ) return status;
7642 #ifdef HAVE_LINUX_THREADS
7643 pthread_kill_other_threads_np();
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7653 ol_cv_pthread_kthread=yes
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7658 ol_cv_pthread_kthread=no
7669 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7671 if test $ol_cv_pthread_kthread = yes ; then
7672 ol_link_pthreads="-kthread"
7673 ol_link_threads=posix
7677 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7678 if test "$ol_link_threads" = no ; then
7680 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7681 echo "configure:7682: checking for pthread link with -pthread" >&5
7682 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7688 LIBS="-pthread $LIBS"
7690 if test "$cross_compiling" = yes; then
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* pthread test headers */
7695 #include <pthread.h>
7697 #define NULL (void*)0
7700 static void *task(p)
7703 return (void *) (p == NULL);
7708 /* pthread test function */
7713 #ifdef HAVE_PTHREADS_FINAL
7714 /* Final pthreads */
7715 pthread_attr_t attr;
7717 status = pthread_attr_init(&attr);
7718 if( status ) return status;
7720 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7722 #if defined( PTHREAD_CREATE_JOINABLE )
7723 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7725 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7728 #ifdef PTHREAD_CREATE_DETACHED
7730 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7733 if( status ) return status;
7736 status = pthread_create( &t, &attr, task, NULL );
7737 if( status ) return status;
7739 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7741 /* give thread a chance to complete */
7742 /* it should remain joinable and hence detachable */
7745 status = pthread_detach( t );
7746 if( status ) return status;
7751 /* Draft 4 pthreads */
7752 status = pthread_create( &t, pthread_attr_default, task, NULL );
7753 if( status ) return status;
7756 /* give thread a chance to complete */
7757 /* it should remain joinable and hence detachable */
7760 status = pthread_detach( &t );
7761 if( status ) return status;
7765 #ifdef HAVE_LINUX_THREADS
7766 pthread_kill_other_threads_np();
7773 if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7775 ol_cv_pthread_pthread=yes
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7780 ol_cv_pthread_pthread=no
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7787 /* pthread test headers */
7788 #include <pthread.h>
7790 #define NULL (void*)0
7793 static void *task(p)
7796 return (void *) (p == NULL);
7800 int main(argc, argv)
7805 /* pthread test function */
7810 #ifdef HAVE_PTHREADS_FINAL
7811 /* Final pthreads */
7812 pthread_attr_t attr;
7814 status = pthread_attr_init(&attr);
7815 if( status ) return status;
7817 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7819 #if defined( PTHREAD_CREATE_JOINABLE )
7820 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7822 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7825 #ifdef PTHREAD_CREATE_DETACHED
7827 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7830 if( status ) return status;
7833 status = pthread_create( &t, &attr, task, NULL );
7834 if( status ) return status;
7836 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7838 /* give thread a chance to complete */
7839 /* it should remain joinable and hence detachable */
7842 status = pthread_detach( t );
7843 if( status ) return status;
7848 /* Draft 4 pthreads */
7849 status = pthread_create( &t, pthread_attr_default, task, NULL );
7850 if( status ) return status;
7853 /* give thread a chance to complete */
7854 /* it should remain joinable and hence detachable */
7857 status = pthread_detach( &t );
7858 if( status ) return status;
7862 #ifdef HAVE_LINUX_THREADS
7863 pthread_kill_other_threads_np();
7871 if { (eval echo configure:7872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7873 ol_cv_pthread_pthread=yes
7875 echo "configure: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 ol_cv_pthread_pthread=no
7889 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7891 if test $ol_cv_pthread_pthread = yes ; then
7892 ol_link_pthreads="-pthread"
7893 ol_link_threads=posix
7897 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7898 if test "$ol_link_threads" = no ; then
7900 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7901 echo "configure:7902: checking for pthread link with -pthreads" >&5
7902 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7908 LIBS="-pthreads $LIBS"
7910 if test "$cross_compiling" = yes; then
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 /* pthread test headers */
7915 #include <pthread.h>
7917 #define NULL (void*)0
7920 static void *task(p)
7923 return (void *) (p == NULL);
7928 /* pthread test function */
7933 #ifdef HAVE_PTHREADS_FINAL
7934 /* Final pthreads */
7935 pthread_attr_t attr;
7937 status = pthread_attr_init(&attr);
7938 if( status ) return status;
7940 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7942 #if defined( PTHREAD_CREATE_JOINABLE )
7943 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7948 #ifdef PTHREAD_CREATE_DETACHED
7950 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7953 if( status ) return status;
7956 status = pthread_create( &t, &attr, task, NULL );
7957 if( status ) return status;
7959 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7961 /* give thread a chance to complete */
7962 /* it should remain joinable and hence detachable */
7965 status = pthread_detach( t );
7966 if( status ) return status;
7971 /* Draft 4 pthreads */
7972 status = pthread_create( &t, pthread_attr_default, task, NULL );
7973 if( status ) return status;
7976 /* give thread a chance to complete */
7977 /* it should remain joinable and hence detachable */
7980 status = pthread_detach( &t );
7981 if( status ) return status;
7985 #ifdef HAVE_LINUX_THREADS
7986 pthread_kill_other_threads_np();
7993 if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7995 ol_cv_pthread_pthreads=yes
7997 echo "configure: failed program was:" >&5
7998 cat conftest.$ac_ext >&5
8000 ol_cv_pthread_pthreads=no
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* pthread test headers */
8008 #include <pthread.h>
8010 #define NULL (void*)0
8013 static void *task(p)
8016 return (void *) (p == NULL);
8020 int main(argc, argv)
8025 /* pthread test function */
8030 #ifdef HAVE_PTHREADS_FINAL
8031 /* Final pthreads */
8032 pthread_attr_t attr;
8034 status = pthread_attr_init(&attr);
8035 if( status ) return status;
8037 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8039 #if defined( PTHREAD_CREATE_JOINABLE )
8040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8042 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8045 #ifdef PTHREAD_CREATE_DETACHED
8047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8050 if( status ) return status;
8053 status = pthread_create( &t, &attr, task, NULL );
8054 if( status ) return status;
8056 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8058 /* give thread a chance to complete */
8059 /* it should remain joinable and hence detachable */
8062 status = pthread_detach( t );
8063 if( status ) return status;
8068 /* Draft 4 pthreads */
8069 status = pthread_create( &t, pthread_attr_default, task, NULL );
8070 if( status ) return status;
8073 /* give thread a chance to complete */
8074 /* it should remain joinable and hence detachable */
8077 status = pthread_detach( &t );
8078 if( status ) return status;
8082 #ifdef HAVE_LINUX_THREADS
8083 pthread_kill_other_threads_np();
8091 if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8093 ol_cv_pthread_pthreads=yes
8095 echo "configure: failed program was:" >&5
8096 cat conftest.$ac_ext >&5
8098 ol_cv_pthread_pthreads=no
8109 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8111 if test $ol_cv_pthread_pthreads = yes ; then
8112 ol_link_pthreads="-pthreads"
8113 ol_link_threads=posix
8117 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8118 if test "$ol_link_threads" = no ; then
8120 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8121 echo "configure:8122: checking for pthread link with -mthreads" >&5
8122 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8128 LIBS="-mthreads $LIBS"
8130 if test "$cross_compiling" = yes; then
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 /* pthread test headers */
8135 #include <pthread.h>
8137 #define NULL (void*)0
8140 static void *task(p)
8143 return (void *) (p == NULL);
8148 /* pthread test function */
8153 #ifdef HAVE_PTHREADS_FINAL
8154 /* Final pthreads */
8155 pthread_attr_t attr;
8157 status = pthread_attr_init(&attr);
8158 if( status ) return status;
8160 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8162 #if defined( PTHREAD_CREATE_JOINABLE )
8163 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8165 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8168 #ifdef PTHREAD_CREATE_DETACHED
8170 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8173 if( status ) return status;
8176 status = pthread_create( &t, &attr, task, NULL );
8177 if( status ) return status;
8179 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8181 /* give thread a chance to complete */
8182 /* it should remain joinable and hence detachable */
8185 status = pthread_detach( t );
8186 if( status ) return status;
8191 /* Draft 4 pthreads */
8192 status = pthread_create( &t, pthread_attr_default, task, NULL );
8193 if( status ) return status;
8196 /* give thread a chance to complete */
8197 /* it should remain joinable and hence detachable */
8200 status = pthread_detach( &t );
8201 if( status ) return status;
8205 #ifdef HAVE_LINUX_THREADS
8206 pthread_kill_other_threads_np();
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215 ol_cv_pthread_mthreads=yes
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 ol_cv_pthread_mthreads=no
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* pthread test headers */
8228 #include <pthread.h>
8230 #define NULL (void*)0
8233 static void *task(p)
8236 return (void *) (p == NULL);
8240 int main(argc, argv)
8245 /* pthread test function */
8250 #ifdef HAVE_PTHREADS_FINAL
8251 /* Final pthreads */
8252 pthread_attr_t attr;
8254 status = pthread_attr_init(&attr);
8255 if( status ) return status;
8257 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8259 #if defined( PTHREAD_CREATE_JOINABLE )
8260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8262 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8265 #ifdef PTHREAD_CREATE_DETACHED
8267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8270 if( status ) return status;
8273 status = pthread_create( &t, &attr, task, NULL );
8274 if( status ) return status;
8276 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8278 /* give thread a chance to complete */
8279 /* it should remain joinable and hence detachable */
8282 status = pthread_detach( t );
8283 if( status ) return status;
8288 /* Draft 4 pthreads */
8289 status = pthread_create( &t, pthread_attr_default, task, NULL );
8290 if( status ) return status;
8293 /* give thread a chance to complete */
8294 /* it should remain joinable and hence detachable */
8297 status = pthread_detach( &t );
8298 if( status ) return status;
8302 #ifdef HAVE_LINUX_THREADS
8303 pthread_kill_other_threads_np();
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8313 ol_cv_pthread_mthreads=yes
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 ol_cv_pthread_mthreads=no
8329 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8331 if test $ol_cv_pthread_mthreads = yes ; then
8332 ol_link_pthreads="-mthreads"
8333 ol_link_threads=posix
8337 # Pthread try link: -thread (ol_cv_pthread_thread)
8338 if test "$ol_link_threads" = no ; then
8340 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8341 echo "configure:8342: checking for pthread link with -thread" >&5
8342 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8348 LIBS="-thread $LIBS"
8350 if test "$cross_compiling" = yes; then
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* pthread test headers */
8355 #include <pthread.h>
8357 #define NULL (void*)0
8360 static void *task(p)
8363 return (void *) (p == NULL);
8368 /* pthread test function */
8373 #ifdef HAVE_PTHREADS_FINAL
8374 /* Final pthreads */
8375 pthread_attr_t attr;
8377 status = pthread_attr_init(&attr);
8378 if( status ) return status;
8380 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8382 #if defined( PTHREAD_CREATE_JOINABLE )
8383 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8385 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8388 #ifdef PTHREAD_CREATE_DETACHED
8390 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8393 if( status ) return status;
8396 status = pthread_create( &t, &attr, task, NULL );
8397 if( status ) return status;
8399 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8401 /* give thread a chance to complete */
8402 /* it should remain joinable and hence detachable */
8405 status = pthread_detach( t );
8406 if( status ) return status;
8411 /* Draft 4 pthreads */
8412 status = pthread_create( &t, pthread_attr_default, task, NULL );
8413 if( status ) return status;
8416 /* give thread a chance to complete */
8417 /* it should remain joinable and hence detachable */
8420 status = pthread_detach( &t );
8421 if( status ) return status;
8425 #ifdef HAVE_LINUX_THREADS
8426 pthread_kill_other_threads_np();
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 ol_cv_pthread_thread=yes
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 ol_cv_pthread_thread=no
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 /* pthread test headers */
8448 #include <pthread.h>
8450 #define NULL (void*)0
8453 static void *task(p)
8456 return (void *) (p == NULL);
8460 int main(argc, argv)
8465 /* pthread test function */
8470 #ifdef HAVE_PTHREADS_FINAL
8471 /* Final pthreads */
8472 pthread_attr_t attr;
8474 status = pthread_attr_init(&attr);
8475 if( status ) return status;
8477 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8479 #if defined( PTHREAD_CREATE_JOINABLE )
8480 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8482 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8485 #ifdef PTHREAD_CREATE_DETACHED
8487 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8490 if( status ) return status;
8493 status = pthread_create( &t, &attr, task, NULL );
8494 if( status ) return status;
8496 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8498 /* give thread a chance to complete */
8499 /* it should remain joinable and hence detachable */
8502 status = pthread_detach( t );
8503 if( status ) return status;
8508 /* Draft 4 pthreads */
8509 status = pthread_create( &t, pthread_attr_default, task, NULL );
8510 if( status ) return status;
8513 /* give thread a chance to complete */
8514 /* it should remain joinable and hence detachable */
8517 status = pthread_detach( &t );
8518 if( status ) return status;
8522 #ifdef HAVE_LINUX_THREADS
8523 pthread_kill_other_threads_np();
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8533 ol_cv_pthread_thread=yes
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 ol_cv_pthread_thread=no
8549 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8551 if test $ol_cv_pthread_thread = yes ; then
8552 ol_link_pthreads="-thread"
8553 ol_link_threads=posix
8558 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8559 if test "$ol_link_threads" = no ; then
8560 # try -lpthread -lmach -lexc -lc_r
8561 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8562 echo "configure:8563: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8563 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8569 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8571 if test "$cross_compiling" = yes; then
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 /* pthread test headers */
8576 #include <pthread.h>
8578 #define NULL (void*)0
8581 static void *task(p)
8584 return (void *) (p == NULL);
8589 /* pthread test function */
8594 #ifdef HAVE_PTHREADS_FINAL
8595 /* Final pthreads */
8596 pthread_attr_t attr;
8598 status = pthread_attr_init(&attr);
8599 if( status ) return status;
8601 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8603 #if defined( PTHREAD_CREATE_JOINABLE )
8604 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8606 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8609 #ifdef PTHREAD_CREATE_DETACHED
8611 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8614 if( status ) return status;
8617 status = pthread_create( &t, &attr, task, NULL );
8618 if( status ) return status;
8620 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8622 /* give thread a chance to complete */
8623 /* it should remain joinable and hence detachable */
8626 status = pthread_detach( t );
8627 if( status ) return status;
8632 /* Draft 4 pthreads */
8633 status = pthread_create( &t, pthread_attr_default, task, NULL );
8634 if( status ) return status;
8637 /* give thread a chance to complete */
8638 /* it should remain joinable and hence detachable */
8641 status = pthread_detach( &t );
8642 if( status ) return status;
8646 #ifdef HAVE_LINUX_THREADS
8647 pthread_kill_other_threads_np();
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8656 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 /* pthread test headers */
8669 #include <pthread.h>
8671 #define NULL (void*)0
8674 static void *task(p)
8677 return (void *) (p == NULL);
8681 int main(argc, argv)
8686 /* pthread test function */
8691 #ifdef HAVE_PTHREADS_FINAL
8692 /* Final pthreads */
8693 pthread_attr_t attr;
8695 status = pthread_attr_init(&attr);
8696 if( status ) return status;
8698 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8700 #if defined( PTHREAD_CREATE_JOINABLE )
8701 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8703 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8706 #ifdef PTHREAD_CREATE_DETACHED
8708 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8711 if( status ) return status;
8714 status = pthread_create( &t, &attr, task, NULL );
8715 if( status ) return status;
8717 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8719 /* give thread a chance to complete */
8720 /* it should remain joinable and hence detachable */
8723 status = pthread_detach( t );
8724 if( status ) return status;
8729 /* Draft 4 pthreads */
8730 status = pthread_create( &t, pthread_attr_default, task, NULL );
8731 if( status ) return status;
8734 /* give thread a chance to complete */
8735 /* it should remain joinable and hence detachable */
8738 status = pthread_detach( &t );
8739 if( status ) return status;
8743 #ifdef HAVE_LINUX_THREADS
8744 pthread_kill_other_threads_np();
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8754 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8770 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8772 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8773 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8774 ol_link_threads=posix
8778 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8779 if test "$ol_link_threads" = no ; then
8780 # try -lpthread -lmach -lexc
8781 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8782 echo "configure:8783: checking for pthread link with -lpthread -lmach -lexc" >&5
8783 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8789 LIBS="-lpthread -lmach -lexc $LIBS"
8791 if test "$cross_compiling" = yes; then
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 /* pthread test headers */
8796 #include <pthread.h>
8798 #define NULL (void*)0
8801 static void *task(p)
8804 return (void *) (p == NULL);
8809 /* pthread test function */
8814 #ifdef HAVE_PTHREADS_FINAL
8815 /* Final pthreads */
8816 pthread_attr_t attr;
8818 status = pthread_attr_init(&attr);
8819 if( status ) return status;
8821 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8823 #if defined( PTHREAD_CREATE_JOINABLE )
8824 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8829 #ifdef PTHREAD_CREATE_DETACHED
8831 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8834 if( status ) return status;
8837 status = pthread_create( &t, &attr, task, NULL );
8838 if( status ) return status;
8840 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8842 /* give thread a chance to complete */
8843 /* it should remain joinable and hence detachable */
8846 status = pthread_detach( t );
8847 if( status ) return status;
8852 /* Draft 4 pthreads */
8853 status = pthread_create( &t, pthread_attr_default, task, NULL );
8854 if( status ) return status;
8857 /* give thread a chance to complete */
8858 /* it should remain joinable and hence detachable */
8861 status = pthread_detach( &t );
8862 if( status ) return status;
8866 #ifdef HAVE_LINUX_THREADS
8867 pthread_kill_other_threads_np();
8874 if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8876 ol_cv_pthread_lpthread_lmach_lexc=yes
8878 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8881 ol_cv_pthread_lpthread_lmach_lexc=no
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 /* pthread test headers */
8889 #include <pthread.h>
8891 #define NULL (void*)0
8894 static void *task(p)
8897 return (void *) (p == NULL);
8901 int main(argc, argv)
8906 /* pthread test function */
8911 #ifdef HAVE_PTHREADS_FINAL
8912 /* Final pthreads */
8913 pthread_attr_t attr;
8915 status = pthread_attr_init(&attr);
8916 if( status ) return status;
8918 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8920 #if defined( PTHREAD_CREATE_JOINABLE )
8921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8923 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8926 #ifdef PTHREAD_CREATE_DETACHED
8928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8931 if( status ) return status;
8934 status = pthread_create( &t, &attr, task, NULL );
8935 if( status ) return status;
8937 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8939 /* give thread a chance to complete */
8940 /* it should remain joinable and hence detachable */
8943 status = pthread_detach( t );
8944 if( status ) return status;
8949 /* Draft 4 pthreads */
8950 status = pthread_create( &t, pthread_attr_default, task, NULL );
8951 if( status ) return status;
8954 /* give thread a chance to complete */
8955 /* it should remain joinable and hence detachable */
8958 status = pthread_detach( &t );
8959 if( status ) return status;
8963 #ifdef HAVE_LINUX_THREADS
8964 pthread_kill_other_threads_np();
8972 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8974 ol_cv_pthread_lpthread_lmach_lexc=yes
8976 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8979 ol_cv_pthread_lpthread_lmach_lexc=no
8990 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8992 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8993 ol_link_pthreads="-lpthread -lmach -lexc"
8994 ol_link_threads=posix
8999 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9000 if test "$ol_link_threads" = no ; then
9001 # try -lpthread -Wl,-woff,85
9002 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9003 echo "configure:9004: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9004 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9010 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9012 if test "$cross_compiling" = yes; then
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 /* pthread test headers */
9017 #include <pthread.h>
9019 #define NULL (void*)0
9022 static void *task(p)
9025 return (void *) (p == NULL);
9030 /* pthread test function */
9035 #ifdef HAVE_PTHREADS_FINAL
9036 /* Final pthreads */
9037 pthread_attr_t attr;
9039 status = pthread_attr_init(&attr);
9040 if( status ) return status;
9042 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9044 #if defined( PTHREAD_CREATE_JOINABLE )
9045 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9050 #ifdef PTHREAD_CREATE_DETACHED
9052 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9055 if( status ) return status;
9058 status = pthread_create( &t, &attr, task, NULL );
9059 if( status ) return status;
9061 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9063 /* give thread a chance to complete */
9064 /* it should remain joinable and hence detachable */
9067 status = pthread_detach( t );
9068 if( status ) return status;
9073 /* Draft 4 pthreads */
9074 status = pthread_create( &t, pthread_attr_default, task, NULL );
9075 if( status ) return status;
9078 /* give thread a chance to complete */
9079 /* it should remain joinable and hence detachable */
9082 status = pthread_detach( &t );
9083 if( status ) return status;
9087 #ifdef HAVE_LINUX_THREADS
9088 pthread_kill_other_threads_np();
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9097 ol_cv_pthread_lib_lpthread_woff=yes
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9102 ol_cv_pthread_lib_lpthread_woff=no
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* pthread test headers */
9110 #include <pthread.h>
9112 #define NULL (void*)0
9115 static void *task(p)
9118 return (void *) (p == NULL);
9122 int main(argc, argv)
9127 /* pthread test function */
9132 #ifdef HAVE_PTHREADS_FINAL
9133 /* Final pthreads */
9134 pthread_attr_t attr;
9136 status = pthread_attr_init(&attr);
9137 if( status ) return status;
9139 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9141 #if defined( PTHREAD_CREATE_JOINABLE )
9142 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9147 #ifdef PTHREAD_CREATE_DETACHED
9149 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9152 if( status ) return status;
9155 status = pthread_create( &t, &attr, task, NULL );
9156 if( status ) return status;
9158 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9160 /* give thread a chance to complete */
9161 /* it should remain joinable and hence detachable */
9164 status = pthread_detach( t );
9165 if( status ) return status;
9170 /* Draft 4 pthreads */
9171 status = pthread_create( &t, pthread_attr_default, task, NULL );
9172 if( status ) return status;
9175 /* give thread a chance to complete */
9176 /* it should remain joinable and hence detachable */
9179 status = pthread_detach( &t );
9180 if( status ) return status;
9184 #ifdef HAVE_LINUX_THREADS
9185 pthread_kill_other_threads_np();
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9195 ol_cv_pthread_lib_lpthread_woff=yes
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 ol_cv_pthread_lib_lpthread_woff=no
9211 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9213 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9214 ol_link_pthreads="-lpthread -Wl,-woff,85"
9215 ol_link_threads=posix
9220 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9221 if test "$ol_link_threads" = no ; then
9223 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9224 echo "configure:9225: checking for pthread link with -lpthread" >&5
9225 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9231 LIBS="-lpthread $LIBS"
9233 if test "$cross_compiling" = yes; then
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9237 /* pthread test headers */
9238 #include <pthread.h>
9240 #define NULL (void*)0
9243 static void *task(p)
9246 return (void *) (p == NULL);
9251 /* pthread test function */
9256 #ifdef HAVE_PTHREADS_FINAL
9257 /* Final pthreads */
9258 pthread_attr_t attr;
9260 status = pthread_attr_init(&attr);
9261 if( status ) return status;
9263 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9265 #if defined( PTHREAD_CREATE_JOINABLE )
9266 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9268 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9271 #ifdef PTHREAD_CREATE_DETACHED
9273 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9276 if( status ) return status;
9279 status = pthread_create( &t, &attr, task, NULL );
9280 if( status ) return status;
9282 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9284 /* give thread a chance to complete */
9285 /* it should remain joinable and hence detachable */
9288 status = pthread_detach( t );
9289 if( status ) return status;
9294 /* Draft 4 pthreads */
9295 status = pthread_create( &t, pthread_attr_default, task, NULL );
9296 if( status ) return status;
9299 /* give thread a chance to complete */
9300 /* it should remain joinable and hence detachable */
9303 status = pthread_detach( &t );
9304 if( status ) return status;
9308 #ifdef HAVE_LINUX_THREADS
9309 pthread_kill_other_threads_np();
9316 if { (eval echo configure:9317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9318 ol_cv_pthread_lpthread=yes
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9323 ol_cv_pthread_lpthread=no
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* pthread test headers */
9331 #include <pthread.h>
9333 #define NULL (void*)0
9336 static void *task(p)
9339 return (void *) (p == NULL);
9343 int main(argc, argv)
9348 /* pthread test function */
9353 #ifdef HAVE_PTHREADS_FINAL
9354 /* Final pthreads */
9355 pthread_attr_t attr;
9357 status = pthread_attr_init(&attr);
9358 if( status ) return status;
9360 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9362 #if defined( PTHREAD_CREATE_JOINABLE )
9363 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9365 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9368 #ifdef PTHREAD_CREATE_DETACHED
9370 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9373 if( status ) return status;
9376 status = pthread_create( &t, &attr, task, NULL );
9377 if( status ) return status;
9379 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9381 /* give thread a chance to complete */
9382 /* it should remain joinable and hence detachable */
9385 status = pthread_detach( t );
9386 if( status ) return status;
9391 /* Draft 4 pthreads */
9392 status = pthread_create( &t, pthread_attr_default, task, NULL );
9393 if( status ) return status;
9396 /* give thread a chance to complete */
9397 /* it should remain joinable and hence detachable */
9400 status = pthread_detach( &t );
9401 if( status ) return status;
9405 #ifdef HAVE_LINUX_THREADS
9406 pthread_kill_other_threads_np();
9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9416 ol_cv_pthread_lpthread=yes
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9421 ol_cv_pthread_lpthread=no
9432 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9434 if test $ol_cv_pthread_lpthread = yes ; then
9435 ol_link_pthreads="-lpthread"
9436 ol_link_threads=posix
9440 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9441 if test "$ol_link_threads" = no ; then
9443 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9444 echo "configure:9445: checking for pthread link with -lc_r" >&5
9445 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9453 if test "$cross_compiling" = yes; then
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9456 "configure"
9456 #include "confdefs.h"
9457 /* pthread test headers */
9458 #include <pthread.h>
9460 #define NULL (void*)0
9463 static void *task(p)
9466 return (void *) (p == NULL);
9471 /* pthread test function */
9476 #ifdef HAVE_PTHREADS_FINAL
9477 /* Final pthreads */
9478 pthread_attr_t attr;
9480 status = pthread_attr_init(&attr);
9481 if( status ) return status;
9483 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9485 #if defined( PTHREAD_CREATE_JOINABLE )
9486 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9488 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9491 #ifdef PTHREAD_CREATE_DETACHED
9493 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9496 if( status ) return status;
9499 status = pthread_create( &t, &attr, task, NULL );
9500 if( status ) return status;
9502 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9504 /* give thread a chance to complete */
9505 /* it should remain joinable and hence detachable */
9508 status = pthread_detach( t );
9509 if( status ) return status;
9514 /* Draft 4 pthreads */
9515 status = pthread_create( &t, pthread_attr_default, task, NULL );
9516 if( status ) return status;
9519 /* give thread a chance to complete */
9520 /* it should remain joinable and hence detachable */
9523 status = pthread_detach( &t );
9524 if( status ) return status;
9528 #ifdef HAVE_LINUX_THREADS
9529 pthread_kill_other_threads_np();
9536 if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9538 ol_cv_pthread_lc_r=yes
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 ol_cv_pthread_lc_r=no
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 /* pthread test headers */
9551 #include <pthread.h>
9553 #define NULL (void*)0
9556 static void *task(p)
9559 return (void *) (p == NULL);
9563 int main(argc, argv)
9568 /* pthread test function */
9573 #ifdef HAVE_PTHREADS_FINAL
9574 /* Final pthreads */
9575 pthread_attr_t attr;
9577 status = pthread_attr_init(&attr);
9578 if( status ) return status;
9580 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9582 #if defined( PTHREAD_CREATE_JOINABLE )
9583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9585 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9588 #ifdef PTHREAD_CREATE_DETACHED
9590 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9593 if( status ) return status;
9596 status = pthread_create( &t, &attr, task, NULL );
9597 if( status ) return status;
9599 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9601 /* give thread a chance to complete */
9602 /* it should remain joinable and hence detachable */
9605 status = pthread_detach( t );
9606 if( status ) return status;
9611 /* Draft 4 pthreads */
9612 status = pthread_create( &t, pthread_attr_default, task, NULL );
9613 if( status ) return status;
9616 /* give thread a chance to complete */
9617 /* it should remain joinable and hence detachable */
9620 status = pthread_detach( &t );
9621 if( status ) return status;
9625 #ifdef HAVE_LINUX_THREADS
9626 pthread_kill_other_threads_np();
9634 if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9636 ol_cv_pthread_lc_r=yes
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9641 ol_cv_pthread_lc_r=no
9652 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9654 if test $ol_cv_pthread_lc_r = yes ; then
9655 ol_link_pthreads="-lc_r"
9656 ol_link_threads=posix
9661 # Pthread try link: -threads (ol_cv_pthread_threads)
9662 if test "$ol_link_threads" = no ; then
9664 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9665 echo "configure:9666: checking for pthread link with -threads" >&5
9666 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9672 LIBS="-threads $LIBS"
9674 if test "$cross_compiling" = yes; then
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9678 /* pthread test headers */
9679 #include <pthread.h>
9681 #define NULL (void*)0
9684 static void *task(p)
9687 return (void *) (p == NULL);
9692 /* pthread test function */
9697 #ifdef HAVE_PTHREADS_FINAL
9698 /* Final pthreads */
9699 pthread_attr_t attr;
9701 status = pthread_attr_init(&attr);
9702 if( status ) return status;
9704 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9706 #if defined( PTHREAD_CREATE_JOINABLE )
9707 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9709 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9712 #ifdef PTHREAD_CREATE_DETACHED
9714 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9717 if( status ) return status;
9720 status = pthread_create( &t, &attr, task, NULL );
9721 if( status ) return status;
9723 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9725 /* give thread a chance to complete */
9726 /* it should remain joinable and hence detachable */
9729 status = pthread_detach( t );
9730 if( status ) return status;
9735 /* Draft 4 pthreads */
9736 status = pthread_create( &t, pthread_attr_default, task, NULL );
9737 if( status ) return status;
9740 /* give thread a chance to complete */
9741 /* it should remain joinable and hence detachable */
9744 status = pthread_detach( &t );
9745 if( status ) return status;
9749 #ifdef HAVE_LINUX_THREADS
9750 pthread_kill_other_threads_np();
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9759 ol_cv_pthread_threads=yes
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9764 ol_cv_pthread_threads=no
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* pthread test headers */
9772 #include <pthread.h>
9774 #define NULL (void*)0
9777 static void *task(p)
9780 return (void *) (p == NULL);
9784 int main(argc, argv)
9789 /* pthread test function */
9794 #ifdef HAVE_PTHREADS_FINAL
9795 /* Final pthreads */
9796 pthread_attr_t attr;
9798 status = pthread_attr_init(&attr);
9799 if( status ) return status;
9801 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9803 #if defined( PTHREAD_CREATE_JOINABLE )
9804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9806 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9809 #ifdef PTHREAD_CREATE_DETACHED
9811 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9814 if( status ) return status;
9817 status = pthread_create( &t, &attr, task, NULL );
9818 if( status ) return status;
9820 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9822 /* give thread a chance to complete */
9823 /* it should remain joinable and hence detachable */
9826 status = pthread_detach( t );
9827 if( status ) return status;
9832 /* Draft 4 pthreads */
9833 status = pthread_create( &t, pthread_attr_default, task, NULL );
9834 if( status ) return status;
9837 /* give thread a chance to complete */
9838 /* it should remain joinable and hence detachable */
9841 status = pthread_detach( &t );
9842 if( status ) return status;
9846 #ifdef HAVE_LINUX_THREADS
9847 pthread_kill_other_threads_np();
9855 if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9857 ol_cv_pthread_threads=yes
9859 echo "configure: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9862 ol_cv_pthread_threads=no
9873 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9875 if test $ol_cv_pthread_threads = yes ; then
9876 ol_link_pthreads="-threads"
9877 ol_link_threads=posix
9882 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9883 if test "$ol_link_threads" = no ; then
9884 # try -lpthreads -lmach -lexc -lc_r
9885 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9886 echo "configure:9887: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9887 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9893 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9895 if test "$cross_compiling" = yes; then
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* pthread test headers */
9900 #include <pthread.h>
9902 #define NULL (void*)0
9905 static void *task(p)
9908 return (void *) (p == NULL);
9913 /* pthread test function */
9918 #ifdef HAVE_PTHREADS_FINAL
9919 /* Final pthreads */
9920 pthread_attr_t attr;
9922 status = pthread_attr_init(&attr);
9923 if( status ) return status;
9925 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9927 #if defined( PTHREAD_CREATE_JOINABLE )
9928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9930 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9933 #ifdef PTHREAD_CREATE_DETACHED
9935 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9938 if( status ) return status;
9941 status = pthread_create( &t, &attr, task, NULL );
9942 if( status ) return status;
9944 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9946 /* give thread a chance to complete */
9947 /* it should remain joinable and hence detachable */
9950 status = pthread_detach( t );
9951 if( status ) return status;
9956 /* Draft 4 pthreads */
9957 status = pthread_create( &t, pthread_attr_default, task, NULL );
9958 if( status ) return status;
9961 /* give thread a chance to complete */
9962 /* it should remain joinable and hence detachable */
9965 status = pthread_detach( &t );
9966 if( status ) return status;
9970 #ifdef HAVE_LINUX_THREADS
9971 pthread_kill_other_threads_np();
9978 if { (eval echo configure:9979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9980 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9982 echo "configure: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9985 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 /* pthread test headers */
9993 #include <pthread.h>
9995 #define NULL (void*)0
9998 static void *task(p)
10001 return (void *) (p == NULL);
10005 int main(argc, argv)
10010 /* pthread test function */
10015 #ifdef HAVE_PTHREADS_FINAL
10016 /* Final pthreads */
10017 pthread_attr_t attr;
10019 status = pthread_attr_init(&attr);
10020 if( status ) return status;
10022 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10024 #if defined( PTHREAD_CREATE_JOINABLE )
10025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10027 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10030 #ifdef PTHREAD_CREATE_DETACHED
10032 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10035 if( status ) return status;
10038 status = pthread_create( &t, &attr, task, NULL );
10039 if( status ) return status;
10041 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10043 /* give thread a chance to complete */
10044 /* it should remain joinable and hence detachable */
10047 status = pthread_detach( t );
10048 if( status ) return status;
10053 /* Draft 4 pthreads */
10054 status = pthread_create( &t, pthread_attr_default, task, NULL );
10055 if( status ) return status;
10058 /* give thread a chance to complete */
10059 /* it should remain joinable and hence detachable */
10062 status = pthread_detach( &t );
10063 if( status ) return status;
10067 #ifdef HAVE_LINUX_THREADS
10068 pthread_kill_other_threads_np();
10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10078 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10094 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10096 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10097 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10098 ol_link_threads=posix
10102 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10103 if test "$ol_link_threads" = no ; then
10104 # try -lpthreads -lmach -lexc
10105 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10106 echo "configure:10107: checking for pthread link with -lpthreads -lmach -lexc" >&5
10107 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10113 LIBS="-lpthreads -lmach -lexc $LIBS"
10115 if test "$cross_compiling" = yes; then
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 /* pthread test headers */
10120 #include <pthread.h>
10122 #define NULL (void*)0
10125 static void *task(p)
10128 return (void *) (p == NULL);
10133 /* pthread test function */
10138 #ifdef HAVE_PTHREADS_FINAL
10139 /* Final pthreads */
10140 pthread_attr_t attr;
10142 status = pthread_attr_init(&attr);
10143 if( status ) return status;
10145 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10147 #if defined( PTHREAD_CREATE_JOINABLE )
10148 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10150 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10153 #ifdef PTHREAD_CREATE_DETACHED
10155 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10158 if( status ) return status;
10161 status = pthread_create( &t, &attr, task, NULL );
10162 if( status ) return status;
10164 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10166 /* give thread a chance to complete */
10167 /* it should remain joinable and hence detachable */
10170 status = pthread_detach( t );
10171 if( status ) return status;
10176 /* Draft 4 pthreads */
10177 status = pthread_create( &t, pthread_attr_default, task, NULL );
10178 if( status ) return status;
10181 /* give thread a chance to complete */
10182 /* it should remain joinable and hence detachable */
10185 status = pthread_detach( &t );
10186 if( status ) return status;
10190 #ifdef HAVE_LINUX_THREADS
10191 pthread_kill_other_threads_np();
10198 if { (eval echo configure:10199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10200 ol_cv_pthread_lpthreads_lmach_lexc=yes
10202 echo "configure: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10205 ol_cv_pthread_lpthreads_lmach_lexc=no
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 /* pthread test headers */
10213 #include <pthread.h>
10215 #define NULL (void*)0
10218 static void *task(p)
10221 return (void *) (p == NULL);
10225 int main(argc, argv)
10230 /* pthread test function */
10235 #ifdef HAVE_PTHREADS_FINAL
10236 /* Final pthreads */
10237 pthread_attr_t attr;
10239 status = pthread_attr_init(&attr);
10240 if( status ) return status;
10242 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10244 #if defined( PTHREAD_CREATE_JOINABLE )
10245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10247 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10250 #ifdef PTHREAD_CREATE_DETACHED
10252 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10255 if( status ) return status;
10258 status = pthread_create( &t, &attr, task, NULL );
10259 if( status ) return status;
10261 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10263 /* give thread a chance to complete */
10264 /* it should remain joinable and hence detachable */
10267 status = pthread_detach( t );
10268 if( status ) return status;
10273 /* Draft 4 pthreads */
10274 status = pthread_create( &t, pthread_attr_default, task, NULL );
10275 if( status ) return status;
10278 /* give thread a chance to complete */
10279 /* it should remain joinable and hence detachable */
10282 status = pthread_detach( &t );
10283 if( status ) return status;
10287 #ifdef HAVE_LINUX_THREADS
10288 pthread_kill_other_threads_np();
10296 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10298 ol_cv_pthread_lpthreads_lmach_lexc=yes
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10303 ol_cv_pthread_lpthreads_lmach_lexc=no
10314 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10316 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10317 ol_link_pthreads="-lpthreads -lmach -lexc"
10318 ol_link_threads=posix
10322 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10323 if test "$ol_link_threads" = no ; then
10324 # try -lpthreads -lexc
10325 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10326 echo "configure:10327: checking for pthread link with -lpthreads -lexc" >&5
10327 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10333 LIBS="-lpthreads -lexc $LIBS"
10335 if test "$cross_compiling" = yes; then
10336 cat > conftest.$ac_ext <<EOF
10337 #line 10338 "configure"
10338 #include "confdefs.h"
10339 /* pthread test headers */
10340 #include <pthread.h>
10342 #define NULL (void*)0
10345 static void *task(p)
10348 return (void *) (p == NULL);
10353 /* pthread test function */
10358 #ifdef HAVE_PTHREADS_FINAL
10359 /* Final pthreads */
10360 pthread_attr_t attr;
10362 status = pthread_attr_init(&attr);
10363 if( status ) return status;
10365 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10367 #if defined( PTHREAD_CREATE_JOINABLE )
10368 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10370 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10373 #ifdef PTHREAD_CREATE_DETACHED
10375 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10378 if( status ) return status;
10381 status = pthread_create( &t, &attr, task, NULL );
10382 if( status ) return status;
10384 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10386 /* give thread a chance to complete */
10387 /* it should remain joinable and hence detachable */
10390 status = pthread_detach( t );
10391 if( status ) return status;
10396 /* Draft 4 pthreads */
10397 status = pthread_create( &t, pthread_attr_default, task, NULL );
10398 if( status ) return status;
10401 /* give thread a chance to complete */
10402 /* it should remain joinable and hence detachable */
10405 status = pthread_detach( &t );
10406 if( status ) return status;
10410 #ifdef HAVE_LINUX_THREADS
10411 pthread_kill_other_threads_np();
10418 if { (eval echo configure:10419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 ol_cv_pthread_lpthreads_lexc=yes
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10425 ol_cv_pthread_lpthreads_lexc=no
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10432 /* pthread test headers */
10433 #include <pthread.h>
10435 #define NULL (void*)0
10438 static void *task(p)
10441 return (void *) (p == NULL);
10445 int main(argc, argv)
10450 /* pthread test function */
10455 #ifdef HAVE_PTHREADS_FINAL
10456 /* Final pthreads */
10457 pthread_attr_t attr;
10459 status = pthread_attr_init(&attr);
10460 if( status ) return status;
10462 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10464 #if defined( PTHREAD_CREATE_JOINABLE )
10465 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10467 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10470 #ifdef PTHREAD_CREATE_DETACHED
10472 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10475 if( status ) return status;
10478 status = pthread_create( &t, &attr, task, NULL );
10479 if( status ) return status;
10481 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10483 /* give thread a chance to complete */
10484 /* it should remain joinable and hence detachable */
10487 status = pthread_detach( t );
10488 if( status ) return status;
10493 /* Draft 4 pthreads */
10494 status = pthread_create( &t, pthread_attr_default, task, NULL );
10495 if( status ) return status;
10498 /* give thread a chance to complete */
10499 /* it should remain joinable and hence detachable */
10502 status = pthread_detach( &t );
10503 if( status ) return status;
10507 #ifdef HAVE_LINUX_THREADS
10508 pthread_kill_other_threads_np();
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10518 ol_cv_pthread_lpthreads_lexc=yes
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 ol_cv_pthread_lpthreads_lexc=no
10534 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10536 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10537 ol_link_pthreads="-lpthreads -lexc"
10538 ol_link_threads=posix
10543 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10544 if test "$ol_link_threads" = no ; then
10546 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10547 echo "configure:10548: checking for pthread link with -lpthreads" >&5
10548 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10554 LIBS="-lpthreads $LIBS"
10556 if test "$cross_compiling" = yes; then
10557 cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 /* pthread test headers */
10561 #include <pthread.h>
10563 #define NULL (void*)0
10566 static void *task(p)
10569 return (void *) (p == NULL);
10574 /* pthread test function */
10579 #ifdef HAVE_PTHREADS_FINAL
10580 /* Final pthreads */
10581 pthread_attr_t attr;
10583 status = pthread_attr_init(&attr);
10584 if( status ) return status;
10586 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10588 #if defined( PTHREAD_CREATE_JOINABLE )
10589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10591 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10594 #ifdef PTHREAD_CREATE_DETACHED
10596 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10599 if( status ) return status;
10602 status = pthread_create( &t, &attr, task, NULL );
10603 if( status ) return status;
10605 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10607 /* give thread a chance to complete */
10608 /* it should remain joinable and hence detachable */
10611 status = pthread_detach( t );
10612 if( status ) return status;
10617 /* Draft 4 pthreads */
10618 status = pthread_create( &t, pthread_attr_default, task, NULL );
10619 if( status ) return status;
10622 /* give thread a chance to complete */
10623 /* it should remain joinable and hence detachable */
10626 status = pthread_detach( &t );
10627 if( status ) return status;
10631 #ifdef HAVE_LINUX_THREADS
10632 pthread_kill_other_threads_np();
10639 if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10641 ol_cv_pthread_lib_lpthreads=yes
10643 echo "configure: failed program was:" >&5
10644 cat conftest.$ac_ext >&5
10646 ol_cv_pthread_lib_lpthreads=no
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 /* pthread test headers */
10654 #include <pthread.h>
10656 #define NULL (void*)0
10659 static void *task(p)
10662 return (void *) (p == NULL);
10666 int main(argc, argv)
10671 /* pthread test function */
10676 #ifdef HAVE_PTHREADS_FINAL
10677 /* Final pthreads */
10678 pthread_attr_t attr;
10680 status = pthread_attr_init(&attr);
10681 if( status ) return status;
10683 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10685 #if defined( PTHREAD_CREATE_JOINABLE )
10686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10688 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10691 #ifdef PTHREAD_CREATE_DETACHED
10693 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10696 if( status ) return status;
10699 status = pthread_create( &t, &attr, task, NULL );
10700 if( status ) return status;
10702 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10704 /* give thread a chance to complete */
10705 /* it should remain joinable and hence detachable */
10708 status = pthread_detach( t );
10709 if( status ) return status;
10714 /* Draft 4 pthreads */
10715 status = pthread_create( &t, pthread_attr_default, task, NULL );
10716 if( status ) return status;
10719 /* give thread a chance to complete */
10720 /* it should remain joinable and hence detachable */
10723 status = pthread_detach( &t );
10724 if( status ) return status;
10728 #ifdef HAVE_LINUX_THREADS
10729 pthread_kill_other_threads_np();
10737 if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10739 ol_cv_pthread_lib_lpthreads=yes
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10744 ol_cv_pthread_lib_lpthreads=no
10755 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10757 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10758 ol_link_pthreads="-lpthreads"
10759 ol_link_threads=posix
10764 if test $ol_link_threads != no ; then
10765 cat >> confdefs.h <<\EOF
10766 #define HAVE_PTHREADS 1
10770 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10772 save_CPPFLAGS="$CPPFLAGS"
10774 LIBS="$LTHREAD_LIBS $LIBS"
10776 for ac_func in sched_yield pthread_yield
10778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10779 echo "configure:10780: checking for $ac_func" >&5
10780 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 /* System header to define __stub macros and hopefully few prototypes,
10787 which can conflict with char $ac_func(); below. */
10788 #include <assert.h>
10789 /* Override any gcc2 internal prototype to avoid an error. */
10790 /* We use char because int might match the return type of a gcc2
10791 builtin and then its argument prototype would still apply. */
10797 /* The GNU C library defines this for functions which it implements
10798 to always fail with ENOSYS. Some functions are actually named
10799 something starting with __ and the normal name is an alias. */
10800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10810 eval "ac_cv_func_$ac_func=yes"
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 eval "ac_cv_func_$ac_func=no"
10820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10821 echo "$ac_t""yes" 1>&6
10822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10823 cat >> confdefs.h <<EOF
10824 #define $ac_tr_func 1
10828 echo "$ac_t""no" 1>&6
10833 if test $ac_cv_func_sched_yield = no -a \
10834 $ac_cv_func_pthread_yield = no ; then
10835 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10836 echo "configure:10837: checking for sched_yield in -lrt" >&5
10837 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 ac_save_LIBS="$LIBS"
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 /* Override any gcc2 internal prototype to avoid an error. */
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10849 char sched_yield();
10855 if { (eval echo configure:10856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10857 eval "ac_cv_lib_$ac_lib_var=yes"
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10862 eval "ac_cv_lib_$ac_lib_var=no"
10865 LIBS="$ac_save_LIBS"
10868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10869 echo "$ac_t""yes" 1>&6
10870 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10871 cat >> confdefs.h <<\EOF
10872 #define HAVE_SCHED_YIELD 1
10875 ac_cv_func_sched_yield=yes
10877 echo "$ac_t""no" 1>&6
10878 ac_cv_func_sched_yield=no
10882 if test $ac_cv_func_sched_yield = no -a \
10883 $ac_cv_func_pthread_yield = no ; then
10884 for ac_func in thr_yield
10886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10887 echo "configure:10888: checking for $ac_func" >&5
10888 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10891 cat > conftest.$ac_ext <<EOF
10892 #line 10893 "configure"
10893 #include "confdefs.h"
10894 /* System header to define __stub macros and hopefully few prototypes,
10895 which can conflict with char $ac_func(); below. */
10896 #include <assert.h>
10897 /* Override any gcc2 internal prototype to avoid an error. */
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10916 if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10918 eval "ac_cv_func_$ac_func=yes"
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10923 eval "ac_cv_func_$ac_func=no"
10928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10929 echo "$ac_t""yes" 1>&6
10930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10931 cat >> confdefs.h <<EOF
10932 #define $ac_tr_func 1
10936 echo "$ac_t""no" 1>&6
10941 if test $ac_cv_func_sched_yield = no -a \
10942 $ac_cv_func_pthread_yield = no -a \
10943 "$ac_cv_func_thr_yield" = no ; then
10944 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10947 for ac_func in pthread_kill pthread_rwlock_destroy
10949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10950 echo "configure:10951: checking for $ac_func" >&5
10951 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 /* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char $ac_func(); below. */
10959 #include <assert.h>
10960 /* Override any gcc2 internal prototype to avoid an error. */
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10968 /* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10981 eval "ac_cv_func_$ac_func=yes"
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10986 eval "ac_cv_func_$ac_func=no"
10991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10992 echo "$ac_t""yes" 1>&6
10993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10994 cat >> confdefs.h <<EOF
10995 #define $ac_tr_func 1
10999 echo "$ac_t""no" 1>&6
11004 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11005 echo "configure:11006: checking for pthread_detach with <pthread.h>" >&5
11006 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11014 #include <pthread.h>
11016 #define NULL (void*)0
11020 pthread_detach(NULL);
11023 if { (eval echo configure:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11025 ol_cv_func_pthread_detach=yes
11027 echo "configure: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11030 ol_cv_func_pthread_detach=no
11036 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11038 if test $ol_cv_func_pthread_detach = no ; then
11039 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11042 cat >> confdefs.h <<\EOF
11043 #define HAVE_PTHREAD_DETACH 1
11048 pthread_setconcurrency \
11049 pthread_getconcurrency \
11050 thr_setconcurrency \
11051 thr_getconcurrency \
11054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11055 echo "configure:11056: checking for $ac_func" >&5
11056 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11057 echo $ac_n "(cached) $ac_c" 1>&6
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11062 /* System header to define __stub macros and hopefully few prototypes,
11063 which can conflict with char $ac_func(); below. */
11064 #include <assert.h>
11065 /* Override any gcc2 internal prototype to avoid an error. */
11066 /* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11073 /* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11086 eval "ac_cv_func_$ac_func=yes"
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 eval "ac_cv_func_$ac_func=no"
11096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11099 cat >> confdefs.h <<EOF
11100 #define $ac_tr_func 1
11104 echo "$ac_t""no" 1>&6
11110 for ac_func in pthread_kill_other_threads_np
11112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11113 echo "configure:11114: checking for $ac_func" >&5
11114 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11117 cat > conftest.$ac_ext <<EOF
11118 #line 11119 "configure"
11119 #include "confdefs.h"
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func(); below. */
11122 #include <assert.h>
11123 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11144 eval "ac_cv_func_$ac_func=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_func_$ac_func=no"
11154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11155 echo "$ac_t""yes" 1>&6
11156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11157 cat >> confdefs.h <<EOF
11158 #define $ac_tr_func 1
11162 echo "$ac_t""no" 1>&6
11166 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11167 echo "configure:11168: checking for LinuxThreads implementation" >&5
11168 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11169 echo $ac_n "(cached) $ac_c" 1>&6
11171 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11174 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11179 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11180 echo "configure:11181: checking for LinuxThreads consistency" >&5
11181 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11185 if test $ol_cv_header_linux_threads = yes -a \
11186 $ol_cv_sys_linux_threads = yes; then
11187 ol_cv_linux_threads=yes
11188 elif test $ol_cv_header_linux_threads = no -a \
11189 $ol_cv_sys_linux_threads = no; then
11190 ol_cv_linux_threads=no
11192 ol_cv_linux_threads=error
11197 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11200 if test $ol_cv_linux_threads = error; then
11201 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11204 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11205 echo "configure:11206: checking if pthread_create() works" >&5
11206 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11207 echo $ac_n "(cached) $ac_c" 1>&6
11210 if test "$cross_compiling" = yes; then
11211 ol_cv_pthread_create_works=yes
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 /* pthread test headers */
11217 #include <pthread.h>
11219 #define NULL (void*)0
11222 static void *task(p)
11225 return (void *) (p == NULL);
11229 int main(argc, argv)
11234 /* pthread test function */
11239 #ifdef HAVE_PTHREADS_FINAL
11240 /* Final pthreads */
11241 pthread_attr_t attr;
11243 status = pthread_attr_init(&attr);
11244 if( status ) return status;
11246 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11248 #if defined( PTHREAD_CREATE_JOINABLE )
11249 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11251 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11254 #ifdef PTHREAD_CREATE_DETACHED
11256 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11259 if( status ) return status;
11262 status = pthread_create( &t, &attr, task, NULL );
11263 if( status ) return status;
11265 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11267 /* give thread a chance to complete */
11268 /* it should remain joinable and hence detachable */
11271 status = pthread_detach( t );
11272 if( status ) return status;
11277 /* Draft 4 pthreads */
11278 status = pthread_create( &t, pthread_attr_default, task, NULL );
11279 if( status ) return status;
11282 /* give thread a chance to complete */
11283 /* it should remain joinable and hence detachable */
11286 status = pthread_detach( &t );
11287 if( status ) return status;
11291 #ifdef HAVE_LINUX_THREADS
11292 pthread_kill_other_threads_np();
11300 if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11302 ol_cv_pthread_create_works=yes
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11307 ol_cv_pthread_create_works=no
11314 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11316 if test $ol_cv_pthread_create_works = no ; then
11317 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11320 if test $ol_with_yielding_select = auto ; then
11321 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11322 echo "configure:11323: checking if select yields when using pthreads" >&5
11323 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11327 if test "$cross_compiling" = yes; then
11328 ol_cv_pthread_select_yields=cross
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11334 #include <sys/types.h>
11335 #include <sys/time.h>
11336 #include <unistd.h>
11337 #include <pthread.h>
11339 #define NULL (void*) 0
11342 static int fildes[2];
11344 static void *task(p)
11356 FD_SET(fildes[0], &rfds);
11358 /* we're not interested in any fds */
11359 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11366 exit(0); /* if we exit here, the select blocked the whole process */
11369 int main(argc, argv)
11375 /* create a pipe to select */
11376 if(pipe(&fildes[0])) {
11381 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11382 (void) pthread_setconcurrency(2);
11384 #ifdef HAVE_THR_SETCONCURRENCY
11385 /* Set Solaris LWP concurrency to 2 */
11386 thr_setconcurrency(2);
11390 #if HAVE_PTHREADS_D4
11391 pthread_create(&t, pthread_attr_default, task, NULL);
11393 pthread_create(&t, NULL, task, NULL);
11396 #if HAVE_SCHED_YIELD
11397 sched_yield(); /* make sure task runs first */
11399 #ifdef HAVE_PTHREAD_YIELD
11400 pthread_yield(); /* make sure task runs first */
11407 if { (eval echo configure:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11409 ol_cv_pthread_select_yields=no
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11414 ol_cv_pthread_select_yields=yes
11421 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11423 if test $ol_cv_pthread_select_yields = cross ; then
11424 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11427 if test $ol_cv_pthread_select_yields = yes ; then
11428 ol_with_yielding_select=yes
11432 CPPFLAGS="$save_CPPFLAGS"
11435 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11439 if test $ol_with_threads = posix ; then
11440 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11444 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11445 -o $ol_with_threads = mach ; then
11447 for ac_hdr in mach/cthreads.h cthreads.h
11449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11451 echo "configure:11452: checking for $ac_hdr" >&5
11452 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11461 { (eval echo configure:11462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11463 if test -z "$ac_err"; then
11465 eval "ac_cv_header_$ac_safe=yes"
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11471 eval "ac_cv_header_$ac_safe=no"
11475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11476 echo "$ac_t""yes" 1>&6
11477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11478 cat >> confdefs.h <<EOF
11479 #define $ac_tr_hdr 1
11483 echo "$ac_t""no" 1>&6
11487 if test $ac_cv_header_mach_cthreads_h = yes ; then
11488 ol_with_threads=found
11490 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11491 echo "configure:11492: checking for cthread_fork" >&5
11492 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11493 echo $ac_n "(cached) $ac_c" 1>&6
11495 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure"
11497 #include "confdefs.h"
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char cthread_fork(); below. */
11500 #include <assert.h>
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504 char cthread_fork();
11509 /* The GNU C library defines this for functions which it implements
11510 to always fail with ENOSYS. Some functions are actually named
11511 something starting with __ and the normal name is an alias. */
11512 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 eval "ac_cv_func_cthread_fork=yes"
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11527 eval "ac_cv_func_cthread_fork=no"
11532 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 ol_link_threads=yes
11536 echo "$ac_t""no" 1>&6
11540 if test $ol_link_threads = no ; then
11541 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11542 echo "configure:11543: checking for cthread_fork with -all_load" >&5
11543 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11548 LIBS="-all_load $LIBS"
11549 cat > conftest.$ac_ext <<EOF
11550 #line 11551 "configure"
11551 #include "confdefs.h"
11552 #include <mach/cthreads.h>
11555 cthread_fork((void *)0, (void *)0);
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11561 ol_cv_cthread_all_load=yes
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 ol_cv_cthread_all_load=no
11573 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11575 if test $ol_cv_cthread_all_load = yes ; then
11576 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11577 ol_link_threads=mach
11578 ol_with_threads=found
11582 elif test $ac_cv_header_cthreads_h = yes ; then
11584 ol_with_threads=found
11587 LIBS="$LIBS -lthreads"
11588 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11589 echo "configure:11590: checking for cthread_fork" >&5
11590 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11596 /* System header to define __stub macros and hopefully few prototypes,
11597 which can conflict with char cthread_fork(); below. */
11598 #include <assert.h>
11599 /* Override any gcc2 internal prototype to avoid an error. */
11600 /* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11602 char cthread_fork();
11607 /* The GNU C library defines this for functions which it implements
11608 to always fail with ENOSYS. Some functions are actually named
11609 something starting with __ and the normal name is an alias. */
11610 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11618 if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11620 eval "ac_cv_func_cthread_fork=yes"
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11625 eval "ac_cv_func_cthread_fork=no"
11630 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ol_link_threads=yes
11634 echo "$ac_t""no" 1>&6
11639 if test $ol_link_threads = yes ; then
11640 LTHREAD_LIBS="-lthreads"
11641 ol_link_threads=mach
11642 ol_with_threads=found
11644 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11647 elif test $ol_with_threads = mach ; then
11648 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11651 if test $ol_link_threads = mach ; then
11652 cat >> confdefs.h <<\EOF
11653 #define HAVE_MACH_CTHREADS 1
11656 elif test $ol_with_threads = found ; then
11657 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11661 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11662 -o $ol_with_threads = pth ; then
11664 for ac_hdr in pth.h
11666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11668 echo "configure:11669: checking for $ac_hdr" >&5
11669 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11678 { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11680 if test -z "$ac_err"; then
11682 eval "ac_cv_header_$ac_safe=yes"
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 eval "ac_cv_header_$ac_safe=no"
11692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11693 echo "$ac_t""yes" 1>&6
11694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11695 cat >> confdefs.h <<EOF
11696 #define $ac_tr_hdr 1
11700 echo "$ac_t""no" 1>&6
11705 if test $ac_cv_header_pth_h = yes ; then
11706 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11707 echo "configure:11708: checking for pth_version in -lpth" >&5
11708 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11712 ac_save_LIBS="$LIBS"
11714 cat > conftest.$ac_ext <<EOF
11715 #line 11716 "configure"
11716 #include "confdefs.h"
11717 /* Override any gcc2 internal prototype to avoid an error. */
11718 /* We use char because int might match the return type of a gcc2
11719 builtin and then its argument prototype would still apply. */
11720 char pth_version();
11726 if { (eval echo configure:11727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11728 eval "ac_cv_lib_$ac_lib_var=yes"
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11733 eval "ac_cv_lib_$ac_lib_var=no"
11736 LIBS="$ac_save_LIBS"
11739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11740 echo "$ac_t""yes" 1>&6
11743 echo "$ac_t""no" 1>&6
11748 if test $have_pth = yes ; then
11749 cat >> confdefs.h <<\EOF
11750 #define HAVE_GNU_PTH 1
11753 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11754 ol_link_threads=pth
11755 ol_with_threads=found
11757 if test $ol_with_yielding_select = auto ; then
11758 ol_with_yielding_select=yes
11764 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11765 -o $ol_with_threads = lwp ; then
11767 for ac_hdr in thread.h synch.h
11769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11771 echo "configure:11772: checking for $ac_hdr" >&5
11772 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11775 cat > conftest.$ac_ext <<EOF
11776 #line 11777 "configure"
11777 #include "confdefs.h"
11780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11781 { (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11783 if test -z "$ac_err"; then
11785 eval "ac_cv_header_$ac_safe=yes"
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11791 eval "ac_cv_header_$ac_safe=no"
11795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11796 echo "$ac_t""yes" 1>&6
11797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11798 cat >> confdefs.h <<EOF
11799 #define $ac_tr_hdr 1
11803 echo "$ac_t""no" 1>&6
11807 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11808 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11809 echo "configure:11810: checking for thr_create in -lthread" >&5
11810 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11814 ac_save_LIBS="$LIBS"
11815 LIBS="-lthread $LIBS"
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11830 eval "ac_cv_lib_$ac_lib_var=yes"
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 eval "ac_cv_lib_$ac_lib_var=no"
11838 LIBS="$ac_save_LIBS"
11841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11845 echo "$ac_t""no" 1>&6
11850 if test $have_thr = yes ; then
11851 cat >> confdefs.h <<\EOF
11855 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11856 ol_link_threads=thr
11858 if test $ol_with_yielding_select = auto ; then
11859 ol_with_yielding_select=yes
11863 thr_setconcurrency \
11864 thr_getconcurrency \
11867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11868 echo "configure:11869: checking for $ac_func" >&5
11869 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11870 echo $ac_n "(cached) $ac_c" 1>&6
11872 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875 /* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func(); below. */
11877 #include <assert.h>
11878 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 eval "ac_cv_func_$ac_func=yes"
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11904 eval "ac_cv_func_$ac_func=no"
11909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11912 cat >> confdefs.h <<EOF
11913 #define $ac_tr_func 1
11917 echo "$ac_t""no" 1>&6
11924 for ac_hdr in lwp/lwp.h
11926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11928 echo "configure:11929: checking for $ac_hdr" >&5
11929 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11932 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure"
11934 #include "confdefs.h"
11937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11938 { (eval echo configure:11939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11940 if test -z "$ac_err"; then
11942 eval "ac_cv_header_$ac_safe=yes"
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11948 eval "ac_cv_header_$ac_safe=no"
11952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11953 echo "$ac_t""yes" 1>&6
11954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11955 cat >> confdefs.h <<EOF
11956 #define $ac_tr_hdr 1
11960 echo "$ac_t""no" 1>&6
11964 if test $ac_cv_header_lwp_lwp_h = yes ; then
11965 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11966 echo "configure:11967: checking for lwp_create in -llwp" >&5
11967 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11971 ac_save_LIBS="$LIBS"
11973 cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 /* Override any gcc2 internal prototype to avoid an error. */
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11985 if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11987 eval "ac_cv_lib_$ac_lib_var=yes"
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11992 eval "ac_cv_lib_$ac_lib_var=no"
11995 LIBS="$ac_save_LIBS"
11998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11999 echo "$ac_t""yes" 1>&6
12002 echo "$ac_t""no" 1>&6
12007 if test $have_lwp = yes ; then
12008 cat >> confdefs.h <<\EOF
12012 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12013 ol_link_threads=lwp
12015 if test $ol_with_yielding_select = auto ; then
12016 ol_with_yielding_select=no
12022 if test $ol_with_yielding_select = yes ; then
12023 cat >> confdefs.h <<\EOF
12024 #define HAVE_YIELDING_SELECT 1
12029 if test $ol_with_threads = manual ; then
12030 ol_link_threads=yes
12032 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12034 for ac_hdr in pthread.h sched.h
12036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12038 echo "configure:12039: checking for $ac_hdr" >&5
12039 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12042 cat > conftest.$ac_ext <<EOF
12043 #line 12044 "configure"
12044 #include "confdefs.h"
12047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12048 { (eval echo configure:12049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12050 if test -z "$ac_err"; then
12052 eval "ac_cv_header_$ac_safe=yes"
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12058 eval "ac_cv_header_$ac_safe=no"
12062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12063 echo "$ac_t""yes" 1>&6
12064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12065 cat >> confdefs.h <<EOF
12066 #define $ac_tr_hdr 1
12070 echo "$ac_t""no" 1>&6
12074 for ac_func in sched_yield pthread_yield
12076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12077 echo "configure:12078: checking for $ac_func" >&5
12078 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12079 echo $ac_n "(cached) $ac_c" 1>&6
12081 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 /* System header to define __stub macros and hopefully few prototypes,
12085 which can conflict with char $ac_func(); below. */
12086 #include <assert.h>
12087 /* Override any gcc2 internal prototype to avoid an error. */
12088 /* We use char because int might match the return type of a gcc2
12089 builtin and then its argument prototype would still apply. */
12095 /* The GNU C library defines this for functions which it implements
12096 to always fail with ENOSYS. Some functions are actually named
12097 something starting with __ and the normal name is an alias. */
12098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12106 if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12108 eval "ac_cv_func_$ac_func=yes"
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12113 eval "ac_cv_func_$ac_func=no"
12118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12119 echo "$ac_t""yes" 1>&6
12120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12121 cat >> confdefs.h <<EOF
12122 #define $ac_tr_func 1
12126 echo "$ac_t""no" 1>&6
12131 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12132 echo "configure:12133: checking for LinuxThreads pthread.h" >&5
12133 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12139 #include <pthread.h>
12141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12142 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12144 ol_cv_header_linux_threads=yes
12147 ol_cv_header_linux_threads=no
12154 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12155 if test $ol_cv_header_linux_threads = yes; then
12156 cat >> confdefs.h <<\EOF
12157 #define HAVE_LINUX_THREADS 1
12163 for ac_hdr in mach/cthreads.h
12165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_hdr" >&5
12168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12169 echo $ac_n "(cached) $ac_c" 1>&6
12171 cat > conftest.$ac_ext <<EOF
12172 #line 12173 "configure"
12173 #include "confdefs.h"
12176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12177 { (eval echo configure:12178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12179 if test -z "$ac_err"; then
12181 eval "ac_cv_header_$ac_safe=yes"
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12187 eval "ac_cv_header_$ac_safe=no"
12191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12192 echo "$ac_t""yes" 1>&6
12193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12194 cat >> confdefs.h <<EOF
12195 #define $ac_tr_hdr 1
12199 echo "$ac_t""no" 1>&6
12203 for ac_hdr in lwp/lwp.h
12205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12207 echo "configure:12208: checking for $ac_hdr" >&5
12208 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12217 { (eval echo configure:12218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12219 if test -z "$ac_err"; then
12221 eval "ac_cv_header_$ac_safe=yes"
12224 echo "configure: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12227 eval "ac_cv_header_$ac_safe=no"
12231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12232 echo "$ac_t""yes" 1>&6
12233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12234 cat >> confdefs.h <<EOF
12235 #define $ac_tr_hdr 1
12239 echo "$ac_t""no" 1>&6
12243 for ac_hdr in thread.h synch.h
12245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12247 echo "configure:12248: checking for $ac_hdr" >&5
12248 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12249 echo $ac_n "(cached) $ac_c" 1>&6
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12257 { (eval echo configure:12258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12259 if test -z "$ac_err"; then
12261 eval "ac_cv_header_$ac_safe=yes"
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12267 eval "ac_cv_header_$ac_safe=no"
12271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12272 echo "$ac_t""yes" 1>&6
12273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12274 cat >> confdefs.h <<EOF
12275 #define $ac_tr_hdr 1
12279 echo "$ac_t""no" 1>&6
12285 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12286 cat >> confdefs.h <<\EOF
12287 #define REENTRANT 1
12290 cat >> confdefs.h <<\EOF
12291 #define _REENTRANT 1
12294 cat >> confdefs.h <<\EOF
12295 #define THREAD_SAFE 1
12298 cat >> confdefs.h <<\EOF
12299 #define _THREAD_SAFE 1
12302 cat >> confdefs.h <<\EOF
12303 #define THREADSAFE 1
12306 cat >> confdefs.h <<\EOF
12307 #define _THREADSAFE 1
12310 cat >> confdefs.h <<\EOF
12311 #define _SGI_MP_SOURCE 1
12315 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12316 echo "configure:12317: checking for thread specific errno" >&5
12317 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
12321 cat > conftest.$ac_ext <<EOF
12322 #line 12323 "configure"
12323 #include "confdefs.h"
12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12331 ol_cv_errno_thread_specific=yes
12333 echo "configure: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12336 ol_cv_errno_thread_specific=no
12342 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12344 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12345 echo "configure:12346: checking for thread specific h_errno" >&5
12346 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12358 if { (eval echo configure:12359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12360 ol_cv_h_errno_thread_specific=yes
12362 echo "configure: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12365 ol_cv_h_errno_thread_specific=no
12371 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12373 if test $ol_cv_errno_thread_specific != yes \
12374 -o $ol_cv_h_errno_thread_specific != yes ; then
12375 LIBS="$LTHREAD_LIBS $LIBS"
12381 if test $ol_link_threads = no ; then
12382 if test $ol_with_threads = yes ; then
12383 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12386 if test $ol_with_threads = auto ; then
12387 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12391 cat >> confdefs.h <<\EOF
12392 #define NO_THREADS 1
12398 if test $ol_link_threads != no ; then
12399 cat >> confdefs.h <<\EOF
12400 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12407 if test $ol_with_ldbm_api = auto \
12408 -o $ol_with_ldbm_api = berkeley \
12409 -o $ol_with_ldbm_api = bcompat ; then
12411 if test $ol_with_ldbm_api = bcompat; then \
12412 ol_cv_berkeley_db=no
12413 for ac_hdr in db_185.h db.h
12415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12417 echo "configure:12418: checking for $ac_hdr" >&5
12418 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12427 { (eval echo configure:12428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12429 if test -z "$ac_err"; then
12431 eval "ac_cv_header_$ac_safe=yes"
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12437 eval "ac_cv_header_$ac_safe=no"
12441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12442 echo "$ac_t""yes" 1>&6
12443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12444 cat >> confdefs.h <<EOF
12445 #define $ac_tr_hdr 1
12449 echo "$ac_t""no" 1>&6
12453 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12454 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12455 echo "configure:12456: checking if Berkeley DB header compatibility" >&5
12456 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12460 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12465 # include <db_185.h>
12470 /* this check could be improved */
12471 #ifndef DB_VERSION_MAJOR
12472 # define DB_VERSION_MAJOR 1
12475 #if DB_VERSION_MAJOR == 1
12480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12481 egrep "__db_version_1" >/dev/null 2>&1; then
12483 ol_cv_header_db1=yes
12486 ol_cv_header_db1=no
12492 echo "$ac_t""$ol_cv_header_db1" 1>&6
12494 if test $ol_cv_header_db1 = yes ; then
12496 if test $ol_cv_lib_db = no ; then
12497 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12498 echo "configure:12499: checking for Berkeley DB link (default)" >&5
12499 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12505 LIBS="$ol_DB_LIB $LIBS"
12507 cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12511 #ifdef HAVE_DB_185_H
12512 # include <db_185.h>
12517 #ifndef DB_VERSION_MAJOR
12518 # define DB_VERSION_MAJOR 1
12522 #define NULL ((void*)0)
12527 #if DB_VERSION_MAJOR > 1
12530 int major, minor, patch;
12532 version = db_version( &major, &minor, &patch );
12534 if( major != DB_VERSION_MAJOR ||
12535 minor < DB_VERSION_MINOR )
12537 printf("Berkeley DB version mismatch\n"
12538 "\texpected: %s\n\tgot: %s\n",
12539 DB_VERSION_STRING, version);
12545 #if DB_VERSION_MAJOR > 2
12546 db_env_create( NULL, 0 );
12547 #elif DB_VERSION_MAJOR > 1
12548 db_appexit( NULL );
12550 (void) dbopen( NULL, 0, 0, 0, NULL);
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12570 echo "$ac_t""$ol_cv_db_none" 1>&6
12572 if test $ol_cv_db_none = yes ; then
12577 if test $ol_cv_lib_db = no ; then
12578 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12579 echo "configure:12580: checking for Berkeley DB link (-ldb)" >&5
12580 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12586 LIBS="$ol_DB_LIB $LIBS"
12588 cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12592 #ifdef HAVE_DB_185_H
12593 # include <db_185.h>
12598 #ifndef DB_VERSION_MAJOR
12599 # define DB_VERSION_MAJOR 1
12603 #define NULL ((void*)0)
12608 #if DB_VERSION_MAJOR > 1
12611 int major, minor, patch;
12613 version = db_version( &major, &minor, &patch );
12615 if( major != DB_VERSION_MAJOR ||
12616 minor < DB_VERSION_MINOR )
12618 printf("Berkeley DB version mismatch\n"
12619 "\texpected: %s\n\tgot: %s\n",
12620 DB_VERSION_STRING, version);
12626 #if DB_VERSION_MAJOR > 2
12627 db_env_create( NULL, 0 );
12628 #elif DB_VERSION_MAJOR > 1
12629 db_appexit( NULL );
12631 (void) dbopen( NULL, 0, 0, 0, NULL);
12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12651 echo "$ac_t""$ol_cv_db_db" 1>&6
12653 if test $ol_cv_db_db = yes ; then
12658 if test $ol_cv_lib_db = no ; then
12659 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
12660 echo "configure:12661: checking for Berkeley DB link (-ldb4)" >&5
12661 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
12662 echo $ac_n "(cached) $ac_c" 1>&6
12667 LIBS="$ol_DB_LIB $LIBS"
12669 cat > conftest.$ac_ext <<EOF
12670 #line 12671 "configure"
12671 #include "confdefs.h"
12673 #ifdef HAVE_DB_185_H
12674 # include <db_185.h>
12679 #ifndef DB_VERSION_MAJOR
12680 # define DB_VERSION_MAJOR 1
12684 #define NULL ((void*)0)
12689 #if DB_VERSION_MAJOR > 1
12692 int major, minor, patch;
12694 version = db_version( &major, &minor, &patch );
12696 if( major != DB_VERSION_MAJOR ||
12697 minor < DB_VERSION_MINOR )
12699 printf("Berkeley DB version mismatch\n"
12700 "\texpected: %s\n\tgot: %s\n",
12701 DB_VERSION_STRING, version);
12707 #if DB_VERSION_MAJOR > 2
12708 db_env_create( NULL, 0 );
12709 #elif DB_VERSION_MAJOR > 1
12710 db_appexit( NULL );
12712 (void) dbopen( NULL, 0, 0, 0, NULL);
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12732 echo "$ac_t""$ol_cv_db_db4" 1>&6
12734 if test $ol_cv_db_db4 = yes ; then
12739 if test $ol_cv_lib_db = no ; then
12740 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12741 echo "configure:12742: checking for Berkeley DB link (-ldb3)" >&5
12742 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12748 LIBS="$ol_DB_LIB $LIBS"
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12754 #ifdef HAVE_DB_185_H
12755 # include <db_185.h>
12760 #ifndef DB_VERSION_MAJOR
12761 # define DB_VERSION_MAJOR 1
12765 #define NULL ((void*)0)
12770 #if DB_VERSION_MAJOR > 1
12773 int major, minor, patch;
12775 version = db_version( &major, &minor, &patch );
12777 if( major != DB_VERSION_MAJOR ||
12778 minor < DB_VERSION_MINOR )
12780 printf("Berkeley DB version mismatch\n"
12781 "\texpected: %s\n\tgot: %s\n",
12782 DB_VERSION_STRING, version);
12788 #if DB_VERSION_MAJOR > 2
12789 db_env_create( NULL, 0 );
12790 #elif DB_VERSION_MAJOR > 1
12791 db_appexit( NULL );
12793 (void) dbopen( NULL, 0, 0, 0, NULL);
12798 if { (eval echo configure:12799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12813 echo "$ac_t""$ol_cv_db_db3" 1>&6
12815 if test $ol_cv_db_db3 = yes ; then
12820 if test $ol_cv_lib_db = no ; then
12821 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12822 echo "configure:12823: checking for Berkeley DB link (-ldb2)" >&5
12823 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12829 LIBS="$ol_DB_LIB $LIBS"
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure"
12833 #include "confdefs.h"
12835 #ifdef HAVE_DB_185_H
12836 # include <db_185.h>
12841 #ifndef DB_VERSION_MAJOR
12842 # define DB_VERSION_MAJOR 1
12846 #define NULL ((void*)0)
12851 #if DB_VERSION_MAJOR > 1
12854 int major, minor, patch;
12856 version = db_version( &major, &minor, &patch );
12858 if( major != DB_VERSION_MAJOR ||
12859 minor < DB_VERSION_MINOR )
12861 printf("Berkeley DB version mismatch\n"
12862 "\texpected: %s\n\tgot: %s\n",
12863 DB_VERSION_STRING, version);
12869 #if DB_VERSION_MAJOR > 2
12870 db_env_create( NULL, 0 );
12871 #elif DB_VERSION_MAJOR > 1
12872 db_appexit( NULL );
12874 (void) dbopen( NULL, 0, 0, 0, NULL);
12879 if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12894 echo "$ac_t""$ol_cv_db_db2" 1>&6
12896 if test $ol_cv_db_db2 = yes ; then
12901 if test $ol_cv_lib_db = no ; then
12902 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12903 echo "configure:12904: checking for Berkeley DB link (-ldb1)" >&5
12904 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12905 echo $ac_n "(cached) $ac_c" 1>&6
12910 LIBS="$ol_DB_LIB $LIBS"
12912 cat > conftest.$ac_ext <<EOF
12913 #line 12914 "configure"
12914 #include "confdefs.h"
12916 #ifdef HAVE_DB_185_H
12917 # include <db_185.h>
12922 #ifndef DB_VERSION_MAJOR
12923 # define DB_VERSION_MAJOR 1
12927 #define NULL ((void*)0)
12932 #if DB_VERSION_MAJOR > 1
12935 int major, minor, patch;
12937 version = db_version( &major, &minor, &patch );
12939 if( major != DB_VERSION_MAJOR ||
12940 minor < DB_VERSION_MINOR )
12942 printf("Berkeley DB version mismatch\n"
12943 "\texpected: %s\n\tgot: %s\n",
12944 DB_VERSION_STRING, version);
12950 #if DB_VERSION_MAJOR > 2
12951 db_env_create( NULL, 0 );
12952 #elif DB_VERSION_MAJOR > 1
12953 db_appexit( NULL );
12955 (void) dbopen( NULL, 0, 0, 0, NULL);
12960 if { (eval echo configure:12961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12964 echo "configure: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12975 echo "$ac_t""$ol_cv_db_db1" 1>&6
12977 if test $ol_cv_db_db1 = yes ; then
12983 if test "$ol_cv_lib_db" != no ; then
12984 ol_cv_berkeley_db=yes
12990 ol_cv_berkeley_db=no
12993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12995 echo "configure:12996: checking for $ac_hdr" >&5
12996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13005 { (eval echo configure:13006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13007 if test -z "$ac_err"; then
13009 eval "ac_cv_header_$ac_safe=yes"
13012 echo "configure: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13015 eval "ac_cv_header_$ac_safe=no"
13019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13020 echo "$ac_t""yes" 1>&6
13021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13022 cat >> confdefs.h <<EOF
13023 #define $ac_tr_hdr 1
13027 echo "$ac_t""no" 1>&6
13031 if test $ac_cv_header_db_h = yes; then
13033 if test $ol_cv_lib_db = no ; then
13034 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13035 echo "configure:13036: checking for Berkeley DB link (default)" >&5
13036 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13037 echo $ac_n "(cached) $ac_c" 1>&6
13042 LIBS="$ol_DB_LIB $LIBS"
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13048 #ifdef HAVE_DB_185_H
13049 # include <db_185.h>
13054 #ifndef DB_VERSION_MAJOR
13055 # define DB_VERSION_MAJOR 1
13059 #define NULL ((void*)0)
13064 #if DB_VERSION_MAJOR > 1
13067 int major, minor, patch;
13069 version = db_version( &major, &minor, &patch );
13071 if( major != DB_VERSION_MAJOR ||
13072 minor < DB_VERSION_MINOR )
13074 printf("Berkeley DB version mismatch\n"
13075 "\texpected: %s\n\tgot: %s\n",
13076 DB_VERSION_STRING, version);
13082 #if DB_VERSION_MAJOR > 2
13083 db_env_create( NULL, 0 );
13084 #elif DB_VERSION_MAJOR > 1
13085 db_appexit( NULL );
13087 (void) dbopen( NULL, 0, 0, 0, NULL);
13092 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13107 echo "$ac_t""$ol_cv_db_none" 1>&6
13109 if test $ol_cv_db_none = yes ; then
13114 if test $ol_cv_lib_db = no ; then
13115 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13116 echo "configure:13117: checking for Berkeley DB link (-ldb)" >&5
13117 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13123 LIBS="$ol_DB_LIB $LIBS"
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13129 #ifdef HAVE_DB_185_H
13130 # include <db_185.h>
13135 #ifndef DB_VERSION_MAJOR
13136 # define DB_VERSION_MAJOR 1
13140 #define NULL ((void*)0)
13145 #if DB_VERSION_MAJOR > 1
13148 int major, minor, patch;
13150 version = db_version( &major, &minor, &patch );
13152 if( major != DB_VERSION_MAJOR ||
13153 minor < DB_VERSION_MINOR )
13155 printf("Berkeley DB version mismatch\n"
13156 "\texpected: %s\n\tgot: %s\n",
13157 DB_VERSION_STRING, version);
13163 #if DB_VERSION_MAJOR > 2
13164 db_env_create( NULL, 0 );
13165 #elif DB_VERSION_MAJOR > 1
13166 db_appexit( NULL );
13168 (void) dbopen( NULL, 0, 0, 0, NULL);
13173 if { (eval echo configure:13174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13177 echo "configure: failed program was:" >&5
13178 cat conftest.$ac_ext >&5
13188 echo "$ac_t""$ol_cv_db_db" 1>&6
13190 if test $ol_cv_db_db = yes ; then
13195 if test $ol_cv_lib_db = no ; then
13196 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
13197 echo "configure:13198: checking for Berkeley DB link (-ldb4)" >&5
13198 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13204 LIBS="$ol_DB_LIB $LIBS"
13206 cat > conftest.$ac_ext <<EOF
13207 #line 13208 "configure"
13208 #include "confdefs.h"
13210 #ifdef HAVE_DB_185_H
13211 # include <db_185.h>
13216 #ifndef DB_VERSION_MAJOR
13217 # define DB_VERSION_MAJOR 1
13221 #define NULL ((void*)0)
13226 #if DB_VERSION_MAJOR > 1
13229 int major, minor, patch;
13231 version = db_version( &major, &minor, &patch );
13233 if( major != DB_VERSION_MAJOR ||
13234 minor < DB_VERSION_MINOR )
13236 printf("Berkeley DB version mismatch\n"
13237 "\texpected: %s\n\tgot: %s\n",
13238 DB_VERSION_STRING, version);
13244 #if DB_VERSION_MAJOR > 2
13245 db_env_create( NULL, 0 );
13246 #elif DB_VERSION_MAJOR > 1
13247 db_appexit( NULL );
13249 (void) dbopen( NULL, 0, 0, 0, NULL);
13254 if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 echo "configure: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13269 echo "$ac_t""$ol_cv_db_db4" 1>&6
13271 if test $ol_cv_db_db4 = yes ; then
13276 if test $ol_cv_lib_db = no ; then
13277 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13278 echo "configure:13279: checking for Berkeley DB link (-ldb3)" >&5
13279 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13285 LIBS="$ol_DB_LIB $LIBS"
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13291 #ifdef HAVE_DB_185_H
13292 # include <db_185.h>
13297 #ifndef DB_VERSION_MAJOR
13298 # define DB_VERSION_MAJOR 1
13302 #define NULL ((void*)0)
13307 #if DB_VERSION_MAJOR > 1
13310 int major, minor, patch;
13312 version = db_version( &major, &minor, &patch );
13314 if( major != DB_VERSION_MAJOR ||
13315 minor < DB_VERSION_MINOR )
13317 printf("Berkeley DB version mismatch\n"
13318 "\texpected: %s\n\tgot: %s\n",
13319 DB_VERSION_STRING, version);
13325 #if DB_VERSION_MAJOR > 2
13326 db_env_create( NULL, 0 );
13327 #elif DB_VERSION_MAJOR > 1
13328 db_appexit( NULL );
13330 (void) dbopen( NULL, 0, 0, 0, NULL);
13335 if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13350 echo "$ac_t""$ol_cv_db_db3" 1>&6
13352 if test $ol_cv_db_db3 = yes ; then
13357 if test $ol_cv_lib_db = no ; then
13358 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13359 echo "configure:13360: checking for Berkeley DB link (-ldb2)" >&5
13360 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13366 LIBS="$ol_DB_LIB $LIBS"
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13372 #ifdef HAVE_DB_185_H
13373 # include <db_185.h>
13378 #ifndef DB_VERSION_MAJOR
13379 # define DB_VERSION_MAJOR 1
13383 #define NULL ((void*)0)
13388 #if DB_VERSION_MAJOR > 1
13391 int major, minor, patch;
13393 version = db_version( &major, &minor, &patch );
13395 if( major != DB_VERSION_MAJOR ||
13396 minor < DB_VERSION_MINOR )
13398 printf("Berkeley DB version mismatch\n"
13399 "\texpected: %s\n\tgot: %s\n",
13400 DB_VERSION_STRING, version);
13406 #if DB_VERSION_MAJOR > 2
13407 db_env_create( NULL, 0 );
13408 #elif DB_VERSION_MAJOR > 1
13409 db_appexit( NULL );
13411 (void) dbopen( NULL, 0, 0, 0, NULL);
13416 if { (eval echo configure:13417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13420 echo "configure: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13431 echo "$ac_t""$ol_cv_db_db2" 1>&6
13433 if test $ol_cv_db_db2 = yes ; then
13438 if test $ol_cv_lib_db = no ; then
13439 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13440 echo "configure:13441: checking for Berkeley DB link (-ldb1)" >&5
13441 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13442 echo $ac_n "(cached) $ac_c" 1>&6
13447 LIBS="$ol_DB_LIB $LIBS"
13449 cat > conftest.$ac_ext <<EOF
13450 #line 13451 "configure"
13451 #include "confdefs.h"
13453 #ifdef HAVE_DB_185_H
13454 # include <db_185.h>
13459 #ifndef DB_VERSION_MAJOR
13460 # define DB_VERSION_MAJOR 1
13464 #define NULL ((void*)0)
13469 #if DB_VERSION_MAJOR > 1
13472 int major, minor, patch;
13474 version = db_version( &major, &minor, &patch );
13476 if( major != DB_VERSION_MAJOR ||
13477 minor < DB_VERSION_MINOR )
13479 printf("Berkeley DB version mismatch\n"
13480 "\texpected: %s\n\tgot: %s\n",
13481 DB_VERSION_STRING, version);
13487 #if DB_VERSION_MAJOR > 2
13488 db_env_create( NULL, 0 );
13489 #elif DB_VERSION_MAJOR > 1
13490 db_appexit( NULL );
13492 (void) dbopen( NULL, 0, 0, 0, NULL);
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13512 echo "$ac_t""$ol_cv_db_db1" 1>&6
13514 if test $ol_cv_db_db1 = yes ; then
13520 if test "$ol_cv_lib_db" != no ; then
13521 ol_cv_berkeley_db=yes
13522 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13523 echo "configure:13524: checking for Berkeley DB thread support" >&5
13524 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13525 echo $ac_n "(cached) $ac_c" 1>&6
13529 if test $ol_cv_lib_db != yes ; then
13530 LIBS="$ol_cv_lib_db"
13533 if test "$cross_compiling" = yes; then
13534 ol_cv_berkeley_db_thread=cross
13536 cat > conftest.$ac_ext <<EOF
13537 #line 13538 "configure"
13538 #include "confdefs.h"
13540 #ifdef HAVE_DB_185_H
13546 #define NULL ((void *)0)
13551 u_int32_t flags = DB_CREATE |
13557 #if DB_VERSION_MAJOR > 2
13558 DB_ENV *env = NULL;
13560 rc = db_env_create( &env, 0 );
13562 flags |= DB_INIT_MPOOL;
13563 #ifdef DB_MPOOL_PRIVATE
13564 flags |= DB_MPOOL_PRIVATE;
13568 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13572 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13573 rc = env->open( env, NULL, flags, 0 );
13575 rc = env->open( env, NULL, NULL, flags, 0 );
13579 rc = env->close( env, 0 );
13583 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13589 memset( &env, '\0', sizeof(env) );
13591 rc = db_appinit( NULL, NULL, &env, flags );
13594 db_appexit( &env );
13597 unlink("__db_mpool.share");
13598 unlink("__db_lock.share");
13604 if { (eval echo configure:13605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13606 ol_cv_berkeley_db_thread=yes
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13611 ol_cv_berkeley_db_thread=no
13619 if test $ol_cv_berkeley_db_thread != no ; then
13620 cat >> confdefs.h <<\EOF
13621 #define HAVE_BERKELEY_DB_THREAD 1
13628 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13634 if test $ol_cv_berkeley_db != no ; then
13635 cat >> confdefs.h <<\EOF
13636 #define HAVE_BERKELEY_DB 1
13640 ol_link_ldbm=berkeley
13641 ol_with_ldbm_api=db
13643 if test $ol_with_ldbm_type = hash ; then
13644 cat >> confdefs.h <<\EOF
13645 #define LDBM_USE_DBHASH 1
13649 cat >> confdefs.h <<\EOF
13650 #define LDBM_USE_DBBTREE 1
13655 if test $ol_cv_lib_db != yes ; then
13656 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13661 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13662 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13663 ol_with_ldbm_api=none
13666 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13667 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13668 echo "configure:13669: checking for MDBM library" >&5
13669 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13673 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13674 echo "configure:13675: checking for mdbm_set_chain" >&5
13675 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13676 echo $ac_n "(cached) $ac_c" 1>&6
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* System header to define __stub macros and hopefully few prototypes,
13682 which can conflict with char mdbm_set_chain(); below. */
13683 #include <assert.h>
13684 /* Override any gcc2 internal prototype to avoid an error. */
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687 char mdbm_set_chain();
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13698 f = mdbm_set_chain;
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13705 eval "ac_cv_func_mdbm_set_chain=yes"
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13710 eval "ac_cv_func_mdbm_set_chain=no"
13715 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13719 echo "$ac_t""no" 1>&6
13721 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13722 echo "configure:13723: checking for mdbm_set_chain in -lmdbm" >&5
13723 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13724 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13725 echo $ac_n "(cached) $ac_c" 1>&6
13727 ac_save_LIBS="$LIBS"
13728 LIBS="-lmdbm $LIBS"
13729 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure"
13731 #include "confdefs.h"
13732 /* Override any gcc2 internal prototype to avoid an error. */
13733 /* We use char because int might match the return type of a gcc2
13734 builtin and then its argument prototype would still apply. */
13735 char mdbm_set_chain();
13741 if { (eval echo configure:13742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13743 eval "ac_cv_lib_$ac_lib_var=yes"
13745 echo "configure: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13748 eval "ac_cv_lib_$ac_lib_var=no"
13751 LIBS="$ac_save_LIBS"
13754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13755 echo "$ac_t""yes" 1>&6
13756 ol_cv_lib_mdbm=-lmdbm
13758 echo "$ac_t""no" 1>&6
13769 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13772 for ac_hdr in mdbm.h
13774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13776 echo "configure:13777: checking for $ac_hdr" >&5
13777 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13778 echo $ac_n "(cached) $ac_c" 1>&6
13780 cat > conftest.$ac_ext <<EOF
13781 #line 13782 "configure"
13782 #include "confdefs.h"
13785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13786 { (eval echo configure:13787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13788 if test -z "$ac_err"; then
13790 eval "ac_cv_header_$ac_safe=yes"
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13796 eval "ac_cv_header_$ac_safe=no"
13800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13801 echo "$ac_t""yes" 1>&6
13802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13803 cat >> confdefs.h <<EOF
13804 #define $ac_tr_hdr 1
13808 echo "$ac_t""no" 1>&6
13812 echo $ac_n "checking for db""... $ac_c" 1>&6
13813 echo "configure:13814: checking for db" >&5
13814 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13818 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13826 echo "$ac_t""$ol_cv_mdbm" 1>&6
13827 if test $ol_cv_mdbm = yes ; then
13828 cat >> confdefs.h <<\EOF
13829 #define HAVE_MDBM 1
13835 if test $ol_cv_mdbm = yes ; then
13837 ol_with_ldbm_api=mdbm
13838 if test $ol_cv_lib_mdbm != yes ; then
13839 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13844 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13845 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13846 echo "configure:13847: checking for GDBM library" >&5
13847 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13851 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13852 echo "configure:13853: checking for gdbm_open" >&5
13853 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13856 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13859 /* System header to define __stub macros and hopefully few prototypes,
13860 which can conflict with char gdbm_open(); below. */
13861 #include <assert.h>
13862 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13870 /* The GNU C library defines this for functions which it implements
13871 to always fail with ENOSYS. Some functions are actually named
13872 something starting with __ and the normal name is an alias. */
13873 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13881 if { (eval echo configure:13882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13883 eval "ac_cv_func_gdbm_open=yes"
13885 echo "configure: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13888 eval "ac_cv_func_gdbm_open=no"
13893 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13894 echo "$ac_t""yes" 1>&6
13897 echo "$ac_t""no" 1>&6
13899 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13900 echo "configure:13901: checking for gdbm_open in -lgdbm" >&5
13901 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13905 ac_save_LIBS="$LIBS"
13906 LIBS="-lgdbm $LIBS"
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13909 "configure"
13909 #include "confdefs.h"
13910 /* Override any gcc2 internal prototype to avoid an error. */
13911 /* We use char because int might match the return type of a gcc2
13912 builtin and then its argument prototype would still apply. */
13919 if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13921 eval "ac_cv_lib_$ac_lib_var=yes"
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13926 eval "ac_cv_lib_$ac_lib_var=no"
13929 LIBS="$ac_save_LIBS"
13932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13933 echo "$ac_t""yes" 1>&6
13934 ol_cv_lib_gdbm=-lgdbm
13936 echo "$ac_t""no" 1>&6
13947 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13950 for ac_hdr in gdbm.h
13952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13954 echo "configure:13955: checking for $ac_hdr" >&5
13955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
13958 cat > conftest.$ac_ext <<EOF
13959 #line 13960 "configure"
13960 #include "confdefs.h"
13963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13964 { (eval echo configure:13965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13966 if test -z "$ac_err"; then
13968 eval "ac_cv_header_$ac_safe=yes"
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13974 eval "ac_cv_header_$ac_safe=no"
13978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13979 echo "$ac_t""yes" 1>&6
13980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13981 cat >> confdefs.h <<EOF
13982 #define $ac_tr_hdr 1
13986 echo "$ac_t""no" 1>&6
13990 echo $ac_n "checking for db""... $ac_c" 1>&6
13991 echo "configure:13992: checking for db" >&5
13992 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13993 echo $ac_n "(cached) $ac_c" 1>&6
13996 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14004 echo "$ac_t""$ol_cv_gdbm" 1>&6
14005 if test $ol_cv_gdbm = yes ; then
14006 cat >> confdefs.h <<\EOF
14007 #define HAVE_GDBM 1
14013 if test $ol_cv_gdbm = yes ; then
14015 ol_with_ldbm_api=gdbm
14017 if test $ol_cv_lib_gdbm != yes ; then
14018 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14023 if test $ol_with_ldbm_api = ndbm ; then
14024 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14025 echo "configure:14026: checking for NDBM library" >&5
14026 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14027 echo $ac_n "(cached) $ac_c" 1>&6
14030 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14031 echo "configure:14032: checking for dbm_open" >&5
14032 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14033 echo $ac_n "(cached) $ac_c" 1>&6
14035 cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure"
14037 #include "confdefs.h"
14038 /* System header to define __stub macros and hopefully few prototypes,
14039 which can conflict with char dbm_open(); below. */
14040 #include <assert.h>
14041 /* Override any gcc2 internal prototype to avoid an error. */
14042 /* We use char because int might match the return type of a gcc2
14043 builtin and then its argument prototype would still apply. */
14049 /* The GNU C library defines this for functions which it implements
14050 to always fail with ENOSYS. Some functions are actually named
14051 something starting with __ and the normal name is an alias. */
14052 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14060 if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14062 eval "ac_cv_func_dbm_open=yes"
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14067 eval "ac_cv_func_dbm_open=no"
14072 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14073 echo "$ac_t""yes" 1>&6
14076 echo "$ac_t""no" 1>&6
14078 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14079 echo "configure:14080: checking for dbm_open in -lndbm" >&5
14080 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14081 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14084 ac_save_LIBS="$LIBS"
14085 LIBS="-lndbm $LIBS"
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089 /* Override any gcc2 internal prototype to avoid an error. */
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14100 eval "ac_cv_lib_$ac_lib_var=yes"
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 eval "ac_cv_lib_$ac_lib_var=no"
14108 LIBS="$ac_save_LIBS"
14111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14112 echo "$ac_t""yes" 1>&6
14113 ol_cv_lib_ndbm=-lndbm
14115 echo "$ac_t""no" 1>&6
14117 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14118 echo "configure:14119: checking for dbm_open in -ldbm" >&5
14119 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14120 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
14123 ac_save_LIBS="$LIBS"
14125 cat > conftest.$ac_ext <<EOF
14126 #line 14127 "configure"
14127 #include "confdefs.h"
14128 /* Override any gcc2 internal prototype to avoid an error. */
14129 /* We use char because int might match the return type of a gcc2
14130 builtin and then its argument prototype would still apply. */
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14139 eval "ac_cv_lib_$ac_lib_var=yes"
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 eval "ac_cv_lib_$ac_lib_var=no"
14147 LIBS="$ac_save_LIBS"
14150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14151 echo "$ac_t""yes" 1>&6
14152 ol_cv_lib_ndbm=-ldbm
14154 echo "$ac_t""no" 1>&6
14167 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14170 for ac_hdr in ndbm.h
14172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14174 echo "configure:14175: checking for $ac_hdr" >&5
14175 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14176 echo $ac_n "(cached) $ac_c" 1>&6
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14184 { (eval echo configure:14185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14186 if test -z "$ac_err"; then
14188 eval "ac_cv_header_$ac_safe=yes"
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14194 eval "ac_cv_header_$ac_safe=no"
14198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14199 echo "$ac_t""yes" 1>&6
14200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14201 cat >> confdefs.h <<EOF
14202 #define $ac_tr_hdr 1
14206 echo "$ac_t""no" 1>&6
14210 echo $ac_n "checking for db""... $ac_c" 1>&6
14211 echo "configure:14212: checking for db" >&5
14212 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14213 echo $ac_n "(cached) $ac_c" 1>&6
14216 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14224 echo "$ac_t""$ol_cv_ndbm" 1>&6
14225 if test $ol_cv_ndbm = yes ; then
14226 cat >> confdefs.h <<\EOF
14227 #define HAVE_NDBM 1
14233 if test $ol_cv_ndbm = yes ; then
14235 ol_with_ldbm_api=ndbm
14237 if test $ol_cv_lib_ndbm != yes ; then
14238 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14243 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14244 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14245 if test $ol_enable_ldbm = yes ; then
14246 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14249 echo "configure: warning: disabling LDBM" 1>&2
14253 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14254 LINK_BINS_DYNAMIC="yes"
14256 LINK_BINS_DYNAMIC="no"
14259 if test $ol_enable_wrappers != no ; then
14260 for ac_hdr in tcpd.h
14262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14264 echo "configure:14265: checking for $ac_hdr" >&5
14265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14266 echo $ac_n "(cached) $ac_c" 1>&6
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14274 { (eval echo configure:14275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14276 if test -z "$ac_err"; then
14278 eval "ac_cv_header_$ac_safe=yes"
14281 echo "configure: failed program was:" >&5
14282 cat conftest.$ac_ext >&5
14284 eval "ac_cv_header_$ac_safe=no"
14288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14291 cat >> confdefs.h <<EOF
14292 #define $ac_tr_hdr 1
14296 echo "$ac_t""no" 1>&6
14301 if test $ac_cv_header_tcpd_h != yes ; then
14304 cat > conftest.$ac_ext <<EOF
14305 #line 14306 "configure"
14306 #include "confdefs.h"
14308 int allow_severity = 0;
14309 int deny_severity = 0;
14315 if { (eval echo configure:14316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 echo "configure: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14327 if test $have_wrappers = yes ; then
14328 cat >> confdefs.h <<\EOF
14329 #define HAVE_TCPD 1
14334 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14335 echo "configure:14336: checking for main in -lnsl" >&5
14336 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14337 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14338 echo $ac_n "(cached) $ac_c" 1>&6
14340 ac_save_LIBS="$LIBS"
14342 cat > conftest.$ac_ext <<EOF
14343 #line 14344 "configure"
14344 #include "confdefs.h"
14350 if { (eval echo configure:14351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14352 eval "ac_cv_lib_$ac_lib_var=yes"
14354 echo "configure: failed program was:" >&5
14355 cat conftest.$ac_ext >&5
14357 eval "ac_cv_lib_$ac_lib_var=no"
14360 LIBS="$ac_save_LIBS"
14363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14364 echo "$ac_t""yes" 1>&6
14365 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14367 cat >> confdefs.h <<EOF
14368 #define $ac_tr_lib 1
14374 echo "$ac_t""no" 1>&6
14378 echo "configure: warning: could not find -lwrap" 1>&2
14379 if test $ol_enable_wrappers = yes ; then
14380 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14383 echo "configure: warning: disabling wrappers support" 1>&2
14384 ol_enable_wrappers=no
14389 if test $ol_enable_syslog != no ; then
14390 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14391 echo "configure:14392: checking for openlog" >&5
14392 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 /* System header to define __stub macros and hopefully few prototypes,
14399 which can conflict with char openlog(); below. */
14400 #include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_openlog) || defined (__stub___openlog)
14420 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14422 eval "ac_cv_func_openlog=yes"
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14427 eval "ac_cv_func_openlog=no"
14432 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14433 echo "$ac_t""yes" 1>&6
14436 echo "$ac_t""no" 1>&6
14439 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14440 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14442 ol_enable_syslog=$ac_cv_func_openlog
14446 if test $ol_enable_sql != no ; then
14447 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14448 echo "configure:14449: checking for SQLDriverConnect in -liodbc" >&5
14449 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
14453 ac_save_LIBS="$LIBS"
14454 LIBS="-liodbc $LIBS"
14455 cat > conftest.$ac_ext <<EOF
14456 #line 14457 "configure"
14457 #include "confdefs.h"
14458 /* Override any gcc2 internal prototype to avoid an error. */
14459 /* We use char because int might match the return type of a gcc2
14460 builtin and then its argument prototype would still apply. */
14461 char SQLDriverConnect();
14467 if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14469 eval "ac_cv_lib_$ac_lib_var=yes"
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14474 eval "ac_cv_lib_$ac_lib_var=no"
14477 LIBS="$ac_save_LIBS"
14480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14481 echo "$ac_t""yes" 1>&6
14484 echo "$ac_t""no" 1>&6
14488 if test $have_iodbc = yes ; then
14489 ol_link_sql="-liodbc"
14491 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14492 echo "configure:14493: checking for SQLDriverConnect in -lodbc" >&5
14493 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14497 ac_save_LIBS="$LIBS"
14498 LIBS="-lodbc $LIBS"
14499 cat > conftest.$ac_ext <<EOF
14500 #line 14501 "configure"
14501 #include "confdefs.h"
14502 /* Override any gcc2 internal prototype to avoid an error. */
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14505 char SQLDriverConnect();
14511 if { (eval echo configure:14512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14513 eval "ac_cv_lib_$ac_lib_var=yes"
14515 echo "configure: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14518 eval "ac_cv_lib_$ac_lib_var=no"
14521 LIBS="$ac_save_LIBS"
14524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14525 echo "$ac_t""yes" 1>&6
14528 echo "$ac_t""no" 1>&6
14532 if test $have_odbc = yes ; then
14533 ol_link_sql="-lodbc"
14537 if test $ol_link_sql != no ; then
14538 SLAPD_SQL_LIBS="$ol_link_sql"
14540 elif test $ol_enable_sql != auto ; then
14541 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14546 for ac_hdr in termcap.h ncurses.h
14548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14550 echo "configure:14551: checking for $ac_hdr" >&5
14551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14560 { (eval echo configure:14561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14562 if test -z "$ac_err"; then
14564 eval "ac_cv_header_$ac_safe=yes"
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14570 eval "ac_cv_header_$ac_safe=no"
14574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14575 echo "$ac_t""yes" 1>&6
14576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14577 cat >> confdefs.h <<EOF
14578 #define $ac_tr_hdr 1
14582 echo "$ac_t""no" 1>&6
14587 if test $ol_link_termcap = no ; then
14588 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14589 echo "configure:14590: checking for tputs in -ltermcap" >&5
14590 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14592 echo $ac_n "(cached) $ac_c" 1>&6
14594 ac_save_LIBS="$LIBS"
14595 LIBS="-ltermcap $LIBS"
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14599 /* Override any gcc2 internal prototype to avoid an error. */
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14610 eval "ac_cv_lib_$ac_lib_var=yes"
14612 echo "configure: failed program was:" >&5
14613 cat conftest.$ac_ext >&5
14615 eval "ac_cv_lib_$ac_lib_var=no"
14618 LIBS="$ac_save_LIBS"
14621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14622 echo "$ac_t""yes" 1>&6
14625 echo "$ac_t""no" 1>&6
14629 if test $have_termcap = yes ; then
14630 cat >> confdefs.h <<\EOF
14631 #define HAVE_TERMCAP 1
14634 ol_link_termcap=yes
14635 TERMCAP_LIBS=-ltermcap
14639 if test $ol_link_termcap = no ; then
14640 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14641 echo "configure:14642: checking for initscr in -lncurses" >&5
14642 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14643 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14644 echo $ac_n "(cached) $ac_c" 1>&6
14646 ac_save_LIBS="$LIBS"
14647 LIBS="-lncurses $LIBS"
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* Override any gcc2 internal prototype to avoid an error. */
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14662 eval "ac_cv_lib_$ac_lib_var=yes"
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14667 eval "ac_cv_lib_$ac_lib_var=no"
14670 LIBS="$ac_save_LIBS"
14673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14674 echo "$ac_t""yes" 1>&6
14677 echo "$ac_t""no" 1>&6
14681 if test $have_ncurses = yes ; then
14682 cat >> confdefs.h <<\EOF
14683 #define HAVE_NCURSES 1
14686 ol_link_termcap=yes
14687 TERMCAP_LIBS=-lncurses
14691 if test $ol_link_termcap = no ; then
14692 cat >> confdefs.h <<\EOF
14693 #define NO_TERMCAP 1
14701 if test $ol_with_cyrus_sasl != no ; then
14702 for ac_hdr in sasl.h
14704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14706 echo "configure:14707: checking for $ac_hdr" >&5
14707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14708 echo $ac_n "(cached) $ac_c" 1>&6
14710 cat > conftest.$ac_ext <<EOF
14711 #line 14712 "configure"
14712 #include "confdefs.h"
14715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14716 { (eval echo configure:14717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14718 if test -z "$ac_err"; then
14720 eval "ac_cv_header_$ac_safe=yes"
14723 echo "configure: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14726 eval "ac_cv_header_$ac_safe=no"
14730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14731 echo "$ac_t""yes" 1>&6
14732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14733 cat >> confdefs.h <<EOF
14734 #define $ac_tr_hdr 1
14738 echo "$ac_t""no" 1>&6
14743 if test $ac_cv_header_sasl_h = yes ; then
14744 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14745 echo "configure:14746: checking for sasl_client_init in -lsasl" >&5
14746 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14747 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14748 echo $ac_n "(cached) $ac_c" 1>&6
14750 ac_save_LIBS="$LIBS"
14751 LIBS="-lsasl $LIBS"
14752 cat > conftest.$ac_ext <<EOF
14753 #line 14754 "configure"
14754 #include "confdefs.h"
14755 /* Override any gcc2 internal prototype to avoid an error. */
14756 /* We use char because int might match the return type of a gcc2
14757 builtin and then its argument prototype would still apply. */
14758 char sasl_client_init();
14764 if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14766 eval "ac_cv_lib_$ac_lib_var=yes"
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14771 eval "ac_cv_lib_$ac_lib_var=no"
14774 LIBS="$ac_save_LIBS"
14777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14778 echo "$ac_t""yes" 1>&6
14779 have_cyrus_sasl=yes
14781 echo "$ac_t""no" 1>&6
14786 if test $have_cyrus_sasl != no ; then
14788 cat >> confdefs.h <<\EOF
14789 #define HAVE_CYRUS_SASL 1
14792 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
14793 echo "configure:14794: checking Cyrus SASL library version" >&5
14794 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
14798 cat > conftest.$ac_ext <<EOF
14799 #line 14800 "configure"
14800 #include "confdefs.h"
14802 #ifdef HAVE_SASL_SASL_H
14803 #include <sasl/sasl.h>
14808 /* require 1.5.x, unable to use 2.x */
14809 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
14810 char *__sasl_compat = "1.5.x okay";
14814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14815 egrep "__sasl_compat" >/dev/null 2>&1; then
14817 ol_cv_sasl_compat=yes
14820 ol_cv_sasl_compat=no
14826 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
14828 if test $ol_cv_sasl_compat = no ; then
14830 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
14836 if test $ol_link_sasl = no ; then
14837 if test $ol_with_cyrus_sasl != auto ; then
14838 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14840 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14841 echo "configure: warning: SASL authentication not supported!" 1>&2
14842 if test $ol_link_tls = no ; then
14843 echo "configure: warning: Strong authentication not supported!" 1>&2
14847 elif test $ol_enable_spasswd != no ; then
14848 ol_link_spasswd=yes
14852 echo "configure: warning: SASL authentication not supported!" 1>&2
14853 if test $ol_link_tls = no ; then
14854 echo "configure: warning: Strong authentication not supported!" 1>&2
14858 if test $cross_compiling != yes ; then
14860 if test -r /dev/urandom ; then
14861 dev="/dev/urandom";
14862 elif test -r /idev/urandom ; then
14863 dev="/idev/urandom";
14864 elif test -r /dev/srandom ; then
14865 dev="/dev/srandom";
14866 elif test -r /dev/random ; then
14868 elif test -r /idev/random ; then
14869 dev="/idev/random";
14872 if test $dev != no ; then
14873 cat >> confdefs.h <<EOF
14874 #define URANDOM_DEVICE "$dev"
14881 if test $ol_with_fetch != no ; then
14883 LIBS="-lfetch -lcom_err $LIBS"
14884 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14885 echo "configure:14886: checking fetch(3) library" >&5
14886 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14887 echo $ac_n "(cached) $ac_c" 1>&6
14890 cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14894 #include <sys/param.h>
14898 struct url *u = fetchParseURL("file:///");
14901 if { (eval echo configure:14902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 ol_cv_lib_fetch=yes
14905 echo "configure: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14913 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14915 if test $ol_cv_lib_fetch != no ; then
14916 ol_link_fetch="-lfetch -lcom_err"
14917 cat >> confdefs.h <<\EOF
14918 #define HAVE_FETCH 1
14924 if test $ol_cv_lib_fetch != no ; then
14925 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14926 ol_link_fetch=freebsd
14928 elif test $ol_with_fetch != auto ; then
14929 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14933 ol_link_readline=no
14934 if test $ol_with_readline != no ; then
14935 for ac_hdr in readline/readline.h readline/history.h
14937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14939 echo "configure:14940: checking for $ac_hdr" >&5
14940 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14941 echo $ac_n "(cached) $ac_c" 1>&6
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14949 { (eval echo configure:14950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14951 if test -z "$ac_err"; then
14953 eval "ac_cv_header_$ac_safe=yes"
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 eval "ac_cv_header_$ac_safe=no"
14963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14966 cat >> confdefs.h <<EOF
14967 #define $ac_tr_hdr 1
14971 echo "$ac_t""no" 1>&6
14976 if test $ac_cv_header_readline_readline_h = yes ; then
14978 LIBS="$TERMCAP_LIBS $LIBS"
14979 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14980 echo "configure:14981: checking for readline in -lreadline" >&5
14981 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14982 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14983 echo $ac_n "(cached) $ac_c" 1>&6
14985 ac_save_LIBS="$LIBS"
14986 LIBS="-lreadline $LIBS"
14987 cat > conftest.$ac_ext <<EOF
14988 #line 14989 "configure"
14989 #include "confdefs.h"
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15001 eval "ac_cv_lib_$ac_lib_var=yes"
15003 echo "configure: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
15006 eval "ac_cv_lib_$ac_lib_var=no"
15009 LIBS="$ac_save_LIBS"
15012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15013 echo "$ac_t""yes" 1>&6
15016 echo "$ac_t""no" 1>&6
15022 if test $have_readline = yes ; then
15023 ol_with_readline=found
15024 ol_link_readline=yes
15026 READLINE_LIBS="-lreadline"
15031 if test $ol_link_readline = yes ; then
15032 cat >> confdefs.h <<\EOF
15033 #define HAVE_READLINE 1
15039 if test $ol_enable_crypt != no ; then
15040 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15041 echo "configure:15042: checking for crypt" >&5
15042 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15043 echo $ac_n "(cached) $ac_c" 1>&6
15045 cat > conftest.$ac_ext <<EOF
15046 #line 15047 "configure"
15047 #include "confdefs.h"
15048 /* System header to define __stub macros and hopefully few prototypes,
15049 which can conflict with char crypt(); below. */
15050 #include <assert.h>
15051 /* Override any gcc2 internal prototype to avoid an error. */
15052 /* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15059 /* The GNU C library defines this for functions which it implements
15060 to always fail with ENOSYS. Some functions are actually named
15061 something starting with __ and the normal name is an alias. */
15062 #if defined (__stub_crypt) || defined (__stub___crypt)
15070 if { (eval echo configure:15071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15072 eval "ac_cv_func_crypt=yes"
15074 echo "configure: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15077 eval "ac_cv_func_crypt=no"
15082 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15083 echo "$ac_t""yes" 1>&6
15086 echo "$ac_t""no" 1>&6
15088 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15089 echo "configure:15090: checking for crypt in -lcrypt" >&5
15090 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15091 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15094 ac_save_LIBS="$LIBS"
15095 LIBS="-lcrypt $LIBS"
15096 cat > conftest.$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15099 /* Override any gcc2 internal prototype to avoid an error. */
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15108 if { (eval echo configure:15109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15110 eval "ac_cv_lib_$ac_lib_var=yes"
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15115 eval "ac_cv_lib_$ac_lib_var=no"
15118 LIBS="$ac_save_LIBS"
15121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15122 echo "$ac_t""yes" 1>&6
15123 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15126 echo "$ac_t""no" 1>&6
15133 if test $have_crypt = yes ; then
15134 cat >> confdefs.h <<\EOF
15135 #define HAVE_CRYPT 1
15139 echo "configure: warning: could not find crypt" 1>&2
15140 if test $ol_enable_crypt = yes ; then
15141 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15144 echo "configure: warning: disabling crypt support" 1>&2
15149 if test $ol_enable_proctitle != no ; then
15150 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15151 echo "configure:15152: checking for setproctitle" >&5
15152 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15153 echo $ac_n "(cached) $ac_c" 1>&6
15155 cat > conftest.$ac_ext <<EOF
15156 #line 15157 "configure"
15157 #include "confdefs.h"
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char setproctitle(); below. */
15160 #include <assert.h>
15161 /* Override any gcc2 internal prototype to avoid an error. */
15162 /* We use char because int might match the return type of a gcc2
15163 builtin and then its argument prototype would still apply. */
15164 char setproctitle();
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15182 eval "ac_cv_func_setproctitle=yes"
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15187 eval "ac_cv_func_setproctitle=no"
15192 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 have_setproctitle=yes
15196 echo "$ac_t""no" 1>&6
15198 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15199 echo "configure:15200: checking for setproctitle in -lutil" >&5
15200 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15202 echo $ac_n "(cached) $ac_c" 1>&6
15204 ac_save_LIBS="$LIBS"
15205 LIBS="-lutil $LIBS"
15206 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure"
15208 #include "confdefs.h"
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15212 char setproctitle();
15218 if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15220 eval "ac_cv_lib_$ac_lib_var=yes"
15222 echo "configure: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15225 eval "ac_cv_lib_$ac_lib_var=no"
15228 LIBS="$ac_save_LIBS"
15231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15232 echo "$ac_t""yes" 1>&6
15233 have_setproctitle=yes
15234 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15236 echo "$ac_t""no" 1>&6
15237 have_setproctitle=no
15238 LIBOBJS="$LIBOBJS setproctitle.o"
15239 LIBSRCS="$LIBSRCS setproctitle.c"
15245 if test $have_setproctitle = yes ; then
15246 cat >> confdefs.h <<\EOF
15247 #define HAVE_SETPROCTITLE 1
15253 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15254 echo "configure:15255: checking for ANSI C header files" >&5
15255 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15256 echo $ac_n "(cached) $ac_c" 1>&6
15258 cat > conftest.$ac_ext <<EOF
15259 #line 15260 "configure"
15260 #include "confdefs.h"
15261 #include <stdlib.h>
15262 #include <stdarg.h>
15263 #include <string.h>
15266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15267 { (eval echo configure:15268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15269 if test -z "$ac_err"; then
15271 ac_cv_header_stdc=yes
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15277 ac_cv_header_stdc=no
15281 if test $ac_cv_header_stdc = yes; then
15282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15283 cat > conftest.$ac_ext <<EOF
15284 #line 15285 "configure"
15285 #include "confdefs.h"
15286 #include <string.h>
15288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15289 egrep "memchr" >/dev/null 2>&1; then
15293 ac_cv_header_stdc=no
15299 if test $ac_cv_header_stdc = yes; then
15300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15301 cat > conftest.$ac_ext <<EOF
15302 #line 15303 "configure"
15303 #include "confdefs.h"
15304 #include <stdlib.h>
15306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15307 egrep "free" >/dev/null 2>&1; then
15311 ac_cv_header_stdc=no
15317 if test $ac_cv_header_stdc = yes; then
15318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15319 if test "$cross_compiling" = yes; then
15322 cat > conftest.$ac_ext <<EOF
15323 #line 15324 "configure"
15324 #include "confdefs.h"
15326 #if ((' ' & 0x0FF) == 0x020)
15327 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15328 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15330 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15331 || ('j' <= (c) && (c) <= 'r') \
15332 || ('s' <= (c) && (c) <= 'z'))
15333 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15336 int main () { int i; for (i = 0; i < 256; i++)
15337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15341 if { (eval echo configure:15342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15345 echo "configure: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15348 ac_cv_header_stdc=no
15356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15357 if test $ac_cv_header_stdc = yes; then
15358 cat >> confdefs.h <<\EOF
15359 #define STDC_HEADERS 1
15364 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15365 echo "configure:15366: checking for mode_t" >&5
15366 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 #include <sys/types.h>
15374 #include <stdlib.h>
15375 #include <stddef.h>
15379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15380 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15382 eval "ac_cv_type_mode_t=yes"
15385 eval "ac_cv_type_mode_t=no"
15390 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15391 echo "$ac_t""yes" 1>&6
15393 echo "$ac_t""no" 1>&6
15394 cat >> confdefs.h <<EOF
15400 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15401 echo "configure:15402: checking for off_t" >&5
15402 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15403 echo $ac_n "(cached) $ac_c" 1>&6
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 #include <sys/types.h>
15410 #include <stdlib.h>
15411 #include <stddef.h>
15415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15418 eval "ac_cv_type_off_t=yes"
15421 eval "ac_cv_type_off_t=no"
15426 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15427 echo "$ac_t""yes" 1>&6
15429 echo "$ac_t""no" 1>&6
15430 cat >> confdefs.h <<EOF
15436 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15437 echo "configure:15438: checking for pid_t" >&5
15438 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15439 echo $ac_n "(cached) $ac_c" 1>&6
15441 cat > conftest.$ac_ext <<EOF
15442 #line 15443 "configure"
15443 #include "confdefs.h"
15444 #include <sys/types.h>
15446 #include <stdlib.h>
15447 #include <stddef.h>
15451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15452 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15454 eval "ac_cv_type_pid_t=yes"
15457 eval "ac_cv_type_pid_t=no"
15462 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15463 echo "$ac_t""yes" 1>&6
15465 echo "$ac_t""no" 1>&6
15466 cat >> confdefs.h <<EOF
15472 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15473 echo "configure:15474: checking for ptrdiff_t" >&5
15474 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15475 echo $ac_n "(cached) $ac_c" 1>&6
15477 cat > conftest.$ac_ext <<EOF
15478 #line 15479 "configure"
15479 #include "confdefs.h"
15480 #include <stddef.h>
15485 if { (eval echo configure:15486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15487 am_cv_type_ptrdiff_t=yes
15489 echo "configure: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15492 am_cv_type_ptrdiff_t=no
15497 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15498 if test $am_cv_type_ptrdiff_t = yes; then
15499 cat >> confdefs.h <<\EOF
15500 #define HAVE_PTRDIFF_T 1
15505 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15506 echo "configure:15507: checking return type of signal handlers" >&5
15507 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
15510 cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513 #include <sys/types.h>
15514 #include <signal.h>
15519 extern "C" void (*signal (int, void (*)(int)))(int);
15521 void (*signal ()) ();
15528 if { (eval echo configure:15529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15530 ac_cv_type_signal=void
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15535 ac_cv_type_signal=int
15540 echo "$ac_t""$ac_cv_type_signal" 1>&6
15541 cat >> confdefs.h <<EOF
15542 #define RETSIGTYPE $ac_cv_type_signal
15546 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15547 echo "configure:15548: checking for size_t" >&5
15548 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15549 echo $ac_n "(cached) $ac_c" 1>&6
15551 cat > conftest.$ac_ext <<EOF
15552 #line 15553 "configure"
15553 #include "confdefs.h"
15554 #include <sys/types.h>
15556 #include <stdlib.h>
15557 #include <stddef.h>
15561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15562 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15564 eval "ac_cv_type_size_t=yes"
15567 eval "ac_cv_type_size_t=no"
15572 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15575 echo "$ac_t""no" 1>&6
15576 cat >> confdefs.h <<EOF
15577 #define size_t unsigned
15583 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15584 echo "configure:15585: checking for ssize_t" >&5
15585 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15586 echo $ac_n "(cached) $ac_c" 1>&6
15588 cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15591 #include <sys/types.h>
15593 #include <stdlib.h>
15594 #include <stddef.h>
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15601 eval "ac_cv_type_ssize_t=yes"
15604 eval "ac_cv_type_ssize_t=no"
15609 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15610 echo "$ac_t""yes" 1>&6
15612 echo "$ac_t""no" 1>&6
15613 cat >> confdefs.h <<EOF
15614 #define ssize_t signed int
15619 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15620 echo "configure:15621: checking for caddr_t" >&5
15621 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15624 cat > conftest.$ac_ext <<EOF
15625 #line 15626 "configure"
15626 #include "confdefs.h"
15627 #include <sys/types.h>
15629 #include <stdlib.h>
15630 #include <stddef.h>
15634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15635 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15637 eval "ac_cv_type_caddr_t=yes"
15640 eval "ac_cv_type_caddr_t=no"
15645 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15646 echo "$ac_t""yes" 1>&6
15648 echo "$ac_t""no" 1>&6
15649 cat >> confdefs.h <<EOF
15650 #define caddr_t char *
15656 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15657 echo "configure:15658: checking for socklen_t" >&5
15658 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15661 cat > conftest.$ac_ext <<EOF
15662 #line 15663 "configure"
15663 #include "confdefs.h"
15665 #ifdef HAVE_SYS_TYPES_H
15666 #include <sys/types.h>
15668 #ifdef HAVE_SYS_SOCKET_H
15669 #include <sys/socket.h>
15676 if { (eval echo configure:15677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15678 ol_cv_type_socklen_t=yes
15680 echo "configure: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15683 ol_cv_type_socklen_t=no
15688 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15689 if test $ol_cv_type_socklen_t = no; then
15690 cat >> confdefs.h <<\EOF
15691 #define socklen_t int
15696 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15697 echo "configure:15698: checking for member st_blksize in aggregate type struct stat" >&5
15698 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15699 echo $ac_n "(cached) $ac_c" 1>&6
15701 cat > conftest.$ac_ext <<EOF
15702 #line 15703 "configure"
15703 #include "confdefs.h"
15704 #include <sys/types.h>
15705 #include <sys/stat.h>
15707 struct stat foo; foo.st_blksize;
15710 if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15712 ac_cv_c_struct_member_st_blksize=yes
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 ac_cv_c_struct_member_st_blksize=no
15722 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15723 st_blksize="$ac_cv_c_struct_member_st_blksize"
15724 if test $ac_cv_c_struct_member_st_blksize = yes; then
15725 cat >> confdefs.h <<\EOF
15726 #define HAVE_ST_BLKSIZE 1
15731 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15732 echo "configure:15733: checking whether time.h and sys/time.h may both be included" >&5
15733 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
15734 echo $ac_n "(cached) $ac_c" 1>&6
15736 cat > conftest.$ac_ext <<EOF
15737 #line 15738 "configure"
15738 #include "confdefs.h"
15739 #include <sys/types.h>
15740 #include <sys/time.h>
15746 if { (eval echo configure:15747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15748 ac_cv_header_time=yes
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15753 ac_cv_header_time=no
15758 echo "$ac_t""$ac_cv_header_time" 1>&6
15759 if test $ac_cv_header_time = yes; then
15760 cat >> confdefs.h <<\EOF
15761 #define TIME_WITH_SYS_TIME 1
15766 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15767 echo "configure:15768: checking whether struct tm is in sys/time.h or time.h" >&5
15768 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15769 echo $ac_n "(cached) $ac_c" 1>&6
15771 cat > conftest.$ac_ext <<EOF
15772 #line 15773 "configure"
15773 #include "confdefs.h"
15774 #include <sys/types.h>
15777 struct tm *tp; tp->tm_sec;
15780 if { (eval echo configure:15781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15782 ac_cv_struct_tm=time.h
15784 echo "configure: failed program was:" >&5
15785 cat conftest.$ac_ext >&5
15787 ac_cv_struct_tm=sys/time.h
15792 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15793 if test $ac_cv_struct_tm = sys/time.h; then
15794 cat >> confdefs.h <<\EOF
15795 #define TM_IN_SYS_TIME 1
15800 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15801 echo "configure:15802: checking for uid_t in sys/types.h" >&5
15802 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15803 echo $ac_n "(cached) $ac_c" 1>&6
15805 cat > conftest.$ac_ext <<EOF
15806 #line 15807 "configure"
15807 #include "confdefs.h"
15808 #include <sys/types.h>
15810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15811 egrep "uid_t" >/dev/null 2>&1; then
15813 ac_cv_type_uid_t=yes
15816 ac_cv_type_uid_t=no
15822 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15823 if test $ac_cv_type_uid_t = no; then
15824 cat >> confdefs.h <<\EOF
15828 cat >> confdefs.h <<\EOF
15834 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15835 echo "configure:15836: checking for sig_atomic_t" >&5
15836 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15837 echo $ac_n "(cached) $ac_c" 1>&6
15839 cat > conftest.$ac_ext <<EOF
15840 #line 15841 "configure"
15841 #include "confdefs.h"
15842 #include <signal.h>
15844 sig_atomic_t atomic;
15847 if { (eval echo configure:15848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15849 ol_cv_type_sig_atomic_t=yes
15851 echo "configure: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15854 ol_cv_type_sig_atomic_t=no
15859 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15860 if test $ol_cv_type_sig_atomic_t = no; then
15861 cat >> confdefs.h <<\EOF
15862 #define sig_atomic_t int
15869 # test for pw_gecos in struct passwd
15870 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15871 echo "configure:15872: checking struct passwd for pw_gecos" >&5
15872 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15873 echo $ac_n "(cached) $ac_c" 1>&6
15876 cat > conftest.$ac_ext <<EOF
15877 #line 15878 "configure"
15878 #include "confdefs.h"
15883 pwd.pw_gecos = pwd.pw_name;
15887 if { (eval echo configure:15888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15889 ol_cv_struct_passwd_pw_gecos=yes
15891 echo "configure: failed program was:" >&5
15892 cat conftest.$ac_ext >&5
15894 ol_cv_struct_passwd_pw_gecos=no
15899 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15900 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15901 cat >> confdefs.h <<\EOF
15902 #define HAVE_PW_GECOS 1
15907 # test for pw_passwd in struct passwd
15908 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15909 echo "configure:15910: checking struct passwd for pw_passwd" >&5
15910 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15911 echo $ac_n "(cached) $ac_c" 1>&6
15914 cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure"
15916 #include "confdefs.h"
15921 pwd.pw_passwd = pwd.pw_name;
15925 if { (eval echo configure:15926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15927 ol_cv_struct_passwd_pw_passwd=yes
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15932 ol_cv_struct_passwd_pw_passwd=no
15937 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15938 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15939 cat >> confdefs.h <<\EOF
15940 #define HAVE_PW_PASSWD 1
15946 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15947 echo "configure:15948: checking if toupper() requires islower()" >&5
15948 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15949 echo $ac_n "(cached) $ac_c" 1>&6
15952 if test "$cross_compiling" = yes; then
15953 ol_cv_c_upper_lower=safe
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15957 "configure"
15957 #include "confdefs.h"
15962 if ('C' == toupper('C'))
15968 if { (eval echo configure:15969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15970 ol_cv_c_upper_lower=no
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15975 ol_cv_c_upper_lower=yes
15982 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15983 if test $ol_cv_c_upper_lower != no ; then
15984 cat >> confdefs.h <<\EOF
15985 #define C_UPPER_LOWER 1
15990 echo $ac_n "checking for working const""... $ac_c" 1>&6
15991 echo "configure:15992: checking for working const" >&5
15992 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15993 echo $ac_n "(cached) $ac_c" 1>&6
15995 cat > conftest.$ac_ext <<EOF
15996 #line 15997 "configure"
15997 #include "confdefs.h"
16001 /* Ultrix mips cc rejects this. */
16002 typedef int charset[2]; const charset x;
16003 /* SunOS 4.1.1 cc rejects this. */
16004 char const *const *ccp;
16006 /* NEC SVR4.0.2 mips cc rejects this. */
16007 struct point {int x, y;};
16008 static struct point const zero = {0,0};
16009 /* AIX XL C 1.02.0.0 rejects this.
16010 It does not let you subtract one const X* pointer from another in an arm
16011 of an if-expression whose if-part is not a constant expression */
16012 const char *g = "string";
16013 ccp = &g + (g ? g-g : 0);
16014 /* HPUX 7.0 cc rejects these. */
16017 ccp = (char const *const *) p;
16018 { /* SCO 3.2v4 cc rejects this. */
16020 char const *s = 0 ? (char *) 0 : (char const *) 0;
16024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16025 int x[] = {25, 17};
16026 const int *foo = &x[0];
16029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16030 typedef const int *iptr;
16034 { /* AIX XL C 1.02.0.0 rejects this saying
16035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16036 struct s { int j; const int *ap[3]; };
16037 struct s *b; b->j = 5;
16039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16040 const int foo = 10;
16045 if { (eval echo configure:16046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16049 echo "configure: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16057 echo "$ac_t""$ac_cv_c_const" 1>&6
16058 if test $ac_cv_c_const = no; then
16059 cat >> confdefs.h <<\EOF
16065 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16066 echo "configure:16067: checking if compiler understands volatile" >&5
16067 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16068 echo $ac_n "(cached) $ac_c" 1>&6
16070 cat > conftest.$ac_ext <<EOF
16071 #line 16072 "configure"
16072 #include "confdefs.h"
16075 volatile int a; int * volatile b = x ? &y : &z;
16076 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16080 if { (eval echo configure:16081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16082 ol_cv_c_volatile=yes
16084 echo "configure: failed program was:" >&5
16085 cat conftest.$ac_ext >&5
16087 ol_cv_c_volatile=no
16092 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16093 if test $ol_cv_c_volatile = yes; then
16096 cat >> confdefs.h <<\EOF
16103 if test $cross_compiling = yes ; then
16104 cat >> confdefs.h <<\EOF
16105 #define CROSS_COMPILING 1
16109 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16110 echo "configure:16111: checking whether byte ordering is bigendian" >&5
16111 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16112 echo $ac_n "(cached) $ac_c" 1>&6
16114 ac_cv_c_bigendian=unknown
16115 # See if sys/param.h defines the BYTE_ORDER macro.
16116 cat > conftest.$ac_ext <<EOF
16117 #line 16118 "configure"
16118 #include "confdefs.h"
16119 #include <sys/types.h>
16120 #include <sys/param.h>
16123 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16124 bogus endian macros
16128 if { (eval echo configure:16129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16130 # It does; now see whether it defined to BIG_ENDIAN or not.
16131 cat > conftest.$ac_ext <<EOF
16132 #line 16133 "configure"
16133 #include "confdefs.h"
16134 #include <sys/types.h>
16135 #include <sys/param.h>
16138 #if BYTE_ORDER != BIG_ENDIAN
16143 if { (eval echo configure:16144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 ac_cv_c_bigendian=yes
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16150 ac_cv_c_bigendian=no
16154 echo "configure: failed program was:" >&5
16155 cat conftest.$ac_ext >&5
16158 if test $ac_cv_c_bigendian = unknown; then
16159 if test "$cross_compiling" = yes; then
16160 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16162 cat > conftest.$ac_ext <<EOF
16163 #line 16164 "configure"
16164 #include "confdefs.h"
16166 /* Are we little or big endian? From Harbison&Steele. */
16170 char c[sizeof (long)];
16173 exit (u.c[sizeof (long) - 1] == 1);
16176 if { (eval echo configure:16177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16178 ac_cv_c_bigendian=no
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16183 ac_cv_c_bigendian=yes
16191 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16192 if test $ac_cv_c_bigendian = yes; then
16193 cat >> confdefs.h <<\EOF
16194 #define WORDS_BIGENDIAN 1
16201 echo $ac_n "checking size of short""... $ac_c" 1>&6
16202 echo "configure:16203: checking size of short" >&5
16203 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16204 echo $ac_n "(cached) $ac_c" 1>&6
16206 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16207 cat > conftest.$ac_ext <<EOF
16208 #line 16209 "configure"
16209 #include "confdefs.h"
16210 #include "confdefs.h"
16211 #include <sys/types.h>
16215 switch (0) case 0: case (sizeof (short) == $ac_size):;
16218 if { (eval echo configure:16219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16220 ac_cv_sizeof_short=$ac_size
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16226 if test x$ac_cv_sizeof_short != x ; then break; fi
16231 if test x$ac_cv_sizeof_short = x ; then
16232 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16234 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16235 cat >> confdefs.h <<EOF
16236 #define SIZEOF_SHORT $ac_cv_sizeof_short
16240 echo $ac_n "checking size of int""... $ac_c" 1>&6
16241 echo "configure:16242: checking size of int" >&5
16242 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16243 echo $ac_n "(cached) $ac_c" 1>&6
16245 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16246 cat > conftest.$ac_ext <<EOF
16247 #line 16248 "configure"
16248 #include "confdefs.h"
16249 #include "confdefs.h"
16250 #include <sys/types.h>
16254 switch (0) case 0: case (sizeof (int) == $ac_size):;
16257 if { (eval echo configure:16258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16259 ac_cv_sizeof_int=$ac_size
16261 echo "configure: failed program was:" >&5
16262 cat conftest.$ac_ext >&5
16265 if test x$ac_cv_sizeof_int != x ; then break; fi
16270 if test x$ac_cv_sizeof_int = x ; then
16271 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16273 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16274 cat >> confdefs.h <<EOF
16275 #define SIZEOF_INT $ac_cv_sizeof_int
16279 echo $ac_n "checking size of long""... $ac_c" 1>&6
16280 echo "configure:16281: checking size of long" >&5
16281 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16282 echo $ac_n "(cached) $ac_c" 1>&6
16284 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16285 cat > conftest.$ac_ext <<EOF
16286 #line 16287 "configure"
16287 #include "confdefs.h"
16288 #include "confdefs.h"
16289 #include <sys/types.h>
16293 switch (0) case 0: case (sizeof (long) == $ac_size):;
16296 if { (eval echo configure:16297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16298 ac_cv_sizeof_long=$ac_size
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16304 if test x$ac_cv_sizeof_long != x ; then break; fi
16309 if test x$ac_cv_sizeof_long = x ; then
16310 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16312 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16313 cat >> confdefs.h <<EOF
16314 #define SIZEOF_LONG $ac_cv_sizeof_long
16319 if test "$ac_cv_sizeof_int" -lt 4 ; then
16320 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16322 cat >> confdefs.h <<\EOF
16323 #define LBER_INT_T long
16327 cat >> confdefs.h <<\EOF
16328 #define LBER_INT_T int
16333 cat >> confdefs.h <<\EOF
16334 #define LBER_LEN_T long
16337 cat >> confdefs.h <<\EOF
16338 #define LBER_SOCKET_T int
16341 cat >> confdefs.h <<\EOF
16342 #define LBER_TAG_T long
16346 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16347 echo "configure:16348: checking for 8-bit clean memcmp" >&5
16348 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16349 echo $ac_n "(cached) $ac_c" 1>&6
16351 if test "$cross_compiling" = yes; then
16352 ac_cv_func_memcmp_clean=no
16354 cat > conftest.$ac_ext <<EOF
16355 #line 16356 "configure"
16356 #include "confdefs.h"
16360 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16361 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16365 if { (eval echo configure:16366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16367 ac_cv_func_memcmp_clean=yes
16369 echo "configure: failed program was:" >&5
16370 cat conftest.$ac_ext >&5
16372 ac_cv_func_memcmp_clean=no
16379 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16380 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16382 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16383 echo "configure:16384: checking for strftime" >&5
16384 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16387 cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char strftime(); below. */
16392 #include <assert.h>
16393 /* Override any gcc2 internal prototype to avoid an error. */
16394 /* We use char because int might match the return type of a gcc2
16395 builtin and then its argument prototype would still apply. */
16401 /* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404 #if defined (__stub_strftime) || defined (__stub___strftime)
16412 if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16414 eval "ac_cv_func_strftime=yes"
16416 echo "configure: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16419 eval "ac_cv_func_strftime=no"
16424 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16425 echo "$ac_t""yes" 1>&6
16426 cat >> confdefs.h <<\EOF
16427 #define HAVE_STRFTIME 1
16431 echo "$ac_t""no" 1>&6
16432 # strftime is in -lintl on SCO UNIX.
16433 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16434 echo "configure:16435: checking for strftime in -lintl" >&5
16435 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16436 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
16439 ac_save_LIBS="$LIBS"
16440 LIBS="-lintl $LIBS"
16441 cat > conftest.$ac_ext <<EOF
16442 #line 16443 "configure"
16443 #include "confdefs.h"
16444 /* Override any gcc2 internal prototype to avoid an error. */
16445 /* We use char because int might match the return type of a gcc2
16446 builtin and then its argument prototype would still apply. */
16453 if { (eval echo configure:16454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16455 eval "ac_cv_lib_$ac_lib_var=yes"
16457 echo "configure: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16460 eval "ac_cv_lib_$ac_lib_var=no"
16463 LIBS="$ac_save_LIBS"
16466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16467 echo "$ac_t""yes" 1>&6
16468 cat >> confdefs.h <<\EOF
16469 #define HAVE_STRFTIME 1
16472 LIBS="-lintl $LIBS"
16474 echo "$ac_t""no" 1>&6
16480 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16481 echo "configure:16482: checking for inet_aton()" >&5
16482 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16483 echo $ac_n "(cached) $ac_c" 1>&6
16485 cat > conftest.$ac_ext <<EOF
16486 #line 16487 "configure"
16487 #include "confdefs.h"
16489 #ifdef HAVE_SYS_TYPES_H
16490 # include <sys/types.h>
16492 #ifdef HAVE_SYS_SOCKET_H
16493 # include <sys/socket.h>
16494 # ifdef HAVE_SYS_SELECT_H
16495 # include <sys/select.h>
16497 # include <netinet/in.h>
16498 # ifdef HAVE_ARPA_INET_H
16499 # include <arpa/inet.h>
16505 int rc = inet_aton( "255.255.255.255", &in );
16508 if { (eval echo configure:16509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16510 ol_cv_func_inet_aton=yes
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16515 ol_cv_func_inet_aton=no
16520 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16521 if test $ol_cv_func_inet_aton != no; then
16522 cat >> confdefs.h <<\EOF
16523 #define HAVE_INET_ATON 1
16529 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16530 echo "configure:16531: checking for _spawnlp" >&5
16531 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16532 echo $ac_n "(cached) $ac_c" 1>&6
16534 cat > conftest.$ac_ext <<EOF
16535 #line 16536 "configure"
16536 #include "confdefs.h"
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char _spawnlp(); below. */
16539 #include <assert.h>
16540 /* Override any gcc2 internal prototype to avoid an error. */
16541 /* We use char because int might match the return type of a gcc2
16542 builtin and then its argument prototype would still apply. */
16548 /* The GNU C library defines this for functions which it implements
16549 to always fail with ENOSYS. Some functions are actually named
16550 something starting with __ and the normal name is an alias. */
16551 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16559 if { (eval echo configure:16560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16561 eval "ac_cv_func__spawnlp=yes"
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16566 eval "ac_cv_func__spawnlp=no"
16571 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16572 echo "$ac_t""yes" 1>&6
16573 cat >> confdefs.h <<\EOF
16574 #define HAVE_SPAWNLP 1
16578 echo "$ac_t""no" 1>&6
16582 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16583 echo "configure:16584: checking for _snprintf" >&5
16584 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16585 echo $ac_n "(cached) $ac_c" 1>&6
16587 cat > conftest.$ac_ext <<EOF
16588 #line 16589 "configure"
16589 #include "confdefs.h"
16590 /* System header to define __stub macros and hopefully few prototypes,
16591 which can conflict with char _snprintf(); below. */
16592 #include <assert.h>
16593 /* Override any gcc2 internal prototype to avoid an error. */
16594 /* We use char because int might match the return type of a gcc2
16595 builtin and then its argument prototype would still apply. */
16601 /* The GNU C library defines this for functions which it implements
16602 to always fail with ENOSYS. Some functions are actually named
16603 something starting with __ and the normal name is an alias. */
16604 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16612 if { (eval echo configure:16613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16614 eval "ac_cv_func__snprintf=yes"
16616 echo "configure: failed program was:" >&5
16617 cat conftest.$ac_ext >&5
16619 eval "ac_cv_func__snprintf=no"
16624 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16625 echo "$ac_t""yes" 1>&6
16626 ac_cv_func_snprintf=yes
16627 cat >> confdefs.h <<\EOF
16628 #define snprintf _snprintf
16633 echo "$ac_t""no" 1>&6
16637 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16638 echo "configure:16639: checking for _vsnprintf" >&5
16639 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16640 echo $ac_n "(cached) $ac_c" 1>&6
16642 cat > conftest.$ac_ext <<EOF
16643 #line 16644 "configure"
16644 #include "confdefs.h"
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char _vsnprintf(); below. */
16647 #include <assert.h>
16648 /* Override any gcc2 internal prototype to avoid an error. */
16649 /* We use char because int might match the return type of a gcc2
16650 builtin and then its argument prototype would still apply. */
16656 /* The GNU C library defines this for functions which it implements
16657 to always fail with ENOSYS. Some functions are actually named
16658 something starting with __ and the normal name is an alias. */
16659 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16667 if { (eval echo configure:16668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16669 eval "ac_cv_func__vsnprintf=yes"
16671 echo "configure: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16674 eval "ac_cv_func__vsnprintf=no"
16679 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16680 echo "$ac_t""yes" 1>&6
16681 ac_cv_func_vsnprintf=yes
16682 cat >> confdefs.h <<\EOF
16683 #define vsnprintf _vsnprintf
16688 echo "$ac_t""no" 1>&6
16692 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16693 echo "configure:16694: checking for vprintf" >&5
16694 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.h"
16700 /* System header to define __stub macros and hopefully few prototypes,
16701 which can conflict with char vprintf(); below. */
16702 #include <assert.h>
16703 /* Override any gcc2 internal prototype to avoid an error. */
16704 /* We use char because int might match the return type of a gcc2
16705 builtin and then its argument prototype would still apply. */
16711 /* The GNU C library defines this for functions which it implements
16712 to always fail with ENOSYS. Some functions are actually named
16713 something starting with __ and the normal name is an alias. */
16714 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16722 if { (eval echo configure:16723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16724 eval "ac_cv_func_vprintf=yes"
16726 echo "configure: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16729 eval "ac_cv_func_vprintf=no"
16734 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16735 echo "$ac_t""yes" 1>&6
16736 cat >> confdefs.h <<\EOF
16737 #define HAVE_VPRINTF 1
16741 echo "$ac_t""no" 1>&6
16744 if test "$ac_cv_func_vprintf" != yes; then
16745 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16746 echo "configure:16747: checking for _doprnt" >&5
16747 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16748 echo $ac_n "(cached) $ac_c" 1>&6
16750 cat > conftest.$ac_ext <<EOF
16751 #line 16752 "configure"
16752 #include "confdefs.h"
16753 /* System header to define __stub macros and hopefully few prototypes,
16754 which can conflict with char _doprnt(); below. */
16755 #include <assert.h>
16756 /* Override any gcc2 internal prototype to avoid an error. */
16757 /* We use char because int might match the return type of a gcc2
16758 builtin and then its argument prototype would still apply. */
16764 /* The GNU C library defines this for functions which it implements
16765 to always fail with ENOSYS. Some functions are actually named
16766 something starting with __ and the normal name is an alias. */
16767 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16775 if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16777 eval "ac_cv_func__doprnt=yes"
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16782 eval "ac_cv_func__doprnt=no"
16787 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16788 echo "$ac_t""yes" 1>&6
16789 cat >> confdefs.h <<\EOF
16790 #define HAVE_DOPRNT 1
16794 echo "$ac_t""no" 1>&6
16800 if test $ac_cv_func_vprintf = yes ; then
16801 for ac_func in vsnprintf vsprintf
16803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16804 echo "configure:16805: checking for $ac_func" >&5
16805 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16806 echo $ac_n "(cached) $ac_c" 1>&6
16808 cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16811 /* System header to define __stub macros and hopefully few prototypes,
16812 which can conflict with char $ac_func(); below. */
16813 #include <assert.h>
16814 /* Override any gcc2 internal prototype to avoid an error. */
16815 /* We use char because int might match the return type of a gcc2
16816 builtin and then its argument prototype would still apply. */
16822 /* The GNU C library defines this for functions which it implements
16823 to always fail with ENOSYS. Some functions are actually named
16824 something starting with __ and the normal name is an alias. */
16825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833 if { (eval echo configure:16834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16835 eval "ac_cv_func_$ac_func=yes"
16837 echo "configure: failed program was:" >&5
16838 cat conftest.$ac_ext >&5
16840 eval "ac_cv_func_$ac_func=no"
16845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16846 echo "$ac_t""yes" 1>&6
16847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16848 cat >> confdefs.h <<EOF
16849 #define $ac_tr_func 1
16853 echo "$ac_t""no" 1>&6
16912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16913 echo "configure:16914: checking for $ac_func" >&5
16914 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16915 echo $ac_n "(cached) $ac_c" 1>&6
16917 cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920 /* System header to define __stub macros and hopefully few prototypes,
16921 which can conflict with char $ac_func(); below. */
16922 #include <assert.h>
16923 /* Override any gcc2 internal prototype to avoid an error. */
16924 /* We use char because int might match the return type of a gcc2
16925 builtin and then its argument prototype would still apply. */
16931 /* The GNU C library defines this for functions which it implements
16932 to always fail with ENOSYS. Some functions are actually named
16933 something starting with __ and the normal name is an alias. */
16934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 if { (eval echo configure:16943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16944 eval "ac_cv_func_$ac_func=yes"
16946 echo "configure: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16949 eval "ac_cv_func_$ac_func=no"
16954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16955 echo "$ac_t""yes" 1>&6
16956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16957 cat >> confdefs.h <<EOF
16958 #define $ac_tr_func 1
16962 echo "$ac_t""no" 1>&6
16967 for ac_func in getopt
16969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16970 echo "configure:16971: checking for $ac_func" >&5
16971 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16974 cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 /* System header to define __stub macros and hopefully few prototypes,
16978 which can conflict with char $ac_func(); below. */
16979 #include <assert.h>
16980 /* Override any gcc2 internal prototype to avoid an error. */
16981 /* We use char because int might match the return type of a gcc2
16982 builtin and then its argument prototype would still apply. */
16988 /* The GNU C library defines this for functions which it implements
16989 to always fail with ENOSYS. Some functions are actually named
16990 something starting with __ and the normal name is an alias. */
16991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16999 if { (eval echo configure:17000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17001 eval "ac_cv_func_$ac_func=yes"
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17006 eval "ac_cv_func_$ac_func=no"
17011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17012 echo "$ac_t""yes" 1>&6
17013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17014 cat >> confdefs.h <<EOF
17015 #define $ac_tr_func 1
17019 echo "$ac_t""no" 1>&6
17020 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17026 if test "$ac_cv_func_getopt" != yes; then
17027 LIBSRCS="$LIBSRCS getopt.c"
17030 # Check Configuration
17031 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17032 echo "configure:17033: checking declaration of sys_errlist" >&5
17033 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17034 echo $ac_n "(cached) $ac_c" 1>&6
17037 cat > conftest.$ac_ext <<EOF
17038 #line 17039 "configure"
17039 #include "confdefs.h"
17042 #include <sys/types.h>
17045 #include <stdlib.h>
17048 char *c = (char *) *sys_errlist
17051 if { (eval echo configure:17052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17053 ol_cv_dcl_sys_errlist=yes
17054 ol_cv_have_sys_errlist=yes
17056 echo "configure: failed program was:" >&5
17057 cat conftest.$ac_ext >&5
17059 ol_cv_dcl_sys_errlist=no
17064 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17066 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17067 if test $ol_cv_dcl_sys_errlist = no ; then
17068 cat >> confdefs.h <<\EOF
17069 #define DECL_SYS_ERRLIST 1
17073 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17074 echo "configure:17075: checking existence of sys_errlist" >&5
17075 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17076 echo $ac_n "(cached) $ac_c" 1>&6
17079 cat > conftest.$ac_ext <<EOF
17080 #line 17081 "configure"
17081 #include "confdefs.h"
17084 char *c = (char *) *sys_errlist
17087 if { (eval echo configure:17088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17089 ol_cv_have_sys_errlist=yes
17091 echo "configure: failed program was:" >&5
17092 cat conftest.$ac_ext >&5
17094 ol_cv_have_sys_errlist=no
17099 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17101 if test $ol_cv_have_sys_errlist = yes ; then
17102 cat >> confdefs.h <<\EOF
17103 #define HAVE_SYS_ERRLIST 1
17110 if test "$ol_enable_debug" != no ; then
17111 cat >> confdefs.h <<\EOF
17112 #define LDAP_DEBUG 1
17116 if test "$ol_enable_syslog" = yes ; then
17117 cat >> confdefs.h <<\EOF
17118 #define LDAP_SYSLOG 1
17122 if test "$ol_enable_cache" = no ; then
17123 cat >> confdefs.h <<\EOF
17124 #define LDAP_NOCACHE 1
17128 if test "$ol_link_kbind" != no ; then
17129 cat >> confdefs.h <<\EOF
17130 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17134 if test "$ol_enable_proctitle" != no ; then
17135 cat >> confdefs.h <<\EOF
17136 #define LDAP_PROCTITLE 1
17140 if test "$ol_enable_referrals" != no ; then
17141 cat >> confdefs.h <<\EOF
17142 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17146 if test "$ol_enable_local" != no; then
17147 cat >> confdefs.h <<\EOF
17148 #define LDAP_PF_LOCAL 1
17152 if test "$ol_link_ipv6" != no; then
17153 cat >> confdefs.h <<\EOF
17154 #define LDAP_PF_INET6 1
17158 if test "$ol_enable_cleartext" != no ; then
17159 cat >> confdefs.h <<\EOF
17160 #define SLAPD_CLEARTEXT 1
17164 if test "$ol_enable_crypt" != no ; then
17165 cat >> confdefs.h <<\EOF
17166 #define SLAPD_CRYPT 1
17170 if test "$ol_link_kpasswd" != no ; then
17171 cat >> confdefs.h <<\EOF
17172 #define SLAPD_KPASSWD 1
17176 if test "$ol_link_spasswd" != no ; then
17177 cat >> confdefs.h <<\EOF
17178 #define SLAPD_SPASSWD 1
17182 if test "$ol_enable_phonetic" != no ; then
17183 cat >> confdefs.h <<\EOF
17184 #define SLAPD_PHONETIC 1
17188 if test "$ol_enable_rlookups" != no ; then
17189 cat >> confdefs.h <<\EOF
17190 #define SLAPD_RLOOKUPS 1
17194 if test "$ol_enable_aci" != no ; then
17195 cat >> confdefs.h <<\EOF
17196 #define SLAPD_ACI_ENABLED 1
17201 if test "$ol_link_modules" != no ; then
17202 cat >> confdefs.h <<\EOF
17203 #define SLAPD_MODULES 1
17207 SLAPD_MODULES_LDFLAGS="-dlopen self"
17210 if test "$ol_link_dnssrv" != no ; then
17211 cat >> confdefs.h <<\EOF
17212 #define SLAPD_DNSSRV 1
17217 if test "$ol_with_dnssrv_module" != static ; then
17218 cat >> confdefs.h <<\EOF
17219 #define SLAPD_DNSSRV_DYNAMIC 1
17223 BUILD_DNSSRV_DYNAMIC=shared
17224 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17228 if test "$ol_enable_ldap" != no ; then
17229 cat >> confdefs.h <<\EOF
17230 #define SLAPD_LDAP 1
17235 if test "$ol_with_ldap_module" != static ; then
17236 cat >> confdefs.h <<\EOF
17237 #define SLAPD_LDAP_DYNAMIC 1
17241 BUILD_LDAP_DYNAMIC=shared
17242 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17246 if test "$ol_link_ldbm" != no ; then
17247 cat >> confdefs.h <<\EOF
17248 #define SLAPD_LDBM 1
17253 if test "$ol_with_ldbm_module" != static ; then
17254 cat >> confdefs.h <<\EOF
17255 #define SLAPD_LDBM_DYNAMIC 1
17259 BUILD_LDBM_DYNAMIC=shared
17260 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17264 if test "$ol_enable_passwd" != no ; then
17265 cat >> confdefs.h <<\EOF
17266 #define SLAPD_PASSWD 1
17271 if test "$ol_with_passwd_module" != static ; then
17272 cat >> confdefs.h <<\EOF
17273 #define SLAPD_PASSWD_DYNAMIC 1
17277 BUILD_PASSWD_DYNAMIC=shared
17278 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17282 if test "$ol_enable_shell" != no ; then
17283 cat >> confdefs.h <<\EOF
17284 #define SLAPD_SHELL 1
17289 if test "$ol_with_shell_module" != static ; then
17290 cat >> confdefs.h <<\EOF
17291 #define SLAPD_SHELL_DYNAMIC 1
17295 BUILD_SHELL_DYNAMIC=shared
17296 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17300 if test "$ol_enable_sql" != no ; then
17301 cat >> confdefs.h <<\EOF
17302 #define SLAPD_SQL 1
17307 if test "$ol_with_sql_module" != static; then
17308 cat >> confdefs.h <<\EOF
17309 #define SLAPD_SQL_DYNAMIC 1
17313 BUILD_SQL_DYNAMIC=shared
17314 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17318 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17319 $BUILD_SLAPD = yes ; then
17324 if test "$LINK_BINS_DYNAMIC" = yes; then
17326 LT_LIB_LINKAGE=shared
17329 LT_LIB_LINKAGE=static
17332 if test "$ac_cv_mingw32" = yes ; then
17392 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17395 # Let make expand exec_prefix.
17396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17398 # Any assignment to VPATH causes Sun make to only execute
17399 # the first set of double-colon rules, so remove it if not needed.
17400 # If there is a colon in the path, we need to keep it.
17401 if test "x$srcdir" = x.; then
17402 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17405 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17407 DEFS=-DHAVE_CONFIG_H
17409 # Without the "./", some shells look in PATH for config.status.
17410 : ${CONFIG_STATUS=./config.status}
17412 echo creating $CONFIG_STATUS
17413 rm -f $CONFIG_STATUS
17414 cat > $CONFIG_STATUS <<EOF
17416 # Generated automatically by configure.
17417 # Run this file to recreate the current configuration.
17418 # This directory was configured as follows,
17419 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17421 # $0 $ac_configure_args
17423 # Compiler output produced by configure, useful for debugging
17424 # configure, is in ./config.log if it exists.
17426 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17429 case "\$ac_option" in
17430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17431 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17432 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17433 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17434 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17436 -help | --help | --hel | --he | --h)
17437 echo "\$ac_cs_usage"; exit 0 ;;
17438 *) echo "\$ac_cs_usage"; exit 1 ;;
17442 ac_given_srcdir=$srcdir
17443 ac_given_INSTALL="$INSTALL"
17445 trap 'rm -fr `echo "\
17446 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17447 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17448 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17449 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17450 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17451 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17452 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17453 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17454 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17455 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17456 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17457 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17458 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17459 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17460 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17461 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17462 include/Makefile:build/top.mk:include/Makefile.in \
17463 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17464 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17465 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17466 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17467 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17468 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17469 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17470 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17471 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17472 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17473 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17474 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17475 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17476 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17477 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17478 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17479 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17480 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17481 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17482 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17483 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17484 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17485 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17486 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17488 cat >> $CONFIG_STATUS <<EOF
17490 # Protect against being on the right side of a sed subst in config.status.
17491 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17492 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17496 s%@CFLAGS@%$CFLAGS%g
17497 s%@CPPFLAGS@%$CPPFLAGS%g
17498 s%@CXXFLAGS@%$CXXFLAGS%g
17499 s%@FFLAGS@%$FFLAGS%g
17501 s%@LDFLAGS@%$LDFLAGS%g
17503 s%@exec_prefix@%$exec_prefix%g
17504 s%@prefix@%$prefix%g
17505 s%@program_transform_name@%$program_transform_name%g
17506 s%@bindir@%$bindir%g
17507 s%@sbindir@%$sbindir%g
17508 s%@libexecdir@%$libexecdir%g
17509 s%@datadir@%$datadir%g
17510 s%@sysconfdir@%$sysconfdir%g
17511 s%@sharedstatedir@%$sharedstatedir%g
17512 s%@localstatedir@%$localstatedir%g
17513 s%@libdir@%$libdir%g
17514 s%@includedir@%$includedir%g
17515 s%@oldincludedir@%$oldincludedir%g
17516 s%@infodir@%$infodir%g
17517 s%@mandir@%$mandir%g
17519 s%@host_alias@%$host_alias%g
17520 s%@host_cpu@%$host_cpu%g
17521 s%@host_vendor@%$host_vendor%g
17522 s%@host_os@%$host_os%g
17523 s%@target@%$target%g
17524 s%@target_alias@%$target_alias%g
17525 s%@target_cpu@%$target_cpu%g
17526 s%@target_vendor@%$target_vendor%g
17527 s%@target_os@%$target_os%g
17529 s%@build_alias@%$build_alias%g
17530 s%@build_cpu@%$build_cpu%g
17531 s%@build_vendor@%$build_vendor%g
17532 s%@build_os@%$build_os%g
17533 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17534 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17535 s%@INSTALL_DATA@%$INSTALL_DATA%g
17536 s%@PACKAGE@%$PACKAGE%g
17537 s%@VERSION@%$VERSION%g
17538 s%@ACLOCAL@%$ACLOCAL%g
17539 s%@AUTOCONF@%$AUTOCONF%g
17540 s%@AUTOMAKE@%$AUTOMAKE%g
17541 s%@AUTOHEADER@%$AUTOHEADER%g
17542 s%@MAKEINFO@%$MAKEINFO%g
17543 s%@install_sh@%$install_sh%g
17546 s%@AMTARFLAGS@%$AMTARFLAGS%g
17547 s%@SET_MAKE@%$SET_MAKE%g
17548 s%@top_builddir@%$top_builddir%g
17549 s%@ldap_subdir@%$ldap_subdir%g
17552 s%@RANLIB@%$RANLIB%g
17554 s%@DLLTOOL@%$DLLTOOL%g
17556 s%@OBJDUMP@%$OBJDUMP%g
17557 s%@LIBTOOL@%$LIBTOOL%g
17559 s%@SENDMAIL@%$SENDMAIL%g
17560 s%@EDITOR@%$EDITOR%g
17561 s%@FINGER@%$FINGER%g
17563 s%@EXEEXT@%$EXEEXT%g
17564 s%@OBJEXT@%$OBJEXT%g
17565 s%@OL_MKDEP@%$OL_MKDEP%g
17566 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17567 s%@LIBOBJS@%$LIBOBJS%g
17568 s%@LIBSRCS@%$LIBSRCS%g
17570 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17571 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17572 s%@DYN_EXT@%$DYN_EXT%g
17573 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17574 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17575 s%@BUILD_LDAP@%$BUILD_LDAP%g
17576 s%@BUILD_LDBM@%$BUILD_LDBM%g
17577 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17578 s%@BUILD_SHELL@%$BUILD_SHELL%g
17579 s%@BUILD_SQL@%$BUILD_SQL%g
17580 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17581 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17582 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17583 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17584 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17585 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17586 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17587 s%@LDAP_LIBS@%$LDAP_LIBS%g
17588 s%@LDIF_LIBS@%$LDIF_LIBS%g
17589 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17590 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17591 s%@LDBM_LIBS@%$LDBM_LIBS%g
17592 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17593 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17594 s%@WRAP_LIBS@%$WRAP_LIBS%g
17595 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17596 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17597 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17598 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17599 s%@KRB4_LIBS@%$KRB4_LIBS%g
17600 s%@KRB5_LIBS@%$KRB5_LIBS%g
17601 s%@READLINE_LIBS@%$READLINE_LIBS%g
17602 s%@SASL_LIBS@%$SASL_LIBS%g
17603 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17604 s%@TLS_LIBS@%$TLS_LIBS%g
17605 s%@MODULES_LIBS@%$MODULES_LIBS%g
17606 s%@AUTH_LIBS@%$AUTH_LIBS%g
17607 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17608 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17609 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17614 cat >> $CONFIG_STATUS <<\EOF
17616 # Split the substitutions into bite-sized pieces for seds with
17617 # small command number limits, like on Digital OSF/1 and HP-UX.
17618 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17619 ac_file=1 # Number of current file.
17620 ac_beg=1 # First line for current file.
17621 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17624 while $ac_more_lines; do
17625 if test $ac_beg -gt 1; then
17626 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17628 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17630 if test ! -s conftest.s$ac_file; then
17631 ac_more_lines=false
17632 rm -f conftest.s$ac_file
17634 if test -z "$ac_sed_cmds"; then
17635 ac_sed_cmds="sed -f conftest.s$ac_file"
17637 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17639 ac_file=`expr $ac_file + 1`
17641 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17644 if test -z "$ac_sed_cmds"; then
17649 cat >> $CONFIG_STATUS <<EOF
17651 CONFIG_FILES=\${CONFIG_FILES-"\
17652 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17653 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17654 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17655 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17656 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17657 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17658 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17659 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17660 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17661 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17662 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17663 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17664 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17665 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17666 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17667 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17668 include/Makefile:build/top.mk:include/Makefile.in \
17669 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17670 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17671 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17672 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17673 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17674 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17675 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17676 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17677 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17678 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17679 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17680 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17681 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17682 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17683 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17684 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17685 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17686 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17687 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17688 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17689 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17690 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17691 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17694 cat >> $CONFIG_STATUS <<\EOF
17695 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17696 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17698 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17699 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17700 *) ac_file_in="${ac_file}.in" ;;
17703 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17705 # Remove last slash and all that follows it. Not all systems have dirname.
17706 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17707 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17708 # The file is in a subdirectory.
17709 test ! -d "$ac_dir" && mkdir "$ac_dir"
17710 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17711 # A "../" for each directory in $ac_dir_suffix.
17712 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17714 ac_dir_suffix= ac_dots=
17717 case "$ac_given_srcdir" in
17719 if test -z "$ac_dots"; then top_srcdir=.
17720 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17721 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17722 *) # Relative path.
17723 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17724 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17727 case "$ac_given_INSTALL" in
17728 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17729 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17732 echo creating "$ac_file"
17734 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17736 *[Mm]akefile*) ac_comsub="1i\\
17737 # $configure_input" ;;
17741 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17743 s%@configure_input@%$configure_input%g
17744 s%@srcdir@%$srcdir%g
17745 s%@top_srcdir@%$top_srcdir%g
17746 s%@INSTALL@%$INSTALL%g
17747 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17751 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17752 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17754 # ac_d sets the value in "#define NAME VALUE" lines.
17755 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17756 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17759 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17760 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17761 ac_uB='\([ ]\)%\1#\2define\3'
17764 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17765 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17766 ac_eB='$%\1#\2define\3'
17770 if test "${CONFIG_HEADERS+set}" != set; then
17772 cat >> $CONFIG_STATUS <<EOF
17773 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17775 cat >> $CONFIG_STATUS <<\EOF
17777 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17780 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17781 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17782 *) ac_file_in="${ac_file}.in" ;;
17785 echo creating $ac_file
17787 rm -f conftest.frag conftest.in conftest.out
17788 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17789 cat $ac_file_inputs > conftest.in
17793 # Transform confdefs.h into a sed script conftest.vals that substitutes
17794 # the proper values into config.h.in to produce config.h. And first:
17795 # Protect against being on the right side of a sed subst in config.status.
17796 # Protect against being in an unquoted here document in config.status.
17797 rm -f conftest.vals
17798 cat > conftest.hdr <<\EOF
17801 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17805 sed -n -f conftest.hdr confdefs.h > conftest.vals
17808 # This sed command replaces #undef with comments. This is necessary, for
17809 # example, in the case of _POSIX_SOURCE, which is predefined and required
17810 # on some systems where configure will not decide to define it.
17811 cat >> conftest.vals <<\EOF
17812 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17815 # Break up conftest.vals because some shells have a limit on
17816 # the size of here documents, and old seds have small limits too.
17818 rm -f conftest.tail
17821 ac_lines=`grep -c . conftest.vals`
17822 # grep -c gives empty output for an empty file on some AIX systems.
17823 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17824 # Write a limited-size here document to conftest.frag.
17825 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17826 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17828 sed -f conftest.frag conftest.in > conftest.out
17830 mv conftest.out conftest.in
17831 ' >> $CONFIG_STATUS
17832 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17833 rm -f conftest.vals
17834 mv conftest.tail conftest.vals
17836 rm -f conftest.vals
17838 cat >> $CONFIG_STATUS <<\EOF
17839 rm -f conftest.frag conftest.h
17840 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17841 cat conftest.in >> conftest.h
17843 if cmp -s $ac_file conftest.h 2>/dev/null; then
17844 echo "$ac_file is unchanged"
17847 # Remove last slash and all that follows it. Not all systems have dirname.
17848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17850 # The file is in a subdirectory.
17851 test ! -d "$ac_dir" && mkdir "$ac_dir"
17854 mv conftest.h $ac_file
17859 cat >> $CONFIG_STATUS <<EOF
17862 cat >> $CONFIG_STATUS <<\EOF
17865 echo Please \"make depend\" to build dependencies
17869 chmod +x $CONFIG_STATUS
17870 rm -fr confdefs* $ac_clean_files
17871 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1