3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.36 2001/12/04 18:15:24 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 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; }
5731 for ac_func in gai_strerror
5733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5734 echo "configure:5735: checking for $ac_func" >&5
5735 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func(); below. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 eval "ac_cv_func_$ac_func=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 eval "ac_cv_func_$ac_func=no"
5775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5778 cat >> confdefs.h <<EOF
5779 #define $ac_tr_func 1
5783 echo "$ac_t""no" 1>&6
5788 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5789 echo "configure:5790: checking INET6_ADDRSTRLEN" >&5
5790 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5798 # include <netinet/in.h>
5799 # ifdef INET6_ADDRSTRLEN
5800 __has_inet6_addrstrlen__;
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5807 ol_cv_inet6_addrstrlen=yes
5810 ol_cv_inet6_addrstrlen=no
5816 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5818 if test $ol_cv_inet6_addrstrlen = yes ; then
5820 elif test $ol_enable_ipv6 = yes ; then
5821 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5825 if test $ol_enable_local != no ; then
5826 for ac_hdr in sys/un.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 $ol_enable_local = auto ; then
5868 ol_enable_local=$ac_cv_header_sys_un_h
5869 elif test $ac_cv_header_sys_un_h = no ; then
5870 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5879 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5880 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5881 -o $ol_with_kerberos = k425 ; then
5883 for ac_hdr in krb5.h
5885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5887 echo "configure:5888: checking for $ac_hdr" >&5
5888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5897 { (eval echo configure:5898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5899 if test -z "$ac_err"; then
5901 eval "ac_cv_header_$ac_safe=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 eval "ac_cv_header_$ac_safe=no"
5911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5912 echo "$ac_t""yes" 1>&6
5913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5914 cat >> confdefs.h <<EOF
5915 #define $ac_tr_hdr 1
5919 echo "$ac_t""no" 1>&6
5924 if test $ac_cv_header_krb5_h = yes ; then
5925 for ac_hdr in heim_err.h
5927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_hdr" >&5
5930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5939 { (eval echo configure:5940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5941 if test -z "$ac_err"; then
5943 eval "ac_cv_header_$ac_safe=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_header_$ac_safe=no"
5953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5956 cat >> confdefs.h <<EOF
5957 #define $ac_tr_hdr 1
5961 echo "$ac_t""no" 1>&6
5965 if test $ac_cv_header_heim_err_h = yes ; then
5971 if test $krb5_impl = mit; then
5972 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
5973 echo "configure:5974: checking for main in -lk5crypto" >&5
5974 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
5975 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5978 ac_save_LIBS="$LIBS"
5979 LIBS="-lk5crypto $LIBS"
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5990 eval "ac_cv_lib_$ac_lib_var=yes"
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5995 eval "ac_cv_lib_$ac_lib_var=no"
5998 LIBS="$ac_save_LIBS"
6001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6002 echo "$ac_t""yes" 1>&6
6005 echo "$ac_t""no" 1>&6
6010 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6011 echo "configure:6012: checking for main in -lkrb5" >&5
6012 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 ac_save_LIBS="$LIBS"
6017 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 eval "ac_cv_lib_$ac_lib_var=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_lib_$ac_lib_var=no"
6036 LIBS="$ac_save_LIBS"
6039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6042 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6044 echo "$ac_t""no" 1>&6
6049 elif test $krb5_impl = heimdal; then
6050 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6051 echo "configure:6052: checking for main in -lkrb5" >&5
6052 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 ac_save_LIBS="$LIBS"
6057 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068 eval "ac_cv_lib_$ac_lib_var=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 eval "ac_cv_lib_$ac_lib_var=no"
6076 LIBS="$ac_save_LIBS"
6079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6082 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6084 echo "$ac_t""no" 1>&6
6089 cat >> confdefs.h <<\EOF
6090 #define HAVE_HEIMDAL_KERBEROS 1
6096 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6099 if test $have_krb5 = yes ; then
6102 cat >> confdefs.h <<\EOF
6107 if test $ol_enable_kpasswd != no ; then
6108 ol_link_kpasswd=yes;
6111 if test $ol_with_kerberos = k5only ; then
6112 ol_with_kerberos=found
6115 elif test $ol_with_kerberos != auto ; then
6116 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6122 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6123 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6125 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6129 echo "configure:6130: checking for $ac_hdr" >&5
6130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6139 { (eval echo configure:6140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6141 if test -z "$ac_err"; then
6143 eval "ac_cv_header_$ac_safe=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6149 eval "ac_cv_header_$ac_safe=no"
6153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6156 cat >> confdefs.h <<EOF
6157 #define $ac_tr_hdr 1
6161 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6167 if test $krb5_impl = mit; then
6168 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6169 echo "configure:6170: checking for main in -lkrb4" >&5
6170 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6174 ac_save_LIBS="$LIBS"
6175 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 eval "ac_cv_lib_$ac_lib_var=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_lib_$ac_lib_var=no"
6194 LIBS="$ac_save_LIBS"
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6200 KRB4_LIBS="-lkrb4 -ldes425"
6202 echo "$ac_t""no" 1>&6
6207 elif test $krb5_impl = heimdal; then
6208 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6209 echo "configure:6210: checking for main in -lkrb4" >&5
6210 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6214 ac_save_LIBS="$LIBS"
6215 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 eval "ac_cv_lib_$ac_lib_var=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_lib_$ac_lib_var=no"
6234 LIBS="$ac_save_LIBS"
6237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6242 echo "$ac_t""no" 1>&6
6249 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6252 if test $have_k425 = yes ; then
6253 ol_with_kerberos=found
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE_KRB425 1
6260 cat >> confdefs.h <<\EOF
6265 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6266 echo "configure:6267: checking for des_debug in Kerberos libraries" >&5
6267 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6272 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6277 #include <kerberosIV/krb.h>
6278 #include <kerberosIV/des.h>
6279 extern int des_debug;
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6289 ol_cv_var_des_debug=yes
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 ol_cv_var_des_debug=no
6301 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6303 if test $ol_cv_var_des_debug = yes ; then
6304 cat >> confdefs.h <<\EOF
6305 #define HAVE_DES_DEBUG 1
6315 if test $ol_link_krb5 = yes ; then
6316 ol_with_kerberos=found
6319 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6320 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6322 for ac_hdr in krb.h des.h krb-archaeology.h
6324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_hdr" >&5
6327 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6338 if test -z "$ac_err"; then
6340 eval "ac_cv_header_$ac_safe=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_header_$ac_safe=no"
6350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_hdr 1
6358 echo "$ac_t""no" 1>&6
6363 if test $ac_cv_header_krb_h = yes ; then
6364 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6365 echo "configure:6366: checking for main in -lkrb" >&5
6366 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6370 ac_save_LIBS="$LIBS"
6371 LIBS="-lkrb -ldes $LIBS"
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 eval "ac_cv_lib_$ac_lib_var=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_lib_$ac_lib_var=no"
6390 LIBS="$ac_save_LIBS"
6393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6397 echo "$ac_t""no" 1>&6
6402 if test $have_k4 = yes ; then
6403 ol_with_kerberos=found
6406 cat >> confdefs.h <<\EOF
6411 KRB4_LIBS="-lkrb -ldes"
6413 if test $ac_cv_header_krb_archaeology_h = yes ; then
6414 cat >> confdefs.h <<\EOF
6415 #define HAVE_KTH_KERBEROS 1
6423 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6427 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6430 elif test $ol_enable_kbind = yes ; then
6431 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6434 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6435 cat >> confdefs.h <<\EOF
6436 #define HAVE_KERBEROS 1
6440 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6441 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6445 if test $ol_with_tls != no ; then
6446 for ac_hdr in openssl/ssl.h ssl.h
6448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_hdr" >&5
6451 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6460 { (eval echo configure:6461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6462 if test -z "$ac_err"; then
6464 eval "ac_cv_header_$ac_safe=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 eval "ac_cv_header_$ac_safe=no"
6474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6477 cat >> confdefs.h <<EOF
6478 #define $ac_tr_hdr 1
6482 echo "$ac_t""no" 1>&6
6487 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6488 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6489 echo "configure:6490: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6490 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6491 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6494 ac_save_LIBS="$LIBS"
6495 LIBS="-lssl -lcrypto $LIBS"
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char SSLeay_add_ssl_algorithms();
6505 SSLeay_add_ssl_algorithms()
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 eval "ac_cv_lib_$ac_lib_var=yes"
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6515 eval "ac_cv_lib_$ac_lib_var=no"
6518 LIBS="$ac_save_LIBS"
6521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6522 echo "$ac_t""yes" 1>&6
6526 echo "$ac_t""no" 1>&6
6531 if test $have_ssleay = no ; then
6532 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6533 echo "configure:6534: checking for SSL_library_init in -lssl" >&5
6534 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6535 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 ac_save_LIBS="$LIBS"
6539 LIBS="-lssl -lcrypto $LIBS"
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546 char SSL_library_init();
6552 if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 eval "ac_cv_lib_$ac_lib_var=yes"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 eval "ac_cv_lib_$ac_lib_var=no"
6562 LIBS="$ac_save_LIBS"
6565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6570 echo "$ac_t""no" 1>&6
6576 if test $have_ssleay = no ; then
6577 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6578 echo "configure:6579: checking for ssl3_accept in -lssl" >&5
6579 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 ac_save_LIBS="$LIBS"
6584 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6604 eval "ac_cv_lib_$ac_lib_var=no"
6607 LIBS="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6615 echo "$ac_t""no" 1>&6
6621 if test $have_ssleay = yes ; then
6625 cat >> confdefs.h <<\EOF
6626 #define HAVE_SSLEAY 1
6630 if test $need_rsaref = yes; then
6631 cat >> confdefs.h <<\EOF
6632 #define HAVE_RSAREF 1
6636 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6638 TLS_LIBS="-lssl -lcrypto"
6644 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6647 if test $ol_link_tls = yes ; then
6648 cat >> confdefs.h <<\EOF
6653 elif test $ol_with_tls = auto ; then
6654 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6655 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6657 elif test $ol_with_tls != no ; then
6658 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6663 gethostbyname_r gethostbyaddr_r \
6666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6667 echo "configure:6668: checking for $ac_func" >&5
6668 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6669 echo $ac_n "(cached) $ac_c" 1>&6
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* System header to define __stub macros and hopefully few prototypes,
6675 which can conflict with char $ac_func(); below. */
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 eval "ac_cv_func_$ac_func=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 eval "ac_cv_func_$ac_func=no"
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h <<EOF
6712 #define $ac_tr_func 1
6716 echo "$ac_t""no" 1>&6
6721 if test "$ac_cv_func_ctime_r" = no ; then
6722 ol_cv_func_ctime_r_nargs=0
6724 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6725 echo "configure:6726: checking number of arguments of ctime_r" >&5
6726 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6734 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6737 if { (eval echo configure:6738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6739 ol_cv_func_ctime_r_nargs3=yes
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 ol_cv_func_ctime_r_nargs3=no
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6753 time_t ti; char *buffer; ctime_r(&ti,buffer);
6756 if { (eval echo configure:6757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6758 ol_cv_func_ctime_r_nargs2=yes
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 ol_cv_func_ctime_r_nargs2=no
6767 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6768 $ol_cv_func_ctime_r_nargs2 = no ; then
6770 ol_cv_func_ctime_r_nargs=3
6772 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6773 $ol_cv_func_ctime_r_nargs2 = yes ; then
6775 ol_cv_func_ctime_r_nargs=2
6778 ol_cv_func_ctime_r_nargs=0
6783 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6785 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6786 cat >> confdefs.h <<EOF
6787 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6794 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6795 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6796 echo "configure:6797: checking number of arguments of gethostbyname_r" >&5
6797 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 #include <sys/types.h>
6804 #include <sys/socket.h>
6805 #include <netinet/in.h>
6807 #define BUFSIZE (sizeof(struct hostent)+10)
6809 struct hostent hent; char buffer[BUFSIZE];
6810 int bufsize=BUFSIZE;int h_errno;
6811 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6812 buffer, bufsize, &h_errno);
6815 if { (eval echo configure:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6817 ol_cv_func_gethostbyname_r_nargs5=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 ol_cv_func_gethostbyname_r_nargs5=no
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 #include <sys/types.h>
6830 #include <sys/socket.h>
6831 #include <netinet/in.h>
6833 #define BUFSIZE (sizeof(struct hostent)+10)
6835 struct hostent hent;struct hostent *rhent;
6836 char buffer[BUFSIZE];
6837 int bufsize=BUFSIZE;int h_errno;
6838 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6842 if { (eval echo configure:6843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6844 ol_cv_func_gethostbyname_r_nargs6=yes
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 ol_cv_func_gethostbyname_r_nargs6=no
6853 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6854 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6856 ol_cv_func_gethostbyname_r_nargs=5
6858 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6859 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6861 ol_cv_func_gethostbyname_r_nargs=6
6864 ol_cv_func_gethostbyname_r_nargs=0
6869 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6870 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6871 cat >> confdefs.h <<EOF
6872 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6878 ol_cv_func_gethostbyname_r_nargs=0
6881 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6882 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6883 echo "configure:6884: checking number of arguments of gethostbyaddr_r" >&5
6884 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 #include <sys/types.h>
6891 #include <sys/socket.h>
6892 #include <netinet/in.h>
6894 #define BUFSIZE (sizeof(struct hostent)+10)
6896 struct hostent hent; char buffer[BUFSIZE];
6898 size_t alen=sizeof(struct in_addr);
6899 int bufsize=BUFSIZE;int h_errno;
6900 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6901 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6904 if { (eval echo configure:6905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6906 ol_cv_func_gethostbyaddr_r_nargs7=yes
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 ol_cv_func_gethostbyaddr_r_nargs7=no
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 #include <sys/types.h>
6919 #include <sys/socket.h>
6920 #include <netinet/in.h>
6922 #define BUFSIZE (sizeof(struct hostent)+10)
6924 struct hostent hent;
6925 struct hostent *rhent; char buffer[BUFSIZE];
6927 size_t alen=sizeof(struct in_addr);
6928 int bufsize=BUFSIZE;int h_errno;
6929 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6930 alen, AF_INET, &hent, buffer, bufsize,
6934 if { (eval echo configure:6935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6936 ol_cv_func_gethostbyaddr_r_nargs8=yes
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 ol_cv_func_gethostbyaddr_r_nargs8=no
6945 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6946 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6948 ol_cv_func_gethostbyaddr_r_nargs=7
6950 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6951 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6953 ol_cv_func_gethostbyaddr_r_nargs=8
6956 ol_cv_func_gethostbyaddr_r_nargs=0
6961 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6962 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6963 cat >> confdefs.h <<EOF
6964 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6970 ol_cv_func_gethostbyaddr_r_nargs=0
6973 if test "$ac_cv_func_ctime_r" = yes \
6974 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6975 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6976 -a "$ac_cv_func_gethostbyname_r" = yes \
6977 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6978 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6979 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6980 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6981 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6984 cat >> confdefs.h <<\EOF
6985 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6992 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6993 -o $ol_with_threads = nt ; then
6996 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6997 echo "configure:6998: checking for _beginthread" >&5
6998 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* System header to define __stub macros and hopefully few prototypes,
7005 which can conflict with char _beginthread(); below. */
7007 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
7010 char _beginthread();
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7028 eval "ac_cv_func__beginthread=yes"
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7033 eval "ac_cv_func__beginthread=no"
7038 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7042 echo "$ac_t""no" 1>&6
7046 if test $ac_cv_func__beginthread = yes ; then
7047 cat >> confdefs.h <<\EOF
7048 #define HAVE_NT_THREADS 1
7054 if test "$ol_cv_nt_threads" = yes ; then
7056 ol_with_threads=found
7057 ol_with_yielding_select=yes
7059 cat >> confdefs.h <<\EOF
7060 #define HAVE_NT_SERVICE_MANAGER 1
7063 cat >> confdefs.h <<\EOF
7064 #define HAVE_NT_EVENT_LOG 1
7069 if test $ol_with_threads = nt ; then
7070 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7074 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7075 -o $ol_with_threads = posix ; then
7077 for ac_hdr in pthread.h
7079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7081 echo "configure:7082: checking for $ac_hdr" >&5
7082 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7083 echo $ac_n "(cached) $ac_c" 1>&6
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7091 { (eval echo configure:7092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7093 if test -z "$ac_err"; then
7095 eval "ac_cv_header_$ac_safe=yes"
7098 echo "configure: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7101 eval "ac_cv_header_$ac_safe=no"
7105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7108 cat >> confdefs.h <<EOF
7109 #define $ac_tr_hdr 1
7113 echo "$ac_t""no" 1>&6
7118 if test $ac_cv_header_pthread_h = yes ; then
7119 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7120 echo "configure:7121: checking POSIX thread version" >&5
7121 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7125 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure"
7127 #include "confdefs.h"
7129 # include <pthread.h>
7130 /* this check could be improved */
7131 # ifdef PTHREAD_ONCE_INIT
7132 pthread_version_final;
7136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137 egrep "pthread_version_final" >/dev/null 2>&1; then
7139 ol_pthread_final=yes
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7151 # include <pthread.h>
7152 /* this check could be improved */
7153 # ifdef pthread_once_init
7154 pthread_version_draft4;
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7161 ol_pthread_draft4=yes
7164 ol_pthread_draft4=no
7169 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7170 ol_cv_pthread_version=final
7171 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7172 ol_cv_pthread_version=draft4
7174 ol_cv_pthread_version=unknown
7179 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7182 if test $ol_cv_pthread_version = final ; then
7183 cat >> confdefs.h <<\EOF
7184 #define HAVE_PTHREADS_FINAL 1
7187 elif test $ol_cv_pthread_version = draft4 ; then
7188 cat >> confdefs.h <<\EOF
7189 #define HAVE_PTHREADS_D4 1
7193 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7196 # consider threads found
7197 ol_with_threads=found
7200 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7201 echo "configure:7202: checking for LinuxThreads pthread.h" >&5
7202 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 #include <pthread.h>
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7213 ol_cv_header_linux_threads=yes
7216 ol_cv_header_linux_threads=no
7223 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7224 if test $ol_cv_header_linux_threads = yes; then
7225 cat >> confdefs.h <<\EOF
7226 #define HAVE_LINUX_THREADS 1
7232 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7233 echo "configure:7234: checking for GNU Pth pthread.h" >&5
7234 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 #include <pthread.h>
7241 #ifdef _POSIX_THREAD_IS_GNU_PTH
7246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247 egrep "__gnu_pth__" >/dev/null 2>&1; then
7249 ol_cv_header_gnu_pth_pthread_h=yes
7252 ol_cv_header_gnu_pth_pthread_h=no
7259 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7262 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7263 for ac_hdr in sched.h
7265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7267 echo "configure:7268: checking for $ac_hdr" >&5
7268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7277 { (eval echo configure:7278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7279 if test -z "$ac_err"; then
7281 eval "ac_cv_header_$ac_safe=yes"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7287 eval "ac_cv_header_$ac_safe=no"
7291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7294 cat >> confdefs.h <<EOF
7295 #define $ac_tr_hdr 1
7299 echo "$ac_t""no" 1>&6
7306 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7307 echo "configure:7308: checking for pthread_create in default libraries" >&5
7308 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7312 if test "$cross_compiling" = yes; then
7313 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure"
7315 #include "confdefs.h"
7316 /* pthread test headers */
7317 #include <pthread.h>
7319 #define NULL (void*)0
7322 static void *task(p)
7325 return (void *) (p == NULL);
7330 /* pthread test function */
7335 #ifdef HAVE_PTHREADS_FINAL
7336 /* Final pthreads */
7337 pthread_attr_t attr;
7339 status = pthread_attr_init(&attr);
7340 if( status ) return status;
7342 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7344 #if defined( PTHREAD_CREATE_JOINABLE )
7345 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7347 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7350 #ifdef PTHREAD_CREATE_DETACHED
7352 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7355 if( status ) return status;
7358 status = pthread_create( &t, &attr, task, NULL );
7359 if( status ) return status;
7361 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7363 /* give thread a chance to complete */
7364 /* it should remain joinable and hence detachable */
7367 status = pthread_detach( t );
7368 if( status ) return status;
7373 /* Draft 4 pthreads */
7374 status = pthread_create( &t, pthread_attr_default, task, NULL );
7375 if( status ) return status;
7378 /* give thread a chance to complete */
7379 /* it should remain joinable and hence detachable */
7382 status = pthread_detach( &t );
7383 if( status ) return status;
7387 #ifdef HAVE_LINUX_THREADS
7388 pthread_kill_other_threads_np();
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7397 ol_cv_pthread_create=yes
7399 echo "configure: failed program was:" >&5
7400 cat conftest.$ac_ext >&5
7402 ol_cv_pthread_create=no
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* pthread test headers */
7410 #include <pthread.h>
7412 #define NULL (void*)0
7415 static void *task(p)
7418 return (void *) (p == NULL);
7422 int main(argc, argv)
7427 /* pthread test function */
7432 #ifdef HAVE_PTHREADS_FINAL
7433 /* Final pthreads */
7434 pthread_attr_t attr;
7436 status = pthread_attr_init(&attr);
7437 if( status ) return status;
7439 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7441 #if defined( PTHREAD_CREATE_JOINABLE )
7442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7444 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7447 #ifdef PTHREAD_CREATE_DETACHED
7449 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7452 if( status ) return status;
7455 status = pthread_create( &t, &attr, task, NULL );
7456 if( status ) return status;
7458 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7460 /* give thread a chance to complete */
7461 /* it should remain joinable and hence detachable */
7464 status = pthread_detach( t );
7465 if( status ) return status;
7470 /* Draft 4 pthreads */
7471 status = pthread_create( &t, pthread_attr_default, task, NULL );
7472 if( status ) return status;
7475 /* give thread a chance to complete */
7476 /* it should remain joinable and hence detachable */
7479 status = pthread_detach( &t );
7480 if( status ) return status;
7484 #ifdef HAVE_LINUX_THREADS
7485 pthread_kill_other_threads_np();
7493 if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7495 ol_cv_pthread_create=yes
7497 echo "configure: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 ol_cv_pthread_create=no
7507 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7509 if test $ol_cv_pthread_create != no ; then
7510 ol_link_threads=posix
7514 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7515 if test "$ol_link_threads" = no ; then
7517 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7518 echo "configure:7519: checking for pthread link with -kthread" >&5
7519 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7525 LIBS="-kthread $LIBS"
7527 if test "$cross_compiling" = yes; then
7528 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* pthread test headers */
7532 #include <pthread.h>
7534 #define NULL (void*)0
7537 static void *task(p)
7540 return (void *) (p == NULL);
7545 /* pthread test function */
7550 #ifdef HAVE_PTHREADS_FINAL
7551 /* Final pthreads */
7552 pthread_attr_t attr;
7554 status = pthread_attr_init(&attr);
7555 if( status ) return status;
7557 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7559 #if defined( PTHREAD_CREATE_JOINABLE )
7560 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7562 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7565 #ifdef PTHREAD_CREATE_DETACHED
7567 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7570 if( status ) return status;
7573 status = pthread_create( &t, &attr, task, NULL );
7574 if( status ) return status;
7576 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7578 /* give thread a chance to complete */
7579 /* it should remain joinable and hence detachable */
7582 status = pthread_detach( t );
7583 if( status ) return status;
7588 /* Draft 4 pthreads */
7589 status = pthread_create( &t, pthread_attr_default, task, NULL );
7590 if( status ) return status;
7593 /* give thread a chance to complete */
7594 /* it should remain joinable and hence detachable */
7597 status = pthread_detach( &t );
7598 if( status ) return status;
7602 #ifdef HAVE_LINUX_THREADS
7603 pthread_kill_other_threads_np();
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7612 ol_cv_pthread_kthread=yes
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7617 ol_cv_pthread_kthread=no
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* pthread test headers */
7625 #include <pthread.h>
7627 #define NULL (void*)0
7630 static void *task(p)
7633 return (void *) (p == NULL);
7637 int main(argc, argv)
7642 /* pthread test function */
7647 #ifdef HAVE_PTHREADS_FINAL
7648 /* Final pthreads */
7649 pthread_attr_t attr;
7651 status = pthread_attr_init(&attr);
7652 if( status ) return status;
7654 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7656 #if defined( PTHREAD_CREATE_JOINABLE )
7657 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7659 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7662 #ifdef PTHREAD_CREATE_DETACHED
7664 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7667 if( status ) return status;
7670 status = pthread_create( &t, &attr, task, NULL );
7671 if( status ) return status;
7673 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7675 /* give thread a chance to complete */
7676 /* it should remain joinable and hence detachable */
7679 status = pthread_detach( t );
7680 if( status ) return status;
7685 /* Draft 4 pthreads */
7686 status = pthread_create( &t, pthread_attr_default, task, NULL );
7687 if( status ) return status;
7690 /* give thread a chance to complete */
7691 /* it should remain joinable and hence detachable */
7694 status = pthread_detach( &t );
7695 if( status ) return status;
7699 #ifdef HAVE_LINUX_THREADS
7700 pthread_kill_other_threads_np();
7708 if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7710 ol_cv_pthread_kthread=yes
7712 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7715 ol_cv_pthread_kthread=no
7726 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7728 if test $ol_cv_pthread_kthread = yes ; then
7729 ol_link_pthreads="-kthread"
7730 ol_link_threads=posix
7734 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7735 if test "$ol_link_threads" = no ; then
7737 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7738 echo "configure:7739: checking for pthread link with -pthread" >&5
7739 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7745 LIBS="-pthread $LIBS"
7747 if test "$cross_compiling" = yes; then
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* pthread test headers */
7752 #include <pthread.h>
7754 #define NULL (void*)0
7757 static void *task(p)
7760 return (void *) (p == NULL);
7765 /* pthread test function */
7770 #ifdef HAVE_PTHREADS_FINAL
7771 /* Final pthreads */
7772 pthread_attr_t attr;
7774 status = pthread_attr_init(&attr);
7775 if( status ) return status;
7777 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7779 #if defined( PTHREAD_CREATE_JOINABLE )
7780 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7782 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7785 #ifdef PTHREAD_CREATE_DETACHED
7787 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7790 if( status ) return status;
7793 status = pthread_create( &t, &attr, task, NULL );
7794 if( status ) return status;
7796 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7798 /* give thread a chance to complete */
7799 /* it should remain joinable and hence detachable */
7802 status = pthread_detach( t );
7803 if( status ) return status;
7808 /* Draft 4 pthreads */
7809 status = pthread_create( &t, pthread_attr_default, task, NULL );
7810 if( status ) return status;
7813 /* give thread a chance to complete */
7814 /* it should remain joinable and hence detachable */
7817 status = pthread_detach( &t );
7818 if( status ) return status;
7822 #ifdef HAVE_LINUX_THREADS
7823 pthread_kill_other_threads_np();
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832 ol_cv_pthread_pthread=yes
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 ol_cv_pthread_pthread=no
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 /* pthread test headers */
7845 #include <pthread.h>
7847 #define NULL (void*)0
7850 static void *task(p)
7853 return (void *) (p == NULL);
7857 int main(argc, argv)
7862 /* pthread test function */
7867 #ifdef HAVE_PTHREADS_FINAL
7868 /* Final pthreads */
7869 pthread_attr_t attr;
7871 status = pthread_attr_init(&attr);
7872 if( status ) return status;
7874 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7876 #if defined( PTHREAD_CREATE_JOINABLE )
7877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7879 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7882 #ifdef PTHREAD_CREATE_DETACHED
7884 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7887 if( status ) return status;
7890 status = pthread_create( &t, &attr, task, NULL );
7891 if( status ) return status;
7893 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7895 /* give thread a chance to complete */
7896 /* it should remain joinable and hence detachable */
7899 status = pthread_detach( t );
7900 if( status ) return status;
7905 /* Draft 4 pthreads */
7906 status = pthread_create( &t, pthread_attr_default, task, NULL );
7907 if( status ) return status;
7910 /* give thread a chance to complete */
7911 /* it should remain joinable and hence detachable */
7914 status = pthread_detach( &t );
7915 if( status ) return status;
7919 #ifdef HAVE_LINUX_THREADS
7920 pthread_kill_other_threads_np();
7928 if { (eval echo configure:7929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7930 ol_cv_pthread_pthread=yes
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 ol_cv_pthread_pthread=no
7946 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7948 if test $ol_cv_pthread_pthread = yes ; then
7949 ol_link_pthreads="-pthread"
7950 ol_link_threads=posix
7954 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7955 if test "$ol_link_threads" = no ; then
7957 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7958 echo "configure:7959: checking for pthread link with -pthreads" >&5
7959 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7965 LIBS="-pthreads $LIBS"
7967 if test "$cross_compiling" = yes; then
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 /* pthread test headers */
7972 #include <pthread.h>
7974 #define NULL (void*)0
7977 static void *task(p)
7980 return (void *) (p == NULL);
7985 /* pthread test function */
7990 #ifdef HAVE_PTHREADS_FINAL
7991 /* Final pthreads */
7992 pthread_attr_t attr;
7994 status = pthread_attr_init(&attr);
7995 if( status ) return status;
7997 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7999 #if defined( PTHREAD_CREATE_JOINABLE )
8000 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8002 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8005 #ifdef PTHREAD_CREATE_DETACHED
8007 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8010 if( status ) return status;
8013 status = pthread_create( &t, &attr, task, NULL );
8014 if( status ) return status;
8016 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8018 /* give thread a chance to complete */
8019 /* it should remain joinable and hence detachable */
8022 status = pthread_detach( t );
8023 if( status ) return status;
8028 /* Draft 4 pthreads */
8029 status = pthread_create( &t, pthread_attr_default, task, NULL );
8030 if( status ) return status;
8033 /* give thread a chance to complete */
8034 /* it should remain joinable and hence detachable */
8037 status = pthread_detach( &t );
8038 if( status ) return status;
8042 #ifdef HAVE_LINUX_THREADS
8043 pthread_kill_other_threads_np();
8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052 ol_cv_pthread_pthreads=yes
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 ol_cv_pthread_pthreads=no
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* pthread test headers */
8065 #include <pthread.h>
8067 #define NULL (void*)0
8070 static void *task(p)
8073 return (void *) (p == NULL);
8077 int main(argc, argv)
8082 /* pthread test function */
8087 #ifdef HAVE_PTHREADS_FINAL
8088 /* Final pthreads */
8089 pthread_attr_t attr;
8091 status = pthread_attr_init(&attr);
8092 if( status ) return status;
8094 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8096 #if defined( PTHREAD_CREATE_JOINABLE )
8097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8102 #ifdef PTHREAD_CREATE_DETACHED
8104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8107 if( status ) return status;
8110 status = pthread_create( &t, &attr, task, NULL );
8111 if( status ) return status;
8113 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8115 /* give thread a chance to complete */
8116 /* it should remain joinable and hence detachable */
8119 status = pthread_detach( t );
8120 if( status ) return status;
8125 /* Draft 4 pthreads */
8126 status = pthread_create( &t, pthread_attr_default, task, NULL );
8127 if( status ) return status;
8130 /* give thread a chance to complete */
8131 /* it should remain joinable and hence detachable */
8134 status = pthread_detach( &t );
8135 if( status ) return status;
8139 #ifdef HAVE_LINUX_THREADS
8140 pthread_kill_other_threads_np();
8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8150 ol_cv_pthread_pthreads=yes
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8155 ol_cv_pthread_pthreads=no
8166 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8168 if test $ol_cv_pthread_pthreads = yes ; then
8169 ol_link_pthreads="-pthreads"
8170 ol_link_threads=posix
8174 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8175 if test "$ol_link_threads" = no ; then
8177 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8178 echo "configure:8179: checking for pthread link with -mthreads" >&5
8179 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8185 LIBS="-mthreads $LIBS"
8187 if test "$cross_compiling" = yes; then
8188 cat > conftest.$ac_ext <<EOF
8189 #line 8190 "configure"
8190 #include "confdefs.h"
8191 /* pthread test headers */
8192 #include <pthread.h>
8194 #define NULL (void*)0
8197 static void *task(p)
8200 return (void *) (p == NULL);
8205 /* pthread test function */
8210 #ifdef HAVE_PTHREADS_FINAL
8211 /* Final pthreads */
8212 pthread_attr_t attr;
8214 status = pthread_attr_init(&attr);
8215 if( status ) return status;
8217 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8219 #if defined( PTHREAD_CREATE_JOINABLE )
8220 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8225 #ifdef PTHREAD_CREATE_DETACHED
8227 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8230 if( status ) return status;
8233 status = pthread_create( &t, &attr, task, NULL );
8234 if( status ) return status;
8236 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8238 /* give thread a chance to complete */
8239 /* it should remain joinable and hence detachable */
8242 status = pthread_detach( t );
8243 if( status ) return status;
8248 /* Draft 4 pthreads */
8249 status = pthread_create( &t, pthread_attr_default, task, NULL );
8250 if( status ) return status;
8253 /* give thread a chance to complete */
8254 /* it should remain joinable and hence detachable */
8257 status = pthread_detach( &t );
8258 if( status ) return status;
8262 #ifdef HAVE_LINUX_THREADS
8263 pthread_kill_other_threads_np();
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8272 ol_cv_pthread_mthreads=yes
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 ol_cv_pthread_mthreads=no
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 /* pthread test headers */
8285 #include <pthread.h>
8287 #define NULL (void*)0
8290 static void *task(p)
8293 return (void *) (p == NULL);
8297 int main(argc, argv)
8302 /* pthread test function */
8307 #ifdef HAVE_PTHREADS_FINAL
8308 /* Final pthreads */
8309 pthread_attr_t attr;
8311 status = pthread_attr_init(&attr);
8312 if( status ) return status;
8314 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8316 #if defined( PTHREAD_CREATE_JOINABLE )
8317 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8319 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8322 #ifdef PTHREAD_CREATE_DETACHED
8324 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8327 if( status ) return status;
8330 status = pthread_create( &t, &attr, task, NULL );
8331 if( status ) return status;
8333 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8335 /* give thread a chance to complete */
8336 /* it should remain joinable and hence detachable */
8339 status = pthread_detach( t );
8340 if( status ) return status;
8345 /* Draft 4 pthreads */
8346 status = pthread_create( &t, pthread_attr_default, task, NULL );
8347 if( status ) return status;
8350 /* give thread a chance to complete */
8351 /* it should remain joinable and hence detachable */
8354 status = pthread_detach( &t );
8355 if( status ) return status;
8359 #ifdef HAVE_LINUX_THREADS
8360 pthread_kill_other_threads_np();
8368 if { (eval echo configure:8369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8370 ol_cv_pthread_mthreads=yes
8372 echo "configure: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8375 ol_cv_pthread_mthreads=no
8386 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8388 if test $ol_cv_pthread_mthreads = yes ; then
8389 ol_link_pthreads="-mthreads"
8390 ol_link_threads=posix
8394 # Pthread try link: -thread (ol_cv_pthread_thread)
8395 if test "$ol_link_threads" = no ; then
8397 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8398 echo "configure:8399: checking for pthread link with -thread" >&5
8399 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8405 LIBS="-thread $LIBS"
8407 if test "$cross_compiling" = yes; then
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* pthread test headers */
8412 #include <pthread.h>
8414 #define NULL (void*)0
8417 static void *task(p)
8420 return (void *) (p == NULL);
8425 /* pthread test function */
8430 #ifdef HAVE_PTHREADS_FINAL
8431 /* Final pthreads */
8432 pthread_attr_t attr;
8434 status = pthread_attr_init(&attr);
8435 if( status ) return status;
8437 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8439 #if defined( PTHREAD_CREATE_JOINABLE )
8440 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8445 #ifdef PTHREAD_CREATE_DETACHED
8447 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8450 if( status ) return status;
8453 status = pthread_create( &t, &attr, task, NULL );
8454 if( status ) return status;
8456 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8458 /* give thread a chance to complete */
8459 /* it should remain joinable and hence detachable */
8462 status = pthread_detach( t );
8463 if( status ) return status;
8468 /* Draft 4 pthreads */
8469 status = pthread_create( &t, pthread_attr_default, task, NULL );
8470 if( status ) return status;
8473 /* give thread a chance to complete */
8474 /* it should remain joinable and hence detachable */
8477 status = pthread_detach( &t );
8478 if( status ) return status;
8482 #ifdef HAVE_LINUX_THREADS
8483 pthread_kill_other_threads_np();
8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8492 ol_cv_pthread_thread=yes
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8497 ol_cv_pthread_thread=no
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8504 /* pthread test headers */
8505 #include <pthread.h>
8507 #define NULL (void*)0
8510 static void *task(p)
8513 return (void *) (p == NULL);
8517 int main(argc, argv)
8522 /* pthread test function */
8527 #ifdef HAVE_PTHREADS_FINAL
8528 /* Final pthreads */
8529 pthread_attr_t attr;
8531 status = pthread_attr_init(&attr);
8532 if( status ) return status;
8534 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8536 #if defined( PTHREAD_CREATE_JOINABLE )
8537 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8539 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8542 #ifdef PTHREAD_CREATE_DETACHED
8544 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8547 if( status ) return status;
8550 status = pthread_create( &t, &attr, task, NULL );
8551 if( status ) return status;
8553 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8555 /* give thread a chance to complete */
8556 /* it should remain joinable and hence detachable */
8559 status = pthread_detach( t );
8560 if( status ) return status;
8565 /* Draft 4 pthreads */
8566 status = pthread_create( &t, pthread_attr_default, task, NULL );
8567 if( status ) return status;
8570 /* give thread a chance to complete */
8571 /* it should remain joinable and hence detachable */
8574 status = pthread_detach( &t );
8575 if( status ) return status;
8579 #ifdef HAVE_LINUX_THREADS
8580 pthread_kill_other_threads_np();
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8590 ol_cv_pthread_thread=yes
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8595 ol_cv_pthread_thread=no
8606 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8608 if test $ol_cv_pthread_thread = yes ; then
8609 ol_link_pthreads="-thread"
8610 ol_link_threads=posix
8615 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8616 if test "$ol_link_threads" = no ; then
8617 # try -lpthread -lmach -lexc -lc_r
8618 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8619 echo "configure:8620: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8620 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8626 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8628 if test "$cross_compiling" = yes; then
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* pthread test headers */
8633 #include <pthread.h>
8635 #define NULL (void*)0
8638 static void *task(p)
8641 return (void *) (p == NULL);
8646 /* pthread test function */
8651 #ifdef HAVE_PTHREADS_FINAL
8652 /* Final pthreads */
8653 pthread_attr_t attr;
8655 status = pthread_attr_init(&attr);
8656 if( status ) return status;
8658 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8660 #if defined( PTHREAD_CREATE_JOINABLE )
8661 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8663 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8666 #ifdef PTHREAD_CREATE_DETACHED
8668 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8671 if( status ) return status;
8674 status = pthread_create( &t, &attr, task, NULL );
8675 if( status ) return status;
8677 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8679 /* give thread a chance to complete */
8680 /* it should remain joinable and hence detachable */
8683 status = pthread_detach( t );
8684 if( status ) return status;
8689 /* Draft 4 pthreads */
8690 status = pthread_create( &t, pthread_attr_default, task, NULL );
8691 if( status ) return status;
8694 /* give thread a chance to complete */
8695 /* it should remain joinable and hence detachable */
8698 status = pthread_detach( &t );
8699 if( status ) return status;
8703 #ifdef HAVE_LINUX_THREADS
8704 pthread_kill_other_threads_np();
8711 if { (eval echo configure:8712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8713 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8718 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8725 /* pthread test headers */
8726 #include <pthread.h>
8728 #define NULL (void*)0
8731 static void *task(p)
8734 return (void *) (p == NULL);
8738 int main(argc, argv)
8743 /* pthread test function */
8748 #ifdef HAVE_PTHREADS_FINAL
8749 /* Final pthreads */
8750 pthread_attr_t attr;
8752 status = pthread_attr_init(&attr);
8753 if( status ) return status;
8755 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8757 #if defined( PTHREAD_CREATE_JOINABLE )
8758 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8760 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8763 #ifdef PTHREAD_CREATE_DETACHED
8765 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8768 if( status ) return status;
8771 status = pthread_create( &t, &attr, task, NULL );
8772 if( status ) return status;
8774 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8776 /* give thread a chance to complete */
8777 /* it should remain joinable and hence detachable */
8780 status = pthread_detach( t );
8781 if( status ) return status;
8786 /* Draft 4 pthreads */
8787 status = pthread_create( &t, pthread_attr_default, task, NULL );
8788 if( status ) return status;
8791 /* give thread a chance to complete */
8792 /* it should remain joinable and hence detachable */
8795 status = pthread_detach( &t );
8796 if( status ) return status;
8800 #ifdef HAVE_LINUX_THREADS
8801 pthread_kill_other_threads_np();
8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8811 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8827 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8829 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8830 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8831 ol_link_threads=posix
8835 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8836 if test "$ol_link_threads" = no ; then
8837 # try -lpthread -lmach -lexc
8838 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8839 echo "configure:8840: checking for pthread link with -lpthread -lmach -lexc" >&5
8840 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8846 LIBS="-lpthread -lmach -lexc $LIBS"
8848 if test "$cross_compiling" = yes; then
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 /* pthread test headers */
8853 #include <pthread.h>
8855 #define NULL (void*)0
8858 static void *task(p)
8861 return (void *) (p == NULL);
8866 /* pthread test function */
8871 #ifdef HAVE_PTHREADS_FINAL
8872 /* Final pthreads */
8873 pthread_attr_t attr;
8875 status = pthread_attr_init(&attr);
8876 if( status ) return status;
8878 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8880 #if defined( PTHREAD_CREATE_JOINABLE )
8881 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8883 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8886 #ifdef PTHREAD_CREATE_DETACHED
8888 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8891 if( status ) return status;
8894 status = pthread_create( &t, &attr, task, NULL );
8895 if( status ) return status;
8897 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8899 /* give thread a chance to complete */
8900 /* it should remain joinable and hence detachable */
8903 status = pthread_detach( t );
8904 if( status ) return status;
8909 /* Draft 4 pthreads */
8910 status = pthread_create( &t, pthread_attr_default, task, NULL );
8911 if( status ) return status;
8914 /* give thread a chance to complete */
8915 /* it should remain joinable and hence detachable */
8918 status = pthread_detach( &t );
8919 if( status ) return status;
8923 #ifdef HAVE_LINUX_THREADS
8924 pthread_kill_other_threads_np();
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8933 ol_cv_pthread_lpthread_lmach_lexc=yes
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 ol_cv_pthread_lpthread_lmach_lexc=no
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 /* pthread test headers */
8946 #include <pthread.h>
8948 #define NULL (void*)0
8951 static void *task(p)
8954 return (void *) (p == NULL);
8958 int main(argc, argv)
8963 /* pthread test function */
8968 #ifdef HAVE_PTHREADS_FINAL
8969 /* Final pthreads */
8970 pthread_attr_t attr;
8972 status = pthread_attr_init(&attr);
8973 if( status ) return status;
8975 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8977 #if defined( PTHREAD_CREATE_JOINABLE )
8978 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8980 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8983 #ifdef PTHREAD_CREATE_DETACHED
8985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8988 if( status ) return status;
8991 status = pthread_create( &t, &attr, task, NULL );
8992 if( status ) return status;
8994 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8996 /* give thread a chance to complete */
8997 /* it should remain joinable and hence detachable */
9000 status = pthread_detach( t );
9001 if( status ) return status;
9006 /* Draft 4 pthreads */
9007 status = pthread_create( &t, pthread_attr_default, task, NULL );
9008 if( status ) return status;
9011 /* give thread a chance to complete */
9012 /* it should remain joinable and hence detachable */
9015 status = pthread_detach( &t );
9016 if( status ) return status;
9020 #ifdef HAVE_LINUX_THREADS
9021 pthread_kill_other_threads_np();
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9031 ol_cv_pthread_lpthread_lmach_lexc=yes
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 ol_cv_pthread_lpthread_lmach_lexc=no
9047 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9049 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9050 ol_link_pthreads="-lpthread -lmach -lexc"
9051 ol_link_threads=posix
9056 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9057 if test "$ol_link_threads" = no ; then
9058 # try -lpthread -Wl,-woff,85
9059 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9060 echo "configure:9061: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9061 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9067 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9069 if test "$cross_compiling" = yes; then
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9073 /* pthread test headers */
9074 #include <pthread.h>
9076 #define NULL (void*)0
9079 static void *task(p)
9082 return (void *) (p == NULL);
9087 /* pthread test function */
9092 #ifdef HAVE_PTHREADS_FINAL
9093 /* Final pthreads */
9094 pthread_attr_t attr;
9096 status = pthread_attr_init(&attr);
9097 if( status ) return status;
9099 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9101 #if defined( PTHREAD_CREATE_JOINABLE )
9102 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9107 #ifdef PTHREAD_CREATE_DETACHED
9109 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9112 if( status ) return status;
9115 status = pthread_create( &t, &attr, task, NULL );
9116 if( status ) return status;
9118 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9120 /* give thread a chance to complete */
9121 /* it should remain joinable and hence detachable */
9124 status = pthread_detach( t );
9125 if( status ) return status;
9130 /* Draft 4 pthreads */
9131 status = pthread_create( &t, pthread_attr_default, task, NULL );
9132 if( status ) return status;
9135 /* give thread a chance to complete */
9136 /* it should remain joinable and hence detachable */
9139 status = pthread_detach( &t );
9140 if( status ) return status;
9144 #ifdef HAVE_LINUX_THREADS
9145 pthread_kill_other_threads_np();
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154 ol_cv_pthread_lib_lpthread_woff=yes
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 ol_cv_pthread_lib_lpthread_woff=no
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 /* pthread test headers */
9167 #include <pthread.h>
9169 #define NULL (void*)0
9172 static void *task(p)
9175 return (void *) (p == NULL);
9179 int main(argc, argv)
9184 /* pthread test function */
9189 #ifdef HAVE_PTHREADS_FINAL
9190 /* Final pthreads */
9191 pthread_attr_t attr;
9193 status = pthread_attr_init(&attr);
9194 if( status ) return status;
9196 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9198 #if defined( PTHREAD_CREATE_JOINABLE )
9199 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9201 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9204 #ifdef PTHREAD_CREATE_DETACHED
9206 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9209 if( status ) return status;
9212 status = pthread_create( &t, &attr, task, NULL );
9213 if( status ) return status;
9215 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9217 /* give thread a chance to complete */
9218 /* it should remain joinable and hence detachable */
9221 status = pthread_detach( t );
9222 if( status ) return status;
9227 /* Draft 4 pthreads */
9228 status = pthread_create( &t, pthread_attr_default, task, NULL );
9229 if( status ) return status;
9232 /* give thread a chance to complete */
9233 /* it should remain joinable and hence detachable */
9236 status = pthread_detach( &t );
9237 if( status ) return status;
9241 #ifdef HAVE_LINUX_THREADS
9242 pthread_kill_other_threads_np();
9250 if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9252 ol_cv_pthread_lib_lpthread_woff=yes
9254 echo "configure: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9257 ol_cv_pthread_lib_lpthread_woff=no
9268 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9270 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9271 ol_link_pthreads="-lpthread -Wl,-woff,85"
9272 ol_link_threads=posix
9277 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9278 if test "$ol_link_threads" = no ; then
9280 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9281 echo "configure:9282: checking for pthread link with -lpthread" >&5
9282 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9288 LIBS="-lpthread $LIBS"
9290 if test "$cross_compiling" = yes; then
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 /* pthread test headers */
9295 #include <pthread.h>
9297 #define NULL (void*)0
9300 static void *task(p)
9303 return (void *) (p == NULL);
9308 /* pthread test function */
9313 #ifdef HAVE_PTHREADS_FINAL
9314 /* Final pthreads */
9315 pthread_attr_t attr;
9317 status = pthread_attr_init(&attr);
9318 if( status ) return status;
9320 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9322 #if defined( PTHREAD_CREATE_JOINABLE )
9323 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9325 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9328 #ifdef PTHREAD_CREATE_DETACHED
9330 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9333 if( status ) return status;
9336 status = pthread_create( &t, &attr, task, NULL );
9337 if( status ) return status;
9339 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9341 /* give thread a chance to complete */
9342 /* it should remain joinable and hence detachable */
9345 status = pthread_detach( t );
9346 if( status ) return status;
9351 /* Draft 4 pthreads */
9352 status = pthread_create( &t, pthread_attr_default, task, NULL );
9353 if( status ) return status;
9356 /* give thread a chance to complete */
9357 /* it should remain joinable and hence detachable */
9360 status = pthread_detach( &t );
9361 if( status ) return status;
9365 #ifdef HAVE_LINUX_THREADS
9366 pthread_kill_other_threads_np();
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 ol_cv_pthread_lpthread=yes
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9380 ol_cv_pthread_lpthread=no
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 /* pthread test headers */
9388 #include <pthread.h>
9390 #define NULL (void*)0
9393 static void *task(p)
9396 return (void *) (p == NULL);
9400 int main(argc, argv)
9405 /* pthread test function */
9410 #ifdef HAVE_PTHREADS_FINAL
9411 /* Final pthreads */
9412 pthread_attr_t attr;
9414 status = pthread_attr_init(&attr);
9415 if( status ) return status;
9417 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9419 #if defined( PTHREAD_CREATE_JOINABLE )
9420 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9422 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9425 #ifdef PTHREAD_CREATE_DETACHED
9427 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9430 if( status ) return status;
9433 status = pthread_create( &t, &attr, task, NULL );
9434 if( status ) return status;
9436 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9438 /* give thread a chance to complete */
9439 /* it should remain joinable and hence detachable */
9442 status = pthread_detach( t );
9443 if( status ) return status;
9448 /* Draft 4 pthreads */
9449 status = pthread_create( &t, pthread_attr_default, task, NULL );
9450 if( status ) return status;
9453 /* give thread a chance to complete */
9454 /* it should remain joinable and hence detachable */
9457 status = pthread_detach( &t );
9458 if( status ) return status;
9462 #ifdef HAVE_LINUX_THREADS
9463 pthread_kill_other_threads_np();
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9473 ol_cv_pthread_lpthread=yes
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9478 ol_cv_pthread_lpthread=no
9489 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9491 if test $ol_cv_pthread_lpthread = yes ; then
9492 ol_link_pthreads="-lpthread"
9493 ol_link_threads=posix
9497 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9498 if test "$ol_link_threads" = no ; then
9500 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9501 echo "configure:9502: checking for pthread link with -lc_r" >&5
9502 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9510 if test "$cross_compiling" = yes; then
9511 cat > conftest.$ac_ext <<EOF
9512 #line 9513 "configure"
9513 #include "confdefs.h"
9514 /* pthread test headers */
9515 #include <pthread.h>
9517 #define NULL (void*)0
9520 static void *task(p)
9523 return (void *) (p == NULL);
9528 /* pthread test function */
9533 #ifdef HAVE_PTHREADS_FINAL
9534 /* Final pthreads */
9535 pthread_attr_t attr;
9537 status = pthread_attr_init(&attr);
9538 if( status ) return status;
9540 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9542 #if defined( PTHREAD_CREATE_JOINABLE )
9543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9545 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9548 #ifdef PTHREAD_CREATE_DETACHED
9550 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9553 if( status ) return status;
9556 status = pthread_create( &t, &attr, task, NULL );
9557 if( status ) return status;
9559 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9561 /* give thread a chance to complete */
9562 /* it should remain joinable and hence detachable */
9565 status = pthread_detach( t );
9566 if( status ) return status;
9571 /* Draft 4 pthreads */
9572 status = pthread_create( &t, pthread_attr_default, task, NULL );
9573 if( status ) return status;
9576 /* give thread a chance to complete */
9577 /* it should remain joinable and hence detachable */
9580 status = pthread_detach( &t );
9581 if( status ) return status;
9585 #ifdef HAVE_LINUX_THREADS
9586 pthread_kill_other_threads_np();
9593 if { (eval echo configure:9594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9595 ol_cv_pthread_lc_r=yes
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9600 ol_cv_pthread_lc_r=no
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 /* pthread test headers */
9608 #include <pthread.h>
9610 #define NULL (void*)0
9613 static void *task(p)
9616 return (void *) (p == NULL);
9620 int main(argc, argv)
9625 /* pthread test function */
9630 #ifdef HAVE_PTHREADS_FINAL
9631 /* Final pthreads */
9632 pthread_attr_t attr;
9634 status = pthread_attr_init(&attr);
9635 if( status ) return status;
9637 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9639 #if defined( PTHREAD_CREATE_JOINABLE )
9640 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9642 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9645 #ifdef PTHREAD_CREATE_DETACHED
9647 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9650 if( status ) return status;
9653 status = pthread_create( &t, &attr, task, NULL );
9654 if( status ) return status;
9656 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9658 /* give thread a chance to complete */
9659 /* it should remain joinable and hence detachable */
9662 status = pthread_detach( t );
9663 if( status ) return status;
9668 /* Draft 4 pthreads */
9669 status = pthread_create( &t, pthread_attr_default, task, NULL );
9670 if( status ) return status;
9673 /* give thread a chance to complete */
9674 /* it should remain joinable and hence detachable */
9677 status = pthread_detach( &t );
9678 if( status ) return status;
9682 #ifdef HAVE_LINUX_THREADS
9683 pthread_kill_other_threads_np();
9691 if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9693 ol_cv_pthread_lc_r=yes
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9698 ol_cv_pthread_lc_r=no
9709 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9711 if test $ol_cv_pthread_lc_r = yes ; then
9712 ol_link_pthreads="-lc_r"
9713 ol_link_threads=posix
9718 # Pthread try link: -threads (ol_cv_pthread_threads)
9719 if test "$ol_link_threads" = no ; then
9721 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9722 echo "configure:9723: checking for pthread link with -threads" >&5
9723 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9729 LIBS="-threads $LIBS"
9731 if test "$cross_compiling" = yes; then
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 /* pthread test headers */
9736 #include <pthread.h>
9738 #define NULL (void*)0
9741 static void *task(p)
9744 return (void *) (p == NULL);
9749 /* pthread test function */
9754 #ifdef HAVE_PTHREADS_FINAL
9755 /* Final pthreads */
9756 pthread_attr_t attr;
9758 status = pthread_attr_init(&attr);
9759 if( status ) return status;
9761 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9763 #if defined( PTHREAD_CREATE_JOINABLE )
9764 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9766 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9769 #ifdef PTHREAD_CREATE_DETACHED
9771 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9774 if( status ) return status;
9777 status = pthread_create( &t, &attr, task, NULL );
9778 if( status ) return status;
9780 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9782 /* give thread a chance to complete */
9783 /* it should remain joinable and hence detachable */
9786 status = pthread_detach( t );
9787 if( status ) return status;
9792 /* Draft 4 pthreads */
9793 status = pthread_create( &t, pthread_attr_default, task, NULL );
9794 if( status ) return status;
9797 /* give thread a chance to complete */
9798 /* it should remain joinable and hence detachable */
9801 status = pthread_detach( &t );
9802 if( status ) return status;
9806 #ifdef HAVE_LINUX_THREADS
9807 pthread_kill_other_threads_np();
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9816 ol_cv_pthread_threads=yes
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9821 ol_cv_pthread_threads=no
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 /* pthread test headers */
9829 #include <pthread.h>
9831 #define NULL (void*)0
9834 static void *task(p)
9837 return (void *) (p == NULL);
9841 int main(argc, argv)
9846 /* pthread test function */
9851 #ifdef HAVE_PTHREADS_FINAL
9852 /* Final pthreads */
9853 pthread_attr_t attr;
9855 status = pthread_attr_init(&attr);
9856 if( status ) return status;
9858 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9860 #if defined( PTHREAD_CREATE_JOINABLE )
9861 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9863 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9866 #ifdef PTHREAD_CREATE_DETACHED
9868 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9871 if( status ) return status;
9874 status = pthread_create( &t, &attr, task, NULL );
9875 if( status ) return status;
9877 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9879 /* give thread a chance to complete */
9880 /* it should remain joinable and hence detachable */
9883 status = pthread_detach( t );
9884 if( status ) return status;
9889 /* Draft 4 pthreads */
9890 status = pthread_create( &t, pthread_attr_default, task, NULL );
9891 if( status ) return status;
9894 /* give thread a chance to complete */
9895 /* it should remain joinable and hence detachable */
9898 status = pthread_detach( &t );
9899 if( status ) return status;
9903 #ifdef HAVE_LINUX_THREADS
9904 pthread_kill_other_threads_np();
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9914 ol_cv_pthread_threads=yes
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9919 ol_cv_pthread_threads=no
9930 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9932 if test $ol_cv_pthread_threads = yes ; then
9933 ol_link_pthreads="-threads"
9934 ol_link_threads=posix
9939 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9940 if test "$ol_link_threads" = no ; then
9941 # try -lpthreads -lmach -lexc -lc_r
9942 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9943 echo "configure:9944: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9944 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9950 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9952 if test "$cross_compiling" = yes; then
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9956 /* pthread test headers */
9957 #include <pthread.h>
9959 #define NULL (void*)0
9962 static void *task(p)
9965 return (void *) (p == NULL);
9970 /* pthread test function */
9975 #ifdef HAVE_PTHREADS_FINAL
9976 /* Final pthreads */
9977 pthread_attr_t attr;
9979 status = pthread_attr_init(&attr);
9980 if( status ) return status;
9982 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9984 #if defined( PTHREAD_CREATE_JOINABLE )
9985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9987 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9990 #ifdef PTHREAD_CREATE_DETACHED
9992 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9995 if( status ) return status;
9998 status = pthread_create( &t, &attr, task, NULL );
9999 if( status ) return status;
10001 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10003 /* give thread a chance to complete */
10004 /* it should remain joinable and hence detachable */
10007 status = pthread_detach( t );
10008 if( status ) return status;
10013 /* Draft 4 pthreads */
10014 status = pthread_create( &t, pthread_attr_default, task, NULL );
10015 if( status ) return status;
10018 /* give thread a chance to complete */
10019 /* it should remain joinable and hence detachable */
10022 status = pthread_detach( &t );
10023 if( status ) return status;
10027 #ifdef HAVE_LINUX_THREADS
10028 pthread_kill_other_threads_np();
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10042 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 /* pthread test headers */
10050 #include <pthread.h>
10052 #define NULL (void*)0
10055 static void *task(p)
10058 return (void *) (p == NULL);
10062 int main(argc, argv)
10067 /* pthread test function */
10072 #ifdef HAVE_PTHREADS_FINAL
10073 /* Final pthreads */
10074 pthread_attr_t attr;
10076 status = pthread_attr_init(&attr);
10077 if( status ) return status;
10079 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10081 #if defined( PTHREAD_CREATE_JOINABLE )
10082 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10084 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10087 #ifdef PTHREAD_CREATE_DETACHED
10089 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10092 if( status ) return status;
10095 status = pthread_create( &t, &attr, task, NULL );
10096 if( status ) return status;
10098 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10100 /* give thread a chance to complete */
10101 /* it should remain joinable and hence detachable */
10104 status = pthread_detach( t );
10105 if( status ) return status;
10110 /* Draft 4 pthreads */
10111 status = pthread_create( &t, pthread_attr_default, task, NULL );
10112 if( status ) return status;
10115 /* give thread a chance to complete */
10116 /* it should remain joinable and hence detachable */
10119 status = pthread_detach( &t );
10120 if( status ) return status;
10124 #ifdef HAVE_LINUX_THREADS
10125 pthread_kill_other_threads_np();
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10135 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10151 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10153 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10154 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10155 ol_link_threads=posix
10159 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10160 if test "$ol_link_threads" = no ; then
10161 # try -lpthreads -lmach -lexc
10162 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10163 echo "configure:10164: checking for pthread link with -lpthreads -lmach -lexc" >&5
10164 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10170 LIBS="-lpthreads -lmach -lexc $LIBS"
10172 if test "$cross_compiling" = yes; then
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 /* pthread test headers */
10177 #include <pthread.h>
10179 #define NULL (void*)0
10182 static void *task(p)
10185 return (void *) (p == NULL);
10190 /* pthread test function */
10195 #ifdef HAVE_PTHREADS_FINAL
10196 /* Final pthreads */
10197 pthread_attr_t attr;
10199 status = pthread_attr_init(&attr);
10200 if( status ) return status;
10202 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10204 #if defined( PTHREAD_CREATE_JOINABLE )
10205 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10207 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10210 #ifdef PTHREAD_CREATE_DETACHED
10212 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10215 if( status ) return status;
10218 status = pthread_create( &t, &attr, task, NULL );
10219 if( status ) return status;
10221 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10223 /* give thread a chance to complete */
10224 /* it should remain joinable and hence detachable */
10227 status = pthread_detach( t );
10228 if( status ) return status;
10233 /* Draft 4 pthreads */
10234 status = pthread_create( &t, pthread_attr_default, task, NULL );
10235 if( status ) return status;
10238 /* give thread a chance to complete */
10239 /* it should remain joinable and hence detachable */
10242 status = pthread_detach( &t );
10243 if( status ) return status;
10247 #ifdef HAVE_LINUX_THREADS
10248 pthread_kill_other_threads_np();
10255 if { (eval echo configure:10256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10257 ol_cv_pthread_lpthreads_lmach_lexc=yes
10259 echo "configure: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10262 ol_cv_pthread_lpthreads_lmach_lexc=no
10266 cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10269 /* pthread test headers */
10270 #include <pthread.h>
10272 #define NULL (void*)0
10275 static void *task(p)
10278 return (void *) (p == NULL);
10282 int main(argc, argv)
10287 /* pthread test function */
10292 #ifdef HAVE_PTHREADS_FINAL
10293 /* Final pthreads */
10294 pthread_attr_t attr;
10296 status = pthread_attr_init(&attr);
10297 if( status ) return status;
10299 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10301 #if defined( PTHREAD_CREATE_JOINABLE )
10302 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10304 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10307 #ifdef PTHREAD_CREATE_DETACHED
10309 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10312 if( status ) return status;
10315 status = pthread_create( &t, &attr, task, NULL );
10316 if( status ) return status;
10318 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10320 /* give thread a chance to complete */
10321 /* it should remain joinable and hence detachable */
10324 status = pthread_detach( t );
10325 if( status ) return status;
10330 /* Draft 4 pthreads */
10331 status = pthread_create( &t, pthread_attr_default, task, NULL );
10332 if( status ) return status;
10335 /* give thread a chance to complete */
10336 /* it should remain joinable and hence detachable */
10339 status = pthread_detach( &t );
10340 if( status ) return status;
10344 #ifdef HAVE_LINUX_THREADS
10345 pthread_kill_other_threads_np();
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10355 ol_cv_pthread_lpthreads_lmach_lexc=yes
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 ol_cv_pthread_lpthreads_lmach_lexc=no
10371 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10373 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10374 ol_link_pthreads="-lpthreads -lmach -lexc"
10375 ol_link_threads=posix
10379 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10380 if test "$ol_link_threads" = no ; then
10381 # try -lpthreads -lexc
10382 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10383 echo "configure:10384: checking for pthread link with -lpthreads -lexc" >&5
10384 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10385 echo $ac_n "(cached) $ac_c" 1>&6
10390 LIBS="-lpthreads -lexc $LIBS"
10392 if test "$cross_compiling" = yes; then
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure"
10395 #include "confdefs.h"
10396 /* pthread test headers */
10397 #include <pthread.h>
10399 #define NULL (void*)0
10402 static void *task(p)
10405 return (void *) (p == NULL);
10410 /* pthread test function */
10415 #ifdef HAVE_PTHREADS_FINAL
10416 /* Final pthreads */
10417 pthread_attr_t attr;
10419 status = pthread_attr_init(&attr);
10420 if( status ) return status;
10422 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10424 #if defined( PTHREAD_CREATE_JOINABLE )
10425 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10427 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10430 #ifdef PTHREAD_CREATE_DETACHED
10432 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10435 if( status ) return status;
10438 status = pthread_create( &t, &attr, task, NULL );
10439 if( status ) return status;
10441 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10443 /* give thread a chance to complete */
10444 /* it should remain joinable and hence detachable */
10447 status = pthread_detach( t );
10448 if( status ) return status;
10453 /* Draft 4 pthreads */
10454 status = pthread_create( &t, pthread_attr_default, task, NULL );
10455 if( status ) return status;
10458 /* give thread a chance to complete */
10459 /* it should remain joinable and hence detachable */
10462 status = pthread_detach( &t );
10463 if( status ) return status;
10467 #ifdef HAVE_LINUX_THREADS
10468 pthread_kill_other_threads_np();
10475 if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10477 ol_cv_pthread_lpthreads_lexc=yes
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10482 ol_cv_pthread_lpthreads_lexc=no
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10489 /* pthread test headers */
10490 #include <pthread.h>
10492 #define NULL (void*)0
10495 static void *task(p)
10498 return (void *) (p == NULL);
10502 int main(argc, argv)
10507 /* pthread test function */
10512 #ifdef HAVE_PTHREADS_FINAL
10513 /* Final pthreads */
10514 pthread_attr_t attr;
10516 status = pthread_attr_init(&attr);
10517 if( status ) return status;
10519 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10521 #if defined( PTHREAD_CREATE_JOINABLE )
10522 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10524 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10527 #ifdef PTHREAD_CREATE_DETACHED
10529 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10532 if( status ) return status;
10535 status = pthread_create( &t, &attr, task, NULL );
10536 if( status ) return status;
10538 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10540 /* give thread a chance to complete */
10541 /* it should remain joinable and hence detachable */
10544 status = pthread_detach( t );
10545 if( status ) return status;
10550 /* Draft 4 pthreads */
10551 status = pthread_create( &t, pthread_attr_default, task, NULL );
10552 if( status ) return status;
10555 /* give thread a chance to complete */
10556 /* it should remain joinable and hence detachable */
10559 status = pthread_detach( &t );
10560 if( status ) return status;
10564 #ifdef HAVE_LINUX_THREADS
10565 pthread_kill_other_threads_np();
10573 if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10575 ol_cv_pthread_lpthreads_lexc=yes
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10580 ol_cv_pthread_lpthreads_lexc=no
10591 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10593 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10594 ol_link_pthreads="-lpthreads -lexc"
10595 ol_link_threads=posix
10600 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10601 if test "$ol_link_threads" = no ; then
10603 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10604 echo "configure:10605: checking for pthread link with -lpthreads" >&5
10605 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10611 LIBS="-lpthreads $LIBS"
10613 if test "$cross_compiling" = yes; then
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10617 /* pthread test headers */
10618 #include <pthread.h>
10620 #define NULL (void*)0
10623 static void *task(p)
10626 return (void *) (p == NULL);
10631 /* pthread test function */
10636 #ifdef HAVE_PTHREADS_FINAL
10637 /* Final pthreads */
10638 pthread_attr_t attr;
10640 status = pthread_attr_init(&attr);
10641 if( status ) return status;
10643 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10645 #if defined( PTHREAD_CREATE_JOINABLE )
10646 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10648 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10651 #ifdef PTHREAD_CREATE_DETACHED
10653 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10656 if( status ) return status;
10659 status = pthread_create( &t, &attr, task, NULL );
10660 if( status ) return status;
10662 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10664 /* give thread a chance to complete */
10665 /* it should remain joinable and hence detachable */
10668 status = pthread_detach( t );
10669 if( status ) return status;
10674 /* Draft 4 pthreads */
10675 status = pthread_create( &t, pthread_attr_default, task, NULL );
10676 if( status ) return status;
10679 /* give thread a chance to complete */
10680 /* it should remain joinable and hence detachable */
10683 status = pthread_detach( &t );
10684 if( status ) return status;
10688 #ifdef HAVE_LINUX_THREADS
10689 pthread_kill_other_threads_np();
10696 if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10698 ol_cv_pthread_lib_lpthreads=yes
10700 echo "configure: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10703 ol_cv_pthread_lib_lpthreads=no
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 /* pthread test headers */
10711 #include <pthread.h>
10713 #define NULL (void*)0
10716 static void *task(p)
10719 return (void *) (p == NULL);
10723 int main(argc, argv)
10728 /* pthread test function */
10733 #ifdef HAVE_PTHREADS_FINAL
10734 /* Final pthreads */
10735 pthread_attr_t attr;
10737 status = pthread_attr_init(&attr);
10738 if( status ) return status;
10740 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10742 #if defined( PTHREAD_CREATE_JOINABLE )
10743 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10745 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10748 #ifdef PTHREAD_CREATE_DETACHED
10750 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10753 if( status ) return status;
10756 status = pthread_create( &t, &attr, task, NULL );
10757 if( status ) return status;
10759 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10761 /* give thread a chance to complete */
10762 /* it should remain joinable and hence detachable */
10765 status = pthread_detach( t );
10766 if( status ) return status;
10771 /* Draft 4 pthreads */
10772 status = pthread_create( &t, pthread_attr_default, task, NULL );
10773 if( status ) return status;
10776 /* give thread a chance to complete */
10777 /* it should remain joinable and hence detachable */
10780 status = pthread_detach( &t );
10781 if( status ) return status;
10785 #ifdef HAVE_LINUX_THREADS
10786 pthread_kill_other_threads_np();
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10796 ol_cv_pthread_lib_lpthreads=yes
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10801 ol_cv_pthread_lib_lpthreads=no
10812 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10814 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10815 ol_link_pthreads="-lpthreads"
10816 ol_link_threads=posix
10821 if test $ol_link_threads != no ; then
10822 cat >> confdefs.h <<\EOF
10823 #define HAVE_PTHREADS 1
10827 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10829 save_CPPFLAGS="$CPPFLAGS"
10831 LIBS="$LTHREAD_LIBS $LIBS"
10833 for ac_func in sched_yield pthread_yield
10835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10836 echo "configure:10837: checking for $ac_func" >&5
10837 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10838 echo $ac_n "(cached) $ac_c" 1>&6
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843 /* System header to define __stub macros and hopefully few prototypes,
10844 which can conflict with char $ac_func(); below. */
10845 #include <assert.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. */
10854 /* The GNU C library defines this for functions which it implements
10855 to always fail with ENOSYS. Some functions are actually named
10856 something starting with __ and the normal name is an alias. */
10857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10865 if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867 eval "ac_cv_func_$ac_func=yes"
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10872 eval "ac_cv_func_$ac_func=no"
10877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10880 cat >> confdefs.h <<EOF
10881 #define $ac_tr_func 1
10885 echo "$ac_t""no" 1>&6
10890 if test $ac_cv_func_sched_yield = no -a \
10891 $ac_cv_func_pthread_yield = no ; then
10892 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10893 echo "configure:10894: checking for sched_yield in -lrt" >&5
10894 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10898 ac_save_LIBS="$LIBS"
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10906 char sched_yield();
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_lib_$ac_lib_var=no"
10922 LIBS="$ac_save_LIBS"
10925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10927 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10928 cat >> confdefs.h <<\EOF
10929 #define HAVE_SCHED_YIELD 1
10932 ac_cv_func_sched_yield=yes
10934 echo "$ac_t""no" 1>&6
10935 ac_cv_func_sched_yield=no
10939 if test $ac_cv_func_sched_yield = no -a \
10940 $ac_cv_func_pthread_yield = no ; then
10941 for ac_func in thr_yield
10943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10944 echo "configure:10945: checking for $ac_func" >&5
10945 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char $ac_func(); below. */
10953 #include <assert.h>
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 /* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975 eval "ac_cv_func_$ac_func=yes"
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10980 eval "ac_cv_func_$ac_func=no"
10985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10988 cat >> confdefs.h <<EOF
10989 #define $ac_tr_func 1
10993 echo "$ac_t""no" 1>&6
10998 if test $ac_cv_func_sched_yield = no -a \
10999 $ac_cv_func_pthread_yield = no -a \
11000 "$ac_cv_func_thr_yield" = no ; then
11001 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11004 for ac_func in pthread_kill pthread_rwlock_destroy
11006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11007 echo "configure:11008: checking for $ac_func" >&5
11008 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 /* System header to define __stub macros and hopefully few prototypes,
11015 which can conflict with char $ac_func(); below. */
11016 #include <assert.h>
11017 /* Override any gcc2 internal prototype to avoid an error. */
11018 /* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11036 if { (eval echo configure:11037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11038 eval "ac_cv_func_$ac_func=yes"
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11043 eval "ac_cv_func_$ac_func=no"
11048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11051 cat >> confdefs.h <<EOF
11052 #define $ac_tr_func 1
11056 echo "$ac_t""no" 1>&6
11061 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11062 echo "configure:11063: checking for pthread_detach with <pthread.h>" >&5
11063 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11064 echo $ac_n "(cached) $ac_c" 1>&6
11067 cat > conftest.$ac_ext <<EOF
11068 #line 11069 "configure"
11069 #include "confdefs.h"
11071 #include <pthread.h>
11073 #define NULL (void*)0
11077 pthread_detach(NULL);
11080 if { (eval echo configure:11081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11082 ol_cv_func_pthread_detach=yes
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11087 ol_cv_func_pthread_detach=no
11093 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11095 if test $ol_cv_func_pthread_detach = no ; then
11096 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11099 cat >> confdefs.h <<\EOF
11100 #define HAVE_PTHREAD_DETACH 1
11105 pthread_setconcurrency \
11106 pthread_getconcurrency \
11107 thr_setconcurrency \
11108 thr_getconcurrency \
11111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11112 echo "configure:11113: checking for $ac_func" >&5
11113 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* System header to define __stub macros and hopefully few prototypes,
11120 which can conflict with char $ac_func(); below. */
11121 #include <assert.h>
11122 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11130 /* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 eval "ac_cv_func_$ac_func=yes"
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 eval "ac_cv_func_$ac_func=no"
11153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11154 echo "$ac_t""yes" 1>&6
11155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11156 cat >> confdefs.h <<EOF
11157 #define $ac_tr_func 1
11161 echo "$ac_t""no" 1>&6
11167 for ac_func in pthread_kill_other_threads_np
11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11170 echo "configure:11171: checking for $ac_func" >&5
11171 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11177 /* System header to define __stub macros and hopefully few prototypes,
11178 which can conflict with char $ac_func(); below. */
11179 #include <assert.h>
11180 /* Override any gcc2 internal prototype to avoid an error. */
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11188 /* The GNU C library defines this for functions which it implements
11189 to always fail with ENOSYS. Some functions are actually named
11190 something starting with __ and the normal name is an alias. */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11201 eval "ac_cv_func_$ac_func=yes"
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11206 eval "ac_cv_func_$ac_func=no"
11211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11214 cat >> confdefs.h <<EOF
11215 #define $ac_tr_func 1
11219 echo "$ac_t""no" 1>&6
11223 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11224 echo "configure:11225: checking for LinuxThreads implementation" >&5
11225 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11228 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11231 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11236 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11237 echo "configure:11238: checking for LinuxThreads consistency" >&5
11238 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11242 if test $ol_cv_header_linux_threads = yes -a \
11243 $ol_cv_sys_linux_threads = yes; then
11244 ol_cv_linux_threads=yes
11245 elif test $ol_cv_header_linux_threads = no -a \
11246 $ol_cv_sys_linux_threads = no; then
11247 ol_cv_linux_threads=no
11249 ol_cv_linux_threads=error
11254 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11257 if test $ol_cv_linux_threads = error; then
11258 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11261 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11262 echo "configure:11263: checking if pthread_create() works" >&5
11263 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11267 if test "$cross_compiling" = yes; then
11268 ol_cv_pthread_create_works=yes
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 /* pthread test headers */
11274 #include <pthread.h>
11276 #define NULL (void*)0
11279 static void *task(p)
11282 return (void *) (p == NULL);
11286 int main(argc, argv)
11291 /* pthread test function */
11296 #ifdef HAVE_PTHREADS_FINAL
11297 /* Final pthreads */
11298 pthread_attr_t attr;
11300 status = pthread_attr_init(&attr);
11301 if( status ) return status;
11303 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11305 #if defined( PTHREAD_CREATE_JOINABLE )
11306 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11308 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11311 #ifdef PTHREAD_CREATE_DETACHED
11313 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11316 if( status ) return status;
11319 status = pthread_create( &t, &attr, task, NULL );
11320 if( status ) return status;
11322 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11324 /* give thread a chance to complete */
11325 /* it should remain joinable and hence detachable */
11328 status = pthread_detach( t );
11329 if( status ) return status;
11334 /* Draft 4 pthreads */
11335 status = pthread_create( &t, pthread_attr_default, task, NULL );
11336 if( status ) return status;
11339 /* give thread a chance to complete */
11340 /* it should remain joinable and hence detachable */
11343 status = pthread_detach( &t );
11344 if( status ) return status;
11348 #ifdef HAVE_LINUX_THREADS
11349 pthread_kill_other_threads_np();
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11359 ol_cv_pthread_create_works=yes
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 ol_cv_pthread_create_works=no
11371 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11373 if test $ol_cv_pthread_create_works = no ; then
11374 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11377 if test $ol_with_yielding_select = auto ; then
11378 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11379 echo "configure:11380: checking if select yields when using pthreads" >&5
11380 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11384 if test "$cross_compiling" = yes; then
11385 ol_cv_pthread_select_yields=cross
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11391 #include <sys/types.h>
11392 #include <sys/time.h>
11393 #include <unistd.h>
11394 #include <pthread.h>
11396 #define NULL (void*) 0
11399 static int fildes[2];
11401 static void *task(p)
11413 FD_SET(fildes[0], &rfds);
11415 /* we're not interested in any fds */
11416 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11423 exit(0); /* if we exit here, the select blocked the whole process */
11426 int main(argc, argv)
11432 /* create a pipe to select */
11433 if(pipe(&fildes[0])) {
11438 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11439 (void) pthread_setconcurrency(2);
11441 #ifdef HAVE_THR_SETCONCURRENCY
11442 /* Set Solaris LWP concurrency to 2 */
11443 thr_setconcurrency(2);
11447 #if HAVE_PTHREADS_D4
11448 pthread_create(&t, pthread_attr_default, task, NULL);
11450 pthread_create(&t, NULL, task, NULL);
11453 #if HAVE_SCHED_YIELD
11454 sched_yield(); /* make sure task runs first */
11456 #ifdef HAVE_PTHREAD_YIELD
11457 pthread_yield(); /* make sure task runs first */
11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11466 ol_cv_pthread_select_yields=no
11468 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11471 ol_cv_pthread_select_yields=yes
11478 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11480 if test $ol_cv_pthread_select_yields = cross ; then
11481 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11484 if test $ol_cv_pthread_select_yields = yes ; then
11485 ol_with_yielding_select=yes
11489 CPPFLAGS="$save_CPPFLAGS"
11492 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11496 if test $ol_with_threads = posix ; then
11497 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11501 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11502 -o $ol_with_threads = mach ; then
11504 for ac_hdr in mach/cthreads.h cthread.h
11506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11508 echo "configure:11509: checking for $ac_hdr" >&5
11509 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11518 { (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11520 if test -z "$ac_err"; then
11522 eval "ac_cv_header_$ac_safe=yes"
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 eval "ac_cv_header_$ac_safe=no"
11532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11535 cat >> confdefs.h <<EOF
11536 #define $ac_tr_hdr 1
11540 echo "$ac_t""no" 1>&6
11544 if test $ac_cv_header_mach_cthreads_h = yes ; then
11545 ol_with_threads=found
11547 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11548 echo "configure:11549: checking for cthread_fork" >&5
11549 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11552 cat > conftest.$ac_ext <<EOF
11553 #line 11554 "configure"
11554 #include "confdefs.h"
11555 /* System header to define __stub macros and hopefully few prototypes,
11556 which can conflict with char cthread_fork(); below. */
11557 #include <assert.h>
11558 /* Override any gcc2 internal prototype to avoid an error. */
11559 /* We use char because int might match the return type of a gcc2
11560 builtin and then its argument prototype would still apply. */
11561 char cthread_fork();
11566 /* The GNU C library defines this for functions which it implements
11567 to always fail with ENOSYS. Some functions are actually named
11568 something starting with __ and the normal name is an alias. */
11569 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11577 if { (eval echo configure:11578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11579 eval "ac_cv_func_cthread_fork=yes"
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11584 eval "ac_cv_func_cthread_fork=no"
11589 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11590 echo "$ac_t""yes" 1>&6
11591 ol_link_threads=yes
11593 echo "$ac_t""no" 1>&6
11597 if test $ol_link_threads = no ; then
11598 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11599 echo "configure:11600: checking for cthread_fork with -all_load" >&5
11600 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11601 echo $ac_n "(cached) $ac_c" 1>&6
11605 LIBS="-all_load $LIBS"
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <mach/cthreads.h>
11612 cthread_fork((void *)0, (void *)0);
11616 if { (eval echo configure:11617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11618 ol_cv_cthread_all_load=yes
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11623 ol_cv_cthread_all_load=no
11630 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11632 if test $ol_cv_cthread_all_load = yes ; then
11633 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11634 ol_link_threads=mach
11638 elif test $ac_cv_header_cthreads_h = yes ; then
11640 ol_with_threads=found
11643 LIBS="$LIBS -lthreads"
11644 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11645 echo "configure:11646: checking for cthread_fork" >&5
11646 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char cthread_fork(); below. */
11654 #include <assert.h>
11655 /* Override any gcc2 internal prototype to avoid an error. */
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658 char cthread_fork();
11663 /* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11676 eval "ac_cv_func_cthread_fork=yes"
11678 echo "configure: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11681 eval "ac_cv_func_cthread_fork=no"
11686 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11687 echo "$ac_t""yes" 1>&6
11688 ol_link_threads=yes
11690 echo "$ac_t""no" 1>&6
11695 if test $ol_link_threads = yes ; then
11696 LTHREAD_LIBS="-lthreads"
11697 ol_link_threads=mach
11699 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11702 elif test $ol_with_threads = mach ; then
11703 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11706 if test $ol_link_threads = mach ; then
11707 cat >> confdefs.h <<\EOF
11708 #define HAVE_MACH_CTHREADS 1
11711 elif test $ol_with_threads = found ; then
11712 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11716 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11717 -o $ol_with_threads = pth ; then
11719 for ac_hdr in pth.h
11721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11723 echo "configure:11724: checking for $ac_hdr" >&5
11724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11725 echo $ac_n "(cached) $ac_c" 1>&6
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11733 { (eval echo configure:11734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11735 if test -z "$ac_err"; then
11737 eval "ac_cv_header_$ac_safe=yes"
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11743 eval "ac_cv_header_$ac_safe=no"
11747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11748 echo "$ac_t""yes" 1>&6
11749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11750 cat >> confdefs.h <<EOF
11751 #define $ac_tr_hdr 1
11755 echo "$ac_t""no" 1>&6
11760 if test $ac_cv_header_pth_h = yes ; then
11761 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11762 echo "configure:11763: checking for pth_version in -lpth" >&5
11763 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11767 ac_save_LIBS="$LIBS"
11769 cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11772 /* Override any gcc2 internal prototype to avoid an error. */
11773 /* We use char because int might match the return type of a gcc2
11774 builtin and then its argument prototype would still apply. */
11775 char pth_version();
11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11783 eval "ac_cv_lib_$ac_lib_var=yes"
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11788 eval "ac_cv_lib_$ac_lib_var=no"
11791 LIBS="$ac_save_LIBS"
11794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11795 echo "$ac_t""yes" 1>&6
11798 echo "$ac_t""no" 1>&6
11803 if test $have_pth = yes ; then
11804 cat >> confdefs.h <<\EOF
11805 #define HAVE_GNU_PTH 1
11808 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11809 ol_link_threads=pth
11811 if test $ol_with_yielding_select = auto ; then
11812 ol_with_yielding_select=yes
11818 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11819 -o $ol_with_threads = lwp ; then
11821 for ac_hdr in thread.h synch.h
11823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11825 echo "configure:11826: checking for $ac_hdr" >&5
11826 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11835 { (eval echo configure:11836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11837 if test -z "$ac_err"; then
11839 eval "ac_cv_header_$ac_safe=yes"
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11845 eval "ac_cv_header_$ac_safe=no"
11849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6
11851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11852 cat >> confdefs.h <<EOF
11853 #define $ac_tr_hdr 1
11857 echo "$ac_t""no" 1>&6
11861 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11862 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11863 echo "configure:11864: checking for thr_create in -lthread" >&5
11864 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11868 ac_save_LIBS="$LIBS"
11869 LIBS="-lthread $LIBS"
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 /* Override any gcc2 internal prototype to avoid an error. */
11874 /* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 eval "ac_cv_lib_$ac_lib_var=yes"
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 eval "ac_cv_lib_$ac_lib_var=no"
11892 LIBS="$ac_save_LIBS"
11895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11896 echo "$ac_t""yes" 1>&6
11899 echo "$ac_t""no" 1>&6
11904 if test $have_thr = yes ; then
11905 cat >> confdefs.h <<\EOF
11909 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11910 ol_link_threads=thr
11912 if test $ol_with_yielding_select = auto ; then
11913 ol_with_yielding_select=yes
11917 thr_setconcurrency \
11918 thr_getconcurrency \
11921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11922 echo "configure:11923: checking for $ac_func" >&5
11923 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
11926 cat > conftest.$ac_ext <<EOF
11927 #line 11928 "configure"
11928 #include "confdefs.h"
11929 /* System header to define __stub macros and hopefully few prototypes,
11930 which can conflict with char $ac_func(); below. */
11931 #include <assert.h>
11932 /* Override any gcc2 internal prototype to avoid an error. */
11933 /* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11940 /* The GNU C library defines this for functions which it implements
11941 to always fail with ENOSYS. Some functions are actually named
11942 something starting with __ and the normal name is an alias. */
11943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11951 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11953 eval "ac_cv_func_$ac_func=yes"
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11958 eval "ac_cv_func_$ac_func=no"
11963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11964 echo "$ac_t""yes" 1>&6
11965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11966 cat >> confdefs.h <<EOF
11967 #define $ac_tr_func 1
11971 echo "$ac_t""no" 1>&6
11978 for ac_hdr in lwp/lwp.h
11980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11982 echo "configure:11983: checking for $ac_hdr" >&5
11983 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11992 { (eval echo configure:11993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11994 if test -z "$ac_err"; then
11996 eval "ac_cv_header_$ac_safe=yes"
11999 echo "configure: failed program was:" >&5
12000 cat conftest.$ac_ext >&5
12002 eval "ac_cv_header_$ac_safe=no"
12006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12007 echo "$ac_t""yes" 1>&6
12008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12009 cat >> confdefs.h <<EOF
12010 #define $ac_tr_hdr 1
12014 echo "$ac_t""no" 1>&6
12018 if test $ac_cv_header_lwp_lwp_h = yes ; then
12019 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12020 echo "configure:12021: checking for lwp_create in -llwp" >&5
12021 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12025 ac_save_LIBS="$LIBS"
12027 cat > conftest.$ac_ext <<EOF
12028 #line 12029 "configure"
12029 #include "confdefs.h"
12030 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12039 if { (eval echo configure:12040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12041 eval "ac_cv_lib_$ac_lib_var=yes"
12043 echo "configure: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12046 eval "ac_cv_lib_$ac_lib_var=no"
12049 LIBS="$ac_save_LIBS"
12052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12053 echo "$ac_t""yes" 1>&6
12056 echo "$ac_t""no" 1>&6
12061 if test $have_lwp = yes ; then
12062 cat >> confdefs.h <<\EOF
12066 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12067 ol_link_threads=lwp
12069 if test $ol_with_yielding_select = auto ; then
12070 ol_with_yielding_select=no
12076 if test $ol_with_yielding_select = yes ; then
12077 cat >> confdefs.h <<\EOF
12078 #define HAVE_YIELDING_SELECT 1
12083 if test $ol_with_threads = manual ; then
12084 ol_link_threads=yes
12086 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12088 for ac_hdr in pthread.h sched.h
12090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12092 echo "configure:12093: checking for $ac_hdr" >&5
12093 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12102 { (eval echo configure:12103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12104 if test -z "$ac_err"; then
12106 eval "ac_cv_header_$ac_safe=yes"
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12112 eval "ac_cv_header_$ac_safe=no"
12116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12119 cat >> confdefs.h <<EOF
12120 #define $ac_tr_hdr 1
12124 echo "$ac_t""no" 1>&6
12128 for ac_func in sched_yield pthread_yield
12130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12131 echo "configure:12132: checking for $ac_func" >&5
12132 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12135 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func(); below. */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error. */
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12162 eval "ac_cv_func_$ac_func=yes"
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12167 eval "ac_cv_func_$ac_func=no"
12172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12173 echo "$ac_t""yes" 1>&6
12174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12175 cat >> confdefs.h <<EOF
12176 #define $ac_tr_func 1
12180 echo "$ac_t""no" 1>&6
12185 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12186 echo "configure:12187: checking for LinuxThreads pthread.h" >&5
12187 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12188 echo $ac_n "(cached) $ac_c" 1>&6
12190 cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure"
12192 #include "confdefs.h"
12193 #include <pthread.h>
12195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12196 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12198 ol_cv_header_linux_threads=yes
12201 ol_cv_header_linux_threads=no
12208 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12209 if test $ol_cv_header_linux_threads = yes; then
12210 cat >> confdefs.h <<\EOF
12211 #define HAVE_LINUX_THREADS 1
12217 for ac_hdr in mach/cthreads.h
12219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12221 echo "configure:12222: checking for $ac_hdr" >&5
12222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12223 echo $ac_n "(cached) $ac_c" 1>&6
12225 cat > conftest.$ac_ext <<EOF
12226 #line 12227 "configure"
12227 #include "confdefs.h"
12230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12231 { (eval echo configure:12232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12233 if test -z "$ac_err"; then
12235 eval "ac_cv_header_$ac_safe=yes"
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12241 eval "ac_cv_header_$ac_safe=no"
12245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12246 echo "$ac_t""yes" 1>&6
12247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12248 cat >> confdefs.h <<EOF
12249 #define $ac_tr_hdr 1
12253 echo "$ac_t""no" 1>&6
12257 for ac_hdr in lwp/lwp.h
12259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12261 echo "configure:12262: checking for $ac_hdr" >&5
12262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
12265 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure"
12267 #include "confdefs.h"
12270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12271 { (eval echo configure:12272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12273 if test -z "$ac_err"; then
12275 eval "ac_cv_header_$ac_safe=yes"
12278 echo "configure: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12281 eval "ac_cv_header_$ac_safe=no"
12285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12288 cat >> confdefs.h <<EOF
12289 #define $ac_tr_hdr 1
12293 echo "$ac_t""no" 1>&6
12297 for ac_hdr in thread.h synch.h
12299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12301 echo "configure:12302: checking for $ac_hdr" >&5
12302 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12303 echo $ac_n "(cached) $ac_c" 1>&6
12305 cat > conftest.$ac_ext <<EOF
12306 #line 12307 "configure"
12307 #include "confdefs.h"
12310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12311 { (eval echo configure:12312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12313 if test -z "$ac_err"; then
12315 eval "ac_cv_header_$ac_safe=yes"
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12321 eval "ac_cv_header_$ac_safe=no"
12325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12326 echo "$ac_t""yes" 1>&6
12327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12328 cat >> confdefs.h <<EOF
12329 #define $ac_tr_hdr 1
12333 echo "$ac_t""no" 1>&6
12339 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12340 cat >> confdefs.h <<\EOF
12341 #define REENTRANT 1
12344 cat >> confdefs.h <<\EOF
12345 #define _REENTRANT 1
12348 cat >> confdefs.h <<\EOF
12349 #define THREAD_SAFE 1
12352 cat >> confdefs.h <<\EOF
12353 #define _THREAD_SAFE 1
12356 cat >> confdefs.h <<\EOF
12357 #define THREADSAFE 1
12360 cat >> confdefs.h <<\EOF
12361 #define _THREADSAFE 1
12364 cat >> confdefs.h <<\EOF
12365 #define _SGI_MP_SOURCE 1
12369 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12370 echo "configure:12371: checking for thread specific errno" >&5
12371 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12375 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12385 ol_cv_errno_thread_specific=yes
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12390 ol_cv_errno_thread_specific=no
12396 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12398 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12399 echo "configure:12400: checking for thread specific h_errno" >&5
12400 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12414 ol_cv_h_errno_thread_specific=yes
12416 echo "configure: failed program was:" >&5
12417 cat conftest.$ac_ext >&5
12419 ol_cv_h_errno_thread_specific=no
12425 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12427 if test $ol_cv_errno_thread_specific != yes \
12428 -o $ol_cv_h_errno_thread_specific != yes ; then
12429 LIBS="$LTHREAD_LIBS $LIBS"
12435 if test $ol_link_threads = no ; then
12436 if test $ol_with_threads = yes ; then
12437 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12440 if test $ol_with_threads = auto ; then
12441 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12445 cat >> confdefs.h <<\EOF
12446 #define NO_THREADS 1
12452 if test $ol_link_threads != no ; then
12453 cat >> confdefs.h <<\EOF
12454 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12461 if test $ol_with_ldbm_api = auto \
12462 -o $ol_with_ldbm_api = berkeley \
12463 -o $ol_with_ldbm_api = bcompat ; then
12465 if test $ol_with_ldbm_api = bcompat; then \
12466 ol_cv_berkeley_db=no
12467 for ac_hdr in db_185.h db.h
12469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12471 echo "configure:12472: checking for $ac_hdr" >&5
12472 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12475 cat > conftest.$ac_ext <<EOF
12476 #line 12477 "configure"
12477 #include "confdefs.h"
12480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12481 { (eval echo configure:12482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12483 if test -z "$ac_err"; then
12485 eval "ac_cv_header_$ac_safe=yes"
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12491 eval "ac_cv_header_$ac_safe=no"
12495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12498 cat >> confdefs.h <<EOF
12499 #define $ac_tr_hdr 1
12503 echo "$ac_t""no" 1>&6
12507 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12508 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12509 echo "configure:12510: checking if Berkeley DB header compatibility" >&5
12510 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12511 echo $ac_n "(cached) $ac_c" 1>&6
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12519 # include <db_185.h>
12524 /* this check could be improved */
12525 #ifndef DB_VERSION_MAJOR
12526 # define DB_VERSION_MAJOR 1
12529 #if DB_VERSION_MAJOR == 1
12534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12535 egrep "__db_version_1" >/dev/null 2>&1; then
12537 ol_cv_header_db1=yes
12540 ol_cv_header_db1=no
12546 echo "$ac_t""$ol_cv_header_db1" 1>&6
12548 if test $ol_cv_header_db1 = yes ; then
12550 if test $ol_cv_lib_db = no ; then
12551 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12552 echo "configure:12553: checking for Berkeley DB link (default)" >&5
12553 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12554 echo $ac_n "(cached) $ac_c" 1>&6
12559 LIBS="$ol_DB_LIB $LIBS"
12561 cat > conftest.$ac_ext <<EOF
12562 #line 12563 "configure"
12563 #include "confdefs.h"
12565 #ifdef HAVE_DB_185_H
12566 # include <db_185.h>
12571 #ifndef DB_VERSION_MAJOR
12572 # define DB_VERSION_MAJOR 1
12576 #define NULL ((void*)0)
12581 #if DB_VERSION_MAJOR > 1
12584 int major, minor, patch;
12586 version = db_version( &major, &minor, &patch );
12588 if( major != DB_VERSION_MAJOR ||
12589 minor < DB_VERSION_MINOR )
12591 printf("Berkeley DB version mismatch\n"
12592 "\texpected: %s\n\tgot: %s\n",
12593 DB_VERSION_STRING, version);
12599 #if DB_VERSION_MAJOR > 2
12600 db_env_create( NULL, 0 );
12601 #elif DB_VERSION_MAJOR > 1
12602 db_appexit( NULL );
12604 (void) dbopen( NULL, 0, 0, 0, NULL);
12609 if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12624 echo "$ac_t""$ol_cv_db_none" 1>&6
12626 if test $ol_cv_db_none = yes ; then
12631 if test $ol_cv_lib_db = no ; then
12632 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12633 echo "configure:12634: checking for Berkeley DB link (-ldb)" >&5
12634 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12635 echo $ac_n "(cached) $ac_c" 1>&6
12640 LIBS="$ol_DB_LIB $LIBS"
12642 cat > conftest.$ac_ext <<EOF
12643 #line 12644 "configure"
12644 #include "confdefs.h"
12646 #ifdef HAVE_DB_185_H
12647 # include <db_185.h>
12652 #ifndef DB_VERSION_MAJOR
12653 # define DB_VERSION_MAJOR 1
12657 #define NULL ((void*)0)
12662 #if DB_VERSION_MAJOR > 1
12665 int major, minor, patch;
12667 version = db_version( &major, &minor, &patch );
12669 if( major != DB_VERSION_MAJOR ||
12670 minor < DB_VERSION_MINOR )
12672 printf("Berkeley DB version mismatch\n"
12673 "\texpected: %s\n\tgot: %s\n",
12674 DB_VERSION_STRING, version);
12680 #if DB_VERSION_MAJOR > 2
12681 db_env_create( NULL, 0 );
12682 #elif DB_VERSION_MAJOR > 1
12683 db_appexit( NULL );
12685 (void) dbopen( NULL, 0, 0, 0, NULL);
12690 if { (eval echo configure:12691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12694 echo "configure: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12705 echo "$ac_t""$ol_cv_db_db" 1>&6
12707 if test $ol_cv_db_db = yes ; then
12712 if test $ol_cv_lib_db = no ; then
12713 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12714 echo "configure:12715: checking for Berkeley DB link (-ldb3)" >&5
12715 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12721 LIBS="$ol_DB_LIB $LIBS"
12723 cat > conftest.$ac_ext <<EOF
12724 #line 12725 "configure"
12725 #include "confdefs.h"
12727 #ifdef HAVE_DB_185_H
12728 # include <db_185.h>
12733 #ifndef DB_VERSION_MAJOR
12734 # define DB_VERSION_MAJOR 1
12738 #define NULL ((void*)0)
12743 #if DB_VERSION_MAJOR > 1
12746 int major, minor, patch;
12748 version = db_version( &major, &minor, &patch );
12750 if( major != DB_VERSION_MAJOR ||
12751 minor < DB_VERSION_MINOR )
12753 printf("Berkeley DB version mismatch\n"
12754 "\texpected: %s\n\tgot: %s\n",
12755 DB_VERSION_STRING, version);
12761 #if DB_VERSION_MAJOR > 2
12762 db_env_create( NULL, 0 );
12763 #elif DB_VERSION_MAJOR > 1
12764 db_appexit( NULL );
12766 (void) dbopen( NULL, 0, 0, 0, NULL);
12771 if { (eval echo configure:12772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12786 echo "$ac_t""$ol_cv_db_db3" 1>&6
12788 if test $ol_cv_db_db3 = yes ; then
12793 if test $ol_cv_lib_db = no ; then
12794 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12795 echo "configure:12796: checking for Berkeley DB link (-ldb2)" >&5
12796 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12802 LIBS="$ol_DB_LIB $LIBS"
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12808 #ifdef HAVE_DB_185_H
12809 # include <db_185.h>
12814 #ifndef DB_VERSION_MAJOR
12815 # define DB_VERSION_MAJOR 1
12819 #define NULL ((void*)0)
12824 #if DB_VERSION_MAJOR > 1
12827 int major, minor, patch;
12829 version = db_version( &major, &minor, &patch );
12831 if( major != DB_VERSION_MAJOR ||
12832 minor < DB_VERSION_MINOR )
12834 printf("Berkeley DB version mismatch\n"
12835 "\texpected: %s\n\tgot: %s\n",
12836 DB_VERSION_STRING, version);
12842 #if DB_VERSION_MAJOR > 2
12843 db_env_create( NULL, 0 );
12844 #elif DB_VERSION_MAJOR > 1
12845 db_appexit( NULL );
12847 (void) dbopen( NULL, 0, 0, 0, NULL);
12852 if { (eval echo configure:12853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12867 echo "$ac_t""$ol_cv_db_db2" 1>&6
12869 if test $ol_cv_db_db2 = yes ; then
12874 if test $ol_cv_lib_db = no ; then
12875 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12876 echo "configure:12877: checking for Berkeley DB link (-ldb1)" >&5
12877 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12878 echo $ac_n "(cached) $ac_c" 1>&6
12883 LIBS="$ol_DB_LIB $LIBS"
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12889 #ifdef HAVE_DB_185_H
12890 # include <db_185.h>
12895 #ifndef DB_VERSION_MAJOR
12896 # define DB_VERSION_MAJOR 1
12900 #define NULL ((void*)0)
12905 #if DB_VERSION_MAJOR > 1
12908 int major, minor, patch;
12910 version = db_version( &major, &minor, &patch );
12912 if( major != DB_VERSION_MAJOR ||
12913 minor < DB_VERSION_MINOR )
12915 printf("Berkeley DB version mismatch\n"
12916 "\texpected: %s\n\tgot: %s\n",
12917 DB_VERSION_STRING, version);
12923 #if DB_VERSION_MAJOR > 2
12924 db_env_create( NULL, 0 );
12925 #elif DB_VERSION_MAJOR > 1
12926 db_appexit( NULL );
12928 (void) dbopen( NULL, 0, 0, 0, NULL);
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12948 echo "$ac_t""$ol_cv_db_db1" 1>&6
12950 if test $ol_cv_db_db1 = yes ; then
12956 if test "$ol_cv_lib_db" != no ; then
12957 ol_cv_berkeley_db=yes
12963 ol_cv_berkeley_db=no
12966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12968 echo "configure:12969: checking for $ac_hdr" >&5
12969 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12970 echo $ac_n "(cached) $ac_c" 1>&6
12972 cat > conftest.$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12978 { (eval echo configure:12979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12980 if test -z "$ac_err"; then
12982 eval "ac_cv_header_$ac_safe=yes"
12985 echo "configure: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12988 eval "ac_cv_header_$ac_safe=no"
12992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12993 echo "$ac_t""yes" 1>&6
12994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12995 cat >> confdefs.h <<EOF
12996 #define $ac_tr_hdr 1
13000 echo "$ac_t""no" 1>&6
13004 if test $ac_cv_header_db_h = yes; then
13006 if test $ol_cv_lib_db = no ; then
13007 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13008 echo "configure:13009: checking for Berkeley DB link (default)" >&5
13009 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13010 echo $ac_n "(cached) $ac_c" 1>&6
13015 LIBS="$ol_DB_LIB $LIBS"
13017 cat > conftest.$ac_ext <<EOF
13018 #line 13019 "configure"
13019 #include "confdefs.h"
13021 #ifdef HAVE_DB_185_H
13022 # include <db_185.h>
13027 #ifndef DB_VERSION_MAJOR
13028 # define DB_VERSION_MAJOR 1
13032 #define NULL ((void*)0)
13037 #if DB_VERSION_MAJOR > 1
13040 int major, minor, patch;
13042 version = db_version( &major, &minor, &patch );
13044 if( major != DB_VERSION_MAJOR ||
13045 minor < DB_VERSION_MINOR )
13047 printf("Berkeley DB version mismatch\n"
13048 "\texpected: %s\n\tgot: %s\n",
13049 DB_VERSION_STRING, version);
13055 #if DB_VERSION_MAJOR > 2
13056 db_env_create( NULL, 0 );
13057 #elif DB_VERSION_MAJOR > 1
13058 db_appexit( NULL );
13060 (void) dbopen( NULL, 0, 0, 0, NULL);
13065 if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13080 echo "$ac_t""$ol_cv_db_none" 1>&6
13082 if test $ol_cv_db_none = yes ; then
13087 if test $ol_cv_lib_db = no ; then
13088 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13089 echo "configure:13090: checking for Berkeley DB link (-ldb)" >&5
13090 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13091 echo $ac_n "(cached) $ac_c" 1>&6
13096 LIBS="$ol_DB_LIB $LIBS"
13098 cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure"
13100 #include "confdefs.h"
13102 #ifdef HAVE_DB_185_H
13103 # include <db_185.h>
13108 #ifndef DB_VERSION_MAJOR
13109 # define DB_VERSION_MAJOR 1
13113 #define NULL ((void*)0)
13118 #if DB_VERSION_MAJOR > 1
13121 int major, minor, patch;
13123 version = db_version( &major, &minor, &patch );
13125 if( major != DB_VERSION_MAJOR ||
13126 minor < DB_VERSION_MINOR )
13128 printf("Berkeley DB version mismatch\n"
13129 "\texpected: %s\n\tgot: %s\n",
13130 DB_VERSION_STRING, version);
13136 #if DB_VERSION_MAJOR > 2
13137 db_env_create( NULL, 0 );
13138 #elif DB_VERSION_MAJOR > 1
13139 db_appexit( NULL );
13141 (void) dbopen( NULL, 0, 0, 0, NULL);
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13150 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13161 echo "$ac_t""$ol_cv_db_db" 1>&6
13163 if test $ol_cv_db_db = yes ; then
13168 if test $ol_cv_lib_db = no ; then
13169 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13170 echo "configure:13171: checking for Berkeley DB link (-ldb3)" >&5
13171 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13177 LIBS="$ol_DB_LIB $LIBS"
13179 cat > conftest.$ac_ext <<EOF
13180 #line 13181 "configure"
13181 #include "confdefs.h"
13183 #ifdef HAVE_DB_185_H
13184 # include <db_185.h>
13189 #ifndef DB_VERSION_MAJOR
13190 # define DB_VERSION_MAJOR 1
13194 #define NULL ((void*)0)
13199 #if DB_VERSION_MAJOR > 1
13202 int major, minor, patch;
13204 version = db_version( &major, &minor, &patch );
13206 if( major != DB_VERSION_MAJOR ||
13207 minor < DB_VERSION_MINOR )
13209 printf("Berkeley DB version mismatch\n"
13210 "\texpected: %s\n\tgot: %s\n",
13211 DB_VERSION_STRING, version);
13217 #if DB_VERSION_MAJOR > 2
13218 db_env_create( NULL, 0 );
13219 #elif DB_VERSION_MAJOR > 1
13220 db_appexit( NULL );
13222 (void) dbopen( NULL, 0, 0, 0, NULL);
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13242 echo "$ac_t""$ol_cv_db_db3" 1>&6
13244 if test $ol_cv_db_db3 = yes ; then
13249 if test $ol_cv_lib_db = no ; then
13250 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13251 echo "configure:13252: checking for Berkeley DB link (-ldb2)" >&5
13252 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13253 echo $ac_n "(cached) $ac_c" 1>&6
13258 LIBS="$ol_DB_LIB $LIBS"
13260 cat > conftest.$ac_ext <<EOF
13261 #line 13262 "configure"
13262 #include "confdefs.h"
13264 #ifdef HAVE_DB_185_H
13265 # include <db_185.h>
13270 #ifndef DB_VERSION_MAJOR
13271 # define DB_VERSION_MAJOR 1
13275 #define NULL ((void*)0)
13280 #if DB_VERSION_MAJOR > 1
13283 int major, minor, patch;
13285 version = db_version( &major, &minor, &patch );
13287 if( major != DB_VERSION_MAJOR ||
13288 minor < DB_VERSION_MINOR )
13290 printf("Berkeley DB version mismatch\n"
13291 "\texpected: %s\n\tgot: %s\n",
13292 DB_VERSION_STRING, version);
13298 #if DB_VERSION_MAJOR > 2
13299 db_env_create( NULL, 0 );
13300 #elif DB_VERSION_MAJOR > 1
13301 db_appexit( NULL );
13303 (void) dbopen( NULL, 0, 0, 0, NULL);
13308 if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13323 echo "$ac_t""$ol_cv_db_db2" 1>&6
13325 if test $ol_cv_db_db2 = yes ; then
13330 if test $ol_cv_lib_db = no ; then
13331 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13332 echo "configure:13333: checking for Berkeley DB link (-ldb1)" >&5
13333 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13334 echo $ac_n "(cached) $ac_c" 1>&6
13339 LIBS="$ol_DB_LIB $LIBS"
13341 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure"
13343 #include "confdefs.h"
13345 #ifdef HAVE_DB_185_H
13346 # include <db_185.h>
13351 #ifndef DB_VERSION_MAJOR
13352 # define DB_VERSION_MAJOR 1
13356 #define NULL ((void*)0)
13361 #if DB_VERSION_MAJOR > 1
13364 int major, minor, patch;
13366 version = db_version( &major, &minor, &patch );
13368 if( major != DB_VERSION_MAJOR ||
13369 minor < DB_VERSION_MINOR )
13371 printf("Berkeley DB version mismatch\n"
13372 "\texpected: %s\n\tgot: %s\n",
13373 DB_VERSION_STRING, version);
13379 #if DB_VERSION_MAJOR > 2
13380 db_env_create( NULL, 0 );
13381 #elif DB_VERSION_MAJOR > 1
13382 db_appexit( NULL );
13384 (void) dbopen( NULL, 0, 0, 0, NULL);
13389 if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13404 echo "$ac_t""$ol_cv_db_db1" 1>&6
13406 if test $ol_cv_db_db1 = yes ; then
13412 if test "$ol_cv_lib_db" != no ; then
13413 ol_cv_berkeley_db=yes
13414 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13415 echo "configure:13416: checking for Berkeley DB thread support" >&5
13416 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13417 echo $ac_n "(cached) $ac_c" 1>&6
13421 if test $ol_cv_lib_db != yes ; then
13422 LIBS="$ol_cv_lib_db"
13425 if test "$cross_compiling" = yes; then
13426 ol_cv_berkeley_db_thread=cross
13428 cat > conftest.$ac_ext <<EOF
13429 #line 13430 "configure"
13430 #include "confdefs.h"
13432 #ifdef HAVE_DB_185_H
13438 #define NULL ((void *)0)
13443 u_int32_t flags = DB_CREATE |
13449 #if DB_VERSION_MAJOR > 2
13450 DB_ENV *env = NULL;
13452 rc = db_env_create( &env, 0 );
13454 flags |= DB_INIT_MPOOL;
13455 #ifdef DB_MPOOL_PRIVATE
13456 flags |= DB_MPOOL_PRIVATE;
13460 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13464 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13465 rc = env->open( env, NULL, flags, 0 );
13467 rc = env->open( env, NULL, NULL, flags, 0 );
13471 rc = env->close( env, 0 );
13475 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13481 memset( &env, '\0', sizeof(env) );
13483 rc = db_appinit( NULL, NULL, &env, flags );
13486 db_appexit( &env );
13489 unlink("__db_mpool.share");
13490 unlink("__db_lock.share");
13496 if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13498 ol_cv_berkeley_db_thread=yes
13500 echo "configure: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13503 ol_cv_berkeley_db_thread=no
13511 if test $ol_cv_berkeley_db_thread != no ; then
13512 cat >> confdefs.h <<\EOF
13513 #define HAVE_BERKELEY_DB_THREAD 1
13520 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13526 if test $ol_cv_berkeley_db != no ; then
13527 cat >> confdefs.h <<\EOF
13528 #define HAVE_BERKELEY_DB 1
13532 ol_link_ldbm=berkeley
13533 ol_with_ldbm_api=db
13535 if test $ol_with_ldbm_type = hash ; then
13536 cat >> confdefs.h <<\EOF
13537 #define LDBM_USE_DBHASH 1
13541 cat >> confdefs.h <<\EOF
13542 #define LDBM_USE_DBBTREE 1
13547 if test $ol_cv_lib_db != yes ; then
13548 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13553 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13554 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13555 ol_with_ldbm_api=none
13558 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13559 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13560 echo "configure:13561: checking for MDBM library" >&5
13561 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13565 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13566 echo "configure:13567: checking for mdbm_set_chain" >&5
13567 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13568 echo $ac_n "(cached) $ac_c" 1>&6
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 /* System header to define __stub macros and hopefully few prototypes,
13574 which can conflict with char mdbm_set_chain(); below. */
13575 #include <assert.h>
13576 /* Override any gcc2 internal prototype to avoid an error. */
13577 /* We use char because int might match the return type of a gcc2
13578 builtin and then its argument prototype would still apply. */
13579 char mdbm_set_chain();
13584 /* The GNU C library defines this for functions which it implements
13585 to always fail with ENOSYS. Some functions are actually named
13586 something starting with __ and the normal name is an alias. */
13587 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13590 f = mdbm_set_chain;
13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 eval "ac_cv_func_mdbm_set_chain=yes"
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13602 eval "ac_cv_func_mdbm_set_chain=no"
13607 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13608 echo "$ac_t""yes" 1>&6
13611 echo "$ac_t""no" 1>&6
13613 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13614 echo "configure:13615: checking for mdbm_set_chain in -lmdbm" >&5
13615 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
13619 ac_save_LIBS="$LIBS"
13620 LIBS="-lmdbm $LIBS"
13621 cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13627 char mdbm_set_chain();
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13635 eval "ac_cv_lib_$ac_lib_var=yes"
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13640 eval "ac_cv_lib_$ac_lib_var=no"
13643 LIBS="$ac_save_LIBS"
13646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13648 ol_cv_lib_mdbm=-lmdbm
13650 echo "$ac_t""no" 1>&6
13661 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13664 for ac_hdr in mdbm.h
13666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13668 echo "configure:13669: checking for $ac_hdr" >&5
13669 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13678 { (eval echo configure:13679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13680 if test -z "$ac_err"; then
13682 eval "ac_cv_header_$ac_safe=yes"
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13688 eval "ac_cv_header_$ac_safe=no"
13692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13695 cat >> confdefs.h <<EOF
13696 #define $ac_tr_hdr 1
13700 echo "$ac_t""no" 1>&6
13704 echo $ac_n "checking for db""... $ac_c" 1>&6
13705 echo "configure:13706: checking for db" >&5
13706 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13707 echo $ac_n "(cached) $ac_c" 1>&6
13710 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13718 echo "$ac_t""$ol_cv_mdbm" 1>&6
13719 if test $ol_cv_mdbm = yes ; then
13720 cat >> confdefs.h <<\EOF
13721 #define HAVE_MDBM 1
13727 if test $ol_cv_mdbm = yes ; then
13729 ol_with_ldbm_api=mdbm
13730 if test $ol_cv_lib_mdbm != yes ; then
13731 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13736 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13737 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13738 echo "configure:13739: checking for GDBM library" >&5
13739 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13740 echo $ac_n "(cached) $ac_c" 1>&6
13743 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13744 echo "configure:13745: checking for gdbm_open" >&5
13745 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* System header to define __stub macros and hopefully few prototypes,
13752 which can conflict with char gdbm_open(); below. */
13753 #include <assert.h>
13754 /* Override any gcc2 internal prototype to avoid an error. */
13755 /* We use char because int might match the return type of a gcc2
13756 builtin and then its argument prototype would still apply. */
13762 /* The GNU C library defines this for functions which it implements
13763 to always fail with ENOSYS. Some functions are actually named
13764 something starting with __ and the normal name is an alias. */
13765 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13773 if { (eval echo configure:13774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13775 eval "ac_cv_func_gdbm_open=yes"
13777 echo "configure: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13780 eval "ac_cv_func_gdbm_open=no"
13785 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13786 echo "$ac_t""yes" 1>&6
13789 echo "$ac_t""no" 1>&6
13791 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13792 echo "configure:13793: checking for gdbm_open in -lgdbm" >&5
13793 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13795 echo $ac_n "(cached) $ac_c" 1>&6
13797 ac_save_LIBS="$LIBS"
13798 LIBS="-lgdbm $LIBS"
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13813 eval "ac_cv_lib_$ac_lib_var=yes"
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13818 eval "ac_cv_lib_$ac_lib_var=no"
13821 LIBS="$ac_save_LIBS"
13824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 ol_cv_lib_gdbm=-lgdbm
13828 echo "$ac_t""no" 1>&6
13839 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13842 for ac_hdr in gdbm.h
13844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13846 echo "configure:13847: checking for $ac_hdr" >&5
13847 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13850 cat > conftest.$ac_ext <<EOF
13851 #line 13852 "configure"
13852 #include "confdefs.h"
13855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13856 { (eval echo configure:13857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13858 if test -z "$ac_err"; then
13860 eval "ac_cv_header_$ac_safe=yes"
13863 echo "configure: failed program was:" >&5
13864 cat conftest.$ac_ext >&5
13866 eval "ac_cv_header_$ac_safe=no"
13870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13871 echo "$ac_t""yes" 1>&6
13872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13873 cat >> confdefs.h <<EOF
13874 #define $ac_tr_hdr 1
13878 echo "$ac_t""no" 1>&6
13882 echo $ac_n "checking for db""... $ac_c" 1>&6
13883 echo "configure:13884: checking for db" >&5
13884 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13888 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13896 echo "$ac_t""$ol_cv_gdbm" 1>&6
13897 if test $ol_cv_gdbm = yes ; then
13898 cat >> confdefs.h <<\EOF
13899 #define HAVE_GDBM 1
13905 if test $ol_cv_gdbm = yes ; then
13907 ol_with_ldbm_api=gdbm
13909 if test $ol_cv_lib_gdbm != yes ; then
13910 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13915 if test $ol_with_ldbm_api = ndbm ; then
13916 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13917 echo "configure:13918: checking for NDBM library" >&5
13918 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13922 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13923 echo "configure:13924: checking for dbm_open" >&5
13924 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char dbm_open(); below. */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13941 /* The GNU C library defines this for functions which it implements
13942 to always fail with ENOSYS. Some functions are actually named
13943 something starting with __ and the normal name is an alias. */
13944 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13952 if { (eval echo configure:13953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 eval "ac_cv_func_dbm_open=yes"
13956 echo "configure: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13959 eval "ac_cv_func_dbm_open=no"
13964 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13965 echo "$ac_t""yes" 1>&6
13968 echo "$ac_t""no" 1>&6
13970 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13971 echo "configure:13972: checking for dbm_open in -lndbm" >&5
13972 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13973 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
13976 ac_save_LIBS="$LIBS"
13977 LIBS="-lndbm $LIBS"
13978 cat > conftest.$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13990 if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13992 eval "ac_cv_lib_$ac_lib_var=yes"
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13997 eval "ac_cv_lib_$ac_lib_var=no"
14000 LIBS="$ac_save_LIBS"
14003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 ol_cv_lib_ndbm=-lndbm
14007 echo "$ac_t""no" 1>&6
14009 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14010 echo "configure:14011: checking for dbm_open in -ldbm" >&5
14011 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14012 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14015 ac_save_LIBS="$LIBS"
14017 cat > conftest.$ac_ext <<EOF
14018 #line 14019 "configure"
14019 #include "confdefs.h"
14020 /* Override any gcc2 internal prototype to avoid an error. */
14021 /* We use char because int might match the return type of a gcc2
14022 builtin and then its argument prototype would still apply. */
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14031 eval "ac_cv_lib_$ac_lib_var=yes"
14033 echo "configure: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14036 eval "ac_cv_lib_$ac_lib_var=no"
14039 LIBS="$ac_save_LIBS"
14042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6
14044 ol_cv_lib_ndbm=-ldbm
14046 echo "$ac_t""no" 1>&6
14059 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14062 for ac_hdr in ndbm.h
14064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14066 echo "configure:14067: checking for $ac_hdr" >&5
14067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14076 { (eval echo configure:14077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14078 if test -z "$ac_err"; then
14080 eval "ac_cv_header_$ac_safe=yes"
14083 echo "configure: failed program was:" >&5
14084 cat conftest.$ac_ext >&5
14086 eval "ac_cv_header_$ac_safe=no"
14090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14091 echo "$ac_t""yes" 1>&6
14092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14093 cat >> confdefs.h <<EOF
14094 #define $ac_tr_hdr 1
14098 echo "$ac_t""no" 1>&6
14102 echo $ac_n "checking for db""... $ac_c" 1>&6
14103 echo "configure:14104: checking for db" >&5
14104 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14108 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14116 echo "$ac_t""$ol_cv_ndbm" 1>&6
14117 if test $ol_cv_ndbm = yes ; then
14118 cat >> confdefs.h <<\EOF
14119 #define HAVE_NDBM 1
14125 if test $ol_cv_ndbm = yes ; then
14127 ol_with_ldbm_api=ndbm
14129 if test $ol_cv_lib_ndbm != yes ; then
14130 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14135 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14136 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14137 if test $ol_enable_ldbm = yes ; then
14138 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14141 echo "configure: warning: disabling LDBM" 1>&2
14145 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14146 LINK_BINS_DYNAMIC="yes"
14148 LINK_BINS_DYNAMIC="no"
14151 if test $ol_enable_wrappers != no ; then
14152 for ac_hdr in tcpd.h
14154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14156 echo "configure:14157: checking for $ac_hdr" >&5
14157 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14158 echo $ac_n "(cached) $ac_c" 1>&6
14160 cat > conftest.$ac_ext <<EOF
14161 #line 14162 "configure"
14162 #include "confdefs.h"
14165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14166 { (eval echo configure:14167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14168 if test -z "$ac_err"; then
14170 eval "ac_cv_header_$ac_safe=yes"
14173 echo "configure: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14176 eval "ac_cv_header_$ac_safe=no"
14180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14181 echo "$ac_t""yes" 1>&6
14182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14183 cat >> confdefs.h <<EOF
14184 #define $ac_tr_hdr 1
14188 echo "$ac_t""no" 1>&6
14193 if test $ac_cv_header_tcpd_h != yes ; then
14196 cat > conftest.$ac_ext <<EOF
14197 #line 14198 "configure"
14198 #include "confdefs.h"
14200 int allow_severity = 0;
14201 int deny_severity = 0;
14207 if { (eval echo configure:14208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14219 if test $have_wrappers = yes ; then
14220 cat >> confdefs.h <<\EOF
14221 #define HAVE_TCPD 1
14226 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14227 echo "configure:14228: checking for main in -lnsl" >&5
14228 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14230 echo $ac_n "(cached) $ac_c" 1>&6
14232 ac_save_LIBS="$LIBS"
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14242 if { (eval echo configure:14243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14244 eval "ac_cv_lib_$ac_lib_var=yes"
14246 echo "configure: failed program was:" >&5
14247 cat conftest.$ac_ext >&5
14249 eval "ac_cv_lib_$ac_lib_var=no"
14252 LIBS="$ac_save_LIBS"
14255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14257 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14259 cat >> confdefs.h <<EOF
14260 #define $ac_tr_lib 1
14266 echo "$ac_t""no" 1>&6
14270 echo "configure: warning: could not find -lwrap" 1>&2
14271 if test $ol_enable_wrappers = yes ; then
14272 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14275 echo "configure: warning: disabling wrappers support" 1>&2
14276 ol_enable_wrappers=no
14281 if test $ol_enable_syslog != no ; then
14282 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14283 echo "configure:14284: checking for openlog" >&5
14284 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
14287 cat > conftest.$ac_ext <<EOF
14288 #line 14289 "configure"
14289 #include "confdefs.h"
14290 /* System header to define __stub macros and hopefully few prototypes,
14291 which can conflict with char openlog(); below. */
14292 #include <assert.h>
14293 /* Override any gcc2 internal prototype to avoid an error. */
14294 /* We use char because int might match the return type of a gcc2
14295 builtin and then its argument prototype would still apply. */
14301 /* The GNU C library defines this for functions which it implements
14302 to always fail with ENOSYS. Some functions are actually named
14303 something starting with __ and the normal name is an alias. */
14304 #if defined (__stub_openlog) || defined (__stub___openlog)
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14314 eval "ac_cv_func_openlog=yes"
14316 echo "configure: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14319 eval "ac_cv_func_openlog=no"
14324 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14325 echo "$ac_t""yes" 1>&6
14328 echo "$ac_t""no" 1>&6
14331 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14332 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14334 ol_enable_syslog=$ac_cv_func_openlog
14338 if test $ol_enable_sql != no ; then
14339 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14340 echo "configure:14341: checking for SQLDriverConnect in -liodbc" >&5
14341 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14342 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14343 echo $ac_n "(cached) $ac_c" 1>&6
14345 ac_save_LIBS="$LIBS"
14346 LIBS="-liodbc $LIBS"
14347 cat > conftest.$ac_ext <<EOF
14348 #line 14349 "configure"
14349 #include "confdefs.h"
14350 /* Override any gcc2 internal prototype to avoid an error. */
14351 /* We use char because int might match the return type of a gcc2
14352 builtin and then its argument prototype would still apply. */
14353 char SQLDriverConnect();
14359 if { (eval echo configure:14360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14361 eval "ac_cv_lib_$ac_lib_var=yes"
14363 echo "configure: failed program was:" >&5
14364 cat conftest.$ac_ext >&5
14366 eval "ac_cv_lib_$ac_lib_var=no"
14369 LIBS="$ac_save_LIBS"
14372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14373 echo "$ac_t""yes" 1>&6
14376 echo "$ac_t""no" 1>&6
14380 if test $have_iodbc = yes ; then
14381 ol_link_sql="-liodbc"
14383 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14384 echo "configure:14385: checking for SQLDriverConnect in -lodbc" >&5
14385 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14389 ac_save_LIBS="$LIBS"
14390 LIBS="-lodbc $LIBS"
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14397 char SQLDriverConnect();
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14405 eval "ac_cv_lib_$ac_lib_var=yes"
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 eval "ac_cv_lib_$ac_lib_var=no"
14413 LIBS="$ac_save_LIBS"
14416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14417 echo "$ac_t""yes" 1>&6
14420 echo "$ac_t""no" 1>&6
14424 if test $have_odbc = yes ; then
14425 ol_link_sql="-lodbc"
14429 if test $ol_link_sql != no ; then
14430 SLAPD_SQL_LIBS="$ol_link_sql"
14432 elif test $ol_enable_sql != auto ; then
14433 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14438 for ac_hdr in termcap.h ncurses.h
14440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14442 echo "configure:14443: checking for $ac_hdr" >&5
14443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14446 cat > conftest.$ac_ext <<EOF
14447 #line 14448 "configure"
14448 #include "confdefs.h"
14451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14452 { (eval echo configure:14453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14454 if test -z "$ac_err"; then
14456 eval "ac_cv_header_$ac_safe=yes"
14459 echo "configure: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14462 eval "ac_cv_header_$ac_safe=no"
14466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14467 echo "$ac_t""yes" 1>&6
14468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14469 cat >> confdefs.h <<EOF
14470 #define $ac_tr_hdr 1
14474 echo "$ac_t""no" 1>&6
14479 if test $ol_link_termcap = no ; then
14480 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14481 echo "configure:14482: checking for tputs in -ltermcap" >&5
14482 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14483 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14484 echo $ac_n "(cached) $ac_c" 1>&6
14486 ac_save_LIBS="$LIBS"
14487 LIBS="-ltermcap $LIBS"
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 /* Override any gcc2 internal prototype to avoid an error. */
14492 /* We use char because int might match the return type of a gcc2
14493 builtin and then its argument prototype would still apply. */
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14502 eval "ac_cv_lib_$ac_lib_var=yes"
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14507 eval "ac_cv_lib_$ac_lib_var=no"
14510 LIBS="$ac_save_LIBS"
14513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14514 echo "$ac_t""yes" 1>&6
14517 echo "$ac_t""no" 1>&6
14521 if test $have_termcap = yes ; then
14522 cat >> confdefs.h <<\EOF
14523 #define HAVE_TERMCAP 1
14526 ol_link_termcap=yes
14527 TERMCAP_LIBS=-ltermcap
14531 if test $ol_link_termcap = no ; then
14532 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14533 echo "configure:14534: checking for initscr in -lncurses" >&5
14534 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14535 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14536 echo $ac_n "(cached) $ac_c" 1>&6
14538 ac_save_LIBS="$LIBS"
14539 LIBS="-lncurses $LIBS"
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14543 /* Override any gcc2 internal prototype to avoid an error. */
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14552 if { (eval echo configure:14553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14554 eval "ac_cv_lib_$ac_lib_var=yes"
14556 echo "configure: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14559 eval "ac_cv_lib_$ac_lib_var=no"
14562 LIBS="$ac_save_LIBS"
14565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14566 echo "$ac_t""yes" 1>&6
14569 echo "$ac_t""no" 1>&6
14573 if test $have_ncurses = yes ; then
14574 cat >> confdefs.h <<\EOF
14575 #define HAVE_NCURSES 1
14578 ol_link_termcap=yes
14579 TERMCAP_LIBS=-lncurses
14583 if test $ol_link_termcap = no ; then
14584 cat >> confdefs.h <<\EOF
14585 #define NO_TERMCAP 1
14593 if test $ol_with_cyrus_sasl != no ; then
14594 for ac_hdr in sasl.h
14596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14598 echo "configure:14599: checking for $ac_hdr" >&5
14599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14600 echo $ac_n "(cached) $ac_c" 1>&6
14602 cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14608 { (eval echo configure:14609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14610 if test -z "$ac_err"; then
14612 eval "ac_cv_header_$ac_safe=yes"
14615 echo "configure: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14618 eval "ac_cv_header_$ac_safe=no"
14622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14623 echo "$ac_t""yes" 1>&6
14624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14625 cat >> confdefs.h <<EOF
14626 #define $ac_tr_hdr 1
14630 echo "$ac_t""no" 1>&6
14635 if test $ac_cv_header_sasl_h = yes ; then
14636 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14637 echo "configure:14638: checking for sasl_client_init in -lsasl" >&5
14638 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14639 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14642 ac_save_LIBS="$LIBS"
14643 LIBS="-lsasl $LIBS"
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 /* Override any gcc2 internal prototype to avoid an error. */
14648 /* We use char because int might match the return type of a gcc2
14649 builtin and then its argument prototype would still apply. */
14650 char sasl_client_init();
14656 if { (eval echo configure:14657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14658 eval "ac_cv_lib_$ac_lib_var=yes"
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14663 eval "ac_cv_lib_$ac_lib_var=no"
14666 LIBS="$ac_save_LIBS"
14669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14670 echo "$ac_t""yes" 1>&6
14671 have_cyrus_sasl=yes
14673 echo "$ac_t""no" 1>&6
14678 if test $have_cyrus_sasl != no ; then
14680 cat >> confdefs.h <<\EOF
14681 #define HAVE_CYRUS_SASL 1
14688 if test $ol_link_sasl = no ; then
14689 if test $ol_with_cyrus_sasl != auto ; then
14690 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14692 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14693 echo "configure: warning: SASL authentication not supported!" 1>&2
14694 if test $ol_link_tls = no ; then
14695 echo "configure: warning: Strong authentication not supported!" 1>&2
14699 elif test $ol_enable_spasswd != no ; then
14700 ol_link_spasswd=yes
14704 echo "configure: warning: SASL authentication not supported!" 1>&2
14705 if test $ol_link_tls = no ; then
14706 echo "configure: warning: Strong authentication not supported!" 1>&2
14710 if test $cross_compiling != yes ; then
14712 if test -r /dev/urandom ; then
14713 dev="/dev/urandom";
14714 elif test -r /idev/urandom ; then
14715 dev="/idev/urandom";
14716 elif test -r /dev/srandom ; then
14717 dev="/dev/srandom";
14718 elif test -r /dev/random ; then
14720 elif test -r /idev/random ; then
14721 dev="/idev/random";
14724 if test $dev != no ; then
14725 cat >> confdefs.h <<EOF
14726 #define URANDOM_DEVICE "$dev"
14733 if test $ol_with_fetch != no ; then
14735 LIBS="-lfetch -lcom_err $LIBS"
14736 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14737 echo "configure:14738: checking fetch(3) library" >&5
14738 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14746 #include <sys/param.h>
14750 struct url *u = fetchParseURL("file:///");
14753 if { (eval echo configure:14754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14755 ol_cv_lib_fetch=yes
14757 echo "configure: failed program was:" >&5
14758 cat conftest.$ac_ext >&5
14765 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14767 if test $ol_cv_lib_fetch != no ; then
14768 ol_link_fetch="-lfetch -lcom_err"
14769 cat >> confdefs.h <<\EOF
14770 #define HAVE_FETCH 1
14776 if test $ol_cv_lib_fetch != no ; then
14777 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14778 ol_link_fetch=freebsd
14780 elif test $ol_with_fetch != auto ; then
14781 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14785 ol_link_readline=no
14786 if test $ol_with_readline != no ; then
14787 for ac_hdr in readline/readline.h readline/history.h
14789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14791 echo "configure:14792: checking for $ac_hdr" >&5
14792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14793 echo $ac_n "(cached) $ac_c" 1>&6
14795 cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14801 { (eval echo configure:14802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14803 if test -z "$ac_err"; then
14805 eval "ac_cv_header_$ac_safe=yes"
14808 echo "configure: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14811 eval "ac_cv_header_$ac_safe=no"
14815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14816 echo "$ac_t""yes" 1>&6
14817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14818 cat >> confdefs.h <<EOF
14819 #define $ac_tr_hdr 1
14823 echo "$ac_t""no" 1>&6
14828 if test $ac_cv_header_readline_readline_h = yes ; then
14830 LIBS="$TERMCAP_LIBS $LIBS"
14831 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14832 echo "configure:14833: checking for readline in -lreadline" >&5
14833 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14835 echo $ac_n "(cached) $ac_c" 1>&6
14837 ac_save_LIBS="$LIBS"
14838 LIBS="-lreadline $LIBS"
14839 cat > conftest.$ac_ext <<EOF
14840 #line 14841 "configure"
14841 #include "confdefs.h"
14842 /* Override any gcc2 internal prototype to avoid an error. */
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14851 if { (eval echo configure:14852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14853 eval "ac_cv_lib_$ac_lib_var=yes"
14855 echo "configure: failed program was:" >&5
14856 cat conftest.$ac_ext >&5
14858 eval "ac_cv_lib_$ac_lib_var=no"
14861 LIBS="$ac_save_LIBS"
14864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14865 echo "$ac_t""yes" 1>&6
14868 echo "$ac_t""no" 1>&6
14874 if test $have_readline = yes ; then
14875 ol_with_readline=found
14876 ol_link_readline=yes
14878 READLINE_LIBS="-lreadline"
14883 if test $ol_link_readline = yes ; then
14884 cat >> confdefs.h <<\EOF
14885 #define HAVE_READLINE 1
14891 if test $ol_enable_crypt != no ; then
14892 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14893 echo "configure:14894: checking for crypt" >&5
14894 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14895 echo $ac_n "(cached) $ac_c" 1>&6
14897 cat > conftest.$ac_ext <<EOF
14898 #line 14899 "configure"
14899 #include "confdefs.h"
14900 /* System header to define __stub macros and hopefully few prototypes,
14901 which can conflict with char crypt(); below. */
14902 #include <assert.h>
14903 /* Override any gcc2 internal prototype to avoid an error. */
14904 /* We use char because int might match the return type of a gcc2
14905 builtin and then its argument prototype would still apply. */
14911 /* The GNU C library defines this for functions which it implements
14912 to always fail with ENOSYS. Some functions are actually named
14913 something starting with __ and the normal name is an alias. */
14914 #if defined (__stub_crypt) || defined (__stub___crypt)
14922 if { (eval echo configure:14923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14924 eval "ac_cv_func_crypt=yes"
14926 echo "configure: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14929 eval "ac_cv_func_crypt=no"
14934 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14935 echo "$ac_t""yes" 1>&6
14938 echo "$ac_t""no" 1>&6
14940 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14941 echo "configure:14942: checking for crypt in -lcrypt" >&5
14942 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
14946 ac_save_LIBS="$LIBS"
14947 LIBS="-lcrypt $LIBS"
14948 cat > conftest.$ac_ext <<EOF
14949 #line 14950 "configure"
14950 #include "confdefs.h"
14951 /* Override any gcc2 internal prototype to avoid an error. */
14952 /* We use char because int might match the return type of a gcc2
14953 builtin and then its argument prototype would still apply. */
14960 if { (eval echo configure:14961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14962 eval "ac_cv_lib_$ac_lib_var=yes"
14964 echo "configure: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14967 eval "ac_cv_lib_$ac_lib_var=no"
14970 LIBS="$ac_save_LIBS"
14973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14974 echo "$ac_t""yes" 1>&6
14975 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14978 echo "$ac_t""no" 1>&6
14985 if test $have_crypt = yes ; then
14986 cat >> confdefs.h <<\EOF
14987 #define HAVE_CRYPT 1
14991 echo "configure: warning: could not find crypt" 1>&2
14992 if test $ol_enable_crypt = yes ; then
14993 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14996 echo "configure: warning: disabling crypt support" 1>&2
15001 if test $ol_enable_proctitle != no ; then
15002 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15003 echo "configure:15004: checking for setproctitle" >&5
15004 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15005 echo $ac_n "(cached) $ac_c" 1>&6
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 /* System header to define __stub macros and hopefully few prototypes,
15011 which can conflict with char setproctitle(); below. */
15012 #include <assert.h>
15013 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */
15016 char setproctitle();
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15034 eval "ac_cv_func_setproctitle=yes"
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15039 eval "ac_cv_func_setproctitle=no"
15044 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15045 echo "$ac_t""yes" 1>&6
15046 have_setproctitle=yes
15048 echo "$ac_t""no" 1>&6
15050 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15051 echo "configure:15052: checking for setproctitle in -lutil" >&5
15052 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15056 ac_save_LIBS="$LIBS"
15057 LIBS="-lutil $LIBS"
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 /* Override any gcc2 internal prototype to avoid an error. */
15062 /* We use char because int might match the return type of a gcc2
15063 builtin and then its argument prototype would still apply. */
15064 char setproctitle();
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_lib_$ac_lib_var=yes"
15074 echo "configure: failed program was:" >&5
15075 cat conftest.$ac_ext >&5
15077 eval "ac_cv_lib_$ac_lib_var=no"
15080 LIBS="$ac_save_LIBS"
15083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15084 echo "$ac_t""yes" 1>&6
15085 have_setproctitle=yes
15086 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15088 echo "$ac_t""no" 1>&6
15089 have_setproctitle=no
15090 LIBOBJS="$LIBOBJS setproctitle.o"
15091 LIBSRCS="$LIBSRCS setproctitle.c"
15097 if test $have_setproctitle = yes ; then
15098 cat >> confdefs.h <<\EOF
15099 #define HAVE_SETPROCTITLE 1
15105 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15106 echo "configure:15107: checking for ANSI C header files" >&5
15107 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15108 echo $ac_n "(cached) $ac_c" 1>&6
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 #include <stdlib.h>
15114 #include <stdarg.h>
15115 #include <string.h>
15118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15119 { (eval echo configure:15120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15121 if test -z "$ac_err"; then
15123 ac_cv_header_stdc=yes
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15129 ac_cv_header_stdc=no
15133 if test $ac_cv_header_stdc = yes; then
15134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15135 cat > conftest.$ac_ext <<EOF
15136 #line 15137 "configure"
15137 #include "confdefs.h"
15138 #include <string.h>
15140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15141 egrep "memchr" >/dev/null 2>&1; then
15145 ac_cv_header_stdc=no
15151 if test $ac_cv_header_stdc = yes; then
15152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15153 cat > conftest.$ac_ext <<EOF
15154 #line 15155 "configure"
15155 #include "confdefs.h"
15156 #include <stdlib.h>
15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15159 egrep "free" >/dev/null 2>&1; then
15163 ac_cv_header_stdc=no
15169 if test $ac_cv_header_stdc = yes; then
15170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15171 if test "$cross_compiling" = yes; then
15174 cat > conftest.$ac_ext <<EOF
15175 #line 15176 "configure"
15176 #include "confdefs.h"
15178 #if ((' ' & 0x0FF) == 0x020)
15179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15182 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15183 || ('j' <= (c) && (c) <= 'r') \
15184 || ('s' <= (c) && (c) <= 'z'))
15185 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15188 int main () { int i; for (i = 0; i < 256; i++)
15189 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15193 if { (eval echo configure:15194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15197 echo "configure: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15200 ac_cv_header_stdc=no
15208 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15209 if test $ac_cv_header_stdc = yes; then
15210 cat >> confdefs.h <<\EOF
15211 #define STDC_HEADERS 1
15216 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15217 echo "configure:15218: checking for mode_t" >&5
15218 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15219 echo $ac_n "(cached) $ac_c" 1>&6
15221 cat > conftest.$ac_ext <<EOF
15222 #line 15223 "configure"
15223 #include "confdefs.h"
15224 #include <sys/types.h>
15226 #include <stdlib.h>
15227 #include <stddef.h>
15231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15232 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15234 eval "ac_cv_type_mode_t=yes"
15237 eval "ac_cv_type_mode_t=no"
15242 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15243 echo "$ac_t""yes" 1>&6
15245 echo "$ac_t""no" 1>&6
15246 cat >> confdefs.h <<EOF
15252 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15253 echo "configure:15254: checking for off_t" >&5
15254 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15255 echo $ac_n "(cached) $ac_c" 1>&6
15257 cat > conftest.$ac_ext <<EOF
15258 #line 15259 "configure"
15259 #include "confdefs.h"
15260 #include <sys/types.h>
15262 #include <stdlib.h>
15263 #include <stddef.h>
15267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15268 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15270 eval "ac_cv_type_off_t=yes"
15273 eval "ac_cv_type_off_t=no"
15278 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15279 echo "$ac_t""yes" 1>&6
15281 echo "$ac_t""no" 1>&6
15282 cat >> confdefs.h <<EOF
15288 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15289 echo "configure:15290: checking for pid_t" >&5
15290 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15291 echo $ac_n "(cached) $ac_c" 1>&6
15293 cat > conftest.$ac_ext <<EOF
15294 #line 15295 "configure"
15295 #include "confdefs.h"
15296 #include <sys/types.h>
15298 #include <stdlib.h>
15299 #include <stddef.h>
15303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15304 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15306 eval "ac_cv_type_pid_t=yes"
15309 eval "ac_cv_type_pid_t=no"
15314 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15315 echo "$ac_t""yes" 1>&6
15317 echo "$ac_t""no" 1>&6
15318 cat >> confdefs.h <<EOF
15324 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15325 echo "configure:15326: checking for ptrdiff_t" >&5
15326 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15329 cat > conftest.$ac_ext <<EOF
15330 #line 15331 "configure"
15331 #include "confdefs.h"
15332 #include <stddef.h>
15337 if { (eval echo configure:15338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15339 am_cv_type_ptrdiff_t=yes
15341 echo "configure: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15344 am_cv_type_ptrdiff_t=no
15349 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15350 if test $am_cv_type_ptrdiff_t = yes; then
15351 cat >> confdefs.h <<\EOF
15352 #define HAVE_PTRDIFF_T 1
15357 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15358 echo "configure:15359: checking return type of signal handlers" >&5
15359 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15360 echo $ac_n "(cached) $ac_c" 1>&6
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 #include <sys/types.h>
15366 #include <signal.h>
15371 extern "C" void (*signal (int, void (*)(int)))(int);
15373 void (*signal ()) ();
15380 if { (eval echo configure:15381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15382 ac_cv_type_signal=void
15384 echo "configure: failed program was:" >&5
15385 cat conftest.$ac_ext >&5
15387 ac_cv_type_signal=int
15392 echo "$ac_t""$ac_cv_type_signal" 1>&6
15393 cat >> confdefs.h <<EOF
15394 #define RETSIGTYPE $ac_cv_type_signal
15398 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15399 echo "configure:15400: checking for size_t" >&5
15400 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15401 echo $ac_n "(cached) $ac_c" 1>&6
15403 cat > conftest.$ac_ext <<EOF
15404 #line 15405 "configure"
15405 #include "confdefs.h"
15406 #include <sys/types.h>
15408 #include <stdlib.h>
15409 #include <stddef.h>
15413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15414 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15416 eval "ac_cv_type_size_t=yes"
15419 eval "ac_cv_type_size_t=no"
15424 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15425 echo "$ac_t""yes" 1>&6
15427 echo "$ac_t""no" 1>&6
15428 cat >> confdefs.h <<EOF
15429 #define size_t unsigned
15435 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15436 echo "configure:15437: checking for ssize_t" >&5
15437 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15438 echo $ac_n "(cached) $ac_c" 1>&6
15440 cat > conftest.$ac_ext <<EOF
15441 #line 15442 "configure"
15442 #include "confdefs.h"
15443 #include <sys/types.h>
15445 #include <stdlib.h>
15446 #include <stddef.h>
15450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15451 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15453 eval "ac_cv_type_ssize_t=yes"
15456 eval "ac_cv_type_ssize_t=no"
15461 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15462 echo "$ac_t""yes" 1>&6
15464 echo "$ac_t""no" 1>&6
15465 cat >> confdefs.h <<EOF
15466 #define ssize_t signed int
15471 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15472 echo "configure:15473: checking for caddr_t" >&5
15473 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15474 echo $ac_n "(cached) $ac_c" 1>&6
15476 cat > conftest.$ac_ext <<EOF
15477 #line 15478 "configure"
15478 #include "confdefs.h"
15479 #include <sys/types.h>
15481 #include <stdlib.h>
15482 #include <stddef.h>
15486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15487 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15489 eval "ac_cv_type_caddr_t=yes"
15492 eval "ac_cv_type_caddr_t=no"
15497 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15498 echo "$ac_t""yes" 1>&6
15500 echo "$ac_t""no" 1>&6
15501 cat >> confdefs.h <<EOF
15502 #define caddr_t char *
15508 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15509 echo "configure:15510: checking for socklen_t" >&5
15510 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15513 cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15517 #ifdef HAVE_SYS_TYPES_H
15518 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15528 if { (eval echo configure:15529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15530 ol_cv_type_socklen_t=yes
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15535 ol_cv_type_socklen_t=no
15540 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15541 if test $ol_cv_type_socklen_t = no; then
15542 cat >> confdefs.h <<\EOF
15543 #define socklen_t int
15548 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15549 echo "configure:15550: checking for member st_blksize in aggregate type struct stat" >&5
15550 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15551 echo $ac_n "(cached) $ac_c" 1>&6
15553 cat > conftest.$ac_ext <<EOF
15554 #line 15555 "configure"
15555 #include "confdefs.h"
15556 #include <sys/types.h>
15557 #include <sys/stat.h>
15559 struct stat foo; foo.st_blksize;
15562 if { (eval echo configure:15563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15564 ac_cv_c_struct_member_st_blksize=yes
15566 echo "configure: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15569 ac_cv_c_struct_member_st_blksize=no
15574 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15575 st_blksize="$ac_cv_c_struct_member_st_blksize"
15576 if test $ac_cv_c_struct_member_st_blksize = yes; then
15577 cat >> confdefs.h <<\EOF
15578 #define HAVE_ST_BLKSIZE 1
15583 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15584 echo "configure:15585: checking whether time.h and sys/time.h may both be included" >&5
15585 if eval "test \"\${ac_cv_header_time+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>
15592 #include <sys/time.h>
15598 if { (eval echo configure:15599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15600 ac_cv_header_time=yes
15602 echo "configure: failed program was:" >&5
15603 cat conftest.$ac_ext >&5
15605 ac_cv_header_time=no
15610 echo "$ac_t""$ac_cv_header_time" 1>&6
15611 if test $ac_cv_header_time = yes; then
15612 cat >> confdefs.h <<\EOF
15613 #define TIME_WITH_SYS_TIME 1
15618 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15619 echo "configure:15620: checking whether struct tm is in sys/time.h or time.h" >&5
15620 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15621 echo $ac_n "(cached) $ac_c" 1>&6
15623 cat > conftest.$ac_ext <<EOF
15624 #line 15625 "configure"
15625 #include "confdefs.h"
15626 #include <sys/types.h>
15629 struct tm *tp; tp->tm_sec;
15632 if { (eval echo configure:15633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15634 ac_cv_struct_tm=time.h
15636 echo "configure: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15639 ac_cv_struct_tm=sys/time.h
15644 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15645 if test $ac_cv_struct_tm = sys/time.h; then
15646 cat >> confdefs.h <<\EOF
15647 #define TM_IN_SYS_TIME 1
15652 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15653 echo "configure:15654: checking for uid_t in sys/types.h" >&5
15654 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15655 echo $ac_n "(cached) $ac_c" 1>&6
15657 cat > conftest.$ac_ext <<EOF
15658 #line 15659 "configure"
15659 #include "confdefs.h"
15660 #include <sys/types.h>
15662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15663 egrep "uid_t" >/dev/null 2>&1; then
15665 ac_cv_type_uid_t=yes
15668 ac_cv_type_uid_t=no
15674 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15675 if test $ac_cv_type_uid_t = no; then
15676 cat >> confdefs.h <<\EOF
15680 cat >> confdefs.h <<\EOF
15686 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15687 echo "configure:15688: checking for sig_atomic_t" >&5
15688 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15689 echo $ac_n "(cached) $ac_c" 1>&6
15691 cat > conftest.$ac_ext <<EOF
15692 #line 15693 "configure"
15693 #include "confdefs.h"
15694 #include <signal.h>
15696 sig_atomic_t atomic;
15699 if { (eval echo configure:15700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15701 ol_cv_type_sig_atomic_t=yes
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15706 ol_cv_type_sig_atomic_t=no
15711 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15712 if test $ol_cv_type_sig_atomic_t = no; then
15713 cat >> confdefs.h <<\EOF
15714 #define sig_atomic_t int
15721 # test for pw_gecos in struct passwd
15722 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15723 echo "configure:15724: checking struct passwd for pw_gecos" >&5
15724 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15725 echo $ac_n "(cached) $ac_c" 1>&6
15728 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15735 pwd.pw_gecos = pwd.pw_name;
15739 if { (eval echo configure:15740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15741 ol_cv_struct_passwd_pw_gecos=yes
15743 echo "configure: failed program was:" >&5
15744 cat conftest.$ac_ext >&5
15746 ol_cv_struct_passwd_pw_gecos=no
15751 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15752 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15753 cat >> confdefs.h <<\EOF
15754 #define HAVE_PW_GECOS 1
15759 # test for pw_passwd in struct passwd
15760 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15761 echo "configure:15762: checking struct passwd for pw_passwd" >&5
15762 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15763 echo $ac_n "(cached) $ac_c" 1>&6
15766 cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15773 pwd.pw_passwd = pwd.pw_name;
15777 if { (eval echo configure:15778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15779 ol_cv_struct_passwd_pw_passwd=yes
15781 echo "configure: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15784 ol_cv_struct_passwd_pw_passwd=no
15789 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15790 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15791 cat >> confdefs.h <<\EOF
15792 #define HAVE_PW_PASSWD 1
15798 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15799 echo "configure:15800: checking if toupper() requires islower()" >&5
15800 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15804 if test "$cross_compiling" = yes; then
15805 ol_cv_c_upper_lower=safe
15807 cat > conftest.$ac_ext <<EOF
15808 #line 15809 "configure"
15809 #include "confdefs.h"
15814 if ('C' == toupper('C'))
15820 if { (eval echo configure:15821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15822 ol_cv_c_upper_lower=no
15824 echo "configure: failed program was:" >&5
15825 cat conftest.$ac_ext >&5
15827 ol_cv_c_upper_lower=yes
15834 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15835 if test $ol_cv_c_upper_lower != no ; then
15836 cat >> confdefs.h <<\EOF
15837 #define C_UPPER_LOWER 1
15842 echo $ac_n "checking for working const""... $ac_c" 1>&6
15843 echo "configure:15844: checking for working const" >&5
15844 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15845 echo $ac_n "(cached) $ac_c" 1>&6
15847 cat > conftest.$ac_ext <<EOF
15848 #line 15849 "configure"
15849 #include "confdefs.h"
15853 /* Ultrix mips cc rejects this. */
15854 typedef int charset[2]; const charset x;
15855 /* SunOS 4.1.1 cc rejects this. */
15856 char const *const *ccp;
15858 /* NEC SVR4.0.2 mips cc rejects this. */
15859 struct point {int x, y;};
15860 static struct point const zero = {0,0};
15861 /* AIX XL C 1.02.0.0 rejects this.
15862 It does not let you subtract one const X* pointer from another in an arm
15863 of an if-expression whose if-part is not a constant expression */
15864 const char *g = "string";
15865 ccp = &g + (g ? g-g : 0);
15866 /* HPUX 7.0 cc rejects these. */
15869 ccp = (char const *const *) p;
15870 { /* SCO 3.2v4 cc rejects this. */
15872 char const *s = 0 ? (char *) 0 : (char const *) 0;
15876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15877 int x[] = {25, 17};
15878 const int *foo = &x[0];
15881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15882 typedef const int *iptr;
15886 { /* AIX XL C 1.02.0.0 rejects this saying
15887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15888 struct s { int j; const int *ap[3]; };
15889 struct s *b; b->j = 5;
15891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15892 const int foo = 10;
15897 if { (eval echo configure:15898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15909 echo "$ac_t""$ac_cv_c_const" 1>&6
15910 if test $ac_cv_c_const = no; then
15911 cat >> confdefs.h <<\EOF
15917 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15918 echo "configure:15919: checking if compiler understands volatile" >&5
15919 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15920 echo $ac_n "(cached) $ac_c" 1>&6
15922 cat > conftest.$ac_ext <<EOF
15923 #line 15924 "configure"
15924 #include "confdefs.h"
15927 volatile int a; int * volatile b = x ? &y : &z;
15928 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15932 if { (eval echo configure:15933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15934 ol_cv_c_volatile=yes
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15939 ol_cv_c_volatile=no
15944 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15945 if test $ol_cv_c_volatile = yes; then
15948 cat >> confdefs.h <<\EOF
15955 if test $cross_compiling = yes ; then
15956 cat >> confdefs.h <<\EOF
15957 #define CROSS_COMPILING 1
15961 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15962 echo "configure:15963: checking whether byte ordering is bigendian" >&5
15963 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15964 echo $ac_n "(cached) $ac_c" 1>&6
15966 ac_cv_c_bigendian=unknown
15967 # See if sys/param.h defines the BYTE_ORDER macro.
15968 cat > conftest.$ac_ext <<EOF
15969 #line 15970 "configure"
15970 #include "confdefs.h"
15971 #include <sys/types.h>
15972 #include <sys/param.h>
15975 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15976 bogus endian macros
15980 if { (eval echo configure:15981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15982 # It does; now see whether it defined to BIG_ENDIAN or not.
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 #include <sys/types.h>
15987 #include <sys/param.h>
15990 #if BYTE_ORDER != BIG_ENDIAN
15995 if { (eval echo configure:15996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15997 ac_cv_c_bigendian=yes
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16002 ac_cv_c_bigendian=no
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16010 if test $ac_cv_c_bigendian = unknown; then
16011 if test "$cross_compiling" = yes; then
16012 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16014 cat > conftest.$ac_ext <<EOF
16015 #line 16016 "configure"
16016 #include "confdefs.h"
16018 /* Are we little or big endian? From Harbison&Steele. */
16022 char c[sizeof (long)];
16025 exit (u.c[sizeof (long) - 1] == 1);
16028 if { (eval echo configure:16029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16030 ac_cv_c_bigendian=no
16032 echo "configure: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16035 ac_cv_c_bigendian=yes
16043 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16044 if test $ac_cv_c_bigendian = yes; then
16045 cat >> confdefs.h <<\EOF
16046 #define WORDS_BIGENDIAN 1
16053 echo $ac_n "checking size of short""... $ac_c" 1>&6
16054 echo "configure:16055: checking size of short" >&5
16055 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16056 echo $ac_n "(cached) $ac_c" 1>&6
16058 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16059 cat > conftest.$ac_ext <<EOF
16060 #line 16061 "configure"
16061 #include "confdefs.h"
16062 #include "confdefs.h"
16063 #include <sys/types.h>
16067 switch (0) case 0: case (sizeof (short) == $ac_size):;
16070 if { (eval echo configure:16071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16072 ac_cv_sizeof_short=$ac_size
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16078 if test x$ac_cv_sizeof_short != x ; then break; fi
16083 if test x$ac_cv_sizeof_short = x ; then
16084 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16086 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16087 cat >> confdefs.h <<EOF
16088 #define SIZEOF_SHORT $ac_cv_sizeof_short
16092 echo $ac_n "checking size of int""... $ac_c" 1>&6
16093 echo "configure:16094: checking size of int" >&5
16094 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16095 echo $ac_n "(cached) $ac_c" 1>&6
16097 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16098 cat > conftest.$ac_ext <<EOF
16099 #line 16100 "configure"
16100 #include "confdefs.h"
16101 #include "confdefs.h"
16102 #include <sys/types.h>
16106 switch (0) case 0: case (sizeof (int) == $ac_size):;
16109 if { (eval echo configure:16110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16111 ac_cv_sizeof_int=$ac_size
16113 echo "configure: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16117 if test x$ac_cv_sizeof_int != x ; then break; fi
16122 if test x$ac_cv_sizeof_int = x ; then
16123 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16125 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16126 cat >> confdefs.h <<EOF
16127 #define SIZEOF_INT $ac_cv_sizeof_int
16131 echo $ac_n "checking size of long""... $ac_c" 1>&6
16132 echo "configure:16133: checking size of long" >&5
16133 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16134 echo $ac_n "(cached) $ac_c" 1>&6
16136 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16137 cat > conftest.$ac_ext <<EOF
16138 #line 16139 "configure"
16139 #include "confdefs.h"
16140 #include "confdefs.h"
16141 #include <sys/types.h>
16145 switch (0) case 0: case (sizeof (long) == $ac_size):;
16148 if { (eval echo configure:16149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16150 ac_cv_sizeof_long=$ac_size
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16156 if test x$ac_cv_sizeof_long != x ; then break; fi
16161 if test x$ac_cv_sizeof_long = x ; then
16162 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16164 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16165 cat >> confdefs.h <<EOF
16166 #define SIZEOF_LONG $ac_cv_sizeof_long
16171 if test "$ac_cv_sizeof_int" -lt 4 ; then
16172 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16174 cat >> confdefs.h <<\EOF
16175 #define LBER_INT_T long
16179 cat >> confdefs.h <<\EOF
16180 #define LBER_INT_T int
16185 cat >> confdefs.h <<\EOF
16186 #define LBER_LEN_T long
16189 cat >> confdefs.h <<\EOF
16190 #define LBER_SOCKET_T int
16193 cat >> confdefs.h <<\EOF
16194 #define LBER_TAG_T long
16198 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16199 echo "configure:16200: checking for 8-bit clean memcmp" >&5
16200 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16201 echo $ac_n "(cached) $ac_c" 1>&6
16203 if test "$cross_compiling" = yes; then
16204 ac_cv_func_memcmp_clean=no
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16212 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16213 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16217 if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16219 ac_cv_func_memcmp_clean=yes
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16224 ac_cv_func_memcmp_clean=no
16231 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16232 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16234 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16235 echo "configure:16236: checking for strftime" >&5
16236 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16237 echo $ac_n "(cached) $ac_c" 1>&6
16239 cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16242 /* System header to define __stub macros and hopefully few prototypes,
16243 which can conflict with char strftime(); below. */
16244 #include <assert.h>
16245 /* Override any gcc2 internal prototype to avoid an error. */
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16253 /* The GNU C library defines this for functions which it implements
16254 to always fail with ENOSYS. Some functions are actually named
16255 something starting with __ and the normal name is an alias. */
16256 #if defined (__stub_strftime) || defined (__stub___strftime)
16264 if { (eval echo configure:16265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266 eval "ac_cv_func_strftime=yes"
16268 echo "configure: failed program was:" >&5
16269 cat conftest.$ac_ext >&5
16271 eval "ac_cv_func_strftime=no"
16276 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16277 echo "$ac_t""yes" 1>&6
16278 cat >> confdefs.h <<\EOF
16279 #define HAVE_STRFTIME 1
16283 echo "$ac_t""no" 1>&6
16284 # strftime is in -lintl on SCO UNIX.
16285 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16286 echo "configure:16287: checking for strftime in -lintl" >&5
16287 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16288 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
16291 ac_save_LIBS="$LIBS"
16292 LIBS="-lintl $LIBS"
16293 cat > conftest.$ac_ext <<EOF
16294 #line 16295 "configure"
16295 #include "confdefs.h"
16296 /* Override any gcc2 internal prototype to avoid an error. */
16297 /* We use char because int might match the return type of a gcc2
16298 builtin and then its argument prototype would still apply. */
16305 if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16307 eval "ac_cv_lib_$ac_lib_var=yes"
16309 echo "configure: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16312 eval "ac_cv_lib_$ac_lib_var=no"
16315 LIBS="$ac_save_LIBS"
16318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16320 cat >> confdefs.h <<\EOF
16321 #define HAVE_STRFTIME 1
16324 LIBS="-lintl $LIBS"
16326 echo "$ac_t""no" 1>&6
16332 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16333 echo "configure:16334: checking for inet_aton()" >&5
16334 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16335 echo $ac_n "(cached) $ac_c" 1>&6
16337 cat > conftest.$ac_ext <<EOF
16338 #line 16339 "configure"
16339 #include "confdefs.h"
16341 #ifdef HAVE_SYS_TYPES_H
16342 # include <sys/types.h>
16344 #ifdef HAVE_SYS_SOCKET_H
16345 # include <sys/socket.h>
16346 # ifdef HAVE_SYS_SELECT_H
16347 # include <sys/select.h>
16349 # include <netinet/in.h>
16350 # ifdef HAVE_ARPA_INET_H
16351 # include <arpa/inet.h>
16357 int rc = inet_aton( "255.255.255.255", &in );
16360 if { (eval echo configure:16361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16362 ol_cv_func_inet_aton=yes
16364 echo "configure: failed program was:" >&5
16365 cat conftest.$ac_ext >&5
16367 ol_cv_func_inet_aton=no
16372 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16373 if test $ol_cv_func_inet_aton != no; then
16374 cat >> confdefs.h <<\EOF
16375 #define HAVE_INET_ATON 1
16381 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16382 echo "configure:16383: checking for _spawnlp" >&5
16383 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char _spawnlp(); below. */
16391 #include <assert.h>
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413 eval "ac_cv_func__spawnlp=yes"
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16418 eval "ac_cv_func__spawnlp=no"
16423 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 cat >> confdefs.h <<\EOF
16426 #define HAVE_SPAWNLP 1
16430 echo "$ac_t""no" 1>&6
16434 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16435 echo "configure:16436: checking for _snprintf" >&5
16436 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
16439 cat > conftest.$ac_ext <<EOF
16440 #line 16441 "configure"
16441 #include "confdefs.h"
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char _snprintf(); below. */
16444 #include <assert.h>
16445 /* Override any gcc2 internal prototype to avoid an error. */
16446 /* We use char because int might match the return type of a gcc2
16447 builtin and then its argument prototype would still apply. */
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16464 if { (eval echo configure:16465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16466 eval "ac_cv_func__snprintf=yes"
16468 echo "configure: failed program was:" >&5
16469 cat conftest.$ac_ext >&5
16471 eval "ac_cv_func__snprintf=no"
16476 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16477 echo "$ac_t""yes" 1>&6
16478 ac_cv_func_snprintf=yes
16479 cat >> confdefs.h <<\EOF
16480 #define snprintf _snprintf
16485 echo "$ac_t""no" 1>&6
16489 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16490 echo "configure:16491: checking for _vsnprintf" >&5
16491 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16497 /* System header to define __stub macros and hopefully few prototypes,
16498 which can conflict with char _vsnprintf(); below. */
16499 #include <assert.h>
16500 /* Override any gcc2 internal prototype to avoid an error. */
16501 /* We use char because int might match the return type of a gcc2
16502 builtin and then its argument prototype would still apply. */
16508 /* The GNU C library defines this for functions which it implements
16509 to always fail with ENOSYS. Some functions are actually named
16510 something starting with __ and the normal name is an alias. */
16511 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16519 if { (eval echo configure:16520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16521 eval "ac_cv_func__vsnprintf=yes"
16523 echo "configure: failed program was:" >&5
16524 cat conftest.$ac_ext >&5
16526 eval "ac_cv_func__vsnprintf=no"
16531 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16532 echo "$ac_t""yes" 1>&6
16533 ac_cv_func_vsnprintf=yes
16534 cat >> confdefs.h <<\EOF
16535 #define vsnprintf _vsnprintf
16540 echo "$ac_t""no" 1>&6
16544 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16545 echo "configure:16546: checking for vprintf" >&5
16546 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16547 echo $ac_n "(cached) $ac_c" 1>&6
16549 cat > conftest.$ac_ext <<EOF
16550 #line 16551 "configure"
16551 #include "confdefs.h"
16552 /* System header to define __stub macros and hopefully few prototypes,
16553 which can conflict with char vprintf(); below. */
16554 #include <assert.h>
16555 /* Override any gcc2 internal prototype to avoid an error. */
16556 /* We use char because int might match the return type of a gcc2
16557 builtin and then its argument prototype would still apply. */
16563 /* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16574 if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16576 eval "ac_cv_func_vprintf=yes"
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16581 eval "ac_cv_func_vprintf=no"
16586 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16587 echo "$ac_t""yes" 1>&6
16588 cat >> confdefs.h <<\EOF
16589 #define HAVE_VPRINTF 1
16593 echo "$ac_t""no" 1>&6
16596 if test "$ac_cv_func_vprintf" != yes; then
16597 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16598 echo "configure:16599: checking for _doprnt" >&5
16599 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 /* System header to define __stub macros and hopefully few prototypes,
16606 which can conflict with char _doprnt(); below. */
16607 #include <assert.h>
16608 /* Override any gcc2 internal prototype to avoid an error. */
16609 /* We use char because int might match the return type of a gcc2
16610 builtin and then its argument prototype would still apply. */
16616 /* The GNU C library defines this for functions which it implements
16617 to always fail with ENOSYS. Some functions are actually named
16618 something starting with __ and the normal name is an alias. */
16619 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16627 if { (eval echo configure:16628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16629 eval "ac_cv_func__doprnt=yes"
16631 echo "configure: failed program was:" >&5
16632 cat conftest.$ac_ext >&5
16634 eval "ac_cv_func__doprnt=no"
16639 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16640 echo "$ac_t""yes" 1>&6
16641 cat >> confdefs.h <<\EOF
16642 #define HAVE_DOPRNT 1
16646 echo "$ac_t""no" 1>&6
16652 if test $ac_cv_func_vprintf = yes ; then
16653 for ac_func in vsnprintf vsprintf
16655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16656 echo "configure:16657: checking for $ac_func" >&5
16657 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16660 cat > conftest.$ac_ext <<EOF
16661 #line 16662 "configure"
16662 #include "confdefs.h"
16663 /* System header to define __stub macros and hopefully few prototypes,
16664 which can conflict with char $ac_func(); below. */
16665 #include <assert.h>
16666 /* Override any gcc2 internal prototype to avoid an error. */
16667 /* We use char because int might match the return type of a gcc2
16668 builtin and then its argument prototype would still apply. */
16674 /* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16685 if { (eval echo configure:16686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16687 eval "ac_cv_func_$ac_func=yes"
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16692 eval "ac_cv_func_$ac_func=no"
16697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16698 echo "$ac_t""yes" 1>&6
16699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16700 cat >> confdefs.h <<EOF
16701 #define $ac_tr_func 1
16705 echo "$ac_t""no" 1>&6
16764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16765 echo "configure:16766: checking for $ac_func" >&5
16766 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16769 cat > conftest.$ac_ext <<EOF
16770 #line 16771 "configure"
16771 #include "confdefs.h"
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func(); below. */
16774 #include <assert.h>
16775 /* Override any gcc2 internal prototype to avoid an error. */
16776 /* We use char because int might match the return type of a gcc2
16777 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 if { (eval echo configure:16795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16796 eval "ac_cv_func_$ac_func=yes"
16798 echo "configure: failed program was:" >&5
16799 cat conftest.$ac_ext >&5
16801 eval "ac_cv_func_$ac_func=no"
16806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16807 echo "$ac_t""yes" 1>&6
16808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16809 cat >> confdefs.h <<EOF
16810 #define $ac_tr_func 1
16814 echo "$ac_t""no" 1>&6
16819 for ac_func in getopt tempnam
16821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16822 echo "configure:16823: checking for $ac_func" >&5
16823 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 /* System header to define __stub macros and hopefully few prototypes,
16830 which can conflict with char $ac_func(); below. */
16831 #include <assert.h>
16832 /* Override any gcc2 internal prototype to avoid an error. */
16833 /* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16851 if { (eval echo configure:16852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16853 eval "ac_cv_func_$ac_func=yes"
16855 echo "configure: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16858 eval "ac_cv_func_$ac_func=no"
16863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16864 echo "$ac_t""yes" 1>&6
16865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16866 cat >> confdefs.h <<EOF
16867 #define $ac_tr_func 1
16871 echo "$ac_t""no" 1>&6
16872 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16878 if test "$ac_cv_func_getopt" != yes; then
16879 LIBSRCS="$LIBSRCS getopt.c"
16882 if test "$ac_cv_func_tempnam" != yes; then
16883 LIBSRCS="$LIBSRCS tempnam.c"
16886 # Check Configuration
16887 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16888 echo "configure:16889: checking declaration of sys_errlist" >&5
16889 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16890 echo $ac_n "(cached) $ac_c" 1>&6
16893 cat > conftest.$ac_ext <<EOF
16894 #line 16895 "configure"
16895 #include "confdefs.h"
16898 #include <sys/types.h>
16901 #include <stdlib.h>
16904 char *c = (char *) *sys_errlist
16907 if { (eval echo configure:16908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16909 ol_cv_dcl_sys_errlist=yes
16910 ol_cv_have_sys_errlist=yes
16912 echo "configure: failed program was:" >&5
16913 cat conftest.$ac_ext >&5
16915 ol_cv_dcl_sys_errlist=no
16920 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16922 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16923 if test $ol_cv_dcl_sys_errlist = no ; then
16924 cat >> confdefs.h <<\EOF
16925 #define DECL_SYS_ERRLIST 1
16929 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16930 echo "configure:16931: checking existence of sys_errlist" >&5
16931 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16935 cat > conftest.$ac_ext <<EOF
16936 #line 16937 "configure"
16937 #include "confdefs.h"
16940 char *c = (char *) *sys_errlist
16943 if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16945 ol_cv_have_sys_errlist=yes
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16950 ol_cv_have_sys_errlist=no
16955 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16957 if test $ol_cv_have_sys_errlist = yes ; then
16958 cat >> confdefs.h <<\EOF
16959 #define HAVE_SYS_ERRLIST 1
16966 if test "$ol_enable_debug" != no ; then
16967 cat >> confdefs.h <<\EOF
16968 #define LDAP_DEBUG 1
16972 if test "$ol_enable_syslog" = yes ; then
16973 cat >> confdefs.h <<\EOF
16974 #define LDAP_SYSLOG 1
16978 if test "$ol_enable_cache" = no ; then
16979 cat >> confdefs.h <<\EOF
16980 #define LDAP_NOCACHE 1
16984 if test "$ol_link_kbind" != no ; then
16985 cat >> confdefs.h <<\EOF
16986 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16990 if test "$ol_enable_proctitle" != no ; then
16991 cat >> confdefs.h <<\EOF
16992 #define LDAP_PROCTITLE 1
16996 if test "$ol_enable_referrals" != no ; then
16997 cat >> confdefs.h <<\EOF
16998 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17002 if test "$ol_enable_local" != no; then
17003 cat >> confdefs.h <<\EOF
17004 #define LDAP_PF_LOCAL 1
17008 if test "$ol_link_ipv6" != no; then
17009 cat >> confdefs.h <<\EOF
17010 #define LDAP_PF_INET6 1
17014 if test "$ol_enable_cleartext" != no ; then
17015 cat >> confdefs.h <<\EOF
17016 #define SLAPD_CLEARTEXT 1
17020 if test "$ol_enable_crypt" != no ; then
17021 cat >> confdefs.h <<\EOF
17022 #define SLAPD_CRYPT 1
17026 if test "$ol_link_kpasswd" != no ; then
17027 cat >> confdefs.h <<\EOF
17028 #define SLAPD_KPASSWD 1
17032 if test "$ol_link_spasswd" != no ; then
17033 cat >> confdefs.h <<\EOF
17034 #define SLAPD_SPASSWD 1
17038 if test "$ol_enable_phonetic" != no ; then
17039 cat >> confdefs.h <<\EOF
17040 #define SLAPD_PHONETIC 1
17044 if test "$ol_enable_rlookups" != no ; then
17045 cat >> confdefs.h <<\EOF
17046 #define SLAPD_RLOOKUPS 1
17050 if test "$ol_enable_aci" != no ; then
17051 cat >> confdefs.h <<\EOF
17052 #define SLAPD_ACI_ENABLED 1
17057 if test "$ol_link_modules" != no ; then
17058 cat >> confdefs.h <<\EOF
17059 #define SLAPD_MODULES 1
17063 SLAPD_MODULES_LDFLAGS="-dlopen self"
17066 if test "$ol_link_dnssrv" != no ; then
17067 cat >> confdefs.h <<\EOF
17068 #define SLAPD_DNSSRV 1
17073 if test "$ol_with_dnssrv_module" != static ; then
17074 cat >> confdefs.h <<\EOF
17075 #define SLAPD_DNSSRV_DYNAMIC 1
17079 BUILD_DNSSRV_DYNAMIC=shared
17080 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17084 if test "$ol_enable_ldap" != no ; then
17085 cat >> confdefs.h <<\EOF
17086 #define SLAPD_LDAP 1
17091 if test "$ol_with_ldap_module" != static ; then
17092 cat >> confdefs.h <<\EOF
17093 #define SLAPD_LDAP_DYNAMIC 1
17097 BUILD_LDAP_DYNAMIC=shared
17098 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17102 if test "$ol_link_ldbm" != no ; then
17103 cat >> confdefs.h <<\EOF
17104 #define SLAPD_LDBM 1
17109 if test "$ol_with_ldbm_module" != static ; then
17110 cat >> confdefs.h <<\EOF
17111 #define SLAPD_LDBM_DYNAMIC 1
17115 BUILD_LDBM_DYNAMIC=shared
17116 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17120 if test "$ol_enable_passwd" != no ; then
17121 cat >> confdefs.h <<\EOF
17122 #define SLAPD_PASSWD 1
17127 if test "$ol_with_passwd_module" != static ; then
17128 cat >> confdefs.h <<\EOF
17129 #define SLAPD_PASSWD_DYNAMIC 1
17133 BUILD_PASSWD_DYNAMIC=shared
17134 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17138 if test "$ol_enable_shell" != no ; then
17139 cat >> confdefs.h <<\EOF
17140 #define SLAPD_SHELL 1
17145 if test "$ol_with_shell_module" != static ; then
17146 cat >> confdefs.h <<\EOF
17147 #define SLAPD_SHELL_DYNAMIC 1
17151 BUILD_SHELL_DYNAMIC=shared
17152 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17156 if test "$ol_enable_sql" != no ; then
17157 cat >> confdefs.h <<\EOF
17158 #define SLAPD_SQL 1
17163 if test "$ol_with_sql_module" != static; then
17164 cat >> confdefs.h <<\EOF
17165 #define SLAPD_SQL_DYNAMIC 1
17169 BUILD_SQL_DYNAMIC=shared
17170 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17174 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17175 $BUILD_SLAPD = yes ; then
17180 if test "$LINK_BINS_DYNAMIC" = yes; then
17182 LT_LIB_LINKAGE=shared
17185 LT_LIB_LINKAGE=static
17188 if test "$ac_cv_mingw32" = yes ; then
17248 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17251 # Let make expand exec_prefix.
17252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17254 # Any assignment to VPATH causes Sun make to only execute
17255 # the first set of double-colon rules, so remove it if not needed.
17256 # If there is a colon in the path, we need to keep it.
17257 if test "x$srcdir" = x.; then
17258 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17261 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17263 DEFS=-DHAVE_CONFIG_H
17265 # Without the "./", some shells look in PATH for config.status.
17266 : ${CONFIG_STATUS=./config.status}
17268 echo creating $CONFIG_STATUS
17269 rm -f $CONFIG_STATUS
17270 cat > $CONFIG_STATUS <<EOF
17272 # Generated automatically by configure.
17273 # Run this file to recreate the current configuration.
17274 # This directory was configured as follows,
17275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17277 # $0 $ac_configure_args
17279 # Compiler output produced by configure, useful for debugging
17280 # configure, is in ./config.log if it exists.
17282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17285 case "\$ac_option" in
17286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17290 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17292 -help | --help | --hel | --he | --h)
17293 echo "\$ac_cs_usage"; exit 0 ;;
17294 *) echo "\$ac_cs_usage"; exit 1 ;;
17298 ac_given_srcdir=$srcdir
17299 ac_given_INSTALL="$INSTALL"
17301 trap 'rm -fr `echo "\
17302 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17303 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17304 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17305 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17306 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17307 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17308 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17309 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17310 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17311 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17312 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17313 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17314 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17315 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17316 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17317 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17318 include/Makefile:build/top.mk:include/Makefile.in \
17319 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17320 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17321 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17322 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17323 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17324 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17325 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17326 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17327 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17328 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17329 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17330 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17331 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17332 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17333 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17334 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17335 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17336 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17337 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17338 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17339 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17340 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17341 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17342 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17344 cat >> $CONFIG_STATUS <<EOF
17346 # Protect against being on the right side of a sed subst in config.status.
17347 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17348 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17352 s%@CFLAGS@%$CFLAGS%g
17353 s%@CPPFLAGS@%$CPPFLAGS%g
17354 s%@CXXFLAGS@%$CXXFLAGS%g
17355 s%@FFLAGS@%$FFLAGS%g
17357 s%@LDFLAGS@%$LDFLAGS%g
17359 s%@exec_prefix@%$exec_prefix%g
17360 s%@prefix@%$prefix%g
17361 s%@program_transform_name@%$program_transform_name%g
17362 s%@bindir@%$bindir%g
17363 s%@sbindir@%$sbindir%g
17364 s%@libexecdir@%$libexecdir%g
17365 s%@datadir@%$datadir%g
17366 s%@sysconfdir@%$sysconfdir%g
17367 s%@sharedstatedir@%$sharedstatedir%g
17368 s%@localstatedir@%$localstatedir%g
17369 s%@libdir@%$libdir%g
17370 s%@includedir@%$includedir%g
17371 s%@oldincludedir@%$oldincludedir%g
17372 s%@infodir@%$infodir%g
17373 s%@mandir@%$mandir%g
17375 s%@host_alias@%$host_alias%g
17376 s%@host_cpu@%$host_cpu%g
17377 s%@host_vendor@%$host_vendor%g
17378 s%@host_os@%$host_os%g
17379 s%@target@%$target%g
17380 s%@target_alias@%$target_alias%g
17381 s%@target_cpu@%$target_cpu%g
17382 s%@target_vendor@%$target_vendor%g
17383 s%@target_os@%$target_os%g
17385 s%@build_alias@%$build_alias%g
17386 s%@build_cpu@%$build_cpu%g
17387 s%@build_vendor@%$build_vendor%g
17388 s%@build_os@%$build_os%g
17389 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17390 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17391 s%@INSTALL_DATA@%$INSTALL_DATA%g
17392 s%@PACKAGE@%$PACKAGE%g
17393 s%@VERSION@%$VERSION%g
17394 s%@ACLOCAL@%$ACLOCAL%g
17395 s%@AUTOCONF@%$AUTOCONF%g
17396 s%@AUTOMAKE@%$AUTOMAKE%g
17397 s%@AUTOHEADER@%$AUTOHEADER%g
17398 s%@MAKEINFO@%$MAKEINFO%g
17399 s%@install_sh@%$install_sh%g
17402 s%@AMTARFLAGS@%$AMTARFLAGS%g
17403 s%@SET_MAKE@%$SET_MAKE%g
17404 s%@top_builddir@%$top_builddir%g
17405 s%@ldap_subdir@%$ldap_subdir%g
17408 s%@RANLIB@%$RANLIB%g
17410 s%@DLLTOOL@%$DLLTOOL%g
17412 s%@OBJDUMP@%$OBJDUMP%g
17413 s%@LIBTOOL@%$LIBTOOL%g
17415 s%@SENDMAIL@%$SENDMAIL%g
17416 s%@EDITOR@%$EDITOR%g
17417 s%@FINGER@%$FINGER%g
17419 s%@EXEEXT@%$EXEEXT%g
17420 s%@OBJEXT@%$OBJEXT%g
17421 s%@OL_MKDEP@%$OL_MKDEP%g
17422 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17423 s%@LIBOBJS@%$LIBOBJS%g
17424 s%@LIBSRCS@%$LIBSRCS%g
17426 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17427 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17428 s%@DYN_EXT@%$DYN_EXT%g
17429 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17430 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17431 s%@BUILD_LDAP@%$BUILD_LDAP%g
17432 s%@BUILD_LDBM@%$BUILD_LDBM%g
17433 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17434 s%@BUILD_SHELL@%$BUILD_SHELL%g
17435 s%@BUILD_SQL@%$BUILD_SQL%g
17436 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17437 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17438 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17439 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17440 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17441 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17442 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17443 s%@LDAP_LIBS@%$LDAP_LIBS%g
17444 s%@LDIF_LIBS@%$LDIF_LIBS%g
17445 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17446 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17447 s%@LDBM_LIBS@%$LDBM_LIBS%g
17448 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17449 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17450 s%@WRAP_LIBS@%$WRAP_LIBS%g
17451 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17452 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17453 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17454 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17455 s%@KRB4_LIBS@%$KRB4_LIBS%g
17456 s%@KRB5_LIBS@%$KRB5_LIBS%g
17457 s%@READLINE_LIBS@%$READLINE_LIBS%g
17458 s%@SASL_LIBS@%$SASL_LIBS%g
17459 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17460 s%@TLS_LIBS@%$TLS_LIBS%g
17461 s%@MODULES_LIBS@%$MODULES_LIBS%g
17462 s%@AUTH_LIBS@%$AUTH_LIBS%g
17463 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17464 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17465 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17470 cat >> $CONFIG_STATUS <<\EOF
17472 # Split the substitutions into bite-sized pieces for seds with
17473 # small command number limits, like on Digital OSF/1 and HP-UX.
17474 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17475 ac_file=1 # Number of current file.
17476 ac_beg=1 # First line for current file.
17477 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17480 while $ac_more_lines; do
17481 if test $ac_beg -gt 1; then
17482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17484 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17486 if test ! -s conftest.s$ac_file; then
17487 ac_more_lines=false
17488 rm -f conftest.s$ac_file
17490 if test -z "$ac_sed_cmds"; then
17491 ac_sed_cmds="sed -f conftest.s$ac_file"
17493 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17495 ac_file=`expr $ac_file + 1`
17497 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17500 if test -z "$ac_sed_cmds"; then
17505 cat >> $CONFIG_STATUS <<EOF
17507 CONFIG_FILES=\${CONFIG_FILES-"\
17508 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17509 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17510 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17511 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17512 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17513 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17514 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17515 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17516 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17517 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17518 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17519 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17520 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17521 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17522 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17523 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17524 include/Makefile:build/top.mk:include/Makefile.in \
17525 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17526 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17527 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17528 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17529 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17530 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17531 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17532 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17533 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17534 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17535 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17536 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17537 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17538 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17539 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17540 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17541 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17542 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17543 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17544 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17545 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17546 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17547 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17550 cat >> $CONFIG_STATUS <<\EOF
17551 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17554 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17555 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17556 *) ac_file_in="${ac_file}.in" ;;
17559 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17561 # Remove last slash and all that follows it. Not all systems have dirname.
17562 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17563 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17564 # The file is in a subdirectory.
17565 test ! -d "$ac_dir" && mkdir "$ac_dir"
17566 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17567 # A "../" for each directory in $ac_dir_suffix.
17568 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17570 ac_dir_suffix= ac_dots=
17573 case "$ac_given_srcdir" in
17575 if test -z "$ac_dots"; then top_srcdir=.
17576 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17577 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17578 *) # Relative path.
17579 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17580 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17583 case "$ac_given_INSTALL" in
17584 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17585 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17588 echo creating "$ac_file"
17590 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17592 *[Mm]akefile*) ac_comsub="1i\\
17593 # $configure_input" ;;
17597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17599 s%@configure_input@%$configure_input%g
17600 s%@srcdir@%$srcdir%g
17601 s%@top_srcdir@%$top_srcdir%g
17602 s%@INSTALL@%$INSTALL%g
17603 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17607 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17608 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17610 # ac_d sets the value in "#define NAME VALUE" lines.
17611 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17612 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17615 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17616 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17617 ac_uB='\([ ]\)%\1#\2define\3'
17620 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17621 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17622 ac_eB='$%\1#\2define\3'
17626 if test "${CONFIG_HEADERS+set}" != set; then
17628 cat >> $CONFIG_STATUS <<EOF
17629 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17631 cat >> $CONFIG_STATUS <<\EOF
17633 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17638 *) ac_file_in="${ac_file}.in" ;;
17641 echo creating $ac_file
17643 rm -f conftest.frag conftest.in conftest.out
17644 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17645 cat $ac_file_inputs > conftest.in
17649 # Transform confdefs.h into a sed script conftest.vals that substitutes
17650 # the proper values into config.h.in to produce config.h. And first:
17651 # Protect against being on the right side of a sed subst in config.status.
17652 # Protect against being in an unquoted here document in config.status.
17653 rm -f conftest.vals
17654 cat > conftest.hdr <<\EOF
17657 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17661 sed -n -f conftest.hdr confdefs.h > conftest.vals
17664 # This sed command replaces #undef with comments. This is necessary, for
17665 # example, in the case of _POSIX_SOURCE, which is predefined and required
17666 # on some systems where configure will not decide to define it.
17667 cat >> conftest.vals <<\EOF
17668 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17671 # Break up conftest.vals because some shells have a limit on
17672 # the size of here documents, and old seds have small limits too.
17674 rm -f conftest.tail
17677 ac_lines=`grep -c . conftest.vals`
17678 # grep -c gives empty output for an empty file on some AIX systems.
17679 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17680 # Write a limited-size here document to conftest.frag.
17681 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17682 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17684 sed -f conftest.frag conftest.in > conftest.out
17686 mv conftest.out conftest.in
17687 ' >> $CONFIG_STATUS
17688 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17689 rm -f conftest.vals
17690 mv conftest.tail conftest.vals
17692 rm -f conftest.vals
17694 cat >> $CONFIG_STATUS <<\EOF
17695 rm -f conftest.frag conftest.h
17696 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17697 cat conftest.in >> conftest.h
17699 if cmp -s $ac_file conftest.h 2>/dev/null; then
17700 echo "$ac_file is unchanged"
17703 # Remove last slash and all that follows it. Not all systems have dirname.
17704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17706 # The file is in a subdirectory.
17707 test ! -d "$ac_dir" && mkdir "$ac_dir"
17710 mv conftest.h $ac_file
17715 cat >> $CONFIG_STATUS <<EOF
17718 cat >> $CONFIG_STATUS <<\EOF
17721 echo Please \"make depend\" to build dependencies
17725 chmod +x $CONFIG_STATUS
17726 rm -fr confdefs* $ac_clean_files
17727 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1