2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.624 2006/01/16 17:54:36 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-ldbm enable ldbm backend no|yes|mod [no]
1038 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1040 --enable-meta enable metadirectory backend no|yes|mod [no]
1041 --enable-monitor enable monitor backend no|yes|mod [yes]
1042 --enable-null enable null backend no|yes|mod [no]
1043 --enable-passwd enable passwd backend no|yes|mod [no]
1044 --enable-perl enable perl backend no|yes|mod [no]
1045 --enable-relay enable relay backend no|yes|mod [yes]
1046 --enable-shell enable shell backend no|yes|mod [no]
1047 --enable-sql enable sql backend no|yes|mod [no]
1049 SLAPD Overlay Options:
1050 --enable-overlays enable all available overlays no|yes|mod
1051 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1052 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1053 --enable-denyop Deny Operation overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-lastmod Last Modification overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-multiple-precision
1091 multiple precision support for statistics
1092 auto|bignum|gmp [auto]
1094 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1095 --with-pic try to use only PIC/non-PIC objects [default=use
1098 include additional configurations [automatic]
1100 See INSTALL file for further details.
1102 Some influential environment variables:
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 ac_dir_suffix= ac_top_builddir=
1133 .) # No --srcdir option. We are building in place.
1135 if test -z "$ac_top_builddir"; then
1138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1151 .) ac_abs_builddir="$ac_dir";;
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1198 $ac_configure --help
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59. Invocation command line was
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 test -z "$as_dir" && as_dir=.
1260 echo "PATH: $as_dir"
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1284 ac_must_keep_next=false
1290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301 if test $ac_must_keep_next = true; then
1302 ac_must_keep_next=false # Got value, back to normal.
1305 *=* | --config-cache | -C | -disable-* | --disable-* \
1306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308 | -with-* | --with-* | -without-* | --without-* | --x)
1309 case "$ac_configure_args0 " in
1310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 -* ) ac_must_keep_next=true ;;
1316 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317 # Get rid of the leading space.
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log. We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332 # Save into config.log some information that might help in debugging.
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1342 # The following way of writing the cache mishandles newlines in values,
1345 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1365 for ac_var in $ac_subst_vars
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1372 if test -n "$ac_subst_files"; then
1379 for ac_var in $ac_subst_files
1381 eval ac_val=$`echo $ac_var`
1382 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -s confdefs.h; then
1394 sed "/^$/d" confdefs.h | sort
1397 test "$ac_signal" != 0 &&
1398 echo "$as_me: caught signal $ac_signal"
1399 echo "$as_me: exit $exit_status"
1401 rm -f core *.core &&
1402 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 for ac_signal in 1 2 13 15; do
1406 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415 # Predefined preprocessor variables.
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445 if test "x$prefix" != xNONE; then
1446 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 for ac_site_file in $CONFIG_SITE; do
1452 if test -r "$ac_site_file"; then
1453 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455 sed 's/^/| /' "$ac_site_file" >&5
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 for ac_dir in build $srcdir/build; do
1562 if test -f $ac_dir/install-sh; then
1564 ac_install_sh="$ac_aux_dir/install-sh -c"
1566 elif test -f $ac_dir/install.sh; then
1568 ac_install_sh="$ac_aux_dir/install.sh -c"
1570 elif test -f $ac_dir/shtool; then
1572 ac_install_sh="$ac_aux_dir/shtool install -c"
1576 if test -z "$ac_aux_dir"; then
1577 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1578 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1579 { (exit 1); exit 1; }; }
1581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1583 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585 eval `$ac_aux_dir/version.sh`
1586 if test -z "$OL_STRING"; then
1587 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1588 echo "$as_me: error: could not determine version" >&2;}
1589 { (exit 1); exit 1; }; }
1592 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1593 ac_cv_shtool="$ac_aux_dir/shtool"
1595 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1596 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1597 { (exit 1); exit 1; }; }
1600 SHTOOL="$ac_cv_shtool"
1602 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1606 if test -d $ac_aux_dir/CVS; then
1607 OPENLDAP_CVS="(from CVS sources) "
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625 ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629 { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651 ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673 ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691 test "$program_prefix$program_suffix$program_transform_name" = \
1693 program_prefix=${target_alias}-
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1789 set X `ls -t $srcdir/configure conftest.file`
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1806 test "$2" = conftest.file
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1867 for d in ./-p ./--version;
1869 test -d $d && rmdir $d
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1875 mkdir_p='$(install_sh) -d'
1879 for ac_prog in gawk mawk nawk awk
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$AWK" && break
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.make <<\_ACEOF
1927 @echo 'ac_maketemp="$(MAKE)"'
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1934 eval ac_cv_prog_make_${ac_make}_set=no
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1955 rmdir .tst 2>/dev/null
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1975 # Define the identity of the package.
1980 # Some tools Automake needs.
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'. However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$STRIP"; then
2012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032 echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_STRIP"; then
2042 # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_STRIP"; then
2050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_STRIP="strip"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2080 STRIP="$ac_cv_prog_STRIP"
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086 # We need awk for the "check" target. The system "awk" is bad on
2088 # Always define AMTAR for backward compatibility.
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2141 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2143 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2145 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154 ldap_subdir="/openldap"
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159 withval="$with_subdir"
2166 ldap_subdir="$withval"
2169 ldap_subdir="/$withval"
2175 # OpenLDAP --enable-debug
2177 # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179 enableval="$enable_debug"
2182 for ol_val in no yes traditional ; do
2183 if test "$enableval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190 { (exit 1); exit 1; }; }
2192 ol_enable_debug="$ol_arg"
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2200 # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202 enableval="$enable_dynamic"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213 { (exit 1); exit 1; }; }
2215 ol_enable_dynamic="$ol_arg"
2218 ol_enable_dynamic=no
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2223 # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225 enableval="$enable_syslog"
2228 for ol_val in auto yes no ; do
2229 if test "$enableval" = "$ol_val" ; then
2233 if test "$ol_arg" = "invalid" ; then
2234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236 { (exit 1); exit 1; }; }
2238 ol_enable_syslog="$ol_arg"
2241 ol_enable_syslog=auto
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2246 # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248 enableval="$enable_proctitle"
2251 for ol_val in auto yes no ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259 { (exit 1); exit 1; }; }
2261 ol_enable_proctitle="$ol_arg"
2264 ol_enable_proctitle=yes
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 ol_enable_kbind=${ol_enable_kbind-no}
2269 # OpenLDAP --enable-ipv6
2271 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273 enableval="$enable_ipv6"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284 { (exit 1); exit 1; }; }
2286 ol_enable_ipv6="$ol_arg"
2292 # OpenLDAP --enable-local
2294 # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296 enableval="$enable_local"
2299 for ol_val in auto yes no ; do
2300 if test "$enableval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307 { (exit 1); exit 1; }; }
2309 ol_enable_local="$ol_arg"
2312 ol_enable_local=auto
2314 # end --enable-local
2316 # OpenLDAP --with-cyrus_sasl
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320 withval="$with_cyrus_sasl"
2323 for ol_val in auto yes no ; do
2324 if test "$withval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331 { (exit 1); exit 1; }; }
2333 ol_with_cyrus_sasl="$ol_arg"
2336 ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2339 # OpenLDAP --with-fetch
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343 withval="$with_fetch"
2346 for ol_val in auto yes no ; do
2347 if test "$withval" = "$ol_val" ; then
2351 if test "$ol_arg" = "invalid" ; then
2352 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354 { (exit 1); exit 1; }; }
2356 ol_with_fetch="$ol_arg"
2359 ol_with_fetch="auto"
2360 fi; # end --with-fetch
2362 ol_with_kerberos=${ol_with_kerberos-auto}
2363 # OpenLDAP --with-threads
2365 # Check whether --with-threads or --without-threads was given.
2366 if test "${with_threads+set}" = set; then
2367 withval="$with_threads"
2370 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2371 if test "$withval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2377 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2378 { (exit 1); exit 1; }; }
2380 ol_with_threads="$ol_arg"
2383 ol_with_threads="auto"
2384 fi; # end --with-threads
2386 # OpenLDAP --with-tls
2388 # Check whether --with-tls or --without-tls was given.
2389 if test "${with_tls+set}" = set; then
2393 for ol_val in auto openssl yes no ; do
2394 if test "$withval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2400 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2401 { (exit 1); exit 1; }; }
2403 ol_with_tls="$ol_arg"
2407 fi; # end --with-tls
2409 # OpenLDAP --with-yielding_select
2411 # Check whether --with-yielding_select or --without-yielding_select was given.
2412 if test "${with_yielding_select+set}" = set; then
2413 withval="$with_yielding_select"
2416 for ol_val in auto yes no manual ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2423 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2424 { (exit 1); exit 1; }; }
2426 ol_with_yielding_select="$ol_arg"
2429 ol_with_yielding_select="auto"
2430 fi; # end --with-yielding_select
2432 # OpenLDAP --with-multiple_precision
2434 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2435 if test "${with_multiple_precision+set}" = set; then
2436 withval="$with_multiple_precision"
2439 for ol_val in auto bignum gmp yes no ; do
2440 if test "$withval" = "$ol_val" ; then
2444 if test "$ol_arg" = "invalid" ; then
2445 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2446 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2447 { (exit 1); exit 1; }; }
2449 ol_with_multiple_precision="$ol_arg"
2452 ol_with_multiple_precision="auto"
2453 fi; # end --with-multiple_precision
2457 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2458 if test "${enable_xxslapdoptions+set}" = set; then
2459 enableval="$enable_xxslapdoptions"
2462 # OpenLDAP --enable-slapd
2464 # Check whether --enable-slapd or --disable-slapd was given.
2465 if test "${enable_slapd+set}" = set; then
2466 enableval="$enable_slapd"
2469 for ol_val in auto yes no ; do
2470 if test "$enableval" = "$ol_val" ; then
2474 if test "$ol_arg" = "invalid" ; then
2475 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2476 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2477 { (exit 1); exit 1; }; }
2479 ol_enable_slapd="$ol_arg"
2484 # end --enable-slapd
2485 # OpenLDAP --enable-dynacl
2487 # Check whether --enable-dynacl or --disable-dynacl was given.
2488 if test "${enable_dynacl+set}" = set; then
2489 enableval="$enable_dynacl"
2492 for ol_val in auto yes no ; do
2493 if test "$enableval" = "$ol_val" ; then
2497 if test "$ol_arg" = "invalid" ; then
2498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2499 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2500 { (exit 1); exit 1; }; }
2502 ol_enable_dynacl="$ol_arg"
2507 # end --enable-dynacl
2508 # OpenLDAP --enable-aci
2510 # Check whether --enable-aci or --disable-aci was given.
2511 if test "${enable_aci+set}" = set; then
2512 enableval="$enable_aci"
2515 for ol_val in no yes mod ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_aci="$ol_arg"
2531 # OpenLDAP --enable-cleartext
2533 # Check whether --enable-cleartext or --disable-cleartext was given.
2534 if test "${enable_cleartext+set}" = set; then
2535 enableval="$enable_cleartext"
2538 for ol_val in auto yes no ; do
2539 if test "$enableval" = "$ol_val" ; then
2543 if test "$ol_arg" = "invalid" ; then
2544 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2546 { (exit 1); exit 1; }; }
2548 ol_enable_cleartext="$ol_arg"
2551 ol_enable_cleartext=yes
2553 # end --enable-cleartext
2554 # OpenLDAP --enable-crypt
2556 # Check whether --enable-crypt or --disable-crypt was given.
2557 if test "${enable_crypt+set}" = set; then
2558 enableval="$enable_crypt"
2561 for ol_val in auto yes no ; do
2562 if test "$enableval" = "$ol_val" ; then
2566 if test "$ol_arg" = "invalid" ; then
2567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2569 { (exit 1); exit 1; }; }
2571 ol_enable_crypt="$ol_arg"
2576 # end --enable-crypt
2577 # OpenLDAP --enable-lmpasswd
2579 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2580 if test "${enable_lmpasswd+set}" = set; then
2581 enableval="$enable_lmpasswd"
2584 for ol_val in auto yes no ; do
2585 if test "$enableval" = "$ol_val" ; then
2589 if test "$ol_arg" = "invalid" ; then
2590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2592 { (exit 1); exit 1; }; }
2594 ol_enable_lmpasswd="$ol_arg"
2597 ol_enable_lmpasswd=no
2599 # end --enable-lmpasswd
2600 # OpenLDAP --enable-spasswd
2602 # Check whether --enable-spasswd or --disable-spasswd was given.
2603 if test "${enable_spasswd+set}" = set; then
2604 enableval="$enable_spasswd"
2607 for ol_val in auto yes no ; do
2608 if test "$enableval" = "$ol_val" ; then
2612 if test "$ol_arg" = "invalid" ; then
2613 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2615 { (exit 1); exit 1; }; }
2617 ol_enable_spasswd="$ol_arg"
2620 ol_enable_spasswd=no
2622 # end --enable-spasswd
2623 # OpenLDAP --enable-modules
2625 # Check whether --enable-modules or --disable-modules was given.
2626 if test "${enable_modules+set}" = set; then
2627 enableval="$enable_modules"
2630 for ol_val in auto yes no ; do
2631 if test "$enableval" = "$ol_val" ; then
2635 if test "$ol_arg" = "invalid" ; then
2636 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2638 { (exit 1); exit 1; }; }
2640 ol_enable_modules="$ol_arg"
2643 ol_enable_modules=no
2645 # end --enable-modules
2646 ol_enable_multimaster=${ol_enable_multimaster-no}
2647 # OpenLDAP --enable-rewrite
2649 # Check whether --enable-rewrite or --disable-rewrite was given.
2650 if test "${enable_rewrite+set}" = set; then
2651 enableval="$enable_rewrite"
2654 for ol_val in auto yes no ; do
2655 if test "$enableval" = "$ol_val" ; then
2659 if test "$ol_arg" = "invalid" ; then
2660 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2661 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2662 { (exit 1); exit 1; }; }
2664 ol_enable_rewrite="$ol_arg"
2667 ol_enable_rewrite=auto
2669 # end --enable-rewrite
2670 # OpenLDAP --enable-rlookups
2672 # Check whether --enable-rlookups or --disable-rlookups was given.
2673 if test "${enable_rlookups+set}" = set; then
2674 enableval="$enable_rlookups"
2677 for ol_val in auto yes no ; do
2678 if test "$enableval" = "$ol_val" ; then
2682 if test "$ol_arg" = "invalid" ; then
2683 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2684 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2685 { (exit 1); exit 1; }; }
2687 ol_enable_rlookups="$ol_arg"
2690 ol_enable_rlookups=no
2692 # end --enable-rlookups
2693 # OpenLDAP --enable-slapi
2695 # Check whether --enable-slapi or --disable-slapi was given.
2696 if test "${enable_slapi+set}" = set; then
2697 enableval="$enable_slapi"
2700 for ol_val in auto yes no ; do
2701 if test "$enableval" = "$ol_val" ; then
2705 if test "$ol_arg" = "invalid" ; then
2706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2707 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2708 { (exit 1); exit 1; }; }
2710 ol_enable_slapi="$ol_arg"
2715 # end --enable-slapi
2716 # OpenLDAP --enable-slp
2718 # Check whether --enable-slp or --disable-slp was given.
2719 if test "${enable_slp+set}" = set; then
2720 enableval="$enable_slp"
2723 for ol_val in auto yes no ; do
2724 if test "$enableval" = "$ol_val" ; then
2728 if test "$ol_arg" = "invalid" ; then
2729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2730 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2731 { (exit 1); exit 1; }; }
2733 ol_enable_slp="$ol_arg"
2739 # OpenLDAP --enable-wrappers
2741 # Check whether --enable-wrappers or --disable-wrappers was given.
2742 if test "${enable_wrappers+set}" = set; then
2743 enableval="$enable_wrappers"
2746 for ol_val in auto yes no ; do
2747 if test "$enableval" = "$ol_val" ; then
2751 if test "$ol_arg" = "invalid" ; then
2752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2754 { (exit 1); exit 1; }; }
2756 ol_enable_wrappers="$ol_arg"
2759 ol_enable_wrappers=no
2761 # end --enable-wrappers
2777 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2778 if test "${enable_xxslapbackends+set}" = set; then
2779 enableval="$enable_xxslapbackends"
2783 # OpenLDAP --enable-backends
2785 # Check whether --enable-backends or --disable-backends was given.
2786 if test "${enable_backends+set}" = set; then
2787 enableval="$enable_backends"
2790 for ol_val in no yes mod ; do
2791 if test "$enableval" = "$ol_val" ; then
2795 if test "$ol_arg" = "invalid" ; then
2796 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2797 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2798 { (exit 1); exit 1; }; }
2800 ol_enable_backends="$ol_arg"
2803 # end --enable-backends
2804 # OpenLDAP --enable-bdb
2806 # Check whether --enable-bdb or --disable-bdb was given.
2807 if test "${enable_bdb+set}" = set; then
2808 enableval="$enable_bdb"
2811 for ol_val in no yes mod ; do
2812 if test "$enableval" = "$ol_val" ; then
2816 if test "$ol_arg" = "invalid" ; then
2817 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2818 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2819 { (exit 1); exit 1; }; }
2821 ol_enable_bdb="$ol_arg"
2824 ol_enable_bdb=${ol_enable_backends:-yes}
2827 # OpenLDAP --enable-dnssrv
2829 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2830 if test "${enable_dnssrv+set}" = set; then
2831 enableval="$enable_dnssrv"
2834 for ol_val in no yes mod ; do
2835 if test "$enableval" = "$ol_val" ; then
2839 if test "$ol_arg" = "invalid" ; then
2840 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2841 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2842 { (exit 1); exit 1; }; }
2844 ol_enable_dnssrv="$ol_arg"
2847 ol_enable_dnssrv=${ol_enable_backends:-no}
2849 # end --enable-dnssrv
2850 # OpenLDAP --enable-hdb
2852 # Check whether --enable-hdb or --disable-hdb was given.
2853 if test "${enable_hdb+set}" = set; then
2854 enableval="$enable_hdb"
2857 for ol_val in no yes mod ; do
2858 if test "$enableval" = "$ol_val" ; then
2862 if test "$ol_arg" = "invalid" ; then
2863 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2864 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2865 { (exit 1); exit 1; }; }
2867 ol_enable_hdb="$ol_arg"
2870 ol_enable_hdb=${ol_enable_backends:-yes}
2873 # OpenLDAP --enable-ldap
2875 # Check whether --enable-ldap or --disable-ldap was given.
2876 if test "${enable_ldap+set}" = set; then
2877 enableval="$enable_ldap"
2880 for ol_val in no yes mod ; do
2881 if test "$enableval" = "$ol_val" ; then
2885 if test "$ol_arg" = "invalid" ; then
2886 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2887 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2888 { (exit 1); exit 1; }; }
2890 ol_enable_ldap="$ol_arg"
2893 ol_enable_ldap=${ol_enable_backends:-no}
2896 # OpenLDAP --enable-ldbm
2898 # Check whether --enable-ldbm or --disable-ldbm was given.
2899 if test "${enable_ldbm+set}" = set; then
2900 enableval="$enable_ldbm"
2903 for ol_val in no yes mod ; do
2904 if test "$enableval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_enable_ldbm="$ol_arg"
2916 ol_enable_ldbm=${ol_enable_backends:-no}
2920 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2921 if test "${with_ldbm_api+set}" = set; then
2922 withval="$with_ldbm_api"
2924 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2925 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2926 enable_ldbm_api="$with_ldbm_api"
2928 # OpenLDAP --enable-ldbm_api
2930 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2931 if test "${enable_ldbm_api+set}" = set; then
2932 enableval="$enable_ldbm_api"
2935 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2936 if test "$enableval" = "$ol_val" ; then
2940 if test "$ol_arg" = "invalid" ; then
2941 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2942 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2943 { (exit 1); exit 1; }; }
2945 ol_enable_ldbm_api="$ol_arg"
2948 ol_enable_ldbm_api=auto
2950 # end --enable-ldbm_api
2953 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2954 if test "${with_ldbm_type+set}" = set; then
2955 withval="$with_ldbm_type"
2957 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2958 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2959 enable_ldbm_type="$with_ldbm_type"
2961 # OpenLDAP --enable-ldbm_type
2963 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2964 if test "${enable_ldbm_type+set}" = set; then
2965 enableval="$enable_ldbm_type"
2968 for ol_val in auto btree hash ; do
2969 if test "$enableval" = "$ol_val" ; then
2973 if test "$ol_arg" = "invalid" ; then
2974 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2976 { (exit 1); exit 1; }; }
2978 ol_enable_ldbm_type="$ol_arg"
2981 ol_enable_ldbm_type=auto
2983 # end --enable-ldbm_type
2985 # OpenLDAP --enable-meta
2987 # Check whether --enable-meta or --disable-meta was given.
2988 if test "${enable_meta+set}" = set; then
2989 enableval="$enable_meta"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_meta="$ol_arg"
3005 ol_enable_meta=${ol_enable_backends:-no}
3008 # OpenLDAP --enable-monitor
3010 # Check whether --enable-monitor or --disable-monitor was given.
3011 if test "${enable_monitor+set}" = set; then
3012 enableval="$enable_monitor"
3015 for ol_val in no yes mod ; do
3016 if test "$enableval" = "$ol_val" ; then
3020 if test "$ol_arg" = "invalid" ; then
3021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3023 { (exit 1); exit 1; }; }
3025 ol_enable_monitor="$ol_arg"
3028 ol_enable_monitor=${ol_enable_backends:-yes}
3030 # end --enable-monitor
3031 # OpenLDAP --enable-null
3033 # Check whether --enable-null or --disable-null was given.
3034 if test "${enable_null+set}" = set; then
3035 enableval="$enable_null"
3038 for ol_val in no yes mod ; do
3039 if test "$enableval" = "$ol_val" ; then
3043 if test "$ol_arg" = "invalid" ; then
3044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3046 { (exit 1); exit 1; }; }
3048 ol_enable_null="$ol_arg"
3051 ol_enable_null=${ol_enable_backends:-no}
3054 # OpenLDAP --enable-passwd
3056 # Check whether --enable-passwd or --disable-passwd was given.
3057 if test "${enable_passwd+set}" = set; then
3058 enableval="$enable_passwd"
3061 for ol_val in no yes mod ; do
3062 if test "$enableval" = "$ol_val" ; then
3066 if test "$ol_arg" = "invalid" ; then
3067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3069 { (exit 1); exit 1; }; }
3071 ol_enable_passwd="$ol_arg"
3074 ol_enable_passwd=${ol_enable_backends:-no}
3076 # end --enable-passwd
3077 # OpenLDAP --enable-perl
3079 # Check whether --enable-perl or --disable-perl was given.
3080 if test "${enable_perl+set}" = set; then
3081 enableval="$enable_perl"
3084 for ol_val in no yes mod ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_perl="$ol_arg"
3097 ol_enable_perl=${ol_enable_backends:-no}
3100 # OpenLDAP --enable-relay
3102 # Check whether --enable-relay or --disable-relay was given.
3103 if test "${enable_relay+set}" = set; then
3104 enableval="$enable_relay"
3107 for ol_val in no yes mod ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_relay="$ol_arg"
3120 ol_enable_relay=${ol_enable_backends:-yes}
3122 # end --enable-relay
3123 # OpenLDAP --enable-shell
3125 # Check whether --enable-shell or --disable-shell was given.
3126 if test "${enable_shell+set}" = set; then
3127 enableval="$enable_shell"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_shell="$ol_arg"
3143 ol_enable_shell=${ol_enable_backends:-no}
3145 # end --enable-shell
3146 # OpenLDAP --enable-sql
3148 # Check whether --enable-sql or --disable-sql was given.
3149 if test "${enable_sql+set}" = set; then
3150 enableval="$enable_sql"
3153 for ol_val in no yes mod ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_sql="$ol_arg"
3166 ol_enable_sql=${ol_enable_backends:-no}
3170 Overlays="accesslog \
3186 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3187 if test "${enable_xxslapoverlays+set}" = set; then
3188 enableval="$enable_xxslapoverlays"
3192 # OpenLDAP --enable-overlays
3194 # Check whether --enable-overlays or --disable-overlays was given.
3195 if test "${enable_overlays+set}" = set; then
3196 enableval="$enable_overlays"
3199 for ol_val in no yes mod ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_overlays="$ol_arg"
3212 # end --enable-overlays
3213 # OpenLDAP --enable-accesslog
3215 # Check whether --enable-accesslog or --disable-accesslog was given.
3216 if test "${enable_accesslog+set}" = set; then
3217 enableval="$enable_accesslog"
3220 for ol_val in no yes mod ; do
3221 if test "$enableval" = "$ol_val" ; then
3225 if test "$ol_arg" = "invalid" ; then
3226 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3228 { (exit 1); exit 1; }; }
3230 ol_enable_accesslog="$ol_arg"
3233 ol_enable_accesslog=${ol_enable_overlays:-no}
3235 # end --enable-accesslog
3237 # OpenLDAP --enable-dds
3239 # Check whether --enable-dds or --disable-dds was given.
3240 if test "${enable_dds+set}" = set; then
3241 enableval="$enable_dds"
3244 for ol_val in no yes mod ; do
3245 if test "$enableval" = "$ol_val" ; then
3249 if test "$ol_arg" = "invalid" ; then
3250 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3251 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3252 { (exit 1); exit 1; }; }
3254 ol_enable_dds="$ol_arg"
3257 ol_enable_dds=${ol_enable_overlays:-no}
3261 # OpenLDAP --enable-denyop
3263 # Check whether --enable-denyop or --disable-denyop was given.
3264 if test "${enable_denyop+set}" = set; then
3265 enableval="$enable_denyop"
3268 for ol_val in no yes mod ; do
3269 if test "$enableval" = "$ol_val" ; then
3273 if test "$ol_arg" = "invalid" ; then
3274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3276 { (exit 1); exit 1; }; }
3278 ol_enable_denyop="$ol_arg"
3281 ol_enable_denyop=${ol_enable_overlays:-no}
3283 # end --enable-denyop
3285 # OpenLDAP --enable-dyngroup
3287 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3288 if test "${enable_dyngroup+set}" = set; then
3289 enableval="$enable_dyngroup"
3292 for ol_val in no yes mod ; do
3293 if test "$enableval" = "$ol_val" ; then
3297 if test "$ol_arg" = "invalid" ; then
3298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3300 { (exit 1); exit 1; }; }
3302 ol_enable_dyngroup="$ol_arg"
3305 ol_enable_dyngroup=${ol_enable_overlays:-no}
3307 # end --enable-dyngroup
3309 # OpenLDAP --enable-dynlist
3311 # Check whether --enable-dynlist or --disable-dynlist was given.
3312 if test "${enable_dynlist+set}" = set; then
3313 enableval="$enable_dynlist"
3316 for ol_val in no yes mod ; do
3317 if test "$enableval" = "$ol_val" ; then
3321 if test "$ol_arg" = "invalid" ; then
3322 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3324 { (exit 1); exit 1; }; }
3326 ol_enable_dynlist="$ol_arg"
3329 ol_enable_dynlist=${ol_enable_overlays:-no}
3331 # end --enable-dynlist
3333 # OpenLDAP --enable-lastmod
3335 # Check whether --enable-lastmod or --disable-lastmod was given.
3336 if test "${enable_lastmod+set}" = set; then
3337 enableval="$enable_lastmod"
3340 for ol_val in no yes mod ; do
3341 if test "$enableval" = "$ol_val" ; then
3345 if test "$ol_arg" = "invalid" ; then
3346 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3347 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3348 { (exit 1); exit 1; }; }
3350 ol_enable_lastmod="$ol_arg"
3353 ol_enable_lastmod=${ol_enable_overlays:-no}
3355 # end --enable-lastmod
3357 # OpenLDAP --enable-ppolicy
3359 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3360 if test "${enable_ppolicy+set}" = set; then
3361 enableval="$enable_ppolicy"
3364 for ol_val in no yes mod ; do
3365 if test "$enableval" = "$ol_val" ; then
3369 if test "$ol_arg" = "invalid" ; then
3370 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3371 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3372 { (exit 1); exit 1; }; }
3374 ol_enable_ppolicy="$ol_arg"
3377 ol_enable_ppolicy=${ol_enable_overlays:-no}
3379 # end --enable-ppolicy
3381 # OpenLDAP --enable-proxycache
3383 # Check whether --enable-proxycache or --disable-proxycache was given.
3384 if test "${enable_proxycache+set}" = set; then
3385 enableval="$enable_proxycache"
3388 for ol_val in no yes mod ; do
3389 if test "$enableval" = "$ol_val" ; then
3393 if test "$ol_arg" = "invalid" ; then
3394 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3396 { (exit 1); exit 1; }; }
3398 ol_enable_proxycache="$ol_arg"
3401 ol_enable_proxycache=${ol_enable_overlays:-no}
3403 # end --enable-proxycache
3405 # OpenLDAP --enable-refint
3407 # Check whether --enable-refint or --disable-refint was given.
3408 if test "${enable_refint+set}" = set; then
3409 enableval="$enable_refint"
3412 for ol_val in no yes mod ; do
3413 if test "$enableval" = "$ol_val" ; then
3417 if test "$ol_arg" = "invalid" ; then
3418 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3420 { (exit 1); exit 1; }; }
3422 ol_enable_refint="$ol_arg"
3425 ol_enable_refint=${ol_enable_overlays:-no}
3427 # end --enable-refint
3429 # OpenLDAP --enable-retcode
3431 # Check whether --enable-retcode or --disable-retcode was given.
3432 if test "${enable_retcode+set}" = set; then
3433 enableval="$enable_retcode"
3436 for ol_val in no yes mod ; do
3437 if test "$enableval" = "$ol_val" ; then
3441 if test "$ol_arg" = "invalid" ; then
3442 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3443 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3444 { (exit 1); exit 1; }; }
3446 ol_enable_retcode="$ol_arg"
3449 ol_enable_retcode=${ol_enable_overlays:-no}
3451 # end --enable-retcode
3453 # OpenLDAP --enable-rwm
3455 # Check whether --enable-rwm or --disable-rwm was given.
3456 if test "${enable_rwm+set}" = set; then
3457 enableval="$enable_rwm"
3460 for ol_val in no yes mod ; do
3461 if test "$enableval" = "$ol_val" ; then
3465 if test "$ol_arg" = "invalid" ; then
3466 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3467 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3468 { (exit 1); exit 1; }; }
3470 ol_enable_rwm="$ol_arg"
3473 ol_enable_rwm=${ol_enable_overlays:-no}
3477 # OpenLDAP --enable-syncprov
3479 # Check whether --enable-syncprov or --disable-syncprov was given.
3480 if test "${enable_syncprov+set}" = set; then
3481 enableval="$enable_syncprov"
3484 for ol_val in no yes mod ; do
3485 if test "$enableval" = "$ol_val" ; then
3489 if test "$ol_arg" = "invalid" ; then
3490 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3491 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3492 { (exit 1); exit 1; }; }
3494 ol_enable_syncprov="$ol_arg"
3497 ol_enable_syncprov=${ol_enable_overlays:-yes}
3499 # end --enable-syncprov
3501 # OpenLDAP --enable-translucent
3503 # Check whether --enable-translucent or --disable-translucent was given.
3504 if test "${enable_translucent+set}" = set; then
3505 enableval="$enable_translucent"
3508 for ol_val in no yes mod ; do
3509 if test "$enableval" = "$ol_val" ; then
3513 if test "$ol_arg" = "invalid" ; then
3514 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3515 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3516 { (exit 1); exit 1; }; }
3518 ol_enable_translucent="$ol_arg"
3521 ol_enable_translucent=${ol_enable_overlays:-no}
3523 # end --enable-translucent
3525 # OpenLDAP --enable-unique
3527 # Check whether --enable-unique or --disable-unique was given.
3528 if test "${enable_unique+set}" = set; then
3529 enableval="$enable_unique"
3532 for ol_val in no yes mod ; do
3533 if test "$enableval" = "$ol_val" ; then
3537 if test "$ol_arg" = "invalid" ; then
3538 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3539 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3540 { (exit 1); exit 1; }; }
3542 ol_enable_unique="$ol_arg"
3545 ol_enable_unique=${ol_enable_overlays:-no}
3547 # end --enable-unique
3549 # OpenLDAP --enable-valsort
3551 # Check whether --enable-valsort or --disable-valsort was given.
3552 if test "${enable_valsort+set}" = set; then
3553 enableval="$enable_valsort"
3556 for ol_val in no yes mod ; do
3557 if test "$enableval" = "$ol_val" ; then
3561 if test "$ol_arg" = "invalid" ; then
3562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3563 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3564 { (exit 1); exit 1; }; }
3566 ol_enable_valsort="$ol_arg"
3569 ol_enable_valsort=${ol_enable_overlays:-no}
3571 # end --enable-valsort
3574 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3575 if test "${enable_xxslurpdoptions+set}" = set; then
3576 enableval="$enable_xxslurpdoptions"
3579 # OpenLDAP --enable-slurpd
3581 # Check whether --enable-slurpd or --disable-slurpd was given.
3582 if test "${enable_slurpd+set}" = set; then
3583 enableval="$enable_slurpd"
3586 for ol_val in auto yes no ; do
3587 if test "$enableval" = "$ol_val" ; then
3591 if test "$ol_arg" = "invalid" ; then
3592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3593 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3594 { (exit 1); exit 1; }; }
3596 ol_enable_slurpd="$ol_arg"
3599 ol_enable_slurpd=auto
3601 # end --enable-slurpd
3603 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3604 if test "${enable_xxliboptions+set}" = set; then
3605 enableval="$enable_xxliboptions"
3608 # Check whether --enable-static or --disable-static was given.
3609 if test "${enable_static+set}" = set; then
3610 enableval="$enable_static"
3611 p=${PACKAGE-default}
3613 yes) enable_static=yes ;;
3614 no) enable_static=no ;;
3617 # Look at the argument we got. We use all the common list separators.
3618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619 for pkg in $enableval; do
3621 if test "X$pkg" = "X$p"; then
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635 p=${PACKAGE-default}
3637 yes) enable_shared=yes ;;
3638 no) enable_shared=no ;;
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3645 if test "X$pkg" = "X$p"; then
3659 if test $ol_enable_slapd = no ; then
3660 if test $ol_enable_slapi = yes ; then
3661 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3664 case "$ol_enable_backends" in yes | mod)
3665 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3668 for i in $Backends; do
3669 eval "ol_tmp=\$ol_enable_$i"
3670 if test $ol_tmp != no ; then
3671 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3673 eval "ol_enable_$i=no"
3676 if test $ol_enable_modules = yes ; then
3677 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3678 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3680 if test $ol_enable_multimaster = yes ; then
3681 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3682 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3684 if test $ol_enable_wrappers = yes ; then
3685 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3688 if test $ol_enable_rlookups = yes ; then
3689 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3690 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3692 if test $ol_enable_dynacl = yes ; then
3693 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3696 if test $ol_enable_aci != no ; then
3697 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3698 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3700 if test $ol_enable_ldbm_api != auto ; then
3701 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3702 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3704 if test $ol_enable_ldbm_type != auto ; then
3705 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3708 if test $ol_enable_slurpd = yes ; then
3709 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3710 echo "$as_me: error: slurpd requires slapd" >&2;}
3711 { (exit 1); exit 1; }; }
3713 if test $ol_enable_rewrite = yes ; then
3714 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3715 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3717 case "$ol_enable_overlays" in yes | mod)
3718 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3719 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3721 for i in $Overlays; do
3722 eval "ol_tmp=\$ol_enable_$i"
3723 if test $ol_tmp != no ; then
3724 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3725 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3726 eval "ol_enable_$i=no"
3730 # force settings to no
3735 ol_enable_modules=no
3736 ol_enable_multimaster=no
3737 ol_enable_rlookups=no
3740 ol_enable_wrappers=no
3742 ol_enable_ldbm_api=no
3743 ol_enable_ldbm_type=no
3747 ol_enable_rewrite=no
3749 elif test $ol_enable_ldbm = no ; then
3751 if test $ol_enable_ldbm_api != auto ; then
3752 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3753 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3756 if test $ol_enable_ldbm_type != auto ; then
3757 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3758 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3761 if test $ol_enable_modules != yes &&
3762 test $ol_enable_bdb = no &&
3763 test $ol_enable_dnssrv = no &&
3764 test $ol_enable_hdb = no &&
3765 test $ol_enable_ldap = no &&
3766 test $ol_enable_meta = no &&
3767 test $ol_enable_monitor = no &&
3768 test $ol_enable_null = no &&
3769 test $ol_enable_passwd = no &&
3770 test $ol_enable_perl = no &&
3771 test $ol_enable_relay = no &&
3772 test $ol_enable_shell = no &&
3773 test $ol_enable_sql = no ; then
3775 if test $ol_enable_slapd = yes ; then
3776 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3777 echo "$as_me: error: slapd requires a backend" >&2;}
3778 { (exit 1); exit 1; }; }
3780 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3781 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3786 ol_enable_ldbm_api=no
3787 ol_enable_ldbm_type=no
3789 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3790 ol_enable_ldbm_api=berkeley
3794 if test $ol_enable_ldbm_api = gdbm &&
3795 test $ol_enable_ldbm_type = btree ; then
3796 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3797 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3798 { (exit 1); exit 1; }; }
3800 if test $ol_enable_ldbm_api = mdbm &&
3801 test $ol_enable_ldbm_type = btree ; then
3802 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3803 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3804 { (exit 1); exit 1; }; }
3806 if test $ol_enable_ldbm_api = ndbm &&
3807 test $ol_enable_ldbm_type = btree ; then
3808 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3809 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3810 { (exit 1); exit 1; }; }
3813 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3814 if test $ol_enable_ldbm_api = auto ; then
3815 ol_enable_ldbm_api=berkeley
3816 elif test $ol_enable_ldbm_api != berkeley ; then
3817 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3818 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3819 { (exit 1); exit 1; }; }
3824 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3825 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3826 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3827 { (exit 1); exit 1; }; }
3830 if test $ol_enable_slurpd = yes ; then
3831 if test $ol_with_threads = no ; then
3832 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3833 echo "$as_me: error: slurpd requires threads" >&2;}
3834 { (exit 1); exit 1; }; }
3838 if test $ol_enable_lmpasswd = yes ; then
3839 if test $ol_with_tls = no ; then
3840 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3841 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3842 { (exit 1); exit 1; }; }
3846 if test $ol_enable_kbind = yes ; then
3847 if test $ol_with_kerberos = no ; then
3848 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3849 echo "$as_me: error: options require --with-kerberos" >&2;}
3850 { (exit 1); exit 1; }; }
3851 elif test $ol_with_kerberos = auto ; then
3852 ol_with_kerberos=yes
3855 elif test $ol_enable_kbind = no ; then
3856 if test $ol_with_kerberos = auto ; then
3858 elif test $ol_with_kerberos != no ; then
3859 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3860 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3865 if test $ol_enable_spasswd = yes ; then
3866 if test $ol_with_cyrus_sasl = no ; then
3867 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3868 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3869 { (exit 1); exit 1; }; }
3871 ol_with_cyrus_sasl=yes
3874 echo "$as_me:$LINENO: result: done" >&5
3875 echo "${ECHO_T}done" >&6
3919 BUILD_TRANSLUCENT=no
3923 SLAPD_STATIC_OVERLAYS=
3924 SLAPD_DYNAMIC_OVERLAYS=
3926 SLAPD_MODULES_LDFLAGS=
3927 SLAPD_MODULES_CPPFLAGS=
3929 SLAPD_STATIC_BACKENDS=back-ldif
3930 SLAPD_DYNAMIC_BACKENDS=
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_MKVERSION 1
3965 *-*-aix*) if test -z "$CC" ; then
3966 case "$ol_with_threads" in
3967 auto | yes | posix) ol_aix_threads=yes ;;
3973 if test $ol_aix_threads = yes ; then
3974 if test -z "${CC}" ; then
3975 for ac_prog in cc_r xlc_r cc
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_prog_CC+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC="$ac_prog"
3995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 echo "$as_me:$LINENO: result: $CC" >&5
4006 echo "${ECHO_T}$CC" >&6
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 test -n "$CC" && break
4016 if test "$CC" = cc ; then
4017 if test $ol_with_threads != auto ; then
4018 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4019 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4020 { (exit 1); exit 1; }; }
4022 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4023 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4029 case ${CC} in cc_r | xlc_r)
4030 ol_with_threads=posix
4031 ol_cv_pthread_create=yes
4036 if test -z "${CC}"; then
4037 for ac_prog in cc gcc
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_CC="$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 if test -n "$CC"; then
4067 echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4074 test -n "$CC" && break
4076 test -n "$CC" || CC="missing"
4079 if test "${CC}" = "missing" ; then
4080 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4081 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4082 { (exit 1); exit 1; }; }
4086 if test -z "${AR}"; then
4087 for ac_prog in ar gar
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_prog_AR+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 if test -n "$AR"; then
4097 ac_cv_prog_AR="$AR" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_AR="$ac_prog"
4107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test -n "$AR"; then
4117 echo "$as_me:$LINENO: result: $AR" >&5
4118 echo "${ECHO_T}$AR" >&6
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4124 test -n "$AR" && break
4126 test -n "$AR" || AR="missing"
4129 if test "${AR}" = "missing" ; then
4130 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4131 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4132 { (exit 1); exit 1; }; }
4140 # Check whether --enable-fast-install or --disable-fast-install was given.
4141 if test "${enable_fast_install+set}" = set; then
4142 enableval="$enable_fast_install"
4143 p=${PACKAGE-default}
4145 yes) enable_fast_install=yes ;;
4146 no) enable_fast_install=no ;;
4148 enable_fast_install=no
4149 # Look at the argument we got. We use all the common list separators.
4150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4151 for pkg in $enableval; do
4153 if test "X$pkg" = "X$p"; then
4154 enable_fast_install=yes
4161 enable_fast_install=yes
4164 DEPDIR="${am__leading_dot}deps"
4166 ac_config_commands="$ac_config_commands depfiles"
4169 am_make=${MAKE-make}
4170 cat > confinc << 'END'
4175 # If we don't find an include directive, just comment out the code.
4176 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4177 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4181 # First try GNU make style include.
4182 echo "include confinc" > confmf
4183 # We grep out `Entering directory' and `Leaving directory'
4184 # messages which can occur if `w' ends up in MAKEFLAGS.
4185 # In particular we don't look at `^make:' because GNU make might
4186 # be invoked under some other name (usually "gmake"), in which
4187 # case it prints its new name instead of `make'.
4188 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4193 # Now try BSD make style include.
4194 if test "$am__include" = "#"; then
4195 echo '.include "confinc"' > confmf
4196 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4197 am__include=.include
4204 echo "$as_me:$LINENO: result: $_am_result" >&5
4205 echo "${ECHO_T}$_am_result" >&6
4206 rm -f confinc confmf
4208 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4209 if test "${enable_dependency_tracking+set}" = set; then
4210 enableval="$enable_dependency_tracking"
4213 if test "x$enable_dependency_tracking" != xno; then
4214 am_depcomp="$ac_aux_dir/depcomp"
4219 if test "x$enable_dependency_tracking" != xno; then
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_CC+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 echo "$as_me:$LINENO: result: $CC" >&5
4264 echo "${ECHO_T}$CC" >&6
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4271 if test -z "$ac_cv_prog_CC"; then
4273 # Extract the first word of "gcc", so it can be a program name with args.
4274 set dummy gcc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_CC"; then
4281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_CC="gcc"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4302 echo "${ECHO_T}$ac_ct_CC" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4313 if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}cc; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_CC+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 if test -n "$CC"; then
4343 echo "$as_me:$LINENO: result: $CC" >&5
4344 echo "${ECHO_T}$CC" >&6
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_CC"; then
4353 # Extract the first word of "cc", so it can be a program name with args.
4354 set dummy cc; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if test -n "$ac_ct_CC"; then
4361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_CC="cc"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4380 if test -n "$ac_ct_CC"; then
4381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4382 echo "${ECHO_T}$ac_ct_CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4394 if test -z "$CC"; then
4395 # Extract the first word of "cc", so it can be a program name with args.
4396 set dummy cc; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4414 ac_prog_rejected=yes
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 if test $ac_prog_rejected = yes; then
4425 # We found a bogon in the path, so make sure we never use it.
4426 set dummy $ac_cv_prog_CC
4428 if test $# != 0; then
4429 # We chose a different compiler from the bogus one.
4430 # However, it has the same basename, so the bogon will be chosen
4431 # first if we set CC to just the basename; use the full file name.
4433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4439 if test -n "$CC"; then
4440 echo "$as_me:$LINENO: result: $CC" >&5
4441 echo "${ECHO_T}$CC" >&6
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4448 if test -z "$CC"; then
4449 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_prog_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 echo "$as_me:$LINENO: result: $CC" >&5
4481 echo "${ECHO_T}$CC" >&6
4483 echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4487 test -n "$CC" && break
4490 if test -z "$CC"; then
4494 # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$ac_ct_CC"; then
4502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_ac_ct_CC="$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4521 if test -n "$ac_ct_CC"; then
4522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4523 echo "${ECHO_T}$ac_ct_CC" >&6
4525 echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4529 test -n "$ac_ct_CC" && break
4538 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4539 See \`config.log' for more details." >&5
4540 echo "$as_me: error: no acceptable C compiler found in \$PATH
4541 See \`config.log' for more details." >&2;}
4542 { (exit 1); exit 1; }; }
4544 # Provide some information about the compiler.
4545 echo "$as_me:$LINENO:" \
4546 "checking for C compiler version" >&5
4547 ac_compiler=`set X $ac_compile; echo $2`
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4549 (eval $ac_compiler --version </dev/null >&5) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4554 (eval $ac_compiler -v </dev/null >&5) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4559 (eval $ac_compiler -V </dev/null >&5) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4579 ac_clean_files_save=$ac_clean_files
4580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4581 # Try to create an executable without -o first, disregard a.out.
4582 # It will help us diagnose broken compilers, and finding out an intuition
4584 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4588 (eval $ac_link_default) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; then
4592 # Find the output, starting from the most likely. This scheme is
4593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4596 # Be careful to initialize this variable, since it used to be cached.
4597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4599 # b.out is created by i960 compilers.
4600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4602 test -f "$ac_file" || continue
4604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4607 # This is the source file.
4610 # We found the default executable, but exeext='' is most
4614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 # FIXME: I believe we export ac_cv_exeext for Libtool,
4616 # but it would be cool to find out if it's true. Does anybody
4617 # maintain Libtool? --akim.
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: C compiler cannot create executables
4631 See \`config.log' for more details." >&2;}
4632 { (exit 77); exit 77; }; }
4635 ac_exeext=$ac_cv_exeext
4636 echo "$as_me:$LINENO: result: $ac_file" >&5
4637 echo "${ECHO_T}$ac_file" >&6
4639 # Check the compiler produces executables we can run. If not, either
4640 # the compiler is broken, or we cross compile.
4641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4644 # If not cross compiling, check that we can run a simple program.
4645 if test "$cross_compiling" != yes; then
4646 if { ac_try='./$ac_file'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4654 if test "$cross_compiling" = maybe; then
4657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4658 If you meant to cross compile, use \`--host'.
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot run C compiled programs.
4661 If you meant to cross compile, use \`--host'.
4662 See \`config.log' for more details." >&2;}
4663 { (exit 1); exit 1; }; }
4667 echo "$as_me:$LINENO: result: yes" >&5
4668 echo "${ECHO_T}yes" >&6
4670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4671 ac_clean_files=$ac_clean_files_save
4672 # Check the compiler produces executables we can run. If not, either
4673 # the compiler is broken, or we cross compile.
4674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4677 echo "${ECHO_T}$cross_compiling" >&6
4679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; then
4686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4688 # work properly (i.e., refer to `conftest.exe'), while it won't with
4690 for ac_file in conftest.exe conftest conftest.*; do
4691 test -f "$ac_file" || continue
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4701 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }
4708 rm -f conftest$ac_cv_exeext
4709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4710 echo "${ECHO_T}$ac_cv_exeext" >&6
4712 rm -f conftest.$ac_ext
4713 EXEEXT=$ac_cv_exeext
4715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4717 if test "${ac_cv_objext+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.o conftest.obj
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; then
4741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4753 See \`config.log' for more details." >&5
4754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4755 See \`config.log' for more details." >&2;}
4756 { (exit 1); exit 1; }; }
4759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4761 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4762 echo "${ECHO_T}$ac_cv_objext" >&6
4763 OBJEXT=$ac_cv_objext
4765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4823 GCC=`test $ac_compiler_gnu = yes && echo yes`
4824 ac_test_CFLAGS=${CFLAGS+set}
4825 ac_save_CFLAGS=$CFLAGS
4827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4829 if test "${ac_cv_prog_cc_g+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4847 rm -f conftest.$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4880 if test "$ac_test_CFLAGS" = set; then
4881 CFLAGS=$ac_save_CFLAGS
4882 elif test $ac_cv_prog_cc_g = yes; then
4883 if test "$GCC" = yes; then
4889 if test "$GCC" = yes; then
4895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_cv_prog_cc_stdc=no
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4910 #include <sys/types.h>
4911 #include <sys/stat.h>
4912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4913 struct buf { int x; };
4914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915 static char *e (p, i)
4921 static char *f (char * (*g) (char **, int), char **p, ...)
4926 s = g (p, va_arg (v,int));
4931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4932 function prototypes and stuff, but not '\xHH' hex character constants.
4933 These don't provoke an error unfortunately, instead are silently treated
4934 as 'x'. The following induces an error, until -std1 is added to get
4935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4936 array size at least. It's necessary to write '\x00'==0 to get something
4937 that's true only with -std1. */
4938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4940 int test (int i, double x);
4941 struct s1 {int (*f) (int a);};
4942 struct s2 {int (*f) (double a);};
4943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4954 # Don't try gcc -ansi; that turns off useful extensions and
4955 # breaks some systems' header files.
4956 # AIX -qlanglvl=ansi
4957 # Ultrix and OSF/1 -std1
4958 # HP-UX 10.20 and later -Ae
4959 # HP-UX older versions -Aa -D_HPUX_SOURCE
4960 # SVR4 -Xc -D__EXTENSIONS__
4961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4963 CC="$ac_save_CC $ac_arg"
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_prog_cc_stdc=$ac_arg
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4993 rm -f conftest.err conftest.$ac_objext
4995 rm -f conftest.$ac_ext conftest.$ac_objext
5000 case "x$ac_cv_prog_cc_stdc" in
5002 echo "$as_me:$LINENO: result: none needed" >&5
5003 echo "${ECHO_T}none needed" >&6 ;;
5005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5007 CC="$CC $ac_cv_prog_cc_stdc" ;;
5010 # Some people use a C++ compiler to compile C. Since we use `exit',
5011 # in C++ we need to declare it. In case someone uses the same compiler
5012 # for both compiling C and C++ we need to have the C++ compiler decide
5013 # the declaration of exit, since it's the most demanding environment.
5014 cat >conftest.$ac_ext <<_ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 for ac_declaration in \
5043 'extern "C" void std::exit (int) throw (); using std::exit;' \
5044 'extern "C" void std::exit (int); using std::exit;' \
5045 'extern "C" void exit (int) throw ();' \
5046 'extern "C" void exit (int);' \
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141 if test -n "$ac_declaration"; then
5142 echo '#ifdef __cplusplus' >>confdefs.h
5143 echo $ac_declaration >>confdefs.h
5144 echo '#endif' >>confdefs.h
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 depcc="$CC" am_compiler_list=
5161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167 # We make a subdir and do the tests there. Otherwise we can end up
5168 # making bogus files that we don't know about and never remove. For
5169 # instance it was reported that on HP-UX the gcc test will end up
5170 # making a dummy file named `D' -- because `-MD' means `put the output
5173 # Copy depcomp to subdir because otherwise we won't find it if we're
5174 # using a relative directory.
5175 cp "$am_depcomp" conftest.dir
5177 # We will build objects and dependencies in a subdirectory because
5178 # it helps to detect inapplicable dependency modes. For instance
5179 # both Tru64's cc and ICC support -MD to output dependencies as a
5180 # side effect of compilation, but ICC will put the dependencies in
5181 # the current directory while Tru64 will put them in the object
5185 am_cv_CC_dependencies_compiler_type=none
5186 if test "$am_compiler_list" = ""; then
5187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201 # Solaris 8's {/usr,}/bin/sh.
5202 touch sub/conftst$i.h
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5208 # after this tag, mechanisms are not by side-effect, so they'll
5209 # only be used when explicitly requested
5210 if test "x$enable_dependency_tracking" = xyes; then
5218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219 # mode. It turns out that the SunPro C++ compiler does not properly
5220 # handle `-M -o', and we need to detect this.
5221 if depmode=$depmode \
5222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5225 >/dev/null 2>conftest.err &&
5226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5229 # icc doesn't choke on unknown options, it will just issue warnings
5230 # or remarks (even with -Werror). So we grep stderr for any message
5231 # that says an option was ignored or not supported.
5232 # When given -MP, icc 7.0 and 7.1 complain thusly:
5233 # icc: Command line warning: ignoring option '-M'; no argument required
5234 # The diagnosis changed in icc 8.0:
5235 # icc: Command line remark: option '-MP' not supported
5236 if (grep 'ignoring option' conftest.err ||
5237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5238 am_cv_CC_dependencies_compiler_type=$depmode
5247 am_cv_CC_dependencies_compiler_type=none
5251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5258 test "x$enable_dependency_tracking" != xno \
5259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5261 am__fastdepCC_FALSE='#'
5263 am__fastdepCC_TRUE='#'
5264 am__fastdepCC_FALSE=
5268 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5269 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5270 if test "${lt_cv_path_SED+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 # Loop through the user's path and test for sed and gsed.
5274 # Then use that list of sed's as ones to test for truncation.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for lt_ac_prog in sed gsed; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5290 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5291 # along with /bin/sed that truncates output.
5292 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5293 test ! -f $lt_ac_sed && continue
5294 cat /dev/null > conftest.in
5296 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5297 # Check for GNU sed and select it if it is found.
5298 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5299 lt_cv_path_SED=$lt_ac_sed
5303 cat conftest.in conftest.in >conftest.tmp
5304 mv conftest.tmp conftest.in
5305 cp conftest.in conftest.nl
5307 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5308 cmp -s conftest.out conftest.nl || break
5309 # 10000 chars as input seems more than enough
5310 test $lt_ac_count -gt 10 && break
5311 lt_ac_count=`expr $lt_ac_count + 1`
5312 if test $lt_ac_count -gt $lt_ac_max; then
5313 lt_ac_max=$lt_ac_count
5314 lt_cv_path_SED=$lt_ac_sed
5322 echo "$as_me:$LINENO: result: $SED" >&5
5323 echo "${ECHO_T}$SED" >&6
5325 echo "$as_me:$LINENO: checking for egrep" >&5
5326 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5327 if test "${ac_cv_prog_egrep+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5331 then ac_cv_prog_egrep='grep -E'
5332 else ac_cv_prog_egrep='egrep'
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5336 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5337 EGREP=$ac_cv_prog_egrep
5341 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5342 if test "${with_gnu_ld+set}" = set; then
5343 withval="$with_gnu_ld"
5344 test "$withval" = no || with_gnu_ld=yes
5349 if test "$GCC" = yes; then
5350 # Check if gcc -print-prog-name=ld gives a path.
5351 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5355 # gcc leaves a trailing carriage return which upsets mingw
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5361 # Accept absolute paths.
5363 re_direlt='/[^/][^/]*/\.\./'
5364 # Canonicalize the pathname of ld
5365 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5366 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5367 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5369 test -z "$LD" && LD="$ac_prog"
5372 # If it fails, then pretend we aren't using GCC.
5376 # If it is relative, then search for the first ld in PATH.
5380 elif test "$with_gnu_ld" = yes; then
5381 echo "$as_me:$LINENO: checking for GNU ld" >&5
5382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5384 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5387 if test "${lt_cv_path_LD+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 if test -z "$LD"; then
5391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD="$ac_dir/$ac_prog"
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test "$with_gnu_ld" != no && break
5405 test "$with_gnu_ld" != yes && break
5412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5417 if test -n "$LD"; then
5418 echo "$as_me:$LINENO: result: $LD" >&5
5419 echo "${ECHO_T}$LD" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5426 { (exit 1); exit 1; }; }
5427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5433 case `$LD -v 2>&1 </dev/null` in
5434 *GNU* | *'with BFD'*)
5435 lt_cv_prog_gnu_ld=yes
5438 lt_cv_prog_gnu_ld=no
5442 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5444 with_gnu_ld=$lt_cv_prog_gnu_ld
5447 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5448 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5449 if test "${lt_cv_ld_reload_flag+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 lt_cv_ld_reload_flag='-r'
5454 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5455 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5456 reload_flag=$lt_cv_ld_reload_flag
5457 case $reload_flag in
5459 *) reload_flag=" $reload_flag" ;;
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464 if test "$GCC" = yes; then
5465 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5473 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5474 if test "${lt_cv_path_NM+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 if test -n "$NM"; then
5478 # Let the user override the test.
5481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5484 test -z "$ac_dir" && ac_dir=.
5485 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5487 # Check to see if the nm accepts a BSD-compat flag.
5488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5489 # nm: unknown option "B" ignored
5490 # Tru64's nm complains that /dev/null is an invalid object file
5491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5492 */dev/null* | *'Invalid file or object type'*)
5493 lt_cv_path_NM="$tmp_nm -B"
5497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5499 lt_cv_path_NM="$tmp_nm -p"
5503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5504 continue # so that we can try to find one that supports BSD flags
5511 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5514 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5515 echo "${ECHO_T}$lt_cv_path_NM" >&6
5518 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5519 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5521 if test "$LN_S" = "ln -s"; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523 echo "${ECHO_T}yes" >&6
5525 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5526 echo "${ECHO_T}no, using $LN_S" >&6
5529 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5530 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5531 if test "${lt_cv_deplibs_check_method+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 lt_cv_file_magic_cmd='$MAGIC_CMD'
5535 lt_cv_file_magic_test_file=
5536 lt_cv_deplibs_check_method='unknown'
5537 # Need to set the preceding variable on all platforms that support
5538 # interlibrary dependencies.
5539 # 'none' -- dependencies not supported.
5540 # `unknown' -- same as none, but documents that we really don't know.
5541 # 'pass_all' -- all dependencies passed with no checks.
5542 # 'test_compile' -- check by making test program.
5543 # 'file_magic [[regex]]' -- check by looking for files in library path
5544 # which responds to the $file_magic_cmd with a given extended regex.
5545 # If you have `file' or equivalent on your system and you're not sure
5546 # whether `pass_all' will *always* work, you probably want this one.
5550 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method=pass_all
5558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5559 lt_cv_file_magic_cmd='/usr/bin/file -L'
5560 lt_cv_file_magic_test_file=/shlib/libc.so
5564 # func_win32_libid is a shell function defined in ltmain.sh
5565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566 lt_cv_file_magic_cmd='func_win32_libid'
5570 # Base MSYS/MinGW do not provide the 'file' command needed by
5571 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5573 lt_cv_file_magic_cmd='$OBJDUMP -f'
5576 darwin* | rhapsody*)
5577 lt_cv_deplibs_check_method=pass_all
5580 freebsd* | kfreebsd*-gnu | dragonfly*)
5581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5584 # Not sure whether the presence of OpenBSD here was a mistake.
5585 # Let's accept both of them until this is cleared up.
5586 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5592 lt_cv_deplibs_check_method=pass_all
5597 lt_cv_deplibs_check_method=pass_all
5600 hpux10.20* | hpux11*)
5601 lt_cv_file_magic_cmd=/usr/bin/file
5604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5605 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5609 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5613 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5618 irix5* | irix6* | nonstopux*)
5620 *-32|*"-32 ") libmagic=32-bit;;
5621 *-n32|*"-n32 ") libmagic=N32;;
5622 *-64|*"-64 ") libmagic=64-bit;;
5623 *) libmagic=never-match;;
5625 lt_cv_deplibs_check_method=pass_all
5628 # This must be Linux ELF.
5630 lt_cv_deplibs_check_method=pass_all
5634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5648 lt_cv_deplibs_check_method=unknown
5652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659 osf3* | osf4* | osf5*)
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5668 lt_cv_deplibs_check_method=pass_all
5671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5672 case $host_vendor in
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5678 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687 lt_cv_file_magic_test_file=/lib/libc.so
5690 lt_cv_deplibs_check_method=pass_all
5695 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5696 lt_cv_deplibs_check_method=pass_all
5701 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5702 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5703 file_magic_cmd=$lt_cv_file_magic_cmd
5704 deplibs_check_method=$lt_cv_deplibs_check_method
5705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5710 # If no C compiler was specified, use CC.
5713 # Allow CC to be a program name with arguments.
5717 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5718 if test "${enable_libtool_lock+set}" = set; then
5719 enableval="$enable_libtool_lock"
5722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5724 # Some flags need to be propagated to the compiler or linker for good
5728 # Find out which ABI we are using.
5729 echo 'int i;' > conftest.$ac_ext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; then
5735 case `/usr/bin/file conftest.$ac_objext` in
5747 # Find out which ABI we are using.
5748 echo '#line 5748 "configure"' > conftest.$ac_ext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; then
5754 if test "$lt_cv_prog_gnu_ld" = yes; then
5755 case `/usr/bin/file conftest.$ac_objext` in
5757 LD="${LD-ld} -melf32bsmip"
5760 LD="${LD-ld} -melf32bmipn32"
5763 LD="${LD-ld} -melf64bmip"
5767 case `/usr/bin/file conftest.$ac_objext` in
5783 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5784 # Find out which ABI we are using.
5785 echo 'int i;' > conftest.$ac_ext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 case `/usr/bin/file conftest.o` in
5795 LD="${LD-ld} -m elf_i386"
5797 ppc64-*linux*|powerpc64-*linux*)
5798 LD="${LD-ld} -m elf32ppclinux"
5801 LD="${LD-ld} -m elf_s390"
5804 LD="${LD-ld} -m elf32_sparc"
5811 LD="${LD-ld} -m elf_x86_64"
5813 ppc*-*linux*|powerpc*-*linux*)
5814 LD="${LD-ld} -m elf64ppc"
5817 LD="${LD-ld} -m elf64_s390"
5820 LD="${LD-ld} -m elf64_sparc"
5830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831 SAVE_CFLAGS="$CFLAGS"
5832 CFLAGS="$CFLAGS -belf"
5833 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5835 if test "${lt_cv_cc_needs_belf+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 lt_cv_cc_needs_belf=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 lt_cv_cc_needs_belf=no
5888 rm -f conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5891 ac_cpp='$CPP $CPPFLAGS'
5892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5901 CFLAGS="$SAVE_CFLAGS"
5904 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test -n "$DLLTOOL"; then
5914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 DLLTOOL=$ac_cv_prog_DLLTOOL
5933 if test -n "$DLLTOOL"; then
5934 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5935 echo "${ECHO_T}$DLLTOOL" >&6
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5942 if test -z "$ac_cv_prog_DLLTOOL"; then
5943 ac_ct_DLLTOOL=$DLLTOOL
5944 # Extract the first word of "dlltool", so it can be a program name with args.
5945 set dummy dlltool; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_DLLTOOL"; then
5952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5971 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5972 if test -n "$ac_ct_DLLTOOL"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5974 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5980 DLLTOOL=$ac_ct_DLLTOOL
5982 DLLTOOL="$ac_cv_prog_DLLTOOL"
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}as; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_AS+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 if test -n "$AS"; then
5994 ac_cv_prog_AS="$AS" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_AS="${ac_tool_prefix}as"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 if test -n "$AS"; then
6014 echo "$as_me:$LINENO: result: $AS" >&5
6015 echo "${ECHO_T}$AS" >&6
6017 echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6022 if test -z "$ac_cv_prog_AS"; then
6024 # Extract the first word of "as", so it can be a program name with args.
6025 set dummy as; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 if test -n "$ac_ct_AS"; then
6032 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_prog_ac_ct_AS="as"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6051 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6052 if test -n "$ac_ct_AS"; then
6053 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6054 echo "${ECHO_T}$ac_ct_AS" >&6
6056 echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$OBJDUMP"; then
6074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 OBJDUMP=$ac_cv_prog_OBJDUMP
6093 if test -n "$OBJDUMP"; then
6094 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6095 echo "${ECHO_T}$OBJDUMP" >&6
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6102 if test -z "$ac_cv_prog_OBJDUMP"; then
6103 ac_ct_OBJDUMP=$OBJDUMP
6104 # Extract the first word of "objdump", so it can be a program name with args.
6105 set dummy objdump; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$ac_ct_OBJDUMP"; then
6112 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6131 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6132 if test -n "$ac_ct_OBJDUMP"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6134 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6136 echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6140 OBJDUMP=$ac_ct_OBJDUMP
6142 OBJDUMP="$ac_cv_prog_OBJDUMP"
6149 need_locks="$enable_libtool_lock"
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6158 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6159 # On Suns, sometimes $CPP names a directory.
6160 if test -n "$CPP" && test -d "$CPP"; then
6163 if test -z "$CPP"; then
6164 if test "${ac_cv_prog_CPP+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 # Double quotes because CPP needs to be expanded
6168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6171 for ac_c_preproc_warn_flag in '' yes
6173 # Use a header file that comes with gcc, so configuring glibc
6174 # with a fresh cross-compiler works.
6175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176 # <limits.h> exists even on freestanding compilers.
6177 # On the NeXT, cc -E runs the code through the compiler's parser,
6178 # not just through cpp. "Syntax error" is here to catch this case.
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 # include <limits.h>
6188 # include <assert.h>
6192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } >/dev/null; then
6200 if test -s conftest.err; then
6201 ac_cpp_err=$ac_c_preproc_warn_flag
6202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6209 if test -z "$ac_cpp_err"; then
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 # Broken: fails on valid input.
6218 rm -f conftest.err conftest.$ac_ext
6220 # OK, works on sane cases. Now check whether non-existent headers
6221 # can be detected and how.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <ac_nonexistent.h>
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null; then
6238 if test -s conftest.err; then
6239 ac_cpp_err=$ac_c_preproc_warn_flag
6240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6247 if test -z "$ac_cpp_err"; then
6248 # Broken: success on invalid input.
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 # Passes both tests.
6258 rm -f conftest.err conftest.$ac_ext
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then
6275 echo "$as_me:$LINENO: result: $CPP" >&5
6276 echo "${ECHO_T}$CPP" >&6
6278 for ac_c_preproc_warn_flag in '' yes
6280 # Use a header file that comes with gcc, so configuring glibc
6281 # with a fresh cross-compiler works.
6282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283 # <limits.h> exists even on freestanding compilers.
6284 # On the NeXT, cc -E runs the code through the compiler's parser,
6285 # not just through cpp. "Syntax error" is here to catch this case.
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6293 # include <limits.h>
6295 # include <assert.h>
6299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } >/dev/null; then
6307 if test -s conftest.err; then
6308 ac_cpp_err=$ac_c_preproc_warn_flag
6309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316 if test -z "$ac_cpp_err"; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 # Broken: fails on valid input.
6325 rm -f conftest.err conftest.$ac_ext
6327 # OK, works on sane cases. Now check whether non-existent headers
6328 # can be detected and how.
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <ac_nonexistent.h>
6337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } >/dev/null; then
6345 if test -s conftest.err; then
6346 ac_cpp_err=$ac_c_preproc_warn_flag
6347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354 if test -z "$ac_cpp_err"; then
6355 # Broken: success on invalid input.
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 # Passes both tests.
6365 rm -f conftest.err conftest.$ac_ext
6368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6369 rm -f conftest.err conftest.$ac_ext
6370 if $ac_preproc_ok; then
6373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6374 See \`config.log' for more details." >&5
6375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6376 See \`config.log' for more details." >&2;}
6377 { (exit 1); exit 1; }; }
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6388 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6389 if test "${ac_cv_header_stdc+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_header_stdc=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_cv_header_stdc=no
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test $ac_cv_header_stdc = yes; then
6443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454 $EGREP "memchr" >/dev/null 2>&1; then
6457 ac_cv_header_stdc=no
6463 if test $ac_cv_header_stdc = yes; then
6464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "free" >/dev/null 2>&1; then
6478 ac_cv_header_stdc=no
6484 if test $ac_cv_header_stdc = yes; then
6485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6486 if test "$cross_compiling" = yes; then
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6496 #if ((' ' & 0x0FF) == 0x020)
6497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6500 # define ISLOWER(c) \
6501 (('a' <= (c) && (c) <= 'i') \
6502 || ('j' <= (c) && (c) <= 'r') \
6503 || ('s' <= (c) && (c) <= 'z'))
6504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6512 for (i = 0; i < 256; i++)
6513 if (XOR (islower (i), ISLOWER (i))
6514 || toupper (i) != TOUPPER (i))
6519 rm -f conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 echo "$as_me: program exited with status $ac_status" >&5
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_header_stdc=no
6539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6544 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6545 if test $ac_cv_header_stdc = yes; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define STDC_HEADERS 1
6553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6564 inttypes.h stdint.h unistd.h
6566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_header" >&5
6568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6580 #include <$ac_header>
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 eval "$as_ac_Header=yes"
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 eval "$as_ac_Header=no"
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6616 cat >>confdefs.h <<_ACEOF
6617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626 for ac_header in dlfcn.h
6628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630 echo "$as_me:$LINENO: checking for $ac_header" >&5
6631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6638 # Is the header compilable?
6639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 #include <$ac_header>
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_header_compiler=no
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <$ac_header>
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null; then
6702 if test -s conftest.err; then
6703 ac_cpp_err=$ac_c_preproc_warn_flag
6704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711 if test -z "$ac_cpp_err"; then
6712 ac_header_preproc=yes
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ac_header_preproc=no
6719 rm -f conftest.err conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc=yes
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6747 ## --------------------------------------------- ##
6748 ## Report this to <http://www.openldap.org/its/> ##
6749 ## --------------------------------------------- ##
6752 sed "s/^/$as_me: WARNING: /" >&2
6755 echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 eval "$as_ac_Header=\$ac_header_preproc"
6762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6767 cat >>confdefs.h <<_ACEOF
6768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6776 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6778 # find the maximum length of command line arguments
6779 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6780 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6781 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 # On DJGPP, this test can blow up pretty badly due to problems in libc
6790 # (any single argument exceeding 2000 bytes causes a buffer overrun
6791 # during glob expansion). Even if it were fixed, the result of this
6792 # check would be larger than it should be.
6793 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6797 # Under GNU Hurd, this test is not required because there is
6798 # no limit to the length of command line arguments.
6799 # Libtool will interpret -1 as no limit whatsoever
6800 lt_cv_sys_max_cmd_len=-1;
6804 # On Win9x/ME, this test blows up -- it succeeds, but takes
6805 # about 5 minutes as the teststring grows exponentially.
6806 # Worse, since 9x/ME are not pre-emptively multitasking,
6807 # you end up with a "frozen" computer, even though with patience
6808 # the test eventually succeeds (with a max line length of 256k).
6809 # Instead, let's just punt: use the minimum linelength reported by
6810 # all of the supported platforms: 8192 (on NT/2K/XP).
6811 lt_cv_sys_max_cmd_len=8192;
6815 # On AmigaOS with pdksh, this test takes hours, literally.
6816 # So we just punt and use a minimum line length of 8192.
6817 lt_cv_sys_max_cmd_len=8192;
6820 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6821 # This has been around since 386BSD, at least. Likely further.
6822 if test -x /sbin/sysctl; then
6823 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6824 elif test -x /usr/sbin/sysctl; then
6825 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6827 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6829 # And add a safety zone
6830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6836 # nice to cause kernel panics so lets avoid the loop below.
6837 # First set a reasonable default.
6838 lt_cv_sys_max_cmd_len=16384
6840 if test -x /sbin/sysconfig; then
6841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6847 # If test is not a shell built-in, we'll probably end up computing a
6848 # maximum length that is only half of the actual maximum length, but
6850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6851 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6852 = "XX$teststring") >/dev/null 2>&1 &&
6853 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6854 lt_cv_sys_max_cmd_len=$new_result &&
6855 test $i != 17 # 1/2 MB should be enough
6858 teststring=$teststring$teststring
6861 # Add a significant safety factor because C++ compilers can tack on massive
6862 # amounts of additional arguments before passing them to the linker.
6863 # It appears as though 1/2 is a usable value.
6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6870 if test -n $lt_cv_sys_max_cmd_len ; then
6871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6872 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6874 echo "$as_me:$LINENO: result: none" >&5
6875 echo "${ECHO_T}none" >&6
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Transform an extracted symbol line into a proper C declaration
6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6903 # Define system-specific variables.
6908 cygwin* | mingw* | pw32*)
6909 symcode='[ABCDGISTW]'
6911 hpux*) # Its linker distinguishes data from code symbols
6912 if test "$host_cpu" = ia64; then
6913 symcode='[ABCDEGRST]'
6915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6916 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6919 if test "$host_cpu" = ia64; then
6920 symcode='[ABCDGIRSTW]'
6921 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6922 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6926 symcode='[BCDEGRST]'
6929 symcode='[BCDEGQRST]'
6939 # Handle CRLF in mingw tool chain
6943 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6947 # If we're using GNU nm, then use its standard symbol codes.
6948 case `$NM -V 2>&1` in
6949 *GNU* | *'with BFD'*)
6950 symcode='[ABCDGIRSTW]' ;;
6953 # Try without a prefix undercore, then with it.
6954 for ac_symprfx in "" "_"; do
6956 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957 symxfrm="\\1 $ac_symprfx\\2 \\2"
6959 # Write the raw and C identifiers.
6960 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6962 # Check to see that the pipe works correctly.
6966 cat > conftest.$ac_ext <<EOF
6971 void nm_test_func(){}
6975 int main(){nm_test_var='a';nm_test_func();return(0);}
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; then
6983 # Now try to grab the symbols.
6985 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6986 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && test -s "$nlist"; then
6990 # Try sorting and uniquifying the output.
6991 if sort "$nlist" | uniq > "$nlist"T; then
6992 mv -f "$nlist"T "$nlist"
6997 # Make sure that we snagged all the symbols we need.
6998 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6999 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7000 cat <<EOF > conftest.$ac_ext
7006 # Now generate the symbol file.
7007 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7009 cat <<EOF >> conftest.$ac_ext
7010 #if defined (__STDC__) && __STDC__
7011 # define lt_ptr_t void *
7013 # define lt_ptr_t char *
7017 /* The mapping between symbol names and symbols. */
7022 lt_preloaded_symbols[] =
7025 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7026 cat <<\EOF >> conftest.$ac_ext
7034 # Now try linking the two files.
7035 mv conftest.$ac_objext conftstm.$ac_objext
7036 lt_save_LIBS="$LIBS"
7037 lt_save_CFLAGS="$CFLAGS"
7038 LIBS="conftstm.$ac_objext"
7039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7047 LIBS="$lt_save_LIBS"
7048 CFLAGS="$lt_save_CFLAGS"
7050 echo "cannot find nm_test_func in $nlist" >&5
7053 echo "cannot find nm_test_var in $nlist" >&5
7056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7059 echo "$progname: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 rm -f conftest* conftst*
7064 # Do not use the global_symbol_pipe unless it works.
7065 if test "$pipe_works" = yes; then
7068 lt_cv_sys_global_symbol_pipe=
7074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7075 lt_cv_sys_global_symbol_to_cdecl=
7077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7078 echo "$as_me:$LINENO: result: failed" >&5
7079 echo "${ECHO_T}failed" >&6
7081 echo "$as_me:$LINENO: result: ok" >&5
7082 echo "${ECHO_T}ok" >&6
7085 echo "$as_me:$LINENO: checking for objdir" >&5
7086 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7087 if test "${lt_cv_objdir+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 rm -f .libs 2>/dev/null
7091 mkdir .libs 2>/dev/null
7092 if test -d .libs; then
7095 # MS-DOS does not allow filenames that begin with a dot.
7098 rmdir .libs 2>/dev/null
7100 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7101 echo "${ECHO_T}$lt_cv_objdir" >&6
7102 objdir=$lt_cv_objdir
7110 # AIX sometimes has problems with the GCC collect2 program. For some
7111 # reason, if we set the COLLECT_NAMES environment variable, the problems
7112 # vanish in a puff of smoke.
7113 if test "X${COLLECT_NAMES+set}" != Xset; then
7115 export COLLECT_NAMES
7120 # Sed substitution that helps us do robust quoting. It backslashifies
7121 # metacharacters that are still active within double-quoted strings.
7122 Xsed='sed -e 1s/^X//'
7123 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7125 # Same as above, but do not quote variable references.
7126 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7128 # Sed substitution to delay expansion of an escaped shell variable in a
7129 # double_quote_subst'ed string.
7130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7132 # Sed substitution to avoid accidental globbing in evaled expressions
7133 no_glob_subst='s/\*/\\\*/g'
7139 default_ofile=libtool
7140 can_build_shared=yes
7142 # All known linkers require a `.a' archive for static linking (except MSVC,
7143 # which needs '.lib').
7145 ltmain="$ac_aux_dir/ltmain.sh"
7146 ofile="$default_ofile"
7147 with_gnu_ld="$lt_cv_prog_gnu_ld"
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}ar; ac_word=$2
7152 echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154 if test "${ac_cv_prog_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$AR"; then
7158 ac_cv_prog_AR="$AR" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_AR="${ac_tool_prefix}ar"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 if test -n "$AR"; then
7178 echo "$as_me:$LINENO: result: $AR" >&5
7179 echo "${ECHO_T}$AR" >&6
7181 echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7186 if test -z "$ac_cv_prog_AR"; then
7188 # Extract the first word of "ar", so it can be a program name with args.
7189 set dummy ar; ac_word=$2
7190 echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 if test -n "$ac_ct_AR"; then
7196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_ac_ct_AR="ar"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7216 if test -n "$ac_ct_AR"; then
7217 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7218 echo "${ECHO_T}$ac_ct_AR" >&6
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7232 echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234 if test "${ac_cv_prog_RANLIB+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$RANLIB"; then
7238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 RANLIB=$ac_cv_prog_RANLIB
7257 if test -n "$RANLIB"; then
7258 echo "$as_me:$LINENO: result: $RANLIB" >&5
7259 echo "${ECHO_T}$RANLIB" >&6
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7266 if test -z "$ac_cv_prog_RANLIB"; then
7267 ac_ct_RANLIB=$RANLIB
7268 # Extract the first word of "ranlib", so it can be a program name with args.
7269 set dummy ranlib; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 if test -n "$ac_ct_RANLIB"; then
7276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_RANLIB="ranlib"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7296 if test -n "$ac_ct_RANLIB"; then
7297 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7298 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7300 echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7304 RANLIB=$ac_ct_RANLIB
7306 RANLIB="$ac_cv_prog_RANLIB"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}strip; ac_word=$2
7312 echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7314 if test "${ac_cv_prog_STRIP+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 if test -n "$STRIP"; then
7318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338 echo "$as_me:$LINENO: result: $STRIP" >&5
7339 echo "${ECHO_T}$STRIP" >&6
7341 echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7346 if test -z "$ac_cv_prog_STRIP"; then
7348 # Extract the first word of "strip", so it can be a program name with args.
7349 set dummy strip; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$ac_ct_STRIP"; then
7356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_ac_ct_STRIP="strip"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7376 if test -n "$ac_ct_STRIP"; then
7377 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7378 echo "${ECHO_T}$ac_ct_STRIP" >&6
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7386 STRIP="$ac_cv_prog_STRIP"
7391 old_CFLAGS="$CFLAGS"
7393 # Set sane defaults for various variables
7394 test -z "$AR" && AR=ar
7395 test -z "$AR_FLAGS" && AR_FLAGS=cru
7396 test -z "$AS" && AS=as
7397 test -z "$CC" && CC=cc
7398 test -z "$LTCC" && LTCC=$CC
7399 test -z "$DLLTOOL" && DLLTOOL=dlltool
7400 test -z "$LD" && LD=ld
7401 test -z "$LN_S" && LN_S="ln -s"
7402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7403 test -z "$NM" && NM=nm
7404 test -z "$SED" && SED=sed
7405 test -z "$OBJDUMP" && OBJDUMP=objdump
7406 test -z "$RANLIB" && RANLIB=:
7407 test -z "$STRIP" && STRIP=:
7408 test -z "$ac_objext" && ac_objext=o
7410 # Determine commands to create old-style static archives.
7411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7412 old_postinstall_cmds='chmod 644 $oldlib'
7413 old_postuninstall_cmds=
7415 if test -n "$RANLIB"; then
7418 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7421 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7424 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427 for cc_temp in $compiler""; do
7429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7438 # Only perform the check for file, if the check method requires it
7439 case $deplibs_check_method in
7441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7442 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7443 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452 lt_save_MAGIC_CMD="$MAGIC_CMD"
7453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7455 for ac_dir in $ac_dummy; do
7457 test -z "$ac_dir" && ac_dir=.
7458 if test -f $ac_dir/${ac_tool_prefix}file; then
7459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7460 if test -n "$file_magic_test_file"; then
7461 case $deplibs_check_method in
7463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7466 $EGREP "$file_magic_regex" > /dev/null; then
7471 *** Warning: the command libtool uses to detect shared libraries,
7472 *** $file_magic_cmd, produces output that libtool cannot recognize.
7473 *** The result is that libtool may fail to recognize shared libraries
7474 *** as such. This will affect the creation of libtool libraries that
7475 *** depend on shared libraries, but programs linked with such libtool
7476 *** libraries will work regardless of this problem. Nevertheless, you
7477 *** may want to report the problem to your system manager and/or to
7478 *** bug-libtool@gnu.org
7488 MAGIC_CMD="$lt_save_MAGIC_CMD"
7493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494 if test -n "$MAGIC_CMD"; then
7495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7496 echo "${ECHO_T}$MAGIC_CMD" >&6
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7502 if test -z "$lt_cv_path_MAGIC_CMD"; then
7503 if test -n "$ac_tool_prefix"; then
7504 echo "$as_me:$LINENO: checking for file" >&5
7505 echo $ECHO_N "checking for file... $ECHO_C" >&6
7506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7514 lt_save_MAGIC_CMD="$MAGIC_CMD"
7515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517 for ac_dir in $ac_dummy; do
7519 test -z "$ac_dir" && ac_dir=.
7520 if test -f $ac_dir/file; then
7521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7522 if test -n "$file_magic_test_file"; then
7523 case $deplibs_check_method in
7525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528 $EGREP "$file_magic_regex" > /dev/null; then
7533 *** Warning: the command libtool uses to detect shared libraries,
7534 *** $file_magic_cmd, produces output that libtool cannot recognize.
7535 *** The result is that libtool may fail to recognize shared libraries
7536 *** as such. This will affect the creation of libtool libraries that
7537 *** depend on shared libraries, but programs linked with such libtool
7538 *** libraries will work regardless of this problem. Nevertheless, you
7539 *** may want to report the problem to your system manager and/or to
7540 *** bug-libtool@gnu.org
7550 MAGIC_CMD="$lt_save_MAGIC_CMD"
7555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556 if test -n "$MAGIC_CMD"; then
7557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7558 echo "${ECHO_T}$MAGIC_CMD" >&6
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7574 enable_win32_dll=yes
7576 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7577 if test "${enable_libtool_lock+set}" = set; then
7578 enableval="$enable_libtool_lock"
7581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584 # Check whether --with-pic or --without-pic was given.
7585 if test "${with_pic+set}" = set; then
7591 test -z "$pic_mode" && pic_mode=default
7593 # Use C for the default configuration in the libtool script
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603 # Source file extension for C test sources.
7606 # Object file extension for compiled C test sources.
7610 # Code to be used in simple compile tests
7611 lt_simple_compile_test_code="int some_variable = 0;\n"
7613 # Code to be used in simple link tests
7614 lt_simple_link_test_code='int main(){return(0);}\n'
7617 # If no C compiler was specified, use CC.
7620 # Allow CC to be a program name with arguments.
7624 # save warnings/boilerplate of simple test code
7625 ac_outfile=conftest.$ac_objext
7626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7628 _lt_compiler_boilerplate=`cat conftest.err`
7631 ac_outfile=conftest.$ac_objext
7632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7634 _lt_linker_boilerplate=`cat conftest.err`
7639 # Check for any special shared library compilation flags.
7642 if test "$GCC" = no; then
7645 lt_prog_cc_shlib='-belf'
7649 if test -n "$lt_prog_cc_shlib"; then
7650 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7651 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7652 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7654 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7655 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7656 lt_cv_prog_cc_can_build_shared=no
7662 # Check to make sure the static flag actually works.
7664 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 lt_prog_compiler_static_works=no
7670 save_LDFLAGS="$LDFLAGS"
7671 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674 # The linker can only warn and ignore the option if not recognized
7675 # So say no if there are warnings
7676 if test -s conftest.err; then
7677 # Append any errors to the config.log.
7678 cat conftest.err 1>&5
7679 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7680 $SED '/^$/d' conftest.err >conftest.er2
7681 if diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_prog_compiler_static_works=yes
7685 lt_prog_compiler_static_works=yes
7689 LDFLAGS="$save_LDFLAGS"
7692 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7698 lt_prog_compiler_static=
7704 lt_prog_compiler_no_builtin_flag=
7706 if test "$GCC" = yes; then
7707 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7710 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7711 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 lt_cv_prog_compiler_rtti_exceptions=no
7716 ac_outfile=conftest.$ac_objext
7717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7718 lt_compiler_flag="-fno-rtti -fno-exceptions"
7719 # Insert the option either (1) after the last *FLAGS variable, or
7720 # (2) before a word containing "conftest.", or (3) at the end.
7721 # Note that $ac_compile itself does not contain backslashes and begins
7722 # with a dollar sign (not a hyphen), so the echo should work correctly.
7723 # The option is referenced via a variable to avoid confusing sed.
7724 lt_compile=`echo "$ac_compile" | $SED \
7725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7727 -e 's:$: $lt_compiler_flag:'`
7728 (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
7729 (eval "$lt_compile" 2>conftest.err)
7731 cat conftest.err >&5
7732 echo "$as_me:7732: \$? = $ac_status" >&5
7733 if (exit $ac_status) && test -s "$ac_outfile"; then
7734 # The compiler can only warn and ignore the option if not recognized
7735 # So say no if there are warnings other than the usual output.
7736 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7737 $SED '/^$/d' conftest.err >conftest.er2
7738 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7739 lt_cv_prog_compiler_rtti_exceptions=yes
7745 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7746 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7756 lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7760 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_static='-static'
7769 # All AIX code is PIC.
7770 if test "$host_cpu" = ia64; then
7771 # AIX 5 now supports IA64 processor
7772 lt_prog_compiler_static='-Bstatic'
7777 # FIXME: we need at least 68020 code to build shared libraries, but
7778 # adding the `-m68020' flag to GCC prevents building anything better,
7780 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7783 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7784 # PIC is the default for these OSes.
7787 mingw* | pw32* | os2*)
7788 # This hack is so that the source file can tell whether it is being
7789 # built for inclusion in a dll (and should export symbols for example).
7790 lt_prog_compiler_pic='-DDLL_EXPORT'
7793 darwin* | rhapsody*)
7794 # PIC is the default on this platform
7795 # Common symbols not allowed in MH_DYLIB files
7796 lt_prog_compiler_pic='-fno-common'
7800 # Just because we use GCC doesn't mean we suddenly get shared libraries
7801 # on systems that don't support them.
7802 lt_prog_compiler_can_build_shared=no
7807 if test -d /usr/nec; then
7808 lt_prog_compiler_pic=-Kconform_pic
7813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7820 lt_prog_compiler_pic='-fPIC'
7826 lt_prog_compiler_pic='-fPIC'
7830 # PORTME Check for flag to pass linker flags through the system compiler.
7833 lt_prog_compiler_wl='-Wl,'
7834 if test "$host_cpu" = ia64; then
7835 # AIX 5 now supports IA64 processor
7836 lt_prog_compiler_static='-Bstatic'
7838 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7842 # PIC is the default on this platform
7843 # Common symbols not allowed in MH_DYLIB files
7844 case $cc_basename in
7846 lt_prog_compiler_pic='-qnocommon'
7847 lt_prog_compiler_wl='-Wl,'
7852 mingw* | pw32* | os2*)
7853 # This hack is so that the source file can tell whether it is being
7854 # built for inclusion in a dll (and should export symbols for example).
7855 lt_prog_compiler_pic='-DDLL_EXPORT'
7858 hpux9* | hpux10* | hpux11*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7867 lt_prog_compiler_pic='+Z'
7870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7871 lt_prog_compiler_static='${wl}-a ${wl}archive'
7874 irix5* | irix6* | nonstopux*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # PIC (with -KPIC) is the default.
7877 lt_prog_compiler_static='-non_shared'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-Bstatic'
7886 case $cc_basename in
7888 lt_prog_compiler_wl='-Wl,'
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-static'
7892 pgcc* | pgf77* | pgf90* | pgf95*)
7893 # Portland Group compilers (*not* the Pentium gcc compiler,
7894 # which looks to be a dead project)
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_pic='-fpic'
7897 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_wl='-Wl,'
7901 # All Alpha code is PIC.
7902 lt_prog_compiler_static='-non_shared'
7907 osf3* | osf4* | osf5*)
7908 lt_prog_compiler_wl='-Wl,'
7909 # All OSF/1 code is PIC.
7910 lt_prog_compiler_static='-non_shared'
7914 lt_prog_compiler_pic='-Kpic'
7915 lt_prog_compiler_static='-dn'
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7921 case $cc_basename in
7923 lt_prog_compiler_wl='-Qoption ld ';;
7925 lt_prog_compiler_wl='-Wl,';;
7930 lt_prog_compiler_wl='-Qoption ld '
7931 lt_prog_compiler_pic='-PIC'
7932 lt_prog_compiler_static='-Bstatic'
7935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-KPIC'
7938 lt_prog_compiler_static='-Bstatic'
7942 if test -d /usr/nec ;then
7943 lt_prog_compiler_pic='-Kconform_pic'
7944 lt_prog_compiler_static='-Bstatic'
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_can_build_shared=no
7954 lt_prog_compiler_pic='-pic'
7955 lt_prog_compiler_static='-Bstatic'
7959 lt_prog_compiler_can_build_shared=no
7964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7968 # Check to make sure the PIC flag actually works.
7970 if test -n "$lt_prog_compiler_pic"; then
7972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7974 if test "${lt_prog_compiler_pic_works+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_prog_compiler_pic_works=no
7978 ac_outfile=conftest.$ac_objext
7979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981 # Insert the option either (1) after the last *FLAGS variable, or
7982 # (2) before a word containing "conftest.", or (3) at the end.
7983 # Note that $ac_compile itself does not contain backslashes and begins
7984 # with a dollar sign (not a hyphen), so the echo should work correctly.
7985 # The option is referenced via a variable to avoid confusing sed.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>conftest.err)
7993 cat conftest.err >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s "$ac_outfile"; then
7996 # The compiler can only warn and ignore the option if not recognized
7997 # So say no if there are warnings other than the usual output.
7998 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7999 $SED '/^$/d' conftest.err >conftest.er2
8000 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8001 lt_prog_compiler_pic_works=yes
8007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8010 if test x"$lt_prog_compiler_pic_works" = xyes; then
8011 case $lt_prog_compiler_pic in
8013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8016 lt_prog_compiler_pic=
8017 lt_prog_compiler_can_build_shared=no
8022 # For platforms which do not support PIC, -DPIC is meaningless:
8024 lt_prog_compiler_pic=
8027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8031 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8033 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 lt_cv_prog_compiler_c_o=no
8037 $rm -r conftest 2>/dev/null
8041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="-o out/conftest2.$ac_objext"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 lt_compile=`echo "$ac_compile" | $SED \
8049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051 -e 's:$: $lt_compiler_flag:'`
8052 (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053 (eval "$lt_compile" 2>out/conftest.err)
8055 cat out/conftest.err >&5
8056 echo "$as_me:8056: \$? = $ac_status" >&5
8057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8062 $SED '/^$/d' out/conftest.err >out/conftest.er2
8063 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8064 lt_cv_prog_compiler_c_o=yes
8069 # SGI C++ compiler will create directory out/ii_files/ for
8070 # template instantiation
8071 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8072 $rm out/* && rmdir out
8078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8082 hard_links="nottested"
8083 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8084 # do not overwrite the value of need_locks provided by the user
8085 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8091 ln conftest.a conftest.b 2>&5 || hard_links=no
8092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093 echo "$as_me:$LINENO: result: $hard_links" >&5
8094 echo "${ECHO_T}$hard_links" >&6
8095 if test "$hard_links" = no; then
8096 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8108 allow_undefined_flag=
8109 enable_shared_with_static_runtimes=no
8111 archive_expsym_cmds=
8112 old_archive_From_new_cmds=
8113 old_archive_from_expsyms_cmds=
8114 export_dynamic_flag_spec=
8115 whole_archive_flag_spec=
8116 thread_safe_flag_spec=
8117 hardcode_libdir_flag_spec=
8118 hardcode_libdir_flag_spec_ld=
8119 hardcode_libdir_separator=
8122 hardcode_shlibpath_var=unsupported
8123 link_all_deplibs=unknown
8124 hardcode_automatic=no
8127 always_export_symbols=no
8128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129 # include_expsyms should be a list of space-separated symbols to be *always*
8130 # included in the symbol list
8132 # exclude_expsyms can be an extended regexp of symbols to exclude
8133 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8134 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8135 # as well as any symbol that contains `d'.
8136 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8137 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8138 # platforms (ab)use it in PIC code, but their linkers get confused if
8139 # the symbol is explicitly referenced. Since portable code cannot
8140 # rely on this symbol name, it's probably fine to never include it in
8141 # preloaded symbol tables.
8142 extract_expsyms_cmds=
8143 # Just being paranoid about ensuring that cc_basename is set.
8144 for cc_temp in $compiler""; do
8146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8155 cygwin* | mingw* | pw32*)
8156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8157 # When not using gcc, we currently assume that we are using
8158 # Microsoft Visual C++.
8159 if test "$GCC" != yes; then
8169 if test "$with_gnu_ld" = yes; then
8170 # If archive_cmds runs LD, not CC, wlarc should be empty
8173 # Set some defaults for GNU ld with shared library support. These
8174 # are reset later if shared libraries are not supported. Putting them
8175 # here allows them to be overridden if necessary.
8176 runpath_var=LD_RUN_PATH
8177 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8178 export_dynamic_flag_spec='${wl}--export-dynamic'
8179 # ancient GNU ld didn't support --whole-archive et. al.
8180 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8181 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8183 whole_archive_flag_spec=
8185 supports_anon_versioning=no
8186 case `$LD -v 2>/dev/null` in
8187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190 *\ 2.11.*) ;; # other 2.11 versions
8191 *) supports_anon_versioning=yes ;;
8194 # See if GNU ld supports shared libraries.
8196 aix3* | aix4* | aix5*)
8197 # On AIX/PPC, the GNU linker is very broken
8198 if test "$host_cpu" != ia64; then
8202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203 *** to be unable to reliably create shared libraries on AIX.
8204 *** Therefore, libtool is disabling shared libraries support. If you
8205 *** really care for shared libraries, you may want to modify your PATH
8206 *** so that a non-GNU linker is found, and then restart.
8213 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_minus_L=yes
8217 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8218 # that the semantics of dynamic libraries on AmigaOS, at least up
8219 # to version 4, is to share data among multiple programs linked
8220 # with the same dynamic library. Since this doesn't match the
8221 # behavior of shared libraries on other platforms, we can't use
8227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228 allow_undefined_flag=unsupported
8229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8230 # support --undefined. This deserves some investigation. FIXME
8231 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 cygwin* | mingw* | pw32*)
8238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8239 # as there is no search path for DLLs.
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 allow_undefined_flag=unsupported
8242 always_export_symbols=no
8243 enable_shared_with_static_runtimes=yes
8244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8248 # If the export-symbols file already is a .def file (1st line
8249 # is EXPORTS), use it as is; otherwise, prepend...
8250 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8251 cp $export_symbols $output_objdir/$soname.def;
8253 echo EXPORTS > $output_objdir/$soname.def;
8254 cat $export_symbols >> $output_objdir/$soname.def;
8256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265 case $cc_basename,$host_cpu in
8266 pgcc*) # Portland Group C compiler
8267 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8268 tmp_addflag=' $pic_flag'
8270 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8271 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8272 tmp_addflag=' $pic_flag -Mnomain' ;;
8273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8274 tmp_addflag=' -i_dynamic' ;;
8275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8276 tmp_addflag=' -i_dynamic -nofor_main' ;;
8277 ifc* | ifort*) # Intel Fortran compiler
8278 tmp_addflag=' -nofor_main' ;;
8280 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282 if test $supports_anon_versioning = yes; then
8283 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8285 $echo "local: *; };" >> $output_objdir/$libname.ver~
8286 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309 *** create shared libraries on Solaris systems. Therefore, libtool
8310 *** is disabling shared libraries support. We urge you to upgrade GNU
8311 *** binutils to release 2.9.1 or newer. Another option is to modify
8312 *** your PATH or compiler configuration so that the native linker is
8313 *** used, and then restart.
8316 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_shlibpath_var=no
8332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8341 if test "$ld_shlibs" = no; then
8343 hardcode_libdir_flag_spec=
8344 export_dynamic_flag_spec=
8345 whole_archive_flag_spec=
8348 # PORTME fill in a description of your system's linker (not GNU ld)
8351 allow_undefined_flag=unsupported
8352 always_export_symbols=yes
8353 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8354 # Note: this linker hardcodes the directories in LIBPATH if there
8355 # are no directories specified by -L.
8356 hardcode_minus_L=yes
8357 if test "$GCC" = yes && test -z "$link_static_flag"; then
8358 # Neither direct hardcoding nor static linking is supported with a
8360 hardcode_direct=unsupported
8365 if test "$host_cpu" = ia64; then
8366 # On IA64, the linker does run time linking by default, so we don't
8367 # have to do anything special.
8368 aix_use_runtimelinking=no
8369 exp_sym_flag='-Bexport'
8372 # If we're using GNU nm, then we don't want the "-C" option.
8373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8375 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8377 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8379 aix_use_runtimelinking=no
8381 # Test if we are trying to use run time linking or normal
8382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8383 # need to do runtime linking.
8384 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8385 for ld_flag in $LDFLAGS; do
8386 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8387 aix_use_runtimelinking=yes
8393 exp_sym_flag='-bexport'
8394 no_entry_flag='-bnoentry'
8397 # When large executables or shared objects are built, AIX ld can
8398 # have problems creating the table of contents. If linking a library
8399 # or program results in "error TOC overflow" add -mminimal-toc to
8400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8405 hardcode_libdir_separator=':'
8406 link_all_deplibs=yes
8408 if test "$GCC" = yes; then
8409 case $host_os in aix4.[012]|aix4.[012].*)
8410 # We only want to do this on AIX 4.2 and lower, the check
8411 # below for broken collect2 doesn't work under 4.3+
8412 collect2name=`${CC} -print-prog-name=collect2`
8413 if test -f "$collect2name" && \
8414 strings "$collect2name" | grep resolve_lib_name >/dev/null
8416 # We have reworked collect2
8419 # We have old collect2
8420 hardcode_direct=unsupported
8421 # It fails to find uninstalled libraries when the uninstalled
8422 # path is not listed in the libpath. Setting hardcode_minus_L
8423 # to unsupported forces relinking
8424 hardcode_minus_L=yes
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_libdir_separator=
8429 shared_flag='-shared'
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag="$shared_flag "'${wl}-G'
8435 if test "$host_cpu" = ia64; then
8436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437 # chokes on -Wl,-G. The following line is correct:
8440 if test "$aix_use_runtimelinking" = yes; then
8441 shared_flag='${wl}-G'
8443 shared_flag='${wl}-bM:SRE'
8448 # It seems that -bexpall does not export symbols beginning with
8449 # underscore (_), so it is better to generate a list of symbols to export.
8450 always_export_symbols=yes
8451 if test "$aix_use_runtimelinking" = yes; then
8452 # Warning - without using the other runtime loading flags (-brtl),
8453 # -berok will link without error, but may produce a broken library.
8454 allow_undefined_flag='-berok'
8455 # Determine the default libpath from the value encoded in an empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8496 # Check for a 64-bit object if we didn't find anything.
8497 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8511 if test "$host_cpu" = ia64; then
8512 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8513 allow_undefined_flag="-z nodefs"
8514 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8516 # Determine the default libpath from the value encoded in an empty executable.
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8557 # Check for a 64-bit object if we didn't find anything.
8558 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8570 # Warning - without using the other run time loading flags,
8571 # -berok will link without error, but may produce a broken library.
8572 no_undefined_flag=' ${wl}-bernotok'
8573 allow_undefined_flag=' ${wl}-berok'
8574 # -bexpall does not export symbols beginning with underscore (_)
8575 always_export_symbols=yes
8576 # Exported symbols can be pulled into shared objects from archives
8577 whole_archive_flag_spec=' '
8578 archive_cmds_need_lc=yes
8579 # This is similar to how AIX traditionally builds its shared libraries.
8580 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8586 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589 # see comment about different semantics on the GNU ld section
8594 export_dynamic_flag_spec=-rdynamic
8597 cygwin* | mingw* | pw32*)
8598 # When not using gcc, we currently assume that we are using
8599 # Microsoft Visual C++.
8600 # hardcode_libdir_flag_spec is actually meaningless, as there is
8601 # no search path for DLLs.
8602 hardcode_libdir_flag_spec=' '
8603 allow_undefined_flag=unsupported
8604 # Tell ltmain to make .lib files, not .a files.
8606 # Tell ltmain to make .dll files, not .so files.
8608 # FIXME: Setting linknames here is a bad hack.
8609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8610 # The linker will automatically build a .lib file if we build a DLL.
8611 old_archive_From_new_cmds='true'
8612 # FIXME: Should let the user specify the lib program.
8613 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8614 fix_srcfile_path='`cygpath -w "$srcfile"`'
8615 enable_shared_with_static_runtimes=yes
8618 darwin* | rhapsody*)
8620 rhapsody* | darwin1.[012])
8621 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8624 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8625 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8627 case ${MACOSX_DEPLOYMENT_TARGET} in
8629 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8638 archive_cmds_need_lc=no
8640 hardcode_automatic=yes
8641 hardcode_shlibpath_var=unsupported
8642 whole_archive_flag_spec=''
8643 link_all_deplibs=yes
8644 if test "$GCC" = yes ; then
8645 output_verbose_link_cmd='echo'
8646 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8647 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8648 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8649 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8650 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8652 case $cc_basename in
8654 output_verbose_link_cmd='echo'
8655 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8656 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8658 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8659 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-L$libdir'
8671 hardcode_shlibpath_var=no
8678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8679 # support. Future versions do this automatically, but an explicit c++rt0.o
8680 # does not break anything, and helps significantly (at the cost of a little
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8684 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_shlibpath_var=no
8689 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_minus_L=yes
8694 hardcode_shlibpath_var=no
8697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8698 freebsd* | kfreebsd*-gnu | dragonfly*)
8699 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8700 hardcode_libdir_flag_spec='-R$libdir'
8702 hardcode_shlibpath_var=no
8706 if test "$GCC" = yes; then
8707 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8709 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712 hardcode_libdir_separator=:
8715 # hardcode_minus_L: Not really in the search PATH,
8716 # but as the default location of the library.
8717 hardcode_minus_L=yes
8718 export_dynamic_flag_spec='${wl}-E'
8722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8741 if test "$with_gnu_ld" = no; then
8744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745 hardcode_libdir_flag_spec_ld='+b $libdir'
8746 hardcode_libdir_separator=:
8748 hardcode_shlibpath_var=no
8751 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_shlibpath_var=no
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761 hardcode_libdir_separator=:
8763 export_dynamic_flag_spec='${wl}-E'
8765 # hardcode_minus_L: Not really in the search PATH,
8766 # but as the default location of the library.
8767 hardcode_minus_L=yes
8773 irix5* | irix6* | nonstopux*)
8774 if test "$GCC" = yes; then
8775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 hardcode_libdir_separator=:
8782 link_all_deplibs=yes
8786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8791 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_shlibpath_var=no
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_shlibpath_var=no
8806 hardcode_shlibpath_var=no
8807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811 export_dynamic_flag_spec='${wl}-E'
8814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_libdir_flag_spec='-R$libdir'
8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_minus_L=yes
8829 allow_undefined_flag=unsupported
8830 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8831 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8835 if test "$GCC" = yes; then
8836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8837 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8839 allow_undefined_flag=' -expect_unresolved \*'
8840 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 hardcode_libdir_separator=:
8846 osf4* | osf5*) # as osf3* with the addition of -msym flag
8847 if test "$GCC" = yes; then
8848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8849 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 allow_undefined_flag=' -expect_unresolved \*'
8853 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8854 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8855 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8857 # Both c and cxx compiler support -rpath directly
8858 hardcode_libdir_flag_spec='-rpath $libdir'
8860 hardcode_libdir_separator=:
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_shlibpath_var=no
8866 export_dynamic_flag_spec='${wl}-Bexport'
8867 runpath_var=LD_RUN_PATH
8868 hardcode_runpath_var=yes
8872 no_undefined_flag=' -z text'
8873 if test "$GCC" = yes; then
8875 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 hardcode_shlibpath_var=no
8887 solaris2.[0-5] | solaris2.[0-5].*) ;;
8889 # The compiler driver will combine linker options so we
8890 # cannot just pass the convience library names through
8891 # without $wl, iff we do not link with $LD.
8892 # Luckily, gcc supports the same syntax we need for Sun Studio.
8893 # Supported since Solaris 2.6 (maybe 2.5.1?)
8896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8898 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8901 link_all_deplibs=yes
8905 if test "x$host_vendor" = xsequent; then
8906 # Use $CC to link under sequent, because it throws in some extra .o
8907 # files that make .init and .fini sections work.
8908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_minus_L=yes
8915 hardcode_shlibpath_var=no
8919 case $host_vendor in
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_direct=yes # is this really true???
8925 ## LD is ld it makes a PLAMLIB
8926 ## CC just makes a GrossModule.
8927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928 reload_cmds='$CC -r -o $output$reload_objs'
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8936 runpath_var='LD_RUN_PATH'
8937 hardcode_shlibpath_var=no
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_shlibpath_var=no
8943 export_dynamic_flag_spec='-Bexport'
8947 if test -d /usr/nec; then
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_shlibpath_var=no
8950 runpath_var=LD_RUN_PATH
8951 hardcode_runpath_var=yes
8957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_shlibpath_var=no
8961 hardcode_runpath_var=yes
8962 runpath_var=LD_RUN_PATH
8965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8966 no_undefined_flag='${wl}-z ${wl}text'
8967 if test "$GCC" = yes; then
8968 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 runpath_var='LD_RUN_PATH'
8973 hardcode_shlibpath_var=no
8977 no_undefined_flag=' -z text'
8978 # $CC -shared without GNU ld will not create a library from C++
8979 # object files and a static libstdc++, better avoid it by now
8980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983 hardcode_libdir_flag_spec=
8984 hardcode_shlibpath_var=no
8985 runpath_var='LD_RUN_PATH'
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_shlibpath_var=no
9000 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9001 echo "${ECHO_T}$ld_shlibs" >&6
9002 test "$ld_shlibs" = no && can_build_shared=no
9004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9005 if test "$GCC" = yes; then
9006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9010 # Do we need to explicitly link libc?
9012 case "x$archive_cmds_need_lc" in
9014 # Assume -lc should be added
9015 archive_cmds_need_lc=yes
9017 if test "$enable_shared" = yes && test "$GCC" = yes; then
9018 case $archive_cmds in
9020 # FIXME: we may have to deal with multi-command sequences.
9023 # Test whether the compiler implicitly links with -lc since on some
9024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9025 # to ld, don't add -lc before -lgcc.
9026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } 2>conftest.err; then
9038 libobjs=conftest.$ac_objext
9040 wl=$lt_prog_compiler_wl
9046 lt_save_allow_undefined_flag=$allow_undefined_flag
9047 allow_undefined_flag=
9048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9049 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }
9054 archive_cmds_need_lc=no
9056 archive_cmds_need_lc=yes
9058 allow_undefined_flag=$lt_save_allow_undefined_flag
9060 cat conftest.err 1>&5
9063 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9064 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9071 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9074 libname_spec='lib$name'
9082 shlibpath_overrides_runpath=unknown
9084 dynamic_linker="$host_os ld.so"
9085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9086 if test "$GCC" = yes; then
9087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9089 # if the path contains ";" then we assume it to be the separator
9090 # otherwise default to the standard path separator (i.e. ":") - it is
9091 # assumed that no part of a normal pathname contains ";" but that should
9092 # okay in the real world where ";" in dirpaths is itself problematic.
9093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100 need_lib_prefix=unknown
9101 hardcode_into_libs=no
9103 # when you set need_version to no, make sure it does not cause -set_version
9104 # flags to be left without arguments
9105 need_version=unknown
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9111 shlibpath_var=LIBPATH
9113 # AIX 3 has no versioning support, so we append a major version to the name.
9114 soname_spec='${libname}${release}${shared_ext}$major'
9121 hardcode_into_libs=yes
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 supports IA64
9124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9127 # With GCC up to 2.95.x, collect2 would create an import file
9128 # for dependence libraries. The import file would start with
9129 # the line `#! .'. This would cause the generated library to
9130 # depend on `.', always an invalid library. This was fixed in
9131 # development snapshots of GCC prior to 3.0.
9133 aix4 | aix4.[01] | aix4.[01].*)
9134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9144 # soname into executable. Probably we can add versioning support to
9145 # collect2, so additional links can be useful in future.
9146 if test "$aix_use_runtimelinking" = yes; then
9147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9148 # instead of lib<name>.a to let people know that these are not
9149 # typical AIX shared libraries.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 # We preserve .a as extension for shared libraries through AIX4.2
9153 # and later when we are not doing run time linking.
9154 library_names_spec='${libname}${release}.a $libname.a'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LIBPATH
9162 library_names_spec='$libname.ixlibrary $libname.a'
9163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9164 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9168 library_names_spec='${libname}${shared_ext}'
9169 dynamic_linker="$host_os ld.so"
9170 shlibpath_var=LIBRARY_PATH
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9182 # the default ld.so.conf also contains /usr/contrib/lib and
9183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9184 # libtool to hard-code these into programs
9187 cygwin* | mingw* | pw32*)
9188 version_type=windows
9193 case $GCC,$host_os in
9194 yes,cygwin* | yes,mingw* | yes,pw32*)
9195 library_names_spec='$libname.dll.a'
9196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9197 postinstall_cmds='base_file=`basename \${file}`~
9198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9199 dldir=$destdir/`dirname \$dlpath`~
9200 test -d \$dldir || mkdir -p \$dldir~
9201 $install_prog $dir/$dlname \$dldir/$dlname~
9202 chmod a+x \$dldir/$dlname'
9203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204 dlpath=$dir/\$dldll~
9206 shlibpath_overrides_runpath=yes
9210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215 # MinGW DLLs use traditional 'lib' prefix
9216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219 # It is most probably a Windows format PATH printed by
9220 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221 # path with ; separators, and with drive letters. We can handle the
9222 # drive letters (cygwin fileutils understands them), so leave them,
9223 # especially as we might pass files found there to a mingw objdump,
9224 # which wouldn't understand a cygwinified path. Ahh.
9225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 # pw32 DLLs use 'pw' prefix rather than 'lib'
9232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241 dynamic_linker='Win32 ld.exe'
9242 # FIXME: first we should search . and the directory the executable is in
9246 darwin* | rhapsody*)
9247 dynamic_linker="$host_os dyld"
9251 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252 soname_spec='${libname}${release}${major}$shared_ext'
9253 shlibpath_overrides_runpath=yes
9254 shlibpath_var=DYLD_LIBRARY_PATH
9255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9256 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9257 if test "$GCC" = yes; then
9258 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9260 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=no
9286 hardcode_into_libs=yes
9287 dynamic_linker='GNU ld.so'
9290 freebsd* | dragonfly*)
9291 # DragonFly does not have aout. When/if they implement a new
9292 # versioning mechanism, adjust this.
9293 if test -x /usr/bin/objformat; then
9294 objformat=`/usr/bin/objformat`
9297 freebsd[123]*) objformat=aout ;;
9301 version_type=freebsd-$objformat
9302 case $version_type in
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9313 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9318 freebsd3.[01]* | freebsdelf3.[01]*)
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 hardcode_into_libs=yes
9339 hpux9* | hpux10* | hpux11*)
9340 # Give a soname corresponding to the major version so that dld.sl refuses to
9341 # link against other versions.
9348 hardcode_into_libs=yes
9349 dynamic_linker="$host_os dld.so"
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 if test "X$HPUX_IA64_MODE" = X32; then
9355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9363 hardcode_into_libs=yes
9364 dynamic_linker="$host_os dld.sl"
9365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9374 dynamic_linker="$host_os dld.sl"
9375 shlibpath_var=SHLIB_PATH
9376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9382 postinstall_cmds='chmod 555 $lib'
9385 irix5* | irix6* | nonstopux*)
9387 nonstopux*) version_type=nonstopux ;;
9389 if test "$lt_cv_prog_gnu_ld" = yes; then
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9400 irix5* | nonstopux*)
9404 case $LD in # libtool.m4 will add one of these switches to LD
9405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9406 libsuff= shlibsuff= libmagic=32-bit;;
9407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9408 libsuff=32 shlibsuff=N32 libmagic=N32;;
9409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9411 *) libsuff= shlibsuff= libmagic=never-match;;
9415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9416 shlibpath_overrides_runpath=no
9417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9419 hardcode_into_libs=yes
9422 # No shared lib support for Linux oldld, aout, or coff.
9423 linux*oldld* | linux*aout* | linux*coff*)
9427 # This must be Linux ELF.
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 # This implies no fast_install, which is unacceptable.
9438 # Some rework will be needed to allow for fast_install
9439 # before this can be enabled.
9440 hardcode_into_libs=yes
9442 # Append ld.so.conf contents to the search path
9443 if test -f /etc/ld.so.conf; then
9444 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9448 # We used to test for /lib/ld.so.1 and disable shared libraries on
9449 # powerpc, because MkLinux only supported shared libraries with the
9450 # GNU dynamic linker. Since this was broken with cross compilers,
9451 # most powerpc-linux boxes support dynamic linking these days and
9452 # people can always --disable-shared, the test was removed, and we
9453 # assume the GNU/Linux dynamic linker is in use.
9454 dynamic_linker='GNU/Linux ld.so'
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 dynamic_linker='GNU ld.so'
9473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476 dynamic_linker='NetBSD (a.out) ld.so'
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 dynamic_linker='NetBSD ld.elf_so'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9484 hardcode_into_libs=yes
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9510 *) need_version=no ;;
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 openbsd2.[89] | openbsd2.[89].*)
9518 shlibpath_overrides_runpath=no
9521 shlibpath_overrides_runpath=yes
9525 shlibpath_overrides_runpath=yes
9530 libname_spec='$name'
9533 library_names_spec='$libname${shared_ext} $libname.a'
9534 dynamic_linker='OS/2 ld.exe'
9535 shlibpath_var=LIBPATH
9538 osf3* | osf4* | osf5*)
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 shlibpath_var=LD_LIBRARY_PATH
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=yes
9564 hardcode_into_libs=yes
9565 # ldd complains unless libraries are executable
9566 postinstall_cmds='chmod +x $lib'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=yes
9575 if test "$with_gnu_ld" = yes; then
9581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 case $host_vendor in
9588 shlibpath_overrides_runpath=no
9590 export_dynamic_flag_spec='${wl}-Blargedynsym'
9591 runpath_var=LD_RUN_PATH
9599 shlibpath_overrides_runpath=no
9600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9606 if test -d /usr/nec ;then
9608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9609 soname_spec='$libname${shared_ext}.$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 shlibpath_var=LD_LIBRARY_PATH
9625 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9626 echo "${ECHO_T}$dynamic_linker" >&6
9627 test "$dynamic_linker" = no && can_build_shared=no
9629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9632 if test -n "$hardcode_libdir_flag_spec" || \
9633 test -n "$runpath_var" || \
9634 test "X$hardcode_automatic" = "Xyes" ; then
9636 # We can hardcode non-existant directories.
9637 if test "$hardcode_direct" != no &&
9638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9639 # have to relink, otherwise we might link with an installed library
9640 # when we should be linking with a yet-to-be-installed one
9641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9642 test "$hardcode_minus_L" != no; then
9643 # Linking always hardcodes the temporary library directory.
9644 hardcode_action=relink
9646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9647 hardcode_action=immediate
9650 # We cannot hardcode anything, or else we can only hardcode existing
9652 hardcode_action=unsupported
9654 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9655 echo "${ECHO_T}$hardcode_action" >&6
9657 if test "$hardcode_action" = relink; then
9658 # Fast installation is not supported
9659 enable_fast_install=no
9660 elif test "$shlibpath_overrides_runpath" = yes ||
9661 test "$enable_shared" = no; then
9662 # Fast installation is not necessary
9663 enable_fast_install=needless
9668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9673 echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 # FIXME - insert some real tests, host_os isn't really good enough
9679 if test -n "$STRIP" ; then
9680 striplib="$STRIP -x"
9681 echo "$as_me:$LINENO: result: yes" >&5
9682 echo "${ECHO_T}yes" >&6
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9689 echo "$as_me:$LINENO: result: no" >&5
9690 echo "${ECHO_T}no" >&6
9695 if test "x$enable_dlopen" != xyes; then
9696 enable_dlopen=unknown
9697 enable_dlopen_self=unknown
9698 enable_dlopen_self_static=unknown
9705 lt_cv_dlopen="load_add_on"
9707 lt_cv_dlopen_self=yes
9711 lt_cv_dlopen="LoadLibrary"
9716 lt_cv_dlopen="dlopen"
9721 # if libdl is installed we need to link against it
9722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 ac_check_lib_save_LIBS=$LIBS
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_dl_dlopen=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_lib_dl_dlopen=no
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9786 if test $ac_cv_lib_dl_dlopen = yes; then
9787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9792 lt_cv_dlopen_self=yes
9799 echo "$as_me:$LINENO: checking for shl_load" >&5
9800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9801 if test "${ac_cv_func_shl_load+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9812 #define shl_load innocuous_shl_load
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char shl_load (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9820 # include <limits.h>
9822 # include <assert.h>
9827 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9841 char (*f) () = shl_load;
9850 return f != shl_load;
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_func_shl_load=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_func_shl_load=no
9884 rm -f conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9889 if test $ac_cv_func_shl_load = yes; then
9890 lt_cv_dlopen="shl_load"
9892 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9893 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 ac_check_lib_save_LIBS=$LIBS
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9925 grep -v '^ *+' conftest.er1 >conftest.err
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_c_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_lib_dld_shl_load=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_lib_dld_shl_load=no
9950 rm -f conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9956 if test $ac_cv_lib_dld_shl_load = yes; then
9957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9959 echo "$as_me:$LINENO: checking for dlopen" >&5
9960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9961 if test "${ac_cv_func_dlopen+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define dlopen innocuous_dlopen
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char dlopen (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9987 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10001 char (*f) () = dlopen;
10010 return f != dlopen;
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag"
10025 || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_func_dlopen=yes
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ac_cv_func_dlopen=no
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10049 if test $ac_cv_func_dlopen = yes; then
10050 lt_cv_dlopen="dlopen"
10052 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 ac_check_lib_save_LIBS=$LIBS
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_dl_dlopen=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_lib_dl_dlopen=no
10110 rm -f conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10116 if test $ac_cv_lib_dl_dlopen = yes; then
10117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10119 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10120 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lsvld $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_svld_dlopen=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_svld_dlopen=no
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10186 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_check_lib_save_LIBS=$LIBS
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10200 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>conftest.er1
10219 grep -v '^ *+' conftest.er1 >conftest.err
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -z "$ac_c_werror_flag"
10225 || test ! -s conftest.err'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_lib_dld_dld_link=yes
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_cv_lib_dld_dld_link=no
10244 rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10250 if test $ac_cv_lib_dld_dld_link = yes; then
10251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10272 if test "x$lt_cv_dlopen" != xno; then
10278 case $lt_cv_dlopen in
10280 save_CPPFLAGS="$CPPFLAGS"
10281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10283 save_LDFLAGS="$LDFLAGS"
10284 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10287 LIBS="$lt_cv_dlopen_libs $LIBS"
10289 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10291 if test "${lt_cv_dlopen_self+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10300 "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10342 extern "C" void exit (int);
10345 void fnord() { int i=42;}
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10366 (./conftest; exit; ) >&5 2>/dev/null
10368 case x$lt_status in
10369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10371 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10374 # compilation failed
10375 lt_cv_dlopen_self=no
10382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10385 if test "x$lt_cv_dlopen_self" = xyes; then
10386 LDFLAGS="$LDFLAGS $link_static_flag"
10387 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10389 if test "${lt_cv_dlopen_self_static+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test "$cross_compiling" = yes; then :
10393 lt_cv_dlopen_self_static=cross
10395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396 lt_status=$lt_dlunknown
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10398 "configure"
10399 #include "confdefs.h"
10408 # define LT_DLGLOBAL RTLD_GLOBAL
10411 # define LT_DLGLOBAL DL_GLOBAL
10413 # define LT_DLGLOBAL 0
10417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418 find out it does not work in some platform. */
10419 #ifndef LT_DLLAZY_OR_NOW
10421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10424 # define LT_DLLAZY_OR_NOW DL_LAZY
10427 # define LT_DLLAZY_OR_NOW RTLD_NOW
10430 # define LT_DLLAZY_OR_NOW DL_NOW
10432 # define LT_DLLAZY_OR_NOW 0
10440 extern "C" void exit (int);
10443 void fnord() { int i=42;}
10446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447 int status = $lt_dlunknown;
10451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453 /* dlclose (self); */
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464 (./conftest; exit; ) >&5 2>/dev/null
10466 case x$lt_status in
10467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10469 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10472 # compilation failed
10473 lt_cv_dlopen_self_static=no
10480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10484 CPPFLAGS="$save_CPPFLAGS"
10485 LDFLAGS="$save_LDFLAGS"
10490 case $lt_cv_dlopen_self in
10491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10492 *) enable_dlopen_self=unknown ;;
10495 case $lt_cv_dlopen_self_static in
10496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10497 *) enable_dlopen_self_static=unknown ;;
10502 # Report which librarie types wil actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6
10539 # The else clause should only fire when bootstrapping the
10540 # libtool distribution, otherwise you forgot to ship ltmain.sh
10541 # with your package, and you will get complaints that there are
10542 # no rules to generate ltmain.sh.
10543 if test -f "$ltmain"; then
10544 # See if we are running on zsh, and set the options which allow our commands through
10545 # without removal of \ escapes.
10546 if test -n "${ZSH_VERSION+set}" ; then
10547 setopt NO_GLOB_SUBST
10549 # Now quote all the things that may contain metacharacters while being
10550 # careful not to overquote the AC_SUBSTed values. We take copies of the
10551 # variables and quote the copies for generation of the libtool script.
10552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10556 deplibs_check_method reload_flag reload_cmds need_locks \
10557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10558 lt_cv_sys_global_symbol_to_c_name_address \
10559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10560 old_postinstall_cmds old_postuninstall_cmds \
10564 lt_prog_compiler_wl \
10565 lt_prog_compiler_pic \
10566 lt_prog_compiler_static \
10567 lt_prog_compiler_no_builtin_flag \
10568 export_dynamic_flag_spec \
10569 thread_safe_flag_spec \
10570 whole_archive_flag_spec \
10571 enable_shared_with_static_runtimes \
10573 old_archive_from_new_cmds \
10578 compiler_lib_search_path \
10580 archive_expsym_cmds \
10582 postuninstall_cmds \
10583 old_archive_from_expsyms_cmds \
10584 allow_undefined_flag \
10585 no_undefined_flag \
10586 export_symbols_cmds \
10587 hardcode_libdir_flag_spec \
10588 hardcode_libdir_flag_spec_ld \
10589 hardcode_libdir_separator \
10590 hardcode_automatic \
10592 module_expsym_cmds \
10593 lt_cv_prog_compiler_c_o \
10595 include_expsyms; do
10598 old_archive_cmds | \
10599 old_archive_from_new_cmds | \
10601 archive_expsym_cmds | \
10603 module_expsym_cmds | \
10604 old_archive_from_expsyms_cmds | \
10605 export_symbols_cmds | \
10606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10607 postinstall_cmds | postuninstall_cmds | \
10608 old_postinstall_cmds | old_postuninstall_cmds | \
10609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10610 # Double-quote double-evaled strings.
10611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10620 *'\$0 --fallback-echo"')
10621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10625 cfgfile="${ofile}T"
10626 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10628 { echo "$as_me:$LINENO: creating $ofile" >&5
10629 echo "$as_me: creating $ofile" >&6;}
10631 cat <<__EOF__ >> "$cfgfile"
10634 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10635 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10639 # Free Software Foundation, Inc.
10641 # This file is part of GNU Libtool:
10642 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10644 # This program is free software; you can redistribute it and/or modify
10645 # it under the terms of the GNU General Public License as published by
10646 # the Free Software Foundation; either version 2 of the License, or
10647 # (at your option) any later version.
10649 # This program is distributed in the hope that it will be useful, but
10650 # WITHOUT ANY WARRANTY; without even the implied warranty of
10651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10652 # General Public License for more details.
10654 # You should have received a copy of the GNU General Public License
10655 # along with this program; if not, write to the Free Software
10656 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10658 # As a special exception to the GNU General Public License, if you
10659 # distribute this file as part of a program that contains a
10660 # configuration script generated by Autoconf, you may include it under
10661 # the same distribution terms that you use for the rest of that program.
10663 # A sed program that does not truncate output.
10666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10667 Xsed="$SED -e 1s/^X//"
10669 # The HP-UX ksh and POSIX shell print the target directory to stdout
10670 # if CDPATH is set.
10671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10673 # The names of the tagged configurations supported by this script.
10676 # ### BEGIN LIBTOOL CONFIG
10678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10680 # Shell to use when invoking shell scripts.
10683 # Whether or not to build shared libraries.
10684 build_libtool_libs=$enable_shared
10686 # Whether or not to build static libraries.
10687 build_old_libs=$enable_static
10689 # Whether or not to add -lc for building shared libraries.
10690 build_libtool_need_lc=$archive_cmds_need_lc
10692 # Whether or not to disallow shared libs when runtime libs are static
10693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10695 # Whether or not to optimize for fast installation.
10696 fast_install=$enable_fast_install
10699 host_alias=$host_alias
10703 # The build system.
10704 build_alias=$build_alias
10708 # An echo program that does not interpret backslashes.
10713 AR_FLAGS=$lt_AR_FLAGS
10718 # A language-specific compiler.
10721 # Is the compiler the GNU C compiler?
10727 # The linker used to build libraries.
10730 # Whether we need hard or soft links.
10733 # A BSD-compatible nm program.
10736 # A symbol stripping program
10739 # Used to examine libraries when file_magic_cmd begins "file"
10740 MAGIC_CMD=$MAGIC_CMD
10742 # Used on cygwin: DLL creation program.
10745 # Used on cygwin: object dumper.
10748 # Used on cygwin: assembler.
10751 # The name of the directory that contains temporary libtool files.
10754 # How to create reloadable object files.
10755 reload_flag=$lt_reload_flag
10756 reload_cmds=$lt_reload_cmds
10758 # How to pass a linker flag through the compiler.
10759 wl=$lt_lt_prog_compiler_wl
10761 # Object file suffix (normally "o").
10762 objext="$ac_objext"
10764 # Old archive suffix (normally "a").
10767 # Shared library suffix (normally ".so").
10768 shrext_cmds='$shrext_cmds'
10770 # Executable file suffix (normally "").
10773 # Additional compiler flags for building library objects.
10774 pic_flag=$lt_lt_prog_compiler_pic
10777 # What is the maximum length of a command?
10778 max_cmd_len=$lt_cv_sys_max_cmd_len
10780 # Does compiler simultaneously support -c and -o options?
10781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10783 # Must we lock files when doing compilation?
10784 need_locks=$lt_need_locks
10786 # Do we need the lib prefix for modules?
10787 need_lib_prefix=$need_lib_prefix
10789 # Do we need a version for libraries?
10790 need_version=$need_version
10792 # Whether dlopen is supported.
10793 dlopen_support=$enable_dlopen
10795 # Whether dlopen of programs is supported.
10796 dlopen_self=$enable_dlopen_self
10798 # Whether dlopen of statically linked programs is supported.
10799 dlopen_self_static=$enable_dlopen_self_static
10801 # Compiler flag to prevent dynamic linking.
10802 link_static_flag=$lt_lt_prog_compiler_static
10804 # Compiler flag to turn off builtin functions.
10805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10807 # Compiler flag to allow reflexive dlopens.
10808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10810 # Compiler flag to generate shared objects directly from archives.
10811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10813 # Compiler flag to generate thread-safe objects.
10814 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10816 # Library versioning type.
10817 version_type=$version_type
10819 # Format of library name prefix.
10820 libname_spec=$lt_libname_spec
10822 # List of archive names. First name is the real one, the rest are links.
10823 # The last name is the one that the linker finds with -lNAME.
10824 library_names_spec=$lt_library_names_spec
10826 # The coded name of the library, if different from the real name.
10827 soname_spec=$lt_soname_spec
10829 # Commands used to build and install an old-style archive.
10831 old_archive_cmds=$lt_old_archive_cmds
10832 old_postinstall_cmds=$lt_old_postinstall_cmds
10833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10835 # Create an old-style archive from a shared archive.
10836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10838 # Create a temporary old-style archive to link instead of a shared archive.
10839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10841 # Commands used to build and install a shared archive.
10842 archive_cmds=$lt_archive_cmds
10843 archive_expsym_cmds=$lt_archive_expsym_cmds
10844 postinstall_cmds=$lt_postinstall_cmds
10845 postuninstall_cmds=$lt_postuninstall_cmds
10847 # Commands used to build a loadable module (assumed same as above if empty)
10848 module_cmds=$lt_module_cmds
10849 module_expsym_cmds=$lt_module_expsym_cmds
10851 # Commands to strip libraries.
10852 old_striplib=$lt_old_striplib
10853 striplib=$lt_striplib
10855 # Dependencies to place before the objects being linked to create a
10857 predep_objects=$lt_predep_objects
10859 # Dependencies to place after the objects being linked to create a
10861 postdep_objects=$lt_postdep_objects
10863 # Dependencies to place before the objects being linked to create a
10865 predeps=$lt_predeps
10867 # Dependencies to place after the objects being linked to create a
10869 postdeps=$lt_postdeps
10871 # The library search path used internally by the compiler when linking
10872 # a shared library.
10873 compiler_lib_search_path=$lt_compiler_lib_search_path
10875 # Method to check whether dependent libraries are shared objects.
10876 deplibs_check_method=$lt_deplibs_check_method
10878 # Command to use when deplibs_check_method == file_magic.
10879 file_magic_cmd=$lt_file_magic_cmd
10881 # Flag that allows shared libraries with undefined symbols to be built.
10882 allow_undefined_flag=$lt_allow_undefined_flag
10884 # Flag that forces no undefined symbols.
10885 no_undefined_flag=$lt_no_undefined_flag
10887 # Commands used to finish a libtool library installation in a directory.
10888 finish_cmds=$lt_finish_cmds
10890 # Same as above, but a single script fragment to be evaled but not shown.
10891 finish_eval=$lt_finish_eval
10893 # Take the output of nm and produce a listing of raw symbols and C names.
10894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10896 # Transform the output of nm in a proper C declaration
10897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10899 # Transform the output of nm in a C name address pair
10900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10902 # This is the shared library runtime path variable.
10903 runpath_var=$runpath_var
10905 # This is the shared library path variable.
10906 shlibpath_var=$shlibpath_var
10908 # Is shlibpath searched before the hard-coded library search path?
10909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10911 # How to hardcode a shared library path into an executable.
10912 hardcode_action=$hardcode_action
10914 # Whether we should hardcode library paths into libraries.
10915 hardcode_into_libs=$hardcode_into_libs
10917 # Flag to hardcode \$libdir into a binary during linking.
10918 # This must work even if \$libdir does not exist.
10919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10921 # If ld is used when linking, flag to hardcode \$libdir into
10922 # a binary during linking. This must work even if \$libdir does
10924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10926 # Whether we need a single -rpath flag with a separated argument.
10927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10930 # resulting binary.
10931 hardcode_direct=$hardcode_direct
10933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10934 # resulting binary.
10935 hardcode_minus_L=$hardcode_minus_L
10937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10938 # the resulting binary.
10939 hardcode_shlibpath_var=$hardcode_shlibpath_var
10941 # Set to yes if building a shared library automatically hardcodes DIR into the library
10942 # and all subsequent libraries and executables linked against it.
10943 hardcode_automatic=$hardcode_automatic
10945 # Variables whose values should be saved in libtool wrapper scripts and
10946 # restored at relink time.
10947 variables_saved_for_relink="$variables_saved_for_relink"
10949 # Whether libtool must link a program against all its dependency libraries.
10950 link_all_deplibs=$link_all_deplibs
10952 # Compile-time system search path for libraries
10953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10955 # Run-time system search path for libraries
10956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10958 # Fix the shell variable \$srcfile for the compiler.
10959 fix_srcfile_path="$fix_srcfile_path"
10961 # Set to yes if exported symbols are required.
10962 always_export_symbols=$always_export_symbols
10964 # The commands to list exported symbols.
10965 export_symbols_cmds=$lt_export_symbols_cmds
10967 # The commands to extract the exported symbol list from a shared archive.
10968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10970 # Symbols that should not be listed in the preloaded symbols.
10971 exclude_expsyms=$lt_exclude_expsyms
10973 # Symbols that must always be exported.
10974 include_expsyms=$lt_include_expsyms
10976 # ### END LIBTOOL CONFIG
10983 cat <<\EOF >> "$cfgfile"
10985 # AIX sometimes has problems with the GCC collect2 program. For some
10986 # reason, if we set the COLLECT_NAMES environment variable, the problems
10987 # vanish in a puff of smoke.
10988 if test "X${COLLECT_NAMES+set}" != Xset; then
10990 export COLLECT_NAMES
10996 # We use sed instead of cat because bash on DJGPP gets confused if
10997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10998 # text mode, it properly converts lines to CR/LF. This bash problem
10999 # is reportedly fixed, but why not run on old versions too?
11000 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11002 mv -f "$cfgfile" "$ofile" || \
11003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11007 # If there is no Makefile yet, we rely on a make rule to execute
11008 # `config.status --recheck' to rerun these tests and create the
11009 # libtool script then.
11010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11011 if test -f "$ltmain_in"; then
11012 test -f Makefile && make "$ltmain"
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026 # Check whether --with-tags or --without-tags was given.
11027 if test "${with_tags+set}" = set; then
11028 withval="$with_tags"
11029 tagnames="$withval"
11032 if test -f "$ltmain" && test -n "$tagnames"; then
11033 if test ! -f "${ofile}"; then
11034 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11035 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11038 if test -z "$LTCC"; then
11039 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11040 if test -z "$LTCC"; then
11041 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11042 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11045 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11049 # Extract list of available tagged configurations in $ofile.
11050 # Note that this assumes the entire list is on one line.
11051 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11054 for tagname in $tagnames; do
11056 # Check whether tagname contains only valid characters
11057 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11059 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11060 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11061 { (exit 1); exit 1; }; }
11065 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11067 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11068 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11069 { (exit 1); exit 1; }; }
11072 # Update the list of available tags.
11073 if test -n "$tagname"; then
11074 echo appending configuration tag \"$tagname\" to $ofile
11078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11080 (test "X$CXX" != "Xg++"))) ; then
11088 if test -n "$F77" && test "X$F77" != "Xno"; then
11096 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11107 # Source file extension for RC test sources.
11110 # Object file extension for compiled RC test sources.
11114 # Code to be used in simple compile tests
11115 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11117 # Code to be used in simple link tests
11118 lt_simple_link_test_code="$lt_simple_compile_test_code"
11120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11122 # If no C compiler was specified, use CC.
11125 # Allow CC to be a program name with arguments.
11129 # save warnings/boilerplate of simple test code
11130 ac_outfile=conftest.$ac_objext
11131 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11133 _lt_compiler_boilerplate=`cat conftest.err`
11136 ac_outfile=conftest.$ac_objext
11137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11139 _lt_linker_boilerplate=`cat conftest.err`
11143 # Allow CC to be a program name with arguments.
11148 for cc_temp in $compiler""; do
11150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11158 lt_cv_prog_compiler_c_o_RC=yes
11160 # The else clause should only fire when bootstrapping the
11161 # libtool distribution, otherwise you forgot to ship ltmain.sh
11162 # with your package, and you will get complaints that there are
11163 # no rules to generate ltmain.sh.
11164 if test -f "$ltmain"; then
11165 # See if we are running on zsh, and set the options which allow our commands through
11166 # without removal of \ escapes.
11167 if test -n "${ZSH_VERSION+set}" ; then
11168 setopt NO_GLOB_SUBST
11170 # Now quote all the things that may contain metacharacters while being
11171 # careful not to overquote the AC_SUBSTed values. We take copies of the
11172 # variables and quote the copies for generation of the libtool script.
11173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11177 deplibs_check_method reload_flag reload_cmds need_locks \
11178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11179 lt_cv_sys_global_symbol_to_c_name_address \
11180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11181 old_postinstall_cmds old_postuninstall_cmds \
11185 lt_prog_compiler_wl_RC \
11186 lt_prog_compiler_pic_RC \
11187 lt_prog_compiler_static_RC \
11188 lt_prog_compiler_no_builtin_flag_RC \
11189 export_dynamic_flag_spec_RC \
11190 thread_safe_flag_spec_RC \
11191 whole_archive_flag_spec_RC \
11192 enable_shared_with_static_runtimes_RC \
11193 old_archive_cmds_RC \
11194 old_archive_from_new_cmds_RC \
11195 predep_objects_RC \
11196 postdep_objects_RC \
11199 compiler_lib_search_path_RC \
11201 archive_expsym_cmds_RC \
11202 postinstall_cmds_RC \
11203 postuninstall_cmds_RC \
11204 old_archive_from_expsyms_cmds_RC \
11205 allow_undefined_flag_RC \
11206 no_undefined_flag_RC \
11207 export_symbols_cmds_RC \
11208 hardcode_libdir_flag_spec_RC \
11209 hardcode_libdir_flag_spec_ld_RC \
11210 hardcode_libdir_separator_RC \
11211 hardcode_automatic_RC \
11213 module_expsym_cmds_RC \
11214 lt_cv_prog_compiler_c_o_RC \
11215 exclude_expsyms_RC \
11216 include_expsyms_RC; do
11219 old_archive_cmds_RC | \
11220 old_archive_from_new_cmds_RC | \
11221 archive_cmds_RC | \
11222 archive_expsym_cmds_RC | \
11224 module_expsym_cmds_RC | \
11225 old_archive_from_expsyms_cmds_RC | \
11226 export_symbols_cmds_RC | \
11227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11228 postinstall_cmds | postuninstall_cmds | \
11229 old_postinstall_cmds | old_postuninstall_cmds | \
11230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11231 # Double-quote double-evaled strings.
11232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11241 *'\$0 --fallback-echo"')
11242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11248 cat <<__EOF__ >> "$cfgfile"
11249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11253 # Shell to use when invoking shell scripts.
11256 # Whether or not to build shared libraries.
11257 build_libtool_libs=$enable_shared
11259 # Whether or not to build static libraries.
11260 build_old_libs=$enable_static
11262 # Whether or not to add -lc for building shared libraries.
11263 build_libtool_need_lc=$archive_cmds_need_lc_RC
11265 # Whether or not to disallow shared libs when runtime libs are static
11266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11268 # Whether or not to optimize for fast installation.
11269 fast_install=$enable_fast_install
11272 host_alias=$host_alias
11276 # The build system.
11277 build_alias=$build_alias
11281 # An echo program that does not interpret backslashes.
11286 AR_FLAGS=$lt_AR_FLAGS
11291 # A language-specific compiler.
11294 # Is the compiler the GNU C compiler?
11300 # The linker used to build libraries.
11303 # Whether we need hard or soft links.
11306 # A BSD-compatible nm program.
11309 # A symbol stripping program
11312 # Used to examine libraries when file_magic_cmd begins "file"
11313 MAGIC_CMD=$MAGIC_CMD
11315 # Used on cygwin: DLL creation program.
11318 # Used on cygwin: object dumper.
11321 # Used on cygwin: assembler.
11324 # The name of the directory that contains temporary libtool files.
11327 # How to create reloadable object files.
11328 reload_flag=$lt_reload_flag
11329 reload_cmds=$lt_reload_cmds
11331 # How to pass a linker flag through the compiler.
11332 wl=$lt_lt_prog_compiler_wl_RC
11334 # Object file suffix (normally "o").
11335 objext="$ac_objext"
11337 # Old archive suffix (normally "a").
11340 # Shared library suffix (normally ".so").
11341 shrext_cmds='$shrext_cmds'
11343 # Executable file suffix (normally "").
11346 # Additional compiler flags for building library objects.
11347 pic_flag=$lt_lt_prog_compiler_pic_RC
11350 # What is the maximum length of a command?
11351 max_cmd_len=$lt_cv_sys_max_cmd_len
11353 # Does compiler simultaneously support -c and -o options?
11354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11356 # Must we lock files when doing compilation?
11357 need_locks=$lt_need_locks
11359 # Do we need the lib prefix for modules?
11360 need_lib_prefix=$need_lib_prefix
11362 # Do we need a version for libraries?
11363 need_version=$need_version
11365 # Whether dlopen is supported.
11366 dlopen_support=$enable_dlopen
11368 # Whether dlopen of programs is supported.
11369 dlopen_self=$enable_dlopen_self
11371 # Whether dlopen of statically linked programs is supported.
11372 dlopen_self_static=$enable_dlopen_self_static
11374 # Compiler flag to prevent dynamic linking.
11375 link_static_flag=$lt_lt_prog_compiler_static_RC
11377 # Compiler flag to turn off builtin functions.
11378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11380 # Compiler flag to allow reflexive dlopens.
11381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11383 # Compiler flag to generate shared objects directly from archives.
11384 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11386 # Compiler flag to generate thread-safe objects.
11387 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11389 # Library versioning type.
11390 version_type=$version_type
11392 # Format of library name prefix.
11393 libname_spec=$lt_libname_spec
11395 # List of archive names. First name is the real one, the rest are links.
11396 # The last name is the one that the linker finds with -lNAME.
11397 library_names_spec=$lt_library_names_spec
11399 # The coded name of the library, if different from the real name.
11400 soname_spec=$lt_soname_spec
11402 # Commands used to build and install an old-style archive.
11404 old_archive_cmds=$lt_old_archive_cmds_RC
11405 old_postinstall_cmds=$lt_old_postinstall_cmds
11406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11408 # Create an old-style archive from a shared archive.
11409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11411 # Create a temporary old-style archive to link instead of a shared archive.
11412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11414 # Commands used to build and install a shared archive.
11415 archive_cmds=$lt_archive_cmds_RC
11416 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11417 postinstall_cmds=$lt_postinstall_cmds
11418 postuninstall_cmds=$lt_postuninstall_cmds
11420 # Commands used to build a loadable module (assumed same as above if empty)
11421 module_cmds=$lt_module_cmds_RC
11422 module_expsym_cmds=$lt_module_expsym_cmds_RC
11424 # Commands to strip libraries.
11425 old_striplib=$lt_old_striplib
11426 striplib=$lt_striplib
11428 # Dependencies to place before the objects being linked to create a
11430 predep_objects=$lt_predep_objects_RC
11432 # Dependencies to place after the objects being linked to create a
11434 postdep_objects=$lt_postdep_objects_RC
11436 # Dependencies to place before the objects being linked to create a
11438 predeps=$lt_predeps_RC
11440 # Dependencies to place after the objects being linked to create a
11442 postdeps=$lt_postdeps_RC
11444 # The library search path used internally by the compiler when linking
11445 # a shared library.
11446 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11448 # Method to check whether dependent libraries are shared objects.
11449 deplibs_check_method=$lt_deplibs_check_method
11451 # Command to use when deplibs_check_method == file_magic.
11452 file_magic_cmd=$lt_file_magic_cmd
11454 # Flag that allows shared libraries with undefined symbols to be built.
11455 allow_undefined_flag=$lt_allow_undefined_flag_RC
11457 # Flag that forces no undefined symbols.
11458 no_undefined_flag=$lt_no_undefined_flag_RC
11460 # Commands used to finish a libtool library installation in a directory.
11461 finish_cmds=$lt_finish_cmds
11463 # Same as above, but a single script fragment to be evaled but not shown.
11464 finish_eval=$lt_finish_eval
11466 # Take the output of nm and produce a listing of raw symbols and C names.
11467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11469 # Transform the output of nm in a proper C declaration
11470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11472 # Transform the output of nm in a C name address pair
11473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11475 # This is the shared library runtime path variable.
11476 runpath_var=$runpath_var
11478 # This is the shared library path variable.
11479 shlibpath_var=$shlibpath_var
11481 # Is shlibpath searched before the hard-coded library search path?
11482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11484 # How to hardcode a shared library path into an executable.
11485 hardcode_action=$hardcode_action_RC
11487 # Whether we should hardcode library paths into libraries.
11488 hardcode_into_libs=$hardcode_into_libs
11490 # Flag to hardcode \$libdir into a binary during linking.
11491 # This must work even if \$libdir does not exist.
11492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11494 # If ld is used when linking, flag to hardcode \$libdir into
11495 # a binary during linking. This must work even if \$libdir does
11497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11499 # Whether we need a single -rpath flag with a separated argument.
11500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11502 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11503 # resulting binary.
11504 hardcode_direct=$hardcode_direct_RC
11506 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11507 # resulting binary.
11508 hardcode_minus_L=$hardcode_minus_L_RC
11510 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11511 # the resulting binary.
11512 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11514 # Set to yes if building a shared library automatically hardcodes DIR into the library
11515 # and all subsequent libraries and executables linked against it.
11516 hardcode_automatic=$hardcode_automatic_RC
11518 # Variables whose values should be saved in libtool wrapper scripts and
11519 # restored at relink time.
11520 variables_saved_for_relink="$variables_saved_for_relink"
11522 # Whether libtool must link a program against all its dependency libraries.
11523 link_all_deplibs=$link_all_deplibs_RC
11525 # Compile-time system search path for libraries
11526 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11528 # Run-time system search path for libraries
11529 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11531 # Fix the shell variable \$srcfile for the compiler.
11532 fix_srcfile_path="$fix_srcfile_path_RC"
11534 # Set to yes if exported symbols are required.
11535 always_export_symbols=$always_export_symbols_RC
11537 # The commands to list exported symbols.
11538 export_symbols_cmds=$lt_export_symbols_cmds_RC
11540 # The commands to extract the exported symbol list from a shared archive.
11541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11543 # Symbols that should not be listed in the preloaded symbols.
11544 exclude_expsyms=$lt_exclude_expsyms_RC
11546 # Symbols that must always be exported.
11547 include_expsyms=$lt_include_expsyms_RC
11549 # ### END LIBTOOL TAG CONFIG: $tagname
11555 # If there is no Makefile yet, we rely on a make rule to execute
11556 # `config.status --recheck' to rerun these tests and create the
11557 # libtool script then.
11558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11559 if test -f "$ltmain_in"; then
11560 test -f Makefile && make "$ltmain"
11566 ac_cpp='$CPP $CPPFLAGS'
11567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11576 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11577 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11578 { (exit 1); exit 1; }; }
11582 # Append the new tag name to the list of available tags.
11583 if test -n "$tagname" ; then
11584 available_tags="$available_tags $tagname"
11590 # Now substitute the updated list of available tags.
11591 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11592 mv "${ofile}T" "$ofile"
11596 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11597 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11598 { (exit 1); exit 1; }; }
11604 # This can be used to rebuild libtool when needed
11605 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11607 # Always use our own libtool.
11608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11610 # Prevent multiple expansion
11622 if test $ol_enable_perl != no ; then
11623 # Extract the first word of "perl", so it can be a program name with args.
11624 set dummy perl; ac_word=$2
11625 echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 if test "${ac_cv_path_PERLBIN+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11653 PERLBIN=$ac_cv_path_PERLBIN
11655 if test -n "$PERLBIN"; then
11656 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11657 echo "${ECHO_T}$PERLBIN" >&6
11659 echo "$as_me:$LINENO: result: no" >&5
11660 echo "${ECHO_T}no" >&6
11664 if test "no$PERLBIN" = "no" ; then
11665 if test $ol_enable_perl = yes ; then
11666 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11667 echo "$as_me: error: could not locate perl" >&2;}
11668 { (exit 1); exit 1; }; }
11672 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11673 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11675 if test x"$ol_enable_perl" = "xyes" ; then
11676 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11678 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11685 ac_cpp='$CPP $CPPFLAGS'
11686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11691 # On Suns, sometimes $CPP names a directory.
11692 if test -n "$CPP" && test -d "$CPP"; then
11695 if test -z "$CPP"; then
11696 if test "${ac_cv_prog_CPP+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 # Double quotes because CPP needs to be expanded
11700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11702 ac_preproc_ok=false
11703 for ac_c_preproc_warn_flag in '' yes
11705 # Use a header file that comes with gcc, so configuring glibc
11706 # with a fresh cross-compiler works.
11707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 # <limits.h> exists even on freestanding compilers.
11709 # On the NeXT, cc -E runs the code through the compiler's parser,
11710 # not just through cpp. "Syntax error" is here to catch this case.
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11718 # include <limits.h>
11720 # include <assert.h>
11724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } >/dev/null; then
11732 if test -s conftest.err; then
11733 ac_cpp_err=$ac_c_preproc_warn_flag
11734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 if test -z "$ac_cpp_err"; then
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 # Broken: fails on valid input.
11750 rm -f conftest.err conftest.$ac_ext
11752 # OK, works on sane cases. Now check whether non-existent headers
11753 # can be detected and how.
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 #include <ac_nonexistent.h>
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11779 if test -z "$ac_cpp_err"; then
11780 # Broken: success on invalid input.
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 # Passes both tests.
11790 rm -f conftest.err conftest.$ac_ext
11793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11794 rm -f conftest.err conftest.$ac_ext
11795 if $ac_preproc_ok; then
11800 ac_cv_prog_CPP=$CPP
11803 CPP=$ac_cv_prog_CPP
11805 ac_cv_prog_CPP=$CPP
11807 echo "$as_me:$LINENO: result: $CPP" >&5
11808 echo "${ECHO_T}$CPP" >&6
11809 ac_preproc_ok=false
11810 for ac_c_preproc_warn_flag in '' yes
11812 # Use a header file that comes with gcc, so configuring glibc
11813 # with a fresh cross-compiler works.
11814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 # <limits.h> exists even on freestanding compilers.
11816 # On the NeXT, cc -E runs the code through the compiler's parser,
11817 # not just through cpp. "Syntax error" is here to catch this case.
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11825 # include <limits.h>
11827 # include <assert.h>
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848 if test -z "$ac_cpp_err"; then
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 # Broken: fails on valid input.
11857 rm -f conftest.err conftest.$ac_ext
11859 # OK, works on sane cases. Now check whether non-existent headers
11860 # can be detected and how.
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <ac_nonexistent.h>
11869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11886 if test -z "$ac_cpp_err"; then
11887 # Broken: success on invalid input.
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 # Passes both tests.
11897 rm -f conftest.err conftest.$ac_ext
11900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11901 rm -f conftest.err conftest.$ac_ext
11902 if $ac_preproc_ok; then
11905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11908 See \`config.log' for more details." >&2;}
11909 { (exit 1); exit 1; }; }
11913 ac_cpp='$CPP $CPPFLAGS'
11914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920 *mingw32* ) ac_cv_mingw32=yes ;;
11921 *cygwin* ) ac_cv_cygwin=yes ;;
11927 cat >>confdefs.h <<_ACEOF
11928 #define EXEEXT "${EXEEXT}"
11932 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11933 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11934 if test "${ac_cv_lib_be_be_app+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lbe -lroot -lnet $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 /* Override any gcc2 internal prototype to avoid an error. */
11950 /* We use char because int might match the return type of a gcc2
11951 builtin and then its argument prototype would still apply. */
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>conftest.er1
11965 grep -v '^ *+' conftest.er1 >conftest.err
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag"
11971 || test ! -s conftest.err'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_be_be_app=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_be_be_app=no
11990 rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11995 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11996 if test $ac_cv_lib_be_be_app = yes; then
11997 LIBS="$LIBS -lbe -lroot -lnet"
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008 if test -n "$ac_tool_prefix"; then
12009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12011 echo "$as_me:$LINENO: checking for $ac_word" >&5
12012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12013 if test "${ac_cv_prog_CC+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 if test -n "$CC"; then
12017 ac_cv_prog_CC="$CC" # Let the user override the test.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 if test -n "$CC"; then
12037 echo "$as_me:$LINENO: result: $CC" >&5
12038 echo "${ECHO_T}$CC" >&6
12040 echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12045 if test -z "$ac_cv_prog_CC"; then
12047 # Extract the first word of "gcc", so it can be a program name with args.
12048 set dummy gcc; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 if test -n "$ac_ct_CC"; then
12055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_ac_ct_CC="gcc"
12065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12074 if test -n "$ac_ct_CC"; then
12075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12076 echo "${ECHO_T}$ac_ct_CC" >&6
12078 echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12084 CC="$ac_cv_prog_CC"
12087 if test -z "$CC"; then
12088 if test -n "$ac_tool_prefix"; then
12089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12090 set dummy ${ac_tool_prefix}cc; ac_word=$2
12091 echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093 if test "${ac_cv_prog_CC+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 if test -n "$CC"; then
12097 ac_cv_prog_CC="$CC" # Let the user override the test.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_CC="${ac_tool_prefix}cc"
12107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 if test -n "$CC"; then
12117 echo "$as_me:$LINENO: result: $CC" >&5
12118 echo "${ECHO_T}$CC" >&6
12120 echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12125 if test -z "$ac_cv_prog_CC"; then
12127 # Extract the first word of "cc", so it can be a program name with args.
12128 set dummy cc; ac_word=$2
12129 echo "$as_me:$LINENO: checking for $ac_word" >&5
12130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 if test -n "$ac_ct_CC"; then
12135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_ac_ct_CC="cc"
12145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12154 if test -n "$ac_ct_CC"; then
12155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12156 echo "${ECHO_T}$ac_ct_CC" >&6
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12164 CC="$ac_cv_prog_CC"
12168 if test -z "$CC"; then
12169 # Extract the first word of "cc", so it can be a program name with args.
12170 set dummy cc; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 if test -n "$CC"; then
12177 ac_cv_prog_CC="$CC" # Let the user override the test.
12179 ac_prog_rejected=no
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12188 ac_prog_rejected=yes
12192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 if test $ac_prog_rejected = yes; then
12199 # We found a bogon in the path, so make sure we never use it.
12200 set dummy $ac_cv_prog_CC
12202 if test $# != 0; then
12203 # We chose a different compiler from the bogus one.
12204 # However, it has the same basename, so the bogon will be chosen
12205 # first if we set CC to just the basename; use the full file name.
12207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12213 if test -n "$CC"; then
12214 echo "$as_me:$LINENO: result: $CC" >&5
12215 echo "${ECHO_T}$CC" >&6
12217 echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12222 if test -z "$CC"; then
12223 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_prog_CC+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test -n "$CC"; then
12234 ac_cv_prog_CC="$CC" # Let the user override the test.
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 if test -n "$CC"; then
12254 echo "$as_me:$LINENO: result: $CC" >&5
12255 echo "${ECHO_T}$CC" >&6
12257 echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12261 test -n "$CC" && break
12264 if test -z "$CC"; then
12268 # Extract the first word of "$ac_prog", so it can be a program name with args.
12269 set dummy $ac_prog; ac_word=$2
12270 echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 if test -n "$ac_ct_CC"; then
12276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_ac_ct_CC="$ac_prog"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12295 if test -n "$ac_ct_CC"; then
12296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12297 echo "${ECHO_T}$ac_ct_CC" >&6
12299 echo "$as_me:$LINENO: result: no" >&5
12300 echo "${ECHO_T}no" >&6
12303 test -n "$ac_ct_CC" && break
12312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12313 See \`config.log' for more details." >&5
12314 echo "$as_me: error: no acceptable C compiler found in \$PATH
12315 See \`config.log' for more details." >&2;}
12316 { (exit 1); exit 1; }; }
12318 # Provide some information about the compiler.
12319 echo "$as_me:$LINENO:" \
12320 "checking for C compiler version" >&5
12321 ac_compiler=`set X $ac_compile; echo $2`
12322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12323 (eval $ac_compiler --version </dev/null >&5) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }
12327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12328 (eval $ac_compiler -v </dev/null >&5) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }
12332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12333 (eval $ac_compiler -V </dev/null >&5) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }
12338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_compiler_gnu=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12396 GCC=`test $ac_compiler_gnu = yes && echo yes`
12397 ac_test_CFLAGS=${CFLAGS+set}
12398 ac_save_CFLAGS=$CFLAGS
12400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12402 if test "${ac_cv_prog_cc_g+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag"
12430 || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_prog_cc_g=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12453 if test "$ac_test_CFLAGS" = set; then
12454 CFLAGS=$ac_save_CFLAGS
12455 elif test $ac_cv_prog_cc_g = yes; then
12456 if test "$GCC" = yes; then
12462 if test "$GCC" = yes; then
12468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_cv_prog_cc_stdc=no
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 #include <stdarg.h>
12483 #include <sys/types.h>
12484 #include <sys/stat.h>
12485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12486 struct buf { int x; };
12487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12488 static char *e (p, i)
12494 static char *f (char * (*g) (char **, int), char **p, ...)
12499 s = g (p, va_arg (v,int));
12504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12505 function prototypes and stuff, but not '\xHH' hex character constants.
12506 These don't provoke an error unfortunately, instead are silently treated
12507 as 'x'. The following induces an error, until -std1 is added to get
12508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12509 array size at least. It's necessary to write '\x00'==0 to get something
12510 that's true only with -std1. */
12511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12513 int test (int i, double x);
12514 struct s1 {int (*f) (int a);};
12515 struct s2 {int (*f) (double a);};
12516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12522 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12527 # Don't try gcc -ansi; that turns off useful extensions and
12528 # breaks some systems' header files.
12529 # AIX -qlanglvl=ansi
12530 # Ultrix and OSF/1 -std1
12531 # HP-UX 10.20 and later -Ae
12532 # HP-UX older versions -Aa -D_HPUX_SOURCE
12533 # SVR4 -Xc -D__EXTENSIONS__
12534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12536 CC="$ac_save_CC $ac_arg"
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_prog_cc_stdc=$ac_arg
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12566 rm -f conftest.err conftest.$ac_objext
12568 rm -f conftest.$ac_ext conftest.$ac_objext
12573 case "x$ac_cv_prog_cc_stdc" in
12575 echo "$as_me:$LINENO: result: none needed" >&5
12576 echo "${ECHO_T}none needed" >&6 ;;
12578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12580 CC="$CC $ac_cv_prog_cc_stdc" ;;
12583 # Some people use a C++ compiler to compile C. Since we use `exit',
12584 # in C++ we need to declare it. In case someone uses the same compiler
12585 # for both compiling C and C++ we need to have the C++ compiler decide
12586 # the declaration of exit, since it's the most demanding environment.
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #ifndef __cplusplus
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 for ac_declaration in \
12616 'extern "C" void std::exit (int) throw (); using std::exit;' \
12617 'extern "C" void std::exit (int); using std::exit;' \
12618 'extern "C" void exit (int) throw ();' \
12619 'extern "C" void exit (int);' \
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 #include <stdlib.h>
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag"
12693 || test ! -s conftest.err'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714 if test -n "$ac_declaration"; then
12715 echo '#ifdef __cplusplus' >>confdefs.h
12716 echo $ac_declaration >>confdefs.h
12717 echo '#endif' >>confdefs.h
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732 depcc="$CC" am_compiler_list=
12734 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12740 # We make a subdir and do the tests there. Otherwise we can end up
12741 # making bogus files that we don't know about and never remove. For
12742 # instance it was reported that on HP-UX the gcc test will end up
12743 # making a dummy file named `D' -- because `-MD' means `put the output
12746 # Copy depcomp to subdir because otherwise we won't find it if we're
12747 # using a relative directory.
12748 cp "$am_depcomp" conftest.dir
12750 # We will build objects and dependencies in a subdirectory because
12751 # it helps to detect inapplicable dependency modes. For instance
12752 # both Tru64's cc and ICC support -MD to output dependencies as a
12753 # side effect of compilation, but ICC will put the dependencies in
12754 # the current directory while Tru64 will put them in the object
12758 am_cv_CC_dependencies_compiler_type=none
12759 if test "$am_compiler_list" = ""; then
12760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12762 for depmode in $am_compiler_list; do
12763 # Setup a source with many dependencies, because some compilers
12764 # like to wrap large dependency lists on column 80 (with \), and
12765 # we should not choose a depcomp mode which is confused by this.
12767 # We need to recreate these files for each test, as the compiler may
12768 # overwrite some of them when testing with obscure command lines.
12769 # This happens at least with the AIX C compiler.
12771 for i in 1 2 3 4 5 6; do
12772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12774 # Solaris 8's {/usr,}/bin/sh.
12775 touch sub/conftst$i.h
12777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12781 # after this tag, mechanisms are not by side-effect, so they'll
12782 # only be used when explicitly requested
12783 if test "x$enable_dependency_tracking" = xyes; then
12791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12792 # mode. It turns out that the SunPro C++ compiler does not properly
12793 # handle `-M -o', and we need to detect this.
12794 if depmode=$depmode \
12795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12798 >/dev/null 2>conftest.err &&
12799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12802 # icc doesn't choke on unknown options, it will just issue warnings
12803 # or remarks (even with -Werror). So we grep stderr for any message
12804 # that says an option was ignored or not supported.
12805 # When given -MP, icc 7.0 and 7.1 complain thusly:
12806 # icc: Command line warning: ignoring option '-M'; no argument required
12807 # The diagnosis changed in icc 8.0:
12808 # icc: Command line remark: option '-MP' not supported
12809 if (grep 'ignoring option' conftest.err ||
12810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12811 am_cv_CC_dependencies_compiler_type=$depmode
12818 rm -rf conftest.dir
12820 am_cv_CC_dependencies_compiler_type=none
12824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12831 test "x$enable_dependency_tracking" != xno \
12832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12833 am__fastdepCC_TRUE=
12834 am__fastdepCC_FALSE='#'
12836 am__fastdepCC_TRUE='#'
12837 am__fastdepCC_FALSE=
12841 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12842 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12843 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12844 { (exit 1); exit 1; }; }
12847 # test for make depend flag
12850 if test -z "${MKDEP}"; then
12851 OL_MKDEP="${CC-cc}"
12852 if test -z "${MKDEP_FLAGS}"; then
12853 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12854 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12855 if test "${ol_cv_mkdep+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 for flag in "-M" "-xM"; do
12861 cat > conftest.c <<EOF
12864 if { ac_try='$OL_MKDEP $flag conftest.c'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } \
12870 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12872 if test ! -f conftest."${ac_object}" ; then
12874 OL_MKDEP_FLAGS="$flag"
12882 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12883 echo "${ECHO_T}$ol_cv_mkdep" >&6
12886 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12890 OL_MKDEP="${MKDEP}"
12891 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12896 if test "${ol_cv_mkdep}" = no ; then
12897 # this will soon become an error
12898 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12899 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12902 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12903 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12904 if test "${ac_cv_lib_s_afopen+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 ac_check_lib_save_LIBS=$LIBS
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any gcc2 internal prototype to avoid an error. */
12920 /* We use char because int might match the return type of a gcc2
12921 builtin and then its argument prototype would still apply. */
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_lib_s_afopen=yes
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_cv_lib_s_afopen=no
12960 rm -f conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12962 LIBS=$ac_check_lib_save_LIBS
12964 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12965 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12966 if test $ac_cv_lib_s_afopen = yes; then
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_AIX_SECURITY 1
12980 ac_cv_func_getopt=no
12982 cat >>confdefs.h <<\_ACEOF
12983 #define BOTH_STRINGS_H 1
12990 WITH_MODULES_ENABLED=no
12991 if test $ol_enable_modules != no ; then
12993 for ac_header in ltdl.h
12995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo "$as_me:$LINENO: checking for $ac_header" >&5
12998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005 # Is the header compilable?
13006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 #include <$ac_header>
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest.$ac_objext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_header_compiler=yes
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_header_compiler=no
13046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13048 echo "${ECHO_T}$ac_header_compiler" >&6
13050 # Is the header present?
13051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059 #include <$ac_header>
13061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } >/dev/null; then
13069 if test -s conftest.err; then
13070 ac_cpp_err=$ac_c_preproc_warn_flag
13071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13078 if test -z "$ac_cpp_err"; then
13079 ac_header_preproc=yes
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_header_preproc=no
13086 rm -f conftest.err conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6
13090 # So? What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13097 ac_header_preproc=yes
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13114 ## --------------------------------------------- ##
13115 ## Report this to <http://www.openldap.org/its/> ##
13116 ## --------------------------------------------- ##
13119 sed "s/^/$as_me: WARNING: /" >&2
13122 echo "$as_me:$LINENO: checking for $ac_header" >&5
13123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 eval "$as_ac_Header=\$ac_header_preproc"
13129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13143 if test $ac_cv_header_ltdl_h = no ; then
13144 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13145 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13146 { (exit 1); exit 1; }; }
13149 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13150 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13151 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lltdl $LIBS"
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13163 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_ltdl_lt_dlinit=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_ltdl_lt_dlinit=no
13207 rm -f conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13212 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13213 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13215 MODULES_LIBS=-lltdl
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_LIBLTDL 1
13225 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13226 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13227 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13228 { (exit 1); exit 1; }; }
13230 ol_link_modules=yes
13231 WITH_MODULES_ENABLED=yes
13234 for i in $Backends; do
13235 eval "ol_tmp=\$ol_enable_$i"
13236 if test $ol_tmp = mod ; then
13237 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13238 echo "$as_me: WARNING: building static $i backend" >&2;}
13239 eval "ol_enable_$i=yes"
13242 for i in $Overlays; do
13243 eval "ol_tmp=\$ol_enable_$i"
13244 if test $ol_tmp = mod ; then
13245 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13246 echo "$as_me: WARNING: building static $i overlay" >&2;}
13247 eval "ol_enable_$i=yes"
13253 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13254 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13255 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13267 #include <__ASCII__/generate_error.h>
13271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } >/dev/null; then
13279 if test -s conftest.err; then
13280 ac_cpp_err=$ac_c_preproc_warn_flag
13281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13288 if test -z "$ac_cpp_err"; then
13289 ol_cv_cpp_ebcdic=yes
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ol_cv_cpp_ebcdic=no
13296 rm -f conftest.err conftest.$ac_ext
13298 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13299 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13300 if test $ol_cv_cpp_ebcdic = yes ; then
13302 cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_EBCDIC 1
13308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13310 if test "${ol_cv_header_stdc+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <stdlib.h>
13320 #include <stdarg.h>
13321 #include <string.h>
13324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } >/dev/null; then
13332 if test -s conftest.err; then
13333 ac_cpp_err=$ac_c_preproc_warn_flag
13334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13341 if test -z "$ac_cpp_err"; then
13342 ol_cv_header_stdc=yes
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ol_cv_header_stdc=no
13349 rm -f conftest.err conftest.$ac_ext
13351 if test $ol_cv_header_stdc = yes; then
13352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <string.h>
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "memchr" >/dev/null 2>&1; then
13366 ol_cv_header_stdc=no
13372 if test $ol_cv_header_stdc = yes; then
13373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <stdlib.h>
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 $EGREP "free" >/dev/null 2>&1; then
13387 ol_cv_header_stdc=no
13393 if test $ol_cv_header_stdc = yes; then
13394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13395 if test "$cross_compiling" = yes; then
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13405 #ifndef HAVE_EBCDIC
13406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13409 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13410 || ('j' <= (c) && (c) <= 'r') \
13411 || ('s' <= (c) && (c) <= 'z'))
13412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13415 int main () { int i; for (i = 0; i < 256; i++)
13416 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13420 rm -f conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13433 echo "$as_me: program exited with status $ac_status" >&5
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ( exit $ac_status )
13438 ol_cv_header_stdc=no
13440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13445 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13446 if test $ol_cv_header_stdc = yes; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define STDC_HEADERS 1
13452 ac_cv_header_stdc=disable
13455 if test $ol_cv_header_stdc != yes; then
13456 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13457 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13465 ac_header_dirent=no
13466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13467 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 eval "$as_ac_Header=yes"
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 eval "$as_ac_Header=no"
13520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13529 ac_header_dirent=$ac_hdr; break
13533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13534 if test $ac_header_dirent = dirent.h; then
13535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13537 if test "${ac_cv_search_opendir+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_func_search_save_LIBS=$LIBS
13541 ac_cv_search_opendir=no
13542 cat >conftest.$ac_ext <<_ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13549 /* Override any gcc2 internal prototype to avoid an error. */
13553 /* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566 (eval $ac_link) 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_search_opendir="none required"
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13592 rm -f conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 if test "$ac_cv_search_opendir" = no; then
13595 for ac_lib in dir; do
13596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag"
13629 || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_search_opendir="-l$ac_lib"
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_func_search_save_LIBS
13654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13656 if test "$ac_cv_search_opendir" != no; then
13657 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13664 if test "${ac_cv_search_opendir+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_func_search_save_LIBS=$LIBS
13668 ac_cv_search_opendir=no
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any gcc2 internal prototype to avoid an error. */
13680 /* We use char because int might match the return type of a gcc2
13681 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_c_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_search_opendir="none required"
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13719 rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 if test "$ac_cv_search_opendir" = no; then
13722 for ac_lib in x; do
13723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any gcc2 internal prototype to avoid an error. */
13735 /* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748 (eval $ac_link) 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag"
13756 || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_search_opendir="-l$ac_lib"
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13779 LIBS=$ac_func_search_save_LIBS
13781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13783 if test "$ac_cv_search_opendir" != no; then
13784 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13790 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13791 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13792 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 #include <sys/types.h>
13802 #include <sys/wait.h>
13803 #ifndef WEXITSTATUS
13804 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13807 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13815 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_header_sys_wait_h=yes
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_cv_header_sys_wait_h=no
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13851 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13852 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13853 if test $ac_cv_header_sys_wait_h = yes; then
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_SYS_WAIT_H 1
13861 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13862 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13863 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <termios.h>
13879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13880 $EGREP "yes" >/dev/null 2>&1; then
13881 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13883 ac_cv_sys_tiocgwinsz_in_termios_h=no
13888 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13889 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13891 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13892 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13893 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13894 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 #include <sys/types.h>
13904 #include <sys/ioctl.h>
13910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13911 $EGREP "yes" >/dev/null 2>&1; then
13912 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13914 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13919 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13920 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13922 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13924 cat >>confdefs.h <<\_ACEOF
13925 #define GWINSZ_IN_SYS_IOCTL 1
14027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14029 echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14037 # Is the header compilable?
14038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 #include <$ac_header>
14049 rm -f conftest.$ac_objext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051 (eval $ac_compile) 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag"
14059 || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_header_compiler=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_compiler=no
14078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080 echo "${ECHO_T}$ac_header_compiler" >&6
14082 # Is the header present?
14083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 #include <$ac_header>
14093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } >/dev/null; then
14101 if test -s conftest.err; then
14102 ac_cpp_err=$ac_c_preproc_warn_flag
14103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14110 if test -z "$ac_cpp_err"; then
14111 ac_header_preproc=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14118 rm -f conftest.err conftest.$ac_ext
14119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14120 echo "${ECHO_T}$ac_header_preproc" >&6
14122 # So? What about this header?
14123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14129 ac_header_preproc=yes
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14146 ## --------------------------------------------- ##
14147 ## Report this to <http://www.openldap.org/its/> ##
14148 ## --------------------------------------------- ##
14151 sed "s/^/$as_me: WARNING: /" >&2
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 eval "$as_ac_Header=\$ac_header_preproc"
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14176 for ac_header in resolv.h
14178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14179 echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 cat >conftest.$ac_ext <<_ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14191 #include <netinet/in.h>
14194 #include <$ac_header>
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest.$ac_objext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_Header=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_Header=no"
14225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14240 for ac_header in netinet/tcp.h
14242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14243 echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14255 #include <netinet/in.h>
14258 #include <$ac_header>
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 eval "$as_ac_Header=yes"
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 eval "$as_ac_Header=no"
14289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14304 for ac_header in sys/ucred.h
14306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 $ac_includes_default
14319 #ifdef HAVE_SYS_PARAM_H
14320 #include <sys/param.h>
14324 #include <$ac_header>
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 eval "$as_ac_Header=yes"
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 eval "$as_ac_Header=no"
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14360 cat >>confdefs.h <<_ACEOF
14361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14372 for ac_func in sigaction sigset
14374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14375 echo "$as_me:$LINENO: checking for $ac_func" >&5
14376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14377 if eval "test \"\${$as_ac_var+set}\" = set"; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14388 #define $ac_func innocuous_$ac_func
14390 /* System header to define __stub macros and hopefully few prototypes,
14391 which can conflict with char $ac_func (); below.
14392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14393 <limits.h> exists even on freestanding compilers. */
14396 # include <limits.h>
14398 # include <assert.h>
14403 /* Override any gcc2 internal prototype to avoid an error. */
14408 /* We use char because int might match the return type of a gcc2
14409 builtin and then its argument prototype would still apply. */
14411 /* The GNU C library defines this for functions which it implements
14412 to always fail with ENOSYS. Some functions are actually named
14413 something starting with __ and the normal name is an alias. */
14414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14417 char (*f) () = $ac_func;
14426 return f != $ac_func;
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433 (eval $ac_link) 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag"
14441 || test ! -s conftest.err'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest$ac_exeext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 eval "$as_ac_var=yes"
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 eval "$as_ac_var=no"
14460 rm -f conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14474 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14476 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14477 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14478 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 ac_check_lib_save_LIBS=$LIBS
14483 cat >conftest.$ac_ext <<_ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14490 /* Override any gcc2 internal prototype to avoid an error. */
14494 /* We use char because int might match the return type of a gcc2
14495 builtin and then its argument prototype would still apply. */
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14507 (eval $ac_link) 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 ac_cv_lib_V3_sigset=yes
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_cv_lib_V3_sigset=no
14534 rm -f conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14539 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14540 if test $ac_cv_lib_V3_sigset = yes; then
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_LIBV3 1
14551 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14552 echo "$as_me:$LINENO: checking for winsock" >&5
14553 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14554 if test "${ol_cv_winsock+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 for curlib in ws2_32 wsock32; do
14559 LIBS="$LIBS -l$curlib"
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <winsock.h>
14573 select(0,NULL,NULL,NULL,NULL);
14575 gethostname(NULL,0);
14581 rm -f conftest.$ac_objext conftest$ac_exeext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583 (eval $ac_link) 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest$ac_exeext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14610 rm -f conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14613 if test $ol_cv_winsock = yes; then
14615 cat >>confdefs.h <<\_ACEOF
14616 #define HAVE_WINSOCK 1
14619 ac_cv_func_socket=yes
14620 ac_cv_func_select=yes
14621 ac_cv_func_closesocket=yes
14622 ac_cv_func_gethostname=yes
14623 if test $curlib = ws2_32; then
14624 ol_cv_winsock=winsock2
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_WINSOCK2 1
14636 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14637 echo "${ECHO_T}$ol_cv_winsock" >&6
14641 echo "$as_me:$LINENO: checking for socket" >&5
14642 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14643 if test "${ac_cv_func_socket+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14654 #define socket innocuous_socket
14656 /* System header to define __stub macros and hopefully few prototypes,
14657 which can conflict with char socket (); below.
14658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14659 <limits.h> exists even on freestanding compilers. */
14662 # include <limits.h>
14664 # include <assert.h>
14669 /* Override any gcc2 internal prototype to avoid an error. */
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined (__stub_socket) || defined (__stub___socket)
14683 char (*f) () = socket;
14692 return f != socket;
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag"
14707 || test ! -s conftest.err'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_func_socket=yes
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_func_socket=no
14726 rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14730 echo "${ECHO_T}$ac_cv_func_socket" >&6
14731 if test $ac_cv_func_socket = yes; then
14736 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14737 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14738 if test "${ac_cv_lib_socket_main+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-lsocket $LIBS"
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761 (eval $ac_link) 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_lib_socket_main=yes
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_lib_socket_main=no
14788 rm -f conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14793 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14794 if test $ac_cv_lib_socket_main = yes; then
14795 cat >>confdefs.h <<_ACEOF
14796 #define HAVE_LIBSOCKET 1
14799 LIBS="-lsocket $LIBS"
14804 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14805 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14806 if test "${ac_cv_lib_net_main+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS=$LIBS
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>conftest.er1
14831 grep -v '^ *+' conftest.er1 >conftest.err
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag"
14837 || test ! -s conftest.err'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest$ac_exeext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_lib_net_main=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_net_main=no
14856 rm -f conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14861 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14862 if test $ac_cv_lib_net_main = yes; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_LIBNET 1
14872 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14873 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14874 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lnsl_s $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_nsl_s_main=yes
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ac_cv_lib_nsl_s_main=no
14924 rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14928 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14929 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14930 if test $ac_cv_lib_nsl_s_main = yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBNSL_S 1
14935 LIBS="-lnsl_s $LIBS"
14940 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14941 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14942 if test "${ac_cv_lib_nsl_main+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS=$LIBS
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_nsl_main=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_nsl_main=no
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14998 if test $ac_cv_lib_nsl_main = yes; then
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBNSL 1
15008 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15009 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_inet_socket+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-linet $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_inet_socket=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_inet_socket=no
15066 rm -f conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15071 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15072 if test $ac_cv_lib_inet_socket = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBINET 1
15077 LIBS="-linet $LIBS"
15082 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15083 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15084 if test "${ac_cv_lib_gen_main+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_check_lib_save_LIBS=$LIBS
15089 cat >conftest.$ac_ext <<_ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15107 (eval $ac_link) 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_lib_gen_main=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_gen_main=no
15134 rm -f conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15139 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15140 if test $ac_cv_lib_gen_main = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_LIBGEN 1
15153 echo "$as_me:$LINENO: checking for select" >&5
15154 echo $ECHO_N "checking for select... $ECHO_C" >&6
15155 if test "${ac_cv_func_select+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 /* Define select to an innocuous variant, in case <limits.h> declares select.
15165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15166 #define select innocuous_select
15168 /* System header to define __stub macros and hopefully few prototypes,
15169 which can conflict with char select (); below.
15170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15171 <limits.h> exists even on freestanding compilers. */
15174 # include <limits.h>
15176 # include <assert.h>
15181 /* Override any gcc2 internal prototype to avoid an error. */
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined (__stub_select) || defined (__stub___select)
15195 char (*f) () = select;
15204 return f != select;
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>conftest.er1
15213 grep -v '^ *+' conftest.er1 >conftest.err
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag"
15219 || test ! -s conftest.err'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_func_select=yes
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_cv_func_select=no
15238 rm -f conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15241 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15242 echo "${ECHO_T}$ac_cv_func_select" >&6
15243 if test $ac_cv_func_select = yes; then
15246 { { echo "$as_me:$LINENO: error: select() required." >&5
15247 echo "$as_me: error: select() required." >&2;}
15248 { (exit 1); exit 1; }; }
15252 if test "${ac_cv_header_winsock_h}" != yes; then
15255 for ac_header in sys/select.h sys/socket.h
15257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15267 # Is the header compilable?
15268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <$ac_header>
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_header_compiler=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_header_compiler=no
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15310 echo "${ECHO_T}$ac_header_compiler" >&6
15312 # Is the header present?
15313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 #include <$ac_header>
15323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } >/dev/null; then
15331 if test -s conftest.err; then
15332 ac_cpp_err=$ac_c_preproc_warn_flag
15333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 if test -z "$ac_cpp_err"; then
15341 ac_header_preproc=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_header_preproc=no
15348 rm -f conftest.err conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350 echo "${ECHO_T}$ac_header_preproc" >&6
15352 # So? What about this header?
15353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359 ac_header_preproc=yes
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15376 ## --------------------------------------------- ##
15377 ## Report this to <http://www.openldap.org/its/> ##
15378 ## --------------------------------------------- ##
15381 sed "s/^/$as_me: WARNING: /" >&2
15384 echo "$as_me:$LINENO: checking for $ac_header" >&5
15385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 eval "$as_ac_Header=\$ac_header_preproc"
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15405 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15406 if test "${ac_cv_func_select_args+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15410 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15411 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 #if HAVE_SYS_SELECT_H
15420 # include <sys/select.h>
15422 #if HAVE_SYS_SOCKET_H
15423 # include <sys/socket.h>
15429 extern int select ($ac_arg1,
15430 $ac_arg234, $ac_arg234, $ac_arg234,
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15468 # Provide a safe default value.
15469 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15472 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15473 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15474 ac_save_IFS=$IFS; IFS=','
15475 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15479 cat >>confdefs.h <<_ACEOF
15480 #define SELECT_TYPE_ARG1 $1
15484 cat >>confdefs.h <<_ACEOF
15485 #define SELECT_TYPE_ARG234 ($2)
15489 cat >>confdefs.h <<_ACEOF
15490 #define SELECT_TYPE_ARG5 ($3)
15499 for ac_func in poll
15501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15502 echo "$as_me:$LINENO: checking for $ac_func" >&5
15503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15504 if eval "test \"\${$as_ac_var+set}\" = set"; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15515 #define $ac_func innocuous_$ac_func
15517 /* System header to define __stub macros and hopefully few prototypes,
15518 which can conflict with char $ac_func (); below.
15519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520 <limits.h> exists even on freestanding compilers. */
15523 # include <limits.h>
15525 # include <assert.h>
15530 /* Override any gcc2 internal prototype to avoid an error. */
15535 /* We use char because int might match the return type of a gcc2
15536 builtin and then its argument prototype would still apply. */
15538 /* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 char (*f) () = $ac_func;
15553 return f != $ac_func;
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag"
15568 || test ! -s conftest.err'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 eval "$as_ac_var=yes"
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 eval "$as_ac_var=no"
15587 rm -f conftest.err conftest.$ac_objext \
15588 conftest$ac_exeext conftest.$ac_ext
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601 for ac_header in poll.h
15603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605 echo "$as_me:$LINENO: checking for $ac_header" >&5
15606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15613 # Is the header compilable?
15614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #include <$ac_header>
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627 (eval $ac_compile) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_header_compiler=no
15654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656 echo "${ECHO_T}$ac_header_compiler" >&6
15658 # Is the header present?
15659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <$ac_header>
15669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_header_preproc=no
15694 rm -f conftest.err conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696 echo "${ECHO_T}$ac_header_preproc" >&6
15698 # So? What about this header?
15699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15705 ac_header_preproc=yes
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ## --------------------------------------------- ##
15723 ## Report this to <http://www.openldap.org/its/> ##
15724 ## --------------------------------------------- ##
15727 sed "s/^/$as_me: WARNING: /" >&2
15730 echo "$as_me:$LINENO: checking for $ac_header" >&5
15731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 eval "$as_ac_Header=\$ac_header_preproc"
15737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15752 for ac_header in sys/epoll.h
15754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15756 echo "$as_me:$LINENO: checking for $ac_header" >&5
15757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15764 # Is the header compilable?
15765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15767 cat >conftest.$ac_ext <<_ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 $ac_includes_default
15774 #include <$ac_header>
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_header_compiler=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_compiler=no
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6
15809 # Is the header present?
15810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <$ac_header>
15820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } >/dev/null; then
15828 if test -s conftest.err; then
15829 ac_cpp_err=$ac_c_preproc_warn_flag
15830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 if test -z "$ac_cpp_err"; then
15838 ac_header_preproc=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_preproc=no
15845 rm -f conftest.err conftest.$ac_ext
15846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15847 echo "${ECHO_T}$ac_header_preproc" >&6
15849 # So? What about this header?
15850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15856 ac_header_preproc=yes
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15873 ## --------------------------------------------- ##
15874 ## Report this to <http://www.openldap.org/its/> ##
15875 ## --------------------------------------------- ##
15878 sed "s/^/$as_me: WARNING: /" >&2
15881 echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 eval "$as_ac_Header=\$ac_header_preproc"
15888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15902 echo "$as_me:$LINENO: checking for epoll system call" >&5
15903 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15904 if test "$cross_compiling" = yes; then
15905 echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 int main(int argc, char *argv)
15916 int epfd = epoll_create(256);
15917 exit (epfd == -1 ? 1 : 0);
15920 rm -f conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15934 cat >>confdefs.h <<\_ACEOF
15935 #define HAVE_EPOLL 1
15939 echo "$as_me: program exited with status $ac_status" >&5
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ( exit $ac_status )
15944 echo "$as_me:$LINENO: result: no" >&5
15945 echo "${ECHO_T}no" >&6
15947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15953 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15954 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15966 #include <sys/types.h>
15969 #include <stdlib.h>
15974 char *c = (char *) *sys_errlist
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ol_cv_dcl_sys_errlist=yes
16002 ol_cv_have_sys_errlist=yes
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ol_cv_dcl_sys_errlist=no
16009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16012 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16014 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16015 if test $ol_cv_dcl_sys_errlist = no ; then
16017 cat >>confdefs.h <<\_ACEOF
16018 #define DECL_SYS_ERRLIST 1
16022 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16023 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16024 if test "${ol_cv_have_sys_errlist+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16038 char *c = (char *) *sys_errlist
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ol_cv_have_sys_errlist=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ol_cv_have_sys_errlist=no
16072 rm -f conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16076 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16078 if test $ol_cv_have_sys_errlist = yes ; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_SYS_ERRLIST 1
16087 for ac_func in strerror strerror_r
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16092 if eval "test \"\${$as_ac_var+set}\" = set"; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16111 # include <limits.h>
16113 # include <assert.h>
16118 /* Override any gcc2 internal prototype to avoid an error. */
16123 /* We use char because int might match the return type of a gcc2
16124 builtin and then its argument prototype would still apply. */
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132 char (*f) () = $ac_func;
16141 return f != $ac_func;
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1 >conftest.err
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 eval "$as_ac_var=yes"
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 eval "$as_ac_var=no"
16175 rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16180 if test `eval echo '${'$as_ac_var'}'` = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16188 ol_cv_func_strerror_r=no
16189 if test "${ac_cv_func_strerror_r}" = yes ; then
16190 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16191 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16192 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <string.h>
16204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16205 $EGREP "strerror_r" >/dev/null 2>&1; then
16206 ol_decl_strerror_r=yes
16208 ol_decl_strerror_r=no
16212 if test $ol_decl_strerror_r = yes ; then
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <string.h>
16223 /* from autoconf 2.59 */
16225 char x = *strerror_r (0, buf, sizeof buf);
16226 char *p = strerror_r (0, buf, sizeof buf);
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ol_cv_nonposix_strerror_r=yes
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ol_cv_nonposix_strerror_r=no
16261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263 if test "$cross_compiling" = yes; then
16264 ol_cv_nonposix_strerror=no
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16276 strerror_r( 1, buf, sizeof buf );
16277 exit( buf[0] == 0 );
16281 rm -f conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ol_cv_nonposix_strerror_r=yes
16294 echo "$as_me: program exited with status $ac_status" >&5
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ( exit $ac_status )
16299 ol_cv_nonposix_strerror=no
16301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16307 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16308 if test $ol_cv_nonposix_strerror_r = yes ; then
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_NONPOSIX_STRERROR_R 1
16316 elif test "${ac_cv_func_strerror}" = no ; then
16317 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16318 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16319 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 cat >conftest.$ac_ext <<_ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16331 #include <sys/types.h>
16334 #include <stdlib.h>
16339 char *c = (char *) *sys_errlist
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ol_cv_dcl_sys_errlist=yes
16367 ol_cv_have_sys_errlist=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ol_cv_dcl_sys_errlist=no
16374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16377 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16379 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16380 if test $ol_cv_dcl_sys_errlist = no ; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define DECL_SYS_ERRLIST 1
16387 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16388 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16389 if test "${ol_cv_have_sys_errlist+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16403 char *c = (char *) *sys_errlist
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410 (eval $ac_link) 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ol_cv_have_sys_errlist=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ol_cv_have_sys_errlist=no
16437 rm -f conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16440 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16441 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16443 if test $ol_cv_have_sys_errlist = yes ; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_SYS_ERRLIST 1
16455 for ac_header in regex.h
16457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16459 echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16467 # Is the header compilable?
16468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 $ac_includes_default
16477 #include <$ac_header>
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_header_compiler=yes
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_header_compiler=no
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510 echo "${ECHO_T}$ac_header_compiler" >&6
16512 # Is the header present?
16513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 #include <$ac_header>
16523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
16532 ac_cpp_err=$ac_c_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16540 if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_header_preproc=no
16548 rm -f conftest.err conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550 echo "${ECHO_T}$ac_header_preproc" >&6
16552 # So? What about this header?
16553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16559 ac_header_preproc=yes
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16576 ## --------------------------------------------- ##
16577 ## Report this to <http://www.openldap.org/its/> ##
16578 ## --------------------------------------------- ##
16581 sed "s/^/$as_me: WARNING: /" >&2
16584 echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 eval "$as_ac_Header=\$ac_header_preproc"
16591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16604 if test "$ac_cv_header_regex_h" != yes ; then
16605 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16606 echo "$as_me: error: POSIX regex.h required." >&2;}
16607 { (exit 1); exit 1; }; }
16609 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16610 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16611 if test "${ac_cv_search_regfree+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 ac_func_search_save_LIBS=$LIBS
16615 ac_cv_search_regfree=no
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16623 /* Override any gcc2 internal prototype to avoid an error. */
16627 /* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_search_regfree="none required"
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16666 rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 if test "$ac_cv_search_regfree" = no; then
16669 for ac_lib in regex gnuregex; do
16670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 /* Override any gcc2 internal prototype to avoid an error. */
16682 /* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695 (eval $ac_link) 2>conftest.er1
16697 grep -v '^ *+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -z "$ac_c_werror_flag"
16703 || test ! -s conftest.err'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest$ac_exeext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_search_regfree="-l$ac_lib"
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16722 rm -f conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16726 LIBS=$ac_func_search_save_LIBS
16728 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16729 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16730 if test "$ac_cv_search_regfree" != no; then
16731 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16734 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16735 echo "$as_me: error: POSIX regex required." >&2;}
16736 { (exit 1); exit 1; }; }
16741 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16742 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16743 if test "${ol_cv_c_posix_regex+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 if test "$cross_compiling" = yes; then
16748 ol_cv_c_posix_regex=cross
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16757 #include <sys/types.h>
16759 static char *pattern, *string;
16767 if(regcomp(&re, pattern, 0)) {
16771 string = "ALL MATCH";
16773 rc = regexec(&re, string, 0, (void*)0, 0);
16780 rm -f conftest$ac_exeext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782 (eval $ac_link) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ol_cv_c_posix_regex=yes
16793 echo "$as_me: program exited with status $ac_status" >&5
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ( exit $ac_status )
16798 ol_cv_c_posix_regex=no
16800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16803 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16804 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16806 if test "$ol_cv_c_posix_regex" = no ; then
16807 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16808 echo "$as_me: error: broken POSIX regex!" >&2;}
16809 { (exit 1); exit 1; }; }
16815 for ac_header in sys/uuid.h
16817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819 echo "$as_me:$LINENO: checking for $ac_header" >&5
16820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827 # Is the header compilable?
16828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16830 cat >conftest.$ac_ext <<_ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 $ac_includes_default
16837 #include <$ac_header>
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag"
16849 || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_header_compiler=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_header_compiler=no
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870 echo "${ECHO_T}$ac_header_compiler" >&6
16872 # Is the header present?
16873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 #include <$ac_header>
16883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16886 grep -v '^ *+' conftest.er1 >conftest.err
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } >/dev/null; then
16891 if test -s conftest.err; then
16892 ac_cpp_err=$ac_c_preproc_warn_flag
16893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16900 if test -z "$ac_cpp_err"; then
16901 ac_header_preproc=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_header_preproc=no
16908 rm -f conftest.err conftest.$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16910 echo "${ECHO_T}$ac_header_preproc" >&6
16912 # So? What about this header?
16913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16919 ac_header_preproc=yes
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16936 ## --------------------------------------------- ##
16937 ## Report this to <http://www.openldap.org/its/> ##
16938 ## --------------------------------------------- ##
16941 sed "s/^/$as_me: WARNING: /" >&2
16944 echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 eval "$as_ac_Header=\$ac_header_preproc"
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956 cat >>confdefs.h <<_ACEOF
16957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16964 if test $ac_cv_header_sys_uuid_h = yes ; then
16966 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 ac_func_search_save_LIBS=$LIBS
16972 ac_cv_search_uuid_to_str=no
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16980 /* Override any gcc2 internal prototype to avoid an error. */
16984 /* We use char because int might match the return type of a gcc2
16985 builtin and then its argument prototype would still apply. */
16986 char uuid_to_str ();
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag"
17005 || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_search_uuid_to_str="none required"
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17023 rm -f conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025 if test "$ac_cv_search_uuid_to_str" = no; then
17026 for ac_lib in uuid; do
17027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17035 /* Override any gcc2 internal prototype to avoid an error. */
17039 /* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041 char uuid_to_str ();
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_search_uuid_to_str="-l$ac_lib"
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17079 rm -f conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_func_search_save_LIBS
17085 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17086 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17087 if test "$ac_cv_search_uuid_to_str" != no; then
17088 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17096 if test have_uuid = yes ; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_UUID_TO_STR 1
17103 test "$ac_cv_search_uuid_to_str" = "none required" || \
17104 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17108 if test $have_uuid = no ; then
17109 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17110 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17112 LIBS="$LIBS -lrpcrt4"
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 int __stdcall UuidCreate(void *);
17121 int __stdcall UuidToStringA(void *,void **);
17128 UuidToStringA(0,0);
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag"
17144 || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17163 rm -f conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17165 if test $need_rpcrt = yes; then
17166 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17169 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17170 echo "${ECHO_T}$need_rpcrt" >&6
17173 ol_cv_lib_resolver=no
17174 if test $ol_cv_lib_resolver = no ; then
17175 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17176 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17177 if test "${ol_cv_resolver_none+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 LIBS="$ol_RESOLVER_LIB $LIBS"
17185 cat >conftest.$ac_ext <<_ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 #ifdef HAVE_SYS_TYPES_H
17193 # include <sys/types.h>
17195 #include <netinet/in.h>
17196 #ifdef HAVE_ARPA_NAMESER_H
17197 # include <arpa/nameser.h>
17199 #ifdef HAVE_RESOLV_H
17200 # include <resolv.h>
17208 char *request = NULL;
17209 unsigned char reply[64*1024];
17210 unsigned char host[64*1024];
17214 /* Bind 8/9 interface */
17215 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17217 /* Bind 4 interface */
17221 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17225 /* Bind 8/9 interface */
17227 #elif defined(HFIXEDSZ)
17228 /* Bind 4 interface w/ HFIXEDSZ */
17231 /* Bind 4 interface w/o HFIXEDSZ */
17232 p += sizeof(HEADER);
17234 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag"
17250 || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ol_cv_resolver_none=yes
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ol_cv_resolver_none=no
17269 rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17275 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17276 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17278 if test $ol_cv_resolver_none = yes ; then
17279 ol_cv_lib_resolver=yes
17283 if test $ol_cv_lib_resolver = no ; then
17284 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17285 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17286 if test "${ol_cv_resolver_resolv+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 ol_RESOLVER_LIB=-lresolv
17292 LIBS="$ol_RESOLVER_LIB $LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 #ifdef HAVE_SYS_TYPES_H
17302 # include <sys/types.h>
17304 #include <netinet/in.h>
17305 #ifdef HAVE_ARPA_NAMESER_H
17306 # include <arpa/nameser.h>
17308 #ifdef HAVE_RESOLV_H
17309 # include <resolv.h>
17317 char *request = NULL;
17318 unsigned char reply[64*1024];
17319 unsigned char host[64*1024];
17323 /* Bind 8/9 interface */
17324 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17326 /* Bind 4 interface */
17330 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17334 /* Bind 8/9 interface */
17336 #elif defined(HFIXEDSZ)
17337 /* Bind 4 interface w/ HFIXEDSZ */
17340 /* Bind 4 interface w/o HFIXEDSZ */
17341 p += sizeof(HEADER);
17343 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351 (eval $ac_link) 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag"
17359 || test ! -s conftest.err'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ol_cv_resolver_resolv=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ol_cv_resolver_resolv=no
17378 rm -f conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17384 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17385 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17387 if test $ol_cv_resolver_resolv = yes ; then
17388 ol_cv_lib_resolver=-lresolv
17392 if test $ol_cv_lib_resolver = no ; then
17393 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17394 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17395 if test "${ol_cv_resolver_bind+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 ol_RESOLVER_LIB=-lbind
17401 LIBS="$ol_RESOLVER_LIB $LIBS"
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 #ifdef HAVE_SYS_TYPES_H
17411 # include <sys/types.h>
17413 #include <netinet/in.h>
17414 #ifdef HAVE_ARPA_NAMESER_H
17415 # include <arpa/nameser.h>
17417 #ifdef HAVE_RESOLV_H
17418 # include <resolv.h>
17426 char *request = NULL;
17427 unsigned char reply[64*1024];
17428 unsigned char host[64*1024];
17432 /* Bind 8/9 interface */
17433 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17435 /* Bind 4 interface */
17439 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17443 /* Bind 8/9 interface */
17445 #elif defined(HFIXEDSZ)
17446 /* Bind 4 interface w/ HFIXEDSZ */
17449 /* Bind 4 interface w/o HFIXEDSZ */
17450 p += sizeof(HEADER);
17452 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ol_cv_resolver_bind=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ol_cv_resolver_bind=no
17487 rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17493 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17494 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17496 if test $ol_cv_resolver_bind = yes ; then
17497 ol_cv_lib_resolver=-lbind
17504 if test "$ol_cv_lib_resolver" != no ; then
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_RES_QUERY 1
17511 if test "$ol_enable_dnssrv" != no ; then
17515 if test "$ol_cv_lib_resolver" != yes ; then
17516 LIBS="$ol_cv_lib_resolver $LIBS"
17520 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17521 if test "$ol_link_dnssrv" = no ; then
17522 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17523 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17524 { (exit 1); exit 1; }; }
17527 ol_enable_dnssrv=no
17531 for ac_func in hstrerror
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17536 if eval "test \"\${$as_ac_var+set}\" = set"; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547 #define $ac_func innocuous_$ac_func
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17555 # include <limits.h>
17557 # include <assert.h>
17562 /* Override any gcc2 internal prototype to avoid an error. */
17567 /* We use char because int might match the return type of a gcc2
17568 builtin and then its argument prototype would still apply. */
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17576 char (*f) () = $ac_func;
17585 return f != $ac_func;
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>conftest.er1
17594 grep -v '^ *+' conftest.er1 >conftest.err
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17619 rm -f conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17640 echo "$as_me:$LINENO: checking for $ac_func" >&5
17641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17642 if eval "test \"\${$as_ac_var+set}\" = set"; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 cat >conftest.$ac_ext <<_ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653 #define $ac_func innocuous_$ac_func
17655 /* System header to define __stub macros and hopefully few prototypes,
17656 which can conflict with char $ac_func (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
17661 # include <limits.h>
17663 # include <assert.h>
17668 /* Override any gcc2 internal prototype to avoid an error. */
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17682 char (*f) () = $ac_func;
17691 return f != $ac_func;
17696 rm -f conftest.$ac_objext conftest$ac_exeext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698 (eval $ac_link) 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 eval "$as_ac_var=yes"
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 eval "$as_ac_var=no"
17725 rm -f conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17730 if test `eval echo '${'$as_ac_var'}'` = yes; then
17731 cat >>confdefs.h <<_ACEOF
17732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17741 if test $ol_enable_ipv6 = yes ; then
17742 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17743 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17744 { (exit 1); exit 1; }; }
17746 elif test $ol_enable_ipv6 != no ; then
17747 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17748 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17749 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17760 # include <netinet/in.h>
17761 # ifdef INET6_ADDRSTRLEN
17762 __has_inet6_addrstrlen__;
17766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17767 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17768 ol_cv_inet6_addrstrlen=yes
17770 ol_cv_inet6_addrstrlen=no
17775 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17776 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17779 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17780 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17781 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17792 #include <sys/types.h>
17793 #include <sys/socket.h>
17799 struct sockaddr_storage ss;
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ol_cv_struct_sockaddr_storage=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ol_cv_struct_sockaddr_storage=no
17834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17837 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17839 if test $ol_cv_inet6_addrstrlen = yes &&
17840 test $ol_cv_struct_sockaddr_storage = yes ; then
17842 elif test $ol_enable_ipv6 = yes &&
17843 test $ol_cv_inet6_addrstrlen = no ; then
17844 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17845 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17846 { (exit 1); exit 1; }; }
17847 elif test $ol_enable_ipv6 = yes &&
17848 test $ol_cv_struct_sockaddr_storage = no ; then
17849 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17850 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17851 { (exit 1); exit 1; }; }
17855 if test $ol_enable_local != no ; then
17857 for ac_header in sys/un.h
17859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17861 echo "$as_me:$LINENO: checking for $ac_header" >&5
17862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17869 # Is the header compilable?
17870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 #include <$ac_header>
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag"
17891 || test ! -s conftest.err'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 ac_header_compiler=yes
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ac_header_compiler=no
17910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6
17914 # Is the header present?
17915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <$ac_header>
17925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } >/dev/null; then
17933 if test -s conftest.err; then
17934 ac_cpp_err=$ac_c_preproc_warn_flag
17935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17942 if test -z "$ac_cpp_err"; then
17943 ac_header_preproc=yes
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ac_header_preproc=no
17950 rm -f conftest.err conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17952 echo "${ECHO_T}$ac_header_preproc" >&6
17954 # So? What about this header?
17955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17961 ac_header_preproc=yes
17964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17978 ## --------------------------------------------- ##
17979 ## Report this to <http://www.openldap.org/its/> ##
17980 ## --------------------------------------------- ##
17983 sed "s/^/$as_me: WARNING: /" >&2
17986 echo "$as_me:$LINENO: checking for $ac_header" >&5
17987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 eval "$as_ac_Header=\$ac_header_preproc"
17993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18007 if test $ol_enable_local = auto ; then
18008 ol_enable_local=$ac_cv_header_sys_un_h
18009 elif test $ac_cv_header_sys_un_h = no ; then
18010 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18011 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18012 { (exit 1); exit 1; }; }
18020 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18023 for ac_header in krb5.h
18025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo "$as_me:$LINENO: checking for $ac_header" >&5
18028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18035 # Is the header compilable?
18036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 $ac_includes_default
18045 #include <$ac_header>
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_header_compiler=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_header_compiler=no
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <$ac_header>
18091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } >/dev/null; then
18099 if test -s conftest.err; then
18100 ac_cpp_err=$ac_c_preproc_warn_flag
18101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18108 if test -z "$ac_cpp_err"; then
18109 ac_header_preproc=yes
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_header_preproc=no
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18120 # So? What about this header?
18121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127 ac_header_preproc=yes
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18144 ## --------------------------------------------- ##
18145 ## Report this to <http://www.openldap.org/its/> ##
18146 ## --------------------------------------------- ##
18149 sed "s/^/$as_me: WARNING: /" >&2
18152 echo "$as_me:$LINENO: checking for $ac_header" >&5
18153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 eval "$as_ac_Header=\$ac_header_preproc"
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18173 if test $ac_cv_header_krb5_h = yes ; then
18175 for ac_header in heim_err.h
18177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18179 echo "$as_me:$LINENO: checking for $ac_header" >&5
18180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18187 # Is the header compilable?
18188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 $ac_includes_default
18197 #include <$ac_header>
18199 rm -f conftest.$ac_objext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_header_compiler=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_header_compiler=no
18228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18230 echo "${ECHO_T}$ac_header_compiler" >&6
18232 # Is the header present?
18233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 #include <$ac_header>
18243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } >/dev/null; then
18251 if test -s conftest.err; then
18252 ac_cpp_err=$ac_c_preproc_warn_flag
18253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18260 if test -z "$ac_cpp_err"; then
18261 ac_header_preproc=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 ac_header_preproc=no
18268 rm -f conftest.err conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6
18272 # So? What about this header?
18273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18279 ac_header_preproc=yes
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18296 ## --------------------------------------------- ##
18297 ## Report this to <http://www.openldap.org/its/> ##
18298 ## --------------------------------------------- ##
18301 sed "s/^/$as_me: WARNING: /" >&2
18304 echo "$as_me:$LINENO: checking for $ac_header" >&5
18305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 eval "$as_ac_Header=\$ac_header_preproc"
18311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18316 cat >>confdefs.h <<_ACEOF
18317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18324 if test $ac_cv_header_heim_err_h = yes ; then
18330 if test $krb5_impl = mit; then
18331 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18332 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18333 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lk5crypto $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_k5crypto_main=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_k5crypto_main=no
18383 rm -f conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18388 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18389 if test $ac_cv_lib_k5crypto_main = yes; then
18390 krb5crypto=k5crypto
18396 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18397 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18398 if test "${ac_cv_lib_krb5_main+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_cv_lib_krb5_main=yes
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_cv_lib_krb5_main=no
18448 rm -f conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18453 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18454 if test $ac_cv_lib_krb5_main = yes; then
18456 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18462 elif test $krb5_impl = heimdal; then
18463 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18464 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18465 if test "${ac_cv_lib_des_main+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 ac_check_lib_save_LIBS=$LIBS
18470 cat >conftest.$ac_ext <<_ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488 (eval $ac_link) 2>conftest.er1
18490 grep -v '^ *+' conftest.er1 >conftest.err
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try='test -z "$ac_c_werror_flag"
18496 || test ! -s conftest.err'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest$ac_exeext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 ac_cv_lib_des_main=yes
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ac_cv_lib_des_main=no
18515 rm -f conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18519 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18520 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18521 if test $ac_cv_lib_des_main = yes; then
18528 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18529 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18530 if test "${ac_cv_lib_krb5_main+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
18560 { ac_try='test -z "$ac_c_werror_flag"
18561 || test ! -s conftest.err'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_lib_krb5_main=yes
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_cv_lib_krb5_main=no
18580 rm -f conftest.err conftest.$ac_objext \
18581 conftest$ac_exeext conftest.$ac_ext
18582 LIBS=$ac_check_lib_save_LIBS
18584 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18585 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18586 if test $ac_cv_lib_krb5_main = yes; then
18588 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_HEIMDAL_KERBEROS 1
18602 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18603 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18606 if test $have_krb5 = yes ; then
18610 cat >>confdefs.h <<\_ACEOF
18611 #define HAVE_KRB5 1
18615 if test $ol_with_kerberos = k5only ; then
18616 ol_with_kerberos=found
18619 elif test $ol_with_kerberos != auto ; then
18620 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18621 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18622 { (exit 1); exit 1; }; }
18629 if test $ol_link_krb5 = yes &&
18630 { test $ol_with_kerberos = yes ||
18631 test $ol_with_kerberos = auto ||
18632 test $ol_with_kerberos = k425; }; then
18636 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18640 echo "$as_me:$LINENO: checking for $ac_header" >&5
18641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18648 # Is the header compilable?
18649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <$ac_header>
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag"
18670 || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_header_compiler=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_header_compiler=no
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18691 echo "${ECHO_T}$ac_header_compiler" >&6
18693 # Is the header present?
18694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <$ac_header>
18704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } >/dev/null; then
18712 if test -s conftest.err; then
18713 ac_cpp_err=$ac_c_preproc_warn_flag
18714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18721 if test -z "$ac_cpp_err"; then
18722 ac_header_preproc=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_header_preproc=no
18729 rm -f conftest.err conftest.$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18731 echo "${ECHO_T}$ac_header_preproc" >&6
18733 # So? What about this header?
18734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18740 ac_header_preproc=yes
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18757 ## --------------------------------------------- ##
18758 ## Report this to <http://www.openldap.org/its/> ##
18759 ## --------------------------------------------- ##
18762 sed "s/^/$as_me: WARNING: /" >&2
18765 echo "$as_me:$LINENO: checking for $ac_header" >&5
18766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 eval "$as_ac_Header=\$ac_header_preproc"
18772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777 cat >>confdefs.h <<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18786 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18787 if test $krb5_impl = mit; then
18788 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18789 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18790 if test "${ac_cv_lib_krb4_main+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_lib_krb4_main=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_cv_lib_krb4_main=no
18840 rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 LIBS=$ac_check_lib_save_LIBS
18844 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18845 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18846 if test $ac_cv_lib_krb4_main = yes; then
18848 KRB4_LIBS="-lkrb4 -ldes425"
18854 elif test $krb5_impl = heimdal; then
18855 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18856 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18857 if test "${ac_cv_lib_krb4_main+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag"
18888 || test ! -s conftest.err'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_cv_lib_krb4_main=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_lib_krb4_main=no
18907 rm -f conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18911 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18912 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18913 if test $ac_cv_lib_krb4_main = yes; then
18923 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18924 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18927 if test $have_k425 = yes ; then
18928 ol_with_kerberos=found
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_KRB425 1
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_KRB4 1
18942 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18943 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18944 if test "${ol_cv_var_des_debug+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18957 #include <kerberosIV/krb.h>
18958 #include <kerberosIV/des.h>
18959 extern int des_debug;
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ol_cv_var_des_debug=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ol_cv_var_des_debug=no
19000 rm -f conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19006 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19008 if test $ol_cv_var_des_debug = yes ; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_DES_DEBUG 1
19021 if test $ol_link_krb5 = yes ; then
19022 ol_with_kerberos=found
19025 case $ol_with_kerberos in yes | auto | k4 | kth)
19030 for ac_header in krb.h des.h krb-archaeology.h
19032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19034 echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19042 # Is the header compilable?
19043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 $ac_includes_default
19052 #include <$ac_header>
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_header_compiler=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_header_compiler=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19085 echo "${ECHO_T}$ac_header_compiler" >&6
19087 # Is the header present?
19088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <$ac_header>
19098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } >/dev/null; then
19106 if test -s conftest.err; then
19107 ac_cpp_err=$ac_c_preproc_warn_flag
19108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19115 if test -z "$ac_cpp_err"; then
19116 ac_header_preproc=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_header_preproc=no
19123 rm -f conftest.err conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19125 echo "${ECHO_T}$ac_header_preproc" >&6
19127 # So? What about this header?
19128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19134 ac_header_preproc=yes
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19151 ## --------------------------------------------- ##
19152 ## Report this to <http://www.openldap.org/its/> ##
19153 ## --------------------------------------------- ##
19156 sed "s/^/$as_me: WARNING: /" >&2
19159 echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 eval "$as_ac_Header=\$ac_header_preproc"
19166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19180 if test $ac_cv_header_krb_h = yes ; then
19181 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19182 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19183 if test "${ac_cv_lib_krb_main+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_check_lib_save_LIBS=$LIBS
19187 LIBS="-lkrb -ldes $LIBS"
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206 (eval $ac_link) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_lib_krb_main=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_lib_krb_main=no
19233 rm -f conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19238 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19239 if test $ac_cv_lib_krb_main = yes; then
19246 if test $have_k4 = yes ; then
19247 ol_with_kerberos=found
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_KRB4 1
19256 KRB4_LIBS="-lkrb -ldes"
19258 if test $ac_cv_header_krb_archaeology_h = yes ; then
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_KTH_KERBEROS 1
19270 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19273 elif test $ol_enable_kbind = yes ; then
19274 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19275 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19276 { (exit 1); exit 1; }; }
19279 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_KERBEROS 1
19286 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19287 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19288 echo "$as_me: error: Kerberos detection failed" >&2;}
19289 { (exit 1); exit 1; }; }
19294 if test $ol_with_tls != no ; then
19296 for ac_header in openssl/ssl.h
19298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19300 echo "$as_me:$LINENO: checking for $ac_header" >&5
19301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308 # Is the header compilable?
19309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 $ac_includes_default
19318 #include <$ac_header>
19320 rm -f conftest.$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_header_compiler=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_header_compiler=no
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19351 echo "${ECHO_T}$ac_header_compiler" >&6
19353 # Is the header present?
19354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <$ac_header>
19364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } >/dev/null; then
19372 if test -s conftest.err; then
19373 ac_cpp_err=$ac_c_preproc_warn_flag
19374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19381 if test -z "$ac_cpp_err"; then
19382 ac_header_preproc=yes
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_header_preproc=no
19389 rm -f conftest.err conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19391 echo "${ECHO_T}$ac_header_preproc" >&6
19393 # So? What about this header?
19394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19400 ac_header_preproc=yes
19403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19417 ## --------------------------------------------- ##
19418 ## Report this to <http://www.openldap.org/its/> ##
19419 ## --------------------------------------------- ##
19422 sed "s/^/$as_me: WARNING: /" >&2
19425 echo "$as_me:$LINENO: checking for $ac_header" >&5
19426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 eval "$as_ac_Header=\$ac_header_preproc"
19432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19446 if test $ac_cv_header_openssl_ssl_h = yes ; then
19447 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19448 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19449 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 ac_check_lib_save_LIBS=$LIBS
19453 LIBS="-lssl -lcrypto $LIBS"
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19461 /* Override any gcc2 internal prototype to avoid an error. */
19465 /* We use char because int might match the return type of a gcc2
19466 builtin and then its argument prototype would still apply. */
19467 char SSL_library_init ();
19471 SSL_library_init ();
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19478 (eval $ac_link) 2>conftest.er1
19480 grep -v '^ *+' conftest.er1 >conftest.err
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
19485 { ac_try='test -z "$ac_c_werror_flag"
19486 || test ! -s conftest.err'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest$ac_exeext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_cv_lib_ssl_SSL_library_init=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_cv_lib_ssl_SSL_library_init=no
19505 rm -f conftest.err conftest.$ac_objext \
19506 conftest$ac_exeext conftest.$ac_ext
19507 LIBS=$ac_check_lib_save_LIBS
19509 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19510 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19511 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19519 if test $have_openssl = no ; then
19520 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19521 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19522 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 /* Override any gcc2 internal prototype to avoid an error. */
19538 /* We use char because int might match the return type of a gcc2
19539 builtin and then its argument prototype would still apply. */
19540 char ssl3_accept ();
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_ssl_ssl3_accept=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_ssl_ssl3_accept=no
19578 rm -f conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19583 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19584 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19593 if test $have_openssl = yes ; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_OPENSSL 1
19603 if test $need_rsaref = yes; then
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_RSAREF 1
19610 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19612 TLS_LIBS="-lssl -lcrypto"
19615 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19616 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19617 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 #ifdef HAVE_OPENSSL_SSL_H
19629 #include <openssl/ssl.h>
19634 /* Require 0.9.7d+ */
19635 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19636 char *__ssl_compat = "0.9.7d";
19640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19641 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19642 ol_cv_ssl_crl_compat=yes
19644 ol_cv_ssl_crl_compat=no
19649 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19650 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19652 if test $ol_cv_ssl_crl_compat = no ; then
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_OPENSSL_CRL 1
19664 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19665 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19669 if test $ol_link_tls = yes ; then
19671 cat >>confdefs.h <<\_ACEOF
19677 elif test $ol_with_tls = auto ; then
19678 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19679 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19681 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19683 elif test $ol_with_tls != no ; then
19684 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19685 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19686 { (exit 1); exit 1; }; }
19689 if test $ol_enable_lmpasswd != no; then
19690 if test $ol_link_tls != yes ; then
19691 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19692 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19693 { (exit 1); exit 1; }; }
19697 cat >>confdefs.h <<\_ACEOF
19698 #define SLAPD_LMHASH 1
19705 case $ol_with_threads in auto | yes | nt)
19708 echo "$as_me:$LINENO: checking for _beginthread" >&5
19709 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19710 if test "${ac_cv_func__beginthread+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19721 #define _beginthread innocuous__beginthread
19723 /* System header to define __stub macros and hopefully few prototypes,
19724 which can conflict with char _beginthread (); below.
19725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726 <limits.h> exists even on freestanding compilers. */
19729 # include <limits.h>
19731 # include <assert.h>
19734 #undef _beginthread
19736 /* Override any gcc2 internal prototype to avoid an error. */
19741 /* We use char because int might match the return type of a gcc2
19742 builtin and then its argument prototype would still apply. */
19743 char _beginthread ();
19744 /* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19750 char (*f) () = _beginthread;
19759 return f != _beginthread;
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19766 (eval $ac_link) 2>conftest.er1
19768 grep -v '^ *+' conftest.er1 >conftest.err
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_c_werror_flag"
19774 || test ! -s conftest.err'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_func__beginthread=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_cv_func__beginthread=no
19793 rm -f conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19796 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19797 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19800 if test $ac_cv_func__beginthread = yes ; then
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_NT_THREADS 1
19806 ol_cv_nt_threads=yes
19810 if test "$ol_cv_nt_threads" = yes ; then
19812 ol_with_threads=found
19813 ol_with_yielding_select=yes
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_NT_SERVICE_MANAGER 1
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_NT_EVENT_LOG 1
19827 if test $ol_with_threads = nt ; then
19828 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19829 echo "$as_me: error: could not locate NT Threads" >&2;}
19830 { (exit 1); exit 1; }; }
19835 case $ol_with_threads in auto | yes | posix)
19838 for ac_header in pthread.h
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <$ac_header>
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_header_compiler=no
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 #include <$ac_header>
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
19916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19923 if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_header_preproc=no
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19935 # So? What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19959 ## --------------------------------------------- ##
19960 ## Report this to <http://www.openldap.org/its/> ##
19961 ## --------------------------------------------- ##
19964 sed "s/^/$as_me: WARNING: /" >&2
19967 echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 eval "$as_ac_Header=\$ac_header_preproc"
19974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19988 if test $ac_cv_header_pthread_h = yes ; then
19989 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19990 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19991 if test "${ol_cv_pthread_version+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20002 # include <pthread.h>
20008 int i = PTHREAD_CREATE_JOINABLE;
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016 (eval $ac_compile) 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest.$ac_objext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 #include <pthread.h>
20046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20047 $EGREP "pthread_detach" >/dev/null 2>&1; then
20048 ol_cv_pthread_version=10
20050 ol_cv_pthread_version=8
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 # include <pthread.h>
20067 # ifdef PTHREAD_CREATE_UNDETACHED
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073 $EGREP "draft7" >/dev/null 2>&1; then
20074 ol_cv_pthread_version=7
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <pthread.h>
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20088 ol_cv_pthread_version=6
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 # include <pthread.h>
20099 #ifdef PTHREAD_MUTEX_INITIALIZER
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "draft5" >/dev/null 2>&1; then
20106 ol_cv_pthread_version=5
20108 ol_cv_pthread_version=4
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20123 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20126 if test $ol_cv_pthread_version != 0 ; then
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_PTHREADS $ol_cv_pthread_version
20133 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20134 echo "$as_me: error: unknown pthread version" >&2;}
20135 { (exit 1); exit 1; }; }
20138 # consider threads found
20139 ol_with_threads=found
20142 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20143 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20144 if test "${ol_cv_header_linux_threads+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <pthread.h>
20155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20157 ol_cv_header_linux_threads=yes
20159 ol_cv_header_linux_threads=no
20165 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20166 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20167 if test $ol_cv_header_linux_threads = yes; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_LINUX_THREADS 1
20176 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20177 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20178 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <pthread.h>
20188 #ifdef _POSIX_THREAD_IS_GNU_PTH
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20195 ol_cv_header_gnu_pth_pthread_h=yes
20197 ol_cv_header_gnu_pth_pthread_h=no
20203 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20204 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20207 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20209 for ac_header in sched.h
20211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20221 # Is the header compilable?
20222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 $ac_includes_default
20231 #include <$ac_header>
20233 rm -f conftest.$ac_objext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20235 (eval $ac_compile) 2>conftest.er1
20237 grep -v '^ *+' conftest.er1 >conftest.err
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_header_compiler=yes
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 ac_header_compiler=no
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20264 echo "${ECHO_T}$ac_header_compiler" >&6
20266 # Is the header present?
20267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 #include <$ac_header>
20277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } >/dev/null; then
20285 if test -s conftest.err; then
20286 ac_cpp_err=$ac_c_preproc_warn_flag
20287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20294 if test -z "$ac_cpp_err"; then
20295 ac_header_preproc=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_header_preproc=no
20302 rm -f conftest.err conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6
20306 # So? What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313 ac_header_preproc=yes
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330 ## --------------------------------------------- ##
20331 ## Report this to <http://www.openldap.org/its/> ##
20332 ## --------------------------------------------- ##
20335 sed "s/^/$as_me: WARNING: /" >&2
20338 echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 eval "$as_ac_Header=\$ac_header_preproc"
20345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20361 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20362 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20363 if test "${ol_cv_pthread_create+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 if test "$cross_compiling" = yes; then
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 /* pthread test headers */
20376 #include <pthread.h>
20377 #if HAVE_PTHREADS < 7
20381 #define NULL (void*)0
20384 static void *task(p)
20387 return (void *) (p == NULL);
20394 /* pthread test function */
20395 #ifndef PTHREAD_CREATE_DETACHED
20396 #define PTHREAD_CREATE_DETACHED 1
20400 int detach = PTHREAD_CREATE_DETACHED;
20402 #if HAVE_PTHREADS > 4
20403 /* Final pthreads */
20404 pthread_attr_t attr;
20406 status = pthread_attr_init(&attr);
20407 if( status ) return status;
20409 #if HAVE_PTHREADS < 7
20410 status = pthread_attr_setdetachstate(&attr, &detach);
20411 if( status < 0 ) status = errno;
20413 status = pthread_attr_setdetachstate(&attr, detach);
20415 if( status ) return status;
20416 status = pthread_create( &t, &attr, task, NULL );
20417 #if HAVE_PTHREADS < 7
20418 if( status < 0 ) status = errno;
20420 if( status ) return status;
20422 /* Draft 4 pthreads */
20423 status = pthread_create( &t, pthread_attr_default, task, NULL );
20424 if( status ) return errno;
20426 /* give thread a chance to complete */
20427 /* it should remain joinable and hence detachable */
20430 status = pthread_detach( &t );
20431 if( status ) return errno;
20434 #ifdef HAVE_LINUX_THREADS
20435 pthread_kill_other_threads_np();
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest$ac_exeext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ol_cv_pthread_create=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ol_cv_pthread_create=no
20473 rm -f conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20483 /* pthread test headers */
20484 #include <pthread.h>
20485 #if HAVE_PTHREADS < 7
20489 #define NULL (void*)0
20492 static void *task(p)
20495 return (void *) (p == NULL);
20499 int main(argc, argv)
20504 /* pthread test function */
20505 #ifndef PTHREAD_CREATE_DETACHED
20506 #define PTHREAD_CREATE_DETACHED 1
20510 int detach = PTHREAD_CREATE_DETACHED;
20512 #if HAVE_PTHREADS > 4
20513 /* Final pthreads */
20514 pthread_attr_t attr;
20516 status = pthread_attr_init(&attr);
20517 if( status ) return status;
20519 #if HAVE_PTHREADS < 7
20520 status = pthread_attr_setdetachstate(&attr, &detach);
20521 if( status < 0 ) status = errno;
20523 status = pthread_attr_setdetachstate(&attr, detach);
20525 if( status ) return status;
20526 status = pthread_create( &t, &attr, task, NULL );
20527 #if HAVE_PTHREADS < 7
20528 if( status < 0 ) status = errno;
20530 if( status ) return status;
20532 /* Draft 4 pthreads */
20533 status = pthread_create( &t, pthread_attr_default, task, NULL );
20534 if( status ) return errno;
20536 /* give thread a chance to complete */
20537 /* it should remain joinable and hence detachable */
20540 status = pthread_detach( &t );
20541 if( status ) return errno;
20544 #ifdef HAVE_LINUX_THREADS
20545 pthread_kill_other_threads_np();
20553 rm -f conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555 (eval $ac_link) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ol_cv_pthread_create=yes
20566 echo "$as_me: program exited with status $ac_status" >&5
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 ( exit $ac_status )
20571 ol_cv_pthread_create=no
20573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20577 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20579 if test $ol_cv_pthread_create != no ; then
20580 ol_link_threads=posix
20581 ol_link_pthreads=""
20584 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20585 if test "$ol_link_threads" = no ; then
20587 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20588 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20589 if test "${ol_cv_pthread_kthread+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 LIBS="-kthread $LIBS"
20597 if test "$cross_compiling" = yes; then
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 /* pthread test headers */
20606 #include <pthread.h>
20607 #if HAVE_PTHREADS < 7
20611 #define NULL (void*)0
20614 static void *task(p)
20617 return (void *) (p == NULL);
20624 /* pthread test function */
20625 #ifndef PTHREAD_CREATE_DETACHED
20626 #define PTHREAD_CREATE_DETACHED 1
20630 int detach = PTHREAD_CREATE_DETACHED;
20632 #if HAVE_PTHREADS > 4
20633 /* Final pthreads */
20634 pthread_attr_t attr;
20636 status = pthread_attr_init(&attr);
20637 if( status ) return status;
20639 #if HAVE_PTHREADS < 7
20640 status = pthread_attr_setdetachstate(&attr, &detach);
20641 if( status < 0 ) status = errno;
20643 status = pthread_attr_setdetachstate(&attr, detach);
20645 if( status ) return status;
20646 status = pthread_create( &t, &attr, task, NULL );
20647 #if HAVE_PTHREADS < 7
20648 if( status < 0 ) status = errno;
20650 if( status ) return status;
20652 /* Draft 4 pthreads */
20653 status = pthread_create( &t, pthread_attr_default, task, NULL );
20654 if( status ) return errno;
20656 /* give thread a chance to complete */
20657 /* it should remain joinable and hence detachable */
20660 status = pthread_detach( &t );
20661 if( status ) return errno;
20664 #ifdef HAVE_LINUX_THREADS
20665 pthread_kill_other_threads_np();
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20676 (eval $ac_link) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ol_cv_pthread_kthread=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ol_cv_pthread_kthread=no
20703 rm -f conftest.err conftest.$ac_objext \
20704 conftest$ac_exeext conftest.$ac_ext
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20713 /* pthread test headers */
20714 #include <pthread.h>
20715 #if HAVE_PTHREADS < 7
20719 #define NULL (void*)0
20722 static void *task(p)
20725 return (void *) (p == NULL);
20729 int main(argc, argv)
20734 /* pthread test function */
20735 #ifndef PTHREAD_CREATE_DETACHED
20736 #define PTHREAD_CREATE_DETACHED 1
20740 int detach = PTHREAD_CREATE_DETACHED;
20742 #if HAVE_PTHREADS > 4
20743 /* Final pthreads */
20744 pthread_attr_t attr;
20746 status = pthread_attr_init(&attr);
20747 if( status ) return status;
20749 #if HAVE_PTHREADS < 7
20750 status = pthread_attr_setdetachstate(&attr, &detach);
20751 if( status < 0 ) status = errno;
20753 status = pthread_attr_setdetachstate(&attr, detach);
20755 if( status ) return status;
20756 status = pthread_create( &t, &attr, task, NULL );
20757 #if HAVE_PTHREADS < 7
20758 if( status < 0 ) status = errno;
20760 if( status ) return status;
20762 /* Draft 4 pthreads */
20763 status = pthread_create( &t, pthread_attr_default, task, NULL );
20764 if( status ) return errno;
20766 /* give thread a chance to complete */
20767 /* it should remain joinable and hence detachable */
20770 status = pthread_detach( &t );
20771 if( status ) return errno;
20774 #ifdef HAVE_LINUX_THREADS
20775 pthread_kill_other_threads_np();
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ol_cv_pthread_kthread=yes
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ( exit $ac_status )
20801 ol_cv_pthread_kthread=no
20803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20810 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20811 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20813 if test $ol_cv_pthread_kthread = yes ; then
20814 ol_link_pthreads="-kthread"
20815 ol_link_threads=posix
20819 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20820 if test "$ol_link_threads" = no ; then
20822 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20823 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20824 if test "${ol_cv_pthread_pthread+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 LIBS="-pthread $LIBS"
20832 if test "$cross_compiling" = yes; then
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20840 /* pthread test headers */
20841 #include <pthread.h>
20842 #if HAVE_PTHREADS < 7
20846 #define NULL (void*)0
20849 static void *task(p)
20852 return (void *) (p == NULL);
20859 /* pthread test function */
20860 #ifndef PTHREAD_CREATE_DETACHED
20861 #define PTHREAD_CREATE_DETACHED 1
20865 int detach = PTHREAD_CREATE_DETACHED;
20867 #if HAVE_PTHREADS > 4
20868 /* Final pthreads */
20869 pthread_attr_t attr;
20871 status = pthread_attr_init(&attr);
20872 if( status ) return status;
20874 #if HAVE_PTHREADS < 7
20875 status = pthread_attr_setdetachstate(&attr, &detach);
20876 if( status < 0 ) status = errno;
20878 status = pthread_attr_setdetachstate(&attr, detach);
20880 if( status ) return status;
20881 status = pthread_create( &t, &attr, task, NULL );
20882 #if HAVE_PTHREADS < 7
20883 if( status < 0 ) status = errno;
20885 if( status ) return status;
20887 /* Draft 4 pthreads */
20888 status = pthread_create( &t, pthread_attr_default, task, NULL );
20889 if( status ) return errno;
20891 /* give thread a chance to complete */
20892 /* it should remain joinable and hence detachable */
20895 status = pthread_detach( &t );
20896 if( status ) return errno;
20899 #ifdef HAVE_LINUX_THREADS
20900 pthread_kill_other_threads_np();
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest$ac_exeext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ol_cv_pthread_pthread=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ol_cv_pthread_pthread=no
20938 rm -f conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20948 /* pthread test headers */
20949 #include <pthread.h>
20950 #if HAVE_PTHREADS < 7
20954 #define NULL (void*)0
20957 static void *task(p)
20960 return (void *) (p == NULL);
20964 int main(argc, argv)
20969 /* pthread test function */
20970 #ifndef PTHREAD_CREATE_DETACHED
20971 #define PTHREAD_CREATE_DETACHED 1
20975 int detach = PTHREAD_CREATE_DETACHED;
20977 #if HAVE_PTHREADS > 4
20978 /* Final pthreads */
20979 pthread_attr_t attr;
20981 status = pthread_attr_init(&attr);
20982 if( status ) return status;
20984 #if HAVE_PTHREADS < 7
20985 status = pthread_attr_setdetachstate(&attr, &detach);
20986 if( status < 0 ) status = errno;
20988 status = pthread_attr_setdetachstate(&attr, detach);
20990 if( status ) return status;
20991 status = pthread_create( &t, &attr, task, NULL );
20992 #if HAVE_PTHREADS < 7
20993 if( status < 0 ) status = errno;
20995 if( status ) return status;
20997 /* Draft 4 pthreads */
20998 status = pthread_create( &t, pthread_attr_default, task, NULL );
20999 if( status ) return errno;
21001 /* give thread a chance to complete */
21002 /* it should remain joinable and hence detachable */
21005 status = pthread_detach( &t );
21006 if( status ) return errno;
21009 #ifdef HAVE_LINUX_THREADS
21010 pthread_kill_other_threads_np();
21018 rm -f conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ol_cv_pthread_pthread=yes
21031 echo "$as_me: program exited with status $ac_status" >&5
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ( exit $ac_status )
21036 ol_cv_pthread_pthread=no
21038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21046 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21048 if test $ol_cv_pthread_pthread = yes ; then
21049 ol_link_pthreads="-pthread"
21050 ol_link_threads=posix
21054 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21055 if test "$ol_link_threads" = no ; then
21057 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21058 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21059 if test "${ol_cv_pthread_pthreads+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 LIBS="-pthreads $LIBS"
21067 if test "$cross_compiling" = yes; then
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 /* pthread test headers */
21076 #include <pthread.h>
21077 #if HAVE_PTHREADS < 7
21081 #define NULL (void*)0
21084 static void *task(p)
21087 return (void *) (p == NULL);
21094 /* pthread test function */
21095 #ifndef PTHREAD_CREATE_DETACHED
21096 #define PTHREAD_CREATE_DETACHED 1
21100 int detach = PTHREAD_CREATE_DETACHED;
21102 #if HAVE_PTHREADS > 4
21103 /* Final pthreads */
21104 pthread_attr_t attr;
21106 status = pthread_attr_init(&attr);
21107 if( status ) return status;
21109 #if HAVE_PTHREADS < 7
21110 status = pthread_attr_setdetachstate(&attr, &detach);
21111 if( status < 0 ) status = errno;
21113 status = pthread_attr_setdetachstate(&attr, detach);
21115 if( status ) return status;
21116 status = pthread_create( &t, &attr, task, NULL );
21117 #if HAVE_PTHREADS < 7
21118 if( status < 0 ) status = errno;
21120 if( status ) return status;
21122 /* Draft 4 pthreads */
21123 status = pthread_create( &t, pthread_attr_default, task, NULL );
21124 if( status ) return errno;
21126 /* give thread a chance to complete */
21127 /* it should remain joinable and hence detachable */
21130 status = pthread_detach( &t );
21131 if( status ) return errno;
21134 #ifdef HAVE_LINUX_THREADS
21135 pthread_kill_other_threads_np();
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
21153 { ac_try='test -z "$ac_c_werror_flag"
21154 || test ! -s conftest.err'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; } &&
21160 { ac_try='test -s conftest$ac_exeext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ol_cv_pthread_pthreads=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ol_cv_pthread_pthreads=no
21173 rm -f conftest.err conftest.$ac_objext \
21174 conftest$ac_exeext conftest.$ac_ext
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21183 /* pthread test headers */
21184 #include <pthread.h>
21185 #if HAVE_PTHREADS < 7
21189 #define NULL (void*)0
21192 static void *task(p)
21195 return (void *) (p == NULL);
21199 int main(argc, argv)
21204 /* pthread test function */
21205 #ifndef PTHREAD_CREATE_DETACHED
21206 #define PTHREAD_CREATE_DETACHED 1
21210 int detach = PTHREAD_CREATE_DETACHED;
21212 #if HAVE_PTHREADS > 4
21213 /* Final pthreads */
21214 pthread_attr_t attr;
21216 status = pthread_attr_init(&attr);
21217 if( status ) return status;
21219 #if HAVE_PTHREADS < 7
21220 status = pthread_attr_setdetachstate(&attr, &detach);
21221 if( status < 0 ) status = errno;
21223 status = pthread_attr_setdetachstate(&attr, detach);
21225 if( status ) return status;
21226 status = pthread_create( &t, &attr, task, NULL );
21227 #if HAVE_PTHREADS < 7
21228 if( status < 0 ) status = errno;
21230 if( status ) return status;
21232 /* Draft 4 pthreads */
21233 status = pthread_create( &t, pthread_attr_default, task, NULL );
21234 if( status ) return errno;
21236 /* give thread a chance to complete */
21237 /* it should remain joinable and hence detachable */
21240 status = pthread_detach( &t );
21241 if( status ) return errno;
21244 #ifdef HAVE_LINUX_THREADS
21245 pthread_kill_other_threads_np();
21253 rm -f conftest$ac_exeext
21254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21255 (eval $ac_link) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ol_cv_pthread_pthreads=yes
21266 echo "$as_me: program exited with status $ac_status" >&5
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 ( exit $ac_status )
21271 ol_cv_pthread_pthreads=no
21273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21281 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21283 if test $ol_cv_pthread_pthreads = yes ; then
21284 ol_link_pthreads="-pthreads"
21285 ol_link_threads=posix
21289 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21290 if test "$ol_link_threads" = no ; then
21292 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21293 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21294 if test "${ol_cv_pthread_mthreads+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 LIBS="-mthreads $LIBS"
21302 if test "$cross_compiling" = yes; then
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21310 /* pthread test headers */
21311 #include <pthread.h>
21312 #if HAVE_PTHREADS < 7
21316 #define NULL (void*)0
21319 static void *task(p)
21322 return (void *) (p == NULL);
21329 /* pthread test function */
21330 #ifndef PTHREAD_CREATE_DETACHED
21331 #define PTHREAD_CREATE_DETACHED 1
21335 int detach = PTHREAD_CREATE_DETACHED;
21337 #if HAVE_PTHREADS > 4
21338 /* Final pthreads */
21339 pthread_attr_t attr;
21341 status = pthread_attr_init(&attr);
21342 if( status ) return status;
21344 #if HAVE_PTHREADS < 7
21345 status = pthread_attr_setdetachstate(&attr, &detach);
21346 if( status < 0 ) status = errno;
21348 status = pthread_attr_setdetachstate(&attr, detach);
21350 if( status ) return status;
21351 status = pthread_create( &t, &attr, task, NULL );
21352 #if HAVE_PTHREADS < 7
21353 if( status < 0 ) status = errno;
21355 if( status ) return status;
21357 /* Draft 4 pthreads */
21358 status = pthread_create( &t, pthread_attr_default, task, NULL );
21359 if( status ) return errno;
21361 /* give thread a chance to complete */
21362 /* it should remain joinable and hence detachable */
21365 status = pthread_detach( &t );
21366 if( status ) return errno;
21369 #ifdef HAVE_LINUX_THREADS
21370 pthread_kill_other_threads_np();
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381 (eval $ac_link) 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_c_werror_flag"
21389 || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ol_cv_pthread_mthreads=yes
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ol_cv_pthread_mthreads=no
21408 rm -f conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21418 /* pthread test headers */
21419 #include <pthread.h>
21420 #if HAVE_PTHREADS < 7
21424 #define NULL (void*)0
21427 static void *task(p)
21430 return (void *) (p == NULL);
21434 int main(argc, argv)
21439 /* pthread test function */
21440 #ifndef PTHREAD_CREATE_DETACHED
21441 #define PTHREAD_CREATE_DETACHED 1
21445 int detach = PTHREAD_CREATE_DETACHED;
21447 #if HAVE_PTHREADS > 4
21448 /* Final pthreads */
21449 pthread_attr_t attr;
21451 status = pthread_attr_init(&attr);
21452 if( status ) return status;
21454 #if HAVE_PTHREADS < 7
21455 status = pthread_attr_setdetachstate(&attr, &detach);
21456 if( status < 0 ) status = errno;
21458 status = pthread_attr_setdetachstate(&attr, detach);
21460 if( status ) return status;
21461 status = pthread_create( &t, &attr, task, NULL );
21462 #if HAVE_PTHREADS < 7
21463 if( status < 0 ) status = errno;
21465 if( status ) return status;
21467 /* Draft 4 pthreads */
21468 status = pthread_create( &t, pthread_attr_default, task, NULL );
21469 if( status ) return errno;
21471 /* give thread a chance to complete */
21472 /* it should remain joinable and hence detachable */
21475 status = pthread_detach( &t );
21476 if( status ) return errno;
21479 #ifdef HAVE_LINUX_THREADS
21480 pthread_kill_other_threads_np();
21488 rm -f conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490 (eval $ac_link) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ol_cv_pthread_mthreads=yes
21501 echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ( exit $ac_status )
21506 ol_cv_pthread_mthreads=no
21508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21516 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21518 if test $ol_cv_pthread_mthreads = yes ; then
21519 ol_link_pthreads="-mthreads"
21520 ol_link_threads=posix
21524 # Pthread try link: -thread (ol_cv_pthread_thread)
21525 if test "$ol_link_threads" = no ; then
21527 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21528 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21529 if test "${ol_cv_pthread_thread+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 LIBS="-thread $LIBS"
21537 if test "$cross_compiling" = yes; then
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21545 /* pthread test headers */
21546 #include <pthread.h>
21547 #if HAVE_PTHREADS < 7
21551 #define NULL (void*)0
21554 static void *task(p)
21557 return (void *) (p == NULL);
21564 /* pthread test function */
21565 #ifndef PTHREAD_CREATE_DETACHED
21566 #define PTHREAD_CREATE_DETACHED 1
21570 int detach = PTHREAD_CREATE_DETACHED;
21572 #if HAVE_PTHREADS > 4
21573 /* Final pthreads */
21574 pthread_attr_t attr;
21576 status = pthread_attr_init(&attr);
21577 if( status ) return status;
21579 #if HAVE_PTHREADS < 7
21580 status = pthread_attr_setdetachstate(&attr, &detach);
21581 if( status < 0 ) status = errno;
21583 status = pthread_attr_setdetachstate(&attr, detach);
21585 if( status ) return status;
21586 status = pthread_create( &t, &attr, task, NULL );
21587 #if HAVE_PTHREADS < 7
21588 if( status < 0 ) status = errno;
21590 if( status ) return status;
21592 /* Draft 4 pthreads */
21593 status = pthread_create( &t, pthread_attr_default, task, NULL );
21594 if( status ) return errno;
21596 /* give thread a chance to complete */
21597 /* it should remain joinable and hence detachable */
21600 status = pthread_detach( &t );
21601 if( status ) return errno;
21604 #ifdef HAVE_LINUX_THREADS
21605 pthread_kill_other_threads_np();
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest$ac_exeext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ol_cv_pthread_thread=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ol_cv_pthread_thread=no
21643 rm -f conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21653 /* pthread test headers */
21654 #include <pthread.h>
21655 #if HAVE_PTHREADS < 7
21659 #define NULL (void*)0
21662 static void *task(p)
21665 return (void *) (p == NULL);
21669 int main(argc, argv)
21674 /* pthread test function */
21675 #ifndef PTHREAD_CREATE_DETACHED
21676 #define PTHREAD_CREATE_DETACHED 1
21680 int detach = PTHREAD_CREATE_DETACHED;
21682 #if HAVE_PTHREADS > 4
21683 /* Final pthreads */
21684 pthread_attr_t attr;
21686 status = pthread_attr_init(&attr);
21687 if( status ) return status;
21689 #if HAVE_PTHREADS < 7
21690 status = pthread_attr_setdetachstate(&attr, &detach);
21691 if( status < 0 ) status = errno;
21693 status = pthread_attr_setdetachstate(&attr, detach);
21695 if( status ) return status;
21696 status = pthread_create( &t, &attr, task, NULL );
21697 #if HAVE_PTHREADS < 7
21698 if( status < 0 ) status = errno;
21700 if( status ) return status;
21702 /* Draft 4 pthreads */
21703 status = pthread_create( &t, pthread_attr_default, task, NULL );
21704 if( status ) return errno;
21706 /* give thread a chance to complete */
21707 /* it should remain joinable and hence detachable */
21710 status = pthread_detach( &t );
21711 if( status ) return errno;
21714 #ifdef HAVE_LINUX_THREADS
21715 pthread_kill_other_threads_np();
21723 rm -f conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725 (eval $ac_link) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ol_cv_pthread_thread=yes
21736 echo "$as_me: program exited with status $ac_status" >&5
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ( exit $ac_status )
21741 ol_cv_pthread_thread=no
21743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21751 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21753 if test $ol_cv_pthread_thread = yes ; then
21754 ol_link_pthreads="-thread"
21755 ol_link_threads=posix
21760 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21761 if test "$ol_link_threads" = no ; then
21762 # try -lpthread -lmach -lexc -lc_r
21763 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21764 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21765 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21773 if test "$cross_compiling" = yes; then
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21781 /* pthread test headers */
21782 #include <pthread.h>
21783 #if HAVE_PTHREADS < 7
21787 #define NULL (void*)0
21790 static void *task(p)
21793 return (void *) (p == NULL);
21800 /* pthread test function */
21801 #ifndef PTHREAD_CREATE_DETACHED
21802 #define PTHREAD_CREATE_DETACHED 1
21806 int detach = PTHREAD_CREATE_DETACHED;
21808 #if HAVE_PTHREADS > 4
21809 /* Final pthreads */
21810 pthread_attr_t attr;
21812 status = pthread_attr_init(&attr);
21813 if( status ) return status;
21815 #if HAVE_PTHREADS < 7
21816 status = pthread_attr_setdetachstate(&attr, &detach);
21817 if( status < 0 ) status = errno;
21819 status = pthread_attr_setdetachstate(&attr, detach);
21821 if( status ) return status;
21822 status = pthread_create( &t, &attr, task, NULL );
21823 #if HAVE_PTHREADS < 7
21824 if( status < 0 ) status = errno;
21826 if( status ) return status;
21828 /* Draft 4 pthreads */
21829 status = pthread_create( &t, pthread_attr_default, task, NULL );
21830 if( status ) return errno;
21832 /* give thread a chance to complete */
21833 /* it should remain joinable and hence detachable */
21836 status = pthread_detach( &t );
21837 if( status ) return errno;
21840 #ifdef HAVE_LINUX_THREADS
21841 pthread_kill_other_threads_np();
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
21859 { ac_try='test -z "$ac_c_werror_flag"
21860 || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21879 rm -f conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21889 /* pthread test headers */
21890 #include <pthread.h>
21891 #if HAVE_PTHREADS < 7
21895 #define NULL (void*)0
21898 static void *task(p)
21901 return (void *) (p == NULL);
21905 int main(argc, argv)
21910 /* pthread test function */
21911 #ifndef PTHREAD_CREATE_DETACHED
21912 #define PTHREAD_CREATE_DETACHED 1
21916 int detach = PTHREAD_CREATE_DETACHED;
21918 #if HAVE_PTHREADS > 4
21919 /* Final pthreads */
21920 pthread_attr_t attr;
21922 status = pthread_attr_init(&attr);
21923 if( status ) return status;
21925 #if HAVE_PTHREADS < 7
21926 status = pthread_attr_setdetachstate(&attr, &detach);
21927 if( status < 0 ) status = errno;
21929 status = pthread_attr_setdetachstate(&attr, detach);
21931 if( status ) return status;
21932 status = pthread_create( &t, &attr, task, NULL );
21933 #if HAVE_PTHREADS < 7
21934 if( status < 0 ) status = errno;
21936 if( status ) return status;
21938 /* Draft 4 pthreads */
21939 status = pthread_create( &t, pthread_attr_default, task, NULL );
21940 if( status ) return errno;
21942 /* give thread a chance to complete */
21943 /* it should remain joinable and hence detachable */
21946 status = pthread_detach( &t );
21947 if( status ) return errno;
21950 #ifdef HAVE_LINUX_THREADS
21951 pthread_kill_other_threads_np();
21959 rm -f conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961 (eval $ac_link) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21972 echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ( exit $ac_status )
21977 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21987 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21989 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21990 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21991 ol_link_threads=posix
21995 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21996 if test "$ol_link_threads" = no ; then
21997 # try -lpthread -lmach -lexc
21998 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21999 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22000 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 LIBS="-lpthread -lmach -lexc $LIBS"
22008 if test "$cross_compiling" = yes; then
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* pthread test headers */
22017 #include <pthread.h>
22018 #if HAVE_PTHREADS < 7
22022 #define NULL (void*)0
22025 static void *task(p)
22028 return (void *) (p == NULL);
22035 /* pthread test function */
22036 #ifndef PTHREAD_CREATE_DETACHED
22037 #define PTHREAD_CREATE_DETACHED 1
22041 int detach = PTHREAD_CREATE_DETACHED;
22043 #if HAVE_PTHREADS > 4
22044 /* Final pthreads */
22045 pthread_attr_t attr;
22047 status = pthread_attr_init(&attr);
22048 if( status ) return status;
22050 #if HAVE_PTHREADS < 7
22051 status = pthread_attr_setdetachstate(&attr, &detach);
22052 if( status < 0 ) status = errno;
22054 status = pthread_attr_setdetachstate(&attr, detach);
22056 if( status ) return status;
22057 status = pthread_create( &t, &attr, task, NULL );
22058 #if HAVE_PTHREADS < 7
22059 if( status < 0 ) status = errno;
22061 if( status ) return status;
22063 /* Draft 4 pthreads */
22064 status = pthread_create( &t, pthread_attr_default, task, NULL );
22065 if( status ) return errno;
22067 /* give thread a chance to complete */
22068 /* it should remain joinable and hence detachable */
22071 status = pthread_detach( &t );
22072 if( status ) return errno;
22075 #ifdef HAVE_LINUX_THREADS
22076 pthread_kill_other_threads_np();
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22089 grep -v '^ *+' conftest.er1 >conftest.err
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -z "$ac_c_werror_flag"
22095 || test ! -s conftest.err'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; } &&
22101 { ac_try='test -s conftest$ac_exeext'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ol_cv_pthread_lpthread_lmach_lexc=yes
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ol_cv_pthread_lpthread_lmach_lexc=no
22114 rm -f conftest.err conftest.$ac_objext \
22115 conftest$ac_exeext conftest.$ac_ext
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22124 /* pthread test headers */
22125 #include <pthread.h>
22126 #if HAVE_PTHREADS < 7
22130 #define NULL (void*)0
22133 static void *task(p)
22136 return (void *) (p == NULL);
22140 int main(argc, argv)
22145 /* pthread test function */
22146 #ifndef PTHREAD_CREATE_DETACHED
22147 #define PTHREAD_CREATE_DETACHED 1
22151 int detach = PTHREAD_CREATE_DETACHED;
22153 #if HAVE_PTHREADS > 4
22154 /* Final pthreads */
22155 pthread_attr_t attr;
22157 status = pthread_attr_init(&attr);
22158 if( status ) return status;
22160 #if HAVE_PTHREADS < 7
22161 status = pthread_attr_setdetachstate(&attr, &detach);
22162 if( status < 0 ) status = errno;
22164 status = pthread_attr_setdetachstate(&attr, detach);
22166 if( status ) return status;
22167 status = pthread_create( &t, &attr, task, NULL );
22168 #if HAVE_PTHREADS < 7
22169 if( status < 0 ) status = errno;
22171 if( status ) return status;
22173 /* Draft 4 pthreads */
22174 status = pthread_create( &t, pthread_attr_default, task, NULL );
22175 if( status ) return errno;
22177 /* give thread a chance to complete */
22178 /* it should remain joinable and hence detachable */
22181 status = pthread_detach( &t );
22182 if( status ) return errno;
22185 #ifdef HAVE_LINUX_THREADS
22186 pthread_kill_other_threads_np();
22194 rm -f conftest$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196 (eval $ac_link) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ol_cv_pthread_lpthread_lmach_lexc=yes
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ( exit $ac_status )
22212 ol_cv_pthread_lpthread_lmach_lexc=no
22214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22222 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22224 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22225 ol_link_pthreads="-lpthread -lmach -lexc"
22226 ol_link_threads=posix
22231 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22232 if test "$ol_link_threads" = no ; then
22233 # try -lpthread -Wl,-woff,85
22234 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22235 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22236 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22244 if test "$cross_compiling" = yes; then
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 /* pthread test headers */
22253 #include <pthread.h>
22254 #if HAVE_PTHREADS < 7
22258 #define NULL (void*)0
22261 static void *task(p)
22264 return (void *) (p == NULL);
22271 /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22277 int detach = PTHREAD_CREATE_DETACHED;
22279 #if HAVE_PTHREADS > 4
22280 /* Final pthreads */
22281 pthread_attr_t attr;
22283 status = pthread_attr_init(&attr);
22284 if( status ) return status;
22286 #if HAVE_PTHREADS < 7
22287 status = pthread_attr_setdetachstate(&attr, &detach);
22288 if( status < 0 ) status = errno;
22290 status = pthread_attr_setdetachstate(&attr, detach);
22292 if( status ) return status;
22293 status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295 if( status < 0 ) status = errno;
22297 if( status ) return status;
22299 /* Draft 4 pthreads */
22300 status = pthread_create( &t, pthread_attr_default, task, NULL );
22301 if( status ) return errno;
22303 /* give thread a chance to complete */
22304 /* it should remain joinable and hence detachable */
22307 status = pthread_detach( &t );
22308 if( status ) return errno;
22311 #ifdef HAVE_LINUX_THREADS
22312 pthread_kill_other_threads_np();
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323 (eval $ac_link) 2>conftest.er1
22325 grep -v '^ *+' conftest.er1 >conftest.err
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } &&
22330 { ac_try='test -z "$ac_c_werror_flag"
22331 || test ! -s conftest.err'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest$ac_exeext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ol_cv_pthread_lib_lpthread_woff=yes
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ol_cv_pthread_lib_lpthread_woff=no
22350 rm -f conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
22353 cat >conftest.$ac_ext <<_ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 /* pthread test headers */
22361 #include <pthread.h>
22362 #if HAVE_PTHREADS < 7
22366 #define NULL (void*)0
22369 static void *task(p)
22372 return (void *) (p == NULL);
22376 int main(argc, argv)
22381 /* pthread test function */
22382 #ifndef PTHREAD_CREATE_DETACHED
22383 #define PTHREAD_CREATE_DETACHED 1
22387 int detach = PTHREAD_CREATE_DETACHED;
22389 #if HAVE_PTHREADS > 4
22390 /* Final pthreads */
22391 pthread_attr_t attr;
22393 status = pthread_attr_init(&attr);
22394 if( status ) return status;
22396 #if HAVE_PTHREADS < 7
22397 status = pthread_attr_setdetachstate(&attr, &detach);
22398 if( status < 0 ) status = errno;
22400 status = pthread_attr_setdetachstate(&attr, detach);
22402 if( status ) return status;
22403 status = pthread_create( &t, &attr, task, NULL );
22404 #if HAVE_PTHREADS < 7
22405 if( status < 0 ) status = errno;
22407 if( status ) return status;
22409 /* Draft 4 pthreads */
22410 status = pthread_create( &t, pthread_attr_default, task, NULL );
22411 if( status ) return errno;
22413 /* give thread a chance to complete */
22414 /* it should remain joinable and hence detachable */
22417 status = pthread_detach( &t );
22418 if( status ) return errno;
22421 #ifdef HAVE_LINUX_THREADS
22422 pthread_kill_other_threads_np();
22430 rm -f conftest$ac_exeext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22432 (eval $ac_link) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ol_cv_pthread_lib_lpthread_woff=yes
22443 echo "$as_me: program exited with status $ac_status" >&5
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ( exit $ac_status )
22448 ol_cv_pthread_lib_lpthread_woff=no
22450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22457 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22458 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22460 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22461 ol_link_pthreads="-lpthread -Wl,-woff,85"
22462 ol_link_threads=posix
22467 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22468 if test "$ol_link_threads" = no ; then
22470 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22471 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22472 if test "${ol_cv_pthread_lpthread+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 LIBS="-lpthread $LIBS"
22480 if test "$cross_compiling" = yes; then
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22488 /* pthread test headers */
22489 #include <pthread.h>
22490 #if HAVE_PTHREADS < 7
22494 #define NULL (void*)0
22497 static void *task(p)
22500 return (void *) (p == NULL);
22507 /* pthread test function */
22508 #ifndef PTHREAD_CREATE_DETACHED
22509 #define PTHREAD_CREATE_DETACHED 1
22513 int detach = PTHREAD_CREATE_DETACHED;
22515 #if HAVE_PTHREADS > 4
22516 /* Final pthreads */
22517 pthread_attr_t attr;
22519 status = pthread_attr_init(&attr);
22520 if( status ) return status;
22522 #if HAVE_PTHREADS < 7
22523 status = pthread_attr_setdetachstate(&attr, &detach);
22524 if( status < 0 ) status = errno;
22526 status = pthread_attr_setdetachstate(&attr, detach);
22528 if( status ) return status;
22529 status = pthread_create( &t, &attr, task, NULL );
22530 #if HAVE_PTHREADS < 7
22531 if( status < 0 ) status = errno;
22533 if( status ) return status;
22535 /* Draft 4 pthreads */
22536 status = pthread_create( &t, pthread_attr_default, task, NULL );
22537 if( status ) return errno;
22539 /* give thread a chance to complete */
22540 /* it should remain joinable and hence detachable */
22543 status = pthread_detach( &t );
22544 if( status ) return errno;
22547 #ifdef HAVE_LINUX_THREADS
22548 pthread_kill_other_threads_np();
22557 rm -f conftest.$ac_objext conftest$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -z "$ac_c_werror_flag"
22567 || test ! -s conftest.err'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; } &&
22573 { ac_try='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 ol_cv_pthread_lpthread=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ol_cv_pthread_lpthread=no
22586 rm -f conftest.err conftest.$ac_objext \
22587 conftest$ac_exeext conftest.$ac_ext
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22596 /* pthread test headers */
22597 #include <pthread.h>
22598 #if HAVE_PTHREADS < 7
22602 #define NULL (void*)0
22605 static void *task(p)
22608 return (void *) (p == NULL);
22612 int main(argc, argv)
22617 /* pthread test function */
22618 #ifndef PTHREAD_CREATE_DETACHED
22619 #define PTHREAD_CREATE_DETACHED 1
22623 int detach = PTHREAD_CREATE_DETACHED;
22625 #if HAVE_PTHREADS > 4
22626 /* Final pthreads */
22627 pthread_attr_t attr;
22629 status = pthread_attr_init(&attr);
22630 if( status ) return status;
22632 #if HAVE_PTHREADS < 7
22633 status = pthread_attr_setdetachstate(&attr, &detach);
22634 if( status < 0 ) status = errno;
22636 status = pthread_attr_setdetachstate(&attr, detach);
22638 if( status ) return status;
22639 status = pthread_create( &t, &attr, task, NULL );
22640 #if HAVE_PTHREADS < 7
22641 if( status < 0 ) status = errno;
22643 if( status ) return status;
22645 /* Draft 4 pthreads */
22646 status = pthread_create( &t, pthread_attr_default, task, NULL );
22647 if( status ) return errno;
22649 /* give thread a chance to complete */
22650 /* it should remain joinable and hence detachable */
22653 status = pthread_detach( &t );
22654 if( status ) return errno;
22657 #ifdef HAVE_LINUX_THREADS
22658 pthread_kill_other_threads_np();
22666 rm -f conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22677 ol_cv_pthread_lpthread=yes
22679 echo "$as_me: program exited with status $ac_status" >&5
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ( exit $ac_status )
22684 ol_cv_pthread_lpthread=no
22686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22693 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22694 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22696 if test $ol_cv_pthread_lpthread = yes ; then
22697 ol_link_pthreads="-lpthread"
22698 ol_link_threads=posix
22702 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22703 if test "$ol_link_threads" = no ; then
22705 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22706 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22707 if test "${ol_cv_pthread_lc_r+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 if test "$cross_compiling" = yes; then
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22723 /* pthread test headers */
22724 #include <pthread.h>
22725 #if HAVE_PTHREADS < 7
22729 #define NULL (void*)0
22732 static void *task(p)
22735 return (void *) (p == NULL);
22742 /* pthread test function */
22743 #ifndef PTHREAD_CREATE_DETACHED
22744 #define PTHREAD_CREATE_DETACHED 1
22748 int detach = PTHREAD_CREATE_DETACHED;
22750 #if HAVE_PTHREADS > 4
22751 /* Final pthreads */
22752 pthread_attr_t attr;
22754 status = pthread_attr_init(&attr);
22755 if( status ) return status;
22757 #if HAVE_PTHREADS < 7
22758 status = pthread_attr_setdetachstate(&attr, &detach);
22759 if( status < 0 ) status = errno;
22761 status = pthread_attr_setdetachstate(&attr, detach);
22763 if( status ) return status;
22764 status = pthread_create( &t, &attr, task, NULL );
22765 #if HAVE_PTHREADS < 7
22766 if( status < 0 ) status = errno;
22768 if( status ) return status;
22770 /* Draft 4 pthreads */
22771 status = pthread_create( &t, pthread_attr_default, task, NULL );
22772 if( status ) return errno;
22774 /* give thread a chance to complete */
22775 /* it should remain joinable and hence detachable */
22778 status = pthread_detach( &t );
22779 if( status ) return errno;
22782 #ifdef HAVE_LINUX_THREADS
22783 pthread_kill_other_threads_np();
22792 rm -f conftest.$ac_objext conftest$ac_exeext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794 (eval $ac_link) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag"
22802 || test ! -s conftest.err'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; } &&
22808 { ac_try='test -s conftest$ac_exeext'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 ol_cv_pthread_lc_r=yes
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ol_cv_pthread_lc_r=no
22821 rm -f conftest.err conftest.$ac_objext \
22822 conftest$ac_exeext conftest.$ac_ext
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22831 /* pthread test headers */
22832 #include <pthread.h>
22833 #if HAVE_PTHREADS < 7
22837 #define NULL (void*)0
22840 static void *task(p)
22843 return (void *) (p == NULL);
22847 int main(argc, argv)
22852 /* pthread test function */
22853 #ifndef PTHREAD_CREATE_DETACHED
22854 #define PTHREAD_CREATE_DETACHED 1
22858 int detach = PTHREAD_CREATE_DETACHED;
22860 #if HAVE_PTHREADS > 4
22861 /* Final pthreads */
22862 pthread_attr_t attr;
22864 status = pthread_attr_init(&attr);
22865 if( status ) return status;
22867 #if HAVE_PTHREADS < 7
22868 status = pthread_attr_setdetachstate(&attr, &detach);
22869 if( status < 0 ) status = errno;
22871 status = pthread_attr_setdetachstate(&attr, detach);
22873 if( status ) return status;
22874 status = pthread_create( &t, &attr, task, NULL );
22875 #if HAVE_PTHREADS < 7
22876 if( status < 0 ) status = errno;
22878 if( status ) return status;
22880 /* Draft 4 pthreads */
22881 status = pthread_create( &t, pthread_attr_default, task, NULL );
22882 if( status ) return errno;
22884 /* give thread a chance to complete */
22885 /* it should remain joinable and hence detachable */
22888 status = pthread_detach( &t );
22889 if( status ) return errno;
22892 #ifdef HAVE_LINUX_THREADS
22893 pthread_kill_other_threads_np();
22901 rm -f conftest$ac_exeext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22903 (eval $ac_link) 2>&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }; then
22912 ol_cv_pthread_lc_r=yes
22914 echo "$as_me: program exited with status $ac_status" >&5
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ( exit $ac_status )
22919 ol_cv_pthread_lc_r=no
22921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22928 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22929 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22931 if test $ol_cv_pthread_lc_r = yes ; then
22932 ol_link_pthreads="-lc_r"
22933 ol_link_threads=posix
22938 # Pthread try link: -threads (ol_cv_pthread_threads)
22939 if test "$ol_link_threads" = no ; then
22941 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22942 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22943 if test "${ol_cv_pthread_threads+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 LIBS="-threads $LIBS"
22951 if test "$cross_compiling" = yes; then
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22959 /* pthread test headers */
22960 #include <pthread.h>
22961 #if HAVE_PTHREADS < 7
22965 #define NULL (void*)0
22968 static void *task(p)
22971 return (void *) (p == NULL);
22978 /* pthread test function */
22979 #ifndef PTHREAD_CREATE_DETACHED
22980 #define PTHREAD_CREATE_DETACHED 1
22984 int detach = PTHREAD_CREATE_DETACHED;
22986 #if HAVE_PTHREADS > 4
22987 /* Final pthreads */
22988 pthread_attr_t attr;
22990 status = pthread_attr_init(&attr);
22991 if( status ) return status;
22993 #if HAVE_PTHREADS < 7
22994 status = pthread_attr_setdetachstate(&attr, &detach);
22995 if( status < 0 ) status = errno;
22997 status = pthread_attr_setdetachstate(&attr, detach);
22999 if( status ) return status;
23000 status = pthread_create( &t, &attr, task, NULL );
23001 #if HAVE_PTHREADS < 7
23002 if( status < 0 ) status = errno;
23004 if( status ) return status;
23006 /* Draft 4 pthreads */
23007 status = pthread_create( &t, pthread_attr_default, task, NULL );
23008 if( status ) return errno;
23010 /* give thread a chance to complete */
23011 /* it should remain joinable and hence detachable */
23014 status = pthread_detach( &t );
23015 if( status ) return errno;
23018 #ifdef HAVE_LINUX_THREADS
23019 pthread_kill_other_threads_np();
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23030 (eval $ac_link) 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
23037 { ac_try='test -z "$ac_c_werror_flag"
23038 || test ! -s conftest.err'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; } &&
23044 { ac_try='test -s conftest$ac_exeext'
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ol_cv_pthread_threads=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ol_cv_pthread_threads=no
23057 rm -f conftest.err conftest.$ac_objext \
23058 conftest$ac_exeext conftest.$ac_ext
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23067 /* pthread test headers */
23068 #include <pthread.h>
23069 #if HAVE_PTHREADS < 7
23073 #define NULL (void*)0
23076 static void *task(p)
23079 return (void *) (p == NULL);
23083 int main(argc, argv)
23088 /* pthread test function */
23089 #ifndef PTHREAD_CREATE_DETACHED
23090 #define PTHREAD_CREATE_DETACHED 1
23094 int detach = PTHREAD_CREATE_DETACHED;
23096 #if HAVE_PTHREADS > 4
23097 /* Final pthreads */
23098 pthread_attr_t attr;
23100 status = pthread_attr_init(&attr);
23101 if( status ) return status;
23103 #if HAVE_PTHREADS < 7
23104 status = pthread_attr_setdetachstate(&attr, &detach);
23105 if( status < 0 ) status = errno;
23107 status = pthread_attr_setdetachstate(&attr, detach);
23109 if( status ) return status;
23110 status = pthread_create( &t, &attr, task, NULL );
23111 #if HAVE_PTHREADS < 7
23112 if( status < 0 ) status = errno;
23114 if( status ) return status;
23116 /* Draft 4 pthreads */
23117 status = pthread_create( &t, pthread_attr_default, task, NULL );
23118 if( status ) return errno;
23120 /* give thread a chance to complete */
23121 /* it should remain joinable and hence detachable */
23124 status = pthread_detach( &t );
23125 if( status ) return errno;
23128 #ifdef HAVE_LINUX_THREADS
23129 pthread_kill_other_threads_np();
23137 rm -f conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139 (eval $ac_link) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 ol_cv_pthread_threads=yes
23150 echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ( exit $ac_status )
23155 ol_cv_pthread_threads=no
23157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23165 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23167 if test $ol_cv_pthread_threads = yes ; then
23168 ol_link_pthreads="-threads"
23169 ol_link_threads=posix
23174 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23175 if test "$ol_link_threads" = no ; then
23176 # try -lpthreads -lmach -lexc -lc_r
23177 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23178 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23179 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23187 if test "$cross_compiling" = yes; then
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 /* pthread test headers */
23196 #include <pthread.h>
23197 #if HAVE_PTHREADS < 7
23201 #define NULL (void*)0
23204 static void *task(p)
23207 return (void *) (p == NULL);
23214 /* pthread test function */
23215 #ifndef PTHREAD_CREATE_DETACHED
23216 #define PTHREAD_CREATE_DETACHED 1
23220 int detach = PTHREAD_CREATE_DETACHED;
23222 #if HAVE_PTHREADS > 4
23223 /* Final pthreads */
23224 pthread_attr_t attr;
23226 status = pthread_attr_init(&attr);
23227 if( status ) return status;
23229 #if HAVE_PTHREADS < 7
23230 status = pthread_attr_setdetachstate(&attr, &detach);
23231 if( status < 0 ) status = errno;
23233 status = pthread_attr_setdetachstate(&attr, detach);
23235 if( status ) return status;
23236 status = pthread_create( &t, &attr, task, NULL );
23237 #if HAVE_PTHREADS < 7
23238 if( status < 0 ) status = errno;
23240 if( status ) return status;
23242 /* Draft 4 pthreads */
23243 status = pthread_create( &t, pthread_attr_default, task, NULL );
23244 if( status ) return errno;
23246 /* give thread a chance to complete */
23247 /* it should remain joinable and hence detachable */
23250 status = pthread_detach( &t );
23251 if( status ) return errno;
23254 #ifdef HAVE_LINUX_THREADS
23255 pthread_kill_other_threads_np();
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23303 /* pthread test headers */
23304 #include <pthread.h>
23305 #if HAVE_PTHREADS < 7
23309 #define NULL (void*)0
23312 static void *task(p)
23315 return (void *) (p == NULL);
23319 int main(argc, argv)
23324 /* pthread test function */
23325 #ifndef PTHREAD_CREATE_DETACHED
23326 #define PTHREAD_CREATE_DETACHED 1
23330 int detach = PTHREAD_CREATE_DETACHED;
23332 #if HAVE_PTHREADS > 4
23333 /* Final pthreads */
23334 pthread_attr_t attr;
23336 status = pthread_attr_init(&attr);
23337 if( status ) return status;
23339 #if HAVE_PTHREADS < 7
23340 status = pthread_attr_setdetachstate(&attr, &detach);
23341 if( status < 0 ) status = errno;
23343 status = pthread_attr_setdetachstate(&attr, detach);
23345 if( status ) return status;
23346 status = pthread_create( &t, &attr, task, NULL );
23347 #if HAVE_PTHREADS < 7
23348 if( status < 0 ) status = errno;
23350 if( status ) return status;
23352 /* Draft 4 pthreads */
23353 status = pthread_create( &t, pthread_attr_default, task, NULL );
23354 if( status ) return errno;
23356 /* give thread a chance to complete */
23357 /* it should remain joinable and hence detachable */
23360 status = pthread_detach( &t );
23361 if( status ) return errno;
23364 #ifdef HAVE_LINUX_THREADS
23365 pthread_kill_other_threads_np();
23373 rm -f conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375 (eval $ac_link) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23386 echo "$as_me: program exited with status $ac_status" >&5
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ( exit $ac_status )
23391 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23400 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23401 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23403 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23404 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23405 ol_link_threads=posix
23409 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23410 if test "$ol_link_threads" = no ; then
23411 # try -lpthreads -lmach -lexc
23412 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23413 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23414 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 LIBS="-lpthreads -lmach -lexc $LIBS"
23422 if test "$cross_compiling" = yes; then
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23430 /* pthread test headers */
23431 #include <pthread.h>
23432 #if HAVE_PTHREADS < 7
23436 #define NULL (void*)0
23439 static void *task(p)
23442 return (void *) (p == NULL);
23449 /* pthread test function */
23450 #ifndef PTHREAD_CREATE_DETACHED
23451 #define PTHREAD_CREATE_DETACHED 1
23455 int detach = PTHREAD_CREATE_DETACHED;
23457 #if HAVE_PTHREADS > 4
23458 /* Final pthreads */
23459 pthread_attr_t attr;
23461 status = pthread_attr_init(&attr);
23462 if( status ) return status;
23464 #if HAVE_PTHREADS < 7
23465 status = pthread_attr_setdetachstate(&attr, &detach);
23466 if( status < 0 ) status = errno;
23468 status = pthread_attr_setdetachstate(&attr, detach);
23470 if( status ) return status;
23471 status = pthread_create( &t, &attr, task, NULL );
23472 #if HAVE_PTHREADS < 7
23473 if( status < 0 ) status = errno;
23475 if( status ) return status;
23477 /* Draft 4 pthreads */
23478 status = pthread_create( &t, pthread_attr_default, task, NULL );
23479 if( status ) return errno;
23481 /* give thread a chance to complete */
23482 /* it should remain joinable and hence detachable */
23485 status = pthread_detach( &t );
23486 if( status ) return errno;
23489 #ifdef HAVE_LINUX_THREADS
23490 pthread_kill_other_threads_np();
23499 rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501 (eval $ac_link) 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -z "$ac_c_werror_flag"
23509 || test ! -s conftest.err'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; } &&
23515 { ac_try='test -s conftest$ac_exeext'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521 ol_cv_pthread_lpthreads_lmach_lexc=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ol_cv_pthread_lpthreads_lmach_lexc=no
23528 rm -f conftest.err conftest.$ac_objext \
23529 conftest$ac_exeext conftest.$ac_ext
23531 cat >conftest.$ac_ext <<_ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h. */
23538 /* pthread test headers */
23539 #include <pthread.h>
23540 #if HAVE_PTHREADS < 7
23544 #define NULL (void*)0
23547 static void *task(p)
23550 return (void *) (p == NULL);
23554 int main(argc, argv)
23559 /* pthread test function */
23560 #ifndef PTHREAD_CREATE_DETACHED
23561 #define PTHREAD_CREATE_DETACHED 1
23565 int detach = PTHREAD_CREATE_DETACHED;
23567 #if HAVE_PTHREADS > 4
23568 /* Final pthreads */
23569 pthread_attr_t attr;
23571 status = pthread_attr_init(&attr);
23572 if( status ) return status;
23574 #if HAVE_PTHREADS < 7
23575 status = pthread_attr_setdetachstate(&attr, &detach);
23576 if( status < 0 ) status = errno;
23578 status = pthread_attr_setdetachstate(&attr, detach);
23580 if( status ) return status;
23581 status = pthread_create( &t, &attr, task, NULL );
23582 #if HAVE_PTHREADS < 7
23583 if( status < 0 ) status = errno;
23585 if( status ) return status;
23587 /* Draft 4 pthreads */
23588 status = pthread_create( &t, pthread_attr_default, task, NULL );
23589 if( status ) return errno;
23591 /* give thread a chance to complete */
23592 /* it should remain joinable and hence detachable */
23595 status = pthread_detach( &t );
23596 if( status ) return errno;
23599 #ifdef HAVE_LINUX_THREADS
23600 pthread_kill_other_threads_np();
23608 rm -f conftest$ac_exeext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610 (eval $ac_link) 2>&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 ol_cv_pthread_lpthreads_lmach_lexc=yes
23621 echo "$as_me: program exited with status $ac_status" >&5
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23625 ( exit $ac_status )
23626 ol_cv_pthread_lpthreads_lmach_lexc=no
23628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23635 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23636 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23638 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23639 ol_link_pthreads="-lpthreads -lmach -lexc"
23640 ol_link_threads=posix
23644 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23645 if test "$ol_link_threads" = no ; then
23646 # try -lpthreads -lexc
23647 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23648 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23649 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 LIBS="-lpthreads -lexc $LIBS"
23657 if test "$cross_compiling" = yes; then
23658 cat >conftest.$ac_ext <<_ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23665 /* pthread test headers */
23666 #include <pthread.h>
23667 #if HAVE_PTHREADS < 7
23671 #define NULL (void*)0
23674 static void *task(p)
23677 return (void *) (p == NULL);
23684 /* pthread test function */
23685 #ifndef PTHREAD_CREATE_DETACHED
23686 #define PTHREAD_CREATE_DETACHED 1
23690 int detach = PTHREAD_CREATE_DETACHED;
23692 #if HAVE_PTHREADS > 4
23693 /* Final pthreads */
23694 pthread_attr_t attr;
23696 status = pthread_attr_init(&attr);
23697 if( status ) return status;
23699 #if HAVE_PTHREADS < 7
23700 status = pthread_attr_setdetachstate(&attr, &detach);
23701 if( status < 0 ) status = errno;
23703 status = pthread_attr_setdetachstate(&attr, detach);
23705 if( status ) return status;
23706 status = pthread_create( &t, &attr, task, NULL );
23707 #if HAVE_PTHREADS < 7
23708 if( status < 0 ) status = errno;
23710 if( status ) return status;
23712 /* Draft 4 pthreads */
23713 status = pthread_create( &t, pthread_attr_default, task, NULL );
23714 if( status ) return errno;
23716 /* give thread a chance to complete */
23717 /* it should remain joinable and hence detachable */
23720 status = pthread_detach( &t );
23721 if( status ) return errno;
23724 #ifdef HAVE_LINUX_THREADS
23725 pthread_kill_other_threads_np();
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736 (eval $ac_link) 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag"
23744 || test ! -s conftest.err'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; } &&
23750 { ac_try='test -s conftest$ac_exeext'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 ol_cv_pthread_lpthreads_lexc=yes
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ol_cv_pthread_lpthreads_lexc=no
23763 rm -f conftest.err conftest.$ac_objext \
23764 conftest$ac_exeext conftest.$ac_ext
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23773 /* pthread test headers */
23774 #include <pthread.h>
23775 #if HAVE_PTHREADS < 7
23779 #define NULL (void*)0
23782 static void *task(p)
23785 return (void *) (p == NULL);
23789 int main(argc, argv)
23794 /* pthread test function */
23795 #ifndef PTHREAD_CREATE_DETACHED
23796 #define PTHREAD_CREATE_DETACHED 1
23800 int detach = PTHREAD_CREATE_DETACHED;
23802 #if HAVE_PTHREADS > 4
23803 /* Final pthreads */
23804 pthread_attr_t attr;
23806 status = pthread_attr_init(&attr);
23807 if( status ) return status;
23809 #if HAVE_PTHREADS < 7
23810 status = pthread_attr_setdetachstate(&attr, &detach);
23811 if( status < 0 ) status = errno;
23813 status = pthread_attr_setdetachstate(&attr, detach);
23815 if( status ) return status;
23816 status = pthread_create( &t, &attr, task, NULL );
23817 #if HAVE_PTHREADS < 7
23818 if( status < 0 ) status = errno;
23820 if( status ) return status;
23822 /* Draft 4 pthreads */
23823 status = pthread_create( &t, pthread_attr_default, task, NULL );
23824 if( status ) return errno;
23826 /* give thread a chance to complete */
23827 /* it should remain joinable and hence detachable */
23830 status = pthread_detach( &t );
23831 if( status ) return errno;
23834 #ifdef HAVE_LINUX_THREADS
23835 pthread_kill_other_threads_np();
23843 rm -f conftest$ac_exeext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845 (eval $ac_link) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854 ol_cv_pthread_lpthreads_lexc=yes
23856 echo "$as_me: program exited with status $ac_status" >&5
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 ( exit $ac_status )
23861 ol_cv_pthread_lpthreads_lexc=no
23863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23870 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23871 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23873 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23874 ol_link_pthreads="-lpthreads -lexc"
23875 ol_link_threads=posix
23880 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23881 if test "$ol_link_threads" = no ; then
23883 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23884 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23885 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23886 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 LIBS="-lpthreads $LIBS"
23893 if test "$cross_compiling" = yes; then
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23901 /* pthread test headers */
23902 #include <pthread.h>
23903 #if HAVE_PTHREADS < 7
23907 #define NULL (void*)0
23910 static void *task(p)
23913 return (void *) (p == NULL);
23920 /* pthread test function */
23921 #ifndef PTHREAD_CREATE_DETACHED
23922 #define PTHREAD_CREATE_DETACHED 1
23926 int detach = PTHREAD_CREATE_DETACHED;
23928 #if HAVE_PTHREADS > 4
23929 /* Final pthreads */
23930 pthread_attr_t attr;
23932 status = pthread_attr_init(&attr);
23933 if( status ) return status;
23935 #if HAVE_PTHREADS < 7
23936 status = pthread_attr_setdetachstate(&attr, &detach);
23937 if( status < 0 ) status = errno;
23939 status = pthread_attr_setdetachstate(&attr, detach);
23941 if( status ) return status;
23942 status = pthread_create( &t, &attr, task, NULL );
23943 #if HAVE_PTHREADS < 7
23944 if( status < 0 ) status = errno;
23946 if( status ) return status;
23948 /* Draft 4 pthreads */
23949 status = pthread_create( &t, pthread_attr_default, task, NULL );
23950 if( status ) return errno;
23952 /* give thread a chance to complete */
23953 /* it should remain joinable and hence detachable */
23956 status = pthread_detach( &t );
23957 if( status ) return errno;
23960 #ifdef HAVE_LINUX_THREADS
23961 pthread_kill_other_threads_np();
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972 (eval $ac_link) 2>conftest.er1
23974 grep -v '^ *+' conftest.er1 >conftest.err
23976 cat conftest.err >&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
23979 { ac_try='test -z "$ac_c_werror_flag"
23980 || test ! -s conftest.err'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; } &&
23986 { ac_try='test -s conftest$ac_exeext'
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; }; then
23992 ol_cv_pthread_lib_lpthreads=yes
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 ol_cv_pthread_lib_lpthreads=no
23999 rm -f conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
24002 cat >conftest.$ac_ext <<_ACEOF
24005 cat confdefs.h >>conftest.$ac_ext
24006 cat >>conftest.$ac_ext <<_ACEOF
24007 /* end confdefs.h. */
24009 /* pthread test headers */
24010 #include <pthread.h>
24011 #if HAVE_PTHREADS < 7
24015 #define NULL (void*)0
24018 static void *task(p)
24021 return (void *) (p == NULL);
24025 int main(argc, argv)
24030 /* pthread test function */
24031 #ifndef PTHREAD_CREATE_DETACHED
24032 #define PTHREAD_CREATE_DETACHED 1
24036 int detach = PTHREAD_CREATE_DETACHED;
24038 #if HAVE_PTHREADS > 4
24039 /* Final pthreads */
24040 pthread_attr_t attr;
24042 status = pthread_attr_init(&attr);
24043 if( status ) return status;
24045 #if HAVE_PTHREADS < 7
24046 status = pthread_attr_setdetachstate(&attr, &detach);
24047 if( status < 0 ) status = errno;
24049 status = pthread_attr_setdetachstate(&attr, detach);
24051 if( status ) return status;
24052 status = pthread_create( &t, &attr, task, NULL );
24053 #if HAVE_PTHREADS < 7
24054 if( status < 0 ) status = errno;
24056 if( status ) return status;
24058 /* Draft 4 pthreads */
24059 status = pthread_create( &t, pthread_attr_default, task, NULL );
24060 if( status ) return errno;
24062 /* give thread a chance to complete */
24063 /* it should remain joinable and hence detachable */
24066 status = pthread_detach( &t );
24067 if( status ) return errno;
24070 #ifdef HAVE_LINUX_THREADS
24071 pthread_kill_other_threads_np();
24079 rm -f conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081 (eval $ac_link) 2>&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086 (eval $ac_try) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; }; then
24090 ol_cv_pthread_lib_lpthreads=yes
24092 echo "$as_me: program exited with status $ac_status" >&5
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 ( exit $ac_status )
24097 ol_cv_pthread_lib_lpthreads=no
24099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24106 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24107 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24109 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24110 ol_link_pthreads="-lpthreads"
24111 ol_link_threads=posix
24116 if test $ol_link_threads != no ; then
24117 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24119 save_CPPFLAGS="$CPPFLAGS"
24121 LIBS="$LTHREAD_LIBS $LIBS"
24126 for ac_func in sched_yield pthread_yield thr_yield
24128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24129 echo "$as_me:$LINENO: checking for $ac_func" >&5
24130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24131 if eval "test \"\${$as_ac_var+set}\" = set"; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24142 #define $ac_func innocuous_$ac_func
24144 /* System header to define __stub macros and hopefully few prototypes,
24145 which can conflict with char $ac_func (); below.
24146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24147 <limits.h> exists even on freestanding compilers. */
24150 # include <limits.h>
24152 # include <assert.h>
24157 /* Override any gcc2 internal prototype to avoid an error. */
24162 /* We use char because int might match the return type of a gcc2
24163 builtin and then its argument prototype would still apply. */
24165 /* The GNU C library defines this for functions which it implements
24166 to always fail with ENOSYS. Some functions are actually named
24167 something starting with __ and the normal name is an alias. */
24168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24171 char (*f) () = $ac_func;
24180 return f != $ac_func;
24185 rm -f conftest.$ac_objext conftest$ac_exeext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest$ac_exeext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 eval "$as_ac_var=yes"
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24212 eval "$as_ac_var=no"
24214 rm -f conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
24217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24219 if test `eval echo '${'$as_ac_var'}'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24228 if test $ac_cv_func_sched_yield = no &&
24229 test $ac_cv_func_pthread_yield = no &&
24230 test $ac_cv_func_thr_yield = no ; then
24231 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24232 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24233 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 ac_check_lib_save_LIBS=$LIBS
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24245 /* Override any gcc2 internal prototype to avoid an error. */
24249 /* We use char because int might match the return type of a gcc2
24250 builtin and then its argument prototype would still apply. */
24251 char sched_yield ();
24260 rm -f conftest.$ac_objext conftest$ac_exeext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24262 (eval $ac_link) 2>conftest.er1
24264 grep -v '^ *+' conftest.er1 >conftest.err
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
24269 { ac_try='test -z "$ac_c_werror_flag"
24270 || test ! -s conftest.err'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; } &&
24276 { ac_try='test -s conftest$ac_exeext'
24277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278 (eval $ac_try) 2>&5
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); }; }; then
24282 ac_cv_lib_rt_sched_yield=yes
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ac_cv_lib_rt_sched_yield=no
24289 rm -f conftest.err conftest.$ac_objext \
24290 conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24293 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24294 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24295 if test $ac_cv_lib_rt_sched_yield = yes; then
24296 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24298 cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_SCHED_YIELD 1
24302 ac_cv_func_sched_yield=yes
24304 ac_cv_func_sched_yield=no
24308 if test $ac_cv_func_sched_yield = no &&
24309 test $ac_cv_func_pthread_yield = no &&
24310 test "$ac_cv_func_thr_yield" = no ; then
24311 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24312 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24317 for ac_func in pthread_kill pthread_rwlock_destroy
24319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24320 echo "$as_me:$LINENO: checking for $ac_func" >&5
24321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24322 if eval "test \"\${$as_ac_var+set}\" = set"; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24333 #define $ac_func innocuous_$ac_func
24335 /* System header to define __stub macros and hopefully few prototypes,
24336 which can conflict with char $ac_func (); below.
24337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338 <limits.h> exists even on freestanding compilers. */
24341 # include <limits.h>
24343 # include <assert.h>
24348 /* Override any gcc2 internal prototype to avoid an error. */
24353 /* We use char because int might match the return type of a gcc2
24354 builtin and then its argument prototype would still apply. */
24356 /* The GNU C library defines this for functions which it implements
24357 to always fail with ENOSYS. Some functions are actually named
24358 something starting with __ and the normal name is an alias. */
24359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24362 char (*f) () = $ac_func;
24371 return f != $ac_func;
24376 rm -f conftest.$ac_objext conftest$ac_exeext
24377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24378 (eval $ac_link) 2>conftest.er1
24380 grep -v '^ *+' conftest.er1 >conftest.err
24382 cat conftest.err >&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } &&
24385 { ac_try='test -z "$ac_c_werror_flag"
24386 || test ! -s conftest.err'
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; } &&
24392 { ac_try='test -s conftest$ac_exeext'
24393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394 (eval $ac_try) 2>&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); }; }; then
24398 eval "$as_ac_var=yes"
24400 echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24403 eval "$as_ac_var=no"
24405 rm -f conftest.err conftest.$ac_objext \
24406 conftest$ac_exeext conftest.$ac_ext
24408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24410 if test `eval echo '${'$as_ac_var'}'` = yes; then
24411 cat >>confdefs.h <<_ACEOF
24412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24419 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24420 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24421 if test "${ol_cv_func_pthread_detach+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24432 #include <pthread.h>
24434 #define NULL (void*)0
24440 pthread_detach(NULL);
24445 rm -f conftest.$ac_objext conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447 (eval $ac_link) 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } &&
24454 { ac_try='test -z "$ac_c_werror_flag"
24455 || test ! -s conftest.err'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest$ac_exeext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24467 ol_cv_func_pthread_detach=yes
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ol_cv_func_pthread_detach=no
24474 rm -f conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24478 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24479 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24481 if test $ol_cv_func_pthread_detach = no ; then
24482 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24483 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24484 { (exit 1); exit 1; }; }
24488 cat >>confdefs.h <<\_ACEOF
24489 #define HAVE_PTHREAD_DETACH 1
24498 pthread_setconcurrency \
24499 pthread_getconcurrency \
24500 thr_setconcurrency \
24501 thr_getconcurrency \
24504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24505 echo "$as_me:$LINENO: checking for $ac_func" >&5
24506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24507 if eval "test \"\${$as_ac_var+set}\" = set"; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 cat >conftest.$ac_ext <<_ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24518 #define $ac_func innocuous_$ac_func
24520 /* System header to define __stub macros and hopefully few prototypes,
24521 which can conflict with char $ac_func (); below.
24522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24523 <limits.h> exists even on freestanding compilers. */
24526 # include <limits.h>
24528 # include <assert.h>
24533 /* Override any gcc2 internal prototype to avoid an error. */
24538 /* We use char because int might match the return type of a gcc2
24539 builtin and then its argument prototype would still apply. */
24541 /* The GNU C library defines this for functions which it implements
24542 to always fail with ENOSYS. Some functions are actually named
24543 something starting with __ and the normal name is an alias. */
24544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24547 char (*f) () = $ac_func;
24556 return f != $ac_func;
24561 rm -f conftest.$ac_objext conftest$ac_exeext
24562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24563 (eval $ac_link) 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } &&
24570 { ac_try='test -z "$ac_c_werror_flag"
24571 || test ! -s conftest.err'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; } &&
24577 { ac_try='test -s conftest$ac_exeext'
24578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579 (eval $ac_try) 2>&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 eval "$as_ac_var=yes"
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 eval "$as_ac_var=no"
24590 rm -f conftest.err conftest.$ac_objext \
24591 conftest$ac_exeext conftest.$ac_ext
24593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24595 if test `eval echo '${'$as_ac_var'}'` = yes; then
24596 cat >>confdefs.h <<_ACEOF
24597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24606 for ac_func in pthread_kill_other_threads_np
24608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24609 echo "$as_me:$LINENO: checking for $ac_func" >&5
24610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24611 if eval "test \"\${$as_ac_var+set}\" = set"; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24622 #define $ac_func innocuous_$ac_func
24624 /* System header to define __stub macros and hopefully few prototypes,
24625 which can conflict with char $ac_func (); below.
24626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24627 <limits.h> exists even on freestanding compilers. */
24630 # include <limits.h>
24632 # include <assert.h>
24637 /* Override any gcc2 internal prototype to avoid an error. */
24642 /* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24645 /* The GNU C library defines this for functions which it implements
24646 to always fail with ENOSYS. Some functions are actually named
24647 something starting with __ and the normal name is an alias. */
24648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24651 char (*f) () = $ac_func;
24660 return f != $ac_func;
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24667 (eval $ac_link) 2>conftest.er1
24669 grep -v '^ *+' conftest.er1 >conftest.err
24671 cat conftest.err >&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } &&
24674 { ac_try='test -z "$ac_c_werror_flag"
24675 || test ! -s conftest.err'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; } &&
24681 { ac_try='test -s conftest$ac_exeext'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
24687 eval "$as_ac_var=yes"
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 eval "$as_ac_var=no"
24694 rm -f conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
24697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24699 if test `eval echo '${'$as_ac_var'}'` = yes; then
24700 cat >>confdefs.h <<_ACEOF
24701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24707 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24708 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24709 if test "${ol_cv_sys_linux_threads+set}" = set; then
24710 echo $ECHO_N "(cached) $ECHO_C" >&6
24712 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24714 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24715 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24720 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24721 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24722 if test "${ol_cv_linux_threads+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 if test $ol_cv_header_linux_threads = yes &&
24727 test $ol_cv_sys_linux_threads = yes; then
24728 ol_cv_linux_threads=yes
24729 elif test $ol_cv_header_linux_threads = no &&
24730 test $ol_cv_sys_linux_threads = no; then
24731 ol_cv_linux_threads=no
24733 ol_cv_linux_threads=error
24737 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24738 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24741 if test $ol_cv_linux_threads = error; then
24742 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24743 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24744 { (exit 1); exit 1; }; };
24747 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24748 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24749 if test "${ol_cv_pthread_create_works+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 if test "$cross_compiling" = yes; then
24754 ol_cv_pthread_create_works=yes
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24763 /* pthread test headers */
24764 #include <pthread.h>
24765 #if HAVE_PTHREADS < 7
24769 #define NULL (void*)0
24772 static void *task(p)
24775 return (void *) (p == NULL);
24779 int main(argc, argv)
24784 /* pthread test function */
24785 #ifndef PTHREAD_CREATE_DETACHED
24786 #define PTHREAD_CREATE_DETACHED 1
24790 int detach = PTHREAD_CREATE_DETACHED;
24792 #if HAVE_PTHREADS > 4
24793 /* Final pthreads */
24794 pthread_attr_t attr;
24796 status = pthread_attr_init(&attr);
24797 if( status ) return status;
24799 #if HAVE_PTHREADS < 7
24800 status = pthread_attr_setdetachstate(&attr, &detach);
24801 if( status < 0 ) status = errno;
24803 status = pthread_attr_setdetachstate(&attr, detach);
24805 if( status ) return status;
24806 status = pthread_create( &t, &attr, task, NULL );
24807 #if HAVE_PTHREADS < 7
24808 if( status < 0 ) status = errno;
24810 if( status ) return status;
24812 /* Draft 4 pthreads */
24813 status = pthread_create( &t, pthread_attr_default, task, NULL );
24814 if( status ) return errno;
24816 /* give thread a chance to complete */
24817 /* it should remain joinable and hence detachable */
24820 status = pthread_detach( &t );
24821 if( status ) return errno;
24824 #ifdef HAVE_LINUX_THREADS
24825 pthread_kill_other_threads_np();
24833 rm -f conftest$ac_exeext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24835 (eval $ac_link) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 ol_cv_pthread_create_works=yes
24846 echo "$as_me: program exited with status $ac_status" >&5
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ( exit $ac_status )
24851 ol_cv_pthread_create_works=no
24853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24857 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24859 if test $ol_cv_pthread_create_works = no ; then
24860 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24861 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24862 { (exit 1); exit 1; }; }
24865 ol_replace_broken_yield=no
24867 if test $ol_replace_broken_yield = yes ; then
24869 cat >>confdefs.h <<\_ACEOF
24870 #define REPLACE_BROKEN_YIELD 1
24875 if test $ol_with_yielding_select = auto ; then
24876 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24877 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24878 if test "${ol_cv_pthread_select_yields+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 if test "$cross_compiling" = yes; then
24883 ol_cv_pthread_select_yields=cross
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24892 #include <sys/types.h>
24893 #include <sys/time.h>
24894 #include <unistd.h>
24895 #include <pthread.h>
24897 #define NULL (void*) 0
24900 static int fildes[2];
24902 static void *task(p)
24914 FD_SET(fildes[0], &rfds);
24916 /* we're not interested in any fds */
24917 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24924 exit(0); /* if we exit here, the select blocked the whole process */
24927 int main(argc, argv)
24933 /* create a pipe to select */
24934 if(pipe(&fildes[0])) {
24939 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24940 (void) pthread_setconcurrency(2);
24942 #ifdef HAVE_THR_SETCONCURRENCY
24943 /* Set Solaris LWP concurrency to 2 */
24944 thr_setconcurrency(2);
24948 #if HAVE_PTHREADS < 6
24949 pthread_create(&t, pthread_attr_default, task, NULL);
24951 pthread_create(&t, NULL, task, NULL);
24954 /* make sure task runs first */
24957 #elif defined( HAVE_SCHED_YIELD )
24959 #elif defined( HAVE_PTHREAD_YIELD )
24966 rm -f conftest$ac_exeext
24967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24968 (eval $ac_link) 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973 (eval $ac_try) 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; }; then
24977 ol_cv_pthread_select_yields=no
24979 echo "$as_me: program exited with status $ac_status" >&5
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ( exit $ac_status )
24984 ol_cv_pthread_select_yields=yes
24986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24989 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24990 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24992 if test $ol_cv_pthread_select_yields = cross ; then
24993 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24994 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24995 { (exit 1); exit 1; }; }
24998 if test $ol_cv_pthread_select_yields = yes ; then
24999 ol_with_yielding_select=yes
25003 CPPFLAGS="$save_CPPFLAGS"
25006 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25007 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25008 { (exit 1); exit 1; }; }
25012 if test $ol_with_threads = posix ; then
25013 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25014 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25015 { (exit 1); exit 1; }; }
25020 case $ol_with_threads in auto | yes | mach)
25024 for ac_header in mach/cthreads.h cthreads.h
25026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25028 echo "$as_me:$LINENO: checking for $ac_header" >&5
25029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25031 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25036 # Is the header compilable?
25037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 $ac_includes_default
25046 #include <$ac_header>
25048 rm -f conftest.$ac_objext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25050 (eval $ac_compile) 2>conftest.er1
25052 grep -v '^ *+' conftest.er1 >conftest.err
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } &&
25057 { ac_try='test -z "$ac_c_werror_flag"
25058 || test ! -s conftest.err'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; } &&
25064 { ac_try='test -s conftest.$ac_objext'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_header_compiler=yes
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25075 ac_header_compiler=no
25077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25079 echo "${ECHO_T}$ac_header_compiler" >&6
25081 # Is the header present?
25082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25084 cat >conftest.$ac_ext <<_ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h. */
25090 #include <$ac_header>
25092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25095 grep -v '^ *+' conftest.er1 >conftest.err
25097 cat conftest.err >&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } >/dev/null; then
25100 if test -s conftest.err; then
25101 ac_cpp_err=$ac_c_preproc_warn_flag
25102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25109 if test -z "$ac_cpp_err"; then
25110 ac_header_preproc=yes
25112 echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25115 ac_header_preproc=no
25117 rm -f conftest.err conftest.$ac_ext
25118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25119 echo "${ECHO_T}$ac_header_preproc" >&6
25121 # So? What about this header?
25122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25128 ac_header_preproc=yes
25131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25145 ## --------------------------------------------- ##
25146 ## Report this to <http://www.openldap.org/its/> ##
25147 ## --------------------------------------------- ##
25150 sed "s/^/$as_me: WARNING: /" >&2
25153 echo "$as_me:$LINENO: checking for $ac_header" >&5
25154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 eval "$as_ac_Header=\$ac_header_preproc"
25160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25165 cat >>confdefs.h <<_ACEOF
25166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25173 if test $ac_cv_header_mach_cthreads_h = yes ; then
25174 ol_with_threads=found
25176 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25177 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25178 if test "${ac_cv_func_cthread_fork+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25189 #define cthread_fork innocuous_cthread_fork
25191 /* System header to define __stub macros and hopefully few prototypes,
25192 which can conflict with char cthread_fork (); below.
25193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25194 <limits.h> exists even on freestanding compilers. */
25197 # include <limits.h>
25199 # include <assert.h>
25202 #undef cthread_fork
25204 /* Override any gcc2 internal prototype to avoid an error. */
25209 /* We use char because int might match the return type of a gcc2
25210 builtin and then its argument prototype would still apply. */
25211 char cthread_fork ();
25212 /* The GNU C library defines this for functions which it implements
25213 to always fail with ENOSYS. Some functions are actually named
25214 something starting with __ and the normal name is an alias. */
25215 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25218 char (*f) () = cthread_fork;
25227 return f != cthread_fork;
25232 rm -f conftest.$ac_objext conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234 (eval $ac_link) 2>conftest.er1
25236 grep -v '^ *+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
25241 { ac_try='test -z "$ac_c_werror_flag"
25242 || test ! -s conftest.err'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest$ac_exeext'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; }; then
25254 ac_cv_func_cthread_fork=yes
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_cv_func_cthread_fork=no
25261 rm -f conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25264 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25265 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25266 if test $ac_cv_func_cthread_fork = yes; then
25267 ol_link_threads=yes
25271 if test $ol_link_threads = no ; then
25272 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25273 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25274 if test "${ol_cv_cthread_all_load+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 LIBS="-all_load $LIBS"
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 #include <mach/cthreads.h>
25291 cthread_fork((void *)0, (void *)0);
25297 rm -f conftest.$ac_objext conftest$ac_exeext
25298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25299 (eval $ac_link) 2>conftest.er1
25301 grep -v '^ *+' conftest.er1 >conftest.err
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } &&
25306 { ac_try='test -z "$ac_c_werror_flag"
25307 || test ! -s conftest.err'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; } &&
25313 { ac_try='test -s conftest$ac_exeext'
25314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315 (eval $ac_try) 2>&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; }; then
25319 ol_cv_cthread_all_load=yes
25321 echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 ol_cv_cthread_all_load=no
25326 rm -f conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25331 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25332 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25334 if test $ol_cv_cthread_all_load = yes ; then
25335 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25336 ol_link_threads=mach
25337 ol_with_threads=found
25341 elif test $ac_cv_header_cthreads_h = yes ; then
25343 ol_with_threads=found
25346 LIBS="$LIBS -lthreads"
25347 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25348 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25349 if test "${ac_cv_func_cthread_fork+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25360 #define cthread_fork innocuous_cthread_fork
25362 /* System header to define __stub macros and hopefully few prototypes,
25363 which can conflict with char cthread_fork (); below.
25364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25365 <limits.h> exists even on freestanding compilers. */
25368 # include <limits.h>
25370 # include <assert.h>
25373 #undef cthread_fork
25375 /* Override any gcc2 internal prototype to avoid an error. */
25380 /* We use char because int might match the return type of a gcc2
25381 builtin and then its argument prototype would still apply. */
25382 char cthread_fork ();
25383 /* The GNU C library defines this for functions which it implements
25384 to always fail with ENOSYS. Some functions are actually named
25385 something starting with __ and the normal name is an alias. */
25386 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25389 char (*f) () = cthread_fork;
25398 return f != cthread_fork;
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405 (eval $ac_link) 2>conftest.er1
25407 grep -v '^ *+' conftest.er1 >conftest.err
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } &&
25412 { ac_try='test -z "$ac_c_werror_flag"
25413 || test ! -s conftest.err'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; } &&
25419 { ac_try='test -s conftest$ac_exeext'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 ac_cv_func_cthread_fork=yes
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ac_cv_func_cthread_fork=no
25432 rm -f conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
25435 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25436 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25437 if test $ac_cv_func_cthread_fork = yes; then
25438 ol_link_threads=yes
25443 if test $ol_link_threads = yes ; then
25444 LTHREAD_LIBS="-lthreads"
25445 ol_link_threads=mach
25446 ol_with_threads=found
25448 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25449 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25450 { (exit 1); exit 1; }; }
25453 elif test $ol_with_threads = mach ; then
25454 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25455 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25456 { (exit 1); exit 1; }; }
25459 if test $ol_link_threads = mach ; then
25461 cat >>confdefs.h <<\_ACEOF
25462 #define HAVE_MACH_CTHREADS 1
25465 elif test $ol_with_threads = found ; then
25466 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25467 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25468 { (exit 1); exit 1; }; }
25473 case $ol_with_threads in auto | yes | pth)
25476 for ac_header in pth.h
25478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25480 echo "$as_me:$LINENO: checking for $ac_header" >&5
25481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25488 # Is the header compilable?
25489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25491 cat >conftest.$ac_ext <<_ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h. */
25497 $ac_includes_default
25498 #include <$ac_header>
25500 rm -f conftest.$ac_objext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25502 (eval $ac_compile) 2>conftest.er1
25504 grep -v '^ *+' conftest.er1 >conftest.err
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest.$ac_objext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_header_compiler=yes
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 ac_header_compiler=no
25529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25531 echo "${ECHO_T}$ac_header_compiler" >&6
25533 # Is the header present?
25534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25536 cat >conftest.$ac_ext <<_ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h. */
25542 #include <$ac_header>
25544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25547 grep -v '^ *+' conftest.er1 >conftest.err
25549 cat conftest.err >&5
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); } >/dev/null; then
25552 if test -s conftest.err; then
25553 ac_cpp_err=$ac_c_preproc_warn_flag
25554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25561 if test -z "$ac_cpp_err"; then
25562 ac_header_preproc=yes
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_header_preproc=no
25569 rm -f conftest.err conftest.$ac_ext
25570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25571 echo "${ECHO_T}$ac_header_preproc" >&6
25573 # So? What about this header?
25574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25580 ac_header_preproc=yes
25583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25597 ## --------------------------------------------- ##
25598 ## Report this to <http://www.openldap.org/its/> ##
25599 ## --------------------------------------------- ##
25602 sed "s/^/$as_me: WARNING: /" >&2
25605 echo "$as_me:$LINENO: checking for $ac_header" >&5
25606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25610 eval "$as_ac_Header=\$ac_header_preproc"
25612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25617 cat >>confdefs.h <<_ACEOF
25618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25626 if test $ac_cv_header_pth_h = yes ; then
25627 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25628 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25629 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 ac_check_lib_save_LIBS=$LIBS
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25641 /* Override any gcc2 internal prototype to avoid an error. */
25645 /* We use char because int might match the return type of a gcc2
25646 builtin and then its argument prototype would still apply. */
25647 char pth_version ();
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658 (eval $ac_link) 2>conftest.er1
25660 grep -v '^ *+' conftest.er1 >conftest.err
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } &&
25665 { ac_try='test -z "$ac_c_werror_flag"
25666 || test ! -s conftest.err'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; } &&
25672 { ac_try='test -s conftest$ac_exeext'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; }; then
25678 ac_cv_lib_pth_pth_version=yes
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ac_cv_lib_pth_pth_version=no
25685 rm -f conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
25687 LIBS=$ac_check_lib_save_LIBS
25689 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25690 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25691 if test $ac_cv_lib_pth_pth_version = yes; then
25698 if test $have_pth = yes ; then
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_GNU_PTH 1
25704 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25705 ol_link_threads=pth
25706 ol_with_threads=found
25708 if test $ol_with_yielding_select = auto ; then
25709 ol_with_yielding_select=yes
25716 case $ol_with_threads in auto | yes | lwp)
25720 for ac_header in thread.h synch.h
25722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25724 echo "$as_me:$LINENO: checking for $ac_header" >&5
25725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25732 # Is the header compilable?
25733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 $ac_includes_default
25742 #include <$ac_header>
25744 rm -f conftest.$ac_objext
25745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25746 (eval $ac_compile) 2>conftest.er1
25748 grep -v '^ *+' conftest.er1 >conftest.err
25750 cat conftest.err >&5
25751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } &&
25753 { ac_try='test -z "$ac_c_werror_flag"
25754 || test ! -s conftest.err'
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; } &&
25760 { ac_try='test -s conftest.$ac_objext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_header_compiler=yes
25768 echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25771 ac_header_compiler=no
25773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25775 echo "${ECHO_T}$ac_header_compiler" >&6
25777 # Is the header present?
25778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25780 cat >conftest.$ac_ext <<_ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h. */
25786 #include <$ac_header>
25788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25791 grep -v '^ *+' conftest.er1 >conftest.err
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } >/dev/null; then
25796 if test -s conftest.err; then
25797 ac_cpp_err=$ac_c_preproc_warn_flag
25798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25805 if test -z "$ac_cpp_err"; then
25806 ac_header_preproc=yes
25808 echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 ac_header_preproc=no
25813 rm -f conftest.err conftest.$ac_ext
25814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25815 echo "${ECHO_T}$ac_header_preproc" >&6
25817 # So? What about this header?
25818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25824 ac_header_preproc=yes
25827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25841 ## --------------------------------------------- ##
25842 ## Report this to <http://www.openldap.org/its/> ##
25843 ## --------------------------------------------- ##
25846 sed "s/^/$as_me: WARNING: /" >&2
25849 echo "$as_me:$LINENO: checking for $ac_header" >&5
25850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25854 eval "$as_ac_Header=\$ac_header_preproc"
25856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25861 cat >>confdefs.h <<_ACEOF
25862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25869 if test $ac_cv_header_thread_h = yes &&
25870 test $ac_cv_header_synch_h = yes ; then
25871 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25872 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25873 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25876 ac_check_lib_save_LIBS=$LIBS
25877 LIBS="-lthread $LIBS"
25878 cat >conftest.$ac_ext <<_ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h. */
25885 /* Override any gcc2 internal prototype to avoid an error. */
25889 /* We use char because int might match the return type of a gcc2
25890 builtin and then its argument prototype would still apply. */
25891 char thr_create ();
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25902 (eval $ac_link) 2>conftest.er1
25904 grep -v '^ *+' conftest.er1 >conftest.err
25906 cat conftest.err >&5
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
25909 { ac_try='test -z "$ac_c_werror_flag"
25910 || test ! -s conftest.err'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; } &&
25916 { ac_try='test -s conftest$ac_exeext'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; }; then
25922 ac_cv_lib_thread_thr_create=yes
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25927 ac_cv_lib_thread_thr_create=no
25929 rm -f conftest.err conftest.$ac_objext \
25930 conftest$ac_exeext conftest.$ac_ext
25931 LIBS=$ac_check_lib_save_LIBS
25933 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25934 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25935 if test $ac_cv_lib_thread_thr_create = yes; then
25942 if test $have_thr = yes ; then
25944 cat >>confdefs.h <<\_ACEOF
25948 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25949 ol_link_threads=thr
25951 if test $ol_with_yielding_select = auto ; then
25952 ol_with_yielding_select=yes
25958 thr_setconcurrency \
25959 thr_getconcurrency \
25962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25963 echo "$as_me:$LINENO: checking for $ac_func" >&5
25964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25965 if eval "test \"\${$as_ac_var+set}\" = set"; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
25968 cat >conftest.$ac_ext <<_ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h. */
25974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25976 #define $ac_func innocuous_$ac_func
25978 /* System header to define __stub macros and hopefully few prototypes,
25979 which can conflict with char $ac_func (); below.
25980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25981 <limits.h> exists even on freestanding compilers. */
25984 # include <limits.h>
25986 # include <assert.h>
25991 /* Override any gcc2 internal prototype to avoid an error. */
25996 /* We use char because int might match the return type of a gcc2
25997 builtin and then its argument prototype would still apply. */
25999 /* The GNU C library defines this for functions which it implements
26000 to always fail with ENOSYS. Some functions are actually named
26001 something starting with __ and the normal name is an alias. */
26002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26005 char (*f) () = $ac_func;
26014 return f != $ac_func;
26019 rm -f conftest.$ac_objext conftest$ac_exeext
26020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021 (eval $ac_link) 2>conftest.er1
26023 grep -v '^ *+' conftest.er1 >conftest.err
26025 cat conftest.err >&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); } &&
26028 { ac_try='test -z "$ac_c_werror_flag"
26029 || test ! -s conftest.err'
26030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031 (eval $ac_try) 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); }; } &&
26035 { ac_try='test -s conftest$ac_exeext'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 eval "$as_ac_var=yes"
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 eval "$as_ac_var=no"
26048 rm -f conftest.err conftest.$ac_objext \
26049 conftest$ac_exeext conftest.$ac_ext
26051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26053 if test `eval echo '${'$as_ac_var'}'` = yes; then
26054 cat >>confdefs.h <<_ACEOF
26055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26065 for ac_header in lwp/lwp.h
26067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26069 echo "$as_me:$LINENO: checking for $ac_header" >&5
26070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26072 echo $ECHO_N "(cached) $ECHO_C" >&6
26074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26077 # Is the header compilable?
26078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26080 cat >conftest.$ac_ext <<_ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26086 $ac_includes_default
26087 #include <$ac_header>
26089 rm -f conftest.$ac_objext
26090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26091 (eval $ac_compile) 2>conftest.er1
26093 grep -v '^ *+' conftest.er1 >conftest.err
26095 cat conftest.err >&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } &&
26098 { ac_try='test -z "$ac_c_werror_flag"
26099 || test ! -s conftest.err'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; } &&
26105 { ac_try='test -s conftest.$ac_objext'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; }; then
26111 ac_header_compiler=yes
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 ac_header_compiler=no
26118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26120 echo "${ECHO_T}$ac_header_compiler" >&6
26122 # Is the header present?
26123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26125 cat >conftest.$ac_ext <<_ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 #include <$ac_header>
26133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } >/dev/null; then
26141 if test -s conftest.err; then
26142 ac_cpp_err=$ac_c_preproc_warn_flag
26143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26150 if test -z "$ac_cpp_err"; then
26151 ac_header_preproc=yes
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ac_header_preproc=no
26158 rm -f conftest.err conftest.$ac_ext
26159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26160 echo "${ECHO_T}$ac_header_preproc" >&6
26162 # So? What about this header?
26163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26169 ac_header_preproc=yes
26172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26186 ## --------------------------------------------- ##
26187 ## Report this to <http://www.openldap.org/its/> ##
26188 ## --------------------------------------------- ##
26191 sed "s/^/$as_me: WARNING: /" >&2
26194 echo "$as_me:$LINENO: checking for $ac_header" >&5
26195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26197 echo $ECHO_N "(cached) $ECHO_C" >&6
26199 eval "$as_ac_Header=\$ac_header_preproc"
26201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26206 cat >>confdefs.h <<_ACEOF
26207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26214 if test $ac_cv_header_lwp_lwp_h = yes ; then
26215 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26216 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26217 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26220 ac_check_lib_save_LIBS=$LIBS
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26229 /* Override any gcc2 internal prototype to avoid an error. */
26233 /* We use char because int might match the return type of a gcc2
26234 builtin and then its argument prototype would still apply. */
26235 char lwp_create ();
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246 (eval $ac_link) 2>conftest.er1
26248 grep -v '^ *+' conftest.er1 >conftest.err
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
26253 { ac_try='test -z "$ac_c_werror_flag"
26254 || test ! -s conftest.err'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } &&
26260 { ac_try='test -s conftest$ac_exeext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 ac_cv_lib_lwp_lwp_create=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_cv_lib_lwp_lwp_create=no
26273 rm -f conftest.err conftest.$ac_objext \
26274 conftest$ac_exeext conftest.$ac_ext
26275 LIBS=$ac_check_lib_save_LIBS
26277 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26278 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26279 if test $ac_cv_lib_lwp_lwp_create = yes; then
26286 if test $have_lwp = yes ; then
26288 cat >>confdefs.h <<\_ACEOF
26292 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26293 ol_link_threads=lwp
26295 if test $ol_with_yielding_select = auto ; then
26296 ol_with_yielding_select=no
26303 if test $ol_with_yielding_select = yes ; then
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_YIELDING_SELECT 1
26311 if test $ol_with_threads = manual ; then
26312 ol_link_threads=yes
26314 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26315 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26319 for ac_header in pthread.h sched.h
26321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26323 echo "$as_me:$LINENO: checking for $ac_header" >&5
26324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26326 echo $ECHO_N "(cached) $ECHO_C" >&6
26328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26331 # Is the header compilable?
26332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 $ac_includes_default
26341 #include <$ac_header>
26343 rm -f conftest.$ac_objext
26344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26345 (eval $ac_compile) 2>conftest.er1
26347 grep -v '^ *+' conftest.er1 >conftest.err
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } &&
26352 { ac_try='test -z "$ac_c_werror_flag"
26353 || test ! -s conftest.err'
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; } &&
26359 { ac_try='test -s conftest.$ac_objext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26365 ac_header_compiler=yes
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26370 ac_header_compiler=no
26372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26374 echo "${ECHO_T}$ac_header_compiler" >&6
26376 # Is the header present?
26377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26379 cat >conftest.$ac_ext <<_ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h. */
26385 #include <$ac_header>
26387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } >/dev/null; then
26395 if test -s conftest.err; then
26396 ac_cpp_err=$ac_c_preproc_warn_flag
26397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26404 if test -z "$ac_cpp_err"; then
26405 ac_header_preproc=yes
26407 echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_header_preproc=no
26412 rm -f conftest.err conftest.$ac_ext
26413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26414 echo "${ECHO_T}$ac_header_preproc" >&6
26416 # So? What about this header?
26417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26423 ac_header_preproc=yes
26426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26440 ## --------------------------------------------- ##
26441 ## Report this to <http://www.openldap.org/its/> ##
26442 ## --------------------------------------------- ##
26445 sed "s/^/$as_me: WARNING: /" >&2
26448 echo "$as_me:$LINENO: checking for $ac_header" >&5
26449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 eval "$as_ac_Header=\$ac_header_preproc"
26455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26460 cat >>confdefs.h <<_ACEOF
26461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26470 for ac_func in sched_yield pthread_yield
26472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26473 echo "$as_me:$LINENO: checking for $ac_func" >&5
26474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26475 if eval "test \"\${$as_ac_var+set}\" = set"; then
26476 echo $ECHO_N "(cached) $ECHO_C" >&6
26478 cat >conftest.$ac_ext <<_ACEOF
26481 cat confdefs.h >>conftest.$ac_ext
26482 cat >>conftest.$ac_ext <<_ACEOF
26483 /* end confdefs.h. */
26484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26486 #define $ac_func innocuous_$ac_func
26488 /* System header to define __stub macros and hopefully few prototypes,
26489 which can conflict with char $ac_func (); below.
26490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26491 <limits.h> exists even on freestanding compilers. */
26494 # include <limits.h>
26496 # include <assert.h>
26501 /* Override any gcc2 internal prototype to avoid an error. */
26506 /* We use char because int might match the return type of a gcc2
26507 builtin and then its argument prototype would still apply. */
26509 /* The GNU C library defines this for functions which it implements
26510 to always fail with ENOSYS. Some functions are actually named
26511 something starting with __ and the normal name is an alias. */
26512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26515 char (*f) () = $ac_func;
26524 return f != $ac_func;
26529 rm -f conftest.$ac_objext conftest$ac_exeext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26531 (eval $ac_link) 2>conftest.er1
26533 grep -v '^ *+' conftest.er1 >conftest.err
26535 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
26538 { ac_try='test -z "$ac_c_werror_flag"
26539 || test ! -s conftest.err'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; } &&
26545 { ac_try='test -s conftest$ac_exeext'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; }; then
26551 eval "$as_ac_var=yes"
26553 echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26556 eval "$as_ac_var=no"
26558 rm -f conftest.err conftest.$ac_objext \
26559 conftest$ac_exeext conftest.$ac_ext
26561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26563 if test `eval echo '${'$as_ac_var'}'` = yes; then
26564 cat >>confdefs.h <<_ACEOF
26565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26572 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26573 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26574 if test "${ol_cv_header_linux_threads+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 #include <pthread.h>
26585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26586 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26587 ol_cv_header_linux_threads=yes
26589 ol_cv_header_linux_threads=no
26595 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26596 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26597 if test $ol_cv_header_linux_threads = yes; then
26599 cat >>confdefs.h <<\_ACEOF
26600 #define HAVE_LINUX_THREADS 1
26607 for ac_header in mach/cthreads.h
26609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26611 echo "$as_me:$LINENO: checking for $ac_header" >&5
26612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614 echo $ECHO_N "(cached) $ECHO_C" >&6
26616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26619 # Is the header compilable?
26620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26622 cat >conftest.$ac_ext <<_ACEOF
26625 cat confdefs.h >>conftest.$ac_ext
26626 cat >>conftest.$ac_ext <<_ACEOF
26627 /* end confdefs.h. */
26628 $ac_includes_default
26629 #include <$ac_header>
26631 rm -f conftest.$ac_objext
26632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26633 (eval $ac_compile) 2>conftest.er1
26635 grep -v '^ *+' conftest.er1 >conftest.err
26637 cat conftest.err >&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); } &&
26640 { ac_try='test -z "$ac_c_werror_flag"
26641 || test ! -s conftest.err'
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; } &&
26647 { ac_try='test -s conftest.$ac_objext'
26648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649 (eval $ac_try) 2>&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); }; }; then
26653 ac_header_compiler=yes
26655 echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26658 ac_header_compiler=no
26660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26662 echo "${ECHO_T}$ac_header_compiler" >&6
26664 # Is the header present?
26665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26667 cat >conftest.$ac_ext <<_ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 #include <$ac_header>
26675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } >/dev/null; then
26683 if test -s conftest.err; then
26684 ac_cpp_err=$ac_c_preproc_warn_flag
26685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26692 if test -z "$ac_cpp_err"; then
26693 ac_header_preproc=yes
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 ac_header_preproc=no
26700 rm -f conftest.err conftest.$ac_ext
26701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26702 echo "${ECHO_T}$ac_header_preproc" >&6
26704 # So? What about this header?
26705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26711 ac_header_preproc=yes
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26728 ## --------------------------------------------- ##
26729 ## Report this to <http://www.openldap.org/its/> ##
26730 ## --------------------------------------------- ##
26733 sed "s/^/$as_me: WARNING: /" >&2
26736 echo "$as_me:$LINENO: checking for $ac_header" >&5
26737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 eval "$as_ac_Header=\$ac_header_preproc"
26743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26748 cat >>confdefs.h <<_ACEOF
26749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26757 for ac_header in lwp/lwp.h
26759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26761 echo "$as_me:$LINENO: checking for $ac_header" >&5
26762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26769 # Is the header compilable?
26770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26772 cat >conftest.$ac_ext <<_ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h. */
26778 $ac_includes_default
26779 #include <$ac_header>
26781 rm -f conftest.$ac_objext
26782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26783 (eval $ac_compile) 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } &&
26790 { ac_try='test -z "$ac_c_werror_flag"
26791 || test ! -s conftest.err'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; } &&
26797 { ac_try='test -s conftest.$ac_objext'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; }; then
26803 ac_header_compiler=yes
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 ac_header_compiler=no
26810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26812 echo "${ECHO_T}$ac_header_compiler" >&6
26814 # Is the header present?
26815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26817 cat >conftest.$ac_ext <<_ACEOF
26820 cat confdefs.h >>conftest.$ac_ext
26821 cat >>conftest.$ac_ext <<_ACEOF
26822 /* end confdefs.h. */
26823 #include <$ac_header>
26825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26828 grep -v '^ *+' conftest.er1 >conftest.err
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } >/dev/null; then
26833 if test -s conftest.err; then
26834 ac_cpp_err=$ac_c_preproc_warn_flag
26835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26842 if test -z "$ac_cpp_err"; then
26843 ac_header_preproc=yes
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 ac_header_preproc=no
26850 rm -f conftest.err conftest.$ac_ext
26851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26852 echo "${ECHO_T}$ac_header_preproc" >&6
26854 # So? What about this header?
26855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26861 ac_header_preproc=yes
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26878 ## --------------------------------------------- ##
26879 ## Report this to <http://www.openldap.org/its/> ##
26880 ## --------------------------------------------- ##
26883 sed "s/^/$as_me: WARNING: /" >&2
26886 echo "$as_me:$LINENO: checking for $ac_header" >&5
26887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 eval "$as_ac_Header=\$ac_header_preproc"
26893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26898 cat >>confdefs.h <<_ACEOF
26899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26908 for ac_header in thread.h synch.h
26910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26912 echo "$as_me:$LINENO: checking for $ac_header" >&5
26913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915 echo $ECHO_N "(cached) $ECHO_C" >&6
26917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26920 # Is the header compilable?
26921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 $ac_includes_default
26930 #include <$ac_header>
26932 rm -f conftest.$ac_objext
26933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934 (eval $ac_compile) 2>conftest.er1
26936 grep -v '^ *+' conftest.er1 >conftest.err
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
26941 { ac_try='test -z "$ac_c_werror_flag"
26942 || test ! -s conftest.err'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; } &&
26948 { ac_try='test -s conftest.$ac_objext'
26949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950 (eval $ac_try) 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 ac_header_compiler=yes
26956 echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26959 ac_header_compiler=no
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26963 echo "${ECHO_T}$ac_header_compiler" >&6
26965 # Is the header present?
26966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26974 #include <$ac_header>
26976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26979 grep -v '^ *+' conftest.er1 >conftest.err
26981 cat conftest.err >&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); } >/dev/null; then
26984 if test -s conftest.err; then
26985 ac_cpp_err=$ac_c_preproc_warn_flag
26986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26993 if test -z "$ac_cpp_err"; then
26994 ac_header_preproc=yes
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 ac_header_preproc=no
27001 rm -f conftest.err conftest.$ac_ext
27002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27003 echo "${ECHO_T}$ac_header_preproc" >&6
27005 # So? What about this header?
27006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27012 ac_header_preproc=yes
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27029 ## --------------------------------------------- ##
27030 ## Report this to <http://www.openldap.org/its/> ##
27031 ## --------------------------------------------- ##
27034 sed "s/^/$as_me: WARNING: /" >&2
27037 echo "$as_me:$LINENO: checking for $ac_header" >&5
27038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27042 eval "$as_ac_Header=\$ac_header_preproc"
27044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27049 cat >>confdefs.h <<_ACEOF
27050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27059 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27060 cat >>confdefs.h <<\_ACEOF
27061 #define REENTRANT 1
27064 cat >>confdefs.h <<\_ACEOF
27065 #define _REENTRANT 1
27068 cat >>confdefs.h <<\_ACEOF
27069 #define THREAD_SAFE 1
27072 cat >>confdefs.h <<\_ACEOF
27073 #define _THREAD_SAFE 1
27076 cat >>confdefs.h <<\_ACEOF
27077 #define THREADSAFE 1
27080 cat >>confdefs.h <<\_ACEOF
27081 #define _THREADSAFE 1
27084 cat >>confdefs.h <<\_ACEOF
27085 #define _SGI_MP_SOURCE 1
27089 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27090 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27091 if test "${ol_cv_errno_thread_specific+set}" = set; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27110 rm -f conftest.$ac_objext conftest$ac_exeext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112 (eval $ac_link) 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ol_cv_errno_thread_specific=yes
27134 echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27137 ol_cv_errno_thread_specific=no
27139 rm -f conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
27143 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27144 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27146 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27147 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27148 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27152 cat >conftest.$ac_ext <<_ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27167 rm -f conftest.$ac_objext conftest$ac_exeext
27168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27169 (eval $ac_link) 2>conftest.er1
27171 grep -v '^ *+' conftest.er1 >conftest.err
27173 cat conftest.err >&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } &&
27176 { ac_try='test -z "$ac_c_werror_flag"
27177 || test ! -s conftest.err'
27178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179 (eval $ac_try) 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; } &&
27183 { ac_try='test -s conftest$ac_exeext'
27184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185 (eval $ac_try) 2>&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; }; then
27189 ol_cv_h_errno_thread_specific=yes
27191 echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 ol_cv_h_errno_thread_specific=no
27196 rm -f conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
27200 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27201 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27203 if test $ol_cv_errno_thread_specific != yes ||
27204 test $ol_cv_h_errno_thread_specific != yes ; then
27205 LIBS="$LTHREAD_LIBS $LIBS"
27211 if test $ol_link_threads = no ; then
27212 if test $ol_with_threads = yes ; then
27213 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27214 echo "$as_me: error: no suitable thread support" >&2;}
27215 { (exit 1); exit 1; }; }
27218 if test $ol_with_threads = auto ; then
27219 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27220 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27225 cat >>confdefs.h <<\_ACEOF
27226 #define NO_THREADS 1
27235 if test $ol_link_threads != no ; then
27237 cat >>confdefs.h <<\_ACEOF
27238 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27248 gethostbyname_r gethostbyaddr_r \
27251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27252 echo "$as_me:$LINENO: checking for $ac_func" >&5
27253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27254 if eval "test \"\${$as_ac_var+set}\" = set"; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27265 #define $ac_func innocuous_$ac_func
27267 /* System header to define __stub macros and hopefully few prototypes,
27268 which can conflict with char $ac_func (); below.
27269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27270 <limits.h> exists even on freestanding compilers. */
27273 # include <limits.h>
27275 # include <assert.h>
27280 /* Override any gcc2 internal prototype to avoid an error. */
27285 /* We use char because int might match the return type of a gcc2
27286 builtin and then its argument prototype would still apply. */
27288 /* The GNU C library defines this for functions which it implements
27289 to always fail with ENOSYS. Some functions are actually named
27290 something starting with __ and the normal name is an alias. */
27291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27294 char (*f) () = $ac_func;
27303 return f != $ac_func;
27308 rm -f conftest.$ac_objext conftest$ac_exeext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27310 (eval $ac_link) 2>conftest.er1
27312 grep -v '^ *+' conftest.er1 >conftest.err
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } &&
27317 { ac_try='test -z "$ac_c_werror_flag"
27318 || test ! -s conftest.err'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; } &&
27324 { ac_try='test -s conftest$ac_exeext'
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27330 eval "$as_ac_var=yes"
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335 eval "$as_ac_var=no"
27337 rm -f conftest.err conftest.$ac_objext \
27338 conftest$ac_exeext conftest.$ac_ext
27340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27342 if test `eval echo '${'$as_ac_var'}'` = yes; then
27343 cat >>confdefs.h <<_ACEOF
27344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27351 if test "$ac_cv_func_ctime_r" = no ; then
27352 ol_cv_func_ctime_r_nargs=0
27354 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27355 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27356 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27357 echo $ECHO_N "(cached) $ECHO_C" >&6
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27369 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27374 rm -f conftest.$ac_objext
27375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27376 (eval $ac_compile) 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } &&
27383 { ac_try='test -z "$ac_c_werror_flag"
27384 || test ! -s conftest.err'
27385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386 (eval $ac_try) 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest.$ac_objext'
27391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392 (eval $ac_try) 2>&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; }; then
27396 ol_cv_func_ctime_r_nargs3=yes
27398 echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ol_cv_func_ctime_r_nargs3=no
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27405 cat >conftest.$ac_ext <<_ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h. */
27415 time_t ti; char *buffer; ctime_r(&ti,buffer);
27420 rm -f conftest.$ac_objext
27421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27422 (eval $ac_compile) 2>conftest.er1
27424 grep -v '^ *+' conftest.er1 >conftest.err
27426 cat conftest.err >&5
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } &&
27429 { ac_try='test -z "$ac_c_werror_flag"
27430 || test ! -s conftest.err'
27431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27432 (eval $ac_try) 2>&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); }; } &&
27436 { ac_try='test -s conftest.$ac_objext'
27437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438 (eval $ac_try) 2>&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; }; then
27442 ol_cv_func_ctime_r_nargs2=yes
27444 echo "$as_me: failed program was:" >&5
27445 sed 's/^/| /' conftest.$ac_ext >&5
27447 ol_cv_func_ctime_r_nargs2=no
27449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27451 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27452 test $ol_cv_func_ctime_r_nargs2 = no ; then
27454 ol_cv_func_ctime_r_nargs=3
27456 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27457 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27459 ol_cv_func_ctime_r_nargs=2
27462 ol_cv_func_ctime_r_nargs=0
27466 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27467 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27469 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27471 cat >>confdefs.h <<_ACEOF
27472 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27479 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27480 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27481 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27482 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27483 echo $ECHO_N "(cached) $ECHO_C" >&6
27485 cat >conftest.$ac_ext <<_ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27491 #include <sys/types.h>
27492 #include <sys/socket.h>
27493 #include <netinet/in.h>
27495 #define BUFSIZE (sizeof(struct hostent)+10)
27499 struct hostent hent; char buffer[BUFSIZE];
27500 int bufsize=BUFSIZE;int h_errno;
27501 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27502 buffer, bufsize, &h_errno);
27507 rm -f conftest.$ac_objext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27509 (eval $ac_compile) 2>conftest.er1
27511 grep -v '^ *+' conftest.er1 >conftest.err
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } &&
27516 { ac_try='test -z "$ac_c_werror_flag"
27517 || test ! -s conftest.err'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
27523 { ac_try='test -s conftest.$ac_objext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 ol_cv_func_gethostbyname_r_nargs5=yes
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534 ol_cv_func_gethostbyname_r_nargs5=no
27536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27544 #include <sys/types.h>
27545 #include <sys/socket.h>
27546 #include <netinet/in.h>
27548 #define BUFSIZE (sizeof(struct hostent)+10)
27552 struct hostent hent;struct hostent *rhent;
27553 char buffer[BUFSIZE];
27554 int bufsize=BUFSIZE;int h_errno;
27555 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27561 rm -f conftest.$ac_objext
27562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27563 (eval $ac_compile) 2>conftest.er1
27565 grep -v '^ *+' conftest.er1 >conftest.err
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag"
27571 || test ! -s conftest.err'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest.$ac_objext'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
27583 ol_cv_func_gethostbyname_r_nargs6=yes
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27588 ol_cv_func_gethostbyname_r_nargs6=no
27590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27592 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27593 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27595 ol_cv_func_gethostbyname_r_nargs=5
27597 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27598 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27600 ol_cv_func_gethostbyname_r_nargs=6
27603 ol_cv_func_gethostbyname_r_nargs=0
27607 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27608 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27609 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27611 cat >>confdefs.h <<_ACEOF
27612 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27618 ol_cv_func_gethostbyname_r_nargs=0
27621 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27622 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27623 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27624 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 #include <sys/types.h>
27634 #include <sys/socket.h>
27635 #include <netinet/in.h>
27637 #define BUFSIZE (sizeof(struct hostent)+10)
27641 struct hostent hent; char buffer[BUFSIZE];
27642 struct in_addr add;
27643 size_t alen=sizeof(struct in_addr);
27644 int bufsize=BUFSIZE;int h_errno;
27645 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27646 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653 (eval $ac_compile) 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag"
27661 || test ! -s conftest.err'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; } &&
27667 { ac_try='test -s conftest.$ac_objext'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27673 ol_cv_func_gethostbyaddr_r_nargs7=yes
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 ol_cv_func_gethostbyaddr_r_nargs7=no
27680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27682 cat >conftest.$ac_ext <<_ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h. */
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27690 #include <netinet/in.h>
27692 #define BUFSIZE (sizeof(struct hostent)+10)
27696 struct hostent hent;
27697 struct hostent *rhent; char buffer[BUFSIZE];
27698 struct in_addr add;
27699 size_t alen=sizeof(struct in_addr);
27700 int bufsize=BUFSIZE;int h_errno;
27701 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27702 alen, AF_INET, &hent, buffer, bufsize,
27708 rm -f conftest.$ac_objext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27710 (eval $ac_compile) 2>conftest.er1
27712 grep -v '^ *+' conftest.er1 >conftest.err
27714 cat conftest.err >&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
27717 { ac_try='test -z "$ac_c_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest.$ac_objext'
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ol_cv_func_gethostbyaddr_r_nargs8=yes
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27735 ol_cv_func_gethostbyaddr_r_nargs8=no
27737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27739 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27740 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27742 ol_cv_func_gethostbyaddr_r_nargs=7
27744 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27745 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27747 ol_cv_func_gethostbyaddr_r_nargs=8
27750 ol_cv_func_gethostbyaddr_r_nargs=0
27754 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27755 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27756 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27758 cat >>confdefs.h <<_ACEOF
27759 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27765 ol_cv_func_gethostbyaddr_r_nargs=0
27770 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27772 if test $ol_enable_ldbm_api = bcompat; then \
27775 for ac_header in db_185.h db.h
27777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27779 echo "$as_me:$LINENO: checking for $ac_header" >&5
27780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27787 # Is the header compilable?
27788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27796 $ac_includes_default
27797 #include <$ac_header>
27799 rm -f conftest.$ac_objext
27800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27801 (eval $ac_compile) 2>conftest.er1
27803 grep -v '^ *+' conftest.er1 >conftest.err
27805 cat conftest.err >&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); } &&
27808 { ac_try='test -z "$ac_c_werror_flag"
27809 || test ! -s conftest.err'
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; } &&
27815 { ac_try='test -s conftest.$ac_objext'
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
27821 ac_header_compiler=yes
27823 echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27826 ac_header_compiler=no
27828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27830 echo "${ECHO_T}$ac_header_compiler" >&6
27832 # Is the header present?
27833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27835 cat >conftest.$ac_ext <<_ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h. */
27841 #include <$ac_header>
27843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27846 grep -v '^ *+' conftest.er1 >conftest.err
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } >/dev/null; then
27851 if test -s conftest.err; then
27852 ac_cpp_err=$ac_c_preproc_warn_flag
27853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27860 if test -z "$ac_cpp_err"; then
27861 ac_header_preproc=yes
27863 echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27866 ac_header_preproc=no
27868 rm -f conftest.err conftest.$ac_ext
27869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27870 echo "${ECHO_T}$ac_header_preproc" >&6
27872 # So? What about this header?
27873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27879 ac_header_preproc=yes
27882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27896 ## --------------------------------------------- ##
27897 ## Report this to <http://www.openldap.org/its/> ##
27898 ## --------------------------------------------- ##
27901 sed "s/^/$as_me: WARNING: /" >&2
27904 echo "$as_me:$LINENO: checking for $ac_header" >&5
27905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907 echo $ECHO_N "(cached) $ECHO_C" >&6
27909 eval "$as_ac_Header=\$ac_header_preproc"
27911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27916 cat >>confdefs.h <<_ACEOF
27917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27924 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27925 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27926 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27927 if test "${ol_cv_header_db1+set}" = set; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27931 cat >conftest.$ac_ext <<_ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h. */
27939 # include <db_185.h>
27944 /* this check could be improved */
27945 #ifndef DB_VERSION_MAJOR
27946 # define DB_VERSION_MAJOR 1
27949 #if DB_VERSION_MAJOR == 1
27954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27955 $EGREP "__db_version_1" >/dev/null 2>&1; then
27956 ol_cv_header_db1=yes
27958 ol_cv_header_db1=no
27963 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27964 echo "${ECHO_T}$ol_cv_header_db1" >&6
27966 if test $ol_cv_header_db1 = yes ; then
27969 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27970 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27971 if test "${ol_cv_bdb_major+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 if test $ol_cv_bdb_major = 0 ; then
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27985 #ifndef DB_VERSION_MAJOR
27986 # define DB_VERSION_MAJOR 1
27988 #if DB_VERSION_MAJOR == 4
27993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27994 $EGREP "__db_version" >/dev/null 2>&1; then
28002 if test $ol_cv_bdb_major = 0 ; then
28003 cat >conftest.$ac_ext <<_ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h. */
28011 #ifndef DB_VERSION_MAJOR
28012 # define DB_VERSION_MAJOR 1
28014 #if DB_VERSION_MAJOR == 3
28019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28020 $EGREP "__db_version" >/dev/null 2>&1; then
28028 if test $ol_cv_bdb_major = 0 ; then
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28037 #ifndef DB_VERSION_MAJOR
28038 # define DB_VERSION_MAJOR 1
28040 #if DB_VERSION_MAJOR == 2
28045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28046 $EGREP "__db_version" >/dev/null 2>&1; then
28054 if test $ol_cv_bdb_major = 0 ; then
28055 cat >conftest.$ac_ext <<_ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h. */
28063 #ifndef DB_VERSION_MAJOR
28064 # define DB_VERSION_MAJOR 1
28066 #if DB_VERSION_MAJOR == 1
28071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28072 $EGREP "__db_version" >/dev/null 2>&1; then
28081 if test $ol_cv_bdb_major = 0 ; then
28082 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28083 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28084 { (exit 1); exit 1; }; }
28088 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28089 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28091 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28092 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28093 if test "${ol_cv_bdb_minor+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 if test $ol_cv_bdb_minor = 0 ; then
28099 cat >conftest.$ac_ext <<_ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28107 #ifndef DB_VERSION_MINOR
28108 # define DB_VERSION_MINOR 0
28110 #if DB_VERSION_MINOR == 9
28115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116 $EGREP "__db_version" >/dev/null 2>&1; then
28124 if test $ol_cv_bdb_minor = 0 ; then
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28133 #ifndef DB_VERSION_MINOR
28134 # define DB_VERSION_MINOR 0
28136 #if DB_VERSION_MINOR == 8
28141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28142 $EGREP "__db_version" >/dev/null 2>&1; then
28150 if test $ol_cv_bdb_minor = 0 ; then
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28159 #ifndef DB_VERSION_MINOR
28160 # define DB_VERSION_MINOR 0
28162 #if DB_VERSION_MINOR == 7
28167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28168 $EGREP "__db_version" >/dev/null 2>&1; then
28176 if test $ol_cv_bdb_minor = 0 ; then
28177 cat >conftest.$ac_ext <<_ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h. */
28185 #ifndef DB_VERSION_MINOR
28186 # define DB_VERSION_MINOR 0
28188 #if DB_VERSION_MINOR == 6
28193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28194 $EGREP "__db_version" >/dev/null 2>&1; then
28202 if test $ol_cv_bdb_minor = 0 ; then
28203 cat >conftest.$ac_ext <<_ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h. */
28211 #ifndef DB_VERSION_MINOR
28212 # define DB_VERSION_MINOR 0
28214 #if DB_VERSION_MINOR == 5
28219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28220 $EGREP "__db_version" >/dev/null 2>&1; then
28228 if test $ol_cv_bdb_minor = 0 ; then
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28237 #ifndef DB_VERSION_MINOR
28238 # define DB_VERSION_MINOR 0
28240 #if DB_VERSION_MINOR == 4
28245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28246 $EGREP "__db_version" >/dev/null 2>&1; then
28254 if test $ol_cv_bdb_minor = 0 ; then
28255 cat >conftest.$ac_ext <<_ACEOF
28258 cat confdefs.h >>conftest.$ac_ext
28259 cat >>conftest.$ac_ext <<_ACEOF
28260 /* end confdefs.h. */
28263 #ifndef DB_VERSION_MINOR
28264 # define DB_VERSION_MINOR 0
28266 #if DB_VERSION_MINOR == 3
28271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28272 $EGREP "__db_version" >/dev/null 2>&1; then
28280 if test $ol_cv_bdb_minor = 0 ; then
28281 cat >conftest.$ac_ext <<_ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28289 #ifndef DB_VERSION_MINOR
28290 # define DB_VERSION_MINOR 0
28292 #if DB_VERSION_MINOR == 2
28297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28298 $EGREP "__db_version" >/dev/null 2>&1; then
28306 if test $ol_cv_bdb_minor = 0 ; then
28307 cat >conftest.$ac_ext <<_ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28315 #ifndef DB_VERSION_MINOR
28316 # define DB_VERSION_MINOR 0
28318 #if DB_VERSION_MINOR == 1
28323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28324 $EGREP "__db_version" >/dev/null 2>&1; then
28334 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28335 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28337 if test $ol_cv_bdb_major = 4 ; then
28338 if test $ol_cv_bdb_minor = 4 ; then
28339 if test $ol_cv_lib_db = no ; then
28340 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28341 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28342 if test "${ol_cv_db_db44+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28348 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28350 cat >conftest.$ac_ext <<_ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h. */
28357 #ifdef HAVE_DB_185_H
28358 # include <db_185.h>
28363 #ifndef DB_VERSION_MAJOR
28364 # define DB_VERSION_MAJOR 1
28368 #define NULL ((void*)0)
28375 #if DB_VERSION_MAJOR > 1
28378 int major, minor, patch;
28380 version = db_version( &major, &minor, &patch );
28382 if( major != DB_VERSION_MAJOR ||
28383 minor < DB_VERSION_MINOR )
28385 printf("Berkeley DB version mismatch\n"
28386 "\theader: %s\n\tlibrary: %s\n",
28387 DB_VERSION_STRING, version);
28393 #if DB_VERSION_MAJOR > 2
28394 db_env_create( NULL, 0 );
28395 #elif DB_VERSION_MAJOR > 1
28396 db_appexit( NULL );
28398 (void) dbopen( NULL, 0, 0, 0, NULL);
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28407 (eval $ac_link) 2>conftest.er1
28409 grep -v '^ *+' conftest.er1 >conftest.err
28411 cat conftest.err >&5
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -z "$ac_c_werror_flag"
28415 || test ! -s conftest.err'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest$ac_exeext'
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28434 rm -f conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
28440 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28441 echo "${ECHO_T}$ol_cv_db_db44" >&6
28443 if test $ol_cv_db_db44 = yes ; then
28444 ol_cv_lib_db=-ldb44
28448 if test $ol_cv_lib_db = no ; then
28449 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28450 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28451 if test "${ol_cv_db_db_44+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28457 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28466 #ifdef HAVE_DB_185_H
28467 # include <db_185.h>
28472 #ifndef DB_VERSION_MAJOR
28473 # define DB_VERSION_MAJOR 1
28477 #define NULL ((void*)0)
28484 #if DB_VERSION_MAJOR > 1
28487 int major, minor, patch;
28489 version = db_version( &major, &minor, &patch );
28491 if( major != DB_VERSION_MAJOR ||
28492 minor < DB_VERSION_MINOR )
28494 printf("Berkeley DB version mismatch\n"
28495 "\theader: %s\n\tlibrary: %s\n",
28496 DB_VERSION_STRING, version);
28502 #if DB_VERSION_MAJOR > 2
28503 db_env_create( NULL, 0 );
28504 #elif DB_VERSION_MAJOR > 1
28505 db_appexit( NULL );
28507 (void) dbopen( NULL, 0, 0, 0, NULL);
28514 rm -f conftest.$ac_objext conftest$ac_exeext
28515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28516 (eval $ac_link) 2>conftest.er1
28518 grep -v '^ *+' conftest.er1 >conftest.err
28520 cat conftest.err >&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } &&
28523 { ac_try='test -z "$ac_c_werror_flag"
28524 || test ! -s conftest.err'
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest$ac_exeext'
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; }; then
28538 echo "$as_me: failed program was:" >&5
28539 sed 's/^/| /' conftest.$ac_ext >&5
28543 rm -f conftest.err conftest.$ac_objext \
28544 conftest$ac_exeext conftest.$ac_ext
28549 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28550 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28552 if test $ol_cv_db_db_44 = yes ; then
28553 ol_cv_lib_db=-ldb-44
28557 if test $ol_cv_lib_db = no ; then
28558 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28559 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28560 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28566 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28575 #ifdef HAVE_DB_185_H
28576 # include <db_185.h>
28581 #ifndef DB_VERSION_MAJOR
28582 # define DB_VERSION_MAJOR 1
28586 #define NULL ((void*)0)
28593 #if DB_VERSION_MAJOR > 1
28596 int major, minor, patch;
28598 version = db_version( &major, &minor, &patch );
28600 if( major != DB_VERSION_MAJOR ||
28601 minor < DB_VERSION_MINOR )
28603 printf("Berkeley DB version mismatch\n"
28604 "\theader: %s\n\tlibrary: %s\n",
28605 DB_VERSION_STRING, version);
28611 #if DB_VERSION_MAJOR > 2
28612 db_env_create( NULL, 0 );
28613 #elif DB_VERSION_MAJOR > 1
28614 db_appexit( NULL );
28616 (void) dbopen( NULL, 0, 0, 0, NULL);
28623 rm -f conftest.$ac_objext conftest$ac_exeext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28625 (eval $ac_link) 2>conftest.er1
28627 grep -v '^ *+' conftest.er1 >conftest.err
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_c_werror_flag"
28633 || test ! -s conftest.err'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest$ac_exeext'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; }; then
28645 ol_cv_db_db_4_dot_4=yes
28647 echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28650 ol_cv_db_db_4_dot_4=no
28652 rm -f conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext conftest.$ac_ext
28658 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28659 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28661 if test $ol_cv_db_db_4_dot_4 = yes ; then
28662 ol_cv_lib_db=-ldb-4.4
28666 if test $ol_cv_lib_db = no ; then
28667 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28668 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28669 if test "${ol_cv_db_db_4_4+set}" = set; then
28670 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28677 cat >conftest.$ac_ext <<_ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h. */
28684 #ifdef HAVE_DB_185_H
28685 # include <db_185.h>
28690 #ifndef DB_VERSION_MAJOR
28691 # define DB_VERSION_MAJOR 1
28695 #define NULL ((void*)0)
28702 #if DB_VERSION_MAJOR > 1
28705 int major, minor, patch;
28707 version = db_version( &major, &minor, &patch );
28709 if( major != DB_VERSION_MAJOR ||
28710 minor < DB_VERSION_MINOR )
28712 printf("Berkeley DB version mismatch\n"
28713 "\theader: %s\n\tlibrary: %s\n",
28714 DB_VERSION_STRING, version);
28720 #if DB_VERSION_MAJOR > 2
28721 db_env_create( NULL, 0 );
28722 #elif DB_VERSION_MAJOR > 1
28723 db_appexit( NULL );
28725 (void) dbopen( NULL, 0, 0, 0, NULL);
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734 (eval $ac_link) 2>conftest.er1
28736 grep -v '^ *+' conftest.er1 >conftest.err
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -z "$ac_c_werror_flag"
28742 || test ! -s conftest.err'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest$ac_exeext'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 ol_cv_db_db_4_4=yes
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28761 rm -f conftest.err conftest.$ac_objext \
28762 conftest$ac_exeext conftest.$ac_ext
28767 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28768 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28770 if test $ol_cv_db_db_4_4 = yes ; then
28771 ol_cv_lib_db=-ldb-4-4
28775 elif test $ol_cv_bdb_minor = 3 ; then
28776 if test $ol_cv_lib_db = no ; then
28777 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28778 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28779 if test "${ol_cv_db_db43+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28785 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28787 cat >conftest.$ac_ext <<_ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h. */
28794 #ifdef HAVE_DB_185_H
28795 # include <db_185.h>
28800 #ifndef DB_VERSION_MAJOR
28801 # define DB_VERSION_MAJOR 1
28805 #define NULL ((void*)0)
28812 #if DB_VERSION_MAJOR > 1
28815 int major, minor, patch;
28817 version = db_version( &major, &minor, &patch );
28819 if( major != DB_VERSION_MAJOR ||
28820 minor < DB_VERSION_MINOR )
28822 printf("Berkeley DB version mismatch\n"
28823 "\theader: %s\n\tlibrary: %s\n",
28824 DB_VERSION_STRING, version);
28830 #if DB_VERSION_MAJOR > 2
28831 db_env_create( NULL, 0 );
28832 #elif DB_VERSION_MAJOR > 1
28833 db_appexit( NULL );
28835 (void) dbopen( NULL, 0, 0, 0, NULL);
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28844 (eval $ac_link) 2>conftest.er1
28846 grep -v '^ *+' conftest.er1 >conftest.err
28848 cat conftest.err >&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } &&
28851 { ac_try='test -z "$ac_c_werror_flag"
28852 || test ! -s conftest.err'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; } &&
28858 { ac_try='test -s conftest$ac_exeext'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28866 echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28871 rm -f conftest.err conftest.$ac_objext \
28872 conftest$ac_exeext conftest.$ac_ext
28877 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28878 echo "${ECHO_T}$ol_cv_db_db43" >&6
28880 if test $ol_cv_db_db43 = yes ; then
28881 ol_cv_lib_db=-ldb43
28885 if test $ol_cv_lib_db = no ; then
28886 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28887 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28888 if test "${ol_cv_db_db_43+set}" = set; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28896 cat >conftest.$ac_ext <<_ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28903 #ifdef HAVE_DB_185_H
28904 # include <db_185.h>
28909 #ifndef DB_VERSION_MAJOR
28910 # define DB_VERSION_MAJOR 1
28914 #define NULL ((void*)0)
28921 #if DB_VERSION_MAJOR > 1
28924 int major, minor, patch;
28926 version = db_version( &major, &minor, &patch );
28928 if( major != DB_VERSION_MAJOR ||
28929 minor < DB_VERSION_MINOR )
28931 printf("Berkeley DB version mismatch\n"
28932 "\theader: %s\n\tlibrary: %s\n",
28933 DB_VERSION_STRING, version);
28939 #if DB_VERSION_MAJOR > 2
28940 db_env_create( NULL, 0 );
28941 #elif DB_VERSION_MAJOR > 1
28942 db_appexit( NULL );
28944 (void) dbopen( NULL, 0, 0, 0, NULL);
28951 rm -f conftest.$ac_objext conftest$ac_exeext
28952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28953 (eval $ac_link) 2>conftest.er1
28955 grep -v '^ *+' conftest.er1 >conftest.err
28957 cat conftest.err >&5
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } &&
28960 { ac_try='test -z "$ac_c_werror_flag"
28961 || test ! -s conftest.err'
28962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963 (eval $ac_try) 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; } &&
28967 { ac_try='test -s conftest$ac_exeext'
28968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969 (eval $ac_try) 2>&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; }; then
28975 echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28980 rm -f conftest.err conftest.$ac_objext \
28981 conftest$ac_exeext conftest.$ac_ext
28986 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28987 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28989 if test $ol_cv_db_db_43 = yes ; then
28990 ol_cv_lib_db=-ldb-43
28994 if test $ol_cv_lib_db = no ; then
28995 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28996 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28997 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29005 cat >conftest.$ac_ext <<_ACEOF
29008 cat confdefs.h >>conftest.$ac_ext
29009 cat >>conftest.$ac_ext <<_ACEOF
29010 /* end confdefs.h. */
29012 #ifdef HAVE_DB_185_H
29013 # include <db_185.h>
29018 #ifndef DB_VERSION_MAJOR
29019 # define DB_VERSION_MAJOR 1
29023 #define NULL ((void*)0)
29030 #if DB_VERSION_MAJOR > 1
29033 int major, minor, patch;
29035 version = db_version( &major, &minor, &patch );
29037 if( major != DB_VERSION_MAJOR ||
29038 minor < DB_VERSION_MINOR )
29040 printf("Berkeley DB version mismatch\n"
29041 "\theader: %s\n\tlibrary: %s\n",
29042 DB_VERSION_STRING, version);
29048 #if DB_VERSION_MAJOR > 2
29049 db_env_create( NULL, 0 );
29050 #elif DB_VERSION_MAJOR > 1
29051 db_appexit( NULL );
29053 (void) dbopen( NULL, 0, 0, 0, NULL);
29060 rm -f conftest.$ac_objext conftest$ac_exeext
29061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29062 (eval $ac_link) 2>conftest.er1
29064 grep -v '^ *+' conftest.er1 >conftest.err
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); } &&
29069 { ac_try='test -z "$ac_c_werror_flag"
29070 || test ! -s conftest.err'
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; } &&
29076 { ac_try='test -s conftest$ac_exeext'
29077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078 (eval $ac_try) 2>&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 ol_cv_db_db_4_dot_3=yes
29084 echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29087 ol_cv_db_db_4_dot_3=no
29089 rm -f conftest.err conftest.$ac_objext \
29090 conftest$ac_exeext conftest.$ac_ext
29095 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29096 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29098 if test $ol_cv_db_db_4_dot_3 = yes ; then
29099 ol_cv_lib_db=-ldb-4.3
29103 if test $ol_cv_lib_db = no ; then
29104 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29105 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29106 if test "${ol_cv_db_db_4_3+set}" = set; then
29107 echo $ECHO_N "(cached) $ECHO_C" >&6
29112 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29114 cat >conftest.$ac_ext <<_ACEOF
29117 cat confdefs.h >>conftest.$ac_ext
29118 cat >>conftest.$ac_ext <<_ACEOF
29119 /* end confdefs.h. */
29121 #ifdef HAVE_DB_185_H
29122 # include <db_185.h>
29127 #ifndef DB_VERSION_MAJOR
29128 # define DB_VERSION_MAJOR 1
29132 #define NULL ((void*)0)
29139 #if DB_VERSION_MAJOR > 1
29142 int major, minor, patch;
29144 version = db_version( &major, &minor, &patch );
29146 if( major != DB_VERSION_MAJOR ||
29147 minor < DB_VERSION_MINOR )
29149 printf("Berkeley DB version mismatch\n"
29150 "\theader: %s\n\tlibrary: %s\n",
29151 DB_VERSION_STRING, version);
29157 #if DB_VERSION_MAJOR > 2
29158 db_env_create( NULL, 0 );
29159 #elif DB_VERSION_MAJOR > 1
29160 db_appexit( NULL );
29162 (void) dbopen( NULL, 0, 0, 0, NULL);
29169 rm -f conftest.$ac_objext conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171 (eval $ac_link) 2>conftest.er1
29173 grep -v '^ *+' conftest.er1 >conftest.err
29175 cat conftest.err >&5
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } &&
29178 { ac_try='test -z "$ac_c_werror_flag"
29179 || test ! -s conftest.err'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest$ac_exeext'
29186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187 (eval $ac_try) 2>&5
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); }; }; then
29191 ol_cv_db_db_4_3=yes
29193 echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29198 rm -f conftest.err conftest.$ac_objext \
29199 conftest$ac_exeext conftest.$ac_ext
29204 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29205 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29207 if test $ol_cv_db_db_4_3 = yes ; then
29208 ol_cv_lib_db=-ldb-4-3
29212 elif test $ol_cv_bdb_minor = 2 ; then
29213 if test $ol_cv_lib_db = no ; then
29214 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29215 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29216 if test "${ol_cv_db_db42+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29224 cat >conftest.$ac_ext <<_ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h. */
29231 #ifdef HAVE_DB_185_H
29232 # include <db_185.h>
29237 #ifndef DB_VERSION_MAJOR
29238 # define DB_VERSION_MAJOR 1
29242 #define NULL ((void*)0)
29249 #if DB_VERSION_MAJOR > 1
29252 int major, minor, patch;
29254 version = db_version( &major, &minor, &patch );
29256 if( major != DB_VERSION_MAJOR ||
29257 minor < DB_VERSION_MINOR )
29259 printf("Berkeley DB version mismatch\n"
29260 "\theader: %s\n\tlibrary: %s\n",
29261 DB_VERSION_STRING, version);
29267 #if DB_VERSION_MAJOR > 2
29268 db_env_create( NULL, 0 );
29269 #elif DB_VERSION_MAJOR > 1
29270 db_appexit( NULL );
29272 (void) dbopen( NULL, 0, 0, 0, NULL);
29279 rm -f conftest.$ac_objext conftest$ac_exeext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29281 (eval $ac_link) 2>conftest.er1
29283 grep -v '^ *+' conftest.er1 >conftest.err
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag"
29289 || test ! -s conftest.err'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest$ac_exeext'
29296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297 (eval $ac_try) 2>&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; }; then
29303 echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29308 rm -f conftest.err conftest.$ac_objext \
29309 conftest$ac_exeext conftest.$ac_ext
29314 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29315 echo "${ECHO_T}$ol_cv_db_db42" >&6
29317 if test $ol_cv_db_db42 = yes ; then
29318 ol_cv_lib_db=-ldb42
29322 if test $ol_cv_lib_db = no ; then
29323 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29324 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29325 if test "${ol_cv_db_db_42+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29331 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29333 cat >conftest.$ac_ext <<_ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29340 #ifdef HAVE_DB_185_H
29341 # include <db_185.h>
29346 #ifndef DB_VERSION_MAJOR
29347 # define DB_VERSION_MAJOR 1
29351 #define NULL ((void*)0)
29358 #if DB_VERSION_MAJOR > 1
29361 int major, minor, patch;
29363 version = db_version( &major, &minor, &patch );
29365 if( major != DB_VERSION_MAJOR ||
29366 minor < DB_VERSION_MINOR )
29368 printf("Berkeley DB version mismatch\n"
29369 "\theader: %s\n\tlibrary: %s\n",
29370 DB_VERSION_STRING, version);
29376 #if DB_VERSION_MAJOR > 2
29377 db_env_create( NULL, 0 );
29378 #elif DB_VERSION_MAJOR > 1
29379 db_appexit( NULL );
29381 (void) dbopen( NULL, 0, 0, 0, NULL);
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390 (eval $ac_link) 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
29397 { ac_try='test -z "$ac_c_werror_flag"
29398 || test ! -s conftest.err'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest$ac_exeext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29417 rm -f conftest.err conftest.$ac_objext \
29418 conftest$ac_exeext conftest.$ac_ext
29423 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29424 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29426 if test $ol_cv_db_db_42 = yes ; then
29427 ol_cv_lib_db=-ldb-42
29431 if test $ol_cv_lib_db = no ; then
29432 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29433 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29434 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29435 echo $ECHO_N "(cached) $ECHO_C" >&6
29440 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29442 cat >conftest.$ac_ext <<_ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29449 #ifdef HAVE_DB_185_H
29450 # include <db_185.h>
29455 #ifndef DB_VERSION_MAJOR
29456 # define DB_VERSION_MAJOR 1
29460 #define NULL ((void*)0)
29467 #if DB_VERSION_MAJOR > 1
29470 int major, minor, patch;
29472 version = db_version( &major, &minor, &patch );
29474 if( major != DB_VERSION_MAJOR ||
29475 minor < DB_VERSION_MINOR )
29477 printf("Berkeley DB version mismatch\n"
29478 "\theader: %s\n\tlibrary: %s\n",
29479 DB_VERSION_STRING, version);
29485 #if DB_VERSION_MAJOR > 2
29486 db_env_create( NULL, 0 );
29487 #elif DB_VERSION_MAJOR > 1
29488 db_appexit( NULL );
29490 (void) dbopen( NULL, 0, 0, 0, NULL);
29497 rm -f conftest.$ac_objext conftest$ac_exeext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29499 (eval $ac_link) 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
29506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest$ac_exeext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ol_cv_db_db_4_dot_2=yes
29521 echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ol_cv_db_db_4_dot_2=no
29526 rm -f conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
29532 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29533 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29535 if test $ol_cv_db_db_4_dot_2 = yes ; then
29536 ol_cv_lib_db=-ldb-4.2
29540 if test $ol_cv_lib_db = no ; then
29541 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29542 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29543 if test "${ol_cv_db_db_4_2+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29551 cat >conftest.$ac_ext <<_ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29558 #ifdef HAVE_DB_185_H
29559 # include <db_185.h>
29564 #ifndef DB_VERSION_MAJOR
29565 # define DB_VERSION_MAJOR 1
29569 #define NULL ((void*)0)
29576 #if DB_VERSION_MAJOR > 1
29579 int major, minor, patch;
29581 version = db_version( &major, &minor, &patch );
29583 if( major != DB_VERSION_MAJOR ||
29584 minor < DB_VERSION_MINOR )
29586 printf("Berkeley DB version mismatch\n"
29587 "\theader: %s\n\tlibrary: %s\n",
29588 DB_VERSION_STRING, version);
29594 #if DB_VERSION_MAJOR > 2
29595 db_env_create( NULL, 0 );
29596 #elif DB_VERSION_MAJOR > 1
29597 db_appexit( NULL );
29599 (void) dbopen( NULL, 0, 0, 0, NULL);
29606 rm -f conftest.$ac_objext conftest$ac_exeext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608 (eval $ac_link) 2>conftest.er1
29610 grep -v '^ *+' conftest.er1 >conftest.err
29612 cat conftest.err >&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); } &&
29615 { ac_try='test -z "$ac_c_werror_flag"
29616 || test ! -s conftest.err'
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; } &&
29622 { ac_try='test -s conftest$ac_exeext'
29623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624 (eval $ac_try) 2>&5
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; }; then
29628 ol_cv_db_db_4_2=yes
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29635 rm -f conftest.err conftest.$ac_objext \
29636 conftest$ac_exeext conftest.$ac_ext
29641 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29642 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29644 if test $ol_cv_db_db_4_2 = yes ; then
29645 ol_cv_lib_db=-ldb-4-2
29649 elif test $ol_cv_bdb_minor = 1 ; then
29650 if test $ol_cv_lib_db = no ; then
29651 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29652 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29653 if test "${ol_cv_db_db41+set}" = set; then
29654 echo $ECHO_N "(cached) $ECHO_C" >&6
29659 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29661 cat >conftest.$ac_ext <<_ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h. */
29668 #ifdef HAVE_DB_185_H
29669 # include <db_185.h>
29674 #ifndef DB_VERSION_MAJOR
29675 # define DB_VERSION_MAJOR 1
29679 #define NULL ((void*)0)
29686 #if DB_VERSION_MAJOR > 1
29689 int major, minor, patch;
29691 version = db_version( &major, &minor, &patch );
29693 if( major != DB_VERSION_MAJOR ||
29694 minor < DB_VERSION_MINOR )
29696 printf("Berkeley DB version mismatch\n"
29697 "\theader: %s\n\tlibrary: %s\n",
29698 DB_VERSION_STRING, version);
29704 #if DB_VERSION_MAJOR > 2
29705 db_env_create( NULL, 0 );
29706 #elif DB_VERSION_MAJOR > 1
29707 db_appexit( NULL );
29709 (void) dbopen( NULL, 0, 0, 0, NULL);
29716 rm -f conftest.$ac_objext conftest$ac_exeext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29718 (eval $ac_link) 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
29725 { ac_try='test -z "$ac_c_werror_flag"
29726 || test ! -s conftest.err'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; } &&
29732 { ac_try='test -s conftest$ac_exeext'
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; }; then
29740 echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29745 rm -f conftest.err conftest.$ac_objext \
29746 conftest$ac_exeext conftest.$ac_ext
29751 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29752 echo "${ECHO_T}$ol_cv_db_db41" >&6
29754 if test $ol_cv_db_db41 = yes ; then
29755 ol_cv_lib_db=-ldb41
29759 if test $ol_cv_lib_db = no ; then
29760 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29761 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29762 if test "${ol_cv_db_db_41+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29768 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29770 cat >conftest.$ac_ext <<_ACEOF
29773 cat confdefs.h >>conftest.$ac_ext
29774 cat >>conftest.$ac_ext <<_ACEOF
29775 /* end confdefs.h. */
29777 #ifdef HAVE_DB_185_H
29778 # include <db_185.h>
29783 #ifndef DB_VERSION_MAJOR
29784 # define DB_VERSION_MAJOR 1
29788 #define NULL ((void*)0)
29795 #if DB_VERSION_MAJOR > 1
29798 int major, minor, patch;
29800 version = db_version( &major, &minor, &patch );
29802 if( major != DB_VERSION_MAJOR ||
29803 minor < DB_VERSION_MINOR )
29805 printf("Berkeley DB version mismatch\n"
29806 "\theader: %s\n\tlibrary: %s\n",
29807 DB_VERSION_STRING, version);
29813 #if DB_VERSION_MAJOR > 2
29814 db_env_create( NULL, 0 );
29815 #elif DB_VERSION_MAJOR > 1
29816 db_appexit( NULL );
29818 (void) dbopen( NULL, 0, 0, 0, NULL);
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827 (eval $ac_link) 2>conftest.er1
29829 grep -v '^ *+' conftest.er1 >conftest.err
29831 cat conftest.err >&5
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); } &&
29834 { ac_try='test -z "$ac_c_werror_flag"
29835 || test ! -s conftest.err'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; } &&
29841 { ac_try='test -s conftest$ac_exeext'
29842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843 (eval $ac_try) 2>&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); }; }; then
29849 echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29854 rm -f conftest.err conftest.$ac_objext \
29855 conftest$ac_exeext conftest.$ac_ext
29860 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29861 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29863 if test $ol_cv_db_db_41 = yes ; then
29864 ol_cv_lib_db=-ldb-41
29868 if test $ol_cv_lib_db = no ; then
29869 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29870 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29871 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29872 echo $ECHO_N "(cached) $ECHO_C" >&6
29877 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29879 cat >conftest.$ac_ext <<_ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h. */
29886 #ifdef HAVE_DB_185_H
29887 # include <db_185.h>
29892 #ifndef DB_VERSION_MAJOR
29893 # define DB_VERSION_MAJOR 1
29897 #define NULL ((void*)0)
29904 #if DB_VERSION_MAJOR > 1
29907 int major, minor, patch;
29909 version = db_version( &major, &minor, &patch );
29911 if( major != DB_VERSION_MAJOR ||
29912 minor < DB_VERSION_MINOR )
29914 printf("Berkeley DB version mismatch\n"
29915 "\theader: %s\n\tlibrary: %s\n",
29916 DB_VERSION_STRING, version);
29922 #if DB_VERSION_MAJOR > 2
29923 db_env_create( NULL, 0 );
29924 #elif DB_VERSION_MAJOR > 1
29925 db_appexit( NULL );
29927 (void) dbopen( NULL, 0, 0, 0, NULL);
29934 rm -f conftest.$ac_objext conftest$ac_exeext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936 (eval $ac_link) 2>conftest.er1
29938 grep -v '^ *+' conftest.er1 >conftest.err
29940 cat conftest.err >&5
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
29943 { ac_try='test -z "$ac_c_werror_flag"
29944 || test ! -s conftest.err'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; } &&
29950 { ac_try='test -s conftest$ac_exeext'
29951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952 (eval $ac_try) 2>&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); }; }; then
29956 ol_cv_db_db_4_dot_1=yes
29958 echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29961 ol_cv_db_db_4_dot_1=no
29963 rm -f conftest.err conftest.$ac_objext \
29964 conftest$ac_exeext conftest.$ac_ext
29969 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29970 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29972 if test $ol_cv_db_db_4_dot_1 = yes ; then
29973 ol_cv_lib_db=-ldb-4.1
29977 if test $ol_cv_lib_db = no ; then
29978 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29979 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29980 if test "${ol_cv_db_db_4_1+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29986 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29988 cat >conftest.$ac_ext <<_ACEOF
29991 cat confdefs.h >>conftest.$ac_ext
29992 cat >>conftest.$ac_ext <<_ACEOF
29993 /* end confdefs.h. */
29995 #ifdef HAVE_DB_185_H
29996 # include <db_185.h>
30001 #ifndef DB_VERSION_MAJOR
30002 # define DB_VERSION_MAJOR 1
30006 #define NULL ((void*)0)
30013 #if DB_VERSION_MAJOR > 1
30016 int major, minor, patch;
30018 version = db_version( &major, &minor, &patch );
30020 if( major != DB_VERSION_MAJOR ||
30021 minor < DB_VERSION_MINOR )
30023 printf("Berkeley DB version mismatch\n"
30024 "\theader: %s\n\tlibrary: %s\n",
30025 DB_VERSION_STRING, version);
30031 #if DB_VERSION_MAJOR > 2
30032 db_env_create( NULL, 0 );
30033 #elif DB_VERSION_MAJOR > 1
30034 db_appexit( NULL );
30036 (void) dbopen( NULL, 0, 0, 0, NULL);
30043 rm -f conftest.$ac_objext conftest$ac_exeext
30044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30045 (eval $ac_link) 2>conftest.er1
30047 grep -v '^ *+' conftest.er1 >conftest.err
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
30052 { ac_try='test -z "$ac_c_werror_flag"
30053 || test ! -s conftest.err'
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; } &&
30059 { ac_try='test -s conftest$ac_exeext'
30060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30061 (eval $ac_try) 2>&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
30065 ol_cv_db_db_4_1=yes
30067 echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30072 rm -f conftest.err conftest.$ac_objext \
30073 conftest$ac_exeext conftest.$ac_ext
30078 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30079 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30081 if test $ol_cv_db_db_4_1 = yes ; then
30082 ol_cv_lib_db=-ldb-4-1
30087 if test $ol_cv_lib_db = no ; then
30088 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30089 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30090 if test "${ol_cv_db_db_4+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30096 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30098 cat >conftest.$ac_ext <<_ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h. */
30105 #ifdef HAVE_DB_185_H
30106 # include <db_185.h>
30111 #ifndef DB_VERSION_MAJOR
30112 # define DB_VERSION_MAJOR 1
30116 #define NULL ((void*)0)
30123 #if DB_VERSION_MAJOR > 1
30126 int major, minor, patch;
30128 version = db_version( &major, &minor, &patch );
30130 if( major != DB_VERSION_MAJOR ||
30131 minor < DB_VERSION_MINOR )
30133 printf("Berkeley DB version mismatch\n"
30134 "\theader: %s\n\tlibrary: %s\n",
30135 DB_VERSION_STRING, version);
30141 #if DB_VERSION_MAJOR > 2
30142 db_env_create( NULL, 0 );
30143 #elif DB_VERSION_MAJOR > 1
30144 db_appexit( NULL );
30146 (void) dbopen( NULL, 0, 0, 0, NULL);
30153 rm -f conftest.$ac_objext conftest$ac_exeext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30155 (eval $ac_link) 2>conftest.er1
30157 grep -v '^ *+' conftest.er1 >conftest.err
30159 cat conftest.err >&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); } &&
30162 { ac_try='test -z "$ac_c_werror_flag"
30163 || test ! -s conftest.err'
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; } &&
30169 { ac_try='test -s conftest$ac_exeext'
30170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; }; then
30177 echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30182 rm -f conftest.err conftest.$ac_objext \
30183 conftest$ac_exeext conftest.$ac_ext
30188 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30189 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30191 if test $ol_cv_db_db_4 = yes ; then
30192 ol_cv_lib_db=-ldb-4
30196 if test $ol_cv_lib_db = no ; then
30197 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30198 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30199 if test "${ol_cv_db_db4+set}" = set; then
30200 echo $ECHO_N "(cached) $ECHO_C" >&6
30205 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30207 cat >conftest.$ac_ext <<_ACEOF
30210 cat confdefs.h >>conftest.$ac_ext
30211 cat >>conftest.$ac_ext <<_ACEOF
30212 /* end confdefs.h. */
30214 #ifdef HAVE_DB_185_H
30215 # include <db_185.h>
30220 #ifndef DB_VERSION_MAJOR
30221 # define DB_VERSION_MAJOR 1
30225 #define NULL ((void*)0)
30232 #if DB_VERSION_MAJOR > 1
30235 int major, minor, patch;
30237 version = db_version( &major, &minor, &patch );
30239 if( major != DB_VERSION_MAJOR ||
30240 minor < DB_VERSION_MINOR )
30242 printf("Berkeley DB version mismatch\n"
30243 "\theader: %s\n\tlibrary: %s\n",
30244 DB_VERSION_STRING, version);
30250 #if DB_VERSION_MAJOR > 2
30251 db_env_create( NULL, 0 );
30252 #elif DB_VERSION_MAJOR > 1
30253 db_appexit( NULL );
30255 (void) dbopen( NULL, 0, 0, 0, NULL);
30262 rm -f conftest.$ac_objext conftest$ac_exeext
30263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30264 (eval $ac_link) 2>conftest.er1
30266 grep -v '^ *+' conftest.er1 >conftest.err
30268 cat conftest.err >&5
30269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } &&
30271 { ac_try='test -z "$ac_c_werror_flag"
30272 || test ! -s conftest.err'
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest$ac_exeext'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30286 echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30291 rm -f conftest.err conftest.$ac_objext \
30292 conftest$ac_exeext conftest.$ac_ext
30297 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30298 echo "${ECHO_T}$ol_cv_db_db4" >&6
30300 if test $ol_cv_db_db4 = yes ; then
30305 if test $ol_cv_lib_db = no ; then
30306 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30307 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30308 if test "${ol_cv_db_db+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30316 cat >conftest.$ac_ext <<_ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h. */
30323 #ifdef HAVE_DB_185_H
30324 # include <db_185.h>
30329 #ifndef DB_VERSION_MAJOR
30330 # define DB_VERSION_MAJOR 1
30334 #define NULL ((void*)0)
30341 #if DB_VERSION_MAJOR > 1
30344 int major, minor, patch;
30346 version = db_version( &major, &minor, &patch );
30348 if( major != DB_VERSION_MAJOR ||
30349 minor < DB_VERSION_MINOR )
30351 printf("Berkeley DB version mismatch\n"
30352 "\theader: %s\n\tlibrary: %s\n",
30353 DB_VERSION_STRING, version);
30359 #if DB_VERSION_MAJOR > 2
30360 db_env_create( NULL, 0 );
30361 #elif DB_VERSION_MAJOR > 1
30362 db_appexit( NULL );
30364 (void) dbopen( NULL, 0, 0, 0, NULL);
30371 rm -f conftest.$ac_objext conftest$ac_exeext
30372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30373 (eval $ac_link) 2>conftest.er1
30375 grep -v '^ *+' conftest.er1 >conftest.err
30377 cat conftest.err >&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
30380 { ac_try='test -z "$ac_c_werror_flag"
30381 || test ! -s conftest.err'
30382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 (eval $ac_try) 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
30388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30400 rm -f conftest.err conftest.$ac_objext \
30401 conftest$ac_exeext conftest.$ac_ext
30406 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30407 echo "${ECHO_T}$ol_cv_db_db" >&6
30409 if test $ol_cv_db_db = yes ; then
30415 elif test $ol_cv_bdb_major = 3 ; then
30416 if test $ol_cv_lib_db = no ; then
30417 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30418 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30419 if test "${ol_cv_db_db3+set}" = set; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30427 cat >conftest.$ac_ext <<_ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h. */
30434 #ifdef HAVE_DB_185_H
30435 # include <db_185.h>
30440 #ifndef DB_VERSION_MAJOR
30441 # define DB_VERSION_MAJOR 1
30445 #define NULL ((void*)0)
30452 #if DB_VERSION_MAJOR > 1
30455 int major, minor, patch;
30457 version = db_version( &major, &minor, &patch );
30459 if( major != DB_VERSION_MAJOR ||
30460 minor < DB_VERSION_MINOR )
30462 printf("Berkeley DB version mismatch\n"
30463 "\theader: %s\n\tlibrary: %s\n",
30464 DB_VERSION_STRING, version);
30470 #if DB_VERSION_MAJOR > 2
30471 db_env_create( NULL, 0 );
30472 #elif DB_VERSION_MAJOR > 1
30473 db_appexit( NULL );
30475 (void) dbopen( NULL, 0, 0, 0, NULL);
30482 rm -f conftest.$ac_objext conftest$ac_exeext
30483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30484 (eval $ac_link) 2>conftest.er1
30486 grep -v '^ *+' conftest.er1 >conftest.err
30488 cat conftest.err >&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } &&
30491 { ac_try='test -z "$ac_c_werror_flag"
30492 || test ! -s conftest.err'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
30498 { ac_try='test -s conftest$ac_exeext'
30499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500 (eval $ac_try) 2>&5
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }; }; then
30506 echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30511 rm -f conftest.err conftest.$ac_objext \
30512 conftest$ac_exeext conftest.$ac_ext
30517 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30518 echo "${ECHO_T}$ol_cv_db_db3" >&6
30520 if test $ol_cv_db_db3 = yes ; then
30525 if test $ol_cv_lib_db = no ; then
30526 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30527 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30528 if test "${ol_cv_db_db_3+set}" = set; then
30529 echo $ECHO_N "(cached) $ECHO_C" >&6
30534 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30536 cat >conftest.$ac_ext <<_ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h. */
30543 #ifdef HAVE_DB_185_H
30544 # include <db_185.h>
30549 #ifndef DB_VERSION_MAJOR
30550 # define DB_VERSION_MAJOR 1
30554 #define NULL ((void*)0)
30561 #if DB_VERSION_MAJOR > 1
30564 int major, minor, patch;
30566 version = db_version( &major, &minor, &patch );
30568 if( major != DB_VERSION_MAJOR ||
30569 minor < DB_VERSION_MINOR )
30571 printf("Berkeley DB version mismatch\n"
30572 "\theader: %s\n\tlibrary: %s\n",
30573 DB_VERSION_STRING, version);
30579 #if DB_VERSION_MAJOR > 2
30580 db_env_create( NULL, 0 );
30581 #elif DB_VERSION_MAJOR > 1
30582 db_appexit( NULL );
30584 (void) dbopen( NULL, 0, 0, 0, NULL);
30591 rm -f conftest.$ac_objext conftest$ac_exeext
30592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30593 (eval $ac_link) 2>conftest.er1
30595 grep -v '^ *+' conftest.er1 >conftest.err
30597 cat conftest.err >&5
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); } &&
30600 { ac_try='test -z "$ac_c_werror_flag"
30601 || test ! -s conftest.err'
30602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30603 (eval $ac_try) 2>&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; } &&
30607 { ac_try='test -s conftest$ac_exeext'
30608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 (eval $ac_try) 2>&5
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; }; then
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30620 rm -f conftest.err conftest.$ac_objext \
30621 conftest$ac_exeext conftest.$ac_ext
30626 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30627 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30629 if test $ol_cv_db_db_3 = yes ; then
30630 ol_cv_lib_db=-ldb-3
30635 elif test $ol_cv_bdb_major = 2 ; then
30636 if test $ol_cv_lib_db = no ; then
30637 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30638 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30639 if test "${ol_cv_db_db2+set}" = set; then
30640 echo $ECHO_N "(cached) $ECHO_C" >&6
30645 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30647 cat >conftest.$ac_ext <<_ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h. */
30654 #ifdef HAVE_DB_185_H
30655 # include <db_185.h>
30660 #ifndef DB_VERSION_MAJOR
30661 # define DB_VERSION_MAJOR 1
30665 #define NULL ((void*)0)
30672 #if DB_VERSION_MAJOR > 1
30675 int major, minor, patch;
30677 version = db_version( &major, &minor, &patch );
30679 if( major != DB_VERSION_MAJOR ||
30680 minor < DB_VERSION_MINOR )
30682 printf("Berkeley DB version mismatch\n"
30683 "\theader: %s\n\tlibrary: %s\n",
30684 DB_VERSION_STRING, version);
30690 #if DB_VERSION_MAJOR > 2
30691 db_env_create( NULL, 0 );
30692 #elif DB_VERSION_MAJOR > 1
30693 db_appexit( NULL );
30695 (void) dbopen( NULL, 0, 0, 0, NULL);
30702 rm -f conftest.$ac_objext conftest$ac_exeext
30703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30704 (eval $ac_link) 2>conftest.er1
30706 grep -v '^ *+' conftest.er1 >conftest.err
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_c_werror_flag"
30712 || test ! -s conftest.err'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest$ac_exeext'
30719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30720 (eval $ac_try) 2>&5
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
30726 echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30731 rm -f conftest.err conftest.$ac_objext \
30732 conftest$ac_exeext conftest.$ac_ext
30737 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30738 echo "${ECHO_T}$ol_cv_db_db2" >&6
30740 if test $ol_cv_db_db2 = yes ; then
30745 if test $ol_cv_lib_db = no ; then
30746 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30747 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30748 if test "${ol_cv_db_db_2+set}" = set; then
30749 echo $ECHO_N "(cached) $ECHO_C" >&6
30754 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30756 cat >conftest.$ac_ext <<_ACEOF
30759 cat confdefs.h >>conftest.$ac_ext
30760 cat >>conftest.$ac_ext <<_ACEOF
30761 /* end confdefs.h. */
30763 #ifdef HAVE_DB_185_H
30764 # include <db_185.h>
30769 #ifndef DB_VERSION_MAJOR
30770 # define DB_VERSION_MAJOR 1
30774 #define NULL ((void*)0)
30781 #if DB_VERSION_MAJOR > 1
30784 int major, minor, patch;
30786 version = db_version( &major, &minor, &patch );
30788 if( major != DB_VERSION_MAJOR ||
30789 minor < DB_VERSION_MINOR )
30791 printf("Berkeley DB version mismatch\n"
30792 "\theader: %s\n\tlibrary: %s\n",
30793 DB_VERSION_STRING, version);
30799 #if DB_VERSION_MAJOR > 2
30800 db_env_create( NULL, 0 );
30801 #elif DB_VERSION_MAJOR > 1
30802 db_appexit( NULL );
30804 (void) dbopen( NULL, 0, 0, 0, NULL);
30811 rm -f conftest.$ac_objext conftest$ac_exeext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30813 (eval $ac_link) 2>conftest.er1
30815 grep -v '^ *+' conftest.er1 >conftest.err
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
30820 { ac_try='test -z "$ac_c_werror_flag"
30821 || test ! -s conftest.err'
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30840 rm -f conftest.err conftest.$ac_objext \
30841 conftest$ac_exeext conftest.$ac_ext
30846 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30847 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30849 if test $ol_cv_db_db_2 = yes ; then
30850 ol_cv_lib_db=-ldb-2
30855 elif test $ol_cv_bdb_major = 1 ; then
30856 if test $ol_cv_lib_db = no ; then
30857 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30858 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30859 if test "${ol_cv_db_db1+set}" = set; then
30860 echo $ECHO_N "(cached) $ECHO_C" >&6
30865 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30867 cat >conftest.$ac_ext <<_ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30874 #ifdef HAVE_DB_185_H
30875 # include <db_185.h>
30880 #ifndef DB_VERSION_MAJOR
30881 # define DB_VERSION_MAJOR 1
30885 #define NULL ((void*)0)
30892 #if DB_VERSION_MAJOR > 1
30895 int major, minor, patch;
30897 version = db_version( &major, &minor, &patch );
30899 if( major != DB_VERSION_MAJOR ||
30900 minor < DB_VERSION_MINOR )
30902 printf("Berkeley DB version mismatch\n"
30903 "\theader: %s\n\tlibrary: %s\n",
30904 DB_VERSION_STRING, version);
30910 #if DB_VERSION_MAJOR > 2
30911 db_env_create( NULL, 0 );
30912 #elif DB_VERSION_MAJOR > 1
30913 db_appexit( NULL );
30915 (void) dbopen( NULL, 0, 0, 0, NULL);
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30924 (eval $ac_link) 2>conftest.er1
30926 grep -v '^ *+' conftest.er1 >conftest.err
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } &&
30931 { ac_try='test -z "$ac_c_werror_flag"
30932 || test ! -s conftest.err'
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; } &&
30938 { ac_try='test -s conftest$ac_exeext'
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
30946 echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30951 rm -f conftest.err conftest.$ac_objext \
30952 conftest$ac_exeext conftest.$ac_ext
30957 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30958 echo "${ECHO_T}$ol_cv_db_db1" >&6
30960 if test $ol_cv_db_db1 = yes ; then
30965 if test $ol_cv_lib_db = no ; then
30966 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30967 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30968 if test "${ol_cv_db_db_1+set}" = set; then
30969 echo $ECHO_N "(cached) $ECHO_C" >&6
30974 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30976 cat >conftest.$ac_ext <<_ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h. */
30983 #ifdef HAVE_DB_185_H
30984 # include <db_185.h>
30989 #ifndef DB_VERSION_MAJOR
30990 # define DB_VERSION_MAJOR 1
30994 #define NULL ((void*)0)
31001 #if DB_VERSION_MAJOR > 1
31004 int major, minor, patch;
31006 version = db_version( &major, &minor, &patch );
31008 if( major != DB_VERSION_MAJOR ||
31009 minor < DB_VERSION_MINOR )
31011 printf("Berkeley DB version mismatch\n"
31012 "\theader: %s\n\tlibrary: %s\n",
31013 DB_VERSION_STRING, version);
31019 #if DB_VERSION_MAJOR > 2
31020 db_env_create( NULL, 0 );
31021 #elif DB_VERSION_MAJOR > 1
31022 db_appexit( NULL );
31024 (void) dbopen( NULL, 0, 0, 0, NULL);
31031 rm -f conftest.$ac_objext conftest$ac_exeext
31032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31033 (eval $ac_link) 2>conftest.er1
31035 grep -v '^ *+' conftest.er1 >conftest.err
31037 cat conftest.err >&5
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); } &&
31040 { ac_try='test -z "$ac_c_werror_flag"
31041 || test ! -s conftest.err'
31042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043 (eval $ac_try) 2>&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; } &&
31047 { ac_try='test -s conftest$ac_exeext'
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; }; then
31055 echo "$as_me: failed program was:" >&5
31056 sed 's/^/| /' conftest.$ac_ext >&5
31060 rm -f conftest.err conftest.$ac_objext \
31061 conftest$ac_exeext conftest.$ac_ext
31066 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31067 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31069 if test $ol_cv_db_db_1 = yes ; then
31070 ol_cv_lib_db=-ldb-1
31075 if test $ol_cv_lib_db = no ; then
31076 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31077 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31078 if test "${ol_cv_db_none+set}" = set; then
31079 echo $ECHO_N "(cached) $ECHO_C" >&6
31084 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31086 cat >conftest.$ac_ext <<_ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h. */
31093 #ifdef HAVE_DB_185_H
31094 # include <db_185.h>
31099 #ifndef DB_VERSION_MAJOR
31100 # define DB_VERSION_MAJOR 1
31104 #define NULL ((void*)0)
31111 #if DB_VERSION_MAJOR > 1
31114 int major, minor, patch;
31116 version = db_version( &major, &minor, &patch );
31118 if( major != DB_VERSION_MAJOR ||
31119 minor < DB_VERSION_MINOR )
31121 printf("Berkeley DB version mismatch\n"
31122 "\theader: %s\n\tlibrary: %s\n",
31123 DB_VERSION_STRING, version);
31129 #if DB_VERSION_MAJOR > 2
31130 db_env_create( NULL, 0 );
31131 #elif DB_VERSION_MAJOR > 1
31132 db_appexit( NULL );
31134 (void) dbopen( NULL, 0, 0, 0, NULL);
31141 rm -f conftest.$ac_objext conftest$ac_exeext
31142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31143 (eval $ac_link) 2>conftest.er1
31145 grep -v '^ *+' conftest.er1 >conftest.err
31147 cat conftest.err >&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } &&
31150 { ac_try='test -z "$ac_c_werror_flag"
31151 || test ! -s conftest.err'
31152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153 (eval $ac_try) 2>&5
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; } &&
31157 { ac_try='test -s conftest$ac_exeext'
31158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31159 (eval $ac_try) 2>&5
31161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); }; }; then
31165 echo "$as_me: failed program was:" >&5
31166 sed 's/^/| /' conftest.$ac_ext >&5
31170 rm -f conftest.err conftest.$ac_objext \
31171 conftest$ac_exeext conftest.$ac_ext
31176 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31177 echo "${ECHO_T}$ol_cv_db_none" >&6
31179 if test $ol_cv_db_none = yes ; then
31185 if test "$ol_cv_lib_db" != no ; then
31186 ol_cv_berkeley_db=yes
31192 ol_cv_berkeley_db=no
31194 for ac_header in db.h
31196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31198 echo "$as_me:$LINENO: checking for $ac_header" >&5
31199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31201 echo $ECHO_N "(cached) $ECHO_C" >&6
31203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31206 # Is the header compilable?
31207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31209 cat >conftest.$ac_ext <<_ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h. */
31215 $ac_includes_default
31216 #include <$ac_header>
31218 rm -f conftest.$ac_objext
31219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31220 (eval $ac_compile) 2>conftest.er1
31222 grep -v '^ *+' conftest.er1 >conftest.err
31224 cat conftest.err >&5
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); } &&
31227 { ac_try='test -z "$ac_c_werror_flag"
31228 || test ! -s conftest.err'
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; } &&
31234 { ac_try='test -s conftest.$ac_objext'
31235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236 (eval $ac_try) 2>&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
31240 ac_header_compiler=yes
31242 echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31245 ac_header_compiler=no
31247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31249 echo "${ECHO_T}$ac_header_compiler" >&6
31251 # Is the header present?
31252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31254 cat >conftest.$ac_ext <<_ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h. */
31260 #include <$ac_header>
31262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31265 grep -v '^ *+' conftest.er1 >conftest.err
31267 cat conftest.err >&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } >/dev/null; then
31270 if test -s conftest.err; then
31271 ac_cpp_err=$ac_c_preproc_warn_flag
31272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31279 if test -z "$ac_cpp_err"; then
31280 ac_header_preproc=yes
31282 echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31285 ac_header_preproc=no
31287 rm -f conftest.err conftest.$ac_ext
31288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31289 echo "${ECHO_T}$ac_header_preproc" >&6
31291 # So? What about this header?
31292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31298 ac_header_preproc=yes
31301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31315 ## --------------------------------------------- ##
31316 ## Report this to <http://www.openldap.org/its/> ##
31317 ## --------------------------------------------- ##
31320 sed "s/^/$as_me: WARNING: /" >&2
31323 echo "$as_me:$LINENO: checking for $ac_header" >&5
31324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31328 eval "$as_ac_Header=\$ac_header_preproc"
31330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31335 cat >>confdefs.h <<_ACEOF
31336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31343 if test $ac_cv_header_db_h = yes; then
31346 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31347 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31348 if test "${ol_cv_bdb_major+set}" = set; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
31353 if test $ol_cv_bdb_major = 0 ; then
31354 cat >conftest.$ac_ext <<_ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h. */
31362 #ifndef DB_VERSION_MAJOR
31363 # define DB_VERSION_MAJOR 1
31365 #if DB_VERSION_MAJOR == 4
31370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31371 $EGREP "__db_version" >/dev/null 2>&1; then
31379 if test $ol_cv_bdb_major = 0 ; then
31380 cat >conftest.$ac_ext <<_ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h. */
31388 #ifndef DB_VERSION_MAJOR
31389 # define DB_VERSION_MAJOR 1
31391 #if DB_VERSION_MAJOR == 3
31396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31397 $EGREP "__db_version" >/dev/null 2>&1; then
31405 if test $ol_cv_bdb_major = 0 ; then
31406 cat >conftest.$ac_ext <<_ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h. */
31414 #ifndef DB_VERSION_MAJOR
31415 # define DB_VERSION_MAJOR 1
31417 #if DB_VERSION_MAJOR == 2
31422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31423 $EGREP "__db_version" >/dev/null 2>&1; then
31431 if test $ol_cv_bdb_major = 0 ; then
31432 cat >conftest.$ac_ext <<_ACEOF
31435 cat confdefs.h >>conftest.$ac_ext
31436 cat >>conftest.$ac_ext <<_ACEOF
31437 /* end confdefs.h. */
31440 #ifndef DB_VERSION_MAJOR
31441 # define DB_VERSION_MAJOR 1
31443 #if DB_VERSION_MAJOR == 1
31448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31449 $EGREP "__db_version" >/dev/null 2>&1; then
31458 if test $ol_cv_bdb_major = 0 ; then
31459 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31460 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31461 { (exit 1); exit 1; }; }
31465 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31466 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31468 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31469 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31470 if test "${ol_cv_bdb_minor+set}" = set; then
31471 echo $ECHO_N "(cached) $ECHO_C" >&6
31475 if test $ol_cv_bdb_minor = 0 ; then
31476 cat >conftest.$ac_ext <<_ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h. */
31484 #ifndef DB_VERSION_MINOR
31485 # define DB_VERSION_MINOR 0
31487 #if DB_VERSION_MINOR == 9
31492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31493 $EGREP "__db_version" >/dev/null 2>&1; then
31501 if test $ol_cv_bdb_minor = 0 ; then
31502 cat >conftest.$ac_ext <<_ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h. */
31510 #ifndef DB_VERSION_MINOR
31511 # define DB_VERSION_MINOR 0
31513 #if DB_VERSION_MINOR == 8
31518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31519 $EGREP "__db_version" >/dev/null 2>&1; then
31527 if test $ol_cv_bdb_minor = 0 ; then
31528 cat >conftest.$ac_ext <<_ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31536 #ifndef DB_VERSION_MINOR
31537 # define DB_VERSION_MINOR 0
31539 #if DB_VERSION_MINOR == 7
31544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31545 $EGREP "__db_version" >/dev/null 2>&1; then
31553 if test $ol_cv_bdb_minor = 0 ; then
31554 cat >conftest.$ac_ext <<_ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h. */
31562 #ifndef DB_VERSION_MINOR
31563 # define DB_VERSION_MINOR 0
31565 #if DB_VERSION_MINOR == 6
31570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571 $EGREP "__db_version" >/dev/null 2>&1; then
31579 if test $ol_cv_bdb_minor = 0 ; then
31580 cat >conftest.$ac_ext <<_ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h. */
31588 #ifndef DB_VERSION_MINOR
31589 # define DB_VERSION_MINOR 0
31591 #if DB_VERSION_MINOR == 5
31596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31597 $EGREP "__db_version" >/dev/null 2>&1; then
31605 if test $ol_cv_bdb_minor = 0 ; then
31606 cat >conftest.$ac_ext <<_ACEOF
31609 cat confdefs.h >>conftest.$ac_ext
31610 cat >>conftest.$ac_ext <<_ACEOF
31611 /* end confdefs.h. */
31614 #ifndef DB_VERSION_MINOR
31615 # define DB_VERSION_MINOR 0
31617 #if DB_VERSION_MINOR == 4
31622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31623 $EGREP "__db_version" >/dev/null 2>&1; then
31631 if test $ol_cv_bdb_minor = 0 ; then
31632 cat >conftest.$ac_ext <<_ACEOF
31635 cat confdefs.h >>conftest.$ac_ext
31636 cat >>conftest.$ac_ext <<_ACEOF
31637 /* end confdefs.h. */
31640 #ifndef DB_VERSION_MINOR
31641 # define DB_VERSION_MINOR 0
31643 #if DB_VERSION_MINOR == 3
31648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31649 $EGREP "__db_version" >/dev/null 2>&1; then
31657 if test $ol_cv_bdb_minor = 0 ; then
31658 cat >conftest.$ac_ext <<_ACEOF
31661 cat confdefs.h >>conftest.$ac_ext
31662 cat >>conftest.$ac_ext <<_ACEOF
31663 /* end confdefs.h. */
31666 #ifndef DB_VERSION_MINOR
31667 # define DB_VERSION_MINOR 0
31669 #if DB_VERSION_MINOR == 2
31674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31675 $EGREP "__db_version" >/dev/null 2>&1; then
31683 if test $ol_cv_bdb_minor = 0 ; then
31684 cat >conftest.$ac_ext <<_ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h. */
31692 #ifndef DB_VERSION_MINOR
31693 # define DB_VERSION_MINOR 0
31695 #if DB_VERSION_MINOR == 1
31700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31701 $EGREP "__db_version" >/dev/null 2>&1; then
31711 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31712 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31714 if test $ol_cv_bdb_major = 4 ; then
31715 if test $ol_cv_bdb_minor = 4 ; then
31716 if test $ol_cv_lib_db = no ; then
31717 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31718 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31719 if test "${ol_cv_db_db44+set}" = set; then
31720 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31727 cat >conftest.$ac_ext <<_ACEOF
31730 cat confdefs.h >>conftest.$ac_ext
31731 cat >>conftest.$ac_ext <<_ACEOF
31732 /* end confdefs.h. */
31734 #ifdef HAVE_DB_185_H
31735 # include <db_185.h>
31740 #ifndef DB_VERSION_MAJOR
31741 # define DB_VERSION_MAJOR 1
31745 #define NULL ((void*)0)
31752 #if DB_VERSION_MAJOR > 1
31755 int major, minor, patch;
31757 version = db_version( &major, &minor, &patch );
31759 if( major != DB_VERSION_MAJOR ||
31760 minor < DB_VERSION_MINOR )
31762 printf("Berkeley DB version mismatch\n"
31763 "\theader: %s\n\tlibrary: %s\n",
31764 DB_VERSION_STRING, version);
31770 #if DB_VERSION_MAJOR > 2
31771 db_env_create( NULL, 0 );
31772 #elif DB_VERSION_MAJOR > 1
31773 db_appexit( NULL );
31775 (void) dbopen( NULL, 0, 0, 0, NULL);
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784 (eval $ac_link) 2>conftest.er1
31786 grep -v '^ *+' conftest.er1 >conftest.err
31788 cat conftest.err >&5
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); } &&
31791 { ac_try='test -z "$ac_c_werror_flag"
31792 || test ! -s conftest.err'
31793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 (eval $ac_try) 2>&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; } &&
31798 { ac_try='test -s conftest$ac_exeext'
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
31806 echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31811 rm -f conftest.err conftest.$ac_objext \
31812 conftest$ac_exeext conftest.$ac_ext
31817 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31818 echo "${ECHO_T}$ol_cv_db_db44" >&6
31820 if test $ol_cv_db_db44 = yes ; then
31821 ol_cv_lib_db=-ldb44
31825 if test $ol_cv_lib_db = no ; then
31826 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31827 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31828 if test "${ol_cv_db_db_44+set}" = set; then
31829 echo $ECHO_N "(cached) $ECHO_C" >&6
31834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31836 cat >conftest.$ac_ext <<_ACEOF
31839 cat confdefs.h >>conftest.$ac_ext
31840 cat >>conftest.$ac_ext <<_ACEOF
31841 /* end confdefs.h. */
31843 #ifdef HAVE_DB_185_H
31844 # include <db_185.h>
31849 #ifndef DB_VERSION_MAJOR
31850 # define DB_VERSION_MAJOR 1
31854 #define NULL ((void*)0)
31861 #if DB_VERSION_MAJOR > 1
31864 int major, minor, patch;
31866 version = db_version( &major, &minor, &patch );
31868 if( major != DB_VERSION_MAJOR ||
31869 minor < DB_VERSION_MINOR )
31871 printf("Berkeley DB version mismatch\n"
31872 "\theader: %s\n\tlibrary: %s\n",
31873 DB_VERSION_STRING, version);
31879 #if DB_VERSION_MAJOR > 2
31880 db_env_create( NULL, 0 );
31881 #elif DB_VERSION_MAJOR > 1
31882 db_appexit( NULL );
31884 (void) dbopen( NULL, 0, 0, 0, NULL);
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31893 (eval $ac_link) 2>conftest.er1
31895 grep -v '^ *+' conftest.er1 >conftest.err
31897 cat conftest.err >&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -z "$ac_c_werror_flag"
31901 || test ! -s conftest.err'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31920 rm -f conftest.err conftest.$ac_objext \
31921 conftest$ac_exeext conftest.$ac_ext
31926 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31927 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31929 if test $ol_cv_db_db_44 = yes ; then
31930 ol_cv_lib_db=-ldb-44
31934 if test $ol_cv_lib_db = no ; then
31935 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31936 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31937 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31938 echo $ECHO_N "(cached) $ECHO_C" >&6
31943 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31945 cat >conftest.$ac_ext <<_ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31952 #ifdef HAVE_DB_185_H
31953 # include <db_185.h>
31958 #ifndef DB_VERSION_MAJOR
31959 # define DB_VERSION_MAJOR 1
31963 #define NULL ((void*)0)
31970 #if DB_VERSION_MAJOR > 1
31973 int major, minor, patch;
31975 version = db_version( &major, &minor, &patch );
31977 if( major != DB_VERSION_MAJOR ||
31978 minor < DB_VERSION_MINOR )
31980 printf("Berkeley DB version mismatch\n"
31981 "\theader: %s\n\tlibrary: %s\n",
31982 DB_VERSION_STRING, version);
31988 #if DB_VERSION_MAJOR > 2
31989 db_env_create( NULL, 0 );
31990 #elif DB_VERSION_MAJOR > 1
31991 db_appexit( NULL );
31993 (void) dbopen( NULL, 0, 0, 0, NULL);
32000 rm -f conftest.$ac_objext conftest$ac_exeext
32001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32002 (eval $ac_link) 2>conftest.er1
32004 grep -v '^ *+' conftest.er1 >conftest.err
32006 cat conftest.err >&5
32007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008 (exit $ac_status); } &&
32009 { ac_try='test -z "$ac_c_werror_flag"
32010 || test ! -s conftest.err'
32011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32012 (eval $ac_try) 2>&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; } &&
32016 { ac_try='test -s conftest$ac_exeext'
32017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018 (eval $ac_try) 2>&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; }; then
32022 ol_cv_db_db_4_dot_4=yes
32024 echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32027 ol_cv_db_db_4_dot_4=no
32029 rm -f conftest.err conftest.$ac_objext \
32030 conftest$ac_exeext conftest.$ac_ext
32035 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32036 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32038 if test $ol_cv_db_db_4_dot_4 = yes ; then
32039 ol_cv_lib_db=-ldb-4.4
32043 if test $ol_cv_lib_db = no ; then
32044 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32045 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32046 if test "${ol_cv_db_db_4_4+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32054 cat >conftest.$ac_ext <<_ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h. */
32061 #ifdef HAVE_DB_185_H
32062 # include <db_185.h>
32067 #ifndef DB_VERSION_MAJOR
32068 # define DB_VERSION_MAJOR 1
32072 #define NULL ((void*)0)
32079 #if DB_VERSION_MAJOR > 1
32082 int major, minor, patch;
32084 version = db_version( &major, &minor, &patch );
32086 if( major != DB_VERSION_MAJOR ||
32087 minor < DB_VERSION_MINOR )
32089 printf("Berkeley DB version mismatch\n"
32090 "\theader: %s\n\tlibrary: %s\n",
32091 DB_VERSION_STRING, version);
32097 #if DB_VERSION_MAJOR > 2
32098 db_env_create( NULL, 0 );
32099 #elif DB_VERSION_MAJOR > 1
32100 db_appexit( NULL );
32102 (void) dbopen( NULL, 0, 0, 0, NULL);
32109 rm -f conftest.$ac_objext conftest$ac_exeext
32110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32111 (eval $ac_link) 2>conftest.er1
32113 grep -v '^ *+' conftest.er1 >conftest.err
32115 cat conftest.err >&5
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); } &&
32118 { ac_try='test -z "$ac_c_werror_flag"
32119 || test ! -s conftest.err'
32120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121 (eval $ac_try) 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest$ac_exeext'
32126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32127 (eval $ac_try) 2>&5
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; }; then
32131 ol_cv_db_db_4_4=yes
32133 echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32138 rm -f conftest.err conftest.$ac_objext \
32139 conftest$ac_exeext conftest.$ac_ext
32144 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32145 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32147 if test $ol_cv_db_db_4_4 = yes ; then
32148 ol_cv_lib_db=-ldb-4-4
32152 elif test $ol_cv_bdb_minor = 3 ; then
32153 if test $ol_cv_lib_db = no ; then
32154 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32155 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32156 if test "${ol_cv_db_db43+set}" = set; then
32157 echo $ECHO_N "(cached) $ECHO_C" >&6
32162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32164 cat >conftest.$ac_ext <<_ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h. */
32171 #ifdef HAVE_DB_185_H
32172 # include <db_185.h>
32177 #ifndef DB_VERSION_MAJOR
32178 # define DB_VERSION_MAJOR 1
32182 #define NULL ((void*)0)
32189 #if DB_VERSION_MAJOR > 1
32192 int major, minor, patch;
32194 version = db_version( &major, &minor, &patch );
32196 if( major != DB_VERSION_MAJOR ||
32197 minor < DB_VERSION_MINOR )
32199 printf("Berkeley DB version mismatch\n"
32200 "\theader: %s\n\tlibrary: %s\n",
32201 DB_VERSION_STRING, version);
32207 #if DB_VERSION_MAJOR > 2
32208 db_env_create( NULL, 0 );
32209 #elif DB_VERSION_MAJOR > 1
32210 db_appexit( NULL );
32212 (void) dbopen( NULL, 0, 0, 0, NULL);
32219 rm -f conftest.$ac_objext conftest$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221 (eval $ac_link) 2>conftest.er1
32223 grep -v '^ *+' conftest.er1 >conftest.err
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
32228 { ac_try='test -z "$ac_c_werror_flag"
32229 || test ! -s conftest.err'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest$ac_exeext'
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; }; then
32243 echo "$as_me: failed program was:" >&5
32244 sed 's/^/| /' conftest.$ac_ext >&5
32248 rm -f conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
32254 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32255 echo "${ECHO_T}$ol_cv_db_db43" >&6
32257 if test $ol_cv_db_db43 = yes ; then
32258 ol_cv_lib_db=-ldb43
32262 if test $ol_cv_lib_db = no ; then
32263 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32264 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32265 if test "${ol_cv_db_db_43+set}" = set; then
32266 echo $ECHO_N "(cached) $ECHO_C" >&6
32271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32273 cat >conftest.$ac_ext <<_ACEOF
32276 cat confdefs.h >>conftest.$ac_ext
32277 cat >>conftest.$ac_ext <<_ACEOF
32278 /* end confdefs.h. */
32280 #ifdef HAVE_DB_185_H
32281 # include <db_185.h>
32286 #ifndef DB_VERSION_MAJOR
32287 # define DB_VERSION_MAJOR 1
32291 #define NULL ((void*)0)
32298 #if DB_VERSION_MAJOR > 1
32301 int major, minor, patch;
32303 version = db_version( &major, &minor, &patch );
32305 if( major != DB_VERSION_MAJOR ||
32306 minor < DB_VERSION_MINOR )
32308 printf("Berkeley DB version mismatch\n"
32309 "\theader: %s\n\tlibrary: %s\n",
32310 DB_VERSION_STRING, version);
32316 #if DB_VERSION_MAJOR > 2
32317 db_env_create( NULL, 0 );
32318 #elif DB_VERSION_MAJOR > 1
32319 db_appexit( NULL );
32321 (void) dbopen( NULL, 0, 0, 0, NULL);
32328 rm -f conftest.$ac_objext conftest$ac_exeext
32329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32330 (eval $ac_link) 2>conftest.er1
32332 grep -v '^ *+' conftest.er1 >conftest.err
32334 cat conftest.err >&5
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); } &&
32337 { ac_try='test -z "$ac_c_werror_flag"
32338 || test ! -s conftest.err'
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; } &&
32344 { ac_try='test -s conftest$ac_exeext'
32345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32346 (eval $ac_try) 2>&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; }; then
32352 echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32357 rm -f conftest.err conftest.$ac_objext \
32358 conftest$ac_exeext conftest.$ac_ext
32363 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32364 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32366 if test $ol_cv_db_db_43 = yes ; then
32367 ol_cv_lib_db=-ldb-43
32371 if test $ol_cv_lib_db = no ; then
32372 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32373 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32374 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32375 echo $ECHO_N "(cached) $ECHO_C" >&6
32380 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32382 cat >conftest.$ac_ext <<_ACEOF
32385 cat confdefs.h >>conftest.$ac_ext
32386 cat >>conftest.$ac_ext <<_ACEOF
32387 /* end confdefs.h. */
32389 #ifdef HAVE_DB_185_H
32390 # include <db_185.h>
32395 #ifndef DB_VERSION_MAJOR
32396 # define DB_VERSION_MAJOR 1
32400 #define NULL ((void*)0)
32407 #if DB_VERSION_MAJOR > 1
32410 int major, minor, patch;
32412 version = db_version( &major, &minor, &patch );
32414 if( major != DB_VERSION_MAJOR ||
32415 minor < DB_VERSION_MINOR )
32417 printf("Berkeley DB version mismatch\n"
32418 "\theader: %s\n\tlibrary: %s\n",
32419 DB_VERSION_STRING, version);
32425 #if DB_VERSION_MAJOR > 2
32426 db_env_create( NULL, 0 );
32427 #elif DB_VERSION_MAJOR > 1
32428 db_appexit( NULL );
32430 (void) dbopen( NULL, 0, 0, 0, NULL);
32437 rm -f conftest.$ac_objext conftest$ac_exeext
32438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32439 (eval $ac_link) 2>conftest.er1
32441 grep -v '^ *+' conftest.er1 >conftest.err
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } &&
32446 { ac_try='test -z "$ac_c_werror_flag"
32447 || test ! -s conftest.err'
32448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32449 (eval $ac_try) 2>&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest$ac_exeext'
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 ol_cv_db_db_4_dot_3=yes
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ol_cv_db_db_4_dot_3=no
32466 rm -f conftest.err conftest.$ac_objext \
32467 conftest$ac_exeext conftest.$ac_ext
32472 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32473 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32475 if test $ol_cv_db_db_4_dot_3 = yes ; then
32476 ol_cv_lib_db=-ldb-4.3
32480 if test $ol_cv_lib_db = no ; then
32481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32483 if test "${ol_cv_db_db_4_3+set}" = set; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32491 cat >conftest.$ac_ext <<_ACEOF
32494 cat confdefs.h >>conftest.$ac_ext
32495 cat >>conftest.$ac_ext <<_ACEOF
32496 /* end confdefs.h. */
32498 #ifdef HAVE_DB_185_H
32499 # include <db_185.h>
32504 #ifndef DB_VERSION_MAJOR
32505 # define DB_VERSION_MAJOR 1
32509 #define NULL ((void*)0)
32516 #if DB_VERSION_MAJOR > 1
32519 int major, minor, patch;
32521 version = db_version( &major, &minor, &patch );
32523 if( major != DB_VERSION_MAJOR ||
32524 minor < DB_VERSION_MINOR )
32526 printf("Berkeley DB version mismatch\n"
32527 "\theader: %s\n\tlibrary: %s\n",
32528 DB_VERSION_STRING, version);
32534 #if DB_VERSION_MAJOR > 2
32535 db_env_create( NULL, 0 );
32536 #elif DB_VERSION_MAJOR > 1
32537 db_appexit( NULL );
32539 (void) dbopen( NULL, 0, 0, 0, NULL);
32546 rm -f conftest.$ac_objext conftest$ac_exeext
32547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32548 (eval $ac_link) 2>conftest.er1
32550 grep -v '^ *+' conftest.er1 >conftest.err
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
32555 { ac_try='test -z "$ac_c_werror_flag"
32556 || test ! -s conftest.err'
32557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558 (eval $ac_try) 2>&5
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; } &&
32562 { ac_try='test -s conftest$ac_exeext'
32563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32564 (eval $ac_try) 2>&5
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; }; then
32568 ol_cv_db_db_4_3=yes
32570 echo "$as_me: failed program was:" >&5
32571 sed 's/^/| /' conftest.$ac_ext >&5
32575 rm -f conftest.err conftest.$ac_objext \
32576 conftest$ac_exeext conftest.$ac_ext
32581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32582 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32584 if test $ol_cv_db_db_4_3 = yes ; then
32585 ol_cv_lib_db=-ldb-4-3
32589 elif test $ol_cv_bdb_minor = 2 ; then
32590 if test $ol_cv_lib_db = no ; then
32591 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32592 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32593 if test "${ol_cv_db_db42+set}" = set; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32599 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32601 cat >conftest.$ac_ext <<_ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h. */
32608 #ifdef HAVE_DB_185_H
32609 # include <db_185.h>
32614 #ifndef DB_VERSION_MAJOR
32615 # define DB_VERSION_MAJOR 1
32619 #define NULL ((void*)0)
32626 #if DB_VERSION_MAJOR > 1
32629 int major, minor, patch;
32631 version = db_version( &major, &minor, &patch );
32633 if( major != DB_VERSION_MAJOR ||
32634 minor < DB_VERSION_MINOR )
32636 printf("Berkeley DB version mismatch\n"
32637 "\theader: %s\n\tlibrary: %s\n",
32638 DB_VERSION_STRING, version);
32644 #if DB_VERSION_MAJOR > 2
32645 db_env_create( NULL, 0 );
32646 #elif DB_VERSION_MAJOR > 1
32647 db_appexit( NULL );
32649 (void) dbopen( NULL, 0, 0, 0, NULL);
32656 rm -f conftest.$ac_objext conftest$ac_exeext
32657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32658 (eval $ac_link) 2>conftest.er1
32660 grep -v '^ *+' conftest.er1 >conftest.err
32662 cat conftest.err >&5
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } &&
32665 { ac_try='test -z "$ac_c_werror_flag"
32666 || test ! -s conftest.err'
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; } &&
32672 { ac_try='test -s conftest$ac_exeext'
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
32680 echo "$as_me: failed program was:" >&5
32681 sed 's/^/| /' conftest.$ac_ext >&5
32685 rm -f conftest.err conftest.$ac_objext \
32686 conftest$ac_exeext conftest.$ac_ext
32691 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32692 echo "${ECHO_T}$ol_cv_db_db42" >&6
32694 if test $ol_cv_db_db42 = yes ; then
32695 ol_cv_lib_db=-ldb42
32699 if test $ol_cv_lib_db = no ; then
32700 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32701 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32702 if test "${ol_cv_db_db_42+set}" = set; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32708 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32710 cat >conftest.$ac_ext <<_ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h. */
32717 #ifdef HAVE_DB_185_H
32718 # include <db_185.h>
32723 #ifndef DB_VERSION_MAJOR
32724 # define DB_VERSION_MAJOR 1
32728 #define NULL ((void*)0)
32735 #if DB_VERSION_MAJOR > 1
32738 int major, minor, patch;
32740 version = db_version( &major, &minor, &patch );
32742 if( major != DB_VERSION_MAJOR ||
32743 minor < DB_VERSION_MINOR )
32745 printf("Berkeley DB version mismatch\n"
32746 "\theader: %s\n\tlibrary: %s\n",
32747 DB_VERSION_STRING, version);
32753 #if DB_VERSION_MAJOR > 2
32754 db_env_create( NULL, 0 );
32755 #elif DB_VERSION_MAJOR > 1
32756 db_appexit( NULL );
32758 (void) dbopen( NULL, 0, 0, 0, NULL);
32765 rm -f conftest.$ac_objext conftest$ac_exeext
32766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32767 (eval $ac_link) 2>conftest.er1
32769 grep -v '^ *+' conftest.er1 >conftest.err
32771 cat conftest.err >&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); } &&
32774 { ac_try='test -z "$ac_c_werror_flag"
32775 || test ! -s conftest.err'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; } &&
32781 { ac_try='test -s conftest$ac_exeext'
32782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32783 (eval $ac_try) 2>&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; }; then
32789 echo "$as_me: failed program was:" >&5
32790 sed 's/^/| /' conftest.$ac_ext >&5
32794 rm -f conftest.err conftest.$ac_objext \
32795 conftest$ac_exeext conftest.$ac_ext
32800 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32801 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32803 if test $ol_cv_db_db_42 = yes ; then
32804 ol_cv_lib_db=-ldb-42
32808 if test $ol_cv_lib_db = no ; then
32809 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32811 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32812 echo $ECHO_N "(cached) $ECHO_C" >&6
32817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32819 cat >conftest.$ac_ext <<_ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h. */
32826 #ifdef HAVE_DB_185_H
32827 # include <db_185.h>
32832 #ifndef DB_VERSION_MAJOR
32833 # define DB_VERSION_MAJOR 1
32837 #define NULL ((void*)0)
32844 #if DB_VERSION_MAJOR > 1
32847 int major, minor, patch;
32849 version = db_version( &major, &minor, &patch );
32851 if( major != DB_VERSION_MAJOR ||
32852 minor < DB_VERSION_MINOR )
32854 printf("Berkeley DB version mismatch\n"
32855 "\theader: %s\n\tlibrary: %s\n",
32856 DB_VERSION_STRING, version);
32862 #if DB_VERSION_MAJOR > 2
32863 db_env_create( NULL, 0 );
32864 #elif DB_VERSION_MAJOR > 1
32865 db_appexit( NULL );
32867 (void) dbopen( NULL, 0, 0, 0, NULL);
32874 rm -f conftest.$ac_objext conftest$ac_exeext
32875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32876 (eval $ac_link) 2>conftest.er1
32878 grep -v '^ *+' conftest.er1 >conftest.err
32880 cat conftest.err >&5
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } &&
32883 { ac_try='test -z "$ac_c_werror_flag"
32884 || test ! -s conftest.err'
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; } &&
32890 { ac_try='test -s conftest$ac_exeext'
32891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892 (eval $ac_try) 2>&5
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
32896 ol_cv_db_db_4_dot_2=yes
32898 echo "$as_me: failed program was:" >&5
32899 sed 's/^/| /' conftest.$ac_ext >&5
32901 ol_cv_db_db_4_dot_2=no
32903 rm -f conftest.err conftest.$ac_objext \
32904 conftest$ac_exeext conftest.$ac_ext
32909 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32910 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32912 if test $ol_cv_db_db_4_dot_2 = yes ; then
32913 ol_cv_lib_db=-ldb-4.2
32917 if test $ol_cv_lib_db = no ; then
32918 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32919 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32920 if test "${ol_cv_db_db_4_2+set}" = set; then
32921 echo $ECHO_N "(cached) $ECHO_C" >&6
32926 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32928 cat >conftest.$ac_ext <<_ACEOF
32931 cat confdefs.h >>conftest.$ac_ext
32932 cat >>conftest.$ac_ext <<_ACEOF
32933 /* end confdefs.h. */
32935 #ifdef HAVE_DB_185_H
32936 # include <db_185.h>
32941 #ifndef DB_VERSION_MAJOR
32942 # define DB_VERSION_MAJOR 1
32946 #define NULL ((void*)0)
32953 #if DB_VERSION_MAJOR > 1
32956 int major, minor, patch;
32958 version = db_version( &major, &minor, &patch );
32960 if( major != DB_VERSION_MAJOR ||
32961 minor < DB_VERSION_MINOR )
32963 printf("Berkeley DB version mismatch\n"
32964 "\theader: %s\n\tlibrary: %s\n",
32965 DB_VERSION_STRING, version);
32971 #if DB_VERSION_MAJOR > 2
32972 db_env_create( NULL, 0 );
32973 #elif DB_VERSION_MAJOR > 1
32974 db_appexit( NULL );
32976 (void) dbopen( NULL, 0, 0, 0, NULL);
32983 rm -f conftest.$ac_objext conftest$ac_exeext
32984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32985 (eval $ac_link) 2>conftest.er1
32987 grep -v '^ *+' conftest.er1 >conftest.err
32989 cat conftest.err >&5
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); } &&
32992 { ac_try='test -z "$ac_c_werror_flag"
32993 || test ! -s conftest.err'
32994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995 (eval $ac_try) 2>&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; } &&
32999 { ac_try='test -s conftest$ac_exeext'
33000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001 (eval $ac_try) 2>&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); }; }; then
33005 ol_cv_db_db_4_2=yes
33007 echo "$as_me: failed program was:" >&5
33008 sed 's/^/| /' conftest.$ac_ext >&5
33012 rm -f conftest.err conftest.$ac_objext \
33013 conftest$ac_exeext conftest.$ac_ext
33018 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33019 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33021 if test $ol_cv_db_db_4_2 = yes ; then
33022 ol_cv_lib_db=-ldb-4-2
33026 elif test $ol_cv_bdb_minor = 1 ; then
33027 if test $ol_cv_lib_db = no ; then
33028 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33029 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33030 if test "${ol_cv_db_db41+set}" = set; then
33031 echo $ECHO_N "(cached) $ECHO_C" >&6
33036 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33038 cat >conftest.$ac_ext <<_ACEOF
33041 cat confdefs.h >>conftest.$ac_ext
33042 cat >>conftest.$ac_ext <<_ACEOF
33043 /* end confdefs.h. */
33045 #ifdef HAVE_DB_185_H
33046 # include <db_185.h>
33051 #ifndef DB_VERSION_MAJOR
33052 # define DB_VERSION_MAJOR 1
33056 #define NULL ((void*)0)
33063 #if DB_VERSION_MAJOR > 1
33066 int major, minor, patch;
33068 version = db_version( &major, &minor, &patch );
33070 if( major != DB_VERSION_MAJOR ||
33071 minor < DB_VERSION_MINOR )
33073 printf("Berkeley DB version mismatch\n"
33074 "\theader: %s\n\tlibrary: %s\n",
33075 DB_VERSION_STRING, version);
33081 #if DB_VERSION_MAJOR > 2
33082 db_env_create( NULL, 0 );
33083 #elif DB_VERSION_MAJOR > 1
33084 db_appexit( NULL );
33086 (void) dbopen( NULL, 0, 0, 0, NULL);
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095 (eval $ac_link) 2>conftest.er1
33097 grep -v '^ *+' conftest.er1 >conftest.err
33099 cat conftest.err >&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try='test -z "$ac_c_werror_flag"
33103 || test ! -s conftest.err'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; } &&
33109 { ac_try='test -s conftest$ac_exeext'
33110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111 (eval $ac_try) 2>&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
33117 echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33122 rm -f conftest.err conftest.$ac_objext \
33123 conftest$ac_exeext conftest.$ac_ext
33128 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33129 echo "${ECHO_T}$ol_cv_db_db41" >&6
33131 if test $ol_cv_db_db41 = yes ; then
33132 ol_cv_lib_db=-ldb41
33136 if test $ol_cv_lib_db = no ; then
33137 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33138 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33139 if test "${ol_cv_db_db_41+set}" = set; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33145 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33147 cat >conftest.$ac_ext <<_ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h. */
33154 #ifdef HAVE_DB_185_H
33155 # include <db_185.h>
33160 #ifndef DB_VERSION_MAJOR
33161 # define DB_VERSION_MAJOR 1
33165 #define NULL ((void*)0)
33172 #if DB_VERSION_MAJOR > 1
33175 int major, minor, patch;
33177 version = db_version( &major, &minor, &patch );
33179 if( major != DB_VERSION_MAJOR ||
33180 minor < DB_VERSION_MINOR )
33182 printf("Berkeley DB version mismatch\n"
33183 "\theader: %s\n\tlibrary: %s\n",
33184 DB_VERSION_STRING, version);
33190 #if DB_VERSION_MAJOR > 2
33191 db_env_create( NULL, 0 );
33192 #elif DB_VERSION_MAJOR > 1
33193 db_appexit( NULL );
33195 (void) dbopen( NULL, 0, 0, 0, NULL);
33202 rm -f conftest.$ac_objext conftest$ac_exeext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33204 (eval $ac_link) 2>conftest.er1
33206 grep -v '^ *+' conftest.er1 >conftest.err
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } &&
33211 { ac_try='test -z "$ac_c_werror_flag"
33212 || test ! -s conftest.err'
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest$ac_exeext'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33226 echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33231 rm -f conftest.err conftest.$ac_objext \
33232 conftest$ac_exeext conftest.$ac_ext
33237 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33238 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33240 if test $ol_cv_db_db_41 = yes ; then
33241 ol_cv_lib_db=-ldb-41
33245 if test $ol_cv_lib_db = no ; then
33246 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33247 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33248 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33256 cat >conftest.$ac_ext <<_ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h. */
33263 #ifdef HAVE_DB_185_H
33264 # include <db_185.h>
33269 #ifndef DB_VERSION_MAJOR
33270 # define DB_VERSION_MAJOR 1
33274 #define NULL ((void*)0)
33281 #if DB_VERSION_MAJOR > 1
33284 int major, minor, patch;
33286 version = db_version( &major, &minor, &patch );
33288 if( major != DB_VERSION_MAJOR ||
33289 minor < DB_VERSION_MINOR )
33291 printf("Berkeley DB version mismatch\n"
33292 "\theader: %s\n\tlibrary: %s\n",
33293 DB_VERSION_STRING, version);
33299 #if DB_VERSION_MAJOR > 2
33300 db_env_create( NULL, 0 );
33301 #elif DB_VERSION_MAJOR > 1
33302 db_appexit( NULL );
33304 (void) dbopen( NULL, 0, 0, 0, NULL);
33311 rm -f conftest.$ac_objext conftest$ac_exeext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33313 (eval $ac_link) 2>conftest.er1
33315 grep -v '^ *+' conftest.er1 >conftest.err
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_c_werror_flag"
33321 || test ! -s conftest.err'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; } &&
33327 { ac_try='test -s conftest$ac_exeext'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 ol_cv_db_db_4_dot_1=yes
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33338 ol_cv_db_db_4_dot_1=no
33340 rm -f conftest.err conftest.$ac_objext \
33341 conftest$ac_exeext conftest.$ac_ext
33346 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33347 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33349 if test $ol_cv_db_db_4_dot_1 = yes ; then
33350 ol_cv_lib_db=-ldb-4.1
33354 if test $ol_cv_lib_db = no ; then
33355 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33356 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33357 if test "${ol_cv_db_db_4_1+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33365 cat >conftest.$ac_ext <<_ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33372 #ifdef HAVE_DB_185_H
33373 # include <db_185.h>
33378 #ifndef DB_VERSION_MAJOR
33379 # define DB_VERSION_MAJOR 1
33383 #define NULL ((void*)0)
33390 #if DB_VERSION_MAJOR > 1
33393 int major, minor, patch;
33395 version = db_version( &major, &minor, &patch );
33397 if( major != DB_VERSION_MAJOR ||
33398 minor < DB_VERSION_MINOR )
33400 printf("Berkeley DB version mismatch\n"
33401 "\theader: %s\n\tlibrary: %s\n",
33402 DB_VERSION_STRING, version);
33408 #if DB_VERSION_MAJOR > 2
33409 db_env_create( NULL, 0 );
33410 #elif DB_VERSION_MAJOR > 1
33411 db_appexit( NULL );
33413 (void) dbopen( NULL, 0, 0, 0, NULL);
33420 rm -f conftest.$ac_objext conftest$ac_exeext
33421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33422 (eval $ac_link) 2>conftest.er1
33424 grep -v '^ *+' conftest.er1 >conftest.err
33426 cat conftest.err >&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } &&
33429 { ac_try='test -z "$ac_c_werror_flag"
33430 || test ! -s conftest.err'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; } &&
33436 { ac_try='test -s conftest$ac_exeext'
33437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438 (eval $ac_try) 2>&5
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); }; }; then
33442 ol_cv_db_db_4_1=yes
33444 echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33449 rm -f conftest.err conftest.$ac_objext \
33450 conftest$ac_exeext conftest.$ac_ext
33455 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33456 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33458 if test $ol_cv_db_db_4_1 = yes ; then
33459 ol_cv_lib_db=-ldb-4-1
33464 if test $ol_cv_lib_db = no ; then
33465 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33466 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33467 if test "${ol_cv_db_db_4+set}" = set; then
33468 echo $ECHO_N "(cached) $ECHO_C" >&6
33473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33475 cat >conftest.$ac_ext <<_ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h. */
33482 #ifdef HAVE_DB_185_H
33483 # include <db_185.h>
33488 #ifndef DB_VERSION_MAJOR
33489 # define DB_VERSION_MAJOR 1
33493 #define NULL ((void*)0)
33500 #if DB_VERSION_MAJOR > 1
33503 int major, minor, patch;
33505 version = db_version( &major, &minor, &patch );
33507 if( major != DB_VERSION_MAJOR ||
33508 minor < DB_VERSION_MINOR )
33510 printf("Berkeley DB version mismatch\n"
33511 "\theader: %s\n\tlibrary: %s\n",
33512 DB_VERSION_STRING, version);
33518 #if DB_VERSION_MAJOR > 2
33519 db_env_create( NULL, 0 );
33520 #elif DB_VERSION_MAJOR > 1
33521 db_appexit( NULL );
33523 (void) dbopen( NULL, 0, 0, 0, NULL);
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33532 (eval $ac_link) 2>conftest.er1
33534 grep -v '^ *+' conftest.er1 >conftest.err
33536 cat conftest.err >&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } &&
33539 { ac_try='test -z "$ac_c_werror_flag"
33540 || test ! -s conftest.err'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; } &&
33546 { ac_try='test -s conftest$ac_exeext'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33554 echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33559 rm -f conftest.err conftest.$ac_objext \
33560 conftest$ac_exeext conftest.$ac_ext
33565 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33566 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33568 if test $ol_cv_db_db_4 = yes ; then
33569 ol_cv_lib_db=-ldb-4
33573 if test $ol_cv_lib_db = no ; then
33574 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33575 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33576 if test "${ol_cv_db_db4+set}" = set; then
33577 echo $ECHO_N "(cached) $ECHO_C" >&6
33582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33584 cat >conftest.$ac_ext <<_ACEOF
33587 cat confdefs.h >>conftest.$ac_ext
33588 cat >>conftest.$ac_ext <<_ACEOF
33589 /* end confdefs.h. */
33591 #ifdef HAVE_DB_185_H
33592 # include <db_185.h>
33597 #ifndef DB_VERSION_MAJOR
33598 # define DB_VERSION_MAJOR 1
33602 #define NULL ((void*)0)
33609 #if DB_VERSION_MAJOR > 1
33612 int major, minor, patch;
33614 version = db_version( &major, &minor, &patch );
33616 if( major != DB_VERSION_MAJOR ||
33617 minor < DB_VERSION_MINOR )
33619 printf("Berkeley DB version mismatch\n"
33620 "\theader: %s\n\tlibrary: %s\n",
33621 DB_VERSION_STRING, version);
33627 #if DB_VERSION_MAJOR > 2
33628 db_env_create( NULL, 0 );
33629 #elif DB_VERSION_MAJOR > 1
33630 db_appexit( NULL );
33632 (void) dbopen( NULL, 0, 0, 0, NULL);
33639 rm -f conftest.$ac_objext conftest$ac_exeext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33641 (eval $ac_link) 2>conftest.er1
33643 grep -v '^ *+' conftest.er1 >conftest.err
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
33648 { ac_try='test -z "$ac_c_werror_flag"
33649 || test ! -s conftest.err'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest$ac_exeext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33663 echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33668 rm -f conftest.err conftest.$ac_objext \
33669 conftest$ac_exeext conftest.$ac_ext
33674 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33675 echo "${ECHO_T}$ol_cv_db_db4" >&6
33677 if test $ol_cv_db_db4 = yes ; then
33682 if test $ol_cv_lib_db = no ; then
33683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33684 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33685 if test "${ol_cv_db_db+set}" = set; then
33686 echo $ECHO_N "(cached) $ECHO_C" >&6
33691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33700 #ifdef HAVE_DB_185_H
33701 # include <db_185.h>
33706 #ifndef DB_VERSION_MAJOR
33707 # define DB_VERSION_MAJOR 1
33711 #define NULL ((void*)0)
33718 #if DB_VERSION_MAJOR > 1
33721 int major, minor, patch;
33723 version = db_version( &major, &minor, &patch );
33725 if( major != DB_VERSION_MAJOR ||
33726 minor < DB_VERSION_MINOR )
33728 printf("Berkeley DB version mismatch\n"
33729 "\theader: %s\n\tlibrary: %s\n",
33730 DB_VERSION_STRING, version);
33736 #if DB_VERSION_MAJOR > 2
33737 db_env_create( NULL, 0 );
33738 #elif DB_VERSION_MAJOR > 1
33739 db_appexit( NULL );
33741 (void) dbopen( NULL, 0, 0, 0, NULL);
33748 rm -f conftest.$ac_objext conftest$ac_exeext
33749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33750 (eval $ac_link) 2>conftest.er1
33752 grep -v '^ *+' conftest.er1 >conftest.err
33754 cat conftest.err >&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); } &&
33757 { ac_try='test -z "$ac_c_werror_flag"
33758 || test ! -s conftest.err'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; } &&
33764 { ac_try='test -s conftest$ac_exeext'
33765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766 (eval $ac_try) 2>&5
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); }; }; then
33772 echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33777 rm -f conftest.err conftest.$ac_objext \
33778 conftest$ac_exeext conftest.$ac_ext
33783 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33784 echo "${ECHO_T}$ol_cv_db_db" >&6
33786 if test $ol_cv_db_db = yes ; then
33792 elif test $ol_cv_bdb_major = 3 ; then
33793 if test $ol_cv_lib_db = no ; then
33794 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33795 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33796 if test "${ol_cv_db_db3+set}" = set; then
33797 echo $ECHO_N "(cached) $ECHO_C" >&6
33802 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33804 cat >conftest.$ac_ext <<_ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33811 #ifdef HAVE_DB_185_H
33812 # include <db_185.h>
33817 #ifndef DB_VERSION_MAJOR
33818 # define DB_VERSION_MAJOR 1
33822 #define NULL ((void*)0)
33829 #if DB_VERSION_MAJOR > 1
33832 int major, minor, patch;
33834 version = db_version( &major, &minor, &patch );
33836 if( major != DB_VERSION_MAJOR ||
33837 minor < DB_VERSION_MINOR )
33839 printf("Berkeley DB version mismatch\n"
33840 "\theader: %s\n\tlibrary: %s\n",
33841 DB_VERSION_STRING, version);
33847 #if DB_VERSION_MAJOR > 2
33848 db_env_create( NULL, 0 );
33849 #elif DB_VERSION_MAJOR > 1
33850 db_appexit( NULL );
33852 (void) dbopen( NULL, 0, 0, 0, NULL);
33859 rm -f conftest.$ac_objext conftest$ac_exeext
33860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33861 (eval $ac_link) 2>conftest.er1
33863 grep -v '^ *+' conftest.er1 >conftest.err
33865 cat conftest.err >&5
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
33868 { ac_try='test -z "$ac_c_werror_flag"
33869 || test ! -s conftest.err'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; } &&
33875 { ac_try='test -s conftest$ac_exeext'
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; }; then
33883 echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33888 rm -f conftest.err conftest.$ac_objext \
33889 conftest$ac_exeext conftest.$ac_ext
33894 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33895 echo "${ECHO_T}$ol_cv_db_db3" >&6
33897 if test $ol_cv_db_db3 = yes ; then
33902 if test $ol_cv_lib_db = no ; then
33903 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33904 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33905 if test "${ol_cv_db_db_3+set}" = set; then
33906 echo $ECHO_N "(cached) $ECHO_C" >&6
33911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33913 cat >conftest.$ac_ext <<_ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h. */
33920 #ifdef HAVE_DB_185_H
33921 # include <db_185.h>
33926 #ifndef DB_VERSION_MAJOR
33927 # define DB_VERSION_MAJOR 1
33931 #define NULL ((void*)0)
33938 #if DB_VERSION_MAJOR > 1
33941 int major, minor, patch;
33943 version = db_version( &major, &minor, &patch );
33945 if( major != DB_VERSION_MAJOR ||
33946 minor < DB_VERSION_MINOR )
33948 printf("Berkeley DB version mismatch\n"
33949 "\theader: %s\n\tlibrary: %s\n",
33950 DB_VERSION_STRING, version);
33956 #if DB_VERSION_MAJOR > 2
33957 db_env_create( NULL, 0 );
33958 #elif DB_VERSION_MAJOR > 1
33959 db_appexit( NULL );
33961 (void) dbopen( NULL, 0, 0, 0, NULL);
33968 rm -f conftest.$ac_objext conftest$ac_exeext
33969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33970 (eval $ac_link) 2>conftest.er1
33972 grep -v '^ *+' conftest.er1 >conftest.err
33974 cat conftest.err >&5
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } &&
33977 { ac_try='test -z "$ac_c_werror_flag"
33978 || test ! -s conftest.err'
33979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980 (eval $ac_try) 2>&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; } &&
33984 { ac_try='test -s conftest$ac_exeext'
33985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33986 (eval $ac_try) 2>&5
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; }; then
33992 echo "$as_me: failed program was:" >&5
33993 sed 's/^/| /' conftest.$ac_ext >&5
33997 rm -f conftest.err conftest.$ac_objext \
33998 conftest$ac_exeext conftest.$ac_ext
34003 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34004 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34006 if test $ol_cv_db_db_3 = yes ; then
34007 ol_cv_lib_db=-ldb-3
34012 elif test $ol_cv_bdb_major = 2 ; then
34013 if test $ol_cv_lib_db = no ; then
34014 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34015 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34016 if test "${ol_cv_db_db2+set}" = set; then
34017 echo $ECHO_N "(cached) $ECHO_C" >&6
34022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34024 cat >conftest.$ac_ext <<_ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h. */
34031 #ifdef HAVE_DB_185_H
34032 # include <db_185.h>
34037 #ifndef DB_VERSION_MAJOR
34038 # define DB_VERSION_MAJOR 1
34042 #define NULL ((void*)0)
34049 #if DB_VERSION_MAJOR > 1
34052 int major, minor, patch;
34054 version = db_version( &major, &minor, &patch );
34056 if( major != DB_VERSION_MAJOR ||
34057 minor < DB_VERSION_MINOR )
34059 printf("Berkeley DB version mismatch\n"
34060 "\theader: %s\n\tlibrary: %s\n",
34061 DB_VERSION_STRING, version);
34067 #if DB_VERSION_MAJOR > 2
34068 db_env_create( NULL, 0 );
34069 #elif DB_VERSION_MAJOR > 1
34070 db_appexit( NULL );
34072 (void) dbopen( NULL, 0, 0, 0, NULL);
34079 rm -f conftest.$ac_objext conftest$ac_exeext
34080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34081 (eval $ac_link) 2>conftest.er1
34083 grep -v '^ *+' conftest.er1 >conftest.err
34085 cat conftest.err >&5
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); } &&
34088 { ac_try='test -z "$ac_c_werror_flag"
34089 || test ! -s conftest.err'
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; } &&
34095 { ac_try='test -s conftest$ac_exeext'
34096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34097 (eval $ac_try) 2>&5
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); }; }; then
34103 echo "$as_me: failed program was:" >&5
34104 sed 's/^/| /' conftest.$ac_ext >&5
34108 rm -f conftest.err conftest.$ac_objext \
34109 conftest$ac_exeext conftest.$ac_ext
34114 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34115 echo "${ECHO_T}$ol_cv_db_db2" >&6
34117 if test $ol_cv_db_db2 = yes ; then
34122 if test $ol_cv_lib_db = no ; then
34123 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34124 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34125 if test "${ol_cv_db_db_2+set}" = set; then
34126 echo $ECHO_N "(cached) $ECHO_C" >&6
34131 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34133 cat >conftest.$ac_ext <<_ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h. */
34140 #ifdef HAVE_DB_185_H
34141 # include <db_185.h>
34146 #ifndef DB_VERSION_MAJOR
34147 # define DB_VERSION_MAJOR 1
34151 #define NULL ((void*)0)
34158 #if DB_VERSION_MAJOR > 1
34161 int major, minor, patch;
34163 version = db_version( &major, &minor, &patch );
34165 if( major != DB_VERSION_MAJOR ||
34166 minor < DB_VERSION_MINOR )
34168 printf("Berkeley DB version mismatch\n"
34169 "\theader: %s\n\tlibrary: %s\n",
34170 DB_VERSION_STRING, version);
34176 #if DB_VERSION_MAJOR > 2
34177 db_env_create( NULL, 0 );
34178 #elif DB_VERSION_MAJOR > 1
34179 db_appexit( NULL );
34181 (void) dbopen( NULL, 0, 0, 0, NULL);
34188 rm -f conftest.$ac_objext conftest$ac_exeext
34189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34190 (eval $ac_link) 2>conftest.er1
34192 grep -v '^ *+' conftest.er1 >conftest.err
34194 cat conftest.err >&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); } &&
34197 { ac_try='test -z "$ac_c_werror_flag"
34198 || test ! -s conftest.err'
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; } &&
34204 { ac_try='test -s conftest$ac_exeext'
34205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206 (eval $ac_try) 2>&5
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); }; }; then
34212 echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34217 rm -f conftest.err conftest.$ac_objext \
34218 conftest$ac_exeext conftest.$ac_ext
34223 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34224 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34226 if test $ol_cv_db_db_2 = yes ; then
34227 ol_cv_lib_db=-ldb-2
34232 elif test $ol_cv_bdb_major = 1 ; then
34233 if test $ol_cv_lib_db = no ; then
34234 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34235 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34236 if test "${ol_cv_db_db1+set}" = set; then
34237 echo $ECHO_N "(cached) $ECHO_C" >&6
34242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34251 #ifdef HAVE_DB_185_H
34252 # include <db_185.h>
34257 #ifndef DB_VERSION_MAJOR
34258 # define DB_VERSION_MAJOR 1
34262 #define NULL ((void*)0)
34269 #if DB_VERSION_MAJOR > 1
34272 int major, minor, patch;
34274 version = db_version( &major, &minor, &patch );
34276 if( major != DB_VERSION_MAJOR ||
34277 minor < DB_VERSION_MINOR )
34279 printf("Berkeley DB version mismatch\n"
34280 "\theader: %s\n\tlibrary: %s\n",
34281 DB_VERSION_STRING, version);
34287 #if DB_VERSION_MAJOR > 2
34288 db_env_create( NULL, 0 );
34289 #elif DB_VERSION_MAJOR > 1
34290 db_appexit( NULL );
34292 (void) dbopen( NULL, 0, 0, 0, NULL);
34299 rm -f conftest.$ac_objext conftest$ac_exeext
34300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34301 (eval $ac_link) 2>conftest.er1
34303 grep -v '^ *+' conftest.er1 >conftest.err
34305 cat conftest.err >&5
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } &&
34308 { ac_try='test -z "$ac_c_werror_flag"
34309 || test ! -s conftest.err'
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; } &&
34315 { ac_try='test -s conftest$ac_exeext'
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; }; then
34323 echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34328 rm -f conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
34334 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34335 echo "${ECHO_T}$ol_cv_db_db1" >&6
34337 if test $ol_cv_db_db1 = yes ; then
34342 if test $ol_cv_lib_db = no ; then
34343 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34344 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34345 if test "${ol_cv_db_db_1+set}" = set; then
34346 echo $ECHO_N "(cached) $ECHO_C" >&6
34351 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34353 cat >conftest.$ac_ext <<_ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h. */
34360 #ifdef HAVE_DB_185_H
34361 # include <db_185.h>
34366 #ifndef DB_VERSION_MAJOR
34367 # define DB_VERSION_MAJOR 1
34371 #define NULL ((void*)0)
34378 #if DB_VERSION_MAJOR > 1
34381 int major, minor, patch;
34383 version = db_version( &major, &minor, &patch );
34385 if( major != DB_VERSION_MAJOR ||
34386 minor < DB_VERSION_MINOR )
34388 printf("Berkeley DB version mismatch\n"
34389 "\theader: %s\n\tlibrary: %s\n",
34390 DB_VERSION_STRING, version);
34396 #if DB_VERSION_MAJOR > 2
34397 db_env_create( NULL, 0 );
34398 #elif DB_VERSION_MAJOR > 1
34399 db_appexit( NULL );
34401 (void) dbopen( NULL, 0, 0, 0, NULL);
34408 rm -f conftest.$ac_objext conftest$ac_exeext
34409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34410 (eval $ac_link) 2>conftest.er1
34412 grep -v '^ *+' conftest.er1 >conftest.err
34414 cat conftest.err >&5
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); } &&
34417 { ac_try='test -z "$ac_c_werror_flag"
34418 || test ! -s conftest.err'
34419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420 (eval $ac_try) 2>&5
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); }; } &&
34424 { ac_try='test -s conftest$ac_exeext'
34425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426 (eval $ac_try) 2>&5
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; }; then
34432 echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34437 rm -f conftest.err conftest.$ac_objext \
34438 conftest$ac_exeext conftest.$ac_ext
34443 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34444 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34446 if test $ol_cv_db_db_1 = yes ; then
34447 ol_cv_lib_db=-ldb-1
34452 if test $ol_cv_lib_db = no ; then
34453 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34454 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34455 if test "${ol_cv_db_none+set}" = set; then
34456 echo $ECHO_N "(cached) $ECHO_C" >&6
34461 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34463 cat >conftest.$ac_ext <<_ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h. */
34470 #ifdef HAVE_DB_185_H
34471 # include <db_185.h>
34476 #ifndef DB_VERSION_MAJOR
34477 # define DB_VERSION_MAJOR 1
34481 #define NULL ((void*)0)
34488 #if DB_VERSION_MAJOR > 1
34491 int major, minor, patch;
34493 version = db_version( &major, &minor, &patch );
34495 if( major != DB_VERSION_MAJOR ||
34496 minor < DB_VERSION_MINOR )
34498 printf("Berkeley DB version mismatch\n"
34499 "\theader: %s\n\tlibrary: %s\n",
34500 DB_VERSION_STRING, version);
34506 #if DB_VERSION_MAJOR > 2
34507 db_env_create( NULL, 0 );
34508 #elif DB_VERSION_MAJOR > 1
34509 db_appexit( NULL );
34511 (void) dbopen( NULL, 0, 0, 0, NULL);
34518 rm -f conftest.$ac_objext conftest$ac_exeext
34519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34520 (eval $ac_link) 2>conftest.er1
34522 grep -v '^ *+' conftest.er1 >conftest.err
34524 cat conftest.err >&5
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); } &&
34527 { ac_try='test -z "$ac_c_werror_flag"
34528 || test ! -s conftest.err'
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; } &&
34534 { ac_try='test -s conftest$ac_exeext'
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; }; then
34542 echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34547 rm -f conftest.err conftest.$ac_objext \
34548 conftest$ac_exeext conftest.$ac_ext
34553 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34554 echo "${ECHO_T}$ol_cv_db_none" >&6
34556 if test $ol_cv_db_none = yes ; then
34562 if test "$ol_cv_lib_db" != no ; then
34563 ol_cv_berkeley_db=yes
34564 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34565 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34566 if test "${ol_cv_berkeley_db_version+set}" = set; then
34567 echo $ECHO_N "(cached) $ECHO_C" >&6
34571 LIBS="$LTHREAD_LIBS $LIBS"
34572 if test $ol_cv_lib_db != yes ; then
34573 LIBS="$ol_cv_lib_db $LIBS"
34576 if test "$cross_compiling" = yes; then
34577 ol_cv_berkeley_db_version=cross
34579 cat >conftest.$ac_ext <<_ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h. */
34586 #ifdef HAVE_DB_185_H
34591 #ifndef DB_VERSION_MAJOR
34592 # define DB_VERSION_MAJOR 1
34595 #define NULL ((void *)0)
34599 #if DB_VERSION_MAJOR > 1
34601 int major, minor, patch;
34603 version = db_version( &major, &minor, &patch );
34605 if( major != DB_VERSION_MAJOR ||
34606 minor != DB_VERSION_MINOR ||
34607 patch != DB_VERSION_PATCH )
34609 printf("Berkeley DB version mismatch\n"
34610 "\theader: %s\n\tlibrary: %s\n",
34611 DB_VERSION_STRING, version);
34619 rm -f conftest$ac_exeext
34620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34621 (eval $ac_link) 2>&5
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; }; then
34630 ol_cv_berkeley_db_version=yes
34632 echo "$as_me: program exited with status $ac_status" >&5
34633 echo "$as_me: failed program was:" >&5
34634 sed 's/^/| /' conftest.$ac_ext >&5
34636 ( exit $ac_status )
34637 ol_cv_berkeley_db_version=no
34639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34645 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34646 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34648 if test $ol_cv_berkeley_db_version = no ; then
34649 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34650 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34651 { (exit 1); exit 1; }; }
34654 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34655 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34656 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34657 echo $ECHO_N "(cached) $ECHO_C" >&6
34661 LIBS="$LTHREAD_LIBS $LIBS"
34662 if test $ol_cv_lib_db != yes ; then
34663 LIBS="$ol_cv_lib_db $LIBS"
34666 if test "$cross_compiling" = yes; then
34667 ol_cv_berkeley_db_thread=cross
34669 cat >conftest.$ac_ext <<_ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h. */
34676 #ifdef HAVE_DB_185_H
34682 #define NULL ((void *)0)
34687 u_int32_t flags = DB_CREATE |
34693 #if DB_VERSION_MAJOR > 2
34694 DB_ENV *env = NULL;
34696 rc = db_env_create( &env, 0 );
34698 flags |= DB_INIT_MPOOL;
34699 #ifdef DB_MPOOL_PRIVATE
34700 flags |= DB_MPOOL_PRIVATE;
34704 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34708 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34709 rc = env->open( env, NULL, flags, 0 );
34711 rc = env->open( env, NULL, NULL, flags, 0 );
34715 rc = env->close( env, 0 );
34719 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34725 memset( &env, '\0', sizeof(env) );
34727 rc = db_appinit( NULL, NULL, &env, flags );
34730 db_appexit( &env );
34733 unlink("__db_mpool.share");
34734 unlink("__db_lock.share");
34740 rm -f conftest$ac_exeext
34741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34742 (eval $ac_link) 2>&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34747 (eval $ac_try) 2>&5
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); }; }; then
34751 ol_cv_berkeley_db_thread=yes
34753 echo "$as_me: program exited with status $ac_status" >&5
34754 echo "$as_me: failed program was:" >&5
34755 sed 's/^/| /' conftest.$ac_ext >&5
34757 ( exit $ac_status )
34758 ol_cv_berkeley_db_thread=no
34760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34766 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34767 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34769 if test $ol_cv_berkeley_db_thread != no ; then
34771 cat >>confdefs.h <<\_ACEOF
34772 #define HAVE_BERKELEY_DB_THREAD 1
34782 if test $ol_cv_berkeley_db != no ; then
34784 cat >>confdefs.h <<\_ACEOF
34785 #define HAVE_BERKELEY_DB 1
34789 ol_link_ldbm=berkeley
34790 ol_enable_ldbm_api=berkeley
34792 if test $ol_enable_ldbm_type = hash ; then
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LDBM_USE_DBHASH 1
34800 cat >>confdefs.h <<\_ACEOF
34801 #define LDBM_USE_DBBTREE 1
34806 if test $ol_cv_lib_db != yes ; then
34807 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34813 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34814 if test $ol_link_ldbm != berkeley ; then
34815 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34816 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34817 { (exit 1); exit 1; }; }
34819 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34820 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34821 if test "${ol_cv_bdb_compat+set}" = set; then
34822 echo $ECHO_N "(cached) $ECHO_C" >&6
34825 cat >conftest.$ac_ext <<_ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h. */
34834 /* this check could be improved */
34835 #ifndef DB_VERSION_MAJOR
34836 # define DB_VERSION_MAJOR 1
34838 #ifndef DB_VERSION_MINOR
34839 # define DB_VERSION_MINOR 0
34842 /* require 4.2 or later */
34843 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34844 __db_version_compat
34848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34849 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34850 ol_cv_bdb_compat=yes
34852 ol_cv_bdb_compat=no
34857 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34858 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34861 if test $ol_cv_bdb_compat != yes ; then
34862 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34863 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34864 { (exit 1); exit 1; }; }
34869 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34870 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34871 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34872 ol_enable_ldbm_api=none
34875 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34876 echo "$as_me:$LINENO: checking for MDBM library" >&5
34877 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34878 if test "${ol_cv_lib_mdbm+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34882 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34883 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34884 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34885 echo $ECHO_N "(cached) $ECHO_C" >&6
34887 cat >conftest.$ac_ext <<_ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h. */
34893 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34895 #define mdbm_set_chain innocuous_mdbm_set_chain
34897 /* System header to define __stub macros and hopefully few prototypes,
34898 which can conflict with char mdbm_set_chain (); below.
34899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34900 <limits.h> exists even on freestanding compilers. */
34903 # include <limits.h>
34905 # include <assert.h>
34908 #undef mdbm_set_chain
34910 /* Override any gcc2 internal prototype to avoid an error. */
34915 /* We use char because int might match the return type of a gcc2
34916 builtin and then its argument prototype would still apply. */
34917 char mdbm_set_chain ();
34918 /* The GNU C library defines this for functions which it implements
34919 to always fail with ENOSYS. Some functions are actually named
34920 something starting with __ and the normal name is an alias. */
34921 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34924 char (*f) () = mdbm_set_chain;
34933 return f != mdbm_set_chain;
34938 rm -f conftest.$ac_objext conftest$ac_exeext
34939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34940 (eval $ac_link) 2>conftest.er1
34942 grep -v '^ *+' conftest.er1 >conftest.err
34944 cat conftest.err >&5
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } &&
34947 { ac_try='test -z "$ac_c_werror_flag"
34948 || test ! -s conftest.err'
34949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950 (eval $ac_try) 2>&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; } &&
34954 { ac_try='test -s conftest$ac_exeext'
34955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34956 (eval $ac_try) 2>&5
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; }; then
34960 ac_cv_func_mdbm_set_chain=yes
34962 echo "$as_me: failed program was:" >&5
34963 sed 's/^/| /' conftest.$ac_ext >&5
34965 ac_cv_func_mdbm_set_chain=no
34967 rm -f conftest.err conftest.$ac_objext \
34968 conftest$ac_exeext conftest.$ac_ext
34970 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34971 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34972 if test $ac_cv_func_mdbm_set_chain = yes; then
34976 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34977 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34978 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34979 echo $ECHO_N "(cached) $ECHO_C" >&6
34981 ac_check_lib_save_LIBS=$LIBS
34982 LIBS="-lmdbm $LIBS"
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34990 /* Override any gcc2 internal prototype to avoid an error. */
34994 /* We use char because int might match the return type of a gcc2
34995 builtin and then its argument prototype would still apply. */
34996 char mdbm_set_chain ();
35005 rm -f conftest.$ac_objext conftest$ac_exeext
35006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35007 (eval $ac_link) 2>conftest.er1
35009 grep -v '^ *+' conftest.er1 >conftest.err
35011 cat conftest.err >&5
35012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013 (exit $ac_status); } &&
35014 { ac_try='test -z "$ac_c_werror_flag"
35015 || test ! -s conftest.err'
35016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017 (eval $ac_try) 2>&5
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); }; } &&
35021 { ac_try='test -s conftest$ac_exeext'
35022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023 (eval $ac_try) 2>&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); }; }; then
35027 ac_cv_lib_mdbm_mdbm_set_chain=yes
35029 echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35032 ac_cv_lib_mdbm_mdbm_set_chain=no
35034 rm -f conftest.err conftest.$ac_objext \
35035 conftest$ac_exeext conftest.$ac_ext
35036 LIBS=$ac_check_lib_save_LIBS
35038 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35039 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35040 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35041 ol_cv_lib_mdbm=-lmdbm
35052 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35053 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35057 for ac_header in mdbm.h
35059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35061 echo "$as_me:$LINENO: checking for $ac_header" >&5
35062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35064 echo $ECHO_N "(cached) $ECHO_C" >&6
35066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35069 # Is the header compilable?
35070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35072 cat >conftest.$ac_ext <<_ACEOF
35075 cat confdefs.h >>conftest.$ac_ext
35076 cat >>conftest.$ac_ext <<_ACEOF
35077 /* end confdefs.h. */
35078 $ac_includes_default
35079 #include <$ac_header>
35081 rm -f conftest.$ac_objext
35082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35083 (eval $ac_compile) 2>conftest.er1
35085 grep -v '^ *+' conftest.er1 >conftest.err
35087 cat conftest.err >&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); } &&
35090 { ac_try='test -z "$ac_c_werror_flag"
35091 || test ! -s conftest.err'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; } &&
35097 { ac_try='test -s conftest.$ac_objext'
35098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099 (eval $ac_try) 2>&5
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); }; }; then
35103 ac_header_compiler=yes
35105 echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35108 ac_header_compiler=no
35110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35112 echo "${ECHO_T}$ac_header_compiler" >&6
35114 # Is the header present?
35115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35117 cat >conftest.$ac_ext <<_ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h. */
35123 #include <$ac_header>
35125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35128 grep -v '^ *+' conftest.er1 >conftest.err
35130 cat conftest.err >&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } >/dev/null; then
35133 if test -s conftest.err; then
35134 ac_cpp_err=$ac_c_preproc_warn_flag
35135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35142 if test -z "$ac_cpp_err"; then
35143 ac_header_preproc=yes
35145 echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35148 ac_header_preproc=no
35150 rm -f conftest.err conftest.$ac_ext
35151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35152 echo "${ECHO_T}$ac_header_preproc" >&6
35154 # So? What about this header?
35155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35161 ac_header_preproc=yes
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35178 ## --------------------------------------------- ##
35179 ## Report this to <http://www.openldap.org/its/> ##
35180 ## --------------------------------------------- ##
35183 sed "s/^/$as_me: WARNING: /" >&2
35186 echo "$as_me:$LINENO: checking for $ac_header" >&5
35187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35189 echo $ECHO_N "(cached) $ECHO_C" >&6
35191 eval "$as_ac_Header=\$ac_header_preproc"
35193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35198 cat >>confdefs.h <<_ACEOF
35199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35206 echo "$as_me:$LINENO: checking for db" >&5
35207 echo $ECHO_N "checking for db... $ECHO_C" >&6
35208 if test "${ol_cv_mdbm+set}" = set; then
35209 echo $ECHO_N "(cached) $ECHO_C" >&6
35212 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35219 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35220 echo "${ECHO_T}$ol_cv_mdbm" >&6
35221 if test $ol_cv_mdbm = yes ; then
35223 cat >>confdefs.h <<\_ACEOF
35224 #define HAVE_MDBM 1
35230 if test $ol_cv_mdbm = yes ; then
35232 ol_enable_ldbm_api=mdbm
35233 if test $ol_cv_lib_mdbm != yes ; then
35234 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35239 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35240 echo "$as_me:$LINENO: checking for GDBM library" >&5
35241 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35242 if test "${ol_cv_lib_gdbm+set}" = set; then
35243 echo $ECHO_N "(cached) $ECHO_C" >&6
35246 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35247 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35248 if test "${ac_cv_func_gdbm_open+set}" = set; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
35251 cat >conftest.$ac_ext <<_ACEOF
35254 cat confdefs.h >>conftest.$ac_ext
35255 cat >>conftest.$ac_ext <<_ACEOF
35256 /* end confdefs.h. */
35257 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35259 #define gdbm_open innocuous_gdbm_open
35261 /* System header to define __stub macros and hopefully few prototypes,
35262 which can conflict with char gdbm_open (); below.
35263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35264 <limits.h> exists even on freestanding compilers. */
35267 # include <limits.h>
35269 # include <assert.h>
35274 /* Override any gcc2 internal prototype to avoid an error. */
35279 /* We use char because int might match the return type of a gcc2
35280 builtin and then its argument prototype would still apply. */
35282 /* The GNU C library defines this for functions which it implements
35283 to always fail with ENOSYS. Some functions are actually named
35284 something starting with __ and the normal name is an alias. */
35285 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35288 char (*f) () = gdbm_open;
35297 return f != gdbm_open;
35302 rm -f conftest.$ac_objext conftest$ac_exeext
35303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35304 (eval $ac_link) 2>conftest.er1
35306 grep -v '^ *+' conftest.er1 >conftest.err
35308 cat conftest.err >&5
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } &&
35311 { ac_try='test -z "$ac_c_werror_flag"
35312 || test ! -s conftest.err'
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; } &&
35318 { ac_try='test -s conftest$ac_exeext'
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324 ac_cv_func_gdbm_open=yes
35326 echo "$as_me: failed program was:" >&5
35327 sed 's/^/| /' conftest.$ac_ext >&5
35329 ac_cv_func_gdbm_open=no
35331 rm -f conftest.err conftest.$ac_objext \
35332 conftest$ac_exeext conftest.$ac_ext
35334 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35335 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35336 if test $ac_cv_func_gdbm_open = yes; then
35340 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35341 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35342 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35343 echo $ECHO_N "(cached) $ECHO_C" >&6
35345 ac_check_lib_save_LIBS=$LIBS
35346 LIBS="-lgdbm $LIBS"
35347 cat >conftest.$ac_ext <<_ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h. */
35354 /* Override any gcc2 internal prototype to avoid an error. */
35358 /* We use char because int might match the return type of a gcc2
35359 builtin and then its argument prototype would still apply. */
35369 rm -f conftest.$ac_objext conftest$ac_exeext
35370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35371 (eval $ac_link) 2>conftest.er1
35373 grep -v '^ *+' conftest.er1 >conftest.err
35375 cat conftest.err >&5
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); } &&
35378 { ac_try='test -z "$ac_c_werror_flag"
35379 || test ! -s conftest.err'
35380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381 (eval $ac_try) 2>&5
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); }; } &&
35385 { ac_try='test -s conftest$ac_exeext'
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; }; then
35391 ac_cv_lib_gdbm_gdbm_open=yes
35393 echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35396 ac_cv_lib_gdbm_gdbm_open=no
35398 rm -f conftest.err conftest.$ac_objext \
35399 conftest$ac_exeext conftest.$ac_ext
35400 LIBS=$ac_check_lib_save_LIBS
35402 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35403 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35404 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35405 ol_cv_lib_gdbm=-lgdbm
35416 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35417 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35421 for ac_header in gdbm.h
35423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35425 echo "$as_me:$LINENO: checking for $ac_header" >&5
35426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35428 echo $ECHO_N "(cached) $ECHO_C" >&6
35430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35433 # Is the header compilable?
35434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35436 cat >conftest.$ac_ext <<_ACEOF
35439 cat confdefs.h >>conftest.$ac_ext
35440 cat >>conftest.$ac_ext <<_ACEOF
35441 /* end confdefs.h. */
35442 $ac_includes_default
35443 #include <$ac_header>
35445 rm -f conftest.$ac_objext
35446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35447 (eval $ac_compile) 2>conftest.er1
35449 grep -v '^ *+' conftest.er1 >conftest.err
35451 cat conftest.err >&5
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); } &&
35454 { ac_try='test -z "$ac_c_werror_flag"
35455 || test ! -s conftest.err'
35456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35457 (eval $ac_try) 2>&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); }; } &&
35461 { ac_try='test -s conftest.$ac_objext'
35462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35463 (eval $ac_try) 2>&5
35465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466 (exit $ac_status); }; }; then
35467 ac_header_compiler=yes
35469 echo "$as_me: failed program was:" >&5
35470 sed 's/^/| /' conftest.$ac_ext >&5
35472 ac_header_compiler=no
35474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35476 echo "${ECHO_T}$ac_header_compiler" >&6
35478 # Is the header present?
35479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35481 cat >conftest.$ac_ext <<_ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h. */
35487 #include <$ac_header>
35489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35492 grep -v '^ *+' conftest.er1 >conftest.err
35494 cat conftest.err >&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } >/dev/null; then
35497 if test -s conftest.err; then
35498 ac_cpp_err=$ac_c_preproc_warn_flag
35499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35506 if test -z "$ac_cpp_err"; then
35507 ac_header_preproc=yes
35509 echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35512 ac_header_preproc=no
35514 rm -f conftest.err conftest.$ac_ext
35515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35516 echo "${ECHO_T}$ac_header_preproc" >&6
35518 # So? What about this header?
35519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35525 ac_header_preproc=yes
35528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35542 ## --------------------------------------------- ##
35543 ## Report this to <http://www.openldap.org/its/> ##
35544 ## --------------------------------------------- ##
35547 sed "s/^/$as_me: WARNING: /" >&2
35550 echo "$as_me:$LINENO: checking for $ac_header" >&5
35551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35553 echo $ECHO_N "(cached) $ECHO_C" >&6
35555 eval "$as_ac_Header=\$ac_header_preproc"
35557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35562 cat >>confdefs.h <<_ACEOF
35563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35570 echo "$as_me:$LINENO: checking for db" >&5
35571 echo $ECHO_N "checking for db... $ECHO_C" >&6
35572 if test "${ol_cv_gdbm+set}" = set; then
35573 echo $ECHO_N "(cached) $ECHO_C" >&6
35576 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35583 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35584 echo "${ECHO_T}$ol_cv_gdbm" >&6
35585 if test $ol_cv_gdbm = yes ; then
35587 cat >>confdefs.h <<\_ACEOF
35588 #define HAVE_GDBM 1
35594 if test $ol_cv_gdbm = yes ; then
35596 ol_enable_ldbm_api=gdbm
35598 if test $ol_cv_lib_gdbm != yes ; then
35599 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35604 if test $ol_enable_ldbm_api = ndbm ; then
35605 echo "$as_me:$LINENO: checking for NDBM library" >&5
35606 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35607 if test "${ol_cv_lib_ndbm+set}" = set; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35611 echo "$as_me:$LINENO: checking for dbm_open" >&5
35612 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35613 if test "${ac_cv_func_dbm_open+set}" = set; then
35614 echo $ECHO_N "(cached) $ECHO_C" >&6
35616 cat >conftest.$ac_ext <<_ACEOF
35619 cat confdefs.h >>conftest.$ac_ext
35620 cat >>conftest.$ac_ext <<_ACEOF
35621 /* end confdefs.h. */
35622 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35624 #define dbm_open innocuous_dbm_open
35626 /* System header to define __stub macros and hopefully few prototypes,
35627 which can conflict with char dbm_open (); below.
35628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35629 <limits.h> exists even on freestanding compilers. */
35632 # include <limits.h>
35634 # include <assert.h>
35639 /* Override any gcc2 internal prototype to avoid an error. */
35644 /* We use char because int might match the return type of a gcc2
35645 builtin and then its argument prototype would still apply. */
35647 /* The GNU C library defines this for functions which it implements
35648 to always fail with ENOSYS. Some functions are actually named
35649 something starting with __ and the normal name is an alias. */
35650 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35653 char (*f) () = dbm_open;
35662 return f != dbm_open;
35667 rm -f conftest.$ac_objext conftest$ac_exeext
35668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35669 (eval $ac_link) 2>conftest.er1
35671 grep -v '^ *+' conftest.er1 >conftest.err
35673 cat conftest.err >&5
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); } &&
35676 { ac_try='test -z "$ac_c_werror_flag"
35677 || test ! -s conftest.err'
35678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679 (eval $ac_try) 2>&5
35681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 (exit $ac_status); }; } &&
35683 { ac_try='test -s conftest$ac_exeext'
35684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685 (eval $ac_try) 2>&5
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); }; }; then
35689 ac_cv_func_dbm_open=yes
35691 echo "$as_me: failed program was:" >&5
35692 sed 's/^/| /' conftest.$ac_ext >&5
35694 ac_cv_func_dbm_open=no
35696 rm -f conftest.err conftest.$ac_objext \
35697 conftest$ac_exeext conftest.$ac_ext
35699 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35700 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35701 if test $ac_cv_func_dbm_open = yes; then
35705 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35706 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35707 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35708 echo $ECHO_N "(cached) $ECHO_C" >&6
35710 ac_check_lib_save_LIBS=$LIBS
35711 LIBS="-lndbm $LIBS"
35712 cat >conftest.$ac_ext <<_ACEOF
35715 cat confdefs.h >>conftest.$ac_ext
35716 cat >>conftest.$ac_ext <<_ACEOF
35717 /* end confdefs.h. */
35719 /* Override any gcc2 internal prototype to avoid an error. */
35723 /* We use char because int might match the return type of a gcc2
35724 builtin and then its argument prototype would still apply. */
35734 rm -f conftest.$ac_objext conftest$ac_exeext
35735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35736 (eval $ac_link) 2>conftest.er1
35738 grep -v '^ *+' conftest.er1 >conftest.err
35740 cat conftest.err >&5
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); } &&
35743 { ac_try='test -z "$ac_c_werror_flag"
35744 || test ! -s conftest.err'
35745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35746 (eval $ac_try) 2>&5
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); }; } &&
35750 { ac_try='test -s conftest$ac_exeext'
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; }; then
35756 ac_cv_lib_ndbm_dbm_open=yes
35758 echo "$as_me: failed program was:" >&5
35759 sed 's/^/| /' conftest.$ac_ext >&5
35761 ac_cv_lib_ndbm_dbm_open=no
35763 rm -f conftest.err conftest.$ac_objext \
35764 conftest$ac_exeext conftest.$ac_ext
35765 LIBS=$ac_check_lib_save_LIBS
35767 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35768 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35769 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35770 ol_cv_lib_ndbm=-lndbm
35773 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35774 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35775 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35776 echo $ECHO_N "(cached) $ECHO_C" >&6
35778 ac_check_lib_save_LIBS=$LIBS
35780 cat >conftest.$ac_ext <<_ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h. */
35787 /* Override any gcc2 internal prototype to avoid an error. */
35791 /* We use char because int might match the return type of a gcc2
35792 builtin and then its argument prototype would still apply. */
35802 rm -f conftest.$ac_objext conftest$ac_exeext
35803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35804 (eval $ac_link) 2>conftest.er1
35806 grep -v '^ *+' conftest.er1 >conftest.err
35808 cat conftest.err >&5
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); } &&
35811 { ac_try='test -z "$ac_c_werror_flag"
35812 || test ! -s conftest.err'
35813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814 (eval $ac_try) 2>&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); }; } &&
35818 { ac_try='test -s conftest$ac_exeext'
35819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35820 (eval $ac_try) 2>&5
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); }; }; then
35824 ac_cv_lib_dbm_dbm_open=yes
35826 echo "$as_me: failed program was:" >&5
35827 sed 's/^/| /' conftest.$ac_ext >&5
35829 ac_cv_lib_dbm_dbm_open=no
35831 rm -f conftest.err conftest.$ac_objext \
35832 conftest$ac_exeext conftest.$ac_ext
35833 LIBS=$ac_check_lib_save_LIBS
35835 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35836 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35837 if test $ac_cv_lib_dbm_dbm_open = yes; then
35838 ol_cv_lib_ndbm=-ldbm
35851 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35852 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35856 for ac_header in ndbm.h
35858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35860 echo "$as_me:$LINENO: checking for $ac_header" >&5
35861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35863 echo $ECHO_N "(cached) $ECHO_C" >&6
35865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35868 # Is the header compilable?
35869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35871 cat >conftest.$ac_ext <<_ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h. */
35877 $ac_includes_default
35878 #include <$ac_header>
35880 rm -f conftest.$ac_objext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35882 (eval $ac_compile) 2>conftest.er1
35884 grep -v '^ *+' conftest.er1 >conftest.err
35886 cat conftest.err >&5
35887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888 (exit $ac_status); } &&
35889 { ac_try='test -z "$ac_c_werror_flag"
35890 || test ! -s conftest.err'
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; } &&
35896 { ac_try='test -s conftest.$ac_objext'
35897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898 (eval $ac_try) 2>&5
35900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901 (exit $ac_status); }; }; then
35902 ac_header_compiler=yes
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 ac_header_compiler=no
35909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35911 echo "${ECHO_T}$ac_header_compiler" >&6
35913 # Is the header present?
35914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35916 cat >conftest.$ac_ext <<_ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35922 #include <$ac_header>
35924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35927 grep -v '^ *+' conftest.er1 >conftest.err
35929 cat conftest.err >&5
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); } >/dev/null; then
35932 if test -s conftest.err; then
35933 ac_cpp_err=$ac_c_preproc_warn_flag
35934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35941 if test -z "$ac_cpp_err"; then
35942 ac_header_preproc=yes
35944 echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35947 ac_header_preproc=no
35949 rm -f conftest.err conftest.$ac_ext
35950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35951 echo "${ECHO_T}$ac_header_preproc" >&6
35953 # So? What about this header?
35954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35960 ac_header_preproc=yes
35963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35977 ## --------------------------------------------- ##
35978 ## Report this to <http://www.openldap.org/its/> ##
35979 ## --------------------------------------------- ##
35982 sed "s/^/$as_me: WARNING: /" >&2
35985 echo "$as_me:$LINENO: checking for $ac_header" >&5
35986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35988 echo $ECHO_N "(cached) $ECHO_C" >&6
35990 eval "$as_ac_Header=\$ac_header_preproc"
35992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35997 cat >>confdefs.h <<_ACEOF
35998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36005 echo "$as_me:$LINENO: checking for db" >&5
36006 echo $ECHO_N "checking for db... $ECHO_C" >&6
36007 if test "${ol_cv_ndbm+set}" = set; then
36008 echo $ECHO_N "(cached) $ECHO_C" >&6
36011 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36018 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36019 echo "${ECHO_T}$ol_cv_ndbm" >&6
36020 if test $ol_cv_ndbm = yes ; then
36022 cat >>confdefs.h <<\_ACEOF
36023 #define HAVE_NDBM 1
36029 if test $ol_cv_ndbm = yes ; then
36031 ol_enable_ldbm_api=ndbm
36033 if test $ol_cv_lib_ndbm != yes ; then
36034 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36039 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36040 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36041 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36042 { (exit 1); exit 1; }; }
36045 if test $ol_enable_bdb = yes ||
36046 test $ol_enable_hdb = yes ||
36047 test $ol_enable_ldbm = yes ; then
36048 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36052 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36053 BUILD_LIBS_DYNAMIC=shared
36055 cat >>confdefs.h <<\_ACEOF
36056 #define LDAP_LIBS_DYNAMIC 1
36061 BUILD_LIBS_DYNAMIC=static
36065 if test $ol_enable_wrappers != no ; then
36067 for ac_header in tcpd.h
36069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36071 echo "$as_me:$LINENO: checking for $ac_header" >&5
36072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36074 echo $ECHO_N "(cached) $ECHO_C" >&6
36076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36079 # Is the header compilable?
36080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36082 cat >conftest.$ac_ext <<_ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h. */
36088 $ac_includes_default
36089 #include <$ac_header>
36091 rm -f conftest.$ac_objext
36092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36093 (eval $ac_compile) 2>conftest.er1
36095 grep -v '^ *+' conftest.er1 >conftest.err
36097 cat conftest.err >&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); } &&
36100 { ac_try='test -z "$ac_c_werror_flag"
36101 || test ! -s conftest.err'
36102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103 (eval $ac_try) 2>&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); }; } &&
36107 { ac_try='test -s conftest.$ac_objext'
36108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36109 (eval $ac_try) 2>&5
36111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112 (exit $ac_status); }; }; then
36113 ac_header_compiler=yes
36115 echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36118 ac_header_compiler=no
36120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36122 echo "${ECHO_T}$ac_header_compiler" >&6
36124 # Is the header present?
36125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36127 cat >conftest.$ac_ext <<_ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h. */
36133 #include <$ac_header>
36135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36138 grep -v '^ *+' conftest.er1 >conftest.err
36140 cat conftest.err >&5
36141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142 (exit $ac_status); } >/dev/null; then
36143 if test -s conftest.err; then
36144 ac_cpp_err=$ac_c_preproc_warn_flag
36145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36152 if test -z "$ac_cpp_err"; then
36153 ac_header_preproc=yes
36155 echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36158 ac_header_preproc=no
36160 rm -f conftest.err conftest.$ac_ext
36161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36162 echo "${ECHO_T}$ac_header_preproc" >&6
36164 # So? What about this header?
36165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36171 ac_header_preproc=yes
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36188 ## --------------------------------------------- ##
36189 ## Report this to <http://www.openldap.org/its/> ##
36190 ## --------------------------------------------- ##
36193 sed "s/^/$as_me: WARNING: /" >&2
36196 echo "$as_me:$LINENO: checking for $ac_header" >&5
36197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36199 echo $ECHO_N "(cached) $ECHO_C" >&6
36201 eval "$as_ac_Header=\$ac_header_preproc"
36203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36208 cat >>confdefs.h <<_ACEOF
36209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36212 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36213 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36215 LIBS="$LIBS -lwrap"
36216 cat >conftest.$ac_ext <<_ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h. */
36224 int allow_severity = 0;
36225 int deny_severity = 0;
36227 struct request_info *req;
36239 rm -f conftest.$ac_objext conftest$ac_exeext
36240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36241 (eval $ac_link) 2>conftest.er1
36243 grep -v '^ *+' conftest.er1 >conftest.err
36245 cat conftest.err >&5
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); } &&
36248 { ac_try='test -z "$ac_c_werror_flag"
36249 || test ! -s conftest.err'
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; } &&
36255 { ac_try='test -s conftest$ac_exeext'
36256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257 (eval $ac_try) 2>&5
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); }; }; then
36261 echo "$as_me:$LINENO: result: -lwrap" >&5
36262 echo "${ECHO_T}-lwrap" >&6
36266 echo "$as_me: failed program was:" >&5
36267 sed 's/^/| /' conftest.$ac_ext >&5
36271 cat >conftest.$ac_ext <<_ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h. */
36279 int allow_severity = 0;
36280 int deny_severity = 0;
36282 struct request_info *req;
36294 rm -f conftest.$ac_objext conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296 (eval $ac_link) 2>conftest.er1
36298 grep -v '^ *+' conftest.er1 >conftest.err
36300 cat conftest.err >&5
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); } &&
36303 { ac_try='test -z "$ac_c_werror_flag"
36304 || test ! -s conftest.err'
36305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306 (eval $ac_try) 2>&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); }; } &&
36310 { ac_try='test -s conftest$ac_exeext'
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; }; then
36316 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36317 echo "${ECHO_T}-lwrap -lnsl" >&6
36319 LIBS="$save_LIBS -lnsl"
36321 echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36325 echo "$as_me:$LINENO: result: no" >&5
36326 echo "${ECHO_T}no" >&6
36330 rm -f conftest.err conftest.$ac_objext \
36331 conftest$ac_exeext conftest.$ac_ext
36333 rm -f conftest.err conftest.$ac_objext \
36334 conftest$ac_exeext conftest.$ac_ext
36342 if test $have_wrappers = yes ; then
36344 cat >>confdefs.h <<\_ACEOF
36345 #define HAVE_TCPD 1
36349 elif test $ol_enable_wrappers = yes ; then
36350 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36351 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36352 { (exit 1); exit 1; }; }
36354 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36355 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36360 if test $ol_enable_syslog != no ; then
36361 echo "$as_me:$LINENO: checking for openlog" >&5
36362 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36363 if test "${ac_cv_func_openlog+set}" = set; then
36364 echo $ECHO_N "(cached) $ECHO_C" >&6
36366 cat >conftest.$ac_ext <<_ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h. */
36372 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36374 #define openlog innocuous_openlog
36376 /* System header to define __stub macros and hopefully few prototypes,
36377 which can conflict with char openlog (); below.
36378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379 <limits.h> exists even on freestanding compilers. */
36382 # include <limits.h>
36384 # include <assert.h>
36389 /* Override any gcc2 internal prototype to avoid an error. */
36394 /* We use char because int might match the return type of a gcc2
36395 builtin and then its argument prototype would still apply. */
36397 /* The GNU C library defines this for functions which it implements
36398 to always fail with ENOSYS. Some functions are actually named
36399 something starting with __ and the normal name is an alias. */
36400 #if defined (__stub_openlog) || defined (__stub___openlog)
36403 char (*f) () = openlog;
36412 return f != openlog;
36417 rm -f conftest.$ac_objext conftest$ac_exeext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36419 (eval $ac_link) 2>conftest.er1
36421 grep -v '^ *+' conftest.er1 >conftest.err
36423 cat conftest.err >&5
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); } &&
36426 { ac_try='test -z "$ac_c_werror_flag"
36427 || test ! -s conftest.err'
36428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429 (eval $ac_try) 2>&5
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); }; } &&
36433 { ac_try='test -s conftest$ac_exeext'
36434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435 (eval $ac_try) 2>&5
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); }; }; then
36439 ac_cv_func_openlog=yes
36441 echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36444 ac_cv_func_openlog=no
36446 rm -f conftest.err conftest.$ac_objext \
36447 conftest$ac_exeext conftest.$ac_ext
36449 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36450 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36452 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36453 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36454 echo "$as_me: error: could not find syslog" >&2;}
36455 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36457 ol_enable_syslog=$ac_cv_func_openlog
36461 if test $ol_enable_sql != no ; then
36464 for ac_header in sql.h sqlext.h
36466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36468 echo "$as_me:$LINENO: checking for $ac_header" >&5
36469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36476 # Is the header compilable?
36477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36479 cat >conftest.$ac_ext <<_ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h. */
36485 $ac_includes_default
36486 #include <$ac_header>
36488 rm -f conftest.$ac_objext
36489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36490 (eval $ac_compile) 2>conftest.er1
36492 grep -v '^ *+' conftest.er1 >conftest.err
36494 cat conftest.err >&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); } &&
36497 { ac_try='test -z "$ac_c_werror_flag"
36498 || test ! -s conftest.err'
36499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36500 (eval $ac_try) 2>&5
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); }; } &&
36504 { ac_try='test -s conftest.$ac_objext'
36505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36506 (eval $ac_try) 2>&5
36508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509 (exit $ac_status); }; }; then
36510 ac_header_compiler=yes
36512 echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36515 ac_header_compiler=no
36517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36519 echo "${ECHO_T}$ac_header_compiler" >&6
36521 # Is the header present?
36522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36524 cat >conftest.$ac_ext <<_ACEOF
36527 cat confdefs.h >>conftest.$ac_ext
36528 cat >>conftest.$ac_ext <<_ACEOF
36529 /* end confdefs.h. */
36530 #include <$ac_header>
36532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36535 grep -v '^ *+' conftest.er1 >conftest.err
36537 cat conftest.err >&5
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); } >/dev/null; then
36540 if test -s conftest.err; then
36541 ac_cpp_err=$ac_c_preproc_warn_flag
36542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36549 if test -z "$ac_cpp_err"; then
36550 ac_header_preproc=yes
36552 echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36555 ac_header_preproc=no
36557 rm -f conftest.err conftest.$ac_ext
36558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36559 echo "${ECHO_T}$ac_header_preproc" >&6
36561 # So? What about this header?
36562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36568 ac_header_preproc=yes
36571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36585 ## --------------------------------------------- ##
36586 ## Report this to <http://www.openldap.org/its/> ##
36587 ## --------------------------------------------- ##
36590 sed "s/^/$as_me: WARNING: /" >&2
36593 echo "$as_me:$LINENO: checking for $ac_header" >&5
36594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36596 echo $ECHO_N "(cached) $ECHO_C" >&6
36598 eval "$as_ac_Header=\$ac_header_preproc"
36600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36605 cat >>confdefs.h <<_ACEOF
36606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36611 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36612 echo "$as_me: error: could not locate SQL headers" >&2;}
36613 { (exit 1); exit 1; }; }
36621 LIBS="$LTHREAD_LIBS"
36623 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36624 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36625 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36626 echo $ECHO_N "(cached) $ECHO_C" >&6
36628 ac_check_lib_save_LIBS=$LIBS
36629 LIBS="-liodbc $LIBS"
36630 cat >conftest.$ac_ext <<_ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h. */
36637 /* Override any gcc2 internal prototype to avoid an error. */
36641 /* We use char because int might match the return type of a gcc2
36642 builtin and then its argument prototype would still apply. */
36643 char SQLDriverConnect ();
36647 SQLDriverConnect ();
36652 rm -f conftest.$ac_objext conftest$ac_exeext
36653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36654 (eval $ac_link) 2>conftest.er1
36656 grep -v '^ *+' conftest.er1 >conftest.err
36658 cat conftest.err >&5
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); } &&
36661 { ac_try='test -z "$ac_c_werror_flag"
36662 || test ! -s conftest.err'
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; } &&
36668 { ac_try='test -s conftest$ac_exeext'
36669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36670 (eval $ac_try) 2>&5
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); }; }; then
36674 ac_cv_lib_iodbc_SQLDriverConnect=yes
36676 echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36679 ac_cv_lib_iodbc_SQLDriverConnect=no
36681 rm -f conftest.err conftest.$ac_objext \
36682 conftest$ac_exeext conftest.$ac_ext
36683 LIBS=$ac_check_lib_save_LIBS
36685 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36686 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36687 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36693 if test $have_iodbc = yes ; then
36694 ol_link_sql="-liodbc"
36696 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36697 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36698 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36699 echo $ECHO_N "(cached) $ECHO_C" >&6
36701 ac_check_lib_save_LIBS=$LIBS
36702 LIBS="-lodbc $LIBS"
36703 cat >conftest.$ac_ext <<_ACEOF
36706 cat confdefs.h >>conftest.$ac_ext
36707 cat >>conftest.$ac_ext <<_ACEOF
36708 /* end confdefs.h. */
36710 /* Override any gcc2 internal prototype to avoid an error. */
36714 /* We use char because int might match the return type of a gcc2
36715 builtin and then its argument prototype would still apply. */
36716 char SQLDriverConnect ();
36720 SQLDriverConnect ();
36725 rm -f conftest.$ac_objext conftest$ac_exeext
36726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36727 (eval $ac_link) 2>conftest.er1
36729 grep -v '^ *+' conftest.er1 >conftest.err
36731 cat conftest.err >&5
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); } &&
36734 { ac_try='test -z "$ac_c_werror_flag"
36735 || test ! -s conftest.err'
36736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737 (eval $ac_try) 2>&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); }; } &&
36741 { ac_try='test -s conftest$ac_exeext'
36742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743 (eval $ac_try) 2>&5
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); }; }; then
36747 ac_cv_lib_odbc_SQLDriverConnect=yes
36749 echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36752 ac_cv_lib_odbc_SQLDriverConnect=no
36754 rm -f conftest.err conftest.$ac_objext \
36755 conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36758 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36759 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36760 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36766 if test $have_odbc = yes ; then
36767 ol_link_sql="-lodbc"
36773 if test $ol_link_sql != no ; then
36774 SLAPD_SQL_LIBS="$ol_link_sql"
36776 elif test $ol_enable_sql != auto ; then
36777 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36778 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36779 { (exit 1); exit 1; }; }
36785 for ac_header in unicode/utypes.h
36787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36789 echo "$as_me:$LINENO: checking for $ac_header" >&5
36790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36792 echo $ECHO_N "(cached) $ECHO_C" >&6
36794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36797 # Is the header compilable?
36798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36800 cat >conftest.$ac_ext <<_ACEOF
36803 cat confdefs.h >>conftest.$ac_ext
36804 cat >>conftest.$ac_ext <<_ACEOF
36805 /* end confdefs.h. */
36806 $ac_includes_default
36807 #include <$ac_header>
36809 rm -f conftest.$ac_objext
36810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36811 (eval $ac_compile) 2>conftest.er1
36813 grep -v '^ *+' conftest.er1 >conftest.err
36815 cat conftest.err >&5
36816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817 (exit $ac_status); } &&
36818 { ac_try='test -z "$ac_c_werror_flag"
36819 || test ! -s conftest.err'
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; } &&
36825 { ac_try='test -s conftest.$ac_objext'
36826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827 (eval $ac_try) 2>&5
36829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); }; }; then
36831 ac_header_compiler=yes
36833 echo "$as_me: failed program was:" >&5
36834 sed 's/^/| /' conftest.$ac_ext >&5
36836 ac_header_compiler=no
36838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36840 echo "${ECHO_T}$ac_header_compiler" >&6
36842 # Is the header present?
36843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36845 cat >conftest.$ac_ext <<_ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h. */
36851 #include <$ac_header>
36853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36856 grep -v '^ *+' conftest.er1 >conftest.err
36858 cat conftest.err >&5
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); } >/dev/null; then
36861 if test -s conftest.err; then
36862 ac_cpp_err=$ac_c_preproc_warn_flag
36863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36870 if test -z "$ac_cpp_err"; then
36871 ac_header_preproc=yes
36873 echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36876 ac_header_preproc=no
36878 rm -f conftest.err conftest.$ac_ext
36879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36880 echo "${ECHO_T}$ac_header_preproc" >&6
36882 # So? What about this header?
36883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36889 ac_header_preproc=yes
36892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36906 ## --------------------------------------------- ##
36907 ## Report this to <http://www.openldap.org/its/> ##
36908 ## --------------------------------------------- ##
36911 sed "s/^/$as_me: WARNING: /" >&2
36914 echo "$as_me:$LINENO: checking for $ac_header" >&5
36915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36917 echo $ECHO_N "(cached) $ECHO_C" >&6
36919 eval "$as_ac_Header=\$ac_header_preproc"
36921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36926 cat >>confdefs.h <<_ACEOF
36927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36934 if test $ac_cv_header_unicode_utypes_h = yes ; then
36935 OL_ICULIBS="-licuuc -licudata"
36937 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36938 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36939 if test "${ol_cv_lib_icu+set}" = set; then
36940 echo $ECHO_N "(cached) $ECHO_C" >&6
36944 LIBS="$OL_ICULIBS $LIBS"
36945 cat >conftest.$ac_ext <<_ACEOF
36948 cat confdefs.h >>conftest.$ac_ext
36949 cat >>conftest.$ac_ext <<_ACEOF
36950 /* end confdefs.h. */
36952 #include <unicode/utypes.h>
36958 (void) u_errorName(0);
36964 rm -f conftest.$ac_objext conftest$ac_exeext
36965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36966 (eval $ac_link) 2>conftest.er1
36968 grep -v '^ *+' conftest.er1 >conftest.err
36970 cat conftest.err >&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); } &&
36973 { ac_try='test -z "$ac_c_werror_flag"
36974 || test ! -s conftest.err'
36975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976 (eval $ac_try) 2>&5
36978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979 (exit $ac_status); }; } &&
36980 { ac_try='test -s conftest$ac_exeext'
36981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36982 (eval $ac_try) 2>&5
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); }; }; then
36988 echo "$as_me: failed program was:" >&5
36989 sed 's/^/| /' conftest.$ac_ext >&5
36993 rm -f conftest.err conftest.$ac_objext \
36994 conftest$ac_exeext conftest.$ac_ext
36998 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36999 echo "${ECHO_T}$ol_cv_lib_icu" >&6
37001 if test $ol_cv_lib_icu != no ; then
37002 ol_icu="$OL_ICULIBS"
37004 cat >>confdefs.h <<\_ACEOF
37011 if test "$ol_icu" = no ; then
37012 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37013 echo "$as_me: WARNING: ICU not available" >&2;}
37020 if test $ol_with_cyrus_sasl != no ; then
37023 for ac_header in sasl/sasl.h sasl.h
37025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37027 echo "$as_me:$LINENO: checking for $ac_header" >&5
37028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37030 echo $ECHO_N "(cached) $ECHO_C" >&6
37032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37035 # Is the header compilable?
37036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37038 cat >conftest.$ac_ext <<_ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h. */
37044 $ac_includes_default
37045 #include <$ac_header>
37047 rm -f conftest.$ac_objext
37048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37049 (eval $ac_compile) 2>conftest.er1
37051 grep -v '^ *+' conftest.er1 >conftest.err
37053 cat conftest.err >&5
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); } &&
37056 { ac_try='test -z "$ac_c_werror_flag"
37057 || test ! -s conftest.err'
37058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059 (eval $ac_try) 2>&5
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); }; } &&
37063 { ac_try='test -s conftest.$ac_objext'
37064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065 (eval $ac_try) 2>&5
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); }; }; then
37069 ac_header_compiler=yes
37071 echo "$as_me: failed program was:" >&5
37072 sed 's/^/| /' conftest.$ac_ext >&5
37074 ac_header_compiler=no
37076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37078 echo "${ECHO_T}$ac_header_compiler" >&6
37080 # Is the header present?
37081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37083 cat >conftest.$ac_ext <<_ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h. */
37089 #include <$ac_header>
37091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37094 grep -v '^ *+' conftest.er1 >conftest.err
37096 cat conftest.err >&5
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } >/dev/null; then
37099 if test -s conftest.err; then
37100 ac_cpp_err=$ac_c_preproc_warn_flag
37101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37108 if test -z "$ac_cpp_err"; then
37109 ac_header_preproc=yes
37111 echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.$ac_ext >&5
37114 ac_header_preproc=no
37116 rm -f conftest.err conftest.$ac_ext
37117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37118 echo "${ECHO_T}$ac_header_preproc" >&6
37120 # So? What about this header?
37121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37127 ac_header_preproc=yes
37130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37144 ## --------------------------------------------- ##
37145 ## Report this to <http://www.openldap.org/its/> ##
37146 ## --------------------------------------------- ##
37149 sed "s/^/$as_me: WARNING: /" >&2
37152 echo "$as_me:$LINENO: checking for $ac_header" >&5
37153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37155 echo $ECHO_N "(cached) $ECHO_C" >&6
37157 eval "$as_ac_Header=\$ac_header_preproc"
37159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37164 cat >>confdefs.h <<_ACEOF
37165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37173 if test $ac_cv_header_sasl_sasl_h = yes ||
37174 test $ac_cv_header_sasl_h = yes; then
37175 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37176 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37177 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37178 echo $ECHO_N "(cached) $ECHO_C" >&6
37180 ac_check_lib_save_LIBS=$LIBS
37181 LIBS="-lsasl2 $LIBS"
37182 cat >conftest.$ac_ext <<_ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h. */
37189 /* Override any gcc2 internal prototype to avoid an error. */
37193 /* We use char because int might match the return type of a gcc2
37194 builtin and then its argument prototype would still apply. */
37195 char sasl_client_init ();
37199 sasl_client_init ();
37204 rm -f conftest.$ac_objext conftest$ac_exeext
37205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37206 (eval $ac_link) 2>conftest.er1
37208 grep -v '^ *+' conftest.er1 >conftest.err
37210 cat conftest.err >&5
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); } &&
37213 { ac_try='test -z "$ac_c_werror_flag"
37214 || test ! -s conftest.err'
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; } &&
37220 { ac_try='test -s conftest$ac_exeext'
37221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37222 (eval $ac_try) 2>&5
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); }; }; then
37226 ac_cv_lib_sasl2_sasl_client_init=yes
37228 echo "$as_me: failed program was:" >&5
37229 sed 's/^/| /' conftest.$ac_ext >&5
37231 ac_cv_lib_sasl2_sasl_client_init=no
37233 rm -f conftest.err conftest.$ac_objext \
37234 conftest$ac_exeext conftest.$ac_ext
37235 LIBS=$ac_check_lib_save_LIBS
37237 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37238 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37239 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37240 ol_link_sasl="-lsasl2"
37242 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37243 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37244 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37245 echo $ECHO_N "(cached) $ECHO_C" >&6
37247 ac_check_lib_save_LIBS=$LIBS
37248 LIBS="-lsasl $LIBS"
37249 cat >conftest.$ac_ext <<_ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h. */
37256 /* Override any gcc2 internal prototype to avoid an error. */
37260 /* We use char because int might match the return type of a gcc2
37261 builtin and then its argument prototype would still apply. */
37262 char sasl_client_init ();
37266 sasl_client_init ();
37271 rm -f conftest.$ac_objext conftest$ac_exeext
37272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37273 (eval $ac_link) 2>conftest.er1
37275 grep -v '^ *+' conftest.er1 >conftest.err
37277 cat conftest.err >&5
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); } &&
37280 { ac_try='test -z "$ac_c_werror_flag"
37281 || test ! -s conftest.err'
37282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283 (eval $ac_try) 2>&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); }; } &&
37287 { ac_try='test -s conftest$ac_exeext'
37288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289 (eval $ac_try) 2>&5
37291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292 (exit $ac_status); }; }; then
37293 ac_cv_lib_sasl_sasl_client_init=yes
37295 echo "$as_me: failed program was:" >&5
37296 sed 's/^/| /' conftest.$ac_ext >&5
37298 ac_cv_lib_sasl_sasl_client_init=no
37300 rm -f conftest.err conftest.$ac_objext \
37301 conftest$ac_exeext conftest.$ac_ext
37302 LIBS=$ac_check_lib_save_LIBS
37304 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37305 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37306 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37307 ol_link_sasl="-lsasl"
37314 if test $ol_link_sasl = no ; then
37315 if test $ol_with_cyrus_sasl != auto ; then
37316 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37317 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37318 { (exit 1); exit 1; }; }
37320 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37321 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37322 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37323 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37324 if test $ol_link_tls = no ; then
37325 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37326 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37330 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37331 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37332 if test "${ol_cv_sasl_compat+set}" = set; then
37333 echo $ECHO_N "(cached) $ECHO_C" >&6
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37343 #ifdef HAVE_SASL_SASL_H
37344 #include <sasl/sasl.h>
37349 /* Require 2.1.15+ */
37350 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37351 char *__sasl_compat = "2.2+ or better okay (we guess)";
37352 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37353 && SASL_VERSION_STEP >=15
37354 char *__sasl_compat = "2.1.15+ or better okay";
37358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37359 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37360 ol_cv_sasl_compat=yes
37362 ol_cv_sasl_compat=no
37367 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37368 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37370 if test $ol_cv_sasl_compat = no ; then
37372 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37373 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37374 { (exit 1); exit 1; }; }
37378 cat >>confdefs.h <<\_ACEOF
37379 #define HAVE_CYRUS_SASL 1
37382 SASL_LIBS="$ol_link_sasl"
37383 if test $ol_enable_spasswd != no ; then
37384 ol_link_spasswd=yes
37387 ac_save_LIBS="$LIBS"
37388 LIBS="$LIBS $ol_link_sasl"
37389 echo "$as_me:$LINENO: checking for sasl_version" >&5
37390 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37391 if test "${ac_cv_func_sasl_version+set}" = set; then
37392 echo $ECHO_N "(cached) $ECHO_C" >&6
37394 cat >conftest.$ac_ext <<_ACEOF
37397 cat confdefs.h >>conftest.$ac_ext
37398 cat >>conftest.$ac_ext <<_ACEOF
37399 /* end confdefs.h. */
37400 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37402 #define sasl_version innocuous_sasl_version
37404 /* System header to define __stub macros and hopefully few prototypes,
37405 which can conflict with char sasl_version (); below.
37406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37407 <limits.h> exists even on freestanding compilers. */
37410 # include <limits.h>
37412 # include <assert.h>
37415 #undef sasl_version
37417 /* Override any gcc2 internal prototype to avoid an error. */
37422 /* We use char because int might match the return type of a gcc2
37423 builtin and then its argument prototype would still apply. */
37424 char sasl_version ();
37425 /* The GNU C library defines this for functions which it implements
37426 to always fail with ENOSYS. Some functions are actually named
37427 something starting with __ and the normal name is an alias. */
37428 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37431 char (*f) () = sasl_version;
37440 return f != sasl_version;
37445 rm -f conftest.$ac_objext conftest$ac_exeext
37446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37447 (eval $ac_link) 2>conftest.er1
37449 grep -v '^ *+' conftest.er1 >conftest.err
37451 cat conftest.err >&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); } &&
37454 { ac_try='test -z "$ac_c_werror_flag"
37455 || test ! -s conftest.err'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; } &&
37461 { ac_try='test -s conftest$ac_exeext'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; }; then
37467 ac_cv_func_sasl_version=yes
37469 echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37472 ac_cv_func_sasl_version=no
37474 rm -f conftest.err conftest.$ac_objext \
37475 conftest$ac_exeext conftest.$ac_ext
37477 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37478 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37479 if test $ac_cv_func_sasl_version = yes; then
37481 cat >>confdefs.h <<\_ACEOF
37482 #define HAVE_SASL_VERSION 1
37487 LIBS="$ac_save_LIBS"
37493 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37494 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37495 if test $ol_link_tls = no ; then
37496 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37497 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37501 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37503 if test -r /dev/urandom ; then
37504 dev="/dev/urandom";
37505 elif test -r /idev/urandom ; then
37506 dev="/idev/urandom";
37507 elif test -r /dev/srandom ; then
37508 dev="/dev/srandom";
37509 elif test -r /dev/random ; then
37511 elif test -r /idev/random ; then
37512 dev="/idev/random";
37515 if test $dev != no ; then
37517 cat >>confdefs.h <<_ACEOF
37518 #define URANDOM_DEVICE "$dev"
37525 if test $ol_with_fetch != no ; then
37527 LIBS="-lfetch -lcom_err $LIBS"
37528 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37529 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37530 if test "${ol_cv_lib_fetch+set}" = set; then
37531 echo $ECHO_N "(cached) $ECHO_C" >&6
37534 cat >conftest.$ac_ext <<_ACEOF
37537 cat confdefs.h >>conftest.$ac_ext
37538 cat >>conftest.$ac_ext <<_ACEOF
37539 /* end confdefs.h. */
37541 #include <sys/param.h>
37547 struct url *u = fetchParseURL("file:///");
37552 rm -f conftest.$ac_objext conftest$ac_exeext
37553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37554 (eval $ac_link) 2>conftest.er1
37556 grep -v '^ *+' conftest.er1 >conftest.err
37558 cat conftest.err >&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } &&
37561 { ac_try='test -z "$ac_c_werror_flag"
37562 || test ! -s conftest.err'
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; } &&
37568 { ac_try='test -s conftest$ac_exeext'
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; }; then
37574 ol_cv_lib_fetch=yes
37576 echo "$as_me: failed program was:" >&5
37577 sed 's/^/| /' conftest.$ac_ext >&5
37581 rm -f conftest.err conftest.$ac_objext \
37582 conftest$ac_exeext conftest.$ac_ext
37584 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37585 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37587 if test $ol_cv_lib_fetch != no ; then
37588 ol_link_fetch="-lfetch -lcom_err"
37590 cat >>confdefs.h <<\_ACEOF
37591 #define HAVE_FETCH 1
37597 if test $ol_cv_lib_fetch != no ; then
37598 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37599 ol_link_fetch=freebsd
37601 elif test $ol_with_fetch != auto ; then
37602 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37603 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37604 { (exit 1); exit 1; }; }
37608 if test $ol_enable_crypt != no ; then
37610 LIBS="$TLS_LIBS $LIBS"
37612 echo "$as_me:$LINENO: checking for crypt" >&5
37613 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37614 if test "${ac_cv_func_crypt+set}" = set; then
37615 echo $ECHO_N "(cached) $ECHO_C" >&6
37617 cat >conftest.$ac_ext <<_ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h. */
37623 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37625 #define crypt innocuous_crypt
37627 /* System header to define __stub macros and hopefully few prototypes,
37628 which can conflict with char crypt (); below.
37629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37630 <limits.h> exists even on freestanding compilers. */
37633 # include <limits.h>
37635 # include <assert.h>
37640 /* Override any gcc2 internal prototype to avoid an error. */
37645 /* We use char because int might match the return type of a gcc2
37646 builtin and then its argument prototype would still apply. */
37648 /* The GNU C library defines this for functions which it implements
37649 to always fail with ENOSYS. Some functions are actually named
37650 something starting with __ and the normal name is an alias. */
37651 #if defined (__stub_crypt) || defined (__stub___crypt)
37654 char (*f) () = crypt;
37668 rm -f conftest.$ac_objext conftest$ac_exeext
37669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37670 (eval $ac_link) 2>conftest.er1
37672 grep -v '^ *+' conftest.er1 >conftest.err
37674 cat conftest.err >&5
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); } &&
37677 { ac_try='test -z "$ac_c_werror_flag"
37678 || test ! -s conftest.err'
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; } &&
37684 { ac_try='test -s conftest$ac_exeext'
37685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686 (eval $ac_try) 2>&5
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); }; }; then
37690 ac_cv_func_crypt=yes
37692 echo "$as_me: failed program was:" >&5
37693 sed 's/^/| /' conftest.$ac_ext >&5
37695 ac_cv_func_crypt=no
37697 rm -f conftest.err conftest.$ac_objext \
37698 conftest$ac_exeext conftest.$ac_ext
37700 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37701 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37702 if test $ac_cv_func_crypt = yes; then
37707 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37708 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37709 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37710 echo $ECHO_N "(cached) $ECHO_C" >&6
37712 ac_check_lib_save_LIBS=$LIBS
37713 LIBS="-lcrypt $LIBS"
37714 cat >conftest.$ac_ext <<_ACEOF
37717 cat confdefs.h >>conftest.$ac_ext
37718 cat >>conftest.$ac_ext <<_ACEOF
37719 /* end confdefs.h. */
37721 /* Override any gcc2 internal prototype to avoid an error. */
37725 /* We use char because int might match the return type of a gcc2
37726 builtin and then its argument prototype would still apply. */
37736 rm -f conftest.$ac_objext conftest$ac_exeext
37737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37738 (eval $ac_link) 2>conftest.er1
37740 grep -v '^ *+' conftest.er1 >conftest.err
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } &&
37745 { ac_try='test -z "$ac_c_werror_flag"
37746 || test ! -s conftest.err'
37747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37748 (eval $ac_try) 2>&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); }; } &&
37752 { ac_try='test -s conftest$ac_exeext'
37753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37754 (eval $ac_try) 2>&5
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); }; }; then
37758 ac_cv_lib_crypt_crypt=yes
37760 echo "$as_me: failed program was:" >&5
37761 sed 's/^/| /' conftest.$ac_ext >&5
37763 ac_cv_lib_crypt_crypt=no
37765 rm -f conftest.err conftest.$ac_objext \
37766 conftest$ac_exeext conftest.$ac_ext
37767 LIBS=$ac_check_lib_save_LIBS
37769 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37770 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37771 if test $ac_cv_lib_crypt_crypt = yes; then
37772 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37783 if test $have_crypt = yes ; then
37785 cat >>confdefs.h <<\_ACEOF
37786 #define HAVE_CRYPT 1
37790 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37791 echo "$as_me: WARNING: could not find crypt" >&2;}
37792 if test $ol_enable_crypt = yes ; then
37793 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37794 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37795 { (exit 1); exit 1; }; }
37798 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37799 echo "$as_me: WARNING: disabling crypt support" >&2;}
37804 if test $ol_enable_proctitle != no ; then
37805 echo "$as_me:$LINENO: checking for setproctitle" >&5
37806 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37807 if test "${ac_cv_func_setproctitle+set}" = set; then
37808 echo $ECHO_N "(cached) $ECHO_C" >&6
37810 cat >conftest.$ac_ext <<_ACEOF
37813 cat confdefs.h >>conftest.$ac_ext
37814 cat >>conftest.$ac_ext <<_ACEOF
37815 /* end confdefs.h. */
37816 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37818 #define setproctitle innocuous_setproctitle
37820 /* System header to define __stub macros and hopefully few prototypes,
37821 which can conflict with char setproctitle (); below.
37822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37823 <limits.h> exists even on freestanding compilers. */
37826 # include <limits.h>
37828 # include <assert.h>
37831 #undef setproctitle
37833 /* Override any gcc2 internal prototype to avoid an error. */
37838 /* We use char because int might match the return type of a gcc2
37839 builtin and then its argument prototype would still apply. */
37840 char setproctitle ();
37841 /* The GNU C library defines this for functions which it implements
37842 to always fail with ENOSYS. Some functions are actually named
37843 something starting with __ and the normal name is an alias. */
37844 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37847 char (*f) () = setproctitle;
37856 return f != setproctitle;
37861 rm -f conftest.$ac_objext conftest$ac_exeext
37862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37863 (eval $ac_link) 2>conftest.er1
37865 grep -v '^ *+' conftest.er1 >conftest.err
37867 cat conftest.err >&5
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); } &&
37870 { ac_try='test -z "$ac_c_werror_flag"
37871 || test ! -s conftest.err'
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; } &&
37877 { ac_try='test -s conftest$ac_exeext'
37878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879 (eval $ac_try) 2>&5
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); }; }; then
37883 ac_cv_func_setproctitle=yes
37885 echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37888 ac_cv_func_setproctitle=no
37890 rm -f conftest.err conftest.$ac_objext \
37891 conftest$ac_exeext conftest.$ac_ext
37893 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37894 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37895 if test $ac_cv_func_setproctitle = yes; then
37896 have_setproctitle=yes
37899 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37900 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37901 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37902 echo $ECHO_N "(cached) $ECHO_C" >&6
37904 ac_check_lib_save_LIBS=$LIBS
37905 LIBS="-lutil $LIBS"
37906 cat >conftest.$ac_ext <<_ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h. */
37913 /* Override any gcc2 internal prototype to avoid an error. */
37917 /* We use char because int might match the return type of a gcc2
37918 builtin and then its argument prototype would still apply. */
37919 char setproctitle ();
37928 rm -f conftest.$ac_objext conftest$ac_exeext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37930 (eval $ac_link) 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag"
37938 || test ! -s conftest.err'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; } &&
37944 { ac_try='test -s conftest$ac_exeext'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; }; then
37950 ac_cv_lib_util_setproctitle=yes
37952 echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37955 ac_cv_lib_util_setproctitle=no
37957 rm -f conftest.err conftest.$ac_objext \
37958 conftest$ac_exeext conftest.$ac_ext
37959 LIBS=$ac_check_lib_save_LIBS
37961 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37962 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37963 if test $ac_cv_lib_util_setproctitle = yes; then
37964 have_setproctitle=yes
37965 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37967 have_setproctitle=no
37969 "setproctitle.$ac_objext" | \
37970 *" setproctitle.$ac_objext" | \
37971 "setproctitle.$ac_objext "* | \
37972 *" setproctitle.$ac_objext "* ) ;;
37973 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37976 LIBSRCS="$LIBSRCS setproctitle.c"
37982 if test $have_setproctitle = yes ; then
37984 cat >>confdefs.h <<\_ACEOF
37985 #define HAVE_SETPROCTITLE 1
37991 if test $ol_enable_slp != no ; then
37993 for ac_header in slp.h
37995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37997 echo "$as_me:$LINENO: checking for $ac_header" >&5
37998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38000 echo $ECHO_N "(cached) $ECHO_C" >&6
38002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38005 # Is the header compilable?
38006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38008 cat >conftest.$ac_ext <<_ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h. */
38014 $ac_includes_default
38015 #include <$ac_header>
38017 rm -f conftest.$ac_objext
38018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38019 (eval $ac_compile) 2>conftest.er1
38021 grep -v '^ *+' conftest.er1 >conftest.err
38023 cat conftest.err >&5
38024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025 (exit $ac_status); } &&
38026 { ac_try='test -z "$ac_c_werror_flag"
38027 || test ! -s conftest.err'
38028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029 (eval $ac_try) 2>&5
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); }; } &&
38033 { ac_try='test -s conftest.$ac_objext'
38034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38035 (eval $ac_try) 2>&5
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); }; }; then
38039 ac_header_compiler=yes
38041 echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38044 ac_header_compiler=no
38046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38048 echo "${ECHO_T}$ac_header_compiler" >&6
38050 # Is the header present?
38051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38053 cat >conftest.$ac_ext <<_ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h. */
38059 #include <$ac_header>
38061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38064 grep -v '^ *+' conftest.er1 >conftest.err
38066 cat conftest.err >&5
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); } >/dev/null; then
38069 if test -s conftest.err; then
38070 ac_cpp_err=$ac_c_preproc_warn_flag
38071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38078 if test -z "$ac_cpp_err"; then
38079 ac_header_preproc=yes
38081 echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38084 ac_header_preproc=no
38086 rm -f conftest.err conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38088 echo "${ECHO_T}$ac_header_preproc" >&6
38090 # So? What about this header?
38091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38097 ac_header_preproc=yes
38100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38114 ## --------------------------------------------- ##
38115 ## Report this to <http://www.openldap.org/its/> ##
38116 ## --------------------------------------------- ##
38119 sed "s/^/$as_me: WARNING: /" >&2
38122 echo "$as_me:$LINENO: checking for $ac_header" >&5
38123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38125 echo $ECHO_N "(cached) $ECHO_C" >&6
38127 eval "$as_ac_Header=\$ac_header_preproc"
38129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38134 cat >>confdefs.h <<_ACEOF
38135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38143 if test $ac_cv_header_slp_h = yes ; then
38144 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38145 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38146 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38149 ac_check_lib_save_LIBS=$LIBS
38151 cat >conftest.$ac_ext <<_ACEOF
38154 cat confdefs.h >>conftest.$ac_ext
38155 cat >>conftest.$ac_ext <<_ACEOF
38156 /* end confdefs.h. */
38158 /* Override any gcc2 internal prototype to avoid an error. */
38162 /* We use char because int might match the return type of a gcc2
38163 builtin and then its argument prototype would still apply. */
38173 rm -f conftest.$ac_objext conftest$ac_exeext
38174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38175 (eval $ac_link) 2>conftest.er1
38177 grep -v '^ *+' conftest.er1 >conftest.err
38179 cat conftest.err >&5
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
38182 { ac_try='test -z "$ac_c_werror_flag"
38183 || test ! -s conftest.err'
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; } &&
38189 { ac_try='test -s conftest$ac_exeext'
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; }; then
38195 ac_cv_lib_slp_SLPOpen=yes
38197 echo "$as_me: failed program was:" >&5
38198 sed 's/^/| /' conftest.$ac_ext >&5
38200 ac_cv_lib_slp_SLPOpen=no
38202 rm -f conftest.err conftest.$ac_objext \
38203 conftest$ac_exeext conftest.$ac_ext
38204 LIBS=$ac_check_lib_save_LIBS
38206 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38207 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38208 if test $ac_cv_lib_slp_SLPOpen = yes; then
38214 if test $have_slp = yes ; then
38216 cat >>confdefs.h <<\_ACEOF
38220 SLAPD_SLP_LIBS=-lslp
38223 elif test $ol_enable_slp = yes ; then
38224 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38225 echo "$as_me: error: SLP not found" >&2;}
38226 { (exit 1); exit 1; }; }
38230 if test "$ol_with_multiple_precision" != "no" ; then
38236 for ac_header in openssl/bn.h bn.h
38238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38240 echo "$as_me:$LINENO: checking for $ac_header" >&5
38241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38243 echo $ECHO_N "(cached) $ECHO_C" >&6
38245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38248 # Is the header compilable?
38249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38251 cat >conftest.$ac_ext <<_ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h. */
38257 $ac_includes_default
38258 #include <$ac_header>
38260 rm -f conftest.$ac_objext
38261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38262 (eval $ac_compile) 2>conftest.er1
38264 grep -v '^ *+' conftest.er1 >conftest.err
38266 cat conftest.err >&5
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); } &&
38269 { ac_try='test -z "$ac_c_werror_flag"
38270 || test ! -s conftest.err'
38271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272 (eval $ac_try) 2>&5
38274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); }; } &&
38276 { ac_try='test -s conftest.$ac_objext'
38277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38278 (eval $ac_try) 2>&5
38280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281 (exit $ac_status); }; }; then
38282 ac_header_compiler=yes
38284 echo "$as_me: failed program was:" >&5
38285 sed 's/^/| /' conftest.$ac_ext >&5
38287 ac_header_compiler=no
38289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38291 echo "${ECHO_T}$ac_header_compiler" >&6
38293 # Is the header present?
38294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38296 cat >conftest.$ac_ext <<_ACEOF
38299 cat confdefs.h >>conftest.$ac_ext
38300 cat >>conftest.$ac_ext <<_ACEOF
38301 /* end confdefs.h. */
38302 #include <$ac_header>
38304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38307 grep -v '^ *+' conftest.er1 >conftest.err
38309 cat conftest.err >&5
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); } >/dev/null; then
38312 if test -s conftest.err; then
38313 ac_cpp_err=$ac_c_preproc_warn_flag
38314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38321 if test -z "$ac_cpp_err"; then
38322 ac_header_preproc=yes
38324 echo "$as_me: failed program was:" >&5
38325 sed 's/^/| /' conftest.$ac_ext >&5
38327 ac_header_preproc=no
38329 rm -f conftest.err conftest.$ac_ext
38330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38331 echo "${ECHO_T}$ac_header_preproc" >&6
38333 # So? What about this header?
38334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38340 ac_header_preproc=yes
38343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38357 ## --------------------------------------------- ##
38358 ## Report this to <http://www.openldap.org/its/> ##
38359 ## --------------------------------------------- ##
38362 sed "s/^/$as_me: WARNING: /" >&2
38365 echo "$as_me:$LINENO: checking for $ac_header" >&5
38366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38368 echo $ECHO_N "(cached) $ECHO_C" >&6
38370 eval "$as_ac_Header=\$ac_header_preproc"
38372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38377 cat >>confdefs.h <<_ACEOF
38378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38387 for ac_header in openssl/crypto.h crypto.h
38389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38391 echo "$as_me:$LINENO: checking for $ac_header" >&5
38392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38399 # Is the header compilable?
38400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38402 cat >conftest.$ac_ext <<_ACEOF
38405 cat confdefs.h >>conftest.$ac_ext
38406 cat >>conftest.$ac_ext <<_ACEOF
38407 /* end confdefs.h. */
38408 $ac_includes_default
38409 #include <$ac_header>
38411 rm -f conftest.$ac_objext
38412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38413 (eval $ac_compile) 2>conftest.er1
38415 grep -v '^ *+' conftest.er1 >conftest.err
38417 cat conftest.err >&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); } &&
38420 { ac_try='test -z "$ac_c_werror_flag"
38421 || test ! -s conftest.err'
38422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423 (eval $ac_try) 2>&5
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); }; } &&
38427 { ac_try='test -s conftest.$ac_objext'
38428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38429 (eval $ac_try) 2>&5
38431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432 (exit $ac_status); }; }; then
38433 ac_header_compiler=yes
38435 echo "$as_me: failed program was:" >&5
38436 sed 's/^/| /' conftest.$ac_ext >&5
38438 ac_header_compiler=no
38440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38442 echo "${ECHO_T}$ac_header_compiler" >&6
38444 # Is the header present?
38445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38453 #include <$ac_header>
38455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38458 grep -v '^ *+' conftest.er1 >conftest.err
38460 cat conftest.err >&5
38461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38462 (exit $ac_status); } >/dev/null; then
38463 if test -s conftest.err; then
38464 ac_cpp_err=$ac_c_preproc_warn_flag
38465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38472 if test -z "$ac_cpp_err"; then
38473 ac_header_preproc=yes
38475 echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38478 ac_header_preproc=no
38480 rm -f conftest.err conftest.$ac_ext
38481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38482 echo "${ECHO_T}$ac_header_preproc" >&6
38484 # So? What about this header?
38485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38491 ac_header_preproc=yes
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38508 ## --------------------------------------------- ##
38509 ## Report this to <http://www.openldap.org/its/> ##
38510 ## --------------------------------------------- ##
38513 sed "s/^/$as_me: WARNING: /" >&2
38516 echo "$as_me:$LINENO: checking for $ac_header" >&5
38517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38519 echo $ECHO_N "(cached) $ECHO_C" >&6
38521 eval "$as_ac_Header=\$ac_header_preproc"
38523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38528 cat >>confdefs.h <<_ACEOF
38529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38537 for ac_header in gmp.h
38539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38541 echo "$as_me:$LINENO: checking for $ac_header" >&5
38542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38549 # Is the header compilable?
38550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38552 cat >conftest.$ac_ext <<_ACEOF
38555 cat confdefs.h >>conftest.$ac_ext
38556 cat >>conftest.$ac_ext <<_ACEOF
38557 /* end confdefs.h. */
38558 $ac_includes_default
38559 #include <$ac_header>
38561 rm -f conftest.$ac_objext
38562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38563 (eval $ac_compile) 2>conftest.er1
38565 grep -v '^ *+' conftest.er1 >conftest.err
38567 cat conftest.err >&5
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); } &&
38570 { ac_try='test -z "$ac_c_werror_flag"
38571 || test ! -s conftest.err'
38572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38573 (eval $ac_try) 2>&5
38575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576 (exit $ac_status); }; } &&
38577 { ac_try='test -s conftest.$ac_objext'
38578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38579 (eval $ac_try) 2>&5
38581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582 (exit $ac_status); }; }; then
38583 ac_header_compiler=yes
38585 echo "$as_me: failed program was:" >&5
38586 sed 's/^/| /' conftest.$ac_ext >&5
38588 ac_header_compiler=no
38590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38592 echo "${ECHO_T}$ac_header_compiler" >&6
38594 # Is the header present?
38595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38597 cat >conftest.$ac_ext <<_ACEOF
38600 cat confdefs.h >>conftest.$ac_ext
38601 cat >>conftest.$ac_ext <<_ACEOF
38602 /* end confdefs.h. */
38603 #include <$ac_header>
38605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38608 grep -v '^ *+' conftest.er1 >conftest.err
38610 cat conftest.err >&5
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); } >/dev/null; then
38613 if test -s conftest.err; then
38614 ac_cpp_err=$ac_c_preproc_warn_flag
38615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38622 if test -z "$ac_cpp_err"; then
38623 ac_header_preproc=yes
38625 echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38628 ac_header_preproc=no
38630 rm -f conftest.err conftest.$ac_ext
38631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38632 echo "${ECHO_T}$ac_header_preproc" >&6
38634 # So? What about this header?
38635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38641 ac_header_preproc=yes
38644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38658 ## --------------------------------------------- ##
38659 ## Report this to <http://www.openldap.org/its/> ##
38660 ## --------------------------------------------- ##
38663 sed "s/^/$as_me: WARNING: /" >&2
38666 echo "$as_me:$LINENO: checking for $ac_header" >&5
38667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38669 echo $ECHO_N "(cached) $ECHO_C" >&6
38671 eval "$as_ac_Header=\$ac_header_preproc"
38673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38678 cat >>confdefs.h <<_ACEOF
38679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38687 if test "$ol_with_tls" = "found" ; then
38689 ol_have_crypto_h=no
38691 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38692 test "$ac_cv_header_bn_h" = "yes" ; then
38696 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38697 test "$ac_cv_header_crypto_h" = "yes" ; then
38698 ol_have_crypto_h=yes
38701 if test "$ol_have_bn_h" = "yes" &&
38702 test "$ol_have_crypto_h" = "yes" ; then
38707 if test $ac_cv_header_gmp_h = yes ; then
38708 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38709 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38710 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38711 echo $ECHO_N "(cached) $ECHO_C" >&6
38713 ac_check_lib_save_LIBS=$LIBS
38715 cat >conftest.$ac_ext <<_ACEOF
38718 cat confdefs.h >>conftest.$ac_ext
38719 cat >>conftest.$ac_ext <<_ACEOF
38720 /* end confdefs.h. */
38722 /* Override any gcc2 internal prototype to avoid an error. */
38726 /* We use char because int might match the return type of a gcc2
38727 builtin and then its argument prototype would still apply. */
38728 char __gmpz_add_ui ();
38737 rm -f conftest.$ac_objext conftest$ac_exeext
38738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38739 (eval $ac_link) 2>conftest.er1
38741 grep -v '^ *+' conftest.er1 >conftest.err
38743 cat conftest.err >&5
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); } &&
38746 { ac_try='test -z "$ac_c_werror_flag"
38747 || test ! -s conftest.err'
38748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749 (eval $ac_try) 2>&5
38751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752 (exit $ac_status); }; } &&
38753 { ac_try='test -s conftest$ac_exeext'
38754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38755 (eval $ac_try) 2>&5
38757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758 (exit $ac_status); }; }; then
38759 ac_cv_lib_gmp___gmpz_add_ui=yes
38761 echo "$as_me: failed program was:" >&5
38762 sed 's/^/| /' conftest.$ac_ext >&5
38764 ac_cv_lib_gmp___gmpz_add_ui=no
38766 rm -f conftest.err conftest.$ac_objext \
38767 conftest$ac_exeext conftest.$ac_ext
38768 LIBS=$ac_check_lib_save_LIBS
38770 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38771 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38772 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38778 if test $have_gmp = yes ; then
38783 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38784 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38786 ol_mp_support="none"
38787 case "$ol_with_multiple_precision" in
38789 if test "$ol_have_bignum" = "yes" ; then
38790 ol_mp_support="bignum"
38792 if test "$ol_have_gmp" = "yes" ; then
38793 ol_mp_support="gmp"
38798 if test "$ol_have_bignum" != "yes" ; then
38799 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38800 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38801 { (exit 1); exit 1; }; }
38803 ol_mp_support="bignum"
38806 if test "$ol_have_gmp" != "yes" ; then
38807 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38808 echo "$as_me: error: GMP not available" >&2;}
38809 { (exit 1); exit 1; }; }
38811 ol_mp_support="gmp"
38814 if test "$ol_have_bignum" = "yes" ; then
38815 ol_mp_support="bignum"
38816 elif test "$ol_have_gmp" = "yes" ; then
38817 ol_mp_support="gmp"
38819 { { echo "$as_me:$LINENO: error: not available" >&5
38820 echo "$as_me: error: not available" >&2;}
38821 { (exit 1); exit 1; }; }
38826 case "$ol_mp_support" in
38829 cat >>confdefs.h <<\_ACEOF
38830 #define HAVE_BIGNUM 1
38836 cat >>confdefs.h <<\_ACEOF
38840 SLAPD_GMP_LIBS=-lgmp
38846 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38847 echo "${ECHO_T}$ol_mp_support" >&6
38851 echo "$as_me:$LINENO: checking for mode_t" >&5
38852 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38853 if test "${ac_cv_type_mode_t+set}" = set; then
38854 echo $ECHO_N "(cached) $ECHO_C" >&6
38856 cat >conftest.$ac_ext <<_ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h. */
38862 $ac_includes_default
38868 if (sizeof (mode_t))
38874 rm -f conftest.$ac_objext
38875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38876 (eval $ac_compile) 2>conftest.er1
38878 grep -v '^ *+' conftest.er1 >conftest.err
38880 cat conftest.err >&5
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } &&
38883 { ac_try='test -z "$ac_c_werror_flag"
38884 || test ! -s conftest.err'
38885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886 (eval $ac_try) 2>&5
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); }; } &&
38890 { ac_try='test -s conftest.$ac_objext'
38891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38892 (eval $ac_try) 2>&5
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895 (exit $ac_status); }; }; then
38896 ac_cv_type_mode_t=yes
38898 echo "$as_me: failed program was:" >&5
38899 sed 's/^/| /' conftest.$ac_ext >&5
38901 ac_cv_type_mode_t=no
38903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38905 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38906 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38907 if test $ac_cv_type_mode_t = yes; then
38911 cat >>confdefs.h <<_ACEOF
38917 echo "$as_me:$LINENO: checking for off_t" >&5
38918 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38919 if test "${ac_cv_type_off_t+set}" = set; then
38920 echo $ECHO_N "(cached) $ECHO_C" >&6
38922 cat >conftest.$ac_ext <<_ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h. */
38928 $ac_includes_default
38934 if (sizeof (off_t))
38940 rm -f conftest.$ac_objext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38942 (eval $ac_compile) 2>conftest.er1
38944 grep -v '^ *+' conftest.er1 >conftest.err
38946 cat conftest.err >&5
38947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948 (exit $ac_status); } &&
38949 { ac_try='test -z "$ac_c_werror_flag"
38950 || test ! -s conftest.err'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; } &&
38956 { ac_try='test -s conftest.$ac_objext'
38957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958 (eval $ac_try) 2>&5
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); }; }; then
38962 ac_cv_type_off_t=yes
38964 echo "$as_me: failed program was:" >&5
38965 sed 's/^/| /' conftest.$ac_ext >&5
38967 ac_cv_type_off_t=no
38969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38971 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38972 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38973 if test $ac_cv_type_off_t = yes; then
38977 cat >>confdefs.h <<_ACEOF
38983 echo "$as_me:$LINENO: checking for pid_t" >&5
38984 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38985 if test "${ac_cv_type_pid_t+set}" = set; then
38986 echo $ECHO_N "(cached) $ECHO_C" >&6
38988 cat >conftest.$ac_ext <<_ACEOF
38991 cat confdefs.h >>conftest.$ac_ext
38992 cat >>conftest.$ac_ext <<_ACEOF
38993 /* end confdefs.h. */
38994 $ac_includes_default
39000 if (sizeof (pid_t))
39006 rm -f conftest.$ac_objext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39008 (eval $ac_compile) 2>conftest.er1
39010 grep -v '^ *+' conftest.er1 >conftest.err
39012 cat conftest.err >&5
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); } &&
39015 { ac_try='test -z "$ac_c_werror_flag"
39016 || test ! -s conftest.err'
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; } &&
39022 { ac_try='test -s conftest.$ac_objext'
39023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024 (eval $ac_try) 2>&5
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); }; }; then
39028 ac_cv_type_pid_t=yes
39030 echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39033 ac_cv_type_pid_t=no
39035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39037 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39038 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39039 if test $ac_cv_type_pid_t = yes; then
39043 cat >>confdefs.h <<_ACEOF
39049 echo "$as_me:$LINENO: checking for ssize_t" >&5
39050 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39051 if test "${ac_cv_type_ssize_t+set}" = set; then
39052 echo $ECHO_N "(cached) $ECHO_C" >&6
39054 cat >conftest.$ac_ext <<_ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h. */
39060 $ac_includes_default
39066 if (sizeof (ssize_t))
39072 rm -f conftest.$ac_objext
39073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39074 (eval $ac_compile) 2>conftest.er1
39076 grep -v '^ *+' conftest.er1 >conftest.err
39078 cat conftest.err >&5
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); } &&
39081 { ac_try='test -z "$ac_c_werror_flag"
39082 || test ! -s conftest.err'
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; } &&
39088 { ac_try='test -s conftest.$ac_objext'
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; }; then
39094 ac_cv_type_ssize_t=yes
39096 echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39099 ac_cv_type_ssize_t=no
39101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39103 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39104 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39105 if test $ac_cv_type_ssize_t = yes; then
39109 cat >>confdefs.h <<_ACEOF
39110 #define ssize_t signed int
39115 echo "$as_me:$LINENO: checking for caddr_t" >&5
39116 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39117 if test "${ac_cv_type_caddr_t+set}" = set; then
39118 echo $ECHO_N "(cached) $ECHO_C" >&6
39120 cat >conftest.$ac_ext <<_ACEOF
39123 cat confdefs.h >>conftest.$ac_ext
39124 cat >>conftest.$ac_ext <<_ACEOF
39125 /* end confdefs.h. */
39126 $ac_includes_default
39132 if (sizeof (caddr_t))
39138 rm -f conftest.$ac_objext
39139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39140 (eval $ac_compile) 2>conftest.er1
39142 grep -v '^ *+' conftest.er1 >conftest.err
39144 cat conftest.err >&5
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); } &&
39147 { ac_try='test -z "$ac_c_werror_flag"
39148 || test ! -s conftest.err'
39149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150 (eval $ac_try) 2>&5
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); }; } &&
39154 { ac_try='test -s conftest.$ac_objext'
39155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156 (eval $ac_try) 2>&5
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); }; }; then
39160 ac_cv_type_caddr_t=yes
39162 echo "$as_me: failed program was:" >&5
39163 sed 's/^/| /' conftest.$ac_ext >&5
39165 ac_cv_type_caddr_t=no
39167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39169 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39170 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39171 if test $ac_cv_type_caddr_t = yes; then
39175 cat >>confdefs.h <<_ACEOF
39176 #define caddr_t char *
39181 echo "$as_me:$LINENO: checking for size_t" >&5
39182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39183 if test "${ac_cv_type_size_t+set}" = set; then
39184 echo $ECHO_N "(cached) $ECHO_C" >&6
39186 cat >conftest.$ac_ext <<_ACEOF
39189 cat confdefs.h >>conftest.$ac_ext
39190 cat >>conftest.$ac_ext <<_ACEOF
39191 /* end confdefs.h. */
39192 $ac_includes_default
39198 if (sizeof (size_t))
39204 rm -f conftest.$ac_objext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39206 (eval $ac_compile) 2>conftest.er1
39208 grep -v '^ *+' conftest.er1 >conftest.err
39210 cat conftest.err >&5
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); } &&
39213 { ac_try='test -z "$ac_c_werror_flag"
39214 || test ! -s conftest.err'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; } &&
39220 { ac_try='test -s conftest.$ac_objext'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; }; then
39226 ac_cv_type_size_t=yes
39228 echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39231 ac_cv_type_size_t=no
39233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39235 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39236 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39237 if test $ac_cv_type_size_t = yes; then
39241 cat >>confdefs.h <<_ACEOF
39242 #define size_t unsigned
39248 echo "$as_me:$LINENO: checking for long long" >&5
39249 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39250 if test "${ac_cv_type_long_long+set}" = set; then
39251 echo $ECHO_N "(cached) $ECHO_C" >&6
39253 cat >conftest.$ac_ext <<_ACEOF
39256 cat confdefs.h >>conftest.$ac_ext
39257 cat >>conftest.$ac_ext <<_ACEOF
39258 /* end confdefs.h. */
39259 $ac_includes_default
39263 if ((long long *) 0)
39265 if (sizeof (long long))
39271 rm -f conftest.$ac_objext
39272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39273 (eval $ac_compile) 2>conftest.er1
39275 grep -v '^ *+' conftest.er1 >conftest.err
39277 cat conftest.err >&5
39278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279 (exit $ac_status); } &&
39280 { ac_try='test -z "$ac_c_werror_flag"
39281 || test ! -s conftest.err'
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; } &&
39287 { ac_try='test -s conftest.$ac_objext'
39288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289 (eval $ac_try) 2>&5
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); }; }; then
39293 ac_cv_type_long_long=yes
39295 echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39298 ac_cv_type_long_long=no
39300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39302 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39303 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39304 if test $ac_cv_type_long_long = yes; then
39306 cat >>confdefs.h <<_ACEOF
39307 #define HAVE_LONG_LONG 1
39313 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39314 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39315 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39316 echo $ECHO_N "(cached) $ECHO_C" >&6
39318 cat >conftest.$ac_ext <<_ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h. */
39324 $ac_includes_default
39328 if ((ptrdiff_t *) 0)
39330 if (sizeof (ptrdiff_t))
39336 rm -f conftest.$ac_objext
39337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39338 (eval $ac_compile) 2>conftest.er1
39340 grep -v '^ *+' conftest.er1 >conftest.err
39342 cat conftest.err >&5
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } &&
39345 { ac_try='test -z "$ac_c_werror_flag"
39346 || test ! -s conftest.err'
39347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39348 (eval $ac_try) 2>&5
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); }; } &&
39352 { ac_try='test -s conftest.$ac_objext'
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; }; then
39358 ac_cv_type_ptrdiff_t=yes
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39363 ac_cv_type_ptrdiff_t=no
39365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39367 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39368 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39369 if test $ac_cv_type_ptrdiff_t = yes; then
39371 cat >>confdefs.h <<_ACEOF
39372 #define HAVE_PTRDIFF_T 1
39379 echo "$as_me:$LINENO: checking for socklen_t" >&5
39380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39381 if test "${ac_cv_type_socklen_t+set}" = set; then
39382 echo $ECHO_N "(cached) $ECHO_C" >&6
39384 cat >conftest.$ac_ext <<_ACEOF
39387 cat confdefs.h >>conftest.$ac_ext
39388 cat >>conftest.$ac_ext <<_ACEOF
39389 /* end confdefs.h. */
39390 $ac_includes_default
39391 #ifdef HAVE_SYS_SOCKET_H
39392 #include <sys/socket.h>
39399 if ((socklen_t *) 0)
39401 if (sizeof (socklen_t))
39407 rm -f conftest.$ac_objext
39408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39409 (eval $ac_compile) 2>conftest.er1
39411 grep -v '^ *+' conftest.er1 >conftest.err
39413 cat conftest.err >&5
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); } &&
39416 { ac_try='test -z "$ac_c_werror_flag"
39417 || test ! -s conftest.err'
39418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39419 (eval $ac_try) 2>&5
39421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39422 (exit $ac_status); }; } &&
39423 { ac_try='test -s conftest.$ac_objext'
39424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39425 (eval $ac_try) 2>&5
39427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428 (exit $ac_status); }; }; then
39429 ac_cv_type_socklen_t=yes
39431 echo "$as_me: failed program was:" >&5
39432 sed 's/^/| /' conftest.$ac_ext >&5
39434 ac_cv_type_socklen_t=no
39436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39438 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39439 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39440 if test $ac_cv_type_socklen_t = yes; then
39444 cat >>confdefs.h <<_ACEOF
39445 #define socklen_t int
39451 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39452 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39453 if test "${ac_cv_type_signal+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39456 cat >conftest.$ac_ext <<_ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h. */
39462 #include <sys/types.h>
39463 #include <signal.h>
39468 extern "C" void (*signal (int, void (*)(int)))(int);
39470 void (*signal ()) ();
39481 rm -f conftest.$ac_objext
39482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39483 (eval $ac_compile) 2>conftest.er1
39485 grep -v '^ *+' conftest.er1 >conftest.err
39487 cat conftest.err >&5
39488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489 (exit $ac_status); } &&
39490 { ac_try='test -z "$ac_c_werror_flag"
39491 || test ! -s conftest.err'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; } &&
39497 { ac_try='test -s conftest.$ac_objext'
39498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499 (eval $ac_try) 2>&5
39501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502 (exit $ac_status); }; }; then
39503 ac_cv_type_signal=void
39505 echo "$as_me: failed program was:" >&5
39506 sed 's/^/| /' conftest.$ac_ext >&5
39508 ac_cv_type_signal=int
39510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39512 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39513 echo "${ECHO_T}$ac_cv_type_signal" >&6
39515 cat >>confdefs.h <<_ACEOF
39516 #define RETSIGTYPE $ac_cv_type_signal
39521 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39522 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39523 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39524 echo $ECHO_N "(cached) $ECHO_C" >&6
39526 cat >conftest.$ac_ext <<_ACEOF
39529 cat confdefs.h >>conftest.$ac_ext
39530 cat >>conftest.$ac_ext <<_ACEOF
39531 /* end confdefs.h. */
39532 $ac_includes_default
39533 #include <signal.h>
39539 if ((sig_atomic_t *) 0)
39541 if (sizeof (sig_atomic_t))
39547 rm -f conftest.$ac_objext
39548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39549 (eval $ac_compile) 2>conftest.er1
39551 grep -v '^ *+' conftest.er1 >conftest.err
39553 cat conftest.err >&5
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); } &&
39556 { ac_try='test -z "$ac_c_werror_flag"
39557 || test ! -s conftest.err'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; } &&
39563 { ac_try='test -s conftest.$ac_objext'
39564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565 (eval $ac_try) 2>&5
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); }; }; then
39569 ac_cv_type_sig_atomic_t=yes
39571 echo "$as_me: failed program was:" >&5
39572 sed 's/^/| /' conftest.$ac_ext >&5
39574 ac_cv_type_sig_atomic_t=no
39576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39578 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39579 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39580 if test $ac_cv_type_sig_atomic_t = yes; then
39584 cat >>confdefs.h <<_ACEOF
39585 #define sig_atomic_t int
39591 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39592 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39593 if test "${ac_cv_type_uid_t+set}" = set; then
39594 echo $ECHO_N "(cached) $ECHO_C" >&6
39596 cat >conftest.$ac_ext <<_ACEOF
39599 cat confdefs.h >>conftest.$ac_ext
39600 cat >>conftest.$ac_ext <<_ACEOF
39601 /* end confdefs.h. */
39602 #include <sys/types.h>
39605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39606 $EGREP "uid_t" >/dev/null 2>&1; then
39607 ac_cv_type_uid_t=yes
39609 ac_cv_type_uid_t=no
39614 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39615 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39616 if test $ac_cv_type_uid_t = no; then
39618 cat >>confdefs.h <<\_ACEOF
39623 cat >>confdefs.h <<\_ACEOF
39630 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39631 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39632 if test "${ac_cv_header_time+set}" = set; then
39633 echo $ECHO_N "(cached) $ECHO_C" >&6
39635 cat >conftest.$ac_ext <<_ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h. */
39641 #include <sys/types.h>
39642 #include <sys/time.h>
39648 if ((struct tm *) 0)
39654 rm -f conftest.$ac_objext
39655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39656 (eval $ac_compile) 2>conftest.er1
39658 grep -v '^ *+' conftest.er1 >conftest.err
39660 cat conftest.err >&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); } &&
39663 { ac_try='test -z "$ac_c_werror_flag"
39664 || test ! -s conftest.err'
39665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39666 (eval $ac_try) 2>&5
39668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); }; } &&
39670 { ac_try='test -s conftest.$ac_objext'
39671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672 (eval $ac_try) 2>&5
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); }; }; then
39676 ac_cv_header_time=yes
39678 echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39681 ac_cv_header_time=no
39683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39685 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39686 echo "${ECHO_T}$ac_cv_header_time" >&6
39687 if test $ac_cv_header_time = yes; then
39689 cat >>confdefs.h <<\_ACEOF
39690 #define TIME_WITH_SYS_TIME 1
39695 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39697 if test "${ac_cv_struct_tm+set}" = set; then
39698 echo $ECHO_N "(cached) $ECHO_C" >&6
39700 cat >conftest.$ac_ext <<_ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h. */
39706 #include <sys/types.h>
39712 struct tm *tp; tp->tm_sec;
39717 rm -f conftest.$ac_objext
39718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39719 (eval $ac_compile) 2>conftest.er1
39721 grep -v '^ *+' conftest.er1 >conftest.err
39723 cat conftest.err >&5
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); } &&
39726 { ac_try='test -z "$ac_c_werror_flag"
39727 || test ! -s conftest.err'
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; } &&
39733 { ac_try='test -s conftest.$ac_objext'
39734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39735 (eval $ac_try) 2>&5
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); }; }; then
39739 ac_cv_struct_tm=time.h
39741 echo "$as_me: failed program was:" >&5
39742 sed 's/^/| /' conftest.$ac_ext >&5
39744 ac_cv_struct_tm=sys/time.h
39746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39748 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39749 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39750 if test $ac_cv_struct_tm = sys/time.h; then
39752 cat >>confdefs.h <<\_ACEOF
39753 #define TM_IN_SYS_TIME 1
39758 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39759 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39760 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39761 echo $ECHO_N "(cached) $ECHO_C" >&6
39763 cat >conftest.$ac_ext <<_ACEOF
39766 cat confdefs.h >>conftest.$ac_ext
39767 cat >>conftest.$ac_ext <<_ACEOF
39768 /* end confdefs.h. */
39769 $ac_includes_default
39773 static struct stat ac_aggr;
39774 if (ac_aggr.st_blksize)
39780 rm -f conftest.$ac_objext
39781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39782 (eval $ac_compile) 2>conftest.er1
39784 grep -v '^ *+' conftest.er1 >conftest.err
39786 cat conftest.err >&5
39787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788 (exit $ac_status); } &&
39789 { ac_try='test -z "$ac_c_werror_flag"
39790 || test ! -s conftest.err'
39791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39792 (eval $ac_try) 2>&5
39794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795 (exit $ac_status); }; } &&
39796 { ac_try='test -s conftest.$ac_objext'
39797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39798 (eval $ac_try) 2>&5
39800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39801 (exit $ac_status); }; }; then
39802 ac_cv_member_struct_stat_st_blksize=yes
39804 echo "$as_me: failed program was:" >&5
39805 sed 's/^/| /' conftest.$ac_ext >&5
39807 cat >conftest.$ac_ext <<_ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h. */
39813 $ac_includes_default
39817 static struct stat ac_aggr;
39818 if (sizeof ac_aggr.st_blksize)
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826 (eval $ac_compile) 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } &&
39833 { ac_try='test -z "$ac_c_werror_flag"
39834 || test ! -s conftest.err'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; } &&
39840 { ac_try='test -s conftest.$ac_objext'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; }; then
39846 ac_cv_member_struct_stat_st_blksize=yes
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 ac_cv_member_struct_stat_st_blksize=no
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39857 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39858 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39859 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39861 cat >>confdefs.h <<_ACEOF
39862 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39868 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39869 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39870 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39871 echo $ECHO_N "(cached) $ECHO_C" >&6
39873 cat >conftest.$ac_ext <<_ACEOF
39876 cat confdefs.h >>conftest.$ac_ext
39877 cat >>conftest.$ac_ext <<_ACEOF
39878 /* end confdefs.h. */
39879 $ac_includes_default
39885 static struct passwd ac_aggr;
39886 if (ac_aggr.pw_gecos)
39892 rm -f conftest.$ac_objext
39893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39894 (eval $ac_compile) 2>conftest.er1
39896 grep -v '^ *+' conftest.er1 >conftest.err
39898 cat conftest.err >&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); } &&
39901 { ac_try='test -z "$ac_c_werror_flag"
39902 || test ! -s conftest.err'
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; } &&
39908 { ac_try='test -s conftest.$ac_objext'
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; }; then
39914 ac_cv_member_struct_passwd_pw_gecos=yes
39916 echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39919 cat >conftest.$ac_ext <<_ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h. */
39925 $ac_includes_default
39931 static struct passwd ac_aggr;
39932 if (sizeof ac_aggr.pw_gecos)
39938 rm -f conftest.$ac_objext
39939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39940 (eval $ac_compile) 2>conftest.er1
39942 grep -v '^ *+' conftest.er1 >conftest.err
39944 cat conftest.err >&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); } &&
39947 { ac_try='test -z "$ac_c_werror_flag"
39948 || test ! -s conftest.err'
39949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950 (eval $ac_try) 2>&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); }; } &&
39954 { ac_try='test -s conftest.$ac_objext'
39955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956 (eval $ac_try) 2>&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); }; }; then
39960 ac_cv_member_struct_passwd_pw_gecos=yes
39962 echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39965 ac_cv_member_struct_passwd_pw_gecos=no
39967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39972 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39973 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39975 cat >>confdefs.h <<_ACEOF
39976 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39982 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39983 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39984 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39985 echo $ECHO_N "(cached) $ECHO_C" >&6
39987 cat >conftest.$ac_ext <<_ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h. */
39993 $ac_includes_default
39999 static struct passwd ac_aggr;
40000 if (ac_aggr.pw_passwd)
40006 rm -f conftest.$ac_objext
40007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40008 (eval $ac_compile) 2>conftest.er1
40010 grep -v '^ *+' conftest.er1 >conftest.err
40012 cat conftest.err >&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); } &&
40015 { ac_try='test -z "$ac_c_werror_flag"
40016 || test ! -s conftest.err'
40017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40018 (eval $ac_try) 2>&5
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); }; } &&
40022 { ac_try='test -s conftest.$ac_objext'
40023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40024 (eval $ac_try) 2>&5
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); }; }; then
40028 ac_cv_member_struct_passwd_pw_passwd=yes
40030 echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40033 cat >conftest.$ac_ext <<_ACEOF
40036 cat confdefs.h >>conftest.$ac_ext
40037 cat >>conftest.$ac_ext <<_ACEOF
40038 /* end confdefs.h. */
40039 $ac_includes_default
40045 static struct passwd ac_aggr;
40046 if (sizeof ac_aggr.pw_passwd)
40052 rm -f conftest.$ac_objext
40053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40054 (eval $ac_compile) 2>conftest.er1
40056 grep -v '^ *+' conftest.er1 >conftest.err
40058 cat conftest.err >&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); } &&
40061 { ac_try='test -z "$ac_c_werror_flag"
40062 || test ! -s conftest.err'
40063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064 (eval $ac_try) 2>&5
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); }; } &&
40068 { ac_try='test -s conftest.$ac_objext'
40069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40070 (eval $ac_try) 2>&5
40072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); }; }; then
40074 ac_cv_member_struct_passwd_pw_passwd=yes
40076 echo "$as_me: failed program was:" >&5
40077 sed 's/^/| /' conftest.$ac_ext >&5
40079 ac_cv_member_struct_passwd_pw_passwd=no
40081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40086 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40087 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40089 cat >>confdefs.h <<_ACEOF
40090 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40097 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40098 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40099 if test "${ol_cv_c_upper_lower+set}" = set; then
40100 echo $ECHO_N "(cached) $ECHO_C" >&6
40103 if test "$cross_compiling" = yes; then
40104 ol_cv_c_upper_lower=safe
40106 cat >conftest.$ac_ext <<_ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h. */
40116 if ('C' == toupper('C'))
40122 rm -f conftest$ac_exeext
40123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40124 (eval $ac_link) 2>&5
40126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40129 (eval $ac_try) 2>&5
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); }; }; then
40133 ol_cv_c_upper_lower=no
40135 echo "$as_me: program exited with status $ac_status" >&5
40136 echo "$as_me: failed program was:" >&5
40137 sed 's/^/| /' conftest.$ac_ext >&5
40139 ( exit $ac_status )
40140 ol_cv_c_upper_lower=yes
40142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40145 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40146 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40147 if test $ol_cv_c_upper_lower != no ; then
40149 cat >>confdefs.h <<\_ACEOF
40150 #define C_UPPER_LOWER 1
40155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40157 if test "${ac_cv_c_const+set}" = set; then
40158 echo $ECHO_N "(cached) $ECHO_C" >&6
40160 cat >conftest.$ac_ext <<_ACEOF
40163 cat confdefs.h >>conftest.$ac_ext
40164 cat >>conftest.$ac_ext <<_ACEOF
40165 /* end confdefs.h. */
40170 /* FIXME: Include the comments suggested by Paul. */
40171 #ifndef __cplusplus
40172 /* Ultrix mips cc rejects this. */
40173 typedef int charset[2];
40175 /* SunOS 4.1.1 cc rejects this. */
40176 char const *const *ccp;
40178 /* NEC SVR4.0.2 mips cc rejects this. */
40179 struct point {int x, y;};
40180 static struct point const zero = {0,0};
40181 /* AIX XL C 1.02.0.0 rejects this.
40182 It does not let you subtract one const X* pointer from another in
40183 an arm of an if-expression whose if-part is not a constant
40185 const char *g = "string";
40186 ccp = &g + (g ? g-g : 0);
40187 /* HPUX 7.0 cc rejects these. */
40190 ccp = (char const *const *) p;
40191 { /* SCO 3.2v4 cc rejects this. */
40193 char const *s = 0 ? (char *) 0 : (char const *) 0;
40197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40198 int x[] = {25, 17};
40199 const int *foo = &x[0];
40202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40203 typedef const int *iptr;
40207 { /* AIX XL C 1.02.0.0 rejects this saying
40208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40209 struct s { int j; const int *ap[3]; };
40210 struct s *b; b->j = 5;
40212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40213 const int foo = 10;
40221 rm -f conftest.$ac_objext
40222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40223 (eval $ac_compile) 2>conftest.er1
40225 grep -v '^ *+' conftest.er1 >conftest.err
40227 cat conftest.err >&5
40228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229 (exit $ac_status); } &&
40230 { ac_try='test -z "$ac_c_werror_flag"
40231 || test ! -s conftest.err'
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; } &&
40237 { ac_try='test -s conftest.$ac_objext'
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; }; then
40245 echo "$as_me: failed program was:" >&5
40246 sed 's/^/| /' conftest.$ac_ext >&5
40250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40252 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40253 echo "${ECHO_T}$ac_cv_c_const" >&6
40254 if test $ac_cv_c_const = no; then
40256 cat >>confdefs.h <<\_ACEOF
40262 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40263 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40264 if test "${ol_cv_c_volatile+set}" = set; then
40265 echo $ECHO_N "(cached) $ECHO_C" >&6
40267 cat >conftest.$ac_ext <<_ACEOF
40270 cat confdefs.h >>conftest.$ac_ext
40271 cat >>conftest.$ac_ext <<_ACEOF
40272 /* end confdefs.h. */
40277 volatile int a; int * volatile b = x ? &y : &z;
40278 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40284 rm -f conftest.$ac_objext
40285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40286 (eval $ac_compile) 2>conftest.er1
40288 grep -v '^ *+' conftest.er1 >conftest.err
40290 cat conftest.err >&5
40291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); } &&
40293 { ac_try='test -z "$ac_c_werror_flag"
40294 || test ! -s conftest.err'
40295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40296 (eval $ac_try) 2>&5
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); }; } &&
40300 { ac_try='test -s conftest.$ac_objext'
40301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40302 (eval $ac_try) 2>&5
40304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305 (exit $ac_status); }; }; then
40306 ol_cv_c_volatile=yes
40308 echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40311 ol_cv_c_volatile=no
40313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40315 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40316 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40317 if test $ol_cv_c_volatile = yes; then
40321 cat >>confdefs.h <<\_ACEOF
40328 if test $cross_compiling = yes ; then
40329 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40330 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40332 cat >>confdefs.h <<\_ACEOF
40333 #define CROSS_COMPILING 1
40337 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40338 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40339 if test "${ac_cv_c_bigendian+set}" = set; then
40340 echo $ECHO_N "(cached) $ECHO_C" >&6
40342 # See if sys/param.h defines the BYTE_ORDER macro.
40343 cat >conftest.$ac_ext <<_ACEOF
40346 cat confdefs.h >>conftest.$ac_ext
40347 cat >>conftest.$ac_ext <<_ACEOF
40348 /* end confdefs.h. */
40349 #include <sys/types.h>
40350 #include <sys/param.h>
40355 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40356 bogus endian macros
40363 rm -f conftest.$ac_objext
40364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40365 (eval $ac_compile) 2>conftest.er1
40367 grep -v '^ *+' conftest.er1 >conftest.err
40369 cat conftest.err >&5
40370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371 (exit $ac_status); } &&
40372 { ac_try='test -z "$ac_c_werror_flag"
40373 || test ! -s conftest.err'
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375 (eval $ac_try) 2>&5
40377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; } &&
40379 { ac_try='test -s conftest.$ac_objext'
40380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40381 (eval $ac_try) 2>&5
40383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); }; }; then
40385 # It does; now see whether it defined to BIG_ENDIAN or not.
40386 cat >conftest.$ac_ext <<_ACEOF
40389 cat confdefs.h >>conftest.$ac_ext
40390 cat >>conftest.$ac_ext <<_ACEOF
40391 /* end confdefs.h. */
40392 #include <sys/types.h>
40393 #include <sys/param.h>
40398 #if BYTE_ORDER != BIG_ENDIAN
40406 rm -f conftest.$ac_objext
40407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40408 (eval $ac_compile) 2>conftest.er1
40410 grep -v '^ *+' conftest.er1 >conftest.err
40412 cat conftest.err >&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } &&
40415 { ac_try='test -z "$ac_c_werror_flag"
40416 || test ! -s conftest.err'
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; } &&
40422 { ac_try='test -s conftest.$ac_objext'
40423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424 (eval $ac_try) 2>&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); }; }; then
40428 ac_cv_c_bigendian=yes
40430 echo "$as_me: failed program was:" >&5
40431 sed 's/^/| /' conftest.$ac_ext >&5
40433 ac_cv_c_bigendian=no
40435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40437 echo "$as_me: failed program was:" >&5
40438 sed 's/^/| /' conftest.$ac_ext >&5
40440 # It does not; compile a test program.
40441 if test "$cross_compiling" = yes; then
40442 # try to guess the endianness by grepping values into an object file
40443 ac_cv_c_bigendian=unknown
40444 cat >conftest.$ac_ext <<_ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h. */
40450 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40451 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40453 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40454 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40459 _ascii (); _ebcdic ();
40464 rm -f conftest.$ac_objext
40465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40466 (eval $ac_compile) 2>conftest.er1
40468 grep -v '^ *+' conftest.er1 >conftest.err
40470 cat conftest.err >&5
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } &&
40473 { ac_try='test -z "$ac_c_werror_flag"
40474 || test ! -s conftest.err'
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; } &&
40480 { ac_try='test -s conftest.$ac_objext'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; }; then
40486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40487 ac_cv_c_bigendian=yes
40489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40490 if test "$ac_cv_c_bigendian" = unknown; then
40491 ac_cv_c_bigendian=no
40493 # finding both strings is unlikely to happen, but who knows?
40494 ac_cv_c_bigendian=unknown
40498 echo "$as_me: failed program was:" >&5
40499 sed 's/^/| /' conftest.$ac_ext >&5
40502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40504 cat >conftest.$ac_ext <<_ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h. */
40513 /* Are we little or big endian? From Harbison&Steele. */
40517 char c[sizeof (long)];
40520 exit (u.c[sizeof (long) - 1] == 1);
40523 rm -f conftest$ac_exeext
40524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40525 (eval $ac_link) 2>&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40530 (eval $ac_try) 2>&5
40532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533 (exit $ac_status); }; }; then
40534 ac_cv_c_bigendian=no
40536 echo "$as_me: program exited with status $ac_status" >&5
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40540 ( exit $ac_status )
40541 ac_cv_c_bigendian=yes
40543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40548 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40549 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40550 case $ac_cv_c_bigendian in
40553 cat >>confdefs.h <<\_ACEOF
40554 #define WORDS_BIGENDIAN 1
40560 { { echo "$as_me:$LINENO: error: unknown endianness
40561 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40562 echo "$as_me: error: unknown endianness
40563 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40564 { (exit 1); exit 1; }; } ;;
40569 echo "$as_me:$LINENO: checking for short" >&5
40570 echo $ECHO_N "checking for short... $ECHO_C" >&6
40571 if test "${ac_cv_type_short+set}" = set; then
40572 echo $ECHO_N "(cached) $ECHO_C" >&6
40574 cat >conftest.$ac_ext <<_ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40580 $ac_includes_default
40586 if (sizeof (short))
40592 rm -f conftest.$ac_objext
40593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40594 (eval $ac_compile) 2>conftest.er1
40596 grep -v '^ *+' conftest.er1 >conftest.err
40598 cat conftest.err >&5
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); } &&
40601 { ac_try='test -z "$ac_c_werror_flag"
40602 || test ! -s conftest.err'
40603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40604 (eval $ac_try) 2>&5
40606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607 (exit $ac_status); }; } &&
40608 { ac_try='test -s conftest.$ac_objext'
40609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40610 (eval $ac_try) 2>&5
40612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40613 (exit $ac_status); }; }; then
40614 ac_cv_type_short=yes
40616 echo "$as_me: failed program was:" >&5
40617 sed 's/^/| /' conftest.$ac_ext >&5
40619 ac_cv_type_short=no
40621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40623 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40624 echo "${ECHO_T}$ac_cv_type_short" >&6
40626 echo "$as_me:$LINENO: checking size of short" >&5
40627 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40628 if test "${ac_cv_sizeof_short+set}" = set; then
40629 echo $ECHO_N "(cached) $ECHO_C" >&6
40631 if test "$ac_cv_type_short" = yes; then
40632 # The cast to unsigned long works around a bug in the HP C Compiler
40633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40635 # This bug is HP SR number 8606223364.
40636 if test "$cross_compiling" = yes; then
40637 # Depending upon the size, compute the lo and hi bounds.
40638 cat >conftest.$ac_ext <<_ACEOF
40641 cat confdefs.h >>conftest.$ac_ext
40642 cat >>conftest.$ac_ext <<_ACEOF
40643 /* end confdefs.h. */
40644 $ac_includes_default
40648 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40655 rm -f conftest.$ac_objext
40656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40657 (eval $ac_compile) 2>conftest.er1
40659 grep -v '^ *+' conftest.er1 >conftest.err
40661 cat conftest.err >&5
40662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663 (exit $ac_status); } &&
40664 { ac_try='test -z "$ac_c_werror_flag"
40665 || test ! -s conftest.err'
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; } &&
40671 { ac_try='test -s conftest.$ac_objext'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40679 cat >conftest.$ac_ext <<_ACEOF
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h. */
40685 $ac_includes_default
40689 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40696 rm -f conftest.$ac_objext
40697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40698 (eval $ac_compile) 2>conftest.er1
40700 grep -v '^ *+' conftest.er1 >conftest.err
40702 cat conftest.err >&5
40703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704 (exit $ac_status); } &&
40705 { ac_try='test -z "$ac_c_werror_flag"
40706 || test ! -s conftest.err'
40707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40708 (eval $ac_try) 2>&5
40710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711 (exit $ac_status); }; } &&
40712 { ac_try='test -s conftest.$ac_objext'
40713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40714 (eval $ac_try) 2>&5
40716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717 (exit $ac_status); }; }; then
40718 ac_hi=$ac_mid; break
40720 echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40723 ac_lo=`expr $ac_mid + 1`
40724 if test $ac_lo -le $ac_mid; then
40728 ac_mid=`expr 2 '*' $ac_mid + 1`
40730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40733 echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40736 cat >conftest.$ac_ext <<_ACEOF
40739 cat confdefs.h >>conftest.$ac_ext
40740 cat >>conftest.$ac_ext <<_ACEOF
40741 /* end confdefs.h. */
40742 $ac_includes_default
40746 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40753 rm -f conftest.$ac_objext
40754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40755 (eval $ac_compile) 2>conftest.er1
40757 grep -v '^ *+' conftest.er1 >conftest.err
40759 cat conftest.err >&5
40760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761 (exit $ac_status); } &&
40762 { ac_try='test -z "$ac_c_werror_flag"
40763 || test ! -s conftest.err'
40764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765 (eval $ac_try) 2>&5
40767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768 (exit $ac_status); }; } &&
40769 { ac_try='test -s conftest.$ac_objext'
40770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40771 (eval $ac_try) 2>&5
40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774 (exit $ac_status); }; }; then
40777 cat >conftest.$ac_ext <<_ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h. */
40783 $ac_includes_default
40787 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40794 rm -f conftest.$ac_objext
40795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40796 (eval $ac_compile) 2>conftest.er1
40798 grep -v '^ *+' conftest.er1 >conftest.err
40800 cat conftest.err >&5
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); } &&
40803 { ac_try='test -z "$ac_c_werror_flag"
40804 || test ! -s conftest.err'
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; } &&
40810 { ac_try='test -s conftest.$ac_objext'
40811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812 (eval $ac_try) 2>&5
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); }; }; then
40816 ac_lo=$ac_mid; break
40818 echo "$as_me: failed program was:" >&5
40819 sed 's/^/| /' conftest.$ac_ext >&5
40821 ac_hi=`expr '(' $ac_mid ')' - 1`
40822 if test $ac_mid -le $ac_hi; then
40826 ac_mid=`expr 2 '*' $ac_mid`
40828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40831 echo "$as_me: failed program was:" >&5
40832 sed 's/^/| /' conftest.$ac_ext >&5
40836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40839 # Binary search between lo and hi bounds.
40840 while test "x$ac_lo" != "x$ac_hi"; do
40841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40842 cat >conftest.$ac_ext <<_ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h. */
40848 $ac_includes_default
40852 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40859 rm -f conftest.$ac_objext
40860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40861 (eval $ac_compile) 2>conftest.er1
40863 grep -v '^ *+' conftest.er1 >conftest.err
40865 cat conftest.err >&5
40866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867 (exit $ac_status); } &&
40868 { ac_try='test -z "$ac_c_werror_flag"
40869 || test ! -s conftest.err'
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871 (eval $ac_try) 2>&5
40873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; } &&
40875 { ac_try='test -s conftest.$ac_objext'
40876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40877 (eval $ac_try) 2>&5
40879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40880 (exit $ac_status); }; }; then
40883 echo "$as_me: failed program was:" >&5
40884 sed 's/^/| /' conftest.$ac_ext >&5
40886 ac_lo=`expr '(' $ac_mid ')' + 1`
40888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40891 ?*) ac_cv_sizeof_short=$ac_lo;;
40892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40893 See \`config.log' for more details." >&5
40894 echo "$as_me: error: cannot compute sizeof (short), 77
40895 See \`config.log' for more details." >&2;}
40896 { (exit 1); exit 1; }; } ;;
40899 if test "$cross_compiling" = yes; then
40900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40901 See \`config.log' for more details." >&5
40902 echo "$as_me: error: cannot run test program while cross compiling
40903 See \`config.log' for more details." >&2;}
40904 { (exit 1); exit 1; }; }
40906 cat >conftest.$ac_ext <<_ACEOF
40909 cat confdefs.h >>conftest.$ac_ext
40910 cat >>conftest.$ac_ext <<_ACEOF
40911 /* end confdefs.h. */
40912 $ac_includes_default
40913 long longval () { return (long) (sizeof (short)); }
40914 unsigned long ulongval () { return (long) (sizeof (short)); }
40916 #include <stdlib.h>
40921 FILE *f = fopen ("conftest.val", "w");
40924 if (((long) (sizeof (short))) < 0)
40926 long i = longval ();
40927 if (i != ((long) (sizeof (short))))
40929 fprintf (f, "%ld\n", i);
40933 unsigned long i = ulongval ();
40934 if (i != ((long) (sizeof (short))))
40936 fprintf (f, "%lu\n", i);
40938 exit (ferror (f) || fclose (f) != 0);
40944 rm -f conftest$ac_exeext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40946 (eval $ac_link) 2>&5
40948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40951 (eval $ac_try) 2>&5
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); }; }; then
40955 ac_cv_sizeof_short=`cat conftest.val`
40957 echo "$as_me: program exited with status $ac_status" >&5
40958 echo "$as_me: failed program was:" >&5
40959 sed 's/^/| /' conftest.$ac_ext >&5
40961 ( exit $ac_status )
40962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40963 See \`config.log' for more details." >&5
40964 echo "$as_me: error: cannot compute sizeof (short), 77
40965 See \`config.log' for more details." >&2;}
40966 { (exit 1); exit 1; }; }
40968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40973 ac_cv_sizeof_short=0
40976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40977 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40978 cat >>confdefs.h <<_ACEOF
40979 #define SIZEOF_SHORT $ac_cv_sizeof_short
40983 echo "$as_me:$LINENO: checking for int" >&5
40984 echo $ECHO_N "checking for int... $ECHO_C" >&6
40985 if test "${ac_cv_type_int+set}" = set; then
40986 echo $ECHO_N "(cached) $ECHO_C" >&6
40988 cat >conftest.$ac_ext <<_ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h. */
40994 $ac_includes_default
41006 rm -f conftest.$ac_objext
41007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41008 (eval $ac_compile) 2>conftest.er1
41010 grep -v '^ *+' conftest.er1 >conftest.err
41012 cat conftest.err >&5
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); } &&
41015 { ac_try='test -z "$ac_c_werror_flag"
41016 || test ! -s conftest.err'
41017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41018 (eval $ac_try) 2>&5
41020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021 (exit $ac_status); }; } &&
41022 { ac_try='test -s conftest.$ac_objext'
41023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41024 (eval $ac_try) 2>&5
41026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41027 (exit $ac_status); }; }; then
41030 echo "$as_me: failed program was:" >&5
41031 sed 's/^/| /' conftest.$ac_ext >&5
41035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41037 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41038 echo "${ECHO_T}$ac_cv_type_int" >&6
41040 echo "$as_me:$LINENO: checking size of int" >&5
41041 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41042 if test "${ac_cv_sizeof_int+set}" = set; then
41043 echo $ECHO_N "(cached) $ECHO_C" >&6
41045 if test "$ac_cv_type_int" = yes; then
41046 # The cast to unsigned long works around a bug in the HP C Compiler
41047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41049 # This bug is HP SR number 8606223364.
41050 if test "$cross_compiling" = yes; then
41051 # Depending upon the size, compute the lo and hi bounds.
41052 cat >conftest.$ac_ext <<_ACEOF
41055 cat confdefs.h >>conftest.$ac_ext
41056 cat >>conftest.$ac_ext <<_ACEOF
41057 /* end confdefs.h. */
41058 $ac_includes_default
41062 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41069 rm -f conftest.$ac_objext
41070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41071 (eval $ac_compile) 2>conftest.er1
41073 grep -v '^ *+' conftest.er1 >conftest.err
41075 cat conftest.err >&5
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); } &&
41078 { ac_try='test -z "$ac_c_werror_flag"
41079 || test ! -s conftest.err'
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; } &&
41085 { ac_try='test -s conftest.$ac_objext'
41086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087 (eval $ac_try) 2>&5
41089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090 (exit $ac_status); }; }; then
41093 cat >conftest.$ac_ext <<_ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h. */
41099 $ac_includes_default
41103 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41110 rm -f conftest.$ac_objext
41111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41112 (eval $ac_compile) 2>conftest.er1
41114 grep -v '^ *+' conftest.er1 >conftest.err
41116 cat conftest.err >&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); } &&
41119 { ac_try='test -z "$ac_c_werror_flag"
41120 || test ! -s conftest.err'
41121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122 (eval $ac_try) 2>&5
41124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125 (exit $ac_status); }; } &&
41126 { ac_try='test -s conftest.$ac_objext'
41127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41128 (eval $ac_try) 2>&5
41130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131 (exit $ac_status); }; }; then
41132 ac_hi=$ac_mid; break
41134 echo "$as_me: failed program was:" >&5
41135 sed 's/^/| /' conftest.$ac_ext >&5
41137 ac_lo=`expr $ac_mid + 1`
41138 if test $ac_lo -le $ac_mid; then
41142 ac_mid=`expr 2 '*' $ac_mid + 1`
41144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41147 echo "$as_me: failed program was:" >&5
41148 sed 's/^/| /' conftest.$ac_ext >&5
41150 cat >conftest.$ac_ext <<_ACEOF
41153 cat confdefs.h >>conftest.$ac_ext
41154 cat >>conftest.$ac_ext <<_ACEOF
41155 /* end confdefs.h. */
41156 $ac_includes_default
41160 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41167 rm -f conftest.$ac_objext
41168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41169 (eval $ac_compile) 2>conftest.er1
41171 grep -v '^ *+' conftest.er1 >conftest.err
41173 cat conftest.err >&5
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); } &&
41176 { ac_try='test -z "$ac_c_werror_flag"
41177 || test ! -s conftest.err'
41178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41179 (eval $ac_try) 2>&5
41181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182 (exit $ac_status); }; } &&
41183 { ac_try='test -s conftest.$ac_objext'
41184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41185 (eval $ac_try) 2>&5
41187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188 (exit $ac_status); }; }; then
41191 cat >conftest.$ac_ext <<_ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h. */
41197 $ac_includes_default
41201 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41208 rm -f conftest.$ac_objext
41209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41210 (eval $ac_compile) 2>conftest.er1
41212 grep -v '^ *+' conftest.er1 >conftest.err
41214 cat conftest.err >&5
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); } &&
41217 { ac_try='test -z "$ac_c_werror_flag"
41218 || test ! -s conftest.err'
41219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41220 (eval $ac_try) 2>&5
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); }; } &&
41224 { ac_try='test -s conftest.$ac_objext'
41225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41226 (eval $ac_try) 2>&5
41228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41229 (exit $ac_status); }; }; then
41230 ac_lo=$ac_mid; break
41232 echo "$as_me: failed program was:" >&5
41233 sed 's/^/| /' conftest.$ac_ext >&5
41235 ac_hi=`expr '(' $ac_mid ')' - 1`
41236 if test $ac_mid -le $ac_hi; then
41240 ac_mid=`expr 2 '*' $ac_mid`
41242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41245 echo "$as_me: failed program was:" >&5
41246 sed 's/^/| /' conftest.$ac_ext >&5
41250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41253 # Binary search between lo and hi bounds.
41254 while test "x$ac_lo" != "x$ac_hi"; do
41255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41256 cat >conftest.$ac_ext <<_ACEOF
41259 cat confdefs.h >>conftest.$ac_ext
41260 cat >>conftest.$ac_ext <<_ACEOF
41261 /* end confdefs.h. */
41262 $ac_includes_default
41266 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41273 rm -f conftest.$ac_objext
41274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41275 (eval $ac_compile) 2>conftest.er1
41277 grep -v '^ *+' conftest.er1 >conftest.err
41279 cat conftest.err >&5
41280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281 (exit $ac_status); } &&
41282 { ac_try='test -z "$ac_c_werror_flag"
41283 || test ! -s conftest.err'
41284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41285 (eval $ac_try) 2>&5
41287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288 (exit $ac_status); }; } &&
41289 { ac_try='test -s conftest.$ac_objext'
41290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291 (eval $ac_try) 2>&5
41293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294 (exit $ac_status); }; }; then
41297 echo "$as_me: failed program was:" >&5
41298 sed 's/^/| /' conftest.$ac_ext >&5
41300 ac_lo=`expr '(' $ac_mid ')' + 1`
41302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41305 ?*) ac_cv_sizeof_int=$ac_lo;;
41306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41307 See \`config.log' for more details." >&5
41308 echo "$as_me: error: cannot compute sizeof (int), 77
41309 See \`config.log' for more details." >&2;}
41310 { (exit 1); exit 1; }; } ;;
41313 if test "$cross_compiling" = yes; then
41314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41315 See \`config.log' for more details." >&5
41316 echo "$as_me: error: cannot run test program while cross compiling
41317 See \`config.log' for more details." >&2;}
41318 { (exit 1); exit 1; }; }
41320 cat >conftest.$ac_ext <<_ACEOF
41323 cat confdefs.h >>conftest.$ac_ext
41324 cat >>conftest.$ac_ext <<_ACEOF
41325 /* end confdefs.h. */
41326 $ac_includes_default
41327 long longval () { return (long) (sizeof (int)); }
41328 unsigned long ulongval () { return (long) (sizeof (int)); }
41330 #include <stdlib.h>
41335 FILE *f = fopen ("conftest.val", "w");
41338 if (((long) (sizeof (int))) < 0)
41340 long i = longval ();
41341 if (i != ((long) (sizeof (int))))
41343 fprintf (f, "%ld\n", i);
41347 unsigned long i = ulongval ();
41348 if (i != ((long) (sizeof (int))))
41350 fprintf (f, "%lu\n", i);
41352 exit (ferror (f) || fclose (f) != 0);
41358 rm -f conftest$ac_exeext
41359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41360 (eval $ac_link) 2>&5
41362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365 (eval $ac_try) 2>&5
41367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368 (exit $ac_status); }; }; then
41369 ac_cv_sizeof_int=`cat conftest.val`
41371 echo "$as_me: program exited with status $ac_status" >&5
41372 echo "$as_me: failed program was:" >&5
41373 sed 's/^/| /' conftest.$ac_ext >&5
41375 ( exit $ac_status )
41376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41377 See \`config.log' for more details." >&5
41378 echo "$as_me: error: cannot compute sizeof (int), 77
41379 See \`config.log' for more details." >&2;}
41380 { (exit 1); exit 1; }; }
41382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41391 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41392 cat >>confdefs.h <<_ACEOF
41393 #define SIZEOF_INT $ac_cv_sizeof_int
41397 echo "$as_me:$LINENO: checking for long" >&5
41398 echo $ECHO_N "checking for long... $ECHO_C" >&6
41399 if test "${ac_cv_type_long+set}" = set; then
41400 echo $ECHO_N "(cached) $ECHO_C" >&6
41402 cat >conftest.$ac_ext <<_ACEOF
41405 cat confdefs.h >>conftest.$ac_ext
41406 cat >>conftest.$ac_ext <<_ACEOF
41407 /* end confdefs.h. */
41408 $ac_includes_default
41420 rm -f conftest.$ac_objext
41421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41422 (eval $ac_compile) 2>conftest.er1
41424 grep -v '^ *+' conftest.er1 >conftest.err
41426 cat conftest.err >&5
41427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428 (exit $ac_status); } &&
41429 { ac_try='test -z "$ac_c_werror_flag"
41430 || test ! -s conftest.err'
41431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41432 (eval $ac_try) 2>&5
41434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); }; } &&
41436 { ac_try='test -s conftest.$ac_objext'
41437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41438 (eval $ac_try) 2>&5
41440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441 (exit $ac_status); }; }; then
41442 ac_cv_type_long=yes
41444 echo "$as_me: failed program was:" >&5
41445 sed 's/^/| /' conftest.$ac_ext >&5
41449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41451 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41452 echo "${ECHO_T}$ac_cv_type_long" >&6
41454 echo "$as_me:$LINENO: checking size of long" >&5
41455 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41456 if test "${ac_cv_sizeof_long+set}" = set; then
41457 echo $ECHO_N "(cached) $ECHO_C" >&6
41459 if test "$ac_cv_type_long" = yes; then
41460 # The cast to unsigned long works around a bug in the HP C Compiler
41461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41463 # This bug is HP SR number 8606223364.
41464 if test "$cross_compiling" = yes; then
41465 # Depending upon the size, compute the lo and hi bounds.
41466 cat >conftest.$ac_ext <<_ACEOF
41469 cat confdefs.h >>conftest.$ac_ext
41470 cat >>conftest.$ac_ext <<_ACEOF
41471 /* end confdefs.h. */
41472 $ac_includes_default
41476 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41483 rm -f conftest.$ac_objext
41484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41485 (eval $ac_compile) 2>conftest.er1
41487 grep -v '^ *+' conftest.er1 >conftest.err
41489 cat conftest.err >&5
41490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491 (exit $ac_status); } &&
41492 { ac_try='test -z "$ac_c_werror_flag"
41493 || test ! -s conftest.err'
41494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495 (eval $ac_try) 2>&5
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); }; } &&
41499 { ac_try='test -s conftest.$ac_objext'
41500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501 (eval $ac_try) 2>&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); }; }; then
41507 cat >conftest.$ac_ext <<_ACEOF
41510 cat confdefs.h >>conftest.$ac_ext
41511 cat >>conftest.$ac_ext <<_ACEOF
41512 /* end confdefs.h. */
41513 $ac_includes_default
41517 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41524 rm -f conftest.$ac_objext
41525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41526 (eval $ac_compile) 2>conftest.er1
41528 grep -v '^ *+' conftest.er1 >conftest.err
41530 cat conftest.err >&5
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); } &&
41533 { ac_try='test -z "$ac_c_werror_flag"
41534 || test ! -s conftest.err'
41535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41536 (eval $ac_try) 2>&5
41538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); }; } &&
41540 { ac_try='test -s conftest.$ac_objext'
41541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41542 (eval $ac_try) 2>&5
41544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545 (exit $ac_status); }; }; then
41546 ac_hi=$ac_mid; break
41548 echo "$as_me: failed program was:" >&5
41549 sed 's/^/| /' conftest.$ac_ext >&5
41551 ac_lo=`expr $ac_mid + 1`
41552 if test $ac_lo -le $ac_mid; then
41556 ac_mid=`expr 2 '*' $ac_mid + 1`
41558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41561 echo "$as_me: failed program was:" >&5
41562 sed 's/^/| /' conftest.$ac_ext >&5
41564 cat >conftest.$ac_ext <<_ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h. */
41570 $ac_includes_default
41574 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41581 rm -f conftest.$ac_objext
41582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41583 (eval $ac_compile) 2>conftest.er1
41585 grep -v '^ *+' conftest.er1 >conftest.err
41587 cat conftest.err >&5
41588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589 (exit $ac_status); } &&
41590 { ac_try='test -z "$ac_c_werror_flag"
41591 || test ! -s conftest.err'
41592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593 (eval $ac_try) 2>&5
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); }; } &&
41597 { ac_try='test -s conftest.$ac_objext'
41598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599 (eval $ac_try) 2>&5
41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); }; }; then
41605 cat >conftest.$ac_ext <<_ACEOF
41608 cat confdefs.h >>conftest.$ac_ext
41609 cat >>conftest.$ac_ext <<_ACEOF
41610 /* end confdefs.h. */
41611 $ac_includes_default
41615 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41622 rm -f conftest.$ac_objext
41623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41624 (eval $ac_compile) 2>conftest.er1
41626 grep -v '^ *+' conftest.er1 >conftest.err
41628 cat conftest.err >&5
41629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41630 (exit $ac_status); } &&
41631 { ac_try='test -z "$ac_c_werror_flag"
41632 || test ! -s conftest.err'
41633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41634 (eval $ac_try) 2>&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); }; } &&
41638 { ac_try='test -s conftest.$ac_objext'
41639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640 (eval $ac_try) 2>&5
41642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643 (exit $ac_status); }; }; then
41644 ac_lo=$ac_mid; break
41646 echo "$as_me: failed program was:" >&5
41647 sed 's/^/| /' conftest.$ac_ext >&5
41649 ac_hi=`expr '(' $ac_mid ')' - 1`
41650 if test $ac_mid -le $ac_hi; then
41654 ac_mid=`expr 2 '*' $ac_mid`
41656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41659 echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41667 # Binary search between lo and hi bounds.
41668 while test "x$ac_lo" != "x$ac_hi"; do
41669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41670 cat >conftest.$ac_ext <<_ACEOF
41673 cat confdefs.h >>conftest.$ac_ext
41674 cat >>conftest.$ac_ext <<_ACEOF
41675 /* end confdefs.h. */
41676 $ac_includes_default
41680 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41687 rm -f conftest.$ac_objext
41688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41689 (eval $ac_compile) 2>conftest.er1
41691 grep -v '^ *+' conftest.er1 >conftest.err
41693 cat conftest.err >&5
41694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695 (exit $ac_status); } &&
41696 { ac_try='test -z "$ac_c_werror_flag"
41697 || test ! -s conftest.err'
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; } &&
41703 { ac_try='test -s conftest.$ac_objext'
41704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705 (eval $ac_try) 2>&5
41707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); }; }; then
41711 echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41714 ac_lo=`expr '(' $ac_mid ')' + 1`
41716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41719 ?*) ac_cv_sizeof_long=$ac_lo;;
41720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41721 See \`config.log' for more details." >&5
41722 echo "$as_me: error: cannot compute sizeof (long), 77
41723 See \`config.log' for more details." >&2;}
41724 { (exit 1); exit 1; }; } ;;
41727 if test "$cross_compiling" = yes; then
41728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41729 See \`config.log' for more details." >&5
41730 echo "$as_me: error: cannot run test program while cross compiling
41731 See \`config.log' for more details." >&2;}
41732 { (exit 1); exit 1; }; }
41734 cat >conftest.$ac_ext <<_ACEOF
41737 cat confdefs.h >>conftest.$ac_ext
41738 cat >>conftest.$ac_ext <<_ACEOF
41739 /* end confdefs.h. */
41740 $ac_includes_default
41741 long longval () { return (long) (sizeof (long)); }
41742 unsigned long ulongval () { return (long) (sizeof (long)); }
41744 #include <stdlib.h>
41749 FILE *f = fopen ("conftest.val", "w");
41752 if (((long) (sizeof (long))) < 0)
41754 long i = longval ();
41755 if (i != ((long) (sizeof (long))))
41757 fprintf (f, "%ld\n", i);
41761 unsigned long i = ulongval ();
41762 if (i != ((long) (sizeof (long))))
41764 fprintf (f, "%lu\n", i);
41766 exit (ferror (f) || fclose (f) != 0);
41772 rm -f conftest$ac_exeext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41774 (eval $ac_link) 2>&5
41776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41779 (eval $ac_try) 2>&5
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); }; }; then
41783 ac_cv_sizeof_long=`cat conftest.val`
41785 echo "$as_me: program exited with status $ac_status" >&5
41786 echo "$as_me: failed program was:" >&5
41787 sed 's/^/| /' conftest.$ac_ext >&5
41789 ( exit $ac_status )
41790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41791 See \`config.log' for more details." >&5
41792 echo "$as_me: error: cannot compute sizeof (long), 77
41793 See \`config.log' for more details." >&2;}
41794 { (exit 1); exit 1; }; }
41796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41801 ac_cv_sizeof_long=0
41804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41805 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41806 cat >>confdefs.h <<_ACEOF
41807 #define SIZEOF_LONG $ac_cv_sizeof_long
41811 echo "$as_me:$LINENO: checking for wchar_t" >&5
41812 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41813 if test "${ac_cv_type_wchar_t+set}" = set; then
41814 echo $ECHO_N "(cached) $ECHO_C" >&6
41816 cat >conftest.$ac_ext <<_ACEOF
41819 cat confdefs.h >>conftest.$ac_ext
41820 cat >>conftest.$ac_ext <<_ACEOF
41821 /* end confdefs.h. */
41822 $ac_includes_default
41828 if (sizeof (wchar_t))
41834 rm -f conftest.$ac_objext
41835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41836 (eval $ac_compile) 2>conftest.er1
41838 grep -v '^ *+' conftest.er1 >conftest.err
41840 cat conftest.err >&5
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); } &&
41843 { ac_try='test -z "$ac_c_werror_flag"
41844 || test ! -s conftest.err'
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; } &&
41850 { ac_try='test -s conftest.$ac_objext'
41851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41852 (eval $ac_try) 2>&5
41854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855 (exit $ac_status); }; }; then
41856 ac_cv_type_wchar_t=yes
41858 echo "$as_me: failed program was:" >&5
41859 sed 's/^/| /' conftest.$ac_ext >&5
41861 ac_cv_type_wchar_t=no
41863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41865 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41866 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41868 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41869 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41870 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41871 echo $ECHO_N "(cached) $ECHO_C" >&6
41873 if test "$ac_cv_type_wchar_t" = yes; then
41874 # The cast to unsigned long works around a bug in the HP C Compiler
41875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41877 # This bug is HP SR number 8606223364.
41878 if test "$cross_compiling" = yes; then
41879 # Depending upon the size, compute the lo and hi bounds.
41880 cat >conftest.$ac_ext <<_ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h. */
41886 $ac_includes_default
41890 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41897 rm -f conftest.$ac_objext
41898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41899 (eval $ac_compile) 2>conftest.er1
41901 grep -v '^ *+' conftest.er1 >conftest.err
41903 cat conftest.err >&5
41904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41905 (exit $ac_status); } &&
41906 { ac_try='test -z "$ac_c_werror_flag"
41907 || test ! -s conftest.err'
41908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41909 (eval $ac_try) 2>&5
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); }; } &&
41913 { ac_try='test -s conftest.$ac_objext'
41914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41915 (eval $ac_try) 2>&5
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); }; }; then
41921 cat >conftest.$ac_ext <<_ACEOF
41924 cat confdefs.h >>conftest.$ac_ext
41925 cat >>conftest.$ac_ext <<_ACEOF
41926 /* end confdefs.h. */
41927 $ac_includes_default
41931 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41938 rm -f conftest.$ac_objext
41939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41940 (eval $ac_compile) 2>conftest.er1
41942 grep -v '^ *+' conftest.er1 >conftest.err
41944 cat conftest.err >&5
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); } &&
41947 { ac_try='test -z "$ac_c_werror_flag"
41948 || test ! -s conftest.err'
41949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950 (eval $ac_try) 2>&5
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); }; } &&
41954 { ac_try='test -s conftest.$ac_objext'
41955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956 (eval $ac_try) 2>&5
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); }; }; then
41960 ac_hi=$ac_mid; break
41962 echo "$as_me: failed program was:" >&5
41963 sed 's/^/| /' conftest.$ac_ext >&5
41965 ac_lo=`expr $ac_mid + 1`
41966 if test $ac_lo -le $ac_mid; then
41970 ac_mid=`expr 2 '*' $ac_mid + 1`
41972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41975 echo "$as_me: failed program was:" >&5
41976 sed 's/^/| /' conftest.$ac_ext >&5
41978 cat >conftest.$ac_ext <<_ACEOF
41981 cat confdefs.h >>conftest.$ac_ext
41982 cat >>conftest.$ac_ext <<_ACEOF
41983 /* end confdefs.h. */
41984 $ac_includes_default
41988 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41995 rm -f conftest.$ac_objext
41996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41997 (eval $ac_compile) 2>conftest.er1
41999 grep -v '^ *+' conftest.er1 >conftest.err
42001 cat conftest.err >&5
42002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003 (exit $ac_status); } &&
42004 { ac_try='test -z "$ac_c_werror_flag"
42005 || test ! -s conftest.err'
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; } &&
42011 { ac_try='test -s conftest.$ac_objext'
42012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013 (eval $ac_try) 2>&5
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); }; }; then
42019 cat >conftest.$ac_ext <<_ACEOF
42022 cat confdefs.h >>conftest.$ac_ext
42023 cat >>conftest.$ac_ext <<_ACEOF
42024 /* end confdefs.h. */
42025 $ac_includes_default
42029 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42036 rm -f conftest.$ac_objext
42037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42038 (eval $ac_compile) 2>conftest.er1
42040 grep -v '^ *+' conftest.er1 >conftest.err
42042 cat conftest.err >&5
42043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044 (exit $ac_status); } &&
42045 { ac_try='test -z "$ac_c_werror_flag"
42046 || test ! -s conftest.err'
42047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048 (eval $ac_try) 2>&5
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); }; } &&
42052 { ac_try='test -s conftest.$ac_objext'
42053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42054 (eval $ac_try) 2>&5
42056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057 (exit $ac_status); }; }; then
42058 ac_lo=$ac_mid; break
42060 echo "$as_me: failed program was:" >&5
42061 sed 's/^/| /' conftest.$ac_ext >&5
42063 ac_hi=`expr '(' $ac_mid ')' - 1`
42064 if test $ac_mid -le $ac_hi; then
42068 ac_mid=`expr 2 '*' $ac_mid`
42070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42073 echo "$as_me: failed program was:" >&5
42074 sed 's/^/| /' conftest.$ac_ext >&5
42078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42081 # Binary search between lo and hi bounds.
42082 while test "x$ac_lo" != "x$ac_hi"; do
42083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42084 cat >conftest.$ac_ext <<_ACEOF
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h. */
42090 $ac_includes_default
42094 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42101 rm -f conftest.$ac_objext
42102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42103 (eval $ac_compile) 2>conftest.er1
42105 grep -v '^ *+' conftest.er1 >conftest.err
42107 cat conftest.err >&5
42108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109 (exit $ac_status); } &&
42110 { ac_try='test -z "$ac_c_werror_flag"
42111 || test ! -s conftest.err'
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; } &&
42117 { ac_try='test -s conftest.$ac_objext'
42118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42119 (eval $ac_try) 2>&5
42121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42122 (exit $ac_status); }; }; then
42125 echo "$as_me: failed program was:" >&5
42126 sed 's/^/| /' conftest.$ac_ext >&5
42128 ac_lo=`expr '(' $ac_mid ')' + 1`
42130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42133 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42135 See \`config.log' for more details." >&5
42136 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42137 See \`config.log' for more details." >&2;}
42138 { (exit 1); exit 1; }; } ;;
42141 if test "$cross_compiling" = yes; then
42142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42143 See \`config.log' for more details." >&5
42144 echo "$as_me: error: cannot run test program while cross compiling
42145 See \`config.log' for more details." >&2;}
42146 { (exit 1); exit 1; }; }
42148 cat >conftest.$ac_ext <<_ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h. */
42154 $ac_includes_default
42155 long longval () { return (long) (sizeof (wchar_t)); }
42156 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42158 #include <stdlib.h>
42163 FILE *f = fopen ("conftest.val", "w");
42166 if (((long) (sizeof (wchar_t))) < 0)
42168 long i = longval ();
42169 if (i != ((long) (sizeof (wchar_t))))
42171 fprintf (f, "%ld\n", i);
42175 unsigned long i = ulongval ();
42176 if (i != ((long) (sizeof (wchar_t))))
42178 fprintf (f, "%lu\n", i);
42180 exit (ferror (f) || fclose (f) != 0);
42186 rm -f conftest$ac_exeext
42187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42188 (eval $ac_link) 2>&5
42190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42193 (eval $ac_try) 2>&5
42195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42196 (exit $ac_status); }; }; then
42197 ac_cv_sizeof_wchar_t=`cat conftest.val`
42199 echo "$as_me: program exited with status $ac_status" >&5
42200 echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42203 ( exit $ac_status )
42204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42205 See \`config.log' for more details." >&5
42206 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42207 See \`config.log' for more details." >&2;}
42208 { (exit 1); exit 1; }; }
42210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42215 ac_cv_sizeof_wchar_t=0
42218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42219 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42220 cat >>confdefs.h <<_ACEOF
42221 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42226 if test "$ac_cv_sizeof_int" -lt 4 ; then
42227 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42228 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42231 cat >>confdefs.h <<\_ACEOF
42232 #define LBER_INT_T long
42237 cat >>confdefs.h <<\_ACEOF
42238 #define LBER_INT_T int
42244 cat >>confdefs.h <<\_ACEOF
42245 #define LBER_LEN_T long
42249 cat >>confdefs.h <<\_ACEOF
42250 #define LBER_SOCKET_T int
42254 cat >>confdefs.h <<\_ACEOF
42255 #define LBER_TAG_T long
42259 echo "$as_me:$LINENO: checking for working memcmp" >&5
42260 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42261 if test "${ac_cv_func_memcmp_working+set}" = set; then
42262 echo $ECHO_N "(cached) $ECHO_C" >&6
42264 if test "$cross_compiling" = yes; then
42265 ac_cv_func_memcmp_working=no
42267 cat >conftest.$ac_ext <<_ACEOF
42270 cat confdefs.h >>conftest.$ac_ext
42271 cat >>conftest.$ac_ext <<_ACEOF
42272 /* end confdefs.h. */
42273 $ac_includes_default
42278 /* Some versions of memcmp are not 8-bit clean. */
42279 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42280 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42283 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42284 or more and with at least one buffer not starting on a 4-byte boundary.
42285 William Lewis provided this test program. */
42290 for (i = 0; i < 4; i++)
42294 strcpy (a, "--------01111111");
42295 strcpy (b, "--------10000000");
42296 if (memcmp (a, b, 16) >= 0)
42306 rm -f conftest$ac_exeext
42307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42308 (eval $ac_link) 2>&5
42310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313 (eval $ac_try) 2>&5
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); }; }; then
42317 ac_cv_func_memcmp_working=yes
42319 echo "$as_me: program exited with status $ac_status" >&5
42320 echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42323 ( exit $ac_status )
42324 ac_cv_func_memcmp_working=no
42326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42329 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42330 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42331 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42332 "memcmp.$ac_objext" | \
42333 *" memcmp.$ac_objext" | \
42334 "memcmp.$ac_objext "* | \
42335 *" memcmp.$ac_objext "* ) ;;
42336 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42341 if test $ac_cv_func_memcmp_working = no ; then
42343 cat >>confdefs.h <<\_ACEOF
42344 #define NEED_MEMCMP_REPLACEMENT 1
42350 for ac_func in strftime
42352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42353 echo "$as_me:$LINENO: checking for $ac_func" >&5
42354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42355 if eval "test \"\${$as_ac_var+set}\" = set"; then
42356 echo $ECHO_N "(cached) $ECHO_C" >&6
42358 cat >conftest.$ac_ext <<_ACEOF
42361 cat confdefs.h >>conftest.$ac_ext
42362 cat >>conftest.$ac_ext <<_ACEOF
42363 /* end confdefs.h. */
42364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42366 #define $ac_func innocuous_$ac_func
42368 /* System header to define __stub macros and hopefully few prototypes,
42369 which can conflict with char $ac_func (); below.
42370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42371 <limits.h> exists even on freestanding compilers. */
42374 # include <limits.h>
42376 # include <assert.h>
42381 /* Override any gcc2 internal prototype to avoid an error. */
42386 /* We use char because int might match the return type of a gcc2
42387 builtin and then its argument prototype would still apply. */
42389 /* The GNU C library defines this for functions which it implements
42390 to always fail with ENOSYS. Some functions are actually named
42391 something starting with __ and the normal name is an alias. */
42392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42395 char (*f) () = $ac_func;
42404 return f != $ac_func;
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42411 (eval $ac_link) 2>conftest.er1
42413 grep -v '^ *+' conftest.er1 >conftest.err
42415 cat conftest.err >&5
42416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417 (exit $ac_status); } &&
42418 { ac_try='test -z "$ac_c_werror_flag"
42419 || test ! -s conftest.err'
42420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42421 (eval $ac_try) 2>&5
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); }; } &&
42425 { ac_try='test -s conftest$ac_exeext'
42426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427 (eval $ac_try) 2>&5
42429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); }; }; then
42431 eval "$as_ac_var=yes"
42433 echo "$as_me: failed program was:" >&5
42434 sed 's/^/| /' conftest.$ac_ext >&5
42436 eval "$as_ac_var=no"
42438 rm -f conftest.err conftest.$ac_objext \
42439 conftest$ac_exeext conftest.$ac_ext
42441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42443 if test `eval echo '${'$as_ac_var'}'` = yes; then
42444 cat >>confdefs.h <<_ACEOF
42445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42449 # strftime is in -lintl on SCO UNIX.
42450 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42451 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42452 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42453 echo $ECHO_N "(cached) $ECHO_C" >&6
42455 ac_check_lib_save_LIBS=$LIBS
42456 LIBS="-lintl $LIBS"
42457 cat >conftest.$ac_ext <<_ACEOF
42460 cat confdefs.h >>conftest.$ac_ext
42461 cat >>conftest.$ac_ext <<_ACEOF
42462 /* end confdefs.h. */
42464 /* Override any gcc2 internal prototype to avoid an error. */
42468 /* We use char because int might match the return type of a gcc2
42469 builtin and then its argument prototype would still apply. */
42479 rm -f conftest.$ac_objext conftest$ac_exeext
42480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42481 (eval $ac_link) 2>conftest.er1
42483 grep -v '^ *+' conftest.er1 >conftest.err
42485 cat conftest.err >&5
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); } &&
42488 { ac_try='test -z "$ac_c_werror_flag"
42489 || test ! -s conftest.err'
42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491 (eval $ac_try) 2>&5
42493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; } &&
42495 { ac_try='test -s conftest$ac_exeext'
42496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42497 (eval $ac_try) 2>&5
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); }; }; then
42501 ac_cv_lib_intl_strftime=yes
42503 echo "$as_me: failed program was:" >&5
42504 sed 's/^/| /' conftest.$ac_ext >&5
42506 ac_cv_lib_intl_strftime=no
42508 rm -f conftest.err conftest.$ac_objext \
42509 conftest$ac_exeext conftest.$ac_ext
42510 LIBS=$ac_check_lib_save_LIBS
42512 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42513 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42514 if test $ac_cv_lib_intl_strftime = yes; then
42515 cat >>confdefs.h <<\_ACEOF
42516 #define HAVE_STRFTIME 1
42519 LIBS="-lintl $LIBS"
42526 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42527 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42528 if test "${ol_cv_func_inet_aton+set}" = set; then
42529 echo $ECHO_N "(cached) $ECHO_C" >&6
42531 cat >conftest.$ac_ext <<_ACEOF
42534 cat confdefs.h >>conftest.$ac_ext
42535 cat >>conftest.$ac_ext <<_ACEOF
42536 /* end confdefs.h. */
42538 #ifdef HAVE_SYS_TYPES_H
42539 # include <sys/types.h>
42541 #ifdef HAVE_SYS_SOCKET_H
42542 # include <sys/socket.h>
42543 # ifdef HAVE_SYS_SELECT_H
42544 # include <sys/select.h>
42546 # include <netinet/in.h>
42547 # ifdef HAVE_ARPA_INET_H
42548 # include <arpa/inet.h>
42556 int rc = inet_aton( "255.255.255.255", &in );
42561 rm -f conftest.$ac_objext conftest$ac_exeext
42562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42563 (eval $ac_link) 2>conftest.er1
42565 grep -v '^ *+' conftest.er1 >conftest.err
42567 cat conftest.err >&5
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); } &&
42570 { ac_try='test -z "$ac_c_werror_flag"
42571 || test ! -s conftest.err'
42572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573 (eval $ac_try) 2>&5
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); }; } &&
42577 { ac_try='test -s conftest$ac_exeext'
42578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42579 (eval $ac_try) 2>&5
42581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42582 (exit $ac_status); }; }; then
42583 ol_cv_func_inet_aton=yes
42585 echo "$as_me: failed program was:" >&5
42586 sed 's/^/| /' conftest.$ac_ext >&5
42588 ol_cv_func_inet_aton=no
42590 rm -f conftest.err conftest.$ac_objext \
42591 conftest$ac_exeext conftest.$ac_ext
42593 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42594 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42595 if test $ol_cv_func_inet_aton != no; then
42597 cat >>confdefs.h <<\_ACEOF
42598 #define HAVE_INET_ATON 1
42604 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42605 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42606 if test "${ac_cv_func__spawnlp+set}" = set; then
42607 echo $ECHO_N "(cached) $ECHO_C" >&6
42609 cat >conftest.$ac_ext <<_ACEOF
42612 cat confdefs.h >>conftest.$ac_ext
42613 cat >>conftest.$ac_ext <<_ACEOF
42614 /* end confdefs.h. */
42615 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42617 #define _spawnlp innocuous__spawnlp
42619 /* System header to define __stub macros and hopefully few prototypes,
42620 which can conflict with char _spawnlp (); below.
42621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42622 <limits.h> exists even on freestanding compilers. */
42625 # include <limits.h>
42627 # include <assert.h>
42632 /* Override any gcc2 internal prototype to avoid an error. */
42637 /* We use char because int might match the return type of a gcc2
42638 builtin and then its argument prototype would still apply. */
42640 /* The GNU C library defines this for functions which it implements
42641 to always fail with ENOSYS. Some functions are actually named
42642 something starting with __ and the normal name is an alias. */
42643 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42646 char (*f) () = _spawnlp;
42655 return f != _spawnlp;
42660 rm -f conftest.$ac_objext conftest$ac_exeext
42661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42662 (eval $ac_link) 2>conftest.er1
42664 grep -v '^ *+' conftest.er1 >conftest.err
42666 cat conftest.err >&5
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); } &&
42669 { ac_try='test -z "$ac_c_werror_flag"
42670 || test ! -s conftest.err'
42671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42672 (eval $ac_try) 2>&5
42674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675 (exit $ac_status); }; } &&
42676 { ac_try='test -s conftest$ac_exeext'
42677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42678 (eval $ac_try) 2>&5
42680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681 (exit $ac_status); }; }; then
42682 ac_cv_func__spawnlp=yes
42684 echo "$as_me: failed program was:" >&5
42685 sed 's/^/| /' conftest.$ac_ext >&5
42687 ac_cv_func__spawnlp=no
42689 rm -f conftest.err conftest.$ac_objext \
42690 conftest$ac_exeext conftest.$ac_ext
42692 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42693 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42694 if test $ac_cv_func__spawnlp = yes; then
42696 cat >>confdefs.h <<\_ACEOF
42697 #define HAVE_SPAWNLP 1
42703 echo "$as_me:$LINENO: checking for _snprintf" >&5
42704 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42705 if test "${ac_cv_func__snprintf+set}" = set; then
42706 echo $ECHO_N "(cached) $ECHO_C" >&6
42708 cat >conftest.$ac_ext <<_ACEOF
42711 cat confdefs.h >>conftest.$ac_ext
42712 cat >>conftest.$ac_ext <<_ACEOF
42713 /* end confdefs.h. */
42714 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42716 #define _snprintf innocuous__snprintf
42718 /* System header to define __stub macros and hopefully few prototypes,
42719 which can conflict with char _snprintf (); below.
42720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42721 <limits.h> exists even on freestanding compilers. */
42724 # include <limits.h>
42726 # include <assert.h>
42731 /* Override any gcc2 internal prototype to avoid an error. */
42736 /* We use char because int might match the return type of a gcc2
42737 builtin and then its argument prototype would still apply. */
42739 /* The GNU C library defines this for functions which it implements
42740 to always fail with ENOSYS. Some functions are actually named
42741 something starting with __ and the normal name is an alias. */
42742 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42745 char (*f) () = _snprintf;
42754 return f != _snprintf;
42759 rm -f conftest.$ac_objext conftest$ac_exeext
42760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42761 (eval $ac_link) 2>conftest.er1
42763 grep -v '^ *+' conftest.er1 >conftest.err
42765 cat conftest.err >&5
42766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767 (exit $ac_status); } &&
42768 { ac_try='test -z "$ac_c_werror_flag"
42769 || test ! -s conftest.err'
42770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771 (eval $ac_try) 2>&5
42773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774 (exit $ac_status); }; } &&
42775 { ac_try='test -s conftest$ac_exeext'
42776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777 (eval $ac_try) 2>&5
42779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780 (exit $ac_status); }; }; then
42781 ac_cv_func__snprintf=yes
42783 echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42786 ac_cv_func__snprintf=no
42788 rm -f conftest.err conftest.$ac_objext \
42789 conftest$ac_exeext conftest.$ac_ext
42791 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42792 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42793 if test $ac_cv_func__snprintf = yes; then
42794 ac_cv_func_snprintf=yes
42796 cat >>confdefs.h <<\_ACEOF
42797 #define snprintf _snprintf
42804 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42805 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42806 if test "${ac_cv_func__vsnprintf+set}" = set; then
42807 echo $ECHO_N "(cached) $ECHO_C" >&6
42809 cat >conftest.$ac_ext <<_ACEOF
42812 cat confdefs.h >>conftest.$ac_ext
42813 cat >>conftest.$ac_ext <<_ACEOF
42814 /* end confdefs.h. */
42815 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42817 #define _vsnprintf innocuous__vsnprintf
42819 /* System header to define __stub macros and hopefully few prototypes,
42820 which can conflict with char _vsnprintf (); below.
42821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42822 <limits.h> exists even on freestanding compilers. */
42825 # include <limits.h>
42827 # include <assert.h>
42832 /* Override any gcc2 internal prototype to avoid an error. */
42837 /* We use char because int might match the return type of a gcc2
42838 builtin and then its argument prototype would still apply. */
42839 char _vsnprintf ();
42840 /* The GNU C library defines this for functions which it implements
42841 to always fail with ENOSYS. Some functions are actually named
42842 something starting with __ and the normal name is an alias. */
42843 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42846 char (*f) () = _vsnprintf;
42855 return f != _vsnprintf;
42860 rm -f conftest.$ac_objext conftest$ac_exeext
42861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42862 (eval $ac_link) 2>conftest.er1
42864 grep -v '^ *+' conftest.er1 >conftest.err
42866 cat conftest.err >&5
42867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868 (exit $ac_status); } &&
42869 { ac_try='test -z "$ac_c_werror_flag"
42870 || test ! -s conftest.err'
42871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872 (eval $ac_try) 2>&5
42874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875 (exit $ac_status); }; } &&
42876 { ac_try='test -s conftest$ac_exeext'
42877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878 (eval $ac_try) 2>&5
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); }; }; then
42882 ac_cv_func__vsnprintf=yes
42884 echo "$as_me: failed program was:" >&5
42885 sed 's/^/| /' conftest.$ac_ext >&5
42887 ac_cv_func__vsnprintf=no
42889 rm -f conftest.err conftest.$ac_objext \
42890 conftest$ac_exeext conftest.$ac_ext
42892 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42893 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42894 if test $ac_cv_func__vsnprintf = yes; then
42895 ac_cv_func_vsnprintf=yes
42897 cat >>confdefs.h <<\_ACEOF
42898 #define vsnprintf _vsnprintf
42906 for ac_func in vprintf
42908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42909 echo "$as_me:$LINENO: checking for $ac_func" >&5
42910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42911 if eval "test \"\${$as_ac_var+set}\" = set"; then
42912 echo $ECHO_N "(cached) $ECHO_C" >&6
42914 cat >conftest.$ac_ext <<_ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h. */
42920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42922 #define $ac_func innocuous_$ac_func
42924 /* System header to define __stub macros and hopefully few prototypes,
42925 which can conflict with char $ac_func (); below.
42926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42927 <limits.h> exists even on freestanding compilers. */
42930 # include <limits.h>
42932 # include <assert.h>
42937 /* Override any gcc2 internal prototype to avoid an error. */
42942 /* We use char because int might match the return type of a gcc2
42943 builtin and then its argument prototype would still apply. */
42945 /* The GNU C library defines this for functions which it implements
42946 to always fail with ENOSYS. Some functions are actually named
42947 something starting with __ and the normal name is an alias. */
42948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42951 char (*f) () = $ac_func;
42960 return f != $ac_func;
42965 rm -f conftest.$ac_objext conftest$ac_exeext
42966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42967 (eval $ac_link) 2>conftest.er1
42969 grep -v '^ *+' conftest.er1 >conftest.err
42971 cat conftest.err >&5
42972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973 (exit $ac_status); } &&
42974 { ac_try='test -z "$ac_c_werror_flag"
42975 || test ! -s conftest.err'
42976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42977 (eval $ac_try) 2>&5
42979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980 (exit $ac_status); }; } &&
42981 { ac_try='test -s conftest$ac_exeext'
42982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42983 (eval $ac_try) 2>&5
42985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); }; }; then
42987 eval "$as_ac_var=yes"
42989 echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42992 eval "$as_ac_var=no"
42994 rm -f conftest.err conftest.$ac_objext \
42995 conftest$ac_exeext conftest.$ac_ext
42997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42999 if test `eval echo '${'$as_ac_var'}'` = yes; then
43000 cat >>confdefs.h <<_ACEOF
43001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43004 echo "$as_me:$LINENO: checking for _doprnt" >&5
43005 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43006 if test "${ac_cv_func__doprnt+set}" = set; then
43007 echo $ECHO_N "(cached) $ECHO_C" >&6
43009 cat >conftest.$ac_ext <<_ACEOF
43012 cat confdefs.h >>conftest.$ac_ext
43013 cat >>conftest.$ac_ext <<_ACEOF
43014 /* end confdefs.h. */
43015 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43017 #define _doprnt innocuous__doprnt
43019 /* System header to define __stub macros and hopefully few prototypes,
43020 which can conflict with char _doprnt (); below.
43021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43022 <limits.h> exists even on freestanding compilers. */
43025 # include <limits.h>
43027 # include <assert.h>
43032 /* Override any gcc2 internal prototype to avoid an error. */
43037 /* We use char because int might match the return type of a gcc2
43038 builtin and then its argument prototype would still apply. */
43040 /* The GNU C library defines this for functions which it implements
43041 to always fail with ENOSYS. Some functions are actually named
43042 something starting with __ and the normal name is an alias. */
43043 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43046 char (*f) () = _doprnt;
43055 return f != _doprnt;
43060 rm -f conftest.$ac_objext conftest$ac_exeext
43061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43062 (eval $ac_link) 2>conftest.er1
43064 grep -v '^ *+' conftest.er1 >conftest.err
43066 cat conftest.err >&5
43067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43068 (exit $ac_status); } &&
43069 { ac_try='test -z "$ac_c_werror_flag"
43070 || test ! -s conftest.err'
43071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43072 (eval $ac_try) 2>&5
43074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); }; } &&
43076 { ac_try='test -s conftest$ac_exeext'
43077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43078 (eval $ac_try) 2>&5
43080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081 (exit $ac_status); }; }; then
43082 ac_cv_func__doprnt=yes
43084 echo "$as_me: failed program was:" >&5
43085 sed 's/^/| /' conftest.$ac_ext >&5
43087 ac_cv_func__doprnt=no
43089 rm -f conftest.err conftest.$ac_objext \
43090 conftest$ac_exeext conftest.$ac_ext
43092 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43093 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43094 if test $ac_cv_func__doprnt = yes; then
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_DOPRNT 1
43107 if test $ac_cv_func_vprintf = yes ; then
43110 for ac_func in snprintf vsnprintf
43112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43113 echo "$as_me:$LINENO: checking for $ac_func" >&5
43114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43115 if eval "test \"\${$as_ac_var+set}\" = set"; then
43116 echo $ECHO_N "(cached) $ECHO_C" >&6
43118 cat >conftest.$ac_ext <<_ACEOF
43121 cat confdefs.h >>conftest.$ac_ext
43122 cat >>conftest.$ac_ext <<_ACEOF
43123 /* end confdefs.h. */
43124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43126 #define $ac_func innocuous_$ac_func
43128 /* System header to define __stub macros and hopefully few prototypes,
43129 which can conflict with char $ac_func (); below.
43130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43131 <limits.h> exists even on freestanding compilers. */
43134 # include <limits.h>
43136 # include <assert.h>
43141 /* Override any gcc2 internal prototype to avoid an error. */
43146 /* We use char because int might match the return type of a gcc2
43147 builtin and then its argument prototype would still apply. */
43149 /* The GNU C library defines this for functions which it implements
43150 to always fail with ENOSYS. Some functions are actually named
43151 something starting with __ and the normal name is an alias. */
43152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43155 char (*f) () = $ac_func;
43164 return f != $ac_func;
43169 rm -f conftest.$ac_objext conftest$ac_exeext
43170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43171 (eval $ac_link) 2>conftest.er1
43173 grep -v '^ *+' conftest.er1 >conftest.err
43175 cat conftest.err >&5
43176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43177 (exit $ac_status); } &&
43178 { ac_try='test -z "$ac_c_werror_flag"
43179 || test ! -s conftest.err'
43180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43181 (eval $ac_try) 2>&5
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); }; } &&
43185 { ac_try='test -s conftest$ac_exeext'
43186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43187 (eval $ac_try) 2>&5
43189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190 (exit $ac_status); }; }; then
43191 eval "$as_ac_var=yes"
43193 echo "$as_me: failed program was:" >&5
43194 sed 's/^/| /' conftest.$ac_ext >&5
43196 eval "$as_ac_var=no"
43198 rm -f conftest.err conftest.$ac_objext \
43199 conftest$ac_exeext conftest.$ac_ext
43201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43203 if test `eval echo '${'$as_ac_var'}'` = yes; then
43204 cat >>confdefs.h <<_ACEOF
43205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43325 echo "$as_me:$LINENO: checking for $ac_func" >&5
43326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43327 if eval "test \"\${$as_ac_var+set}\" = set"; then
43328 echo $ECHO_N "(cached) $ECHO_C" >&6
43330 cat >conftest.$ac_ext <<_ACEOF
43333 cat confdefs.h >>conftest.$ac_ext
43334 cat >>conftest.$ac_ext <<_ACEOF
43335 /* end confdefs.h. */
43336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43338 #define $ac_func innocuous_$ac_func
43340 /* System header to define __stub macros and hopefully few prototypes,
43341 which can conflict with char $ac_func (); below.
43342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43343 <limits.h> exists even on freestanding compilers. */
43346 # include <limits.h>
43348 # include <assert.h>
43353 /* Override any gcc2 internal prototype to avoid an error. */
43358 /* We use char because int might match the return type of a gcc2
43359 builtin and then its argument prototype would still apply. */
43361 /* The GNU C library defines this for functions which it implements
43362 to always fail with ENOSYS. Some functions are actually named
43363 something starting with __ and the normal name is an alias. */
43364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43367 char (*f) () = $ac_func;
43376 return f != $ac_func;
43381 rm -f conftest.$ac_objext conftest$ac_exeext
43382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43383 (eval $ac_link) 2>conftest.er1
43385 grep -v '^ *+' conftest.er1 >conftest.err
43387 cat conftest.err >&5
43388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389 (exit $ac_status); } &&
43390 { ac_try='test -z "$ac_c_werror_flag"
43391 || test ! -s conftest.err'
43392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43393 (eval $ac_try) 2>&5
43395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43396 (exit $ac_status); }; } &&
43397 { ac_try='test -s conftest$ac_exeext'
43398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43399 (eval $ac_try) 2>&5
43401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402 (exit $ac_status); }; }; then
43403 eval "$as_ac_var=yes"
43405 echo "$as_me: failed program was:" >&5
43406 sed 's/^/| /' conftest.$ac_ext >&5
43408 eval "$as_ac_var=no"
43410 rm -f conftest.err conftest.$ac_objext \
43411 conftest$ac_exeext conftest.$ac_ext
43413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43415 if test `eval echo '${'$as_ac_var'}'` = yes; then
43416 cat >>confdefs.h <<_ACEOF
43417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43426 for ac_func in getopt getpeereid
43428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43429 echo "$as_me:$LINENO: checking for $ac_func" >&5
43430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43431 if eval "test \"\${$as_ac_var+set}\" = set"; then
43432 echo $ECHO_N "(cached) $ECHO_C" >&6
43434 cat >conftest.$ac_ext <<_ACEOF
43437 cat confdefs.h >>conftest.$ac_ext
43438 cat >>conftest.$ac_ext <<_ACEOF
43439 /* end confdefs.h. */
43440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43442 #define $ac_func innocuous_$ac_func
43444 /* System header to define __stub macros and hopefully few prototypes,
43445 which can conflict with char $ac_func (); below.
43446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43447 <limits.h> exists even on freestanding compilers. */
43450 # include <limits.h>
43452 # include <assert.h>
43457 /* Override any gcc2 internal prototype to avoid an error. */
43462 /* We use char because int might match the return type of a gcc2
43463 builtin and then its argument prototype would still apply. */
43465 /* The GNU C library defines this for functions which it implements
43466 to always fail with ENOSYS. Some functions are actually named
43467 something starting with __ and the normal name is an alias. */
43468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43471 char (*f) () = $ac_func;
43480 return f != $ac_func;
43485 rm -f conftest.$ac_objext conftest$ac_exeext
43486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43487 (eval $ac_link) 2>conftest.er1
43489 grep -v '^ *+' conftest.er1 >conftest.err
43491 cat conftest.err >&5
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); } &&
43494 { ac_try='test -z "$ac_c_werror_flag"
43495 || test ! -s conftest.err'
43496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43497 (eval $ac_try) 2>&5
43499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500 (exit $ac_status); }; } &&
43501 { ac_try='test -s conftest$ac_exeext'
43502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503 (eval $ac_try) 2>&5
43505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506 (exit $ac_status); }; }; then
43507 eval "$as_ac_var=yes"
43509 echo "$as_me: failed program was:" >&5
43510 sed 's/^/| /' conftest.$ac_ext >&5
43512 eval "$as_ac_var=no"
43514 rm -f conftest.err conftest.$ac_objext \
43515 conftest$ac_exeext conftest.$ac_ext
43517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43519 if test `eval echo '${'$as_ac_var'}'` = yes; then
43520 cat >>confdefs.h <<_ACEOF
43521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43526 "$ac_func.$ac_objext" | \
43527 *" $ac_func.$ac_objext" | \
43528 "$ac_func.$ac_objext "* | \
43529 *" $ac_func.$ac_objext "* ) ;;
43530 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43538 if test "$ac_cv_func_getopt" != yes; then
43539 LIBSRCS="$LIBSRCS getopt.c"
43542 if test "$ac_cv_func_getpeereid" != yes; then
43544 for ac_func in getpeerucred
43546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43547 echo "$as_me:$LINENO: checking for $ac_func" >&5
43548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43549 if eval "test \"\${$as_ac_var+set}\" = set"; then
43550 echo $ECHO_N "(cached) $ECHO_C" >&6
43552 cat >conftest.$ac_ext <<_ACEOF
43555 cat confdefs.h >>conftest.$ac_ext
43556 cat >>conftest.$ac_ext <<_ACEOF
43557 /* end confdefs.h. */
43558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43560 #define $ac_func innocuous_$ac_func
43562 /* System header to define __stub macros and hopefully few prototypes,
43563 which can conflict with char $ac_func (); below.
43564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43565 <limits.h> exists even on freestanding compilers. */
43568 # include <limits.h>
43570 # include <assert.h>
43575 /* Override any gcc2 internal prototype to avoid an error. */
43580 /* We use char because int might match the return type of a gcc2
43581 builtin and then its argument prototype would still apply. */
43583 /* The GNU C library defines this for functions which it implements
43584 to always fail with ENOSYS. Some functions are actually named
43585 something starting with __ and the normal name is an alias. */
43586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43589 char (*f) () = $ac_func;
43598 return f != $ac_func;
43603 rm -f conftest.$ac_objext conftest$ac_exeext
43604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43605 (eval $ac_link) 2>conftest.er1
43607 grep -v '^ *+' conftest.er1 >conftest.err
43609 cat conftest.err >&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); } &&
43612 { ac_try='test -z "$ac_c_werror_flag"
43613 || test ! -s conftest.err'
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; } &&
43619 { ac_try='test -s conftest$ac_exeext'
43620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621 (eval $ac_try) 2>&5
43623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624 (exit $ac_status); }; }; then
43625 eval "$as_ac_var=yes"
43627 echo "$as_me: failed program was:" >&5
43628 sed 's/^/| /' conftest.$ac_ext >&5
43630 eval "$as_ac_var=no"
43632 rm -f conftest.err conftest.$ac_objext \
43633 conftest$ac_exeext conftest.$ac_ext
43635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43637 if test `eval echo '${'$as_ac_var'}'` = yes; then
43638 cat >>confdefs.h <<_ACEOF
43639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43645 if test "$ac_cv_func_getpeerucred" != yes ; then
43646 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43647 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43648 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43649 echo $ECHO_N "(cached) $ECHO_C" >&6
43651 cat >conftest.$ac_ext <<_ACEOF
43654 cat confdefs.h >>conftest.$ac_ext
43655 cat >>conftest.$ac_ext <<_ACEOF
43656 /* end confdefs.h. */
43657 $ac_includes_default
43658 #ifdef HAVE_SYS_SOCKET_H
43659 #include <sys/socket.h>
43665 static struct msghdr ac_aggr;
43666 if (ac_aggr.msg_accrightslen)
43672 rm -f conftest.$ac_objext
43673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43674 (eval $ac_compile) 2>conftest.er1
43676 grep -v '^ *+' conftest.er1 >conftest.err
43678 cat conftest.err >&5
43679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680 (exit $ac_status); } &&
43681 { ac_try='test -z "$ac_c_werror_flag"
43682 || test ! -s conftest.err'
43683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684 (eval $ac_try) 2>&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; } &&
43688 { ac_try='test -s conftest.$ac_objext'
43689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43690 (eval $ac_try) 2>&5
43692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693 (exit $ac_status); }; }; then
43694 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43696 echo "$as_me: failed program was:" >&5
43697 sed 's/^/| /' conftest.$ac_ext >&5
43699 cat >conftest.$ac_ext <<_ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h. */
43705 $ac_includes_default
43706 #ifdef HAVE_SYS_SOCKET_H
43707 #include <sys/socket.h>
43713 static struct msghdr ac_aggr;
43714 if (sizeof ac_aggr.msg_accrightslen)
43720 rm -f conftest.$ac_objext
43721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43722 (eval $ac_compile) 2>conftest.er1
43724 grep -v '^ *+' conftest.er1 >conftest.err
43726 cat conftest.err >&5
43727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43728 (exit $ac_status); } &&
43729 { ac_try='test -z "$ac_c_werror_flag"
43730 || test ! -s conftest.err'
43731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43732 (eval $ac_try) 2>&5
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); }; } &&
43736 { ac_try='test -s conftest.$ac_objext'
43737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43738 (eval $ac_try) 2>&5
43740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741 (exit $ac_status); }; }; then
43742 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43744 echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43747 ac_cv_member_struct_msghdr_msg_accrightslen=no
43749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43754 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43755 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43757 cat >>confdefs.h <<_ACEOF
43758 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43764 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43765 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43766 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43767 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43768 echo $ECHO_N "(cached) $ECHO_C" >&6
43770 cat >conftest.$ac_ext <<_ACEOF
43773 cat confdefs.h >>conftest.$ac_ext
43774 cat >>conftest.$ac_ext <<_ACEOF
43775 /* end confdefs.h. */
43776 $ac_includes_default
43777 #ifdef HAVE_SYS_SOCKET_H
43778 #include <sys/socket.h>
43784 static struct msghdr ac_aggr;
43785 if (ac_aggr.msg_control)
43791 rm -f conftest.$ac_objext
43792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43793 (eval $ac_compile) 2>conftest.er1
43795 grep -v '^ *+' conftest.er1 >conftest.err
43797 cat conftest.err >&5
43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799 (exit $ac_status); } &&
43800 { ac_try='test -z "$ac_c_werror_flag"
43801 || test ! -s conftest.err'
43802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803 (eval $ac_try) 2>&5
43805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806 (exit $ac_status); }; } &&
43807 { ac_try='test -s conftest.$ac_objext'
43808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43809 (eval $ac_try) 2>&5
43811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812 (exit $ac_status); }; }; then
43813 ac_cv_member_struct_msghdr_msg_control=yes
43815 echo "$as_me: failed program was:" >&5
43816 sed 's/^/| /' conftest.$ac_ext >&5
43818 cat >conftest.$ac_ext <<_ACEOF
43821 cat confdefs.h >>conftest.$ac_ext
43822 cat >>conftest.$ac_ext <<_ACEOF
43823 /* end confdefs.h. */
43824 $ac_includes_default
43825 #ifdef HAVE_SYS_SOCKET_H
43826 #include <sys/socket.h>
43832 static struct msghdr ac_aggr;
43833 if (sizeof ac_aggr.msg_control)
43839 rm -f conftest.$ac_objext
43840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43841 (eval $ac_compile) 2>conftest.er1
43843 grep -v '^ *+' conftest.er1 >conftest.err
43845 cat conftest.err >&5
43846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847 (exit $ac_status); } &&
43848 { ac_try='test -z "$ac_c_werror_flag"
43849 || test ! -s conftest.err'
43850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43851 (eval $ac_try) 2>&5
43853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854 (exit $ac_status); }; } &&
43855 { ac_try='test -s conftest.$ac_objext'
43856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43857 (eval $ac_try) 2>&5
43859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860 (exit $ac_status); }; }; then
43861 ac_cv_member_struct_msghdr_msg_control=yes
43863 echo "$as_me: failed program was:" >&5
43864 sed 's/^/| /' conftest.$ac_ext >&5
43866 ac_cv_member_struct_msghdr_msg_control=no
43868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43873 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43874 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43876 cat >>confdefs.h <<_ACEOF
43877 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43885 LIBSRCS="$LIBSRCS getpeereid.c"
43888 if test "$ac_cv_func_snprintf" != yes ||
43889 test "$ac_cv_func_vsnprintf" != yes; then
43890 if test "$ac_cv_func_snprintf" != yes; then
43892 cat >>confdefs.h <<\_ACEOF
43893 #define snprintf ber_pvt_snprintf
43897 if test "$ac_cv_func_vsnprintf" != yes; then
43899 cat >>confdefs.h <<\_ACEOF
43900 #define vsnprintf ber_pvt_vsnprintf
43907 if test "$ol_enable_slapi" != no ; then
43909 for ac_header in ltdl.h
43911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43913 echo "$as_me:$LINENO: checking for $ac_header" >&5
43914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43916 echo $ECHO_N "(cached) $ECHO_C" >&6
43918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43921 # Is the header compilable?
43922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43924 cat >conftest.$ac_ext <<_ACEOF
43927 cat confdefs.h >>conftest.$ac_ext
43928 cat >>conftest.$ac_ext <<_ACEOF
43929 /* end confdefs.h. */
43930 $ac_includes_default
43931 #include <$ac_header>
43933 rm -f conftest.$ac_objext
43934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43935 (eval $ac_compile) 2>conftest.er1
43937 grep -v '^ *+' conftest.er1 >conftest.err
43939 cat conftest.err >&5
43940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941 (exit $ac_status); } &&
43942 { ac_try='test -z "$ac_c_werror_flag"
43943 || test ! -s conftest.err'
43944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945 (eval $ac_try) 2>&5
43947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948 (exit $ac_status); }; } &&
43949 { ac_try='test -s conftest.$ac_objext'
43950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43951 (eval $ac_try) 2>&5
43953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954 (exit $ac_status); }; }; then
43955 ac_header_compiler=yes
43957 echo "$as_me: failed program was:" >&5
43958 sed 's/^/| /' conftest.$ac_ext >&5
43960 ac_header_compiler=no
43962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43964 echo "${ECHO_T}$ac_header_compiler" >&6
43966 # Is the header present?
43967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43969 cat >conftest.$ac_ext <<_ACEOF
43972 cat confdefs.h >>conftest.$ac_ext
43973 cat >>conftest.$ac_ext <<_ACEOF
43974 /* end confdefs.h. */
43975 #include <$ac_header>
43977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43980 grep -v '^ *+' conftest.er1 >conftest.err
43982 cat conftest.err >&5
43983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43984 (exit $ac_status); } >/dev/null; then
43985 if test -s conftest.err; then
43986 ac_cpp_err=$ac_c_preproc_warn_flag
43987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43994 if test -z "$ac_cpp_err"; then
43995 ac_header_preproc=yes
43997 echo "$as_me: failed program was:" >&5
43998 sed 's/^/| /' conftest.$ac_ext >&5
44000 ac_header_preproc=no
44002 rm -f conftest.err conftest.$ac_ext
44003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44004 echo "${ECHO_T}$ac_header_preproc" >&6
44006 # So? What about this header?
44007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44013 ac_header_preproc=yes
44016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44030 ## --------------------------------------------- ##
44031 ## Report this to <http://www.openldap.org/its/> ##
44032 ## --------------------------------------------- ##
44035 sed "s/^/$as_me: WARNING: /" >&2
44038 echo "$as_me:$LINENO: checking for $ac_header" >&5
44039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44041 echo $ECHO_N "(cached) $ECHO_C" >&6
44043 eval "$as_ac_Header=\$ac_header_preproc"
44045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44050 cat >>confdefs.h <<_ACEOF
44051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44059 if test $ac_cv_header_ltdl_h != yes ; then
44060 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44061 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44062 { (exit 1); exit 1; }; }
44064 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44065 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44066 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44067 echo $ECHO_N "(cached) $ECHO_C" >&6
44069 ac_check_lib_save_LIBS=$LIBS
44070 LIBS="-lltdl $LIBS"
44071 cat >conftest.$ac_ext <<_ACEOF
44074 cat confdefs.h >>conftest.$ac_ext
44075 cat >>conftest.$ac_ext <<_ACEOF
44076 /* end confdefs.h. */
44078 /* Override any gcc2 internal prototype to avoid an error. */
44082 /* We use char because int might match the return type of a gcc2
44083 builtin and then its argument prototype would still apply. */
44093 rm -f conftest.$ac_objext conftest$ac_exeext
44094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44095 (eval $ac_link) 2>conftest.er1
44097 grep -v '^ *+' conftest.er1 >conftest.err
44099 cat conftest.err >&5
44100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101 (exit $ac_status); } &&
44102 { ac_try='test -z "$ac_c_werror_flag"
44103 || test ! -s conftest.err'
44104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105 (eval $ac_try) 2>&5
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); }; } &&
44109 { ac_try='test -s conftest$ac_exeext'
44110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111 (eval $ac_try) 2>&5
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); }; }; then
44115 ac_cv_lib_ltdl_lt_dlinit=yes
44117 echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44120 ac_cv_lib_ltdl_lt_dlinit=no
44122 rm -f conftest.err conftest.$ac_objext \
44123 conftest$ac_exeext conftest.$ac_ext
44124 LIBS=$ac_check_lib_save_LIBS
44126 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44127 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44128 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44131 LIBSLAPI=libslapi.a
44132 LIBSLAPITOOLS=../libslapi.a
44134 cat >>confdefs.h <<\_ACEOF
44135 #define HAVE_LIBLTDL 1
44140 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44141 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44142 { (exit 1); exit 1; }; }
44147 cat >>confdefs.h <<\_ACEOF
44148 #define LDAP_SLAPI 1
44153 if test "$ol_enable_debug" != no ; then
44154 if test "$ol_enable_debug" = traditional; then
44156 cat >>confdefs.h <<\_ACEOF
44157 #define OLD_DEBUG 1
44162 cat >>confdefs.h <<\_ACEOF
44163 #define LDAP_DEBUG 1
44167 if test "$ol_enable_syslog" = yes ; then
44169 cat >>confdefs.h <<\_ACEOF
44170 #define LDAP_SYSLOG 1
44174 if test "$ol_link_kbind" != no ; then
44176 cat >>confdefs.h <<\_ACEOF
44177 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44181 if test "$ol_enable_proctitle" != no ; then
44183 cat >>confdefs.h <<\_ACEOF
44184 #define LDAP_PROCTITLE 1
44188 if test "$ol_enable_referrals" != no ; then
44190 cat >>confdefs.h <<\_ACEOF
44191 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44195 if test "$ol_enable_local" != no; then
44197 cat >>confdefs.h <<\_ACEOF
44198 #define LDAP_PF_LOCAL 1
44202 if test "$ol_link_ipv6" != no; then
44204 cat >>confdefs.h <<\_ACEOF
44205 #define LDAP_PF_INET6 1
44209 if test "$ol_enable_cleartext" != no ; then
44211 cat >>confdefs.h <<\_ACEOF
44212 #define SLAPD_CLEARTEXT 1
44216 if test "$ol_enable_crypt" != no ; then
44218 cat >>confdefs.h <<\_ACEOF
44219 #define SLAPD_CRYPT 1
44223 if test "$ol_link_spasswd" != no ; then
44225 cat >>confdefs.h <<\_ACEOF
44226 #define SLAPD_SPASSWD 1
44230 if test "$ol_enable_multimaster" != no ; then
44232 cat >>confdefs.h <<\_ACEOF
44233 #define SLAPD_MULTIMASTER 1
44237 if test "$ol_enable_rlookups" != no ; then
44239 cat >>confdefs.h <<\_ACEOF
44240 #define SLAPD_RLOOKUPS 1
44244 if test "$ol_enable_aci" != no ; then
44245 if test $ol_enable_dynacl = no ; then
44246 ol_enable_dynacl=yes
44247 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44248 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44250 if test "$ol_enable_aci" = mod ; then
44251 MFLAG=SLAPD_MOD_DYNAMIC
44252 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44253 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44254 { (exit 1); exit 1; }; }
44256 MFLAG=SLAPD_MOD_STATIC
44258 WITH_ACI_ENABLED=$ol_enable_aci
44260 cat >>confdefs.h <<_ACEOF
44261 #define SLAPD_ACI_ENABLED $MFLAG
44265 WITH_ACI_ENABLED=no
44267 if test "$ol_enable_dynacl" != no ; then
44269 cat >>confdefs.h <<\_ACEOF
44270 #define SLAP_DYNACL 1
44275 if test "$ol_link_modules" != no ; then
44277 cat >>confdefs.h <<\_ACEOF
44278 #define SLAPD_MODULES 1
44282 SLAPD_MODULES_LDFLAGS="-dlopen self"
44286 cat >>confdefs.h <<\_ACEOF
44287 #define SLAPD_MOD_STATIC 1
44291 cat >>confdefs.h <<\_ACEOF
44292 #define SLAPD_MOD_DYNAMIC 2
44296 if test "$ol_enable_bdb" != no ; then
44298 BUILD_BDB=$ol_enable_bdb
44299 if test "$ol_enable_bdb" = mod ; then
44300 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44301 MFLAG=SLAPD_MOD_DYNAMIC
44303 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44304 MFLAG=SLAPD_MOD_STATIC
44307 cat >>confdefs.h <<_ACEOF
44308 #define SLAPD_BDB $MFLAG
44313 if test "$ol_enable_dnssrv" != no ; then
44315 BUILD_DNSSRV=$ol_enable_dnssrv
44316 if test "$ol_enable_dnssrv" = mod ; then
44317 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44318 MFLAG=SLAPD_MOD_DYNAMIC
44320 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44321 MFLAG=SLAPD_MOD_STATIC
44324 cat >>confdefs.h <<_ACEOF
44325 #define SLAPD_DNSSRV $MFLAG
44330 if test "$ol_enable_hdb" != no ; then
44332 BUILD_HDB=$ol_enable_hdb
44333 if test "$ol_enable_hdb" = mod ; then
44334 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44335 MFLAG=SLAPD_MOD_DYNAMIC
44337 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44338 MFLAG=SLAPD_MOD_STATIC
44341 cat >>confdefs.h <<_ACEOF
44342 #define SLAPD_HDB $MFLAG
44347 if test "$ol_enable_ldap" != no ; then
44349 BUILD_LDAP=$ol_enable_ldap
44350 if test "$ol_enable_ldap" = mod ; then
44351 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44352 MFLAG=SLAPD_MOD_DYNAMIC
44354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44355 MFLAG=SLAPD_MOD_STATIC
44358 cat >>confdefs.h <<_ACEOF
44359 #define SLAPD_LDAP $MFLAG
44364 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44366 BUILD_LDBM=$ol_enable_ldbm
44367 if test "$ol_enable_ldbm" = mod ; then
44368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44369 MFLAG=SLAPD_MOD_DYNAMIC
44371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44372 MFLAG=SLAPD_MOD_STATIC
44375 cat >>confdefs.h <<_ACEOF
44376 #define SLAPD_LDBM $MFLAG
44381 if test "$ol_enable_meta" != no ; then
44383 BUILD_META=$ol_enable_meta
44385 if test "$ol_enable_meta" = mod ; then
44386 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44387 MFLAG=SLAPD_MOD_DYNAMIC
44389 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44390 MFLAG=SLAPD_MOD_STATIC
44393 cat >>confdefs.h <<_ACEOF
44394 #define SLAPD_META $MFLAG
44399 if test "$ol_enable_monitor" != no ; then
44401 BUILD_MONITOR=$ol_enable_monitor
44402 if test "$ol_enable_monitor" = mod ; then
44403 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44404 MFLAG=SLAPD_MOD_DYNAMIC
44406 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44407 MFLAG=SLAPD_MOD_STATIC
44410 cat >>confdefs.h <<_ACEOF
44411 #define SLAPD_MONITOR $MFLAG
44416 if test "$ol_enable_null" != no ; then
44418 BUILD_NULL=$ol_enable_null
44419 if test "$ol_enable_null" = mod ; then
44420 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44421 MFLAG=SLAPD_MOD_DYNAMIC
44423 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44424 MFLAG=SLAPD_MOD_STATIC
44427 cat >>confdefs.h <<_ACEOF
44428 #define SLAPD_NULL $MFLAG
44433 if test "$ol_enable_passwd" != no ; then
44435 BUILD_PASSWD=$ol_enable_passwd
44436 if test "$ol_enable_passwd" = mod ; then
44437 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44438 MFLAG=SLAPD_MOD_DYNAMIC
44440 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44441 MFLAG=SLAPD_MOD_STATIC
44444 cat >>confdefs.h <<_ACEOF
44445 #define SLAPD_PASSWD $MFLAG
44450 if test "$ol_link_perl" != no ; then
44452 BUILD_PERL=$ol_enable_perl
44453 if test "$ol_enable_perl" = mod ; then
44454 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44455 MFLAG=SLAPD_MOD_DYNAMIC
44457 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44458 MFLAG=SLAPD_MOD_STATIC
44461 cat >>confdefs.h <<_ACEOF
44462 #define SLAPD_PERL $MFLAG
44467 if test "$ol_enable_relay" != no ; then
44469 BUILD_RELAY=$ol_enable_relay
44470 if test "$ol_enable_relay" = mod ; then
44471 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44472 MFLAG=SLAPD_MOD_DYNAMIC
44474 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44475 MFLAG=SLAPD_MOD_STATIC
44478 cat >>confdefs.h <<_ACEOF
44479 #define SLAPD_RELAY $MFLAG
44484 if test "$ol_enable_shell" != no ; then
44485 if test "$ol_link_threads" != no ; then
44486 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44487 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44490 BUILD_SHELL=$ol_enable_shell
44491 if test "$ol_enable_shell" = mod ; then
44492 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44493 MFLAG=SLAPD_MOD_DYNAMIC
44495 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44496 MFLAG=SLAPD_MOD_STATIC
44499 cat >>confdefs.h <<_ACEOF
44500 #define SLAPD_SHELL $MFLAG
44505 if test "$ol_link_sql" != no ; then
44507 BUILD_SQL=$ol_enable_sql
44508 if test "$ol_enable_sql" = mod; then
44509 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44510 MFLAG=SLAPD_MOD_DYNAMIC
44512 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44513 MFLAG=SLAPD_MOD_STATIC
44516 cat >>confdefs.h <<_ACEOF
44517 #define SLAPD_SQL $MFLAG
44522 if test "$ol_enable_accesslog" != no ; then
44523 BUILD_ACCESSLOG=$ol_enable_accesslog
44524 if test "$ol_enable_accesslog" = mod ; then
44525 MFLAG=SLAPD_MOD_DYNAMIC
44526 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44528 MFLAG=SLAPD_MOD_STATIC
44529 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44532 cat >>confdefs.h <<_ACEOF
44533 #define SLAPD_OVER_ACCESSLOG $MFLAG
44538 if test "$ol_enable_dds" != no ; then
44539 BUILD_DDS=$ol_enable_dds
44540 if test "$ol_enable_dds" = mod ; then
44541 MFLAG=SLAPD_MOD_DYNAMIC
44542 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44544 MFLAG=SLAPD_MOD_STATIC
44545 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44548 cat >>confdefs.h <<_ACEOF
44549 #define SLAPD_OVER_DDS $MFLAG
44554 if test "$ol_enable_denyop" != no ; then
44555 BUILD_DENYOP=$ol_enable_denyop
44556 if test "$ol_enable_denyop" = mod ; then
44557 MFLAG=SLAPD_MOD_DYNAMIC
44558 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44560 MFLAG=SLAPD_MOD_STATIC
44561 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44564 cat >>confdefs.h <<_ACEOF
44565 #define SLAPD_OVER_DENYOP $MFLAG
44570 if test "$ol_enable_dyngroup" != no ; then
44571 BUILD_DYNGROUP=$ol_enable_dyngroup
44572 if test "$ol_enable_dyngroup" = mod ; then
44573 MFLAG=SLAPD_MOD_DYNAMIC
44574 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44576 MFLAG=SLAPD_MOD_STATIC
44577 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44580 cat >>confdefs.h <<_ACEOF
44581 #define SLAPD_OVER_DYNGROUP $MFLAG
44586 if test "$ol_enable_dynlist" != no ; then
44587 BUILD_DYNLIST=$ol_enable_dynlist
44588 if test "$ol_enable_dynlist" = mod ; then
44589 MFLAG=SLAPD_MOD_DYNAMIC
44590 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44592 MFLAG=SLAPD_MOD_STATIC
44593 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44596 cat >>confdefs.h <<_ACEOF
44597 #define SLAPD_OVER_DYNLIST $MFLAG
44602 if test "$ol_enable_lastmod" != no ; then
44603 BUILD_LASTMOD=$ol_enable_lastmod
44604 if test "$ol_enable_lastmod" = mod ; then
44605 MFLAG=SLAPD_MOD_DYNAMIC
44606 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44608 MFLAG=SLAPD_MOD_STATIC
44609 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44612 cat >>confdefs.h <<_ACEOF
44613 #define SLAPD_OVER_LASTMOD $MFLAG
44618 if test "$ol_enable_ppolicy" != no ; then
44619 BUILD_PPOLICY=$ol_enable_ppolicy
44620 if test "$ol_enable_ppolicy" = mod ; then
44621 MFLAG=SLAPD_MOD_DYNAMIC
44622 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44624 MFLAG=SLAPD_MOD_STATIC
44625 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44628 cat >>confdefs.h <<_ACEOF
44629 #define SLAPD_OVER_PPOLICY $MFLAG
44634 if test "$ol_enable_proxycache" != no ; then
44635 BUILD_PROXYCACHE=$ol_enable_proxycache
44636 if test "$ol_enable_proxycache" = mod ; then
44637 MFLAG=SLAPD_MOD_DYNAMIC
44638 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44640 MFLAG=SLAPD_MOD_STATIC
44641 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44644 cat >>confdefs.h <<_ACEOF
44645 #define SLAPD_OVER_PROXYCACHE $MFLAG
44650 if test "$ol_enable_refint" != no ; then
44651 BUILD_REFINT=$ol_enable_refint
44652 if test "$ol_enable_refint" = mod ; then
44653 MFLAG=SLAPD_MOD_DYNAMIC
44654 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44656 MFLAG=SLAPD_MOD_STATIC
44657 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44660 cat >>confdefs.h <<_ACEOF
44661 #define SLAPD_OVER_REFINT $MFLAG
44666 if test "$ol_enable_retcode" != no ; then
44667 BUILD_RETCODE=$ol_enable_retcode
44668 if test "$ol_enable_retcode" = mod ; then
44669 MFLAG=SLAPD_MOD_DYNAMIC
44670 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44672 MFLAG=SLAPD_MOD_STATIC
44673 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44676 cat >>confdefs.h <<_ACEOF
44677 #define SLAPD_OVER_RETCODE $MFLAG
44682 if test "$ol_enable_rwm" != no ; then
44684 BUILD_RWM=$ol_enable_rwm
44685 if test "$ol_enable_rwm" = mod ; then
44686 MFLAG=SLAPD_MOD_DYNAMIC
44687 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44689 MFLAG=SLAPD_MOD_STATIC
44690 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44693 cat >>confdefs.h <<_ACEOF
44694 #define SLAPD_OVER_RWM $MFLAG
44699 if test "$ol_enable_syncprov" != no ; then
44700 BUILD_SYNCPROV=$ol_enable_syncprov
44701 if test "$ol_enable_syncprov" = mod ; then
44702 MFLAG=SLAPD_MOD_DYNAMIC
44703 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44705 MFLAG=SLAPD_MOD_STATIC
44706 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44709 cat >>confdefs.h <<_ACEOF
44710 #define SLAPD_OVER_SYNCPROV $MFLAG
44715 if test "$ol_enable_translucent" != no ; then
44716 BUILD_TRANSLUCENT=$ol_enable_translucent
44717 if test "$ol_enable_translucent" = mod ; then
44718 MFLAG=SLAPD_MOD_DYNAMIC
44719 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44721 MFLAG=SLAPD_MOD_STATIC
44722 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44725 cat >>confdefs.h <<_ACEOF
44726 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44731 if test "$ol_enable_unique" != no ; then
44732 BUILD_UNIQUE=$ol_enable_unique
44733 if test "$ol_enable_unique" = mod ; then
44734 MFLAG=SLAPD_MOD_DYNAMIC
44735 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44737 MFLAG=SLAPD_MOD_STATIC
44738 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44741 cat >>confdefs.h <<_ACEOF
44742 #define SLAPD_OVER_UNIQUE $MFLAG
44747 if test "$ol_enable_valsort" != no ; then
44748 BUILD_VALSORT=$ol_enable_valsort
44749 if test "$ol_enable_valsort" = mod ; then
44750 MFLAG=SLAPD_MOD_DYNAMIC
44751 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44753 MFLAG=SLAPD_MOD_STATIC
44754 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44757 cat >>confdefs.h <<_ACEOF
44758 #define SLAPD_OVER_VALSORT $MFLAG
44763 if test "$ol_enable_slurpd" != no &&
44764 test "$ol_link_threads" != no &&
44765 test $BUILD_SLAPD = yes ; then
44769 if test "$ol_enable_rewrite" != no ; then
44771 cat >>confdefs.h <<\_ACEOF
44772 #define ENABLE_REWRITE 1
44778 if test "$ol_enable_slapi" != no ; then
44780 cat >>confdefs.h <<\_ACEOF
44781 #define ENABLE_SLAPI 1
44785 SLAPD_SLAPI_DEPEND=libslapi.a
44790 if test "$ac_cv_mingw32" = yes ; then
44792 SLAPD_MODULES_LDFLAGS=
44879 # Check whether --with-xxinstall or --without-xxinstall was given.
44880 if test "${with_xxinstall+set}" = set; then
44881 withval="$with_xxinstall"
44886 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
44889 ac_config_commands="$ac_config_commands default"
44893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44894 # Let make expand exec_prefix.
44895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44899 # trailing colons and then remove the whole line if VPATH becomes empty
44900 # (actually we leave an empty line to preserve line numbers).
44901 if test "x$srcdir" = x.; then
44902 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44903 s/:*\$(srcdir):*/:/;
44904 s/:*\${srcdir}:*/:/;
44906 s/^\([^=]*=[ ]*\):*/\1/;
44912 DEFS=-DHAVE_CONFIG_H
44916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44917 # 1. Remove the extension, and $U if already installed.
44918 ac_i=`echo "$ac_i" |
44919 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44921 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44922 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44924 LIBOBJS=$ac_libobjs
44926 LTLIBOBJS=$ac_ltlibobjs
44929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44930 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44931 Usually this means the macro was only invoked conditionally." >&5
44932 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44933 Usually this means the macro was only invoked conditionally." >&2;}
44934 { (exit 1); exit 1; }; }
44936 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44937 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44938 Usually this means the macro was only invoked conditionally." >&5
44939 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44940 Usually this means the macro was only invoked conditionally." >&2;}
44941 { (exit 1); exit 1; }; }
44943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44944 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44945 Usually this means the macro was only invoked conditionally." >&5
44946 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44947 Usually this means the macro was only invoked conditionally." >&2;}
44948 { (exit 1); exit 1; }; }
44951 : ${CONFIG_STATUS=./config.status}
44952 ac_clean_files_save=$ac_clean_files
44953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44956 cat >$CONFIG_STATUS <<_ACEOF
44958 # Generated by $as_me.
44959 # Run this file to recreate the current configuration.
44960 # Compiler output produced by configure, useful for debugging
44961 # configure, is in config.log if it exists.
44964 ac_cs_recheck=false
44966 SHELL=\${CONFIG_SHELL-$SHELL}
44969 cat >>$CONFIG_STATUS <<\_ACEOF
44970 ## --------------------- ##
44971 ## M4sh Initialization. ##
44972 ## --------------------- ##
44974 # Be Bourne compatible
44975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44979 # is contrary to our usage. Disable this feature.
44980 alias -g '${1+"$@"}'='"$@"'
44981 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44984 DUALCASE=1; export DUALCASE # for MKS sh
44986 # Support unset when possible.
44987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44994 # Work around bugs in pre-3.0 UWIN ksh.
44995 $as_unset ENV MAIL MAILPATH
45002 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45003 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45004 LC_TELEPHONE LC_TIME
45006 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45007 eval $as_var=C; export $as_var
45013 # Required to use basename.
45014 if expr a : '\(a\)' >/dev/null 2>&1; then
45020 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45021 as_basename=basename
45027 # Name of the executable.
45028 as_me=`$as_basename "$0" ||
45029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45030 X"$0" : 'X\(//\)$' \| \
45031 X"$0" : 'X\(/\)$' \| \
45032 . : '\(.\)' 2>/dev/null ||
45034 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45035 /^X\/\(\/\/\)$/{ s//\1/; q; }
45036 /^X\/\(\/\).*/{ s//\1/; q; }
45040 # PATH needs CR, and LINENO needs CR and PATH.
45041 # Avoid depending upon Character Ranges.
45042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45045 as_cr_digits='0123456789'
45046 as_cr_alnum=$as_cr_Letters$as_cr_digits
45048 # The user is always right.
45049 if test "${PATH_SEPARATOR+set}" != set; then
45050 echo "#! /bin/sh" >conf$$.sh
45051 echo "exit 0" >>conf$$.sh
45053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45062 as_lineno_1=$LINENO
45063 as_lineno_2=$LINENO
45064 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45065 test "x$as_lineno_1" != "x$as_lineno_2" &&
45066 test "x$as_lineno_3" = "x$as_lineno_2" || {
45067 # Find who we are. Look in the path if we contain no path at all
45070 *[\\/]* ) as_myself=$0 ;;
45071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45072 for as_dir in $PATH
45075 test -z "$as_dir" && as_dir=.
45076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45081 # We did not find ourselves, most probably we were run as `sh COMMAND'
45082 # in which case we are not to be found in the path.
45083 if test "x$as_myself" = x; then
45086 if test ! -f "$as_myself"; then
45087 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45088 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45089 { (exit 1); exit 1; }; }
45091 case $CONFIG_SHELL in
45093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45094 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45097 test -z "$as_dir" && as_dir=.
45098 for as_base in sh bash ksh sh5; do
45101 if ("$as_dir/$as_base" -c '
45102 as_lineno_1=$LINENO
45103 as_lineno_2=$LINENO
45104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45105 test "x$as_lineno_1" != "x$as_lineno_2" &&
45106 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45107 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45108 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45109 CONFIG_SHELL=$as_dir/$as_base
45110 export CONFIG_SHELL
45111 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45119 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45120 # uniformly replaced by the line number. The first 'sed' inserts a
45121 # line-number line before each line; the second 'sed' does the real
45122 # work. The second script uses 'N' to pair each line-number line
45123 # with the numbered line, and appends trailing '-' during
45124 # substitution so that $LINENO is not a special case at line end.
45125 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45126 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45127 sed '=' <$as_myself |
45132 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45135 s,^['$as_cr_digits']*\n,,
45136 ' >$as_me.lineno &&
45137 chmod +x $as_me.lineno ||
45138 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45139 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45140 { (exit 1); exit 1; }; }
45142 # Don't try to exec as it changes $[0], causing all sort of problems
45143 # (the dirname of $[0] is not the place where we might find the
45144 # original and so on. Autoconf is especially sensible to this).
45146 # Exit status is that of the last command.
45151 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45152 *c*,-n*) ECHO_N= ECHO_C='
45154 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45155 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45158 if expr a : '\(a\)' >/dev/null 2>&1; then
45164 rm -f conf$$ conf$$.exe conf$$.file
45166 if ln -s conf$$.file conf$$ 2>/dev/null; then
45167 # We could just check for DJGPP; but this test a) works b) is more generic
45168 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45169 if test -f conf$$.exe; then
45170 # Don't use ln at all; we don't have any links
45175 elif ln conf$$.file conf$$ 2>/dev/null; then
45180 rm -f conf$$ conf$$.exe conf$$.file
45182 if mkdir -p . 2>/dev/null; then
45185 test -d ./-p && rmdir ./-p
45189 as_executable_p="test -f"
45191 # Sed expression to map a string onto a valid CPP name.
45192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45194 # Sed expression to map a string onto a valid variable name.
45195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45199 # We need space, tab and new line, in precisely that order.
45209 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45210 # report actual input values of CONFIG_FILES etc. instead of their
45211 # values after options handling. Logging --version etc. is OK.
45215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45216 ## Running $as_me. ##
45221 This file was extended by $as_me, which was
45222 generated by GNU Autoconf 2.59. Invocation command line was
45224 CONFIG_FILES = $CONFIG_FILES
45225 CONFIG_HEADERS = $CONFIG_HEADERS
45226 CONFIG_LINKS = $CONFIG_LINKS
45227 CONFIG_COMMANDS = $CONFIG_COMMANDS
45231 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45235 # Files that config.status was made for.
45236 if test -n "$ac_config_files"; then
45237 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45240 if test -n "$ac_config_headers"; then
45241 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45244 if test -n "$ac_config_links"; then
45245 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45248 if test -n "$ac_config_commands"; then
45249 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45252 cat >>$CONFIG_STATUS <<\_ACEOF
45255 \`$as_me' instantiates files from templates according to the
45256 current configuration.
45258 Usage: $0 [OPTIONS] [FILE]...
45260 -h, --help print this help, then exit
45261 -V, --version print version number, then exit
45262 -q, --quiet do not print progress messages
45263 -d, --debug don't remove temporary files
45264 --recheck update $as_me by reconfiguring in the same conditions
45265 --file=FILE[:TEMPLATE]
45266 instantiate the configuration file FILE
45267 --header=FILE[:TEMPLATE]
45268 instantiate the configuration header FILE
45270 Configuration files:
45273 Configuration headers:
45276 Configuration commands:
45279 Report bugs to <bug-autoconf@gnu.org>."
45282 cat >>$CONFIG_STATUS <<_ACEOF
45285 configured by $0, generated by GNU Autoconf 2.59,
45286 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45288 Copyright (C) 2003 Free Software Foundation, Inc.
45289 This config.status script is free software; the Free Software Foundation
45290 gives unlimited permission to copy, distribute and modify it."
45295 cat >>$CONFIG_STATUS <<\_ACEOF
45296 # If no file are specified by the user, then we need to provide default
45297 # value. By we need to know if files were specified by the user.
45303 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45304 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45312 *) # This is not an option, so the user has probably given explicit
45315 ac_need_defaults=false;;
45319 # Handling of the options.
45321 cat >>$CONFIG_STATUS <<\_ACEOF
45322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45324 --version | --vers* | -V )
45325 echo "$ac_cs_version"; exit 0 ;;
45327 # Conflict between --help and --header
45328 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45329 Try \`$0 --help' for more information." >&5
45330 echo "$as_me: error: ambiguous option: $1
45331 Try \`$0 --help' for more information." >&2;}
45332 { (exit 1); exit 1; }; };;
45333 --help | --hel | -h )
45334 echo "$ac_cs_usage"; exit 0 ;;
45335 --debug | --d* | -d )
45337 --file | --fil | --fi | --f )
45339 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45340 ac_need_defaults=false;;
45341 --header | --heade | --head | --hea )
45343 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45344 ac_need_defaults=false;;
45345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45349 # This is an error.
45350 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45351 Try \`$0 --help' for more information." >&5
45352 echo "$as_me: error: unrecognized option: $1
45353 Try \`$0 --help' for more information." >&2;}
45354 { (exit 1); exit 1; }; } ;;
45356 *) ac_config_targets="$ac_config_targets $1" ;;
45362 ac_configure_extra_args=
45364 if $ac_cs_silent; then
45366 ac_configure_extra_args="$ac_configure_extra_args --silent"
45370 cat >>$CONFIG_STATUS <<_ACEOF
45371 if \$ac_cs_recheck; then
45372 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45373 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45378 cat >>$CONFIG_STATUS <<_ACEOF
45380 # INIT-COMMANDS section.
45383 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45385 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45386 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45393 cat >>$CONFIG_STATUS <<\_ACEOF
45394 for ac_config_target in $ac_config_targets
45396 case "$ac_config_target" in
45397 # Handling of arguments.
45398 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45399 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45400 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45401 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45402 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45403 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45404 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45405 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45406 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45407 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45408 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45409 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45410 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45411 "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45412 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45413 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45414 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45415 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45416 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45417 "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
45418 "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
45419 "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
45420 "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
45421 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
45422 "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
45423 "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
45424 "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
45425 "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
45426 "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
45427 "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
45428 "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
45429 "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
45430 "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
45431 "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
45432 "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45433 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45434 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45435 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45436 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45437 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45438 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45439 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45440 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45441 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45442 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45445 { (exit 1); exit 1; }; };;
45449 # If the user did not use the arguments to specify the items to instantiate,
45450 # then the envvar interface is used. Set only those that are not.
45451 # We use the long form for the default assignment because of an extremely
45452 # bizarre bug on SunOS 4.1.3.
45453 if $ac_need_defaults; then
45454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45459 # Have a temporary directory for convenience. Make it in the build tree
45460 # simply because there is no reason to put it here, and in addition,
45461 # creating and moving files from /tmp can sometimes cause problems.
45462 # Create a temporary directory, and hook for its removal unless debugging.
45465 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45466 trap '{ (exit 1); exit 1; }' 1 2 13 15
45469 # Create a (secure) tmp directory for tmp files.
45472 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45473 test -n "$tmp" && test -d "$tmp"
45476 tmp=./confstat$$-$RANDOM
45477 (umask 077 && mkdir $tmp)
45480 echo "$me: cannot create a temporary directory in ." >&2
45481 { (exit 1); exit 1; }
45486 cat >>$CONFIG_STATUS <<_ACEOF
45489 # CONFIG_FILES section.
45492 # No need to generate the scripts if there are no CONFIG_FILES.
45493 # This happens for instance when ./config.status config.h
45494 if test -n "\$CONFIG_FILES"; then
45495 # Protect against being on the right side of a sed subst in config.status.
45496 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45497 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45498 s,@SHELL@,$SHELL,;t t
45499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45505 s,@exec_prefix@,$exec_prefix,;t t
45506 s,@prefix@,$prefix,;t t
45507 s,@program_transform_name@,$program_transform_name,;t t
45508 s,@bindir@,$bindir,;t t
45509 s,@sbindir@,$sbindir,;t t
45510 s,@libexecdir@,$libexecdir,;t t
45511 s,@datadir@,$datadir,;t t
45512 s,@sysconfdir@,$sysconfdir,;t t
45513 s,@sharedstatedir@,$sharedstatedir,;t t
45514 s,@localstatedir@,$localstatedir,;t t
45515 s,@libdir@,$libdir,;t t
45516 s,@includedir@,$includedir,;t t
45517 s,@oldincludedir@,$oldincludedir,;t t
45518 s,@infodir@,$infodir,;t t
45519 s,@mandir@,$mandir,;t t
45520 s,@build_alias@,$build_alias,;t t
45521 s,@host_alias@,$host_alias,;t t
45522 s,@target_alias@,$target_alias,;t t
45523 s,@DEFS@,$DEFS,;t t
45524 s,@ECHO_C@,$ECHO_C,;t t
45525 s,@ECHO_N@,$ECHO_N,;t t
45526 s,@ECHO_T@,$ECHO_T,;t t
45527 s,@LIBS@,$LIBS,;t t
45528 s,@build@,$build,;t t
45529 s,@build_cpu@,$build_cpu,;t t
45530 s,@build_vendor@,$build_vendor,;t t
45531 s,@build_os@,$build_os,;t t
45532 s,@host@,$host,;t t
45533 s,@host_cpu@,$host_cpu,;t t
45534 s,@host_vendor@,$host_vendor,;t t
45535 s,@host_os@,$host_os,;t t
45536 s,@target@,$target,;t t
45537 s,@target_cpu@,$target_cpu,;t t
45538 s,@target_vendor@,$target_vendor,;t t
45539 s,@target_os@,$target_os,;t t
45540 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45541 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45542 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45543 s,@CYGPATH_W@,$CYGPATH_W,;t t
45544 s,@PACKAGE@,$PACKAGE,;t t
45545 s,@VERSION@,$VERSION,;t t
45546 s,@ACLOCAL@,$ACLOCAL,;t t
45547 s,@AUTOCONF@,$AUTOCONF,;t t
45548 s,@AUTOMAKE@,$AUTOMAKE,;t t
45549 s,@AUTOHEADER@,$AUTOHEADER,;t t
45550 s,@MAKEINFO@,$MAKEINFO,;t t
45551 s,@install_sh@,$install_sh,;t t
45552 s,@STRIP@,$STRIP,;t t
45553 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45554 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45555 s,@mkdir_p@,$mkdir_p,;t t
45557 s,@SET_MAKE@,$SET_MAKE,;t t
45558 s,@am__leading_dot@,$am__leading_dot,;t t
45559 s,@AMTAR@,$AMTAR,;t t
45560 s,@am__tar@,$am__tar,;t t
45561 s,@am__untar@,$am__untar,;t t
45562 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45563 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45564 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45565 s,@top_builddir@,$top_builddir,;t t
45566 s,@ldap_subdir@,$ldap_subdir,;t t
45569 s,@CFLAGS@,$CFLAGS,;t t
45570 s,@LDFLAGS@,$LDFLAGS,;t t
45571 s,@CPPFLAGS@,$CPPFLAGS,;t t
45572 s,@ac_ct_CC@,$ac_ct_CC,;t t
45573 s,@EXEEXT@,$EXEEXT,;t t
45574 s,@OBJEXT@,$OBJEXT,;t t
45575 s,@DEPDIR@,$DEPDIR,;t t
45576 s,@am__include@,$am__include,;t t
45577 s,@am__quote@,$am__quote,;t t
45578 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45579 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45580 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45581 s,@CCDEPMODE@,$CCDEPMODE,;t t
45582 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45583 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45584 s,@EGREP@,$EGREP,;t t
45585 s,@LN_S@,$LN_S,;t t
45586 s,@ECHO@,$ECHO,;t t
45587 s,@ac_ct_AR@,$ac_ct_AR,;t t
45588 s,@RANLIB@,$RANLIB,;t t
45589 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45590 s,@DLLTOOL@,$DLLTOOL,;t t
45591 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45593 s,@ac_ct_AS@,$ac_ct_AS,;t t
45594 s,@OBJDUMP@,$OBJDUMP,;t t
45595 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45597 s,@LIBTOOL@,$LIBTOOL,;t t
45598 s,@PERLBIN@,$PERLBIN,;t t
45599 s,@OL_MKDEP@,$OL_MKDEP,;t t
45600 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45601 s,@LTSTATIC@,$LTSTATIC,;t t
45602 s,@LIBOBJS@,$LIBOBJS,;t t
45603 s,@LIBSRCS@,$LIBSRCS,;t t
45604 s,@PLAT@,$PLAT,;t t
45605 s,@WITH_SASL@,$WITH_SASL,;t t
45606 s,@WITH_TLS@,$WITH_TLS,;t t
45607 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45608 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45609 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45610 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45611 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45612 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45613 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45614 s,@BUILD_BDB@,$BUILD_BDB,;t t
45615 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45616 s,@BUILD_HDB@,$BUILD_HDB,;t t
45617 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45618 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45619 s,@BUILD_META@,$BUILD_META,;t t
45620 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45621 s,@BUILD_NULL@,$BUILD_NULL,;t t
45622 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45623 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45624 s,@BUILD_PERL@,$BUILD_PERL,;t t
45625 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45626 s,@BUILD_SQL@,$BUILD_SQL,;t t
45627 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45628 s,@BUILD_DDS@,$BUILD_DDS,;t t
45629 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45630 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45631 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45632 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45633 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45634 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45635 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45636 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45637 s,@BUILD_RWM@,$BUILD_RWM,;t t
45638 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45639 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45640 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45641 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45642 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45643 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45644 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45645 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45646 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45647 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45648 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45649 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45650 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45651 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45652 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45653 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45654 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45655 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45656 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45657 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45658 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45659 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45660 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45661 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45662 s,@SASL_LIBS@,$SASL_LIBS,;t t
45663 s,@TLS_LIBS@,$TLS_LIBS,;t t
45664 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45665 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45666 s,@LIBSLAPI@,$LIBSLAPI,;t t
45667 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45668 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45669 s,@ICU_LIBS@,$ICU_LIBS,;t t
45670 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45671 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45672 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45673 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45674 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45675 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45680 cat >>$CONFIG_STATUS <<\_ACEOF
45681 # Split the substitutions into bite-sized pieces for seds with
45682 # small command number limits, like on Digital OSF/1 and HP-UX.
45683 ac_max_sed_lines=48
45684 ac_sed_frag=1 # Number of current file.
45685 ac_beg=1 # First line for current file.
45686 ac_end=$ac_max_sed_lines # Line after last line for current file.
45689 while $ac_more_lines; do
45690 if test $ac_beg -gt 1; then
45691 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45693 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45695 if test ! -s $tmp/subs.frag; then
45696 ac_more_lines=false
45698 # The purpose of the label and of the branching condition is to
45699 # speed up the sed processing (if there are no `@' at all, there
45700 # is no need to browse any of the substitutions).
45701 # These are the two extra sed commands mentioned above.
45703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45704 if test -z "$ac_sed_cmds"; then
45705 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45707 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45709 ac_sed_frag=`expr $ac_sed_frag + 1`
45711 ac_end=`expr $ac_end + $ac_max_sed_lines`
45714 if test -z "$ac_sed_cmds"; then
45717 fi # test -n "$CONFIG_FILES"
45720 cat >>$CONFIG_STATUS <<\_ACEOF
45721 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45722 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45724 - | *:- | *:-:* ) # input from stdin
45726 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45728 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45730 * ) ac_file_in=$ac_file.in ;;
45733 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45736 X"$ac_file" : 'X\(//\)[^/]' \| \
45737 X"$ac_file" : 'X\(//\)$' \| \
45738 X"$ac_file" : 'X\(/\)' \| \
45739 . : '\(.\)' 2>/dev/null ||
45741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45743 /^X\(\/\/\)$/{ s//\1/; q; }
45744 /^X\(\/\).*/{ s//\1/; q; }
45746 { if $as_mkdir_p; then
45751 while test ! -d "$as_dir"; do
45752 as_dirs="$as_dir $as_dirs"
45753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45755 X"$as_dir" : 'X\(//\)[^/]' \| \
45756 X"$as_dir" : 'X\(//\)$' \| \
45757 X"$as_dir" : 'X\(/\)' \| \
45758 . : '\(.\)' 2>/dev/null ||
45760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45762 /^X\(\/\/\)$/{ s//\1/; q; }
45763 /^X\(\/\).*/{ s//\1/; q; }
45766 test ! -n "$as_dirs" || mkdir $as_dirs
45767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45769 { (exit 1); exit 1; }; }; }
45773 if test "$ac_dir" != .; then
45774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45775 # A "../" for each directory in $ac_dir_suffix.
45776 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45778 ac_dir_suffix= ac_top_builddir=
45782 .) # No --srcdir option. We are building in place.
45784 if test -z "$ac_top_builddir"; then
45787 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45789 [\\/]* | ?:[\\/]* ) # Absolute path.
45790 ac_srcdir=$srcdir$ac_dir_suffix;
45791 ac_top_srcdir=$srcdir ;;
45792 *) # Relative path.
45793 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45794 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45797 # Do not use `cd foo && pwd` to compute absolute paths, because
45798 # the directories may not exist.
45800 .) ac_abs_builddir="$ac_dir";;
45803 .) ac_abs_builddir=`pwd`;;
45804 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45805 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45808 case $ac_abs_builddir in
45809 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45811 case ${ac_top_builddir}. in
45812 .) ac_abs_top_builddir=$ac_abs_builddir;;
45813 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45814 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45817 case $ac_abs_builddir in
45818 .) ac_abs_srcdir=$ac_srcdir;;
45821 .) ac_abs_srcdir=$ac_abs_builddir;;
45822 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45823 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45826 case $ac_abs_builddir in
45827 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45829 case $ac_top_srcdir in
45830 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45831 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45832 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45838 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45839 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45842 if test x"$ac_file" != x-; then
45843 { echo "$as_me:$LINENO: creating $ac_file" >&5
45844 echo "$as_me: creating $ac_file" >&6;}
45847 # Let's still pretend it is `configure' which instantiates (i.e., don't
45848 # use $as_me), people would be surprised to read:
45849 # /* config.h. Generated by config.status. */
45850 if test x"$ac_file" = x-; then
45853 configure_input="$ac_file. "
45855 configure_input=$configure_input"Generated from `echo $ac_file_in |
45856 sed 's,.*/,,'` by configure."
45858 # First look for the input files in the build tree, otherwise in the
45860 ac_file_inputs=`IFS=:
45861 for f in $ac_file_in; do
45863 -) echo $tmp/stdin ;;
45865 # Absolute (can't be DOS-style, as IFS=:)
45866 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45867 echo "$as_me: error: cannot find input file: $f" >&2;}
45868 { (exit 1); exit 1; }; }
45871 if test -f "$f"; then
45874 elif test -f "$srcdir/$f"; then
45879 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45880 echo "$as_me: error: cannot find input file: $f" >&2;}
45881 { (exit 1); exit 1; }; }
45884 done` || { (exit 1); exit 1; }
45886 cat >>$CONFIG_STATUS <<_ACEOF
45890 cat >>$CONFIG_STATUS <<\_ACEOF
45892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45893 s,@configure_input@,$configure_input,;t t
45894 s,@srcdir@,$ac_srcdir,;t t
45895 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45896 s,@top_srcdir@,$ac_top_srcdir,;t t
45897 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45898 s,@builddir@,$ac_builddir,;t t
45899 s,@abs_builddir@,$ac_abs_builddir,;t t
45900 s,@top_builddir@,$ac_top_builddir,;t t
45901 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45902 s,@INSTALL@,$ac_INSTALL,;t t
45903 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45905 if test x"$ac_file" != x-; then
45906 mv $tmp/out $ac_file
45914 cat >>$CONFIG_STATUS <<\_ACEOF
45917 # CONFIG_HEADER section.
45920 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45921 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45923 # ac_d sets the value in "#define NAME VALUE" lines.
45924 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45925 ac_dB='[ ].*$,\1#\2'
45928 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45929 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45930 ac_uB='$,\1#\2define\3'
45934 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45937 - | *:- | *:-:* ) # input from stdin
45939 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45941 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45943 * ) ac_file_in=$ac_file.in ;;
45946 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45947 echo "$as_me: creating $ac_file" >&6;}
45949 # First look for the input files in the build tree, otherwise in the
45951 ac_file_inputs=`IFS=:
45952 for f in $ac_file_in; do
45954 -) echo $tmp/stdin ;;
45956 # Absolute (can't be DOS-style, as IFS=:)
45957 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45958 echo "$as_me: error: cannot find input file: $f" >&2;}
45959 { (exit 1); exit 1; }; }
45960 # Do quote $f, to prevent DOS paths from being IFS'd.
45963 if test -f "$f"; then
45966 elif test -f "$srcdir/$f"; then
45971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45972 echo "$as_me: error: cannot find input file: $f" >&2;}
45973 { (exit 1); exit 1; }; }
45976 done` || { (exit 1); exit 1; }
45977 # Remove the trailing spaces.
45978 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45982 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45983 # `conftest.undefs', that substitutes the proper values into
45984 # config.h.in to produce config.h. The first handles `#define'
45985 # templates, and the second `#undef' templates.
45986 # And first: Protect against being on the right side of a sed subst in
45987 # config.status. Protect against being in an unquoted here document
45988 # in config.status.
45989 rm -f conftest.defines conftest.undefs
45990 # Using a here document instead of a string reduces the quoting nightmare.
45991 # Putting comments in sed scripts is not portable.
45993 # `end' is used to avoid that the second main sed command (meant for
45994 # 0-ary CPP macros) applies to n-ary macro definitions.
45995 # See the Autoconf documentation for `clear'.
45996 cat >confdef2sed.sed <<\_ACEOF
46001 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46003 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46006 # If some macros were called several times there might be several times
46007 # the same #defines, which is useless. Nevertheless, we may not want to
46008 # sort them, since we want the *last* AC-DEFINE to be honored.
46009 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46010 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46011 rm -f confdef2sed.sed
46013 # This sed command replaces #undef with comments. This is necessary, for
46014 # example, in the case of _POSIX_SOURCE, which is predefined and required
46015 # on some systems where configure will not decide to define it.
46016 cat >>conftest.undefs <<\_ACEOF
46017 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46020 # Break up conftest.defines because some shells have a limit on the size
46021 # of here documents, and old seds have small limits too (100 cmds).
46022 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46023 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46024 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46025 echo ' :' >>$CONFIG_STATUS
46026 rm -f conftest.tail
46027 while grep . conftest.defines >/dev/null
46029 # Write a limited-size here document to $tmp/defines.sed.
46030 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46031 # Speed up: don't consider the non `#define' lines.
46032 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46033 # Work around the forget-to-reset-the-flag bug.
46034 echo 't clr' >>$CONFIG_STATUS
46035 echo ': clr' >>$CONFIG_STATUS
46036 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46038 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46040 mv $tmp/out $tmp/in
46042 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46043 rm -f conftest.defines
46044 mv conftest.tail conftest.defines
46046 rm -f conftest.defines
46047 echo ' fi # grep' >>$CONFIG_STATUS
46048 echo >>$CONFIG_STATUS
46050 # Break up conftest.undefs because some shells have a limit on the size
46051 # of here documents, and old seds have small limits too (100 cmds).
46052 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46053 rm -f conftest.tail
46054 while grep . conftest.undefs >/dev/null
46056 # Write a limited-size here document to $tmp/undefs.sed.
46057 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46058 # Speed up: don't consider the non `#undef'
46059 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46060 # Work around the forget-to-reset-the-flag bug.
46061 echo 't clr' >>$CONFIG_STATUS
46062 echo ': clr' >>$CONFIG_STATUS
46063 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46065 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46067 mv $tmp/out $tmp/in
46069 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46070 rm -f conftest.undefs
46071 mv conftest.tail conftest.undefs
46073 rm -f conftest.undefs
46075 cat >>$CONFIG_STATUS <<\_ACEOF
46076 # Let's still pretend it is `configure' which instantiates (i.e., don't
46077 # use $as_me), people would be surprised to read:
46078 # /* config.h. Generated by config.status. */
46079 if test x"$ac_file" = x-; then
46080 echo "/* Generated by configure. */" >$tmp/config.h
46082 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46084 cat $tmp/in >>$tmp/config.h
46086 if test x"$ac_file" != x-; then
46087 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46089 echo "$as_me: $ac_file is unchanged" >&6;}
46091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46093 X"$ac_file" : 'X\(//\)[^/]' \| \
46094 X"$ac_file" : 'X\(//\)$' \| \
46095 X"$ac_file" : 'X\(/\)' \| \
46096 . : '\(.\)' 2>/dev/null ||
46098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46100 /^X\(\/\/\)$/{ s//\1/; q; }
46101 /^X\(\/\).*/{ s//\1/; q; }
46103 { if $as_mkdir_p; then
46108 while test ! -d "$as_dir"; do
46109 as_dirs="$as_dir $as_dirs"
46110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46112 X"$as_dir" : 'X\(//\)[^/]' \| \
46113 X"$as_dir" : 'X\(//\)$' \| \
46114 X"$as_dir" : 'X\(/\)' \| \
46115 . : '\(.\)' 2>/dev/null ||
46117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46119 /^X\(\/\/\)$/{ s//\1/; q; }
46120 /^X\(\/\).*/{ s//\1/; q; }
46123 test ! -n "$as_dirs" || mkdir $as_dirs
46124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46125 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46126 { (exit 1); exit 1; }; }; }
46129 mv $tmp/config.h $ac_file
46133 rm -f $tmp/config.h
46135 # Compute $ac_file's index in $config_headers.
46137 for _am_header in $config_headers :; do
46138 case $_am_header in
46139 $ac_file | $ac_file:* )
46142 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46145 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46146 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46147 X$ac_file : 'X\(//\)[^/]' \| \
46148 X$ac_file : 'X\(//\)$' \| \
46149 X$ac_file : 'X\(/\)' \| \
46150 . : '\(.\)' 2>/dev/null ||
46152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46154 /^X\(\/\/\)$/{ s//\1/; q; }
46155 /^X\(\/\).*/{ s//\1/; q; }
46156 s/.*/./; q'`/stamp-h$_am_stamp_count
46159 cat >>$CONFIG_STATUS <<\_ACEOF
46162 # CONFIG_COMMANDS section.
46164 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46165 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46166 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46167 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46168 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46169 X"$ac_dest" : 'X\(//\)[^/]' \| \
46170 X"$ac_dest" : 'X\(//\)$' \| \
46171 X"$ac_dest" : 'X\(/\)' \| \
46172 . : '\(.\)' 2>/dev/null ||
46174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46176 /^X\(\/\/\)$/{ s//\1/; q; }
46177 /^X\(\/\).*/{ s//\1/; q; }
46179 { if $as_mkdir_p; then
46184 while test ! -d "$as_dir"; do
46185 as_dirs="$as_dir $as_dirs"
46186 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46188 X"$as_dir" : 'X\(//\)[^/]' \| \
46189 X"$as_dir" : 'X\(//\)$' \| \
46190 X"$as_dir" : 'X\(/\)' \| \
46191 . : '\(.\)' 2>/dev/null ||
46193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46195 /^X\(\/\/\)$/{ s//\1/; q; }
46196 /^X\(\/\).*/{ s//\1/; q; }
46199 test ! -n "$as_dirs" || mkdir $as_dirs
46200 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46201 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46202 { (exit 1); exit 1; }; }; }
46206 if test "$ac_dir" != .; then
46207 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46208 # A "../" for each directory in $ac_dir_suffix.
46209 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46211 ac_dir_suffix= ac_top_builddir=
46215 .) # No --srcdir option. We are building in place.
46217 if test -z "$ac_top_builddir"; then
46220 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46222 [\\/]* | ?:[\\/]* ) # Absolute path.
46223 ac_srcdir=$srcdir$ac_dir_suffix;
46224 ac_top_srcdir=$srcdir ;;
46225 *) # Relative path.
46226 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46227 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46230 # Do not use `cd foo && pwd` to compute absolute paths, because
46231 # the directories may not exist.
46233 .) ac_abs_builddir="$ac_dir";;
46236 .) ac_abs_builddir=`pwd`;;
46237 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46238 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46241 case $ac_abs_builddir in
46242 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46244 case ${ac_top_builddir}. in
46245 .) ac_abs_top_builddir=$ac_abs_builddir;;
46246 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46247 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46250 case $ac_abs_builddir in
46251 .) ac_abs_srcdir=$ac_srcdir;;
46254 .) ac_abs_srcdir=$ac_abs_builddir;;
46255 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46256 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46259 case $ac_abs_builddir in
46260 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46262 case $ac_top_srcdir in
46263 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46264 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46265 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46270 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46271 echo "$as_me: executing $ac_dest commands" >&6;}
46273 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46274 # Strip MF so we end up with the name of the file.
46275 mf=`echo "$mf" | sed -e 's/:.*$//'`
46276 # Check whether this is an Automake generated Makefile or not.
46277 # We used to match only the files named `Makefile.in', but
46278 # some people rename them; so instead we look at the file content.
46279 # Grep'ing the first line is not enough: some people post-process
46280 # each Makefile.in and add a new line on top of each file to say so.
46281 # So let's grep whole file.
46282 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46283 dirpart=`(dirname "$mf") 2>/dev/null ||
46284 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46285 X"$mf" : 'X\(//\)[^/]' \| \
46286 X"$mf" : 'X\(//\)$' \| \
46287 X"$mf" : 'X\(/\)' \| \
46288 . : '\(.\)' 2>/dev/null ||
46290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46292 /^X\(\/\/\)$/{ s//\1/; q; }
46293 /^X\(\/\).*/{ s//\1/; q; }
46298 # Extract the definition of DEPDIR, am__include, and am__quote
46299 # from the Makefile without running `make'.
46300 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46301 test -z "$DEPDIR" && continue
46302 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46303 test -z "am__include" && continue
46304 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46305 # When using ansi2knr, U may be empty or an underscore; expand it
46306 U=`sed -n 's/^U = //p' < "$mf"`
46307 # Find all dependency output files, they are included files with
46308 # $(DEPDIR) in their names. We invoke sed twice because it is the
46309 # simplest approach to changing $(DEPDIR) to its actual value in the
46311 for file in `sed -n "
46312 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46313 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46314 # Make sure the directory exists.
46315 test -f "$dirpart/$file" && continue
46316 fdir=`(dirname "$file") 2>/dev/null ||
46317 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46318 X"$file" : 'X\(//\)[^/]' \| \
46319 X"$file" : 'X\(//\)$' \| \
46320 X"$file" : 'X\(/\)' \| \
46321 . : '\(.\)' 2>/dev/null ||
46323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46325 /^X\(\/\/\)$/{ s//\1/; q; }
46326 /^X\(\/\).*/{ s//\1/; q; }
46328 { if $as_mkdir_p; then
46329 mkdir -p $dirpart/$fdir
46331 as_dir=$dirpart/$fdir
46333 while test ! -d "$as_dir"; do
46334 as_dirs="$as_dir $as_dirs"
46335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46337 X"$as_dir" : 'X\(//\)[^/]' \| \
46338 X"$as_dir" : 'X\(//\)$' \| \
46339 X"$as_dir" : 'X\(/\)' \| \
46340 . : '\(.\)' 2>/dev/null ||
46342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46344 /^X\(\/\/\)$/{ s//\1/; q; }
46345 /^X\(\/\).*/{ s//\1/; q; }
46348 test ! -n "$as_dirs" || mkdir $as_dirs
46349 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46350 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46351 { (exit 1); exit 1; }; }; }
46353 # echo "creating $dirpart/$file"
46354 echo '# dummy' > "$dirpart/$file"
46361 BACKENDSC="servers/slapd/backends.c"
46362 echo "Making $BACKENDSC"
46364 cat > $BACKENDSC << ENDX
46365 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46367 * Copyright 1998-2006 The OpenLDAP Foundation.
46368 * All rights reserved.
46370 * Redistribution and use in source and binary forms, with or without
46371 * modification, are permitted only as authorized by the OpenLDAP
46374 * A copy of this license is available in the file LICENSE in the
46375 * top-level directory of the distribution or, alternatively, at
46376 * <http://www.OpenLDAP.org/license.html>.
46378 /* This file is automatically generated by configure; please do not edit. */
46380 #include "portable.h"
46384 if test "${STATIC_BACKENDS}"; then
46385 for b in config ${STATIC_BACKENDS}; do
46386 bb=`echo "${b}" | sed -e 's/back-//'`
46387 cat >> $BACKENDSC << ENDX
46388 extern BI_init ${bb}_back_initialize;
46392 cat >> $BACKENDSC << ENDX
46394 BackendInfo slap_binfo[] = {
46397 for b in config ${STATIC_BACKENDS}; do
46398 bb=`echo "${b}" | sed -e 's/back-//'`
46399 echo " Add ${bb} ..."
46400 cat >> $BACKENDSC << ENDX
46401 { "${bb}", ${bb}_back_initialize },
46405 cat >> $BACKENDSC << ENDX
46409 /* end of generated file */
46412 OVERLAYSC="servers/slapd/overlays/statover.c"
46413 echo "Making $OVERLAYSC"
46415 cat > $OVERLAYSC << ENDX
46416 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46418 * Copyright 1998-2006 The OpenLDAP Foundation.
46419 * All rights reserved.
46421 * Redistribution and use in source and binary forms, with or without
46422 * modification, are permitted only as authorized by the OpenLDAP
46425 * A copy of this license is available in the file LICENSE in the
46426 * top-level directory of the distribution or, alternatively, at
46427 * <http://www.OpenLDAP.org/license.html>.
46429 /* This file is automatically generated by configure; please do not edit. */
46431 #include "portable.h"
46435 if test "${STATIC_OVERLAYS}"; then
46436 for o in ${STATIC_OVERLAYS}; do
46437 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46438 cat >> $OVERLAYSC << ENDX
46439 extern OV_init ${oo}_initialize;
46444 cat >> $OVERLAYSC << ENDX
46446 OverlayInit slap_oinfo[] = {
46449 if test "${STATIC_OVERLAYS}"; then
46450 for o in ${STATIC_OVERLAYS}; do
46451 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46452 echo " Add ${oo} ..."
46453 cat >> $OVERLAYSC << ENDX
46454 { "${oo}", ${oo}_initialize },
46459 cat >> $OVERLAYSC << ENDX
46463 /* end of generated file */
46466 echo Please run \"make depend\" to build dependencies
46472 cat >>$CONFIG_STATUS <<\_ACEOF
46474 { (exit 0); exit 0; }
46476 chmod +x $CONFIG_STATUS
46477 ac_clean_files=$ac_clean_files_save
46480 # configure is writing to config.log, and then calls config.status.
46481 # config.status does its own redirection, appending to config.log.
46482 # Unfortunately, on DOS this fails, as config.log is still kept open
46483 # by configure, so config.status won't be able to write to it; its
46484 # output is simply discarded. So we exec the FD to /dev/null,
46485 # effectively closing config.log, so it can be properly (re)opened and
46486 # appended to by config.status. When coming back to configure, we
46487 # need to make the FD available again.
46488 if test "$no_create" != yes; then
46490 ac_config_status_args=
46491 test "$silent" = yes &&
46492 ac_config_status_args="$ac_config_status_args --quiet"
46494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46497 # would make configure fail if this is the last instruction.
46498 $ac_cs_success || { (exit 1); exit 1; }