2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631 2006/02/27 10:20:08 hyc 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_AUDITLOG BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD 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-auditlog Audit Logging overlay no|yes|mod [no]
1053 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1054 --enable-denyop Deny Operation overlay no|yes|mod [no]
1055 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1056 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1057 --enable-lastmod Last Modification overlay no|yes|mod [no]
1058 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1059 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1060 --enable-refint Referential Integrity overlay no|yes|mod [no]
1061 --enable-retcode Return Code testing overlay no|yes|mod [no]
1062 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1063 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1064 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1065 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1066 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1067 --enable-valsort Value Sorting overlay no|yes|mod [no]
1069 SLURPD (Replication Daemon) Options:
1070 --enable-slurpd enable building slurpd [auto]
1072 Library Generation & Linking Options
1073 --enable-static[=PKGS]
1074 build static libraries [default=yes]
1075 --enable-shared[=PKGS]
1076 build shared libraries [default=yes]
1077 --enable-fast-install[=PKGS]
1078 optimize for fast installation [default=yes]
1079 --disable-dependency-tracking speeds up one-time build
1080 --enable-dependency-tracking do not reject slow dependency extractors
1081 --disable-libtool-lock avoid locking (might break parallel builds)
1084 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1085 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1086 --with-subdir=DIR change default subdirectory used for installs
1087 --with-cyrus-sasl with Cyrus SASL support [auto]
1088 --with-fetch with fetch(3) URL support [auto]
1089 --with-threads with threads [auto]
1090 --with-tls with TLS/SSL support [auto]
1091 --with-yielding-select with implicitly yielding select [auto]
1092 --with-mp with multiple precision statistics auto|longlong|long|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-mp
2434 # Check whether --with-mp or --without-mp was given.
2435 if test "${with_mp+set}" = set; then
2439 for ol_val in auto longlong long 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-mp" >&5
2446 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2447 { (exit 1); exit 1; }; }
2449 ol_with_mp="$ol_arg"
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 # OpenLDAP --enable-rewrite
2648 # Check whether --enable-rewrite or --disable-rewrite was given.
2649 if test "${enable_rewrite+set}" = set; then
2650 enableval="$enable_rewrite"
2653 for ol_val in auto yes no ; do
2654 if test "$enableval" = "$ol_val" ; then
2658 if test "$ol_arg" = "invalid" ; then
2659 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2661 { (exit 1); exit 1; }; }
2663 ol_enable_rewrite="$ol_arg"
2666 ol_enable_rewrite=auto
2668 # end --enable-rewrite
2669 # OpenLDAP --enable-rlookups
2671 # Check whether --enable-rlookups or --disable-rlookups was given.
2672 if test "${enable_rlookups+set}" = set; then
2673 enableval="$enable_rlookups"
2676 for ol_val in auto yes no ; do
2677 if test "$enableval" = "$ol_val" ; then
2681 if test "$ol_arg" = "invalid" ; then
2682 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2684 { (exit 1); exit 1; }; }
2686 ol_enable_rlookups="$ol_arg"
2689 ol_enable_rlookups=no
2691 # end --enable-rlookups
2692 # OpenLDAP --enable-slapi
2694 # Check whether --enable-slapi or --disable-slapi was given.
2695 if test "${enable_slapi+set}" = set; then
2696 enableval="$enable_slapi"
2699 for ol_val in auto yes no ; do
2700 if test "$enableval" = "$ol_val" ; then
2704 if test "$ol_arg" = "invalid" ; then
2705 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2707 { (exit 1); exit 1; }; }
2709 ol_enable_slapi="$ol_arg"
2714 # end --enable-slapi
2715 # OpenLDAP --enable-slp
2717 # Check whether --enable-slp or --disable-slp was given.
2718 if test "${enable_slp+set}" = set; then
2719 enableval="$enable_slp"
2722 for ol_val in auto yes no ; do
2723 if test "$enableval" = "$ol_val" ; then
2727 if test "$ol_arg" = "invalid" ; then
2728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2730 { (exit 1); exit 1; }; }
2732 ol_enable_slp="$ol_arg"
2738 # OpenLDAP --enable-wrappers
2740 # Check whether --enable-wrappers or --disable-wrappers was given.
2741 if test "${enable_wrappers+set}" = set; then
2742 enableval="$enable_wrappers"
2745 for ol_val in auto yes no ; do
2746 if test "$enableval" = "$ol_val" ; then
2750 if test "$ol_arg" = "invalid" ; then
2751 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2753 { (exit 1); exit 1; }; }
2755 ol_enable_wrappers="$ol_arg"
2758 ol_enable_wrappers=no
2760 # end --enable-wrappers
2776 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2777 if test "${enable_xxslapbackends+set}" = set; then
2778 enableval="$enable_xxslapbackends"
2782 # OpenLDAP --enable-backends
2784 # Check whether --enable-backends or --disable-backends was given.
2785 if test "${enable_backends+set}" = set; then
2786 enableval="$enable_backends"
2789 for ol_val in no yes mod ; do
2790 if test "$enableval" = "$ol_val" ; then
2794 if test "$ol_arg" = "invalid" ; then
2795 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2796 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2797 { (exit 1); exit 1; }; }
2799 ol_enable_backends="$ol_arg"
2802 # end --enable-backends
2803 # OpenLDAP --enable-bdb
2805 # Check whether --enable-bdb or --disable-bdb was given.
2806 if test "${enable_bdb+set}" = set; then
2807 enableval="$enable_bdb"
2810 for ol_val in no yes mod ; do
2811 if test "$enableval" = "$ol_val" ; then
2815 if test "$ol_arg" = "invalid" ; then
2816 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2818 { (exit 1); exit 1; }; }
2820 ol_enable_bdb="$ol_arg"
2823 ol_enable_bdb=${ol_enable_backends:-yes}
2826 # OpenLDAP --enable-dnssrv
2828 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2829 if test "${enable_dnssrv+set}" = set; then
2830 enableval="$enable_dnssrv"
2833 for ol_val in no yes mod ; do
2834 if test "$enableval" = "$ol_val" ; then
2838 if test "$ol_arg" = "invalid" ; then
2839 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2841 { (exit 1); exit 1; }; }
2843 ol_enable_dnssrv="$ol_arg"
2846 ol_enable_dnssrv=${ol_enable_backends:-no}
2848 # end --enable-dnssrv
2849 # OpenLDAP --enable-hdb
2851 # Check whether --enable-hdb or --disable-hdb was given.
2852 if test "${enable_hdb+set}" = set; then
2853 enableval="$enable_hdb"
2856 for ol_val in no yes mod ; do
2857 if test "$enableval" = "$ol_val" ; then
2861 if test "$ol_arg" = "invalid" ; then
2862 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2864 { (exit 1); exit 1; }; }
2866 ol_enable_hdb="$ol_arg"
2869 ol_enable_hdb=${ol_enable_backends:-yes}
2872 # OpenLDAP --enable-ldap
2874 # Check whether --enable-ldap or --disable-ldap was given.
2875 if test "${enable_ldap+set}" = set; then
2876 enableval="$enable_ldap"
2879 for ol_val in no yes mod ; do
2880 if test "$enableval" = "$ol_val" ; then
2884 if test "$ol_arg" = "invalid" ; then
2885 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2887 { (exit 1); exit 1; }; }
2889 ol_enable_ldap="$ol_arg"
2892 ol_enable_ldap=${ol_enable_backends:-no}
2895 # OpenLDAP --enable-ldbm
2897 # Check whether --enable-ldbm or --disable-ldbm was given.
2898 if test "${enable_ldbm+set}" = set; then
2899 enableval="$enable_ldbm"
2902 for ol_val in no yes mod ; do
2903 if test "$enableval" = "$ol_val" ; then
2907 if test "$ol_arg" = "invalid" ; then
2908 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2910 { (exit 1); exit 1; }; }
2912 ol_enable_ldbm="$ol_arg"
2915 ol_enable_ldbm=${ol_enable_backends:-no}
2919 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2920 if test "${with_ldbm_api+set}" = set; then
2921 withval="$with_ldbm_api"
2923 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2924 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2925 enable_ldbm_api="$with_ldbm_api"
2927 # OpenLDAP --enable-ldbm_api
2929 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2930 if test "${enable_ldbm_api+set}" = set; then
2931 enableval="$enable_ldbm_api"
2934 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2935 if test "$enableval" = "$ol_val" ; then
2939 if test "$ol_arg" = "invalid" ; then
2940 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2941 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2942 { (exit 1); exit 1; }; }
2944 ol_enable_ldbm_api="$ol_arg"
2947 ol_enable_ldbm_api=auto
2949 # end --enable-ldbm_api
2952 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2953 if test "${with_ldbm_type+set}" = set; then
2954 withval="$with_ldbm_type"
2956 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2957 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2958 enable_ldbm_type="$with_ldbm_type"
2960 # OpenLDAP --enable-ldbm_type
2962 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2963 if test "${enable_ldbm_type+set}" = set; then
2964 enableval="$enable_ldbm_type"
2967 for ol_val in auto btree hash ; do
2968 if test "$enableval" = "$ol_val" ; then
2972 if test "$ol_arg" = "invalid" ; then
2973 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2975 { (exit 1); exit 1; }; }
2977 ol_enable_ldbm_type="$ol_arg"
2980 ol_enable_ldbm_type=auto
2982 # end --enable-ldbm_type
2984 # OpenLDAP --enable-meta
2986 # Check whether --enable-meta or --disable-meta was given.
2987 if test "${enable_meta+set}" = set; then
2988 enableval="$enable_meta"
2991 for ol_val in no yes mod ; do
2992 if test "$enableval" = "$ol_val" ; then
2996 if test "$ol_arg" = "invalid" ; then
2997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2999 { (exit 1); exit 1; }; }
3001 ol_enable_meta="$ol_arg"
3004 ol_enable_meta=${ol_enable_backends:-no}
3007 # OpenLDAP --enable-monitor
3009 # Check whether --enable-monitor or --disable-monitor was given.
3010 if test "${enable_monitor+set}" = set; then
3011 enableval="$enable_monitor"
3014 for ol_val in no yes mod ; do
3015 if test "$enableval" = "$ol_val" ; then
3019 if test "$ol_arg" = "invalid" ; then
3020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3022 { (exit 1); exit 1; }; }
3024 ol_enable_monitor="$ol_arg"
3027 ol_enable_monitor=${ol_enable_backends:-yes}
3029 # end --enable-monitor
3030 # OpenLDAP --enable-null
3032 # Check whether --enable-null or --disable-null was given.
3033 if test "${enable_null+set}" = set; then
3034 enableval="$enable_null"
3037 for ol_val in no yes mod ; do
3038 if test "$enableval" = "$ol_val" ; then
3042 if test "$ol_arg" = "invalid" ; then
3043 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3045 { (exit 1); exit 1; }; }
3047 ol_enable_null="$ol_arg"
3050 ol_enable_null=${ol_enable_backends:-no}
3053 # OpenLDAP --enable-passwd
3055 # Check whether --enable-passwd or --disable-passwd was given.
3056 if test "${enable_passwd+set}" = set; then
3057 enableval="$enable_passwd"
3060 for ol_val in no yes mod ; do
3061 if test "$enableval" = "$ol_val" ; then
3065 if test "$ol_arg" = "invalid" ; then
3066 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3068 { (exit 1); exit 1; }; }
3070 ol_enable_passwd="$ol_arg"
3073 ol_enable_passwd=${ol_enable_backends:-no}
3075 # end --enable-passwd
3076 # OpenLDAP --enable-perl
3078 # Check whether --enable-perl or --disable-perl was given.
3079 if test "${enable_perl+set}" = set; then
3080 enableval="$enable_perl"
3083 for ol_val in no yes mod ; do
3084 if test "$enableval" = "$ol_val" ; then
3088 if test "$ol_arg" = "invalid" ; then
3089 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3091 { (exit 1); exit 1; }; }
3093 ol_enable_perl="$ol_arg"
3096 ol_enable_perl=${ol_enable_backends:-no}
3099 # OpenLDAP --enable-relay
3101 # Check whether --enable-relay or --disable-relay was given.
3102 if test "${enable_relay+set}" = set; then
3103 enableval="$enable_relay"
3106 for ol_val in no yes mod ; do
3107 if test "$enableval" = "$ol_val" ; then
3111 if test "$ol_arg" = "invalid" ; then
3112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3114 { (exit 1); exit 1; }; }
3116 ol_enable_relay="$ol_arg"
3119 ol_enable_relay=${ol_enable_backends:-yes}
3121 # end --enable-relay
3122 # OpenLDAP --enable-shell
3124 # Check whether --enable-shell or --disable-shell was given.
3125 if test "${enable_shell+set}" = set; then
3126 enableval="$enable_shell"
3129 for ol_val in no yes mod ; do
3130 if test "$enableval" = "$ol_val" ; then
3134 if test "$ol_arg" = "invalid" ; then
3135 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3137 { (exit 1); exit 1; }; }
3139 ol_enable_shell="$ol_arg"
3142 ol_enable_shell=${ol_enable_backends:-no}
3144 # end --enable-shell
3145 # OpenLDAP --enable-sql
3147 # Check whether --enable-sql or --disable-sql was given.
3148 if test "${enable_sql+set}" = set; then
3149 enableval="$enable_sql"
3152 for ol_val in no yes mod ; do
3153 if test "$enableval" = "$ol_val" ; then
3157 if test "$ol_arg" = "invalid" ; then
3158 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3160 { (exit 1); exit 1; }; }
3162 ol_enable_sql="$ol_arg"
3165 ol_enable_sql=${ol_enable_backends:-no}
3169 Overlays="accesslog \
3187 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3188 if test "${enable_xxslapoverlays+set}" = set; then
3189 enableval="$enable_xxslapoverlays"
3193 # OpenLDAP --enable-overlays
3195 # Check whether --enable-overlays or --disable-overlays was given.
3196 if test "${enable_overlays+set}" = set; then
3197 enableval="$enable_overlays"
3200 for ol_val in no yes mod ; do
3201 if test "$enableval" = "$ol_val" ; then
3205 if test "$ol_arg" = "invalid" ; then
3206 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3208 { (exit 1); exit 1; }; }
3210 ol_enable_overlays="$ol_arg"
3213 # end --enable-overlays
3214 # OpenLDAP --enable-accesslog
3216 # Check whether --enable-accesslog or --disable-accesslog was given.
3217 if test "${enable_accesslog+set}" = set; then
3218 enableval="$enable_accesslog"
3221 for ol_val in no yes mod ; do
3222 if test "$enableval" = "$ol_val" ; then
3226 if test "$ol_arg" = "invalid" ; then
3227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3229 { (exit 1); exit 1; }; }
3231 ol_enable_accesslog="$ol_arg"
3234 ol_enable_accesslog=${ol_enable_overlays:-no}
3236 # end --enable-accesslog
3238 # OpenLDAP --enable-auditlog
3240 # Check whether --enable-auditlog or --disable-auditlog was given.
3241 if test "${enable_auditlog+set}" = set; then
3242 enableval="$enable_auditlog"
3245 for ol_val in no yes mod ; do
3246 if test "$enableval" = "$ol_val" ; then
3250 if test "$ol_arg" = "invalid" ; then
3251 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_auditlog="$ol_arg"
3258 ol_enable_auditlog=${ol_enable_overlays:-no}
3260 # end --enable-auditlog
3262 # OpenLDAP --enable-dds
3264 # Check whether --enable-dds or --disable-dds was given.
3265 if test "${enable_dds+set}" = set; then
3266 enableval="$enable_dds"
3269 for ol_val in no yes mod ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_dds="$ol_arg"
3282 ol_enable_dds=${ol_enable_overlays:-no}
3286 # OpenLDAP --enable-denyop
3288 # Check whether --enable-denyop or --disable-denyop was given.
3289 if test "${enable_denyop+set}" = set; then
3290 enableval="$enable_denyop"
3293 for ol_val in no yes mod ; do
3294 if test "$enableval" = "$ol_val" ; then
3298 if test "$ol_arg" = "invalid" ; then
3299 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3300 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3301 { (exit 1); exit 1; }; }
3303 ol_enable_denyop="$ol_arg"
3306 ol_enable_denyop=${ol_enable_overlays:-no}
3308 # end --enable-denyop
3310 # OpenLDAP --enable-dyngroup
3312 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3313 if test "${enable_dyngroup+set}" = set; then
3314 enableval="$enable_dyngroup"
3317 for ol_val in no yes mod ; do
3318 if test "$enableval" = "$ol_val" ; then
3322 if test "$ol_arg" = "invalid" ; then
3323 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3324 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3325 { (exit 1); exit 1; }; }
3327 ol_enable_dyngroup="$ol_arg"
3330 ol_enable_dyngroup=${ol_enable_overlays:-no}
3332 # end --enable-dyngroup
3334 # OpenLDAP --enable-dynlist
3336 # Check whether --enable-dynlist or --disable-dynlist was given.
3337 if test "${enable_dynlist+set}" = set; then
3338 enableval="$enable_dynlist"
3341 for ol_val in no yes mod ; do
3342 if test "$enableval" = "$ol_val" ; then
3346 if test "$ol_arg" = "invalid" ; then
3347 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3348 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3349 { (exit 1); exit 1; }; }
3351 ol_enable_dynlist="$ol_arg"
3354 ol_enable_dynlist=${ol_enable_overlays:-no}
3356 # end --enable-dynlist
3358 # OpenLDAP --enable-lastmod
3360 # Check whether --enable-lastmod or --disable-lastmod was given.
3361 if test "${enable_lastmod+set}" = set; then
3362 enableval="$enable_lastmod"
3365 for ol_val in no yes mod ; do
3366 if test "$enableval" = "$ol_val" ; then
3370 if test "$ol_arg" = "invalid" ; then
3371 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3372 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3373 { (exit 1); exit 1; }; }
3375 ol_enable_lastmod="$ol_arg"
3378 ol_enable_lastmod=${ol_enable_overlays:-no}
3380 # end --enable-lastmod
3382 # OpenLDAP --enable-ppolicy
3384 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3385 if test "${enable_ppolicy+set}" = set; then
3386 enableval="$enable_ppolicy"
3389 for ol_val in no yes mod ; do
3390 if test "$enableval" = "$ol_val" ; then
3394 if test "$ol_arg" = "invalid" ; then
3395 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3397 { (exit 1); exit 1; }; }
3399 ol_enable_ppolicy="$ol_arg"
3402 ol_enable_ppolicy=${ol_enable_overlays:-no}
3404 # end --enable-ppolicy
3406 # OpenLDAP --enable-proxycache
3408 # Check whether --enable-proxycache or --disable-proxycache was given.
3409 if test "${enable_proxycache+set}" = set; then
3410 enableval="$enable_proxycache"
3413 for ol_val in no yes mod ; do
3414 if test "$enableval" = "$ol_val" ; then
3418 if test "$ol_arg" = "invalid" ; then
3419 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3420 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3421 { (exit 1); exit 1; }; }
3423 ol_enable_proxycache="$ol_arg"
3426 ol_enable_proxycache=${ol_enable_overlays:-no}
3428 # end --enable-proxycache
3430 # OpenLDAP --enable-refint
3432 # Check whether --enable-refint or --disable-refint was given.
3433 if test "${enable_refint+set}" = set; then
3434 enableval="$enable_refint"
3437 for ol_val in no yes mod ; do
3438 if test "$enableval" = "$ol_val" ; then
3442 if test "$ol_arg" = "invalid" ; then
3443 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3444 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3445 { (exit 1); exit 1; }; }
3447 ol_enable_refint="$ol_arg"
3450 ol_enable_refint=${ol_enable_overlays:-no}
3452 # end --enable-refint
3454 # OpenLDAP --enable-retcode
3456 # Check whether --enable-retcode or --disable-retcode was given.
3457 if test "${enable_retcode+set}" = set; then
3458 enableval="$enable_retcode"
3461 for ol_val in no yes mod ; do
3462 if test "$enableval" = "$ol_val" ; then
3466 if test "$ol_arg" = "invalid" ; then
3467 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3468 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3469 { (exit 1); exit 1; }; }
3471 ol_enable_retcode="$ol_arg"
3474 ol_enable_retcode=${ol_enable_overlays:-no}
3476 # end --enable-retcode
3478 # OpenLDAP --enable-rwm
3480 # Check whether --enable-rwm or --disable-rwm was given.
3481 if test "${enable_rwm+set}" = set; then
3482 enableval="$enable_rwm"
3485 for ol_val in no yes mod ; do
3486 if test "$enableval" = "$ol_val" ; then
3490 if test "$ol_arg" = "invalid" ; then
3491 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3492 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3493 { (exit 1); exit 1; }; }
3495 ol_enable_rwm="$ol_arg"
3498 ol_enable_rwm=${ol_enable_overlays:-no}
3502 # OpenLDAP --enable-seqmod
3504 # Check whether --enable-seqmod or --disable-seqmod was given.
3505 if test "${enable_seqmod+set}" = set; then
3506 enableval="$enable_seqmod"
3509 for ol_val in no yes mod ; do
3510 if test "$enableval" = "$ol_val" ; then
3514 if test "$ol_arg" = "invalid" ; then
3515 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3516 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3517 { (exit 1); exit 1; }; }
3519 ol_enable_seqmod="$ol_arg"
3522 ol_enable_seqmod=${ol_enable_overlays:-yes}
3524 # end --enable-seqmod
3526 # OpenLDAP --enable-syncprov
3528 # Check whether --enable-syncprov or --disable-syncprov was given.
3529 if test "${enable_syncprov+set}" = set; then
3530 enableval="$enable_syncprov"
3533 for ol_val in no yes mod ; do
3534 if test "$enableval" = "$ol_val" ; then
3538 if test "$ol_arg" = "invalid" ; then
3539 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3540 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3541 { (exit 1); exit 1; }; }
3543 ol_enable_syncprov="$ol_arg"
3546 ol_enable_syncprov=${ol_enable_overlays:-yes}
3548 # end --enable-syncprov
3550 # OpenLDAP --enable-translucent
3552 # Check whether --enable-translucent or --disable-translucent was given.
3553 if test "${enable_translucent+set}" = set; then
3554 enableval="$enable_translucent"
3557 for ol_val in no yes mod ; do
3558 if test "$enableval" = "$ol_val" ; then
3562 if test "$ol_arg" = "invalid" ; then
3563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3564 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3565 { (exit 1); exit 1; }; }
3567 ol_enable_translucent="$ol_arg"
3570 ol_enable_translucent=${ol_enable_overlays:-no}
3572 # end --enable-translucent
3574 # OpenLDAP --enable-unique
3576 # Check whether --enable-unique or --disable-unique was given.
3577 if test "${enable_unique+set}" = set; then
3578 enableval="$enable_unique"
3581 for ol_val in no yes mod ; do
3582 if test "$enableval" = "$ol_val" ; then
3586 if test "$ol_arg" = "invalid" ; then
3587 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3588 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3589 { (exit 1); exit 1; }; }
3591 ol_enable_unique="$ol_arg"
3594 ol_enable_unique=${ol_enable_overlays:-no}
3596 # end --enable-unique
3598 # OpenLDAP --enable-valsort
3600 # Check whether --enable-valsort or --disable-valsort was given.
3601 if test "${enable_valsort+set}" = set; then
3602 enableval="$enable_valsort"
3605 for ol_val in no yes mod ; do
3606 if test "$enableval" = "$ol_val" ; then
3610 if test "$ol_arg" = "invalid" ; then
3611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3612 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3613 { (exit 1); exit 1; }; }
3615 ol_enable_valsort="$ol_arg"
3618 ol_enable_valsort=${ol_enable_overlays:-no}
3620 # end --enable-valsort
3623 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3624 if test "${enable_xxslurpdoptions+set}" = set; then
3625 enableval="$enable_xxslurpdoptions"
3628 # OpenLDAP --enable-slurpd
3630 # Check whether --enable-slurpd or --disable-slurpd was given.
3631 if test "${enable_slurpd+set}" = set; then
3632 enableval="$enable_slurpd"
3635 for ol_val in auto yes no ; do
3636 if test "$enableval" = "$ol_val" ; then
3640 if test "$ol_arg" = "invalid" ; then
3641 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3642 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3643 { (exit 1); exit 1; }; }
3645 ol_enable_slurpd="$ol_arg"
3648 ol_enable_slurpd=auto
3650 # end --enable-slurpd
3652 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3653 if test "${enable_xxliboptions+set}" = set; then
3654 enableval="$enable_xxliboptions"
3657 # Check whether --enable-static or --disable-static was given.
3658 if test "${enable_static+set}" = set; then
3659 enableval="$enable_static"
3660 p=${PACKAGE-default}
3662 yes) enable_static=yes ;;
3663 no) enable_static=no ;;
3666 # Look at the argument we got. We use all the common list separators.
3667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3668 for pkg in $enableval; do
3670 if test "X$pkg" = "X$p"; then
3681 # Check whether --enable-shared or --disable-shared was given.
3682 if test "${enable_shared+set}" = set; then
3683 enableval="$enable_shared"
3684 p=${PACKAGE-default}
3686 yes) enable_shared=yes ;;
3687 no) enable_shared=no ;;
3690 # Look at the argument we got. We use all the common list separators.
3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692 for pkg in $enableval; do
3694 if test "X$pkg" = "X$p"; then
3708 if test $ol_enable_slapd = no ; then
3709 if test $ol_enable_slapi = yes ; then
3710 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3711 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3713 case "$ol_enable_backends" in yes | mod)
3714 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3715 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3717 for i in $Backends; do
3718 eval "ol_tmp=\$ol_enable_$i"
3719 if test $ol_tmp != no ; then
3720 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3721 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3722 eval "ol_enable_$i=no"
3725 if test $ol_enable_modules = yes ; then
3726 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3727 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3729 if test $ol_enable_wrappers = yes ; then
3730 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3731 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3733 if test $ol_enable_rlookups = yes ; then
3734 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3735 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3737 if test $ol_enable_dynacl = yes ; then
3738 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3739 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3741 if test $ol_enable_aci != no ; then
3742 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3743 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3745 if test $ol_enable_ldbm_api != auto ; then
3746 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3747 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3749 if test $ol_enable_ldbm_type != auto ; then
3750 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3751 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3753 if test $ol_enable_slurpd = yes ; then
3754 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3755 echo "$as_me: error: slurpd requires slapd" >&2;}
3756 { (exit 1); exit 1; }; }
3758 if test $ol_enable_rewrite = yes ; then
3759 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3760 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3762 case "$ol_enable_overlays" in yes | mod)
3763 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3764 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3766 for i in $Overlays; do
3767 eval "ol_tmp=\$ol_enable_$i"
3768 if test $ol_tmp != no ; then
3769 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3770 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3771 eval "ol_enable_$i=no"
3775 # force settings to no
3780 ol_enable_modules=no
3781 ol_enable_rlookups=no
3784 ol_enable_wrappers=no
3786 ol_enable_ldbm_api=no
3787 ol_enable_ldbm_type=no
3791 ol_enable_rewrite=no
3793 elif test $ol_enable_ldbm = no ; then
3795 if test $ol_enable_ldbm_api != auto ; then
3796 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3797 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3800 if test $ol_enable_ldbm_type != auto ; then
3801 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3802 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3805 if test $ol_enable_modules != yes &&
3806 test $ol_enable_bdb = no &&
3807 test $ol_enable_dnssrv = no &&
3808 test $ol_enable_hdb = no &&
3809 test $ol_enable_ldap = no &&
3810 test $ol_enable_meta = no &&
3811 test $ol_enable_monitor = no &&
3812 test $ol_enable_null = no &&
3813 test $ol_enable_passwd = no &&
3814 test $ol_enable_perl = no &&
3815 test $ol_enable_relay = no &&
3816 test $ol_enable_shell = no &&
3817 test $ol_enable_sql = no ; then
3819 if test $ol_enable_slapd = yes ; then
3820 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3821 echo "$as_me: error: slapd requires a backend" >&2;}
3822 { (exit 1); exit 1; }; }
3824 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3825 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3830 ol_enable_ldbm_api=no
3831 ol_enable_ldbm_type=no
3833 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3834 ol_enable_ldbm_api=berkeley
3838 if test $ol_enable_ldbm_api = gdbm &&
3839 test $ol_enable_ldbm_type = btree ; then
3840 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3841 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3842 { (exit 1); exit 1; }; }
3844 if test $ol_enable_ldbm_api = mdbm &&
3845 test $ol_enable_ldbm_type = btree ; then
3846 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3847 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3848 { (exit 1); exit 1; }; }
3850 if test $ol_enable_ldbm_api = ndbm &&
3851 test $ol_enable_ldbm_type = btree ; then
3852 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3853 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3854 { (exit 1); exit 1; }; }
3857 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3858 if test $ol_enable_ldbm_api = auto ; then
3859 ol_enable_ldbm_api=berkeley
3860 elif test $ol_enable_ldbm_api != berkeley ; then
3861 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3862 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3863 { (exit 1); exit 1; }; }
3868 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3869 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3870 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3871 { (exit 1); exit 1; }; }
3874 if test $ol_enable_slurpd = yes ; then
3875 if test $ol_with_threads = no ; then
3876 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3877 echo "$as_me: error: slurpd requires threads" >&2;}
3878 { (exit 1); exit 1; }; }
3882 if test $ol_enable_lmpasswd = yes ; then
3883 if test $ol_with_tls = no ; then
3884 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3885 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3886 { (exit 1); exit 1; }; }
3890 if test $ol_enable_kbind = yes ; then
3891 if test $ol_with_kerberos = no ; then
3892 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3893 echo "$as_me: error: options require --with-kerberos" >&2;}
3894 { (exit 1); exit 1; }; }
3895 elif test $ol_with_kerberos = auto ; then
3896 ol_with_kerberos=yes
3899 elif test $ol_enable_kbind = no ; then
3900 if test $ol_with_kerberos = auto ; then
3902 elif test $ol_with_kerberos != no ; then
3903 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3904 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3909 if test $ol_enable_spasswd = yes ; then
3910 if test $ol_with_cyrus_sasl = no ; then
3911 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3912 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3913 { (exit 1); exit 1; }; }
3915 ol_with_cyrus_sasl=yes
3918 echo "$as_me:$LINENO: result: done" >&5
3919 echo "${ECHO_T}done" >&6
3965 BUILD_TRANSLUCENT=no
3969 SLAPD_STATIC_OVERLAYS=
3970 SLAPD_DYNAMIC_OVERLAYS=
3972 SLAPD_MODULES_LDFLAGS=
3973 SLAPD_MODULES_CPPFLAGS=
3975 SLAPD_STATIC_BACKENDS=back-ldif
3976 SLAPD_DYNAMIC_BACKENDS=
4002 cat >>confdefs.h <<\_ACEOF
4003 #define HAVE_MKVERSION 1
4011 *-*-aix*) if test -z "$CC" ; then
4012 case "$ol_with_threads" in
4013 auto | yes | posix) ol_aix_threads=yes ;;
4019 if test $ol_aix_threads = yes ; then
4020 if test -z "${CC}" ; then
4021 for ac_prog in cc_r xlc_r cc
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_CC+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$CC"; then
4051 echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 test -n "$CC" && break
4062 if test "$CC" = cc ; then
4063 if test $ol_with_threads != auto ; then
4064 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4065 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4066 { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4069 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4075 case ${CC} in cc_r | xlc_r)
4076 ol_with_threads=posix
4077 ol_cv_pthread_create=yes
4082 if test -z "${CC}"; then
4083 for ac_prog in cc gcc
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_CC+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_CC="$ac_prog"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 echo "$as_me:$LINENO: result: $CC" >&5
4114 echo "${ECHO_T}$CC" >&6
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4120 test -n "$CC" && break
4122 test -n "$CC" || CC="missing"
4125 if test "${CC}" = "missing" ; then
4126 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4127 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4128 { (exit 1); exit 1; }; }
4132 if test -z "${AR}"; then
4133 for ac_prog in ar gar
4135 # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4139 if test "${ac_cv_prog_AR+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 if test -n "$AR"; then
4143 ac_cv_prog_AR="$AR" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_AR="$ac_prog"
4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$AR"; then
4163 echo "$as_me:$LINENO: result: $AR" >&5
4164 echo "${ECHO_T}$AR" >&6
4166 echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6
4170 test -n "$AR" && break
4172 test -n "$AR" || AR="missing"
4175 if test "${AR}" = "missing" ; then
4176 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4177 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4178 { (exit 1); exit 1; }; }
4186 # Check whether --enable-fast-install or --disable-fast-install was given.
4187 if test "${enable_fast_install+set}" = set; then
4188 enableval="$enable_fast_install"
4189 p=${PACKAGE-default}
4191 yes) enable_fast_install=yes ;;
4192 no) enable_fast_install=no ;;
4194 enable_fast_install=no
4195 # Look at the argument we got. We use all the common list separators.
4196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4197 for pkg in $enableval; do
4199 if test "X$pkg" = "X$p"; then
4200 enable_fast_install=yes
4207 enable_fast_install=yes
4210 DEPDIR="${am__leading_dot}deps"
4212 ac_config_commands="$ac_config_commands depfiles"
4215 am_make=${MAKE-make}
4216 cat > confinc << 'END'
4221 # If we don't find an include directive, just comment out the code.
4222 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4223 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4227 # First try GNU make style include.
4228 echo "include confinc" > confmf
4229 # We grep out `Entering directory' and `Leaving directory'
4230 # messages which can occur if `w' ends up in MAKEFLAGS.
4231 # In particular we don't look at `^make:' because GNU make might
4232 # be invoked under some other name (usually "gmake"), in which
4233 # case it prints its new name instead of `make'.
4234 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4239 # Now try BSD make style include.
4240 if test "$am__include" = "#"; then
4241 echo '.include "confinc"' > confmf
4242 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4243 am__include=.include
4250 echo "$as_me:$LINENO: result: $_am_result" >&5
4251 echo "${ECHO_T}$_am_result" >&6
4252 rm -f confinc confmf
4254 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4255 if test "${enable_dependency_tracking+set}" = set; then
4256 enableval="$enable_dependency_tracking"
4259 if test "x$enable_dependency_tracking" != xno; then
4260 am_depcomp="$ac_aux_dir/depcomp"
4265 if test "x$enable_dependency_tracking" != xno; then
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_prog_CC+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 if test -n "$CC"; then
4309 echo "$as_me:$LINENO: result: $CC" >&5
4310 echo "${ECHO_T}$CC" >&6
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4317 if test -z "$ac_cv_prog_CC"; then
4319 # Extract the first word of "gcc", so it can be a program name with args.
4320 set dummy gcc; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$ac_ct_CC"; then
4327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_CC="gcc"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4348 echo "${ECHO_T}$ac_ct_CC" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4359 if test -z "$CC"; then
4360 if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4362 set dummy ${ac_tool_prefix}cc; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_prog_CC+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_CC="${ac_tool_prefix}cc"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 if test -n "$CC"; then
4389 echo "$as_me:$LINENO: result: $CC" >&5
4390 echo "${ECHO_T}$CC" >&6
4392 echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4397 if test -z "$ac_cv_prog_CC"; then
4399 # Extract the first word of "cc", so it can be a program name with args.
4400 set dummy cc; ac_word=$2
4401 echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 if test -n "$ac_ct_CC"; then
4407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_CC="cc"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4426 if test -n "$ac_ct_CC"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4428 echo "${ECHO_T}$ac_ct_CC" >&6
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4440 if test -z "$CC"; then
4441 # Extract the first word of "cc", so it can be a program name with args.
4442 set dummy cc; ac_word=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460 ac_prog_rejected=yes
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 if test $ac_prog_rejected = yes; then
4471 # We found a bogon in the path, so make sure we never use it.
4472 set dummy $ac_cv_prog_CC
4474 if test $# != 0; then
4475 # We chose a different compiler from the bogus one.
4476 # However, it has the same basename, so the bogon will be chosen
4477 # first if we set CC to just the basename; use the full file name.
4479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4485 if test -n "$CC"; then
4486 echo "$as_me:$LINENO: result: $CC" >&5
4487 echo "${ECHO_T}$CC" >&6
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4494 if test -z "$CC"; then
4495 if test -n "$ac_tool_prefix"; then
4498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_prog_CC+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if test -n "$CC"; then
4506 ac_cv_prog_CC="$CC" # Let the user override the test.
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 if test -n "$CC"; then
4526 echo "$as_me:$LINENO: result: $CC" >&5
4527 echo "${ECHO_T}$CC" >&6
4529 echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 test -n "$CC" && break
4536 if test -z "$CC"; then
4540 # Extract the first word of "$ac_prog", so it can be a program name with args.
4541 set dummy $ac_prog; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$ac_ct_CC"; then
4548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_CC="$ac_prog"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4567 if test -n "$ac_ct_CC"; then
4568 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4569 echo "${ECHO_T}$ac_ct_CC" >&6
4571 echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4575 test -n "$ac_ct_CC" && break
4584 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: no acceptable C compiler found in \$PATH
4587 See \`config.log' for more details." >&2;}
4588 { (exit 1); exit 1; }; }
4590 # Provide some information about the compiler.
4591 echo "$as_me:$LINENO:" \
4592 "checking for C compiler version" >&5
4593 ac_compiler=`set X $ac_compile; echo $2`
4594 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4595 (eval $ac_compiler --version </dev/null >&5) 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }
4599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4600 (eval $ac_compiler -v </dev/null >&5) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }
4604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4605 (eval $ac_compiler -V </dev/null >&5) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4625 ac_clean_files_save=$ac_clean_files
4626 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4627 # Try to create an executable without -o first, disregard a.out.
4628 # It will help us diagnose broken compilers, and finding out an intuition
4630 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4631 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4633 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4634 (eval $ac_link_default) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; then
4638 # Find the output, starting from the most likely. This scheme is
4639 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4642 # Be careful to initialize this variable, since it used to be cached.
4643 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4645 # b.out is created by i960 compilers.
4646 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4648 test -f "$ac_file" || continue
4650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4653 # This is the source file.
4656 # We found the default executable, but exeext='' is most
4660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4661 # FIXME: I believe we export ac_cv_exeext for Libtool,
4662 # but it would be cool to find out if it's true. Does anybody
4663 # maintain Libtool? --akim.
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: C compiler cannot create executables
4677 See \`config.log' for more details." >&2;}
4678 { (exit 77); exit 77; }; }
4681 ac_exeext=$ac_cv_exeext
4682 echo "$as_me:$LINENO: result: $ac_file" >&5
4683 echo "${ECHO_T}$ac_file" >&6
4685 # Check the compiler produces executables we can run. If not, either
4686 # the compiler is broken, or we cross compile.
4687 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4688 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4690 # If not cross compiling, check that we can run a simple program.
4691 if test "$cross_compiling" != yes; then
4692 if { ac_try='./$ac_file'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4700 if test "$cross_compiling" = maybe; then
4703 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4704 If you meant to cross compile, use \`--host'.
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot run C compiled programs.
4707 If you meant to cross compile, use \`--host'.
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; }
4713 echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6
4716 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4717 ac_clean_files=$ac_clean_files_save
4718 # Check the compiler produces executables we can run. If not, either
4719 # the compiler is broken, or we cross compile.
4720 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4721 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4722 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4723 echo "${ECHO_T}$cross_compiling" >&6
4725 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4726 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; then
4732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4733 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4734 # work properly (i.e., refer to `conftest.exe'), while it won't with
4736 for ac_file in conftest.exe conftest conftest.*; do
4737 test -f "$ac_file" || continue
4739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4750 See \`config.log' for more details." >&2;}
4751 { (exit 1); exit 1; }; }
4754 rm -f conftest$ac_cv_exeext
4755 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4756 echo "${ECHO_T}$ac_cv_exeext" >&6
4758 rm -f conftest.$ac_ext
4759 EXEEXT=$ac_cv_exeext
4761 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4763 if test "${ac_cv_objext+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4781 rm -f conftest.o conftest.obj
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; then
4787 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4799 See \`config.log' for more details." >&5
4800 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4801 See \`config.log' for more details." >&2;}
4802 { (exit 1); exit 1; }; }
4805 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4807 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4808 echo "${ECHO_T}$ac_cv_objext" >&6
4809 OBJEXT=$ac_cv_objext
4811 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4812 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4813 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4867 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4868 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4869 GCC=`test $ac_compiler_gnu = yes && echo yes`
4870 ac_test_CFLAGS=${CFLAGS+set}
4871 ac_save_CFLAGS=$CFLAGS
4873 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4874 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4875 if test "${ac_cv_prog_cc_g+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4925 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4926 if test "$ac_test_CFLAGS" = set; then
4927 CFLAGS=$ac_save_CFLAGS
4928 elif test $ac_cv_prog_cc_g = yes; then
4929 if test "$GCC" = yes; then
4935 if test "$GCC" = yes; then
4941 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4942 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4943 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_prog_cc_stdc=no
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 #include <sys/stat.h>
4958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4959 struct buf { int x; };
4960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4961 static char *e (p, i)
4967 static char *f (char * (*g) (char **, int), char **p, ...)
4972 s = g (p, va_arg (v,int));
4977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4978 function prototypes and stuff, but not '\xHH' hex character constants.
4979 These don't provoke an error unfortunately, instead are silently treated
4980 as 'x'. The following induces an error, until -std1 is added to get
4981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4982 array size at least. It's necessary to write '\x00'==0 to get something
4983 that's true only with -std1. */
4984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4986 int test (int i, double x);
4987 struct s1 {int (*f) (int a);};
4988 struct s2 {int (*f) (double a);};
4989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5000 # Don't try gcc -ansi; that turns off useful extensions and
5001 # breaks some systems' header files.
5002 # AIX -qlanglvl=ansi
5003 # Ultrix and OSF/1 -std1
5004 # HP-UX 10.20 and later -Ae
5005 # HP-UX older versions -Aa -D_HPUX_SOURCE
5006 # SVR4 -Xc -D__EXTENSIONS__
5007 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5009 CC="$ac_save_CC $ac_arg"
5010 rm -f conftest.$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_prog_cc_stdc=$ac_arg
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5039 rm -f conftest.err conftest.$ac_objext
5041 rm -f conftest.$ac_ext conftest.$ac_objext
5046 case "x$ac_cv_prog_cc_stdc" in
5048 echo "$as_me:$LINENO: result: none needed" >&5
5049 echo "${ECHO_T}none needed" >&6 ;;
5051 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5052 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5053 CC="$CC $ac_cv_prog_cc_stdc" ;;
5056 # Some people use a C++ compiler to compile C. Since we use `exit',
5057 # in C++ we need to declare it. In case someone uses the same compiler
5058 # for both compiling C and C++ we need to have the C++ compiler decide
5059 # the declaration of exit, since it's the most demanding environment.
5060 cat >conftest.$ac_ext <<_ACEOF
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
5087 for ac_declaration in \
5089 'extern "C" void std::exit (int) throw (); using std::exit;' \
5090 'extern "C" void std::exit (int); using std::exit;' \
5091 'extern "C" void exit (int) throw ();' \
5092 'extern "C" void exit (int);' \
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try='test -s conftest.$ac_objext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141 cat >conftest.$ac_ext <<_ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -z "$ac_c_werror_flag"
5166 || test ! -s conftest.err'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; } &&
5172 { ac_try='test -s conftest.$ac_objext'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5187 if test -n "$ac_declaration"; then
5188 echo '#ifdef __cplusplus' >>confdefs.h
5189 echo $ac_declaration >>confdefs.h
5190 echo '#endif' >>confdefs.h
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 depcc="$CC" am_compiler_list=
5207 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5208 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5209 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5213 # We make a subdir and do the tests there. Otherwise we can end up
5214 # making bogus files that we don't know about and never remove. For
5215 # instance it was reported that on HP-UX the gcc test will end up
5216 # making a dummy file named `D' -- because `-MD' means `put the output
5219 # Copy depcomp to subdir because otherwise we won't find it if we're
5220 # using a relative directory.
5221 cp "$am_depcomp" conftest.dir
5223 # We will build objects and dependencies in a subdirectory because
5224 # it helps to detect inapplicable dependency modes. For instance
5225 # both Tru64's cc and ICC support -MD to output dependencies as a
5226 # side effect of compilation, but ICC will put the dependencies in
5227 # the current directory while Tru64 will put them in the object
5231 am_cv_CC_dependencies_compiler_type=none
5232 if test "$am_compiler_list" = ""; then
5233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5235 for depmode in $am_compiler_list; do
5236 # Setup a source with many dependencies, because some compilers
5237 # like to wrap large dependency lists on column 80 (with \), and
5238 # we should not choose a depcomp mode which is confused by this.
5240 # We need to recreate these files for each test, as the compiler may
5241 # overwrite some of them when testing with obscure command lines.
5242 # This happens at least with the AIX C compiler.
5244 for i in 1 2 3 4 5 6; do
5245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5246 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5247 # Solaris 8's {/usr,}/bin/sh.
5248 touch sub/conftst$i.h
5250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5254 # after this tag, mechanisms are not by side-effect, so they'll
5255 # only be used when explicitly requested
5256 if test "x$enable_dependency_tracking" = xyes; then
5264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5265 # mode. It turns out that the SunPro C++ compiler does not properly
5266 # handle `-M -o', and we need to detect this.
5267 if depmode=$depmode \
5268 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5270 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5271 >/dev/null 2>conftest.err &&
5272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5273 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5275 # icc doesn't choke on unknown options, it will just issue warnings
5276 # or remarks (even with -Werror). So we grep stderr for any message
5277 # that says an option was ignored or not supported.
5278 # When given -MP, icc 7.0 and 7.1 complain thusly:
5279 # icc: Command line warning: ignoring option '-M'; no argument required
5280 # The diagnosis changed in icc 8.0:
5281 # icc: Command line remark: option '-MP' not supported
5282 if (grep 'ignoring option' conftest.err ||
5283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5284 am_cv_CC_dependencies_compiler_type=$depmode
5293 am_cv_CC_dependencies_compiler_type=none
5297 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5298 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5299 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5304 test "x$enable_dependency_tracking" != xno \
5305 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5307 am__fastdepCC_FALSE='#'
5309 am__fastdepCC_TRUE='#'
5310 am__fastdepCC_FALSE=
5314 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5315 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5316 if test "${lt_cv_path_SED+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 # Loop through the user's path and test for sed and gsed.
5320 # Then use that list of sed's as ones to test for truncation.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir=.
5326 for lt_ac_prog in sed gsed; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5329 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5336 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5337 # along with /bin/sed that truncates output.
5338 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5339 test ! -f $lt_ac_sed && continue
5340 cat /dev/null > conftest.in
5342 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5343 # Check for GNU sed and select it if it is found.
5344 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5345 lt_cv_path_SED=$lt_ac_sed
5349 cat conftest.in conftest.in >conftest.tmp
5350 mv conftest.tmp conftest.in
5351 cp conftest.in conftest.nl
5353 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5354 cmp -s conftest.out conftest.nl || break
5355 # 10000 chars as input seems more than enough
5356 test $lt_ac_count -gt 10 && break
5357 lt_ac_count=`expr $lt_ac_count + 1`
5358 if test $lt_ac_count -gt $lt_ac_max; then
5359 lt_ac_max=$lt_ac_count
5360 lt_cv_path_SED=$lt_ac_sed
5368 echo "$as_me:$LINENO: result: $SED" >&5
5369 echo "${ECHO_T}$SED" >&6
5371 echo "$as_me:$LINENO: checking for egrep" >&5
5372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5373 if test "${ac_cv_prog_egrep+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5377 then ac_cv_prog_egrep='grep -E'
5378 else ac_cv_prog_egrep='egrep'
5381 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5382 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5383 EGREP=$ac_cv_prog_egrep
5387 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5388 if test "${with_gnu_ld+set}" = set; then
5389 withval="$with_gnu_ld"
5390 test "$withval" = no || with_gnu_ld=yes
5395 if test "$GCC" = yes; then
5396 # Check if gcc -print-prog-name=ld gives a path.
5397 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5398 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5401 # gcc leaves a trailing carriage return which upsets mingw
5402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5407 # Accept absolute paths.
5409 re_direlt='/[^/][^/]*/\.\./'
5410 # Canonicalize the pathname of ld
5411 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5413 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5415 test -z "$LD" && LD="$ac_prog"
5418 # If it fails, then pretend we aren't using GCC.
5422 # If it is relative, then search for the first ld in PATH.
5426 elif test "$with_gnu_ld" = yes; then
5427 echo "$as_me:$LINENO: checking for GNU ld" >&5
5428 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5430 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5431 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5433 if test "${lt_cv_path_LD+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 if test -z "$LD"; then
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH; do
5440 test -z "$ac_dir" && ac_dir=.
5441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5442 lt_cv_path_LD="$ac_dir/$ac_prog"
5443 # Check to see if the program is GNU ld. I'd rather use --version,
5444 # but apparently some variants of GNU ld only accept -v.
5445 # Break only if it was the GNU/non-GNU ld that we prefer.
5446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5447 *GNU* | *'with BFD'*)
5448 test "$with_gnu_ld" != no && break
5451 test "$with_gnu_ld" != yes && break
5458 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5463 if test -n "$LD"; then
5464 echo "$as_me:$LINENO: result: $LD" >&5
5465 echo "${ECHO_T}$LD" >&6
5467 echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5470 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5471 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5472 { (exit 1); exit 1; }; }
5473 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5474 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5475 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5479 case `$LD -v 2>&1 </dev/null` in
5480 *GNU* | *'with BFD'*)
5481 lt_cv_prog_gnu_ld=yes
5484 lt_cv_prog_gnu_ld=no
5488 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5489 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5490 with_gnu_ld=$lt_cv_prog_gnu_ld
5493 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5494 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5495 if test "${lt_cv_ld_reload_flag+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 lt_cv_ld_reload_flag='-r'
5500 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5501 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5502 reload_flag=$lt_cv_ld_reload_flag
5503 case $reload_flag in
5505 *) reload_flag=" $reload_flag" ;;
5507 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5510 if test "$GCC" = yes; then
5511 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5518 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5519 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5520 if test "${lt_cv_path_NM+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 if test -n "$NM"; then
5524 # Let the user override the test.
5527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5528 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5530 test -z "$ac_dir" && ac_dir=.
5531 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5532 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5533 # Check to see if the nm accepts a BSD-compat flag.
5534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5535 # nm: unknown option "B" ignored
5536 # Tru64's nm complains that /dev/null is an invalid object file
5537 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5538 */dev/null* | *'Invalid file or object type'*)
5539 lt_cv_path_NM="$tmp_nm -B"
5543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5545 lt_cv_path_NM="$tmp_nm -p"
5549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5550 continue # so that we can try to find one that supports BSD flags
5557 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5560 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5561 echo "${ECHO_T}$lt_cv_path_NM" >&6
5564 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5565 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5567 if test "$LN_S" = "ln -s"; then
5568 echo "$as_me:$LINENO: result: yes" >&5
5569 echo "${ECHO_T}yes" >&6
5571 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5572 echo "${ECHO_T}no, using $LN_S" >&6
5575 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5576 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5577 if test "${lt_cv_deplibs_check_method+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 lt_cv_file_magic_cmd='$MAGIC_CMD'
5581 lt_cv_file_magic_test_file=
5582 lt_cv_deplibs_check_method='unknown'
5583 # Need to set the preceding variable on all platforms that support
5584 # interlibrary dependencies.
5585 # 'none' -- dependencies not supported.
5586 # `unknown' -- same as none, but documents that we really don't know.
5587 # 'pass_all' -- all dependencies passed with no checks.
5588 # 'test_compile' -- check by making test program.
5589 # 'file_magic [[regex]]' -- check by looking for files in library path
5590 # which responds to the $file_magic_cmd with a given extended regex.
5591 # If you have `file' or equivalent on your system and you're not sure
5592 # whether `pass_all' will *always* work, you probably want this one.
5596 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_deplibs_check_method=pass_all
5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5605 lt_cv_file_magic_cmd='/usr/bin/file -L'
5606 lt_cv_file_magic_test_file=/shlib/libc.so
5610 # func_win32_libid is a shell function defined in ltmain.sh
5611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5612 lt_cv_file_magic_cmd='func_win32_libid'
5616 # Base MSYS/MinGW do not provide the 'file' command needed by
5617 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5619 lt_cv_file_magic_cmd='$OBJDUMP -f'
5622 darwin* | rhapsody*)
5623 lt_cv_deplibs_check_method=pass_all
5626 freebsd* | kfreebsd*-gnu | dragonfly*)
5627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5630 # Not sure whether the presence of OpenBSD here was a mistake.
5631 # Let's accept both of them until this is cleared up.
5632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5633 lt_cv_file_magic_cmd=/usr/bin/file
5634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5638 lt_cv_deplibs_check_method=pass_all
5643 lt_cv_deplibs_check_method=pass_all
5646 hpux10.20* | hpux11*)
5647 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5651 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5654 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]'
5655 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5659 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5664 irix5* | irix6* | nonstopux*)
5666 *-32|*"-32 ") libmagic=32-bit;;
5667 *-n32|*"-n32 ") libmagic=N32;;
5668 *-64|*"-64 ") libmagic=64-bit;;
5669 *) libmagic=never-match;;
5671 lt_cv_deplibs_check_method=pass_all
5674 # This must be Linux ELF.
5676 lt_cv_deplibs_check_method=pass_all
5680 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5689 lt_cv_file_magic_cmd=/usr/bin/file
5690 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5694 lt_cv_deplibs_check_method=unknown
5698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5705 osf3* | osf4* | osf5*)
5706 lt_cv_deplibs_check_method=pass_all
5710 lt_cv_deplibs_check_method=pass_all
5714 lt_cv_deplibs_check_method=pass_all
5717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5718 case $host_vendor in
5720 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]'
5721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5724 lt_cv_deplibs_check_method=pass_all
5727 lt_cv_file_magic_cmd='/bin/file'
5728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5731 lt_cv_file_magic_cmd='/bin/file'
5732 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5733 lt_cv_file_magic_test_file=/lib/libc.so
5736 lt_cv_deplibs_check_method=pass_all
5741 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5742 lt_cv_deplibs_check_method=pass_all
5747 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5748 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5749 file_magic_cmd=$lt_cv_file_magic_cmd
5750 deplibs_check_method=$lt_cv_deplibs_check_method
5751 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5756 # If no C compiler was specified, use CC.
5759 # Allow CC to be a program name with arguments.
5763 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5764 if test "${enable_libtool_lock+set}" = set; then
5765 enableval="$enable_libtool_lock"
5768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5770 # Some flags need to be propagated to the compiler or linker for good
5774 # Find out which ABI we are using.
5775 echo 'int i;' > conftest.$ac_ext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then
5781 case `/usr/bin/file conftest.$ac_objext` in
5793 # Find out which ABI we are using.
5794 echo '#line 5794 "configure"' > conftest.$ac_ext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; then
5800 if test "$lt_cv_prog_gnu_ld" = yes; then
5801 case `/usr/bin/file conftest.$ac_objext` in
5803 LD="${LD-ld} -melf32bsmip"
5806 LD="${LD-ld} -melf32bmipn32"
5809 LD="${LD-ld} -melf64bmip"
5813 case `/usr/bin/file conftest.$ac_objext` in
5829 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5830 # Find out which ABI we are using.
5831 echo 'int i;' > conftest.$ac_ext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; then
5837 case `/usr/bin/file conftest.o` in
5841 LD="${LD-ld} -m elf_i386"
5843 ppc64-*linux*|powerpc64-*linux*)
5844 LD="${LD-ld} -m elf32ppclinux"
5847 LD="${LD-ld} -m elf_s390"
5850 LD="${LD-ld} -m elf32_sparc"
5857 LD="${LD-ld} -m elf_x86_64"
5859 ppc*-*linux*|powerpc*-*linux*)
5860 LD="${LD-ld} -m elf64ppc"
5863 LD="${LD-ld} -m elf64_s390"
5866 LD="${LD-ld} -m elf64_sparc"
5876 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5877 SAVE_CFLAGS="$CFLAGS"
5878 CFLAGS="$CFLAGS -belf"
5879 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5880 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5881 if test "${lt_cv_cc_needs_belf+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 lt_cv_cc_needs_belf=yes
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 lt_cv_cc_needs_belf=no
5934 rm -f conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5944 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5945 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5946 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5947 CFLAGS="$SAVE_CFLAGS"
5950 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5951 if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$DLLTOOL"; then
5960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 DLLTOOL=$ac_cv_prog_DLLTOOL
5979 if test -n "$DLLTOOL"; then
5980 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5981 echo "${ECHO_T}$DLLTOOL" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5988 if test -z "$ac_cv_prog_DLLTOOL"; then
5989 ac_ct_DLLTOOL=$DLLTOOL
5990 # Extract the first word of "dlltool", so it can be a program name with args.
5991 set dummy dlltool; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if test -n "$ac_ct_DLLTOOL"; then
5998 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
6017 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6018 if test -n "$ac_ct_DLLTOOL"; then
6019 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6020 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6026 DLLTOOL=$ac_ct_DLLTOOL
6028 DLLTOOL="$ac_cv_prog_DLLTOOL"
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}as; ac_word=$2
6034 echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036 if test "${ac_cv_prog_AS+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 if test -n "$AS"; then
6040 ac_cv_prog_AS="$AS" # Let the user override the test.
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_AS="${ac_tool_prefix}as"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 if test -n "$AS"; then
6060 echo "$as_me:$LINENO: result: $AS" >&5
6061 echo "${ECHO_T}$AS" >&6
6063 echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6
6068 if test -z "$ac_cv_prog_AS"; then
6070 # Extract the first word of "as", so it can be a program name with args.
6071 set dummy as; ac_word=$2
6072 echo "$as_me:$LINENO: checking for $ac_word" >&5
6073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 if test -n "$ac_ct_AS"; then
6078 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_ac_ct_AS="as"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6097 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6098 if test -n "$ac_ct_AS"; then
6099 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6100 echo "${ECHO_T}$ac_ct_AS" >&6
6102 echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6114 echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 if test -n "$OBJDUMP"; then
6120 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 OBJDUMP=$ac_cv_prog_OBJDUMP
6139 if test -n "$OBJDUMP"; then
6140 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6141 echo "${ECHO_T}$OBJDUMP" >&6
6143 echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6148 if test -z "$ac_cv_prog_OBJDUMP"; then
6149 ac_ct_OBJDUMP=$OBJDUMP
6150 # Extract the first word of "objdump", so it can be a program name with args.
6151 set dummy objdump; ac_word=$2
6152 echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if test -n "$ac_ct_OBJDUMP"; then
6158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6177 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6178 if test -n "$ac_ct_OBJDUMP"; then
6179 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6180 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6182 echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6186 OBJDUMP=$ac_ct_OBJDUMP
6188 OBJDUMP="$ac_cv_prog_OBJDUMP"
6195 need_locks="$enable_libtool_lock"
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6205 # On Suns, sometimes $CPP names a directory.
6206 if test -n "$CPP" && test -d "$CPP"; then
6209 if test -z "$CPP"; then
6210 if test "${ac_cv_prog_CPP+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 # Double quotes because CPP needs to be expanded
6214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6217 for ac_c_preproc_warn_flag in '' yes
6219 # Use a header file that comes with gcc, so configuring glibc
6220 # with a fresh cross-compiler works.
6221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6222 # <limits.h> exists even on freestanding compilers.
6223 # On the NeXT, cc -E runs the code through the compiler's parser,
6224 # not just through cpp. "Syntax error" is here to catch this case.
6225 cat >conftest.$ac_ext <<_ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 # include <limits.h>
6234 # include <assert.h>
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241 grep -v '^ *+' conftest.er1 >conftest.err
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_c_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6255 if test -z "$ac_cpp_err"; then
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 # Broken: fails on valid input.
6264 rm -f conftest.err conftest.$ac_ext
6266 # OK, works on sane cases. Now check whether non-existent headers
6267 # can be detected and how.
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <ac_nonexistent.h>
6276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } >/dev/null; then
6284 if test -s conftest.err; then
6285 ac_cpp_err=$ac_c_preproc_warn_flag
6286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6293 if test -z "$ac_cpp_err"; then
6294 # Broken: success on invalid input.
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 # Passes both tests.
6304 rm -f conftest.err conftest.$ac_ext
6307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6308 rm -f conftest.err conftest.$ac_ext
6309 if $ac_preproc_ok; then
6321 echo "$as_me:$LINENO: result: $CPP" >&5
6322 echo "${ECHO_T}$CPP" >&6
6324 for ac_c_preproc_warn_flag in '' yes
6326 # Use a header file that comes with gcc, so configuring glibc
6327 # with a fresh cross-compiler works.
6328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329 # <limits.h> exists even on freestanding compilers.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 # include <limits.h>
6341 # include <assert.h>
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_c_preproc_warn_flag
6355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6362 if test -z "$ac_cpp_err"; then
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 # Broken: fails on valid input.
6371 rm -f conftest.err conftest.$ac_ext
6373 # OK, works on sane cases. Now check whether non-existent headers
6374 # can be detected and how.
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 #include <ac_nonexistent.h>
6383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } >/dev/null; then
6391 if test -s conftest.err; then
6392 ac_cpp_err=$ac_c_preproc_warn_flag
6393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6400 if test -z "$ac_cpp_err"; then
6401 # Broken: success on invalid input.
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 # Passes both tests.
6411 rm -f conftest.err conftest.$ac_ext
6414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6415 rm -f conftest.err conftest.$ac_ext
6416 if $ac_preproc_ok; then
6419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6420 See \`config.log' for more details." >&5
6421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6422 See \`config.log' for more details." >&2;}
6423 { (exit 1); exit 1; }; }
6427 ac_cpp='$CPP $CPPFLAGS'
6428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6433 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6434 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6435 if test "${ac_cv_header_stdc+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1 >conftest.err
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_header_stdc=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_cv_header_stdc=no
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 if test $ac_cv_header_stdc = yes; then
6489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 $EGREP "memchr" >/dev/null 2>&1; then
6503 ac_cv_header_stdc=no
6509 if test $ac_cv_header_stdc = yes; then
6510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521 $EGREP "free" >/dev/null 2>&1; then
6524 ac_cv_header_stdc=no
6530 if test $ac_cv_header_stdc = yes; then
6531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6532 if test "$cross_compiling" = yes; then
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 #if ((' ' & 0x0FF) == 0x020)
6543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6546 # define ISLOWER(c) \
6547 (('a' <= (c) && (c) <= 'i') \
6548 || ('j' <= (c) && (c) <= 'r') \
6549 || ('s' <= (c) && (c) <= 'z'))
6550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6558 for (i = 0; i < 256; i++)
6559 if (XOR (islower (i), ISLOWER (i))
6560 || toupper (i) != TOUPPER (i))
6565 rm -f conftest$ac_exeext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567 (eval $ac_link) 2>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6578 echo "$as_me: program exited with status $ac_status" >&5
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_cv_header_stdc=no
6585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6590 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6591 if test $ac_cv_header_stdc = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define STDC_HEADERS 1
6599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6610 inttypes.h stdint.h unistd.h
6612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 echo "$as_me:$LINENO: checking for $ac_header" >&5
6614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6626 #include <$ac_header>
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_Header=yes"
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 eval "$as_ac_Header=no"
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672 for ac_header in dlfcn.h
6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6676 echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6684 # Is the header compilable?
6685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 $ac_includes_default
6694 #include <$ac_header>
6696 rm -f conftest.$ac_objext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag"
6706 || test ! -s conftest.err'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; } &&
6712 { ac_try='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_header_compiler=yes
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_header_compiler=no
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6
6729 # Is the header present?
6730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } >/dev/null; then
6748 if test -s conftest.err; then
6749 ac_cpp_err=$ac_c_preproc_warn_flag
6750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6757 if test -z "$ac_cpp_err"; then
6758 ac_header_preproc=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_header_preproc=no
6765 rm -f conftest.err conftest.$ac_ext
6766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6767 echo "${ECHO_T}$ac_header_preproc" >&6
6769 # So? What about this header?
6770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6776 ac_header_preproc=yes
6779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6793 ## --------------------------------------------- ##
6794 ## Report this to <http://www.openldap.org/its/> ##
6795 ## --------------------------------------------- ##
6798 sed "s/^/$as_me: WARNING: /" >&2
6801 echo "$as_me:$LINENO: checking for $ac_header" >&5
6802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 eval "$as_ac_Header=\$ac_header_preproc"
6808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6813 cat >>confdefs.h <<_ACEOF
6814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6822 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6824 # find the maximum length of command line arguments
6825 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6826 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6827 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 # On DJGPP, this test can blow up pretty badly due to problems in libc
6836 # (any single argument exceeding 2000 bytes causes a buffer overrun
6837 # during glob expansion). Even if it were fixed, the result of this
6838 # check would be larger than it should be.
6839 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6843 # Under GNU Hurd, this test is not required because there is
6844 # no limit to the length of command line arguments.
6845 # Libtool will interpret -1 as no limit whatsoever
6846 lt_cv_sys_max_cmd_len=-1;
6850 # On Win9x/ME, this test blows up -- it succeeds, but takes
6851 # about 5 minutes as the teststring grows exponentially.
6852 # Worse, since 9x/ME are not pre-emptively multitasking,
6853 # you end up with a "frozen" computer, even though with patience
6854 # the test eventually succeeds (with a max line length of 256k).
6855 # Instead, let's just punt: use the minimum linelength reported by
6856 # all of the supported platforms: 8192 (on NT/2K/XP).
6857 lt_cv_sys_max_cmd_len=8192;
6861 # On AmigaOS with pdksh, this test takes hours, literally.
6862 # So we just punt and use a minimum line length of 8192.
6863 lt_cv_sys_max_cmd_len=8192;
6866 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6867 # This has been around since 386BSD, at least. Likely further.
6868 if test -x /sbin/sysctl; then
6869 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6870 elif test -x /usr/sbin/sysctl; then
6871 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6873 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6875 # And add a safety zone
6876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6882 # nice to cause kernel panics so lets avoid the loop below.
6883 # First set a reasonable default.
6884 lt_cv_sys_max_cmd_len=16384
6886 if test -x /sbin/sysconfig; then
6887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6893 # If test is not a shell built-in, we'll probably end up computing a
6894 # maximum length that is only half of the actual maximum length, but
6896 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6897 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6898 = "XX$teststring") >/dev/null 2>&1 &&
6899 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6900 lt_cv_sys_max_cmd_len=$new_result &&
6901 test $i != 17 # 1/2 MB should be enough
6904 teststring=$teststring$teststring
6907 # Add a significant safety factor because C++ compilers can tack on massive
6908 # amounts of additional arguments before passing them to the linker.
6909 # It appears as though 1/2 is a usable value.
6910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6916 if test -n $lt_cv_sys_max_cmd_len ; then
6917 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6918 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6920 echo "$as_me:$LINENO: result: none" >&5
6921 echo "${ECHO_T}none" >&6
6927 # Check for command to grab the raw symbol name followed by C symbol from nm.
6928 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6929 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6930 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 # These are sane defaults that work on at least a few old systems.
6935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6937 # Character class describing NM global symbol codes.
6938 symcode='[BCDEGRST]'
6940 # Regexp to match symbols that can be accessed directly from C.
6941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943 # Transform an extracted symbol line into a proper C declaration
6944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6946 # Transform an extracted symbol line into symbol name and symbol address
6947 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'"
6949 # Define system-specific variables.
6954 cygwin* | mingw* | pw32*)
6955 symcode='[ABCDGISTW]'
6957 hpux*) # Its linker distinguishes data from code symbols
6958 if test "$host_cpu" = ia64; then
6959 symcode='[ABCDEGRST]'
6961 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6962 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'"
6965 if test "$host_cpu" = ia64; then
6966 symcode='[ABCDGIRSTW]'
6967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6968 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'"
6972 symcode='[BCDEGRST]'
6975 symcode='[BCDEGQRST]'
6985 # Handle CRLF in mingw tool chain
6989 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6993 # If we're using GNU nm, then use its standard symbol codes.
6994 case `$NM -V 2>&1` in
6995 *GNU* | *'with BFD'*)
6996 symcode='[ABCDGIRSTW]' ;;
6999 # Try without a prefix undercore, then with it.
7000 for ac_symprfx in "" "_"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7008 # Check to see that the pipe works correctly.
7012 cat > conftest.$ac_ext <<EOF
7017 void nm_test_func(){}
7021 int main(){nm_test_var='a';nm_test_func();return(0);}
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; then
7029 # Now try to grab the symbols.
7031 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7032 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && test -s "$nlist"; then
7036 # Try sorting and uniquifying the output.
7037 if sort "$nlist" | uniq > "$nlist"T; then
7038 mv -f "$nlist"T "$nlist"
7043 # Make sure that we snagged all the symbols we need.
7044 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7045 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7046 cat <<EOF > conftest.$ac_ext
7052 # Now generate the symbol file.
7053 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7055 cat <<EOF >> conftest.$ac_ext
7056 #if defined (__STDC__) && __STDC__
7057 # define lt_ptr_t void *
7059 # define lt_ptr_t char *
7063 /* The mapping between symbol names and symbols. */
7068 lt_preloaded_symbols[] =
7071 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7072 cat <<\EOF >> conftest.$ac_ext
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7096 echo "cannot find nm_test_func in $nlist" >&5
7099 echo "cannot find nm_test_var in $nlist" >&5
7102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7105 echo "$progname: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 rm -f conftest* conftst*
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7114 lt_cv_sys_global_symbol_pipe=
7120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124 echo "$as_me:$LINENO: result: failed" >&5
7125 echo "${ECHO_T}failed" >&6
7127 echo "$as_me:$LINENO: result: ok" >&5
7128 echo "${ECHO_T}ok" >&6
7131 echo "$as_me:$LINENO: checking for objdir" >&5
7132 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7133 if test "${lt_cv_objdir+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 rm -f .libs 2>/dev/null
7137 mkdir .libs 2>/dev/null
7138 if test -d .libs; then
7141 # MS-DOS does not allow filenames that begin with a dot.
7144 rmdir .libs 2>/dev/null
7146 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7147 echo "${ECHO_T}$lt_cv_objdir" >&6
7148 objdir=$lt_cv_objdir
7156 # AIX sometimes has problems with the GCC collect2 program. For some
7157 # reason, if we set the COLLECT_NAMES environment variable, the problems
7158 # vanish in a puff of smoke.
7159 if test "X${COLLECT_NAMES+set}" != Xset; then
7161 export COLLECT_NAMES
7166 # Sed substitution that helps us do robust quoting. It backslashifies
7167 # metacharacters that are still active within double-quoted strings.
7168 Xsed='sed -e 1s/^X//'
7169 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7171 # Same as above, but do not quote variable references.
7172 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7174 # Sed substitution to delay expansion of an escaped shell variable in a
7175 # double_quote_subst'ed string.
7176 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7178 # Sed substitution to avoid accidental globbing in evaled expressions
7179 no_glob_subst='s/\*/\\\*/g'
7185 default_ofile=libtool
7186 can_build_shared=yes
7188 # All known linkers require a `.a' archive for static linking (except MSVC,
7189 # which needs '.lib').
7191 ltmain="$ac_aux_dir/ltmain.sh"
7192 ofile="$default_ofile"
7193 with_gnu_ld="$lt_cv_prog_gnu_ld"
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}ar; ac_word=$2
7198 echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7200 if test "${ac_cv_prog_AR+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_AR="${ac_tool_prefix}ar"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 if test -n "$AR"; then
7224 echo "$as_me:$LINENO: result: $AR" >&5
7225 echo "${ECHO_T}$AR" >&6
7227 echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7232 if test -z "$ac_cv_prog_AR"; then
7234 # Extract the first word of "ar", so it can be a program name with args.
7235 set dummy ar; ac_word=$2
7236 echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7238 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 if test -n "$ac_ct_AR"; then
7242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_AR="ar"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7262 if test -n "$ac_ct_AR"; then
7263 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7264 echo "${ECHO_T}$ac_ct_AR" >&6
7266 echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7275 if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7278 echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7280 if test "${ac_cv_prog_RANLIB+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 if test -n "$RANLIB"; then
7284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 RANLIB=$ac_cv_prog_RANLIB
7303 if test -n "$RANLIB"; then
7304 echo "$as_me:$LINENO: result: $RANLIB" >&5
7305 echo "${ECHO_T}$RANLIB" >&6
7307 echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6
7312 if test -z "$ac_cv_prog_RANLIB"; then
7313 ac_ct_RANLIB=$RANLIB
7314 # Extract the first word of "ranlib", so it can be a program name with args.
7315 set dummy ranlib; ac_word=$2
7316 echo "$as_me:$LINENO: checking for $ac_word" >&5
7317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 if test -n "$ac_ct_RANLIB"; then
7322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_RANLIB="ranlib"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7342 if test -n "$ac_ct_RANLIB"; then
7343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7344 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7350 RANLIB=$ac_ct_RANLIB
7352 RANLIB="$ac_cv_prog_RANLIB"
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}strip; ac_word=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_prog_STRIP+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 if test -n "$STRIP"; then
7364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 STRIP=$ac_cv_prog_STRIP
7383 if test -n "$STRIP"; then
7384 echo "$as_me:$LINENO: result: $STRIP" >&5
7385 echo "${ECHO_T}$STRIP" >&6
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7392 if test -z "$ac_cv_prog_STRIP"; then
7394 # Extract the first word of "strip", so it can be a program name with args.
7395 set dummy strip; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 if test -n "$ac_ct_STRIP"; then
7402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_STRIP="strip"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7422 if test -n "$ac_ct_STRIP"; then
7423 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7424 echo "${ECHO_T}$ac_ct_STRIP" >&6
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7432 STRIP="$ac_cv_prog_STRIP"
7437 old_CFLAGS="$CFLAGS"
7439 # Set sane defaults for various variables
7440 test -z "$AR" && AR=ar
7441 test -z "$AR_FLAGS" && AR_FLAGS=cru
7442 test -z "$AS" && AS=as
7443 test -z "$CC" && CC=cc
7444 test -z "$LTCC" && LTCC=$CC
7445 test -z "$DLLTOOL" && DLLTOOL=dlltool
7446 test -z "$LD" && LD=ld
7447 test -z "$LN_S" && LN_S="ln -s"
7448 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7449 test -z "$NM" && NM=nm
7450 test -z "$SED" && SED=sed
7451 test -z "$OBJDUMP" && OBJDUMP=objdump
7452 test -z "$RANLIB" && RANLIB=:
7453 test -z "$STRIP" && STRIP=:
7454 test -z "$ac_objext" && ac_objext=o
7456 # Determine commands to create old-style static archives.
7457 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7458 old_postinstall_cmds='chmod 644 $oldlib'
7459 old_postuninstall_cmds=
7461 if test -n "$RANLIB"; then
7464 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7467 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7470 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7473 for cc_temp in $compiler""; do
7475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7484 # Only perform the check for file, if the check method requires it
7485 case $deplibs_check_method in
7487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7488 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7489 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7498 lt_save_MAGIC_CMD="$MAGIC_CMD"
7499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501 for ac_dir in $ac_dummy; do
7503 test -z "$ac_dir" && ac_dir=.
7504 if test -f $ac_dir/${ac_tool_prefix}file; then
7505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7506 if test -n "$file_magic_test_file"; then
7507 case $deplibs_check_method in
7509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512 $EGREP "$file_magic_regex" > /dev/null; then
7517 *** Warning: the command libtool uses to detect shared libraries,
7518 *** $file_magic_cmd, produces output that libtool cannot recognize.
7519 *** The result is that libtool may fail to recognize shared libraries
7520 *** as such. This will affect the creation of libtool libraries that
7521 *** depend on shared libraries, but programs linked with such libtool
7522 *** libraries will work regardless of this problem. Nevertheless, you
7523 *** may want to report the problem to your system manager and/or to
7524 *** bug-libtool@gnu.org
7534 MAGIC_CMD="$lt_save_MAGIC_CMD"
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if test -n "$MAGIC_CMD"; then
7541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542 echo "${ECHO_T}$MAGIC_CMD" >&6
7544 echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7548 if test -z "$lt_cv_path_MAGIC_CMD"; then
7549 if test -n "$ac_tool_prefix"; then
7550 echo "$as_me:$LINENO: checking for file" >&5
7551 echo $ECHO_N "checking for file... $ECHO_C" >&6
7552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560 lt_save_MAGIC_CMD="$MAGIC_CMD"
7561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7563 for ac_dir in $ac_dummy; do
7565 test -z "$ac_dir" && ac_dir=.
7566 if test -f $ac_dir/file; then
7567 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7568 if test -n "$file_magic_test_file"; then
7569 case $deplibs_check_method in
7571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7574 $EGREP "$file_magic_regex" > /dev/null; then
7579 *** Warning: the command libtool uses to detect shared libraries,
7580 *** $file_magic_cmd, produces output that libtool cannot recognize.
7581 *** The result is that libtool may fail to recognize shared libraries
7582 *** as such. This will affect the creation of libtool libraries that
7583 *** depend on shared libraries, but programs linked with such libtool
7584 *** libraries will work regardless of this problem. Nevertheless, you
7585 *** may want to report the problem to your system manager and/or to
7586 *** bug-libtool@gnu.org
7596 MAGIC_CMD="$lt_save_MAGIC_CMD"
7601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602 if test -n "$MAGIC_CMD"; then
7603 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7604 echo "${ECHO_T}$MAGIC_CMD" >&6
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7620 enable_win32_dll=yes
7622 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7623 if test "${enable_libtool_lock+set}" = set; then
7624 enableval="$enable_libtool_lock"
7627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7630 # Check whether --with-pic or --without-pic was given.
7631 if test "${with_pic+set}" = set; then
7637 test -z "$pic_mode" && pic_mode=default
7639 # Use C for the default configuration in the libtool script
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 # Source file extension for C test sources.
7652 # Object file extension for compiled C test sources.
7656 # Code to be used in simple compile tests
7657 lt_simple_compile_test_code="int some_variable = 0;\n"
7659 # Code to be used in simple link tests
7660 lt_simple_link_test_code='int main(){return(0);}\n'
7663 # If no C compiler was specified, use CC.
7666 # Allow CC to be a program name with arguments.
7670 # save warnings/boilerplate of simple test code
7671 ac_outfile=conftest.$ac_objext
7672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7674 _lt_compiler_boilerplate=`cat conftest.err`
7677 ac_outfile=conftest.$ac_objext
7678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7680 _lt_linker_boilerplate=`cat conftest.err`
7685 # Check for any special shared library compilation flags.
7688 if test "$GCC" = no; then
7691 lt_prog_cc_shlib='-belf'
7695 if test -n "$lt_prog_cc_shlib"; then
7696 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7697 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7698 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7700 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7701 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7702 lt_cv_prog_cc_can_build_shared=no
7708 # Check to make sure the static flag actually works.
7710 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7711 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7712 if test "${lt_prog_compiler_static_works+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 lt_prog_compiler_static_works=no
7716 save_LDFLAGS="$LDFLAGS"
7717 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7718 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7720 # The linker can only warn and ignore the option if not recognized
7721 # So say no if there are warnings
7722 if test -s conftest.err; then
7723 # Append any errors to the config.log.
7724 cat conftest.err 1>&5
7725 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7726 $SED '/^$/d' conftest.err >conftest.er2
7727 if diff conftest.exp conftest.er2 >/dev/null; then
7728 lt_prog_compiler_static_works=yes
7731 lt_prog_compiler_static_works=yes
7735 LDFLAGS="$save_LDFLAGS"
7738 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7739 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7741 if test x"$lt_prog_compiler_static_works" = xyes; then
7744 lt_prog_compiler_static=
7750 lt_prog_compiler_no_builtin_flag=
7752 if test "$GCC" = yes; then
7753 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7756 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7757 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7758 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 lt_cv_prog_compiler_rtti_exceptions=no
7762 ac_outfile=conftest.$ac_objext
7763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7764 lt_compiler_flag="-fno-rtti -fno-exceptions"
7765 # Insert the option either (1) after the last *FLAGS variable, or
7766 # (2) before a word containing "conftest.", or (3) at the end.
7767 # Note that $ac_compile itself does not contain backslashes and begins
7768 # with a dollar sign (not a hyphen), so the echo should work correctly.
7769 # The option is referenced via a variable to avoid confusing sed.
7770 lt_compile=`echo "$ac_compile" | $SED \
7771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773 -e 's:$: $lt_compiler_flag:'`
7774 (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7775 (eval "$lt_compile" 2>conftest.err)
7777 cat conftest.err >&5
7778 echo "$as_me:7778: \$? = $ac_status" >&5
7779 if (exit $ac_status) && test -s "$ac_outfile"; then
7780 # The compiler can only warn and ignore the option if not recognized
7781 # So say no if there are warnings other than the usual output.
7782 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7783 $SED '/^$/d' conftest.err >conftest.er2
7784 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_rtti_exceptions=yes
7791 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7792 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7794 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7795 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7802 lt_prog_compiler_wl=
7803 lt_prog_compiler_pic=
7804 lt_prog_compiler_static=
7806 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7809 if test "$GCC" = yes; then
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_static='-static'
7815 # All AIX code is PIC.
7816 if test "$host_cpu" = ia64; then
7817 # AIX 5 now supports IA64 processor
7818 lt_prog_compiler_static='-Bstatic'
7823 # FIXME: we need at least 68020 code to build shared libraries, but
7824 # adding the `-m68020' flag to GCC prevents building anything better,
7826 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7829 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7830 # PIC is the default for these OSes.
7833 mingw* | pw32* | os2*)
7834 # This hack is so that the source file can tell whether it is being
7835 # built for inclusion in a dll (and should export symbols for example).
7836 lt_prog_compiler_pic='-DDLL_EXPORT'
7839 darwin* | rhapsody*)
7840 # PIC is the default on this platform
7841 # Common symbols not allowed in MH_DYLIB files
7842 lt_prog_compiler_pic='-fno-common'
7846 # Just because we use GCC doesn't mean we suddenly get shared libraries
7847 # on systems that don't support them.
7848 lt_prog_compiler_can_build_shared=no
7853 if test -d /usr/nec; then
7854 lt_prog_compiler_pic=-Kconform_pic
7859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7866 lt_prog_compiler_pic='-fPIC'
7872 lt_prog_compiler_pic='-fPIC'
7876 # PORTME Check for flag to pass linker flags through the system compiler.
7879 lt_prog_compiler_wl='-Wl,'
7880 if test "$host_cpu" = ia64; then
7881 # AIX 5 now supports IA64 processor
7882 lt_prog_compiler_static='-Bstatic'
7884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7888 # PIC is the default on this platform
7889 # Common symbols not allowed in MH_DYLIB files
7890 case $cc_basename in
7892 lt_prog_compiler_pic='-qnocommon'
7893 lt_prog_compiler_wl='-Wl,'
7898 mingw* | pw32* | os2*)
7899 # This hack is so that the source file can tell whether it is being
7900 # built for inclusion in a dll (and should export symbols for example).
7901 lt_prog_compiler_pic='-DDLL_EXPORT'
7904 hpux9* | hpux10* | hpux11*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7913 lt_prog_compiler_pic='+Z'
7916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7917 lt_prog_compiler_static='${wl}-a ${wl}archive'
7920 irix5* | irix6* | nonstopux*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC (with -KPIC) is the default.
7923 lt_prog_compiler_static='-non_shared'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7932 case $cc_basename in
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_pic='-KPIC'
7936 lt_prog_compiler_static='-static'
7938 pgcc* | pgf77* | pgf90* | pgf95*)
7939 # Portland Group compilers (*not* the Pentium gcc compiler,
7940 # which looks to be a dead project)
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_pic='-fpic'
7943 lt_prog_compiler_static='-Bstatic'
7946 lt_prog_compiler_wl='-Wl,'
7947 # All Alpha code is PIC.
7948 lt_prog_compiler_static='-non_shared'
7953 osf3* | osf4* | osf5*)
7954 lt_prog_compiler_wl='-Wl,'
7955 # All OSF/1 code is PIC.
7956 lt_prog_compiler_static='-non_shared'
7960 lt_prog_compiler_pic='-Kpic'
7961 lt_prog_compiler_static='-dn'
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 case $cc_basename in
7969 lt_prog_compiler_wl='-Qoption ld ';;
7971 lt_prog_compiler_wl='-Wl,';;
7976 lt_prog_compiler_wl='-Qoption ld '
7977 lt_prog_compiler_pic='-PIC'
7978 lt_prog_compiler_static='-Bstatic'
7981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_pic='-KPIC'
7984 lt_prog_compiler_static='-Bstatic'
7988 if test -d /usr/nec ;then
7989 lt_prog_compiler_pic='-Kconform_pic'
7990 lt_prog_compiler_static='-Bstatic'
7995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_can_build_shared=no
8000 lt_prog_compiler_pic='-pic'
8001 lt_prog_compiler_static='-Bstatic'
8005 lt_prog_compiler_can_build_shared=no
8010 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8011 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8014 # Check to make sure the PIC flag actually works.
8016 if test -n "$lt_prog_compiler_pic"; then
8018 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8019 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8020 if test "${lt_prog_compiler_pic_works+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 lt_prog_compiler_pic_works=no
8024 ac_outfile=conftest.$ac_objext
8025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8026 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8027 # Insert the option either (1) after the last *FLAGS variable, or
8028 # (2) before a word containing "conftest.", or (3) at the end.
8029 # Note that $ac_compile itself does not contain backslashes and begins
8030 # with a dollar sign (not a hyphen), so the echo should work correctly.
8031 # The option is referenced via a variable to avoid confusing sed.
8032 lt_compile=`echo "$ac_compile" | $SED \
8033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035 -e 's:$: $lt_compiler_flag:'`
8036 (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037 (eval "$lt_compile" 2>conftest.err)
8039 cat conftest.err >&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 if (exit $ac_status) && test -s "$ac_outfile"; then
8042 # The compiler can only warn and ignore the option if not recognized
8043 # So say no if there are warnings other than the usual output.
8044 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8045 $SED '/^$/d' conftest.err >conftest.er2
8046 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8047 lt_prog_compiler_pic_works=yes
8053 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8054 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8056 if test x"$lt_prog_compiler_pic_works" = xyes; then
8057 case $lt_prog_compiler_pic in
8059 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8062 lt_prog_compiler_pic=
8063 lt_prog_compiler_can_build_shared=no
8068 # For platforms which do not support PIC, -DPIC is meaningless:
8070 lt_prog_compiler_pic=
8073 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8077 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8079 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 lt_cv_prog_compiler_c_o=no
8083 $rm -r conftest 2>/dev/null
8087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8089 lt_compiler_flag="-o out/conftest2.$ac_objext"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 lt_compile=`echo "$ac_compile" | $SED \
8095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8097 -e 's:$: $lt_compiler_flag:'`
8098 (eval echo "\"\$as_me:8098: $lt_compile\"" >&5)
8099 (eval "$lt_compile" 2>out/conftest.err)
8101 cat out/conftest.err >&5
8102 echo "$as_me:8102: \$? = $ac_status" >&5
8103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings
8107 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8108 $SED '/^$/d' out/conftest.err >out/conftest.er2
8109 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8110 lt_cv_prog_compiler_c_o=yes
8115 # SGI C++ compiler will create directory out/ii_files/ for
8116 # template instantiation
8117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8118 $rm out/* && rmdir out
8124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8128 hard_links="nottested"
8129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8130 # do not overwrite the value of need_locks provided by the user
8131 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137 ln conftest.a conftest.b 2>&5 || hard_links=no
8138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8139 echo "$as_me:$LINENO: result: $hard_links" >&5
8140 echo "${ECHO_T}$hard_links" >&6
8141 if test "$hard_links" = no; then
8142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8150 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8154 allow_undefined_flag=
8155 enable_shared_with_static_runtimes=no
8157 archive_expsym_cmds=
8158 old_archive_From_new_cmds=
8159 old_archive_from_expsyms_cmds=
8160 export_dynamic_flag_spec=
8161 whole_archive_flag_spec=
8162 thread_safe_flag_spec=
8163 hardcode_libdir_flag_spec=
8164 hardcode_libdir_flag_spec_ld=
8165 hardcode_libdir_separator=
8168 hardcode_shlibpath_var=unsupported
8169 link_all_deplibs=unknown
8170 hardcode_automatic=no
8173 always_export_symbols=no
8174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8175 # include_expsyms should be a list of space-separated symbols to be *always*
8176 # included in the symbol list
8178 # exclude_expsyms can be an extended regexp of symbols to exclude
8179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8181 # as well as any symbol that contains `d'.
8182 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8184 # platforms (ab)use it in PIC code, but their linkers get confused if
8185 # the symbol is explicitly referenced. Since portable code cannot
8186 # rely on this symbol name, it's probably fine to never include it in
8187 # preloaded symbol tables.
8188 extract_expsyms_cmds=
8189 # Just being paranoid about ensuring that cc_basename is set.
8190 for cc_temp in $compiler""; do
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8201 cygwin* | mingw* | pw32*)
8202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8203 # When not using gcc, we currently assume that we are using
8204 # Microsoft Visual C++.
8205 if test "$GCC" != yes; then
8215 if test "$with_gnu_ld" = yes; then
8216 # If archive_cmds runs LD, not CC, wlarc should be empty
8219 # Set some defaults for GNU ld with shared library support. These
8220 # are reset later if shared libraries are not supported. Putting them
8221 # here allows them to be overridden if necessary.
8222 runpath_var=LD_RUN_PATH
8223 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8224 export_dynamic_flag_spec='${wl}--export-dynamic'
8225 # ancient GNU ld didn't support --whole-archive et. al.
8226 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8229 whole_archive_flag_spec=
8231 supports_anon_versioning=no
8232 case `$LD -v 2>/dev/null` in
8233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8236 *\ 2.11.*) ;; # other 2.11 versions
8237 *) supports_anon_versioning=yes ;;
8240 # See if GNU ld supports shared libraries.
8242 aix3* | aix4* | aix5*)
8243 # On AIX/PPC, the GNU linker is very broken
8244 if test "$host_cpu" != ia64; then
8248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8249 *** to be unable to reliably create shared libraries on AIX.
8250 *** Therefore, libtool is disabling shared libraries support. If you
8251 *** really care for shared libraries, you may want to modify your PATH
8252 *** so that a non-GNU linker is found, and then restart.
8259 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)'
8260 hardcode_libdir_flag_spec='-L$libdir'
8261 hardcode_minus_L=yes
8263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8264 # that the semantics of dynamic libraries on AmigaOS, at least up
8265 # to version 4, is to share data among multiple programs linked
8266 # with the same dynamic library. Since this doesn't match the
8267 # behavior of shared libraries on other platforms, we can't use
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 allow_undefined_flag=unsupported
8275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8276 # support --undefined. This deserves some investigation. FIXME
8277 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 cygwin* | mingw* | pw32*)
8284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8285 # as there is no search path for DLLs.
8286 hardcode_libdir_flag_spec='-L$libdir'
8287 allow_undefined_flag=unsupported
8288 always_export_symbols=no
8289 enable_shared_with_static_runtimes=yes
8290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8294 # If the export-symbols file already is a .def file (1st line
8295 # is EXPORTS), use it as is; otherwise, prepend...
8296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297 cp $export_symbols $output_objdir/$soname.def;
8299 echo EXPORTS > $output_objdir/$soname.def;
8300 cat $export_symbols >> $output_objdir/$soname.def;
8302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311 case $cc_basename,$host_cpu in
8312 pgcc*) # Portland Group C compiler
8313 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'
8314 tmp_addflag=' $pic_flag'
8316 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8317 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'
8318 tmp_addflag=' $pic_flag -Mnomain' ;;
8319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8320 tmp_addflag=' -i_dynamic' ;;
8321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8322 tmp_addflag=' -i_dynamic -nofor_main' ;;
8323 ifc* | ifort*) # Intel Fortran compiler
8324 tmp_addflag=' -nofor_main' ;;
8326 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 if test $supports_anon_versioning = yes; then
8329 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8331 $echo "local: *; };" >> $output_objdir/$libname.ver~
8332 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8341 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8350 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8355 *** create shared libraries on Solaris systems. Therefore, libtool
8356 *** is disabling shared libraries support. We urge you to upgrade GNU
8357 *** binutils to release 2.9.1 or newer. Another option is to modify
8358 *** your PATH or compiler configuration so that the native linker is
8359 *** used, and then restart.
8362 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8374 hardcode_shlibpath_var=no
8378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8387 if test "$ld_shlibs" = no; then
8389 hardcode_libdir_flag_spec=
8390 export_dynamic_flag_spec=
8391 whole_archive_flag_spec=
8394 # PORTME fill in a description of your system's linker (not GNU ld)
8397 allow_undefined_flag=unsupported
8398 always_export_symbols=yes
8399 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'
8400 # Note: this linker hardcodes the directories in LIBPATH if there
8401 # are no directories specified by -L.
8402 hardcode_minus_L=yes
8403 if test "$GCC" = yes && test -z "$link_static_flag"; then
8404 # Neither direct hardcoding nor static linking is supported with a
8406 hardcode_direct=unsupported
8411 if test "$host_cpu" = ia64; then
8412 # On IA64, the linker does run time linking by default, so we don't
8413 # have to do anything special.
8414 aix_use_runtimelinking=no
8415 exp_sym_flag='-Bexport'
8418 # If we're using GNU nm, then we don't want the "-C" option.
8419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8420 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8421 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'
8423 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'
8425 aix_use_runtimelinking=no
8427 # Test if we are trying to use run time linking or normal
8428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8429 # need to do runtime linking.
8430 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8431 for ld_flag in $LDFLAGS; do
8432 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8433 aix_use_runtimelinking=yes
8439 exp_sym_flag='-bexport'
8440 no_entry_flag='-bnoentry'
8443 # When large executables or shared objects are built, AIX ld can
8444 # have problems creating the table of contents. If linking a library
8445 # or program results in "error TOC overflow" add -mminimal-toc to
8446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8451 hardcode_libdir_separator=':'
8452 link_all_deplibs=yes
8454 if test "$GCC" = yes; then
8455 case $host_os in aix4.[012]|aix4.[012].*)
8456 # We only want to do this on AIX 4.2 and lower, the check
8457 # below for broken collect2 doesn't work under 4.3+
8458 collect2name=`${CC} -print-prog-name=collect2`
8459 if test -f "$collect2name" && \
8460 strings "$collect2name" | grep resolve_lib_name >/dev/null
8462 # We have reworked collect2
8465 # We have old collect2
8466 hardcode_direct=unsupported
8467 # It fails to find uninstalled libraries when the uninstalled
8468 # path is not listed in the libpath. Setting hardcode_minus_L
8469 # to unsupported forces relinking
8470 hardcode_minus_L=yes
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_libdir_separator=
8475 shared_flag='-shared'
8476 if test "$aix_use_runtimelinking" = yes; then
8477 shared_flag="$shared_flag "'${wl}-G'
8481 if test "$host_cpu" = ia64; then
8482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8483 # chokes on -Wl,-G. The following line is correct:
8486 if test "$aix_use_runtimelinking" = yes; then
8487 shared_flag='${wl}-G'
8489 shared_flag='${wl}-bM:SRE'
8494 # It seems that -bexpall does not export symbols beginning with
8495 # underscore (_), so it is better to generate a list of symbols to export.
8496 always_export_symbols=yes
8497 if test "$aix_use_runtimelinking" = yes; then
8498 # Warning - without using the other runtime loading flags (-brtl),
8499 # -berok will link without error, but may produce a broken library.
8500 allow_undefined_flag='-berok'
8501 # Determine the default libpath from the value encoded in an empty executable.
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8542 # Check for a 64-bit object if we didn't find anything.
8543 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; }
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8555 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"
8557 if test "$host_cpu" = ia64; then
8558 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8559 allow_undefined_flag="-z nodefs"
8560 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"
8562 # Determine the default libpath from the value encoded in an empty executable.
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8603 # Check for a 64-bit object if we didn't find anything.
8604 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; }
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8611 rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616 # Warning - without using the other run time loading flags,
8617 # -berok will link without error, but may produce a broken library.
8618 no_undefined_flag=' ${wl}-bernotok'
8619 allow_undefined_flag=' ${wl}-berok'
8620 # -bexpall does not export symbols beginning with underscore (_)
8621 always_export_symbols=yes
8622 # Exported symbols can be pulled into shared objects from archives
8623 whole_archive_flag_spec=' '
8624 archive_cmds_need_lc=yes
8625 # This is similar to how AIX traditionally builds its shared libraries.
8626 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'
8632 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)'
8633 hardcode_libdir_flag_spec='-L$libdir'
8634 hardcode_minus_L=yes
8635 # see comment about different semantics on the GNU ld section
8640 export_dynamic_flag_spec=-rdynamic
8643 cygwin* | mingw* | pw32*)
8644 # When not using gcc, we currently assume that we are using
8645 # Microsoft Visual C++.
8646 # hardcode_libdir_flag_spec is actually meaningless, as there is
8647 # no search path for DLLs.
8648 hardcode_libdir_flag_spec=' '
8649 allow_undefined_flag=unsupported
8650 # Tell ltmain to make .lib files, not .a files.
8652 # Tell ltmain to make .dll files, not .so files.
8654 # FIXME: Setting linknames here is a bad hack.
8655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8656 # The linker will automatically build a .lib file if we build a DLL.
8657 old_archive_From_new_cmds='true'
8658 # FIXME: Should let the user specify the lib program.
8659 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8660 fix_srcfile_path='`cygpath -w "$srcfile"`'
8661 enable_shared_with_static_runtimes=yes
8664 darwin* | rhapsody*)
8666 rhapsody* | darwin1.[012])
8667 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8670 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8671 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8673 case ${MACOSX_DEPLOYMENT_TARGET} in
8675 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8678 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8684 archive_cmds_need_lc=no
8686 hardcode_automatic=yes
8687 hardcode_shlibpath_var=unsupported
8688 whole_archive_flag_spec=''
8689 link_all_deplibs=yes
8690 if test "$GCC" = yes ; then
8691 output_verbose_link_cmd='echo'
8692 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8693 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8694 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8695 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}'
8696 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}'
8698 case $cc_basename in
8700 output_verbose_link_cmd='echo'
8701 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8702 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8704 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}'
8705 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}'
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8725 # support. Future versions do this automatically, but an explicit c++rt0.o
8726 # does not break anything, and helps significantly (at the cost of a little
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8730 hardcode_libdir_flag_spec='-R$libdir'
8732 hardcode_shlibpath_var=no
8735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_minus_L=yes
8740 hardcode_shlibpath_var=no
8743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8744 freebsd* | kfreebsd*-gnu | dragonfly*)
8745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8746 hardcode_libdir_flag_spec='-R$libdir'
8748 hardcode_shlibpath_var=no
8752 if test "$GCC" = yes; then
8753 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'
8755 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'
8757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758 hardcode_libdir_separator=:
8761 # hardcode_minus_L: Not really in the search PATH,
8762 # but as the default location of the library.
8763 hardcode_minus_L=yes
8764 export_dynamic_flag_spec='${wl}-E'
8768 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8787 if test "$with_gnu_ld" = no; then
8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791 hardcode_libdir_flag_spec_ld='+b $libdir'
8792 hardcode_libdir_separator=:
8794 hardcode_shlibpath_var=no
8797 hardcode_libdir_flag_spec='-L$libdir'
8799 hardcode_shlibpath_var=no
8801 # hardcode_minus_L: Not really in the search PATH,
8802 # but as the default location of the library.
8803 hardcode_minus_L=yes
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8809 export_dynamic_flag_spec='${wl}-E'
8811 # hardcode_minus_L: Not really in the search PATH,
8812 # but as the default location of the library.
8813 hardcode_minus_L=yes
8819 irix5* | irix6* | nonstopux*)
8820 if test "$GCC" = yes; then
8821 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'
8823 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'
8824 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 hardcode_libdir_separator=:
8828 link_all_deplibs=yes
8832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8835 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8837 hardcode_libdir_flag_spec='-R$libdir'
8839 hardcode_shlibpath_var=no
8843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8846 hardcode_libdir_separator=:
8847 hardcode_shlibpath_var=no
8852 hardcode_shlibpath_var=no
8853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8857 export_dynamic_flag_spec='${wl}-E'
8860 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_libdir_flag_spec='-R$libdir'
8865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_minus_L=yes
8875 allow_undefined_flag=unsupported
8876 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'
8877 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8881 if test "$GCC" = yes; then
8882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8883 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'
8885 allow_undefined_flag=' -expect_unresolved \*'
8886 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'
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 hardcode_libdir_separator=:
8892 osf4* | osf5*) # as osf3* with the addition of -msym flag
8893 if test "$GCC" = yes; then
8894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895 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'
8896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898 allow_undefined_flag=' -expect_unresolved \*'
8899 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'
8900 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8901 $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'
8903 # Both c and cxx compiler support -rpath directly
8904 hardcode_libdir_flag_spec='-rpath $libdir'
8906 hardcode_libdir_separator=:
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_shlibpath_var=no
8912 export_dynamic_flag_spec='${wl}-Bexport'
8913 runpath_var=LD_RUN_PATH
8914 hardcode_runpath_var=yes
8918 no_undefined_flag=' -z text'
8919 if test "$GCC" = yes; then
8921 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8926 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8930 hardcode_libdir_flag_spec='-R$libdir'
8931 hardcode_shlibpath_var=no
8933 solaris2.[0-5] | solaris2.[0-5].*) ;;
8935 # The compiler driver will combine linker options so we
8936 # cannot just pass the convience library names through
8937 # without $wl, iff we do not link with $LD.
8938 # Luckily, gcc supports the same syntax we need for Sun Studio.
8939 # Supported since Solaris 2.6 (maybe 2.5.1?)
8942 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8944 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' ;;
8947 link_all_deplibs=yes
8951 if test "x$host_vendor" = xsequent; then
8952 # Use $CC to link under sequent, because it throws in some extra .o
8953 # files that make .init and .fini sections work.
8954 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8961 hardcode_shlibpath_var=no
8965 case $host_vendor in
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes # is this really true???
8971 ## LD is ld it makes a PLAMLIB
8972 ## CC just makes a GrossModule.
8973 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8974 reload_cmds='$CC -r -o $output$reload_objs'
8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8982 runpath_var='LD_RUN_PATH'
8983 hardcode_shlibpath_var=no
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_shlibpath_var=no
8989 export_dynamic_flag_spec='-Bexport'
8993 if test -d /usr/nec; then
8994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_shlibpath_var=no
8996 runpath_var=LD_RUN_PATH
8997 hardcode_runpath_var=yes
9003 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_shlibpath_var=no
9007 hardcode_runpath_var=yes
9008 runpath_var=LD_RUN_PATH
9011 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9012 no_undefined_flag='${wl}-z ${wl}text'
9013 if test "$GCC" = yes; then
9014 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 runpath_var='LD_RUN_PATH'
9019 hardcode_shlibpath_var=no
9023 no_undefined_flag=' -z text'
9024 # $CC -shared without GNU ld will not create a library from C++
9025 # object files and a static libstdc++, better avoid it by now
9026 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9029 hardcode_libdir_flag_spec=
9030 hardcode_shlibpath_var=no
9031 runpath_var='LD_RUN_PATH'
9035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_shlibpath_var=no
9046 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9047 echo "${ECHO_T}$ld_shlibs" >&6
9048 test "$ld_shlibs" = no && can_build_shared=no
9050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9051 if test "$GCC" = yes; then
9052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9056 # Do we need to explicitly link libc?
9058 case "x$archive_cmds_need_lc" in
9060 # Assume -lc should be added
9061 archive_cmds_need_lc=yes
9063 if test "$enable_shared" = yes && test "$GCC" = yes; then
9064 case $archive_cmds in
9066 # FIXME: we may have to deal with multi-command sequences.
9069 # Test whether the compiler implicitly links with -lc since on some
9070 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9071 # to ld, don't add -lc before -lgcc.
9072 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9073 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9078 (eval $ac_compile) 2>&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } 2>conftest.err; then
9084 libobjs=conftest.$ac_objext
9086 wl=$lt_prog_compiler_wl
9092 lt_save_allow_undefined_flag=$allow_undefined_flag
9093 allow_undefined_flag=
9094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9095 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }
9100 archive_cmds_need_lc=no
9102 archive_cmds_need_lc=yes
9104 allow_undefined_flag=$lt_save_allow_undefined_flag
9106 cat conftest.err 1>&5
9109 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9110 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9117 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9118 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9120 libname_spec='lib$name'
9128 shlibpath_overrides_runpath=unknown
9130 dynamic_linker="$host_os ld.so"
9131 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9132 if test "$GCC" = yes; then
9133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9134 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9135 # if the path contains ";" then we assume it to be the separator
9136 # otherwise default to the standard path separator (i.e. ":") - it is
9137 # assumed that no part of a normal pathname contains ";" but that should
9138 # okay in the real world where ";" in dirpaths is itself problematic.
9139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9144 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9146 need_lib_prefix=unknown
9147 hardcode_into_libs=no
9149 # when you set need_version to no, make sure it does not cause -set_version
9150 # flags to be left without arguments
9151 need_version=unknown
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9157 shlibpath_var=LIBPATH
9159 # AIX 3 has no versioning support, so we append a major version to the name.
9160 soname_spec='${libname}${release}${shared_ext}$major'
9167 hardcode_into_libs=yes
9168 if test "$host_cpu" = ia64; then
9169 # AIX 5 supports IA64
9170 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9171 shlibpath_var=LD_LIBRARY_PATH
9173 # With GCC up to 2.95.x, collect2 would create an import file
9174 # for dependence libraries. The import file would start with
9175 # the line `#! .'. This would cause the generated library to
9176 # depend on `.', always an invalid library. This was fixed in
9177 # development snapshots of GCC prior to 3.0.
9179 aix4 | aix4.[01] | aix4.[01].*)
9180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9182 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9189 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9190 # soname into executable. Probably we can add versioning support to
9191 # collect2, so additional links can be useful in future.
9192 if test "$aix_use_runtimelinking" = yes; then
9193 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9194 # instead of lib<name>.a to let people know that these are not
9195 # typical AIX shared libraries.
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 # We preserve .a as extension for shared libraries through AIX4.2
9199 # and later when we are not doing run time linking.
9200 library_names_spec='${libname}${release}.a $libname.a'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LIBPATH
9208 library_names_spec='$libname.ixlibrary $libname.a'
9209 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9210 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'
9214 library_names_spec='${libname}${shared_ext}'
9215 dynamic_linker="$host_os ld.so"
9216 shlibpath_var=LIBRARY_PATH
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9228 # the default ld.so.conf also contains /usr/contrib/lib and
9229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9230 # libtool to hard-code these into programs
9233 cygwin* | mingw* | pw32*)
9234 version_type=windows
9239 case $GCC,$host_os in
9240 yes,cygwin* | yes,mingw* | yes,pw32*)
9241 library_names_spec='$libname.dll.a'
9242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9243 postinstall_cmds='base_file=`basename \${file}`~
9244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9245 dldir=$destdir/`dirname \$dlpath`~
9246 test -d \$dldir || mkdir -p \$dldir~
9247 $install_prog $dir/$dlname \$dldir/$dlname~
9248 chmod a+x \$dldir/$dlname'
9249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9250 dlpath=$dir/\$dldll~
9252 shlibpath_overrides_runpath=yes
9256 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9257 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261 # MinGW DLLs use traditional 'lib' prefix
9262 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9265 # It is most probably a Windows format PATH printed by
9266 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9267 # path with ; separators, and with drive letters. We can handle the
9268 # drive letters (cygwin fileutils understands them), so leave them,
9269 # especially as we might pass files found there to a mingw objdump,
9270 # which wouldn't understand a cygwinified path. Ahh.
9271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9277 # pw32 DLLs use 'pw' prefix rather than 'lib'
9278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9284 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287 dynamic_linker='Win32 ld.exe'
9288 # FIXME: first we should search . and the directory the executable is in
9292 darwin* | rhapsody*)
9293 dynamic_linker="$host_os dyld"
9297 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9298 soname_spec='${libname}${release}${major}$shared_ext'
9299 shlibpath_overrides_runpath=yes
9300 shlibpath_var=DYLD_LIBRARY_PATH
9301 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9302 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9303 if test "$GCC" = yes; then
9304 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"`
9306 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=no
9332 hardcode_into_libs=yes
9333 dynamic_linker='GNU ld.so'
9336 freebsd* | dragonfly*)
9337 # DragonFly does not have aout. When/if they implement a new
9338 # versioning mechanism, adjust this.
9339 if test -x /usr/bin/objformat; then
9340 objformat=`/usr/bin/objformat`
9343 freebsd[123]*) objformat=aout ;;
9347 version_type=freebsd-$objformat
9348 case $version_type in
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9359 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes
9364 freebsd3.[01]* | freebsdelf3.[01]*)
9365 shlibpath_overrides_runpath=yes
9366 hardcode_into_libs=yes
9369 shlibpath_overrides_runpath=no
9370 hardcode_into_libs=yes
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 hardcode_into_libs=yes
9385 hpux9* | hpux10* | hpux11*)
9386 # Give a soname corresponding to the major version so that dld.sl refuses to
9387 # link against other versions.
9394 hardcode_into_libs=yes
9395 dynamic_linker="$host_os dld.so"
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 if test "X$HPUX_IA64_MODE" = X32; then
9401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409 hardcode_into_libs=yes
9410 dynamic_linker="$host_os dld.sl"
9411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414 soname_spec='${libname}${release}${shared_ext}$major'
9415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9420 dynamic_linker="$host_os dld.sl"
9421 shlibpath_var=SHLIB_PATH
9422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9427 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9428 postinstall_cmds='chmod 555 $lib'
9431 irix5* | irix6* | nonstopux*)
9433 nonstopux*) version_type=nonstopux ;;
9435 if test "$lt_cv_prog_gnu_ld" = yes; then
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9446 irix5* | nonstopux*)
9450 case $LD in # libtool.m4 will add one of these switches to LD
9451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9452 libsuff= shlibsuff= libmagic=32-bit;;
9453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9454 libsuff=32 shlibsuff=N32 libmagic=N32;;
9455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9457 *) libsuff= shlibsuff= libmagic=never-match;;
9461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9462 shlibpath_overrides_runpath=no
9463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9465 hardcode_into_libs=yes
9468 # No shared lib support for Linux oldld, aout, or coff.
9469 linux*oldld* | linux*aout* | linux*coff*)
9473 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=no
9483 # This implies no fast_install, which is unacceptable.
9484 # Some rework will be needed to allow for fast_install
9485 # before this can be enabled.
9486 hardcode_into_libs=yes
9488 # Append ld.so.conf contents to the search path
9489 if test -f /etc/ld.so.conf; then
9490 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' ' '`
9491 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9494 # We used to test for /lib/ld.so.1 and disable shared libraries on
9495 # powerpc, because MkLinux only supported shared libraries with the
9496 # GNU dynamic linker. Since this was broken with cross compilers,
9497 # most powerpc-linux boxes support dynamic linking these days and
9498 # people can always --disable-shared, the test was removed, and we
9499 # assume the GNU/Linux dynamic linker is in use.
9500 dynamic_linker='GNU/Linux ld.so'
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 shlibpath_overrides_runpath=no
9511 hardcode_into_libs=yes
9512 dynamic_linker='GNU ld.so'
9519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9522 dynamic_linker='NetBSD (a.out) ld.so'
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 dynamic_linker='NetBSD ld.elf_so'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 shlibpath_overrides_runpath=yes
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes
9553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9556 *) need_version=no ;;
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9560 shlibpath_var=LD_LIBRARY_PATH
9561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9563 openbsd2.[89] | openbsd2.[89].*)
9564 shlibpath_overrides_runpath=no
9567 shlibpath_overrides_runpath=yes
9571 shlibpath_overrides_runpath=yes
9576 libname_spec='$name'
9579 library_names_spec='$libname${shared_ext} $libname.a'
9580 dynamic_linker='OS/2 ld.exe'
9581 shlibpath_var=LIBPATH
9584 osf3* | osf4* | osf5*)
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 shlibpath_var=LD_LIBRARY_PATH
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes
9610 hardcode_into_libs=yes
9611 # ldd complains unless libraries are executable
9612 postinstall_cmds='chmod +x $lib'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 shlibpath_overrides_runpath=yes
9621 if test "$with_gnu_ld" = yes; then
9627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 case $host_vendor in
9634 shlibpath_overrides_runpath=no
9636 export_dynamic_flag_spec='${wl}-Blargedynsym'
9637 runpath_var=LD_RUN_PATH
9645 shlibpath_overrides_runpath=no
9646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9652 if test -d /usr/nec ;then
9654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9655 soname_spec='$libname${shared_ext}.$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9671 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9672 echo "${ECHO_T}$dynamic_linker" >&6
9673 test "$dynamic_linker" = no && can_build_shared=no
9675 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9678 if test -n "$hardcode_libdir_flag_spec" || \
9679 test -n "$runpath_var" || \
9680 test "X$hardcode_automatic" = "Xyes" ; then
9682 # We can hardcode non-existant directories.
9683 if test "$hardcode_direct" != no &&
9684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9685 # have to relink, otherwise we might link with an installed library
9686 # when we should be linking with a yet-to-be-installed one
9687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9688 test "$hardcode_minus_L" != no; then
9689 # Linking always hardcodes the temporary library directory.
9690 hardcode_action=relink
9692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9693 hardcode_action=immediate
9696 # We cannot hardcode anything, or else we can only hardcode existing
9698 hardcode_action=unsupported
9700 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9701 echo "${ECHO_T}$hardcode_action" >&6
9703 if test "$hardcode_action" = relink; then
9704 # Fast installation is not supported
9705 enable_fast_install=no
9706 elif test "$shlibpath_overrides_runpath" = yes ||
9707 test "$enable_shared" = no; then
9708 # Fast installation is not necessary
9709 enable_fast_install=needless
9714 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9715 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9716 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9719 echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6
9722 # FIXME - insert some real tests, host_os isn't really good enough
9725 if test -n "$STRIP" ; then
9726 striplib="$STRIP -x"
9727 echo "$as_me:$LINENO: result: yes" >&5
9728 echo "${ECHO_T}yes" >&6
9730 echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6
9735 echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6
9741 if test "x$enable_dlopen" != xyes; then
9742 enable_dlopen=unknown
9743 enable_dlopen_self=unknown
9744 enable_dlopen_self_static=unknown
9751 lt_cv_dlopen="load_add_on"
9753 lt_cv_dlopen_self=yes
9757 lt_cv_dlopen="LoadLibrary"
9762 lt_cv_dlopen="dlopen"
9767 # if libdl is installed we need to link against it
9768 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_check_lib_save_LIBS=$LIBS
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag"
9807 || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_lib_dl_dlopen=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_lib_dl_dlopen=no
9826 rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 LIBS=$ac_check_lib_save_LIBS
9830 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9831 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9832 if test $ac_cv_lib_dl_dlopen = yes; then
9833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9838 lt_cv_dlopen_self=yes
9845 echo "$as_me:$LINENO: checking for shl_load" >&5
9846 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9847 if test "${ac_cv_func_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define shl_load innocuous_shl_load
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char shl_load (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9873 /* Override any gcc2 internal prototype to avoid an error. */
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9887 char (*f) () = shl_load;
9896 return f != shl_load;
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_func_shl_load=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_func_shl_load=no
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9934 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9935 if test $ac_cv_func_shl_load = yes; then
9936 lt_cv_dlopen="shl_load"
9938 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9939 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9940 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 ac_check_lib_save_LIBS=$LIBS
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9952 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_lib_dld_shl_load=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_lib_dld_shl_load=no
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
10000 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10001 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10002 if test $ac_cv_lib_dld_shl_load = yes; then
10003 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10005 echo "$as_me:$LINENO: checking for dlopen" >&5
10006 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10007 if test "${ac_cv_func_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define dlopen innocuous_dlopen
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char dlopen (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10047 char (*f) () = dlopen;
10056 return f != dlopen;
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_dlopen=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_func_dlopen=no
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10095 if test $ac_cv_func_dlopen = yes; then
10096 lt_cv_dlopen="dlopen"
10098 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10099 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10100 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_check_lib_save_LIBS=$LIBS
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>conftest.er1
10131 grep -v '^ *+' conftest.er1 >conftest.err
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -z "$ac_c_werror_flag"
10137 || test ! -s conftest.err'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_lib_dl_dlopen=yes
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_cv_lib_dl_dlopen=no
10156 rm -f conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10160 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10162 if test $ac_cv_lib_dl_dlopen = yes; then
10163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10165 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10166 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10167 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_check_lib_save_LIBS=$LIBS
10171 LIBS="-lsvld $LIBS"
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10179 /* Override any gcc2 internal prototype to avoid an error. */
10183 /* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>conftest.er1
10198 grep -v '^ *+' conftest.er1 >conftest.err
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -z "$ac_c_werror_flag"
10204 || test ! -s conftest.err'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest$ac_exeext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_cv_lib_svld_dlopen=yes
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_cv_lib_svld_dlopen=no
10223 rm -f conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10227 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10228 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10229 if test $ac_cv_lib_svld_dlopen = yes; then
10230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10232 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10233 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10234 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 ac_check_lib_save_LIBS=$LIBS
10239 cat >conftest.$ac_ext <<_ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10246 /* Override any gcc2 internal prototype to avoid an error. */
10250 /* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_lib_dld_dld_link=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_lib_dld_dld_link=no
10290 rm -f conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10295 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10296 if test $ac_cv_lib_dld_dld_link = yes; then
10297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10318 if test "x$lt_cv_dlopen" != xno; then
10324 case $lt_cv_dlopen in
10326 save_CPPFLAGS="$CPPFLAGS"
10327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10329 save_LDFLAGS="$LDFLAGS"
10330 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10333 LIBS="$lt_cv_dlopen_libs $LIBS"
10335 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10336 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10337 if test "${lt_cv_dlopen_self+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 if test "$cross_compiling" = yes; then :
10341 lt_cv_dlopen_self=cross
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10346 "configure"
10347 #include "confdefs.h"
10356 # define LT_DLGLOBAL RTLD_GLOBAL
10359 # define LT_DLGLOBAL DL_GLOBAL
10361 # define LT_DLGLOBAL 0
10365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367 #ifndef LT_DLLAZY_OR_NOW
10369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10372 # define LT_DLLAZY_OR_NOW DL_LAZY
10375 # define LT_DLLAZY_OR_NOW RTLD_NOW
10378 # define LT_DLLAZY_OR_NOW DL_NOW
10380 # define LT_DLLAZY_OR_NOW 0
10388 extern "C" void exit (int);
10391 void fnord() { int i=42;}
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10412 (./conftest; exit; ) >&5 2>/dev/null
10414 case x$lt_status in
10415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10417 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10420 # compilation failed
10421 lt_cv_dlopen_self=no
10428 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10429 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10431 if test "x$lt_cv_dlopen_self" = xyes; then
10432 LDFLAGS="$LDFLAGS $link_static_flag"
10433 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10434 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10435 if test "${lt_cv_dlopen_self_static+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 if test "$cross_compiling" = yes; then :
10439 lt_cv_dlopen_self_static=cross
10441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442 lt_status=$lt_dlunknown
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10454 # define LT_DLGLOBAL RTLD_GLOBAL
10457 # define LT_DLGLOBAL DL_GLOBAL
10459 # define LT_DLGLOBAL 0
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464 find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10470 # define LT_DLLAZY_OR_NOW DL_LAZY
10473 # define LT_DLLAZY_OR_NOW RTLD_NOW
10476 # define LT_DLLAZY_OR_NOW DL_NOW
10478 # define LT_DLLAZY_OR_NOW 0
10486 extern "C" void exit (int);
10489 void fnord() { int i=42;}
10492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493 int status = $lt_dlunknown;
10497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499 /* dlclose (self); */
10505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10510 (./conftest; exit; ) >&5 2>/dev/null
10512 case x$lt_status in
10513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10515 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10518 # compilation failed
10519 lt_cv_dlopen_self_static=no
10526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10527 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10530 CPPFLAGS="$save_CPPFLAGS"
10531 LDFLAGS="$save_LDFLAGS"
10536 case $lt_cv_dlopen_self in
10537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10538 *) enable_dlopen_self=unknown ;;
10541 case $lt_cv_dlopen_self_static in
10542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10543 *) enable_dlopen_self_static=unknown ;;
10548 # Report which librarie types wil actually be built
10549 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10550 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10551 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10552 echo "${ECHO_T}$can_build_shared" >&6
10554 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10555 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10556 test "$can_build_shared" = "no" && enable_shared=no
10558 # On AIX, shared libraries and static libraries use the same namespace, and
10559 # are all built from PIC.
10562 test "$enable_shared" = yes && enable_static=no
10563 if test -n "$RANLIB"; then
10564 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10565 postinstall_cmds='$RANLIB $lib'
10570 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10571 test "$enable_shared" = yes && enable_static=no
10575 echo "$as_me:$LINENO: result: $enable_shared" >&5
10576 echo "${ECHO_T}$enable_shared" >&6
10578 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10579 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10580 # Make sure either enable_shared or enable_static is yes.
10581 test "$enable_shared" = yes || enable_static=yes
10582 echo "$as_me:$LINENO: result: $enable_static" >&5
10583 echo "${ECHO_T}$enable_static" >&6
10585 # The else clause should only fire when bootstrapping the
10586 # libtool distribution, otherwise you forgot to ship ltmain.sh
10587 # with your package, and you will get complaints that there are
10588 # no rules to generate ltmain.sh.
10589 if test -f "$ltmain"; then
10590 # See if we are running on zsh, and set the options which allow our commands through
10591 # without removal of \ escapes.
10592 if test -n "${ZSH_VERSION+set}" ; then
10593 setopt NO_GLOB_SUBST
10595 # Now quote all the things that may contain metacharacters while being
10596 # careful not to overquote the AC_SUBSTed values. We take copies of the
10597 # variables and quote the copies for generation of the libtool script.
10598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10602 deplibs_check_method reload_flag reload_cmds need_locks \
10603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10604 lt_cv_sys_global_symbol_to_c_name_address \
10605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10606 old_postinstall_cmds old_postuninstall_cmds \
10610 lt_prog_compiler_wl \
10611 lt_prog_compiler_pic \
10612 lt_prog_compiler_static \
10613 lt_prog_compiler_no_builtin_flag \
10614 export_dynamic_flag_spec \
10615 thread_safe_flag_spec \
10616 whole_archive_flag_spec \
10617 enable_shared_with_static_runtimes \
10619 old_archive_from_new_cmds \
10624 compiler_lib_search_path \
10626 archive_expsym_cmds \
10628 postuninstall_cmds \
10629 old_archive_from_expsyms_cmds \
10630 allow_undefined_flag \
10631 no_undefined_flag \
10632 export_symbols_cmds \
10633 hardcode_libdir_flag_spec \
10634 hardcode_libdir_flag_spec_ld \
10635 hardcode_libdir_separator \
10636 hardcode_automatic \
10638 module_expsym_cmds \
10639 lt_cv_prog_compiler_c_o \
10641 include_expsyms; do
10644 old_archive_cmds | \
10645 old_archive_from_new_cmds | \
10647 archive_expsym_cmds | \
10649 module_expsym_cmds | \
10650 old_archive_from_expsyms_cmds | \
10651 export_symbols_cmds | \
10652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10653 postinstall_cmds | postuninstall_cmds | \
10654 old_postinstall_cmds | old_postuninstall_cmds | \
10655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10656 # Double-quote double-evaled strings.
10657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10666 *'\$0 --fallback-echo"')
10667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10671 cfgfile="${ofile}T"
10672 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10674 { echo "$as_me:$LINENO: creating $ofile" >&5
10675 echo "$as_me: creating $ofile" >&6;}
10677 cat <<__EOF__ >> "$cfgfile"
10680 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10681 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10682 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10684 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10685 # Free Software Foundation, Inc.
10687 # This file is part of GNU Libtool:
10688 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10690 # This program is free software; you can redistribute it and/or modify
10691 # it under the terms of the GNU General Public License as published by
10692 # the Free Software Foundation; either version 2 of the License, or
10693 # (at your option) any later version.
10695 # This program is distributed in the hope that it will be useful, but
10696 # WITHOUT ANY WARRANTY; without even the implied warranty of
10697 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10698 # General Public License for more details.
10700 # You should have received a copy of the GNU General Public License
10701 # along with this program; if not, write to the Free Software
10702 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10704 # As a special exception to the GNU General Public License, if you
10705 # distribute this file as part of a program that contains a
10706 # configuration script generated by Autoconf, you may include it under
10707 # the same distribution terms that you use for the rest of that program.
10709 # A sed program that does not truncate output.
10712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10713 Xsed="$SED -e 1s/^X//"
10715 # The HP-UX ksh and POSIX shell print the target directory to stdout
10716 # if CDPATH is set.
10717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10719 # The names of the tagged configurations supported by this script.
10722 # ### BEGIN LIBTOOL CONFIG
10724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10726 # Shell to use when invoking shell scripts.
10729 # Whether or not to build shared libraries.
10730 build_libtool_libs=$enable_shared
10732 # Whether or not to build static libraries.
10733 build_old_libs=$enable_static
10735 # Whether or not to add -lc for building shared libraries.
10736 build_libtool_need_lc=$archive_cmds_need_lc
10738 # Whether or not to disallow shared libs when runtime libs are static
10739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10741 # Whether or not to optimize for fast installation.
10742 fast_install=$enable_fast_install
10745 host_alias=$host_alias
10749 # The build system.
10750 build_alias=$build_alias
10754 # An echo program that does not interpret backslashes.
10759 AR_FLAGS=$lt_AR_FLAGS
10764 # A language-specific compiler.
10767 # Is the compiler the GNU C compiler?
10773 # The linker used to build libraries.
10776 # Whether we need hard or soft links.
10779 # A BSD-compatible nm program.
10782 # A symbol stripping program
10785 # Used to examine libraries when file_magic_cmd begins "file"
10786 MAGIC_CMD=$MAGIC_CMD
10788 # Used on cygwin: DLL creation program.
10791 # Used on cygwin: object dumper.
10794 # Used on cygwin: assembler.
10797 # The name of the directory that contains temporary libtool files.
10800 # How to create reloadable object files.
10801 reload_flag=$lt_reload_flag
10802 reload_cmds=$lt_reload_cmds
10804 # How to pass a linker flag through the compiler.
10805 wl=$lt_lt_prog_compiler_wl
10807 # Object file suffix (normally "o").
10808 objext="$ac_objext"
10810 # Old archive suffix (normally "a").
10813 # Shared library suffix (normally ".so").
10814 shrext_cmds='$shrext_cmds'
10816 # Executable file suffix (normally "").
10819 # Additional compiler flags for building library objects.
10820 pic_flag=$lt_lt_prog_compiler_pic
10823 # What is the maximum length of a command?
10824 max_cmd_len=$lt_cv_sys_max_cmd_len
10826 # Does compiler simultaneously support -c and -o options?
10827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10829 # Must we lock files when doing compilation?
10830 need_locks=$lt_need_locks
10832 # Do we need the lib prefix for modules?
10833 need_lib_prefix=$need_lib_prefix
10835 # Do we need a version for libraries?
10836 need_version=$need_version
10838 # Whether dlopen is supported.
10839 dlopen_support=$enable_dlopen
10841 # Whether dlopen of programs is supported.
10842 dlopen_self=$enable_dlopen_self
10844 # Whether dlopen of statically linked programs is supported.
10845 dlopen_self_static=$enable_dlopen_self_static
10847 # Compiler flag to prevent dynamic linking.
10848 link_static_flag=$lt_lt_prog_compiler_static
10850 # Compiler flag to turn off builtin functions.
10851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10853 # Compiler flag to allow reflexive dlopens.
10854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10856 # Compiler flag to generate shared objects directly from archives.
10857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10859 # Compiler flag to generate thread-safe objects.
10860 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10862 # Library versioning type.
10863 version_type=$version_type
10865 # Format of library name prefix.
10866 libname_spec=$lt_libname_spec
10868 # List of archive names. First name is the real one, the rest are links.
10869 # The last name is the one that the linker finds with -lNAME.
10870 library_names_spec=$lt_library_names_spec
10872 # The coded name of the library, if different from the real name.
10873 soname_spec=$lt_soname_spec
10875 # Commands used to build and install an old-style archive.
10877 old_archive_cmds=$lt_old_archive_cmds
10878 old_postinstall_cmds=$lt_old_postinstall_cmds
10879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10881 # Create an old-style archive from a shared archive.
10882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10884 # Create a temporary old-style archive to link instead of a shared archive.
10885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10887 # Commands used to build and install a shared archive.
10888 archive_cmds=$lt_archive_cmds
10889 archive_expsym_cmds=$lt_archive_expsym_cmds
10890 postinstall_cmds=$lt_postinstall_cmds
10891 postuninstall_cmds=$lt_postuninstall_cmds
10893 # Commands used to build a loadable module (assumed same as above if empty)
10894 module_cmds=$lt_module_cmds
10895 module_expsym_cmds=$lt_module_expsym_cmds
10897 # Commands to strip libraries.
10898 old_striplib=$lt_old_striplib
10899 striplib=$lt_striplib
10901 # Dependencies to place before the objects being linked to create a
10903 predep_objects=$lt_predep_objects
10905 # Dependencies to place after the objects being linked to create a
10907 postdep_objects=$lt_postdep_objects
10909 # Dependencies to place before the objects being linked to create a
10911 predeps=$lt_predeps
10913 # Dependencies to place after the objects being linked to create a
10915 postdeps=$lt_postdeps
10917 # The library search path used internally by the compiler when linking
10918 # a shared library.
10919 compiler_lib_search_path=$lt_compiler_lib_search_path
10921 # Method to check whether dependent libraries are shared objects.
10922 deplibs_check_method=$lt_deplibs_check_method
10924 # Command to use when deplibs_check_method == file_magic.
10925 file_magic_cmd=$lt_file_magic_cmd
10927 # Flag that allows shared libraries with undefined symbols to be built.
10928 allow_undefined_flag=$lt_allow_undefined_flag
10930 # Flag that forces no undefined symbols.
10931 no_undefined_flag=$lt_no_undefined_flag
10933 # Commands used to finish a libtool library installation in a directory.
10934 finish_cmds=$lt_finish_cmds
10936 # Same as above, but a single script fragment to be evaled but not shown.
10937 finish_eval=$lt_finish_eval
10939 # Take the output of nm and produce a listing of raw symbols and C names.
10940 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10942 # Transform the output of nm in a proper C declaration
10943 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10945 # Transform the output of nm in a C name address pair
10946 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10948 # This is the shared library runtime path variable.
10949 runpath_var=$runpath_var
10951 # This is the shared library path variable.
10952 shlibpath_var=$shlibpath_var
10954 # Is shlibpath searched before the hard-coded library search path?
10955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10957 # How to hardcode a shared library path into an executable.
10958 hardcode_action=$hardcode_action
10960 # Whether we should hardcode library paths into libraries.
10961 hardcode_into_libs=$hardcode_into_libs
10963 # Flag to hardcode \$libdir into a binary during linking.
10964 # This must work even if \$libdir does not exist.
10965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10967 # If ld is used when linking, flag to hardcode \$libdir into
10968 # a binary during linking. This must work even if \$libdir does
10970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10972 # Whether we need a single -rpath flag with a separated argument.
10973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10975 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10976 # resulting binary.
10977 hardcode_direct=$hardcode_direct
10979 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10980 # resulting binary.
10981 hardcode_minus_L=$hardcode_minus_L
10983 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10984 # the resulting binary.
10985 hardcode_shlibpath_var=$hardcode_shlibpath_var
10987 # Set to yes if building a shared library automatically hardcodes DIR into the library
10988 # and all subsequent libraries and executables linked against it.
10989 hardcode_automatic=$hardcode_automatic
10991 # Variables whose values should be saved in libtool wrapper scripts and
10992 # restored at relink time.
10993 variables_saved_for_relink="$variables_saved_for_relink"
10995 # Whether libtool must link a program against all its dependency libraries.
10996 link_all_deplibs=$link_all_deplibs
10998 # Compile-time system search path for libraries
10999 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11001 # Run-time system search path for libraries
11002 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11004 # Fix the shell variable \$srcfile for the compiler.
11005 fix_srcfile_path="$fix_srcfile_path"
11007 # Set to yes if exported symbols are required.
11008 always_export_symbols=$always_export_symbols
11010 # The commands to list exported symbols.
11011 export_symbols_cmds=$lt_export_symbols_cmds
11013 # The commands to extract the exported symbol list from a shared archive.
11014 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11016 # Symbols that should not be listed in the preloaded symbols.
11017 exclude_expsyms=$lt_exclude_expsyms
11019 # Symbols that must always be exported.
11020 include_expsyms=$lt_include_expsyms
11022 # ### END LIBTOOL CONFIG
11029 cat <<\EOF >> "$cfgfile"
11031 # AIX sometimes has problems with the GCC collect2 program. For some
11032 # reason, if we set the COLLECT_NAMES environment variable, the problems
11033 # vanish in a puff of smoke.
11034 if test "X${COLLECT_NAMES+set}" != Xset; then
11036 export COLLECT_NAMES
11042 # We use sed instead of cat because bash on DJGPP gets confused if
11043 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11044 # text mode, it properly converts lines to CR/LF. This bash problem
11045 # is reportedly fixed, but why not run on old versions too?
11046 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11048 mv -f "$cfgfile" "$ofile" || \
11049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11053 # If there is no Makefile yet, we rely on a make rule to execute
11054 # `config.status --recheck' to rerun these tests and create the
11055 # libtool script then.
11056 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11057 if test -f "$ltmain_in"; then
11058 test -f Makefile && make "$ltmain"
11064 ac_cpp='$CPP $CPPFLAGS'
11065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11072 # Check whether --with-tags or --without-tags was given.
11073 if test "${with_tags+set}" = set; then
11074 withval="$with_tags"
11075 tagnames="$withval"
11078 if test -f "$ltmain" && test -n "$tagnames"; then
11079 if test ! -f "${ofile}"; then
11080 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11081 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11084 if test -z "$LTCC"; then
11085 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11086 if test -z "$LTCC"; then
11087 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11088 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11091 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11095 # Extract list of available tagged configurations in $ofile.
11096 # Note that this assumes the entire list is on one line.
11097 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11100 for tagname in $tagnames; do
11102 # Check whether tagname contains only valid characters
11103 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11106 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11107 { (exit 1); exit 1; }; }
11111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11114 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11115 { (exit 1); exit 1; }; }
11118 # Update the list of available tags.
11119 if test -n "$tagname"; then
11120 echo appending configuration tag \"$tagname\" to $ofile
11124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11126 (test "X$CXX" != "Xg++"))) ; then
11134 if test -n "$F77" && test "X$F77" != "Xno"; then
11142 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11153 # Source file extension for RC test sources.
11156 # Object file extension for compiled RC test sources.
11160 # Code to be used in simple compile tests
11161 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11163 # Code to be used in simple link tests
11164 lt_simple_link_test_code="$lt_simple_compile_test_code"
11166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11168 # If no C compiler was specified, use CC.
11171 # Allow CC to be a program name with arguments.
11175 # save warnings/boilerplate of simple test code
11176 ac_outfile=conftest.$ac_objext
11177 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11179 _lt_compiler_boilerplate=`cat conftest.err`
11182 ac_outfile=conftest.$ac_objext
11183 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11185 _lt_linker_boilerplate=`cat conftest.err`
11189 # Allow CC to be a program name with arguments.
11194 for cc_temp in $compiler""; do
11196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11204 lt_cv_prog_compiler_c_o_RC=yes
11206 # The else clause should only fire when bootstrapping the
11207 # libtool distribution, otherwise you forgot to ship ltmain.sh
11208 # with your package, and you will get complaints that there are
11209 # no rules to generate ltmain.sh.
11210 if test -f "$ltmain"; then
11211 # See if we are running on zsh, and set the options which allow our commands through
11212 # without removal of \ escapes.
11213 if test -n "${ZSH_VERSION+set}" ; then
11214 setopt NO_GLOB_SUBST
11216 # Now quote all the things that may contain metacharacters while being
11217 # careful not to overquote the AC_SUBSTed values. We take copies of the
11218 # variables and quote the copies for generation of the libtool script.
11219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11223 deplibs_check_method reload_flag reload_cmds need_locks \
11224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11225 lt_cv_sys_global_symbol_to_c_name_address \
11226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11227 old_postinstall_cmds old_postuninstall_cmds \
11231 lt_prog_compiler_wl_RC \
11232 lt_prog_compiler_pic_RC \
11233 lt_prog_compiler_static_RC \
11234 lt_prog_compiler_no_builtin_flag_RC \
11235 export_dynamic_flag_spec_RC \
11236 thread_safe_flag_spec_RC \
11237 whole_archive_flag_spec_RC \
11238 enable_shared_with_static_runtimes_RC \
11239 old_archive_cmds_RC \
11240 old_archive_from_new_cmds_RC \
11241 predep_objects_RC \
11242 postdep_objects_RC \
11245 compiler_lib_search_path_RC \
11247 archive_expsym_cmds_RC \
11248 postinstall_cmds_RC \
11249 postuninstall_cmds_RC \
11250 old_archive_from_expsyms_cmds_RC \
11251 allow_undefined_flag_RC \
11252 no_undefined_flag_RC \
11253 export_symbols_cmds_RC \
11254 hardcode_libdir_flag_spec_RC \
11255 hardcode_libdir_flag_spec_ld_RC \
11256 hardcode_libdir_separator_RC \
11257 hardcode_automatic_RC \
11259 module_expsym_cmds_RC \
11260 lt_cv_prog_compiler_c_o_RC \
11261 exclude_expsyms_RC \
11262 include_expsyms_RC; do
11265 old_archive_cmds_RC | \
11266 old_archive_from_new_cmds_RC | \
11267 archive_cmds_RC | \
11268 archive_expsym_cmds_RC | \
11270 module_expsym_cmds_RC | \
11271 old_archive_from_expsyms_cmds_RC | \
11272 export_symbols_cmds_RC | \
11273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11274 postinstall_cmds | postuninstall_cmds | \
11275 old_postinstall_cmds | old_postuninstall_cmds | \
11276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11277 # Double-quote double-evaled strings.
11278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11287 *'\$0 --fallback-echo"')
11288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11294 cat <<__EOF__ >> "$cfgfile"
11295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11299 # Shell to use when invoking shell scripts.
11302 # Whether or not to build shared libraries.
11303 build_libtool_libs=$enable_shared
11305 # Whether or not to build static libraries.
11306 build_old_libs=$enable_static
11308 # Whether or not to add -lc for building shared libraries.
11309 build_libtool_need_lc=$archive_cmds_need_lc_RC
11311 # Whether or not to disallow shared libs when runtime libs are static
11312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11314 # Whether or not to optimize for fast installation.
11315 fast_install=$enable_fast_install
11318 host_alias=$host_alias
11322 # The build system.
11323 build_alias=$build_alias
11327 # An echo program that does not interpret backslashes.
11332 AR_FLAGS=$lt_AR_FLAGS
11337 # A language-specific compiler.
11340 # Is the compiler the GNU C compiler?
11346 # The linker used to build libraries.
11349 # Whether we need hard or soft links.
11352 # A BSD-compatible nm program.
11355 # A symbol stripping program
11358 # Used to examine libraries when file_magic_cmd begins "file"
11359 MAGIC_CMD=$MAGIC_CMD
11361 # Used on cygwin: DLL creation program.
11364 # Used on cygwin: object dumper.
11367 # Used on cygwin: assembler.
11370 # The name of the directory that contains temporary libtool files.
11373 # How to create reloadable object files.
11374 reload_flag=$lt_reload_flag
11375 reload_cmds=$lt_reload_cmds
11377 # How to pass a linker flag through the compiler.
11378 wl=$lt_lt_prog_compiler_wl_RC
11380 # Object file suffix (normally "o").
11381 objext="$ac_objext"
11383 # Old archive suffix (normally "a").
11386 # Shared library suffix (normally ".so").
11387 shrext_cmds='$shrext_cmds'
11389 # Executable file suffix (normally "").
11392 # Additional compiler flags for building library objects.
11393 pic_flag=$lt_lt_prog_compiler_pic_RC
11396 # What is the maximum length of a command?
11397 max_cmd_len=$lt_cv_sys_max_cmd_len
11399 # Does compiler simultaneously support -c and -o options?
11400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11402 # Must we lock files when doing compilation?
11403 need_locks=$lt_need_locks
11405 # Do we need the lib prefix for modules?
11406 need_lib_prefix=$need_lib_prefix
11408 # Do we need a version for libraries?
11409 need_version=$need_version
11411 # Whether dlopen is supported.
11412 dlopen_support=$enable_dlopen
11414 # Whether dlopen of programs is supported.
11415 dlopen_self=$enable_dlopen_self
11417 # Whether dlopen of statically linked programs is supported.
11418 dlopen_self_static=$enable_dlopen_self_static
11420 # Compiler flag to prevent dynamic linking.
11421 link_static_flag=$lt_lt_prog_compiler_static_RC
11423 # Compiler flag to turn off builtin functions.
11424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11426 # Compiler flag to allow reflexive dlopens.
11427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11429 # Compiler flag to generate shared objects directly from archives.
11430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11432 # Compiler flag to generate thread-safe objects.
11433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11435 # Library versioning type.
11436 version_type=$version_type
11438 # Format of library name prefix.
11439 libname_spec=$lt_libname_spec
11441 # List of archive names. First name is the real one, the rest are links.
11442 # The last name is the one that the linker finds with -lNAME.
11443 library_names_spec=$lt_library_names_spec
11445 # The coded name of the library, if different from the real name.
11446 soname_spec=$lt_soname_spec
11448 # Commands used to build and install an old-style archive.
11450 old_archive_cmds=$lt_old_archive_cmds_RC
11451 old_postinstall_cmds=$lt_old_postinstall_cmds
11452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11454 # Create an old-style archive from a shared archive.
11455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11457 # Create a temporary old-style archive to link instead of a shared archive.
11458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11460 # Commands used to build and install a shared archive.
11461 archive_cmds=$lt_archive_cmds_RC
11462 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11463 postinstall_cmds=$lt_postinstall_cmds
11464 postuninstall_cmds=$lt_postuninstall_cmds
11466 # Commands used to build a loadable module (assumed same as above if empty)
11467 module_cmds=$lt_module_cmds_RC
11468 module_expsym_cmds=$lt_module_expsym_cmds_RC
11470 # Commands to strip libraries.
11471 old_striplib=$lt_old_striplib
11472 striplib=$lt_striplib
11474 # Dependencies to place before the objects being linked to create a
11476 predep_objects=$lt_predep_objects_RC
11478 # Dependencies to place after the objects being linked to create a
11480 postdep_objects=$lt_postdep_objects_RC
11482 # Dependencies to place before the objects being linked to create a
11484 predeps=$lt_predeps_RC
11486 # Dependencies to place after the objects being linked to create a
11488 postdeps=$lt_postdeps_RC
11490 # The library search path used internally by the compiler when linking
11491 # a shared library.
11492 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11494 # Method to check whether dependent libraries are shared objects.
11495 deplibs_check_method=$lt_deplibs_check_method
11497 # Command to use when deplibs_check_method == file_magic.
11498 file_magic_cmd=$lt_file_magic_cmd
11500 # Flag that allows shared libraries with undefined symbols to be built.
11501 allow_undefined_flag=$lt_allow_undefined_flag_RC
11503 # Flag that forces no undefined symbols.
11504 no_undefined_flag=$lt_no_undefined_flag_RC
11506 # Commands used to finish a libtool library installation in a directory.
11507 finish_cmds=$lt_finish_cmds
11509 # Same as above, but a single script fragment to be evaled but not shown.
11510 finish_eval=$lt_finish_eval
11512 # Take the output of nm and produce a listing of raw symbols and C names.
11513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11515 # Transform the output of nm in a proper C declaration
11516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11518 # Transform the output of nm in a C name address pair
11519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11521 # This is the shared library runtime path variable.
11522 runpath_var=$runpath_var
11524 # This is the shared library path variable.
11525 shlibpath_var=$shlibpath_var
11527 # Is shlibpath searched before the hard-coded library search path?
11528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11530 # How to hardcode a shared library path into an executable.
11531 hardcode_action=$hardcode_action_RC
11533 # Whether we should hardcode library paths into libraries.
11534 hardcode_into_libs=$hardcode_into_libs
11536 # Flag to hardcode \$libdir into a binary during linking.
11537 # This must work even if \$libdir does not exist.
11538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11540 # If ld is used when linking, flag to hardcode \$libdir into
11541 # a binary during linking. This must work even if \$libdir does
11543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11545 # Whether we need a single -rpath flag with a separated argument.
11546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11549 # resulting binary.
11550 hardcode_direct=$hardcode_direct_RC
11552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11553 # resulting binary.
11554 hardcode_minus_L=$hardcode_minus_L_RC
11556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11557 # the resulting binary.
11558 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11560 # Set to yes if building a shared library automatically hardcodes DIR into the library
11561 # and all subsequent libraries and executables linked against it.
11562 hardcode_automatic=$hardcode_automatic_RC
11564 # Variables whose values should be saved in libtool wrapper scripts and
11565 # restored at relink time.
11566 variables_saved_for_relink="$variables_saved_for_relink"
11568 # Whether libtool must link a program against all its dependency libraries.
11569 link_all_deplibs=$link_all_deplibs_RC
11571 # Compile-time system search path for libraries
11572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11574 # Run-time system search path for libraries
11575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11577 # Fix the shell variable \$srcfile for the compiler.
11578 fix_srcfile_path="$fix_srcfile_path_RC"
11580 # Set to yes if exported symbols are required.
11581 always_export_symbols=$always_export_symbols_RC
11583 # The commands to list exported symbols.
11584 export_symbols_cmds=$lt_export_symbols_cmds_RC
11586 # The commands to extract the exported symbol list from a shared archive.
11587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11589 # Symbols that should not be listed in the preloaded symbols.
11590 exclude_expsyms=$lt_exclude_expsyms_RC
11592 # Symbols that must always be exported.
11593 include_expsyms=$lt_include_expsyms_RC
11595 # ### END LIBTOOL TAG CONFIG: $tagname
11601 # If there is no Makefile yet, we rely on a make rule to execute
11602 # `config.status --recheck' to rerun these tests and create the
11603 # libtool script then.
11604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11605 if test -f "$ltmain_in"; then
11606 test -f Makefile && make "$ltmain"
11612 ac_cpp='$CPP $CPPFLAGS'
11613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11623 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11624 { (exit 1); exit 1; }; }
11628 # Append the new tag name to the list of available tags.
11629 if test -n "$tagname" ; then
11630 available_tags="$available_tags $tagname"
11636 # Now substitute the updated list of available tags.
11637 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11638 mv "${ofile}T" "$ofile"
11642 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11643 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11644 { (exit 1); exit 1; }; }
11650 # This can be used to rebuild libtool when needed
11651 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11653 # Always use our own libtool.
11654 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11656 # Prevent multiple expansion
11668 if test $ol_enable_perl != no ; then
11669 # Extract the first word of "perl", so it can be a program name with args.
11670 set dummy perl; ac_word=$2
11671 echo "$as_me:$LINENO: checking for $ac_word" >&5
11672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11673 if test "${ac_cv_path_PERLBIN+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11699 PERLBIN=$ac_cv_path_PERLBIN
11701 if test -n "$PERLBIN"; then
11702 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11703 echo "${ECHO_T}$PERLBIN" >&6
11705 echo "$as_me:$LINENO: result: no" >&5
11706 echo "${ECHO_T}no" >&6
11710 if test "no$PERLBIN" = "no" ; then
11711 if test $ol_enable_perl = yes ; then
11712 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11713 echo "$as_me: error: could not locate perl" >&2;}
11714 { (exit 1); exit 1; }; }
11718 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11719 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11721 if test x"$ol_enable_perl" = "xyes" ; then
11722 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11724 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11731 ac_cpp='$CPP $CPPFLAGS'
11732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11735 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11737 # On Suns, sometimes $CPP names a directory.
11738 if test -n "$CPP" && test -d "$CPP"; then
11741 if test -z "$CPP"; then
11742 if test "${ac_cv_prog_CPP+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 # Double quotes because CPP needs to be expanded
11746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11748 ac_preproc_ok=false
11749 for ac_c_preproc_warn_flag in '' yes
11751 # Use a header file that comes with gcc, so configuring glibc
11752 # with a fresh cross-compiler works.
11753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11754 # <limits.h> exists even on freestanding compilers.
11755 # On the NeXT, cc -E runs the code through the compiler's parser,
11756 # not just through cpp. "Syntax error" is here to catch this case.
11757 cat >conftest.$ac_ext <<_ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11764 # include <limits.h>
11766 # include <assert.h>
11770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } >/dev/null; then
11778 if test -s conftest.err; then
11779 ac_cpp_err=$ac_c_preproc_warn_flag
11780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11787 if test -z "$ac_cpp_err"; then
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 # Broken: fails on valid input.
11796 rm -f conftest.err conftest.$ac_ext
11798 # OK, works on sane cases. Now check whether non-existent headers
11799 # can be detected and how.
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <ac_nonexistent.h>
11808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev/null; then
11816 if test -s conftest.err; then
11817 ac_cpp_err=$ac_c_preproc_warn_flag
11818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825 if test -z "$ac_cpp_err"; then
11826 # Broken: success on invalid input.
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 # Passes both tests.
11836 rm -f conftest.err conftest.$ac_ext
11839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11840 rm -f conftest.err conftest.$ac_ext
11841 if $ac_preproc_ok; then
11846 ac_cv_prog_CPP=$CPP
11849 CPP=$ac_cv_prog_CPP
11851 ac_cv_prog_CPP=$CPP
11853 echo "$as_me:$LINENO: result: $CPP" >&5
11854 echo "${ECHO_T}$CPP" >&6
11855 ac_preproc_ok=false
11856 for ac_c_preproc_warn_flag in '' yes
11858 # Use a header file that comes with gcc, so configuring glibc
11859 # with a fresh cross-compiler works.
11860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11861 # <limits.h> exists even on freestanding compilers.
11862 # On the NeXT, cc -E runs the code through the compiler's parser,
11863 # not just through cpp. "Syntax error" is here to catch this case.
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11871 # include <limits.h>
11873 # include <assert.h>
11877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } >/dev/null; then
11885 if test -s conftest.err; then
11886 ac_cpp_err=$ac_c_preproc_warn_flag
11887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11894 if test -z "$ac_cpp_err"; then
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 # Broken: fails on valid input.
11903 rm -f conftest.err conftest.$ac_ext
11905 # OK, works on sane cases. Now check whether non-existent headers
11906 # can be detected and how.
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <ac_nonexistent.h>
11915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11932 if test -z "$ac_cpp_err"; then
11933 # Broken: success on invalid input.
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 # Passes both tests.
11943 rm -f conftest.err conftest.$ac_ext
11946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11947 rm -f conftest.err conftest.$ac_ext
11948 if $ac_preproc_ok; then
11951 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11952 See \`config.log' for more details." >&5
11953 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11954 See \`config.log' for more details." >&2;}
11955 { (exit 1); exit 1; }; }
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966 *mingw32* ) ac_cv_mingw32=yes ;;
11967 *cygwin* ) ac_cv_cygwin=yes ;;
11973 cat >>confdefs.h <<_ACEOF
11974 #define EXEEXT "${EXEEXT}"
11978 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11979 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11980 if test "${ac_cv_lib_be_be_app+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 ac_check_lib_save_LIBS=$LIBS
11984 LIBS="-lbe -lroot -lnet $LIBS"
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11992 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag"
12017 || test ! -s conftest.err'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_lib_be_be_app=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_cv_lib_be_be_app=no
12036 rm -f conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12040 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12041 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
12042 if test $ac_cv_lib_be_be_app = yes; then
12043 LIBS="$LIBS -lbe -lroot -lnet"
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054 if test -n "$ac_tool_prefix"; then
12055 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12056 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12057 echo "$as_me:$LINENO: checking for $ac_word" >&5
12058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12059 if test "${ac_cv_prog_CC+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 if test -n "$CC"; then
12063 ac_cv_prog_CC="$CC" # Let the user override the test.
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 if test -n "$CC"; then
12083 echo "$as_me:$LINENO: result: $CC" >&5
12084 echo "${ECHO_T}$CC" >&6
12086 echo "$as_me:$LINENO: result: no" >&5
12087 echo "${ECHO_T}no" >&6
12091 if test -z "$ac_cv_prog_CC"; then
12093 # Extract the first word of "gcc", so it can be a program name with args.
12094 set dummy gcc; ac_word=$2
12095 echo "$as_me:$LINENO: checking for $ac_word" >&5
12096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 if test -n "$ac_ct_CC"; then
12101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_ac_ct_CC="gcc"
12111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12120 if test -n "$ac_ct_CC"; then
12121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12122 echo "${ECHO_T}$ac_ct_CC" >&6
12124 echo "$as_me:$LINENO: result: no" >&5
12125 echo "${ECHO_T}no" >&6
12130 CC="$ac_cv_prog_CC"
12133 if test -z "$CC"; then
12134 if test -n "$ac_tool_prefix"; then
12135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12136 set dummy ${ac_tool_prefix}cc; ac_word=$2
12137 echo "$as_me:$LINENO: checking for $ac_word" >&5
12138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12139 if test "${ac_cv_prog_CC+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 if test -n "$CC"; then
12143 ac_cv_prog_CC="$CC" # Let the user override the test.
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_CC="${ac_tool_prefix}cc"
12153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 if test -n "$CC"; then
12163 echo "$as_me:$LINENO: result: $CC" >&5
12164 echo "${ECHO_T}$CC" >&6
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12171 if test -z "$ac_cv_prog_CC"; then
12173 # Extract the first word of "cc", so it can be a program name with args.
12174 set dummy cc; ac_word=$2
12175 echo "$as_me:$LINENO: checking for $ac_word" >&5
12176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 if test -n "$ac_ct_CC"; then
12181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_CC="cc"
12191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12200 if test -n "$ac_ct_CC"; then
12201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12202 echo "${ECHO_T}$ac_ct_CC" >&6
12204 echo "$as_me:$LINENO: result: no" >&5
12205 echo "${ECHO_T}no" >&6
12210 CC="$ac_cv_prog_CC"
12214 if test -z "$CC"; then
12215 # Extract the first word of "cc", so it can be a program name with args.
12216 set dummy cc; ac_word=$2
12217 echo "$as_me:$LINENO: checking for $ac_word" >&5
12218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12219 if test "${ac_cv_prog_CC+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 if test -n "$CC"; then
12223 ac_cv_prog_CC="$CC" # Let the user override the test.
12225 ac_prog_rejected=no
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12234 ac_prog_rejected=yes
12238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 if test $ac_prog_rejected = yes; then
12245 # We found a bogon in the path, so make sure we never use it.
12246 set dummy $ac_cv_prog_CC
12248 if test $# != 0; then
12249 # We chose a different compiler from the bogus one.
12250 # However, it has the same basename, so the bogon will be chosen
12251 # first if we set CC to just the basename; use the full file name.
12253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12259 if test -n "$CC"; then
12260 echo "$as_me:$LINENO: result: $CC" >&5
12261 echo "${ECHO_T}$CC" >&6
12263 echo "$as_me:$LINENO: result: no" >&5
12264 echo "${ECHO_T}no" >&6
12268 if test -z "$CC"; then
12269 if test -n "$ac_tool_prefix"; then
12272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12274 echo "$as_me:$LINENO: checking for $ac_word" >&5
12275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12276 if test "${ac_cv_prog_CC+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 if test -n "$CC"; then
12280 ac_cv_prog_CC="$CC" # Let the user override the test.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 if test -n "$CC"; then
12300 echo "$as_me:$LINENO: result: $CC" >&5
12301 echo "${ECHO_T}$CC" >&6
12303 echo "$as_me:$LINENO: result: no" >&5
12304 echo "${ECHO_T}no" >&6
12307 test -n "$CC" && break
12310 if test -z "$CC"; then
12314 # Extract the first word of "$ac_prog", so it can be a program name with args.
12315 set dummy $ac_prog; ac_word=$2
12316 echo "$as_me:$LINENO: checking for $ac_word" >&5
12317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 if test -n "$ac_ct_CC"; then
12322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_ac_ct_CC="$ac_prog"
12332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12341 if test -n "$ac_ct_CC"; then
12342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12343 echo "${ECHO_T}$ac_ct_CC" >&6
12345 echo "$as_me:$LINENO: result: no" >&5
12346 echo "${ECHO_T}no" >&6
12349 test -n "$ac_ct_CC" && break
12358 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12359 See \`config.log' for more details." >&5
12360 echo "$as_me: error: no acceptable C compiler found in \$PATH
12361 See \`config.log' for more details." >&2;}
12362 { (exit 1); exit 1; }; }
12364 # Provide some information about the compiler.
12365 echo "$as_me:$LINENO:" \
12366 "checking for C compiler version" >&5
12367 ac_compiler=`set X $ac_compile; echo $2`
12368 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12369 (eval $ac_compiler --version </dev/null >&5) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }
12373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12374 (eval $ac_compiler -v </dev/null >&5) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }
12378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12379 (eval $ac_compiler -V </dev/null >&5) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }
12384 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409 (eval $ac_compile) 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest.$ac_objext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_compiler_gnu=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12440 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12441 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12442 GCC=`test $ac_compiler_gnu = yes && echo yes`
12443 ac_test_CFLAGS=${CFLAGS+set}
12444 ac_save_CFLAGS=$CFLAGS
12446 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12448 if test "${ac_cv_prog_cc_g+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12466 rm -f conftest.$ac_objext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_prog_cc_g=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12499 if test "$ac_test_CFLAGS" = set; then
12500 CFLAGS=$ac_save_CFLAGS
12501 elif test $ac_cv_prog_cc_g = yes; then
12502 if test "$GCC" = yes; then
12508 if test "$GCC" = yes; then
12514 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12515 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12516 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_cv_prog_cc_stdc=no
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <stdarg.h>
12529 #include <sys/types.h>
12530 #include <sys/stat.h>
12531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12532 struct buf { int x; };
12533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12534 static char *e (p, i)
12540 static char *f (char * (*g) (char **, int), char **p, ...)
12545 s = g (p, va_arg (v,int));
12550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12551 function prototypes and stuff, but not '\xHH' hex character constants.
12552 These don't provoke an error unfortunately, instead are silently treated
12553 as 'x'. The following induces an error, until -std1 is added to get
12554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12555 array size at least. It's necessary to write '\x00'==0 to get something
12556 that's true only with -std1. */
12557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12559 int test (int i, double x);
12560 struct s1 {int (*f) (int a);};
12561 struct s2 {int (*f) (double a);};
12562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12573 # Don't try gcc -ansi; that turns off useful extensions and
12574 # breaks some systems' header files.
12575 # AIX -qlanglvl=ansi
12576 # Ultrix and OSF/1 -std1
12577 # HP-UX 10.20 and later -Ae
12578 # HP-UX older versions -Aa -D_HPUX_SOURCE
12579 # SVR4 -Xc -D__EXTENSIONS__
12580 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12582 CC="$ac_save_CC $ac_arg"
12583 rm -f conftest.$ac_objext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12585 (eval $ac_compile) 2>conftest.er1
12587 grep -v '^ *+' conftest.er1 >conftest.err
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
12592 { ac_try='test -z "$ac_c_werror_flag"
12593 || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_prog_cc_stdc=$ac_arg
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12612 rm -f conftest.err conftest.$ac_objext
12614 rm -f conftest.$ac_ext conftest.$ac_objext
12619 case "x$ac_cv_prog_cc_stdc" in
12621 echo "$as_me:$LINENO: result: none needed" >&5
12622 echo "${ECHO_T}none needed" >&6 ;;
12624 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12625 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12626 CC="$CC $ac_cv_prog_cc_stdc" ;;
12629 # Some people use a C++ compiler to compile C. Since we use `exit',
12630 # in C++ we need to declare it. In case someone uses the same compiler
12631 # for both compiling C and C++ we need to have the C++ compiler decide
12632 # the declaration of exit, since it's the most demanding environment.
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #ifndef __cplusplus
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
12660 for ac_declaration in \
12662 'extern "C" void std::exit (int) throw (); using std::exit;' \
12663 'extern "C" void std::exit (int); using std::exit;' \
12664 'extern "C" void exit (int) throw ();' \
12665 'extern "C" void exit (int);' \
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 #include <stdlib.h>
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>conftest.er1
12688 grep -v '^ *+' conftest.er1 >conftest.err
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -z "$ac_c_werror_flag"
12694 || test ! -s conftest.err'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; } &&
12700 { ac_try='test -s conftest.$ac_objext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 if test -n "$ac_declaration"; then
12761 echo '#ifdef __cplusplus' >>confdefs.h
12762 echo $ac_declaration >>confdefs.h
12763 echo '#endif' >>confdefs.h
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12773 ac_cpp='$CPP $CPPFLAGS'
12774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12778 depcc="$CC" am_compiler_list=
12780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12786 # We make a subdir and do the tests there. Otherwise we can end up
12787 # making bogus files that we don't know about and never remove. For
12788 # instance it was reported that on HP-UX the gcc test will end up
12789 # making a dummy file named `D' -- because `-MD' means `put the output
12792 # Copy depcomp to subdir because otherwise we won't find it if we're
12793 # using a relative directory.
12794 cp "$am_depcomp" conftest.dir
12796 # We will build objects and dependencies in a subdirectory because
12797 # it helps to detect inapplicable dependency modes. For instance
12798 # both Tru64's cc and ICC support -MD to output dependencies as a
12799 # side effect of compilation, but ICC will put the dependencies in
12800 # the current directory while Tru64 will put them in the object
12804 am_cv_CC_dependencies_compiler_type=none
12805 if test "$am_compiler_list" = ""; then
12806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12808 for depmode in $am_compiler_list; do
12809 # Setup a source with many dependencies, because some compilers
12810 # like to wrap large dependency lists on column 80 (with \), and
12811 # we should not choose a depcomp mode which is confused by this.
12813 # We need to recreate these files for each test, as the compiler may
12814 # overwrite some of them when testing with obscure command lines.
12815 # This happens at least with the AIX C compiler.
12817 for i in 1 2 3 4 5 6; do
12818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12820 # Solaris 8's {/usr,}/bin/sh.
12821 touch sub/conftst$i.h
12823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12827 # after this tag, mechanisms are not by side-effect, so they'll
12828 # only be used when explicitly requested
12829 if test "x$enable_dependency_tracking" = xyes; then
12837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12838 # mode. It turns out that the SunPro C++ compiler does not properly
12839 # handle `-M -o', and we need to detect this.
12840 if depmode=$depmode \
12841 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12843 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12844 >/dev/null 2>conftest.err &&
12845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12846 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12848 # icc doesn't choke on unknown options, it will just issue warnings
12849 # or remarks (even with -Werror). So we grep stderr for any message
12850 # that says an option was ignored or not supported.
12851 # When given -MP, icc 7.0 and 7.1 complain thusly:
12852 # icc: Command line warning: ignoring option '-M'; no argument required
12853 # The diagnosis changed in icc 8.0:
12854 # icc: Command line remark: option '-MP' not supported
12855 if (grep 'ignoring option' conftest.err ||
12856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12857 am_cv_CC_dependencies_compiler_type=$depmode
12864 rm -rf conftest.dir
12866 am_cv_CC_dependencies_compiler_type=none
12870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12877 test "x$enable_dependency_tracking" != xno \
12878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12879 am__fastdepCC_TRUE=
12880 am__fastdepCC_FALSE='#'
12882 am__fastdepCC_TRUE='#'
12883 am__fastdepCC_FALSE=
12887 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12888 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12889 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12890 { (exit 1); exit 1; }; }
12893 # test for make depend flag
12896 if test -z "${MKDEP}"; then
12897 OL_MKDEP="${CC-cc}"
12898 if test -z "${MKDEP_FLAGS}"; then
12899 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12900 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12901 if test "${ol_cv_mkdep+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 for flag in "-M" "-xM"; do
12907 cat > conftest.c <<EOF
12910 if { ac_try='$OL_MKDEP $flag conftest.c'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } \
12916 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12918 if test ! -f conftest."${ac_object}" ; then
12920 OL_MKDEP_FLAGS="$flag"
12928 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12929 echo "${ECHO_T}$ol_cv_mkdep" >&6
12932 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12936 OL_MKDEP="${MKDEP}"
12937 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12942 if test "${ol_cv_mkdep}" = no ; then
12943 # this will soon become an error
12944 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12945 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12948 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12949 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12950 if test "${ac_cv_lib_s_afopen+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_check_lib_save_LIBS=$LIBS
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 /* Override any gcc2 internal prototype to avoid an error. */
12966 /* We use char because int might match the return type of a gcc2
12967 builtin and then its argument prototype would still apply. */
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag"
12987 || test ! -s conftest.err'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_cv_lib_s_afopen=yes
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 ac_cv_lib_s_afopen=no
13006 rm -f conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13010 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13011 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
13012 if test $ac_cv_lib_s_afopen = yes; then
13016 cat >>confdefs.h <<\_ACEOF
13017 #define HAVE_AIX_SECURITY 1
13026 ac_cv_func_getopt=no
13028 cat >>confdefs.h <<\_ACEOF
13029 #define BOTH_STRINGS_H 1
13036 WITH_MODULES_ENABLED=no
13037 if test $ol_enable_modules != no ; then
13039 for ac_header in ltdl.h
13041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13043 echo "$as_me:$LINENO: checking for $ac_header" >&5
13044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13051 # Is the header compilable?
13052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <$ac_header>
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag"
13073 || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_header_compiler=yes
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 ac_header_compiler=no
13092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13094 echo "${ECHO_T}$ac_header_compiler" >&6
13096 # Is the header present?
13097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 #include <$ac_header>
13107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } >/dev/null; then
13115 if test -s conftest.err; then
13116 ac_cpp_err=$ac_c_preproc_warn_flag
13117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13124 if test -z "$ac_cpp_err"; then
13125 ac_header_preproc=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13130 ac_header_preproc=no
13132 rm -f conftest.err conftest.$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6
13136 # So? What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13143 ac_header_preproc=yes
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13160 ## --------------------------------------------- ##
13161 ## Report this to <http://www.openldap.org/its/> ##
13162 ## --------------------------------------------- ##
13165 sed "s/^/$as_me: WARNING: /" >&2
13168 echo "$as_me:$LINENO: checking for $ac_header" >&5
13169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 eval "$as_ac_Header=\$ac_header_preproc"
13175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13180 cat >>confdefs.h <<_ACEOF
13181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13189 if test $ac_cv_header_ltdl_h = no ; then
13190 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13191 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13192 { (exit 1); exit 1; }; }
13195 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13196 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13197 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-lltdl $LIBS"
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any gcc2 internal prototype to avoid an error. */
13213 /* We use char because int might match the return type of a gcc2
13214 builtin and then its argument prototype would still apply. */
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag"
13234 || test ! -s conftest.err'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_lib_ltdl_lt_dlinit=yes
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ac_cv_lib_ltdl_lt_dlinit=no
13253 rm -f conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13257 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13258 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13259 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13261 MODULES_LIBS=-lltdl
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_LIBLTDL 1
13271 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13272 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13273 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13274 { (exit 1); exit 1; }; }
13276 ol_link_modules=yes
13277 WITH_MODULES_ENABLED=yes
13280 for i in $Backends; do
13281 eval "ol_tmp=\$ol_enable_$i"
13282 if test $ol_tmp = mod ; then
13283 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13284 echo "$as_me: WARNING: building static $i backend" >&2;}
13285 eval "ol_enable_$i=yes"
13288 for i in $Overlays; do
13289 eval "ol_tmp=\$ol_enable_$i"
13290 if test $ol_tmp = mod ; then
13291 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13292 echo "$as_me: WARNING: building static $i overlay" >&2;}
13293 eval "ol_enable_$i=yes"
13299 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13300 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13301 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13313 #include <__ASCII__/generate_error.h>
13317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13320 grep -v '^ *+' conftest.er1 >conftest.err
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } >/dev/null; then
13325 if test -s conftest.err; then
13326 ac_cpp_err=$ac_c_preproc_warn_flag
13327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13334 if test -z "$ac_cpp_err"; then
13335 ol_cv_cpp_ebcdic=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ol_cv_cpp_ebcdic=no
13342 rm -f conftest.err conftest.$ac_ext
13344 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13345 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13346 if test $ol_cv_cpp_ebcdic = yes ; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_EBCDIC 1
13354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13356 if test "${ol_cv_header_stdc+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 #include <stdlib.h>
13366 #include <stdarg.h>
13367 #include <string.h>
13370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev/null; then
13378 if test -s conftest.err; then
13379 ac_cpp_err=$ac_c_preproc_warn_flag
13380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13387 if test -z "$ac_cpp_err"; then
13388 ol_cv_header_stdc=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ol_cv_header_stdc=no
13395 rm -f conftest.err conftest.$ac_ext
13397 if test $ol_cv_header_stdc = yes; then
13398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <string.h>
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409 $EGREP "memchr" >/dev/null 2>&1; then
13412 ol_cv_header_stdc=no
13418 if test $ol_cv_header_stdc = yes; then
13419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <stdlib.h>
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 $EGREP "free" >/dev/null 2>&1; then
13433 ol_cv_header_stdc=no
13439 if test $ol_cv_header_stdc = yes; then
13440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13441 if test "$cross_compiling" = yes; then
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13451 #ifndef HAVE_EBCDIC
13452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13455 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13456 || ('j' <= (c) && (c) <= 'r') \
13457 || ('s' <= (c) && (c) <= 'z'))
13458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13461 int main () { int i; for (i = 0; i < 256; i++)
13462 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13466 rm -f conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13479 echo "$as_me: program exited with status $ac_status" >&5
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ( exit $ac_status )
13484 ol_cv_header_stdc=no
13486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13491 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13492 if test $ol_cv_header_stdc = yes; then
13493 cat >>confdefs.h <<\_ACEOF
13494 #define STDC_HEADERS 1
13498 ac_cv_header_stdc=disable
13501 if test $ol_cv_header_stdc != yes; then
13502 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13503 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13511 ac_header_dirent=no
13512 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13513 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13514 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13515 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13537 rm -f conftest.$ac_objext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>conftest.er1
13541 grep -v '^ *+' conftest.er1 >conftest.err
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 eval "$as_ac_Header=yes"
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 eval "$as_ac_Header=no"
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13575 ac_header_dirent=$ac_hdr; break
13579 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13580 if test $ac_header_dirent = dirent.h; then
13581 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13582 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13583 if test "${ac_cv_search_opendir+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 ac_func_search_save_LIBS=$LIBS
13587 ac_cv_search_opendir=no
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 /* Override any gcc2 internal prototype to avoid an error. */
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612 (eval $ac_link) 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_cv_search_opendir="none required"
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13638 rm -f conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 if test "$ac_cv_search_opendir" = no; then
13641 for ac_lib in dir; do
13642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Override any gcc2 internal prototype to avoid an error. */
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag"
13675 || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_search_opendir="-l$ac_lib"
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13694 rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_func_search_save_LIBS
13700 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13701 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13702 if test "$ac_cv_search_opendir" != no; then
13703 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13708 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13710 if test "${ac_cv_search_opendir+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 ac_func_search_save_LIBS=$LIBS
13714 ac_cv_search_opendir=no
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any gcc2 internal prototype to avoid an error. */
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag"
13747 || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_search_opendir="none required"
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13765 rm -f conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
13767 if test "$ac_cv_search_opendir" = no; then
13768 for ac_lib in x; do
13769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 /* Override any gcc2 internal prototype to avoid an error. */
13781 /* We use char because int might match the return type of a gcc2
13782 builtin and then its argument prototype would still apply. */
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794 (eval $ac_link) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_search_opendir="-l$ac_lib"
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13821 rm -f conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13825 LIBS=$ac_func_search_save_LIBS
13827 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13828 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13829 if test "$ac_cv_search_opendir" != no; then
13830 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 #include <sys/types.h>
13848 #include <sys/wait.h>
13849 #ifndef WEXITSTATUS
13850 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag"
13876 || test ! -s conftest.err'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_cv_header_sys_wait_h=yes
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 ac_cv_header_sys_wait_h=no
13895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13899 if test $ac_cv_header_sys_wait_h = yes; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_SYS_WAIT_H 1
13907 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13908 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13909 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <sys/types.h>
13919 #include <termios.h>
13925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13926 $EGREP "yes" >/dev/null 2>&1; then
13927 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13929 ac_cv_sys_tiocgwinsz_in_termios_h=no
13934 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13935 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13937 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13938 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13939 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13940 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #include <sys/types.h>
13950 #include <sys/ioctl.h>
13956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13957 $EGREP "yes" >/dev/null 2>&1; then
13958 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13960 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13965 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13966 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13968 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define GWINSZ_IN_SYS_IOCTL 1
14073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14075 echo "$as_me:$LINENO: checking for $ac_header" >&5
14076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14083 # Is the header compilable?
14084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 $ac_includes_default
14093 #include <$ac_header>
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_header_compiler=yes
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_header_compiler=no
14124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14126 echo "${ECHO_T}$ac_header_compiler" >&6
14128 # Is the header present?
14129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 #include <$ac_header>
14139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } >/dev/null; then
14147 if test -s conftest.err; then
14148 ac_cpp_err=$ac_c_preproc_warn_flag
14149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14156 if test -z "$ac_cpp_err"; then
14157 ac_header_preproc=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_header_preproc=no
14164 rm -f conftest.err conftest.$ac_ext
14165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14166 echo "${ECHO_T}$ac_header_preproc" >&6
14168 # So? What about this header?
14169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14175 ac_header_preproc=yes
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14192 ## --------------------------------------------- ##
14193 ## Report this to <http://www.openldap.org/its/> ##
14194 ## --------------------------------------------- ##
14197 sed "s/^/$as_me: WARNING: /" >&2
14200 echo "$as_me:$LINENO: checking for $ac_header" >&5
14201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 eval "$as_ac_Header=\$ac_header_preproc"
14207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14212 cat >>confdefs.h <<_ACEOF
14213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14222 for ac_header in resolv.h
14224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <netinet/in.h>
14240 #include <$ac_header>
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244 (eval $ac_compile) 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag"
14252 || test ! -s conftest.err'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 eval "$as_ac_Header=yes"
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 eval "$as_ac_Header=no"
14271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14276 cat >>confdefs.h <<_ACEOF
14277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14286 for ac_header in netinet/tcp.h
14288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14289 echo "$as_me:$LINENO: checking for $ac_header" >&5
14290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14301 #include <netinet/in.h>
14304 #include <$ac_header>
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 eval "$as_ac_Header=yes"
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 eval "$as_ac_Header=no"
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 for ac_header in sys/ucred.h
14352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14353 echo "$as_me:$LINENO: checking for $ac_header" >&5
14354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 $ac_includes_default
14365 #ifdef HAVE_SYS_PARAM_H
14366 #include <sys/param.h>
14370 #include <$ac_header>
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
14376 grep -v '^ *+' conftest.er1 >conftest.err
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 eval "$as_ac_Header=yes"
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 eval "$as_ac_Header=no"
14401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14406 cat >>confdefs.h <<_ACEOF
14407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14418 for ac_func in sigaction sigset
14420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14421 echo "$as_me:$LINENO: checking for $ac_func" >&5
14422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14423 if eval "test \"\${$as_ac_var+set}\" = set"; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14434 #define $ac_func innocuous_$ac_func
14436 /* System header to define __stub macros and hopefully few prototypes,
14437 which can conflict with char $ac_func (); below.
14438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14439 <limits.h> exists even on freestanding compilers. */
14442 # include <limits.h>
14444 # include <assert.h>
14449 /* Override any gcc2 internal prototype to avoid an error. */
14454 /* We use char because int might match the return type of a gcc2
14455 builtin and then its argument prototype would still apply. */
14457 /* The GNU C library defines this for functions which it implements
14458 to always fail with ENOSYS. Some functions are actually named
14459 something starting with __ and the normal name is an alias. */
14460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14463 char (*f) () = $ac_func;
14472 return f != $ac_func;
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 eval "$as_ac_var=yes"
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 eval "$as_ac_var=no"
14506 rm -f conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14511 if test `eval echo '${'$as_ac_var'}'` = yes; then
14512 cat >>confdefs.h <<_ACEOF
14513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14520 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14522 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14523 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14524 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 ac_check_lib_save_LIBS=$LIBS
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14536 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14553 (eval $ac_link) 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag"
14561 || test ! -s conftest.err'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest$ac_exeext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_lib_V3_sigset=yes
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_V3_sigset=no
14580 rm -f conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 LIBS=$ac_check_lib_save_LIBS
14584 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14585 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14586 if test $ac_cv_lib_V3_sigset = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_LIBV3 1
14597 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14598 echo "$as_me:$LINENO: checking for winsock" >&5
14599 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14600 if test "${ol_cv_winsock+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 for curlib in ws2_32 wsock32; do
14605 LIBS="$LIBS -l$curlib"
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 #include <winsock.h>
14619 select(0,NULL,NULL,NULL,NULL);
14621 gethostname(NULL,0);
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14629 (eval $ac_link) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14656 rm -f conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14659 if test $ol_cv_winsock = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_WINSOCK 1
14665 ac_cv_func_socket=yes
14666 ac_cv_func_select=yes
14667 ac_cv_func_closesocket=yes
14668 ac_cv_func_gethostname=yes
14669 if test $curlib = ws2_32; then
14670 ol_cv_winsock=winsock2
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_WINSOCK2 1
14682 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14683 echo "${ECHO_T}$ol_cv_winsock" >&6
14687 echo "$as_me:$LINENO: checking for socket" >&5
14688 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14689 if test "${ac_cv_func_socket+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700 #define socket innocuous_socket
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char socket (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14708 # include <limits.h>
14710 # include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_socket) || defined (__stub___socket)
14729 char (*f) () = socket;
14738 return f != socket;
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag"
14753 || test ! -s conftest.err'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_cv_func_socket=yes
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 ac_cv_func_socket=no
14772 rm -f conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14776 echo "${ECHO_T}$ac_cv_func_socket" >&6
14777 if test $ac_cv_func_socket = yes; then
14782 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14783 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14784 if test "${ac_cv_lib_socket_main+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lsocket $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_lib_socket_main=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_socket_main=no
14834 rm -f conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS=$ac_check_lib_save_LIBS
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14839 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14840 if test $ac_cv_lib_socket_main = yes; then
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_LIBSOCKET 1
14845 LIBS="-lsocket $LIBS"
14850 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14851 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14852 if test "${ac_cv_lib_net_main+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 ac_check_lib_save_LIBS=$LIBS
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest$ac_exeext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_lib_net_main=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ac_cv_lib_net_main=no
14902 rm -f conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LIBS=$ac_check_lib_save_LIBS
14906 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14907 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14908 if test $ac_cv_lib_net_main = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_LIBNET 1
14918 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14919 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14920 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lnsl_s $LIBS"
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943 (eval $ac_link) 2>conftest.er1
14945 grep -v '^ *+' conftest.er1 >conftest.err
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_c_werror_flag"
14951 || test ! -s conftest.err'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_lib_nsl_s_main=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_cv_lib_nsl_s_main=no
14970 rm -f conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14975 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14976 if test $ac_cv_lib_nsl_s_main = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBNSL_S 1
14981 LIBS="-lnsl_s $LIBS"
14986 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14987 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14988 if test "${ac_cv_lib_nsl_main+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 ac_check_lib_save_LIBS=$LIBS
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15009 rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15011 (eval $ac_link) 2>conftest.er1
15013 grep -v '^ *+' conftest.er1 >conftest.err
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_lib_nsl_main=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_lib_nsl_main=no
15038 rm -f conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15040 LIBS=$ac_check_lib_save_LIBS
15042 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15043 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15044 if test $ac_cv_lib_nsl_main = yes; then
15045 cat >>confdefs.h <<_ACEOF
15046 #define HAVE_LIBNSL 1
15054 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15055 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15056 if test "${ac_cv_lib_inet_socket+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-linet $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any gcc2 internal prototype to avoid an error. */
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085 (eval $ac_link) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_inet_socket=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_lib_inet_socket=no
15112 rm -f conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15114 LIBS=$ac_check_lib_save_LIBS
15116 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15117 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15118 if test $ac_cv_lib_inet_socket = yes; then
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_LIBINET 1
15123 LIBS="-linet $LIBS"
15128 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15129 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15130 if test "${ac_cv_lib_gen_main+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 ac_check_lib_save_LIBS=$LIBS
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_gen_main=yes
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_cv_lib_gen_main=no
15180 rm -f conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15185 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15186 if test $ac_cv_lib_gen_main = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188 #define HAVE_LIBGEN 1
15199 echo "$as_me:$LINENO: checking for select" >&5
15200 echo $ECHO_N "checking for select... $ECHO_C" >&6
15201 if test "${ac_cv_func_select+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 /* Define select to an innocuous variant, in case <limits.h> declares select.
15211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15212 #define select innocuous_select
15214 /* System header to define __stub macros and hopefully few prototypes,
15215 which can conflict with char select (); below.
15216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15217 <limits.h> exists even on freestanding compilers. */
15220 # include <limits.h>
15222 # include <assert.h>
15227 /* Override any gcc2 internal prototype to avoid an error. */
15232 /* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15235 /* The GNU C library defines this for functions which it implements
15236 to always fail with ENOSYS. Some functions are actually named
15237 something starting with __ and the normal name is an alias. */
15238 #if defined (__stub_select) || defined (__stub___select)
15241 char (*f) () = select;
15250 return f != select;
15255 rm -f conftest.$ac_objext conftest$ac_exeext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15257 (eval $ac_link) 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -z "$ac_c_werror_flag"
15265 || test ! -s conftest.err'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_func_select=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_func_select=no
15284 rm -f conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15288 echo "${ECHO_T}$ac_cv_func_select" >&6
15289 if test $ac_cv_func_select = yes; then
15292 { { echo "$as_me:$LINENO: error: select() required." >&5
15293 echo "$as_me: error: select() required." >&2;}
15294 { (exit 1); exit 1; }; }
15298 if test "${ac_cv_header_winsock_h}" != yes; then
15301 for ac_header in sys/select.h sys/socket.h
15303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15305 echo "$as_me:$LINENO: checking for $ac_header" >&5
15306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15313 # Is the header compilable?
15314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 $ac_includes_default
15323 #include <$ac_header>
15325 rm -f conftest.$ac_objext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15327 (eval $ac_compile) 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } &&
15334 { ac_try='test -z "$ac_c_werror_flag"
15335 || test ! -s conftest.err'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_header_compiler=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_header_compiler=no
15354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15356 echo "${ECHO_T}$ac_header_compiler" >&6
15358 # Is the header present?
15359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <$ac_header>
15369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15372 grep -v '^ *+' conftest.er1 >conftest.err
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } >/dev/null; then
15377 if test -s conftest.err; then
15378 ac_cpp_err=$ac_c_preproc_warn_flag
15379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15386 if test -z "$ac_cpp_err"; then
15387 ac_header_preproc=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_preproc=no
15394 rm -f conftest.err conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15396 echo "${ECHO_T}$ac_header_preproc" >&6
15398 # So? What about this header?
15399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15405 ac_header_preproc=yes
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15422 ## --------------------------------------------- ##
15423 ## Report this to <http://www.openldap.org/its/> ##
15424 ## --------------------------------------------- ##
15427 sed "s/^/$as_me: WARNING: /" >&2
15430 echo "$as_me:$LINENO: checking for $ac_header" >&5
15431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 eval "$as_ac_Header=\$ac_header_preproc"
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15450 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15451 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15452 if test "${ac_cv_func_select_args+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15456 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15457 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 $ac_includes_default
15465 #if HAVE_SYS_SELECT_H
15466 # include <sys/select.h>
15468 #if HAVE_SYS_SOCKET_H
15469 # include <sys/socket.h>
15475 extern int select ($ac_arg1,
15476 $ac_arg234, $ac_arg234, $ac_arg234,
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 # Provide a safe default value.
15515 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15518 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15519 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15520 ac_save_IFS=$IFS; IFS=','
15521 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15525 cat >>confdefs.h <<_ACEOF
15526 #define SELECT_TYPE_ARG1 $1
15530 cat >>confdefs.h <<_ACEOF
15531 #define SELECT_TYPE_ARG234 ($2)
15535 cat >>confdefs.h <<_ACEOF
15536 #define SELECT_TYPE_ARG5 ($3)
15545 for ac_func in poll
15547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15548 echo "$as_me:$LINENO: checking for $ac_func" >&5
15549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_var+set}\" = set"; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15561 #define $ac_func innocuous_$ac_func
15563 /* System header to define __stub macros and hopefully few prototypes,
15564 which can conflict with char $ac_func (); below.
15565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15566 <limits.h> exists even on freestanding compilers. */
15569 # include <limits.h>
15571 # include <assert.h>
15576 /* Override any gcc2 internal prototype to avoid an error. */
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15584 /* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15590 char (*f) () = $ac_func;
15599 return f != $ac_func;
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 eval "$as_ac_var=yes"
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 eval "$as_ac_var=no"
15633 rm -f conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15638 if test `eval echo '${'$as_ac_var'}'` = yes; then
15639 cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15647 for ac_header in poll.h
15649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15651 echo "$as_me:$LINENO: checking for $ac_header" >&5
15652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15659 # Is the header compilable?
15660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15662 cat >conftest.$ac_ext <<_ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 $ac_includes_default
15669 #include <$ac_header>
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 ac_header_compiler=yes
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 ac_header_compiler=no
15700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15702 echo "${ECHO_T}$ac_header_compiler" >&6
15704 # Is the header present?
15705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15707 cat >conftest.$ac_ext <<_ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 #include <$ac_header>
15715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } >/dev/null; then
15723 if test -s conftest.err; then
15724 ac_cpp_err=$ac_c_preproc_warn_flag
15725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15732 if test -z "$ac_cpp_err"; then
15733 ac_header_preproc=yes
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 ac_header_preproc=no
15740 rm -f conftest.err conftest.$ac_ext
15741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15742 echo "${ECHO_T}$ac_header_preproc" >&6
15744 # So? What about this header?
15745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15751 ac_header_preproc=yes
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15768 ## --------------------------------------------- ##
15769 ## Report this to <http://www.openldap.org/its/> ##
15770 ## --------------------------------------------- ##
15773 sed "s/^/$as_me: WARNING: /" >&2
15776 echo "$as_me:$LINENO: checking for $ac_header" >&5
15777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 eval "$as_ac_Header=\$ac_header_preproc"
15783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15788 cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15798 for ac_header in sys/epoll.h
15800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15802 echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15810 # Is the header compilable?
15811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15813 cat >conftest.$ac_ext <<_ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 $ac_includes_default
15820 #include <$ac_header>
15822 rm -f conftest.$ac_objext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag"
15832 || test ! -s conftest.err'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest.$ac_objext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 ac_header_compiler=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ac_header_compiler=no
15851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15853 echo "${ECHO_T}$ac_header_compiler" >&6
15855 # Is the header present?
15856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <$ac_header>
15866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null; then
15874 if test -s conftest.err; then
15875 ac_cpp_err=$ac_c_preproc_warn_flag
15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 if test -z "$ac_cpp_err"; then
15884 ac_header_preproc=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_header_preproc=no
15891 rm -f conftest.err conftest.$ac_ext
15892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15893 echo "${ECHO_T}$ac_header_preproc" >&6
15895 # So? What about this header?
15896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15902 ac_header_preproc=yes
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15919 ## --------------------------------------------- ##
15920 ## Report this to <http://www.openldap.org/its/> ##
15921 ## --------------------------------------------- ##
15924 sed "s/^/$as_me: WARNING: /" >&2
15927 echo "$as_me:$LINENO: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 eval "$as_ac_Header=\$ac_header_preproc"
15934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939 cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15948 echo "$as_me:$LINENO: checking for epoll system call" >&5
15949 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15950 if test "$cross_compiling" = yes; then
15951 echo "$as_me:$LINENO: result: no" >&5
15952 echo "${ECHO_T}no" >&6
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 int main(int argc, char *argv)
15962 int epfd = epoll_create(256);
15963 exit (epfd == -1 ? 1 : 0);
15966 rm -f conftest$ac_exeext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15968 (eval $ac_link) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 echo "$as_me:$LINENO: result: yes" >&5
15978 echo "${ECHO_T}yes" >&6
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_EPOLL 1
15985 echo "$as_me: program exited with status $ac_status" >&5
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 ( exit $ac_status )
15990 echo "$as_me:$LINENO: result: no" >&5
15991 echo "${ECHO_T}no" >&6
15993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15998 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15999 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16000 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16012 #include <sys/types.h>
16015 #include <stdlib.h>
16020 char *c = (char *) *sys_errlist
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ol_cv_dcl_sys_errlist=yes
16048 ol_cv_have_sys_errlist=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ol_cv_dcl_sys_errlist=no
16055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16058 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16060 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16061 if test $ol_cv_dcl_sys_errlist = no ; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define DECL_SYS_ERRLIST 1
16068 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16069 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16070 if test "${ol_cv_have_sys_errlist+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16084 char *c = (char *) *sys_errlist
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ol_cv_have_sys_errlist=yes
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ol_cv_have_sys_errlist=no
16118 rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16121 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16122 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16124 if test $ol_cv_have_sys_errlist = yes ; then
16126 cat >>confdefs.h <<\_ACEOF
16127 #define HAVE_SYS_ERRLIST 1
16133 for ac_func in strerror strerror_r
16135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16136 echo "$as_me:$LINENO: checking for $ac_func" >&5
16137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16138 if eval "test \"\${$as_ac_var+set}\" = set"; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16149 #define $ac_func innocuous_$ac_func
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char $ac_func (); below.
16153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16154 <limits.h> exists even on freestanding compilers. */
16157 # include <limits.h>
16159 # include <assert.h>
16164 /* Override any gcc2 internal prototype to avoid an error. */
16169 /* We use char because int might match the return type of a gcc2
16170 builtin and then its argument prototype would still apply. */
16172 /* The GNU C library defines this for functions which it implements
16173 to always fail with ENOSYS. Some functions are actually named
16174 something starting with __ and the normal name is an alias. */
16175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16178 char (*f) () = $ac_func;
16187 return f != $ac_func;
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16196 grep -v '^ *+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest$ac_exeext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 eval "$as_ac_var=yes"
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 eval "$as_ac_var=no"
16221 rm -f conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16226 if test `eval echo '${'$as_ac_var'}'` = yes; then
16227 cat >>confdefs.h <<_ACEOF
16228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16234 ol_cv_func_strerror_r=no
16235 if test "${ac_cv_func_strerror_r}" = yes ; then
16236 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16237 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16238 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <string.h>
16250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16251 $EGREP "strerror_r" >/dev/null 2>&1; then
16252 ol_decl_strerror_r=yes
16254 ol_decl_strerror_r=no
16258 if test $ol_decl_strerror_r = yes ; then
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 #include <string.h>
16269 /* from autoconf 2.59 */
16271 char x = *strerror_r (0, buf, sizeof buf);
16272 char *p = strerror_r (0, buf, sizeof buf);
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ol_cv_nonposix_strerror_r=yes
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ol_cv_nonposix_strerror_r=no
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309 if test "$cross_compiling" = yes; then
16310 ol_cv_nonposix_strerror=no
16312 cat >conftest.$ac_ext <<_ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16322 strerror_r( 1, buf, sizeof buf );
16323 exit( buf[0] == 0 );
16327 rm -f conftest$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329 (eval $ac_link) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ol_cv_nonposix_strerror_r=yes
16340 echo "$as_me: program exited with status $ac_status" >&5
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 ( exit $ac_status )
16345 ol_cv_nonposix_strerror=no
16347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16352 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16353 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16354 if test $ol_cv_nonposix_strerror_r = yes ; then
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_NONPOSIX_STRERROR_R 1
16362 elif test "${ac_cv_func_strerror}" = no ; then
16363 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16364 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16365 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16377 #include <sys/types.h>
16380 #include <stdlib.h>
16385 char *c = (char *) *sys_errlist
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ol_cv_dcl_sys_errlist=yes
16413 ol_cv_have_sys_errlist=yes
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 ol_cv_dcl_sys_errlist=no
16420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16423 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16425 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16426 if test $ol_cv_dcl_sys_errlist = no ; then
16428 cat >>confdefs.h <<\_ACEOF
16429 #define DECL_SYS_ERRLIST 1
16433 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16434 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16435 if test "${ol_cv_have_sys_errlist+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 cat >conftest.$ac_ext <<_ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16449 char *c = (char *) *sys_errlist
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>conftest.er1
16458 grep -v '^ *+' conftest.er1 >conftest.err
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -z "$ac_c_werror_flag"
16464 || test ! -s conftest.err'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest$ac_exeext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ol_cv_have_sys_errlist=yes
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ol_cv_have_sys_errlist=no
16483 rm -f conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16487 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16489 if test $ol_cv_have_sys_errlist = yes ; then
16491 cat >>confdefs.h <<\_ACEOF
16492 #define HAVE_SYS_ERRLIST 1
16501 for ac_header in regex.h
16503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16505 echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16513 # Is the header compilable?
16514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 $ac_includes_default
16523 #include <$ac_header>
16525 rm -f conftest.$ac_objext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16527 (eval $ac_compile) 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest.$ac_objext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_header_compiler=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_header_compiler=no
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16556 echo "${ECHO_T}$ac_header_compiler" >&6
16558 # Is the header present?
16559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 #include <$ac_header>
16569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } >/dev/null; then
16577 if test -s conftest.err; then
16578 ac_cpp_err=$ac_c_preproc_warn_flag
16579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16586 if test -z "$ac_cpp_err"; then
16587 ac_header_preproc=yes
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16592 ac_header_preproc=no
16594 rm -f conftest.err conftest.$ac_ext
16595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16596 echo "${ECHO_T}$ac_header_preproc" >&6
16598 # So? What about this header?
16599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16605 ac_header_preproc=yes
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16622 ## --------------------------------------------- ##
16623 ## Report this to <http://www.openldap.org/its/> ##
16624 ## --------------------------------------------- ##
16627 sed "s/^/$as_me: WARNING: /" >&2
16630 echo "$as_me:$LINENO: checking for $ac_header" >&5
16631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 eval "$as_ac_Header=\$ac_header_preproc"
16637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16650 if test "$ac_cv_header_regex_h" != yes ; then
16651 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16652 echo "$as_me: error: POSIX regex.h required." >&2;}
16653 { (exit 1); exit 1; }; }
16655 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16656 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16657 if test "${ac_cv_search_regfree+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 ac_func_search_save_LIBS=$LIBS
16661 ac_cv_search_regfree=no
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16669 /* Override any gcc2 internal prototype to avoid an error. */
16673 /* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
16684 rm -f conftest.$ac_objext conftest$ac_exeext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16686 (eval $ac_link) 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag"
16694 || test ! -s conftest.err'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; } &&
16700 { ac_try='test -s conftest$ac_exeext'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_search_regfree="none required"
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16712 rm -f conftest.err conftest.$ac_objext \
16713 conftest$ac_exeext conftest.$ac_ext
16714 if test "$ac_cv_search_regfree" = no; then
16715 for ac_lib in regex gnuregex; do
16716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16724 /* Override any gcc2 internal prototype to avoid an error. */
16728 /* We use char because int might match the return type of a gcc2
16729 builtin and then its argument prototype would still apply. */
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>conftest.er1
16743 grep -v '^ *+' conftest.er1 >conftest.err
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_search_regfree="-l$ac_lib"
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16768 rm -f conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16772 LIBS=$ac_func_search_save_LIBS
16774 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16775 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16776 if test "$ac_cv_search_regfree" != no; then
16777 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16780 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16781 echo "$as_me: error: POSIX regex required." >&2;}
16782 { (exit 1); exit 1; }; }
16787 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16788 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16789 if test "${ol_cv_c_posix_regex+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 if test "$cross_compiling" = yes; then
16794 ol_cv_c_posix_regex=cross
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16803 #include <sys/types.h>
16805 static char *pattern, *string;
16813 if(regcomp(&re, pattern, 0)) {
16817 string = "ALL MATCH";
16819 rc = regexec(&re, string, 0, (void*)0, 0);
16826 rm -f conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ol_cv_c_posix_regex=yes
16839 echo "$as_me: program exited with status $ac_status" >&5
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ( exit $ac_status )
16844 ol_cv_c_posix_regex=no
16846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16849 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16850 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16852 if test "$ol_cv_c_posix_regex" = no ; then
16853 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16854 echo "$as_me: error: broken POSIX regex!" >&2;}
16855 { (exit 1); exit 1; }; }
16861 for ac_header in sys/uuid.h
16863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16865 echo "$as_me:$LINENO: checking for $ac_header" >&5
16866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16873 # Is the header compilable?
16874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 $ac_includes_default
16883 #include <$ac_header>
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_header_compiler=yes
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 ac_header_compiler=no
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16916 echo "${ECHO_T}$ac_header_compiler" >&6
16918 # Is the header present?
16919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 #include <$ac_header>
16929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } >/dev/null; then
16937 if test -s conftest.err; then
16938 ac_cpp_err=$ac_c_preproc_warn_flag
16939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16946 if test -z "$ac_cpp_err"; then
16947 ac_header_preproc=yes
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_header_preproc=no
16954 rm -f conftest.err conftest.$ac_ext
16955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16956 echo "${ECHO_T}$ac_header_preproc" >&6
16958 # So? What about this header?
16959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16965 ac_header_preproc=yes
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16982 ## --------------------------------------------- ##
16983 ## Report this to <http://www.openldap.org/its/> ##
16984 ## --------------------------------------------- ##
16987 sed "s/^/$as_me: WARNING: /" >&2
16990 echo "$as_me:$LINENO: checking for $ac_header" >&5
16991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 eval "$as_ac_Header=\$ac_header_preproc"
16997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17002 cat >>confdefs.h <<_ACEOF
17003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17010 if test $ac_cv_header_sys_uuid_h = yes ; then
17012 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17013 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17014 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 ac_func_search_save_LIBS=$LIBS
17018 ac_cv_search_uuid_to_str=no
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any gcc2 internal prototype to avoid an error. */
17030 /* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032 char uuid_to_str ();
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_search_uuid_to_str="none required"
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17069 rm -f conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071 if test "$ac_cv_search_uuid_to_str" = no; then
17072 for ac_lib in uuid; do
17073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 /* Override any gcc2 internal prototype to avoid an error. */
17085 /* We use char because int might match the return type of a gcc2
17086 builtin and then its argument prototype would still apply. */
17087 char uuid_to_str ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098 (eval $ac_link) 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag"
17106 || test ! -s conftest.err'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_cv_search_uuid_to_str="-l$ac_lib"
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17125 rm -f conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17129 LIBS=$ac_func_search_save_LIBS
17131 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17132 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17133 if test "$ac_cv_search_uuid_to_str" != no; then
17134 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17142 if test have_uuid = yes ; then
17144 cat >>confdefs.h <<\_ACEOF
17145 #define HAVE_UUID_TO_STR 1
17149 test "$ac_cv_search_uuid_to_str" = "none required" || \
17150 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17154 if test $have_uuid = no ; then
17155 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17156 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17158 LIBS="$LIBS -lrpcrt4"
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 int __stdcall UuidCreate(void *);
17167 int __stdcall UuidToStringA(void *,void **);
17174 UuidToStringA(0,0);
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17182 (eval $ac_link) 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17209 rm -f conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17211 if test $need_rpcrt = yes; then
17212 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17215 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17216 echo "${ECHO_T}$need_rpcrt" >&6
17219 ol_cv_lib_resolver=no
17220 if test $ol_cv_lib_resolver = no ; then
17221 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17222 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17223 if test "${ol_cv_resolver_none+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 LIBS="$ol_RESOLVER_LIB $LIBS"
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17238 #ifdef HAVE_SYS_TYPES_H
17239 # include <sys/types.h>
17241 #include <netinet/in.h>
17242 #ifdef HAVE_ARPA_NAMESER_H
17243 # include <arpa/nameser.h>
17245 #ifdef HAVE_RESOLV_H
17246 # include <resolv.h>
17254 char *request = NULL;
17255 unsigned char reply[64*1024];
17256 unsigned char host[64*1024];
17260 /* Bind 8/9 interface */
17261 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17263 /* Bind 4 interface */
17267 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17271 /* Bind 8/9 interface */
17273 #elif defined(HFIXEDSZ)
17274 /* Bind 4 interface w/ HFIXEDSZ */
17277 /* Bind 4 interface w/o HFIXEDSZ */
17278 p += sizeof(HEADER);
17280 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288 (eval $ac_link) 2>conftest.er1
17290 grep -v '^ *+' conftest.er1 >conftest.err
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest$ac_exeext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ol_cv_resolver_none=yes
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 ol_cv_resolver_none=no
17315 rm -f conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17322 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17324 if test $ol_cv_resolver_none = yes ; then
17325 ol_cv_lib_resolver=yes
17329 if test $ol_cv_lib_resolver = no ; then
17330 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17331 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17332 if test "${ol_cv_resolver_resolv+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 ol_RESOLVER_LIB=-lresolv
17338 LIBS="$ol_RESOLVER_LIB $LIBS"
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17347 #ifdef HAVE_SYS_TYPES_H
17348 # include <sys/types.h>
17350 #include <netinet/in.h>
17351 #ifdef HAVE_ARPA_NAMESER_H
17352 # include <arpa/nameser.h>
17354 #ifdef HAVE_RESOLV_H
17355 # include <resolv.h>
17363 char *request = NULL;
17364 unsigned char reply[64*1024];
17365 unsigned char host[64*1024];
17369 /* Bind 8/9 interface */
17370 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17372 /* Bind 4 interface */
17376 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17380 /* Bind 8/9 interface */
17382 #elif defined(HFIXEDSZ)
17383 /* Bind 4 interface w/ HFIXEDSZ */
17386 /* Bind 4 interface w/o HFIXEDSZ */
17387 p += sizeof(HEADER);
17389 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag"
17405 || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ol_cv_resolver_resolv=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ol_cv_resolver_resolv=no
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17431 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17433 if test $ol_cv_resolver_resolv = yes ; then
17434 ol_cv_lib_resolver=-lresolv
17438 if test $ol_cv_lib_resolver = no ; then
17439 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17440 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17441 if test "${ol_cv_resolver_bind+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ol_RESOLVER_LIB=-lbind
17447 LIBS="$ol_RESOLVER_LIB $LIBS"
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #ifdef HAVE_SYS_TYPES_H
17457 # include <sys/types.h>
17459 #include <netinet/in.h>
17460 #ifdef HAVE_ARPA_NAMESER_H
17461 # include <arpa/nameser.h>
17463 #ifdef HAVE_RESOLV_H
17464 # include <resolv.h>
17472 char *request = NULL;
17473 unsigned char reply[64*1024];
17474 unsigned char host[64*1024];
17478 /* Bind 8/9 interface */
17479 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17481 /* Bind 4 interface */
17485 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17489 /* Bind 8/9 interface */
17491 #elif defined(HFIXEDSZ)
17492 /* Bind 4 interface w/ HFIXEDSZ */
17495 /* Bind 4 interface w/o HFIXEDSZ */
17496 p += sizeof(HEADER);
17498 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506 (eval $ac_link) 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag"
17514 || test ! -s conftest.err'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 ol_cv_resolver_bind=yes
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ol_cv_resolver_bind=no
17533 rm -f conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17540 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17542 if test $ol_cv_resolver_bind = yes ; then
17543 ol_cv_lib_resolver=-lbind
17550 if test "$ol_cv_lib_resolver" != no ; then
17552 cat >>confdefs.h <<\_ACEOF
17553 #define HAVE_RES_QUERY 1
17557 if test "$ol_enable_dnssrv" != no ; then
17561 if test "$ol_cv_lib_resolver" != yes ; then
17562 LIBS="$ol_cv_lib_resolver $LIBS"
17566 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17567 if test "$ol_link_dnssrv" = no ; then
17568 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17569 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17570 { (exit 1); exit 1; }; }
17573 ol_enable_dnssrv=no
17577 for ac_func in hstrerror
17579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17580 echo "$as_me:$LINENO: checking for $ac_func" >&5
17581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17582 if eval "test \"\${$as_ac_var+set}\" = set"; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17593 #define $ac_func innocuous_$ac_func
17595 /* System header to define __stub macros and hopefully few prototypes,
17596 which can conflict with char $ac_func (); below.
17597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17598 <limits.h> exists even on freestanding compilers. */
17601 # include <limits.h>
17603 # include <assert.h>
17608 /* Override any gcc2 internal prototype to avoid an error. */
17613 /* We use char because int might match the return type of a gcc2
17614 builtin and then its argument prototype would still apply. */
17616 /* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17622 char (*f) () = $ac_func;
17631 return f != $ac_func;
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag"
17646 || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 eval "$as_ac_var=yes"
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 eval "$as_ac_var=no"
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17670 if test `eval echo '${'$as_ac_var'}'` = yes; then
17671 cat >>confdefs.h <<_ACEOF
17672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 echo "$as_me:$LINENO: checking for $ac_func" >&5
17687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17688 if eval "test \"\${$as_ac_var+set}\" = set"; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17699 #define $ac_func innocuous_$ac_func
17701 /* System header to define __stub macros and hopefully few prototypes,
17702 which can conflict with char $ac_func (); below.
17703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704 <limits.h> exists even on freestanding compilers. */
17707 # include <limits.h>
17709 # include <assert.h>
17714 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17728 char (*f) () = $ac_func;
17737 return f != $ac_func;
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 eval "$as_ac_var=yes"
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 eval "$as_ac_var=no"
17771 rm -f conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17776 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17786 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17787 if test $ol_enable_ipv6 = yes ; then
17788 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17789 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17790 { (exit 1); exit 1; }; }
17792 elif test $ol_enable_ipv6 != no ; then
17793 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17794 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17795 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 # include <netinet/in.h>
17807 # ifdef INET6_ADDRSTRLEN
17808 __has_inet6_addrstrlen__;
17812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17813 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17814 ol_cv_inet6_addrstrlen=yes
17816 ol_cv_inet6_addrstrlen=no
17821 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17822 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17825 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17826 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17827 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17838 #include <sys/types.h>
17839 #include <sys/socket.h>
17845 struct sockaddr_storage ss;
17851 rm -f conftest.$ac_objext
17852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17853 (eval $ac_compile) 2>conftest.er1
17855 grep -v '^ *+' conftest.er1 >conftest.err
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag"
17861 || test ! -s conftest.err'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; } &&
17867 { ac_try='test -s conftest.$ac_objext'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ol_cv_struct_sockaddr_storage=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ol_cv_struct_sockaddr_storage=no
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17882 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17883 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17885 if test $ol_cv_inet6_addrstrlen = yes &&
17886 test $ol_cv_struct_sockaddr_storage = yes ; then
17888 elif test $ol_enable_ipv6 = yes &&
17889 test $ol_cv_inet6_addrstrlen = no ; then
17890 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17891 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17892 { (exit 1); exit 1; }; }
17893 elif test $ol_enable_ipv6 = yes &&
17894 test $ol_cv_struct_sockaddr_storage = no ; then
17895 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17896 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17897 { (exit 1); exit 1; }; }
17901 if test $ol_enable_local != no ; then
17903 for ac_header in sys/un.h
17905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17907 echo "$as_me:$LINENO: checking for $ac_header" >&5
17908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17915 # Is the header compilable?
17916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 #include <$ac_header>
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_header_compiler=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_header_compiler=no
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17958 echo "${ECHO_T}$ac_header_compiler" >&6
17960 # Is the header present?
17961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 #include <$ac_header>
17971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } >/dev/null; then
17979 if test -s conftest.err; then
17980 ac_cpp_err=$ac_c_preproc_warn_flag
17981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17988 if test -z "$ac_cpp_err"; then
17989 ac_header_preproc=yes
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 ac_header_preproc=no
17996 rm -f conftest.err conftest.$ac_ext
17997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17998 echo "${ECHO_T}$ac_header_preproc" >&6
18000 # So? What about this header?
18001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18007 ac_header_preproc=yes
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18024 ## --------------------------------------------- ##
18025 ## Report this to <http://www.openldap.org/its/> ##
18026 ## --------------------------------------------- ##
18029 sed "s/^/$as_me: WARNING: /" >&2
18032 echo "$as_me:$LINENO: checking for $ac_header" >&5
18033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 eval "$as_ac_Header=\$ac_header_preproc"
18039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18044 cat >>confdefs.h <<_ACEOF
18045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18053 if test $ol_enable_local = auto ; then
18054 ol_enable_local=$ac_cv_header_sys_un_h
18055 elif test $ac_cv_header_sys_un_h = no ; then
18056 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18057 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18058 { (exit 1); exit 1; }; }
18066 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18069 for ac_header in krb5.h
18071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18073 echo "$as_me:$LINENO: checking for $ac_header" >&5
18074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18081 # Is the header compilable?
18082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 #include <$ac_header>
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_header_compiler=yes
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ac_header_compiler=no
18122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18124 echo "${ECHO_T}$ac_header_compiler" >&6
18126 # Is the header present?
18127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 #include <$ac_header>
18137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } >/dev/null; then
18145 if test -s conftest.err; then
18146 ac_cpp_err=$ac_c_preproc_warn_flag
18147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18154 if test -z "$ac_cpp_err"; then
18155 ac_header_preproc=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_header_preproc=no
18162 rm -f conftest.err conftest.$ac_ext
18163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18164 echo "${ECHO_T}$ac_header_preproc" >&6
18166 # So? What about this header?
18167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18173 ac_header_preproc=yes
18176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18190 ## --------------------------------------------- ##
18191 ## Report this to <http://www.openldap.org/its/> ##
18192 ## --------------------------------------------- ##
18195 sed "s/^/$as_me: WARNING: /" >&2
18198 echo "$as_me:$LINENO: checking for $ac_header" >&5
18199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18203 eval "$as_ac_Header=\$ac_header_preproc"
18205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18210 cat >>confdefs.h <<_ACEOF
18211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18219 if test $ac_cv_header_krb5_h = yes ; then
18221 for ac_header in heim_err.h
18223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18225 echo "$as_me:$LINENO: checking for $ac_header" >&5
18226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18233 # Is the header compilable?
18234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 $ac_includes_default
18243 #include <$ac_header>
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_header_compiler=yes
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_header_compiler=no
18274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18276 echo "${ECHO_T}$ac_header_compiler" >&6
18278 # Is the header present?
18279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 #include <$ac_header>
18289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } >/dev/null; then
18297 if test -s conftest.err; then
18298 ac_cpp_err=$ac_c_preproc_warn_flag
18299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18306 if test -z "$ac_cpp_err"; then
18307 ac_header_preproc=yes
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_header_preproc=no
18314 rm -f conftest.err conftest.$ac_ext
18315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18316 echo "${ECHO_T}$ac_header_preproc" >&6
18318 # So? What about this header?
18319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18325 ac_header_preproc=yes
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18342 ## --------------------------------------------- ##
18343 ## Report this to <http://www.openldap.org/its/> ##
18344 ## --------------------------------------------- ##
18347 sed "s/^/$as_me: WARNING: /" >&2
18350 echo "$as_me:$LINENO: checking for $ac_header" >&5
18351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18355 eval "$as_ac_Header=\$ac_header_preproc"
18357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18370 if test $ac_cv_header_heim_err_h = yes ; then
18376 if test $krb5_impl = mit; then
18377 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18378 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18379 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-lk5crypto $LIBS"
18384 cat >conftest.$ac_ext <<_ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402 (eval $ac_link) 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_k5crypto_main=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 ac_cv_lib_k5crypto_main=no
18429 rm -f conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18434 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18435 if test $ac_cv_lib_k5crypto_main = yes; then
18436 krb5crypto=k5crypto
18442 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18443 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18444 if test "${ac_cv_lib_krb5_main+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18447 ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18449 cat >conftest.$ac_ext <<_ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_lib_krb5_main=yes
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ac_cv_lib_krb5_main=no
18494 rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18498 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18499 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18500 if test $ac_cv_lib_krb5_main = yes; then
18502 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18508 elif test $krb5_impl = heimdal; then
18509 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18510 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18511 if test "${ac_cv_lib_des_main+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 ac_check_lib_save_LIBS=$LIBS
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag"
18542 || test ! -s conftest.err'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_lib_des_main=yes
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18559 ac_cv_lib_des_main=no
18561 rm -f conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18566 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18567 if test $ac_cv_lib_des_main = yes; then
18574 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18575 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18576 if test "${ac_cv_lib_krb5_main+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 ac_check_lib_save_LIBS=$LIBS
18580 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18599 (eval $ac_link) 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag"
18607 || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_lib_krb5_main=yes
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_lib_krb5_main=no
18626 rm -f conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18630 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18631 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18632 if test $ac_cv_lib_krb5_main = yes; then
18634 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE_HEIMDAL_KERBEROS 1
18648 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18649 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18652 if test $have_krb5 = yes ; then
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_KRB5 1
18661 if test $ol_with_kerberos = k5only ; then
18662 ol_with_kerberos=found
18665 elif test $ol_with_kerberos != auto ; then
18666 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18667 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18668 { (exit 1); exit 1; }; }
18675 if test $ol_link_krb5 = yes &&
18676 { test $ol_with_kerberos = yes ||
18677 test $ol_with_kerberos = auto ||
18678 test $ol_with_kerberos = k425; }; then
18682 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18686 echo "$as_me:$LINENO: checking for $ac_header" >&5
18687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18694 # Is the header compilable?
18695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18703 $ac_includes_default
18704 #include <$ac_header>
18706 rm -f conftest.$ac_objext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18708 (eval $ac_compile) 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag"
18716 || test ! -s conftest.err'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest.$ac_objext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_header_compiler=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_header_compiler=no
18735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18737 echo "${ECHO_T}$ac_header_compiler" >&6
18739 # Is the header present?
18740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 #include <$ac_header>
18750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } >/dev/null; then
18758 if test -s conftest.err; then
18759 ac_cpp_err=$ac_c_preproc_warn_flag
18760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18767 if test -z "$ac_cpp_err"; then
18768 ac_header_preproc=yes
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_header_preproc=no
18775 rm -f conftest.err conftest.$ac_ext
18776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18777 echo "${ECHO_T}$ac_header_preproc" >&6
18779 # So? What about this header?
18780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18786 ac_header_preproc=yes
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18803 ## --------------------------------------------- ##
18804 ## Report this to <http://www.openldap.org/its/> ##
18805 ## --------------------------------------------- ##
18808 sed "s/^/$as_me: WARNING: /" >&2
18811 echo "$as_me:$LINENO: checking for $ac_header" >&5
18812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 eval "$as_ac_Header=\$ac_header_preproc"
18818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18823 cat >>confdefs.h <<_ACEOF
18824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18832 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18833 if test $krb5_impl = mit; then
18834 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18835 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18836 if test "${ac_cv_lib_krb4_main+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag"
18867 || test ! -s conftest.err'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_cv_lib_krb4_main=yes
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_krb4_main=no
18886 rm -f conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 LIBS=$ac_check_lib_save_LIBS
18890 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18891 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18892 if test $ac_cv_lib_krb4_main = yes; then
18894 KRB4_LIBS="-lkrb4 -ldes425"
18900 elif test $krb5_impl = heimdal; then
18901 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18902 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18903 if test "${ac_cv_lib_krb4_main+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_lib_krb4_main=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_cv_lib_krb4_main=no
18953 rm -f conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18958 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18959 if test $ac_cv_lib_krb4_main = yes; then
18969 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18970 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18973 if test $have_k425 = yes ; then
18974 ol_with_kerberos=found
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_KRB425 1
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_KRB4 1
18988 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18989 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18990 if test "${ol_cv_var_des_debug+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19003 #include <kerberosIV/krb.h>
19004 #include <kerberosIV/des.h>
19005 extern int des_debug;
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19019 (eval $ac_link) 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ol_cv_var_des_debug=yes
19041 echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19044 ol_cv_var_des_debug=no
19046 rm -f conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19051 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19052 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19054 if test $ol_cv_var_des_debug = yes ; then
19056 cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_DES_DEBUG 1
19067 if test $ol_link_krb5 = yes ; then
19068 ol_with_kerberos=found
19071 case $ol_with_kerberos in yes | auto | k4 | kth)
19076 for ac_header in krb.h des.h krb-archaeology.h
19078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19080 echo "$as_me:$LINENO: checking for $ac_header" >&5
19081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19088 # Is the header compilable?
19089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 $ac_includes_default
19098 #include <$ac_header>
19100 rm -f conftest.$ac_objext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>conftest.er1
19104 grep -v '^ *+' conftest.er1 >conftest.err
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag"
19110 || test ! -s conftest.err'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_header_compiler=yes
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ac_header_compiler=no
19129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19131 echo "${ECHO_T}$ac_header_compiler" >&6
19133 # Is the header present?
19134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 #include <$ac_header>
19144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } >/dev/null; then
19152 if test -s conftest.err; then
19153 ac_cpp_err=$ac_c_preproc_warn_flag
19154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19161 if test -z "$ac_cpp_err"; then
19162 ac_header_preproc=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 ac_header_preproc=no
19169 rm -f conftest.err conftest.$ac_ext
19170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19171 echo "${ECHO_T}$ac_header_preproc" >&6
19173 # So? What about this header?
19174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19180 ac_header_preproc=yes
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19197 ## --------------------------------------------- ##
19198 ## Report this to <http://www.openldap.org/its/> ##
19199 ## --------------------------------------------- ##
19202 sed "s/^/$as_me: WARNING: /" >&2
19205 echo "$as_me:$LINENO: checking for $ac_header" >&5
19206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 eval "$as_ac_Header=\$ac_header_preproc"
19212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19226 if test $ac_cv_header_krb_h = yes ; then
19227 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19228 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19229 if test "${ac_cv_lib_krb_main+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 ac_check_lib_save_LIBS=$LIBS
19233 LIBS="-lkrb -ldes $LIBS"
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19250 rm -f conftest.$ac_objext conftest$ac_exeext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_c_werror_flag"
19260 || test ! -s conftest.err'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_lib_krb_main=yes
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_cv_lib_krb_main=no
19279 rm -f conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19283 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19284 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19285 if test $ac_cv_lib_krb_main = yes; then
19292 if test $have_k4 = yes ; then
19293 ol_with_kerberos=found
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE_KRB4 1
19302 KRB4_LIBS="-lkrb -ldes"
19304 if test $ac_cv_header_krb_archaeology_h = yes ; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE_KTH_KERBEROS 1
19316 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19319 elif test $ol_enable_kbind = yes ; then
19320 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19321 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19322 { (exit 1); exit 1; }; }
19325 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_KERBEROS 1
19332 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19333 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19334 echo "$as_me: error: Kerberos detection failed" >&2;}
19335 { (exit 1); exit 1; }; }
19339 if test $ol_with_tls = yes ; then
19344 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19346 for ac_header in openssl/ssl.h
19348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19350 echo "$as_me:$LINENO: checking for $ac_header" >&5
19351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19358 # Is the header compilable?
19359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367 $ac_includes_default
19368 #include <$ac_header>
19370 rm -f conftest.$ac_objext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest.$ac_objext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_header_compiler=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_header_compiler=no
19399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19401 echo "${ECHO_T}$ac_header_compiler" >&6
19403 # Is the header present?
19404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <$ac_header>
19414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } >/dev/null; then
19422 if test -s conftest.err; then
19423 ac_cpp_err=$ac_c_preproc_warn_flag
19424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19431 if test -z "$ac_cpp_err"; then
19432 ac_header_preproc=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_header_preproc=no
19439 rm -f conftest.err conftest.$ac_ext
19440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19441 echo "${ECHO_T}$ac_header_preproc" >&6
19443 # So? What about this header?
19444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19450 ac_header_preproc=yes
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19467 ## --------------------------------------------- ##
19468 ## Report this to <http://www.openldap.org/its/> ##
19469 ## --------------------------------------------- ##
19472 sed "s/^/$as_me: WARNING: /" >&2
19475 echo "$as_me:$LINENO: checking for $ac_header" >&5
19476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 eval "$as_ac_Header=\$ac_header_preproc"
19482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19496 if test $ac_cv_header_openssl_ssl_h = yes ; then
19497 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19498 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19499 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 ac_check_lib_save_LIBS=$LIBS
19503 LIBS="-lssl -lcrypto $LIBS"
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19511 /* Override any gcc2 internal prototype to avoid an error. */
19515 /* We use char because int might match the return type of a gcc2
19516 builtin and then its argument prototype would still apply. */
19517 char SSL_library_init ();
19521 SSL_library_init ();
19526 rm -f conftest.$ac_objext conftest$ac_exeext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_lib_ssl_SSL_library_init=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_lib_ssl_SSL_library_init=no
19555 rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557 LIBS=$ac_check_lib_save_LIBS
19559 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19560 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19561 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19569 if test $have_openssl = no ; then
19570 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19571 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19572 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 ac_check_lib_save_LIBS=$LIBS
19576 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19584 /* Override any gcc2 internal prototype to avoid an error. */
19588 /* We use char because int might match the return type of a gcc2
19589 builtin and then its argument prototype would still apply. */
19590 char ssl3_accept ();
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19601 (eval $ac_link) 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest$ac_exeext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_lib_ssl_ssl3_accept=yes
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_lib_ssl_ssl3_accept=no
19628 rm -f conftest.err conftest.$ac_objext \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19632 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19633 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19634 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19643 if test $have_openssl = yes ; then
19644 ol_with_tls=openssl
19648 cat >>confdefs.h <<\_ACEOF
19649 #define HAVE_OPENSSL 1
19653 if test $need_rsaref = yes; then
19655 cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_RSAREF 1
19660 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19662 TLS_LIBS="-lssl -lcrypto"
19665 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19666 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19667 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19678 #ifdef HAVE_OPENSSL_SSL_H
19679 #include <openssl/ssl.h>
19684 /* Require 0.9.7d+ */
19685 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19686 char *__ssl_compat = "0.9.7d";
19690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19691 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19692 ol_cv_ssl_crl_compat=yes
19694 ol_cv_ssl_crl_compat=no
19699 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19700 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19702 if test $ol_cv_ssl_crl_compat = yes ; then
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAVE_OPENSSL_CRL 1
19714 if test $ol_link_tls = yes ; then
19716 cat >>confdefs.h <<\_ACEOF
19721 elif test $ol_with_tls = auto ; then
19722 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19723 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19725 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19726 elif test $ol_with_tls != no ; then
19727 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19728 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19729 { (exit 1); exit 1; }; }
19731 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19732 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19735 if test $ol_enable_lmpasswd != no; then
19736 if test $ol_link_tls != yes ; then
19737 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19738 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19739 { (exit 1); exit 1; }; }
19743 cat >>confdefs.h <<\_ACEOF
19744 #define SLAPD_LMHASH 1
19751 case $ol_with_threads in auto | yes | nt)
19754 echo "$as_me:$LINENO: checking for _beginthread" >&5
19755 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19756 if test "${ac_cv_func__beginthread+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19767 #define _beginthread innocuous__beginthread
19769 /* System header to define __stub macros and hopefully few prototypes,
19770 which can conflict with char _beginthread (); below.
19771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19772 <limits.h> exists even on freestanding compilers. */
19775 # include <limits.h>
19777 # include <assert.h>
19780 #undef _beginthread
19782 /* Override any gcc2 internal prototype to avoid an error. */
19787 /* We use char because int might match the return type of a gcc2
19788 builtin and then its argument prototype would still apply. */
19789 char _beginthread ();
19790 /* The GNU C library defines this for functions which it implements
19791 to always fail with ENOSYS. Some functions are actually named
19792 something starting with __ and the normal name is an alias. */
19793 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19796 char (*f) () = _beginthread;
19805 return f != _beginthread;
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19814 grep -v '^ *+' conftest.er1 >conftest.err
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_func__beginthread=yes
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_func__beginthread=no
19839 rm -f conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19842 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19843 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19846 if test $ac_cv_func__beginthread = yes ; then
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE_NT_THREADS 1
19852 ol_cv_nt_threads=yes
19856 if test "$ol_cv_nt_threads" = yes ; then
19858 ol_with_threads=found
19859 ol_with_yielding_select=yes
19862 cat >>confdefs.h <<\_ACEOF
19863 #define HAVE_NT_SERVICE_MANAGER 1
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_NT_EVENT_LOG 1
19873 if test $ol_with_threads = nt ; then
19874 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19875 echo "$as_me: error: could not locate NT Threads" >&2;}
19876 { (exit 1); exit 1; }; }
19881 case $ol_with_threads in auto | yes | posix)
19884 for ac_header in pthread.h
19886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19888 echo "$as_me:$LINENO: checking for $ac_header" >&5
19889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19896 # Is the header compilable?
19897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19906 #include <$ac_header>
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_header_compiler=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_header_compiler=no
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6
19941 # Is the header present?
19942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19969 if test -z "$ac_cpp_err"; then
19970 ac_header_preproc=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_header_preproc=no
19977 rm -f conftest.err conftest.$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19979 echo "${ECHO_T}$ac_header_preproc" >&6
19981 # So? What about this header?
19982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19988 ac_header_preproc=yes
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 ## --------------------------------------------- ##
20006 ## Report this to <http://www.openldap.org/its/> ##
20007 ## --------------------------------------------- ##
20010 sed "s/^/$as_me: WARNING: /" >&2
20013 echo "$as_me:$LINENO: checking for $ac_header" >&5
20014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 eval "$as_ac_Header=\$ac_header_preproc"
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034 if test $ac_cv_header_pthread_h = yes ; then
20035 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20036 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20037 if test "${ol_cv_pthread_version+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20048 # include <pthread.h>
20054 int i = PTHREAD_CREATE_JOINABLE;
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>conftest.er1
20064 grep -v '^ *+' conftest.er1 >conftest.err
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_c_werror_flag"
20070 || test ! -s conftest.err'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 #include <pthread.h>
20092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20093 $EGREP "pthread_detach" >/dev/null 2>&1; then
20094 ol_cv_pthread_version=10
20096 ol_cv_pthread_version=8
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 # include <pthread.h>
20113 # ifdef PTHREAD_CREATE_UNDETACHED
20118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20119 $EGREP "draft7" >/dev/null 2>&1; then
20120 ol_cv_pthread_version=7
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 #include <pthread.h>
20132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20133 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20134 ol_cv_pthread_version=6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20144 # include <pthread.h>
20145 #ifdef PTHREAD_MUTEX_INITIALIZER
20150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20151 $EGREP "draft5" >/dev/null 2>&1; then
20152 ol_cv_pthread_version=5
20154 ol_cv_pthread_version=4
20165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20169 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20172 if test $ol_cv_pthread_version != 0 ; then
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_PTHREADS $ol_cv_pthread_version
20179 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20180 echo "$as_me: error: unknown pthread version" >&2;}
20181 { (exit 1); exit 1; }; }
20184 # consider threads found
20185 ol_with_threads=found
20188 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20189 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20190 if test "${ol_cv_header_linux_threads+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include <pthread.h>
20201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20202 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20203 ol_cv_header_linux_threads=yes
20205 ol_cv_header_linux_threads=no
20211 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20212 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20213 if test $ol_cv_header_linux_threads = yes; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_LINUX_THREADS 1
20222 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20223 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20224 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 #include <pthread.h>
20234 #ifdef _POSIX_THREAD_IS_GNU_PTH
20239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20240 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20241 ol_cv_header_gnu_pth_pthread_h=yes
20243 ol_cv_header_gnu_pth_pthread_h=no
20249 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20250 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20253 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20255 for ac_header in sched.h
20257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20259 echo "$as_me:$LINENO: checking for $ac_header" >&5
20260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20267 # Is the header compilable?
20268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 $ac_includes_default
20277 #include <$ac_header>
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281 (eval $ac_compile) 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_c_werror_flag"
20289 || test ! -s conftest.err'
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; } &&
20295 { ac_try='test -s conftest.$ac_objext'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_header_compiler=yes
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20306 ac_header_compiler=no
20308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20310 echo "${ECHO_T}$ac_header_compiler" >&6
20312 # Is the header present?
20313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <$ac_header>
20323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } >/dev/null; then
20331 if test -s conftest.err; then
20332 ac_cpp_err=$ac_c_preproc_warn_flag
20333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20340 if test -z "$ac_cpp_err"; then
20341 ac_header_preproc=yes
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_header_preproc=no
20348 rm -f conftest.err conftest.$ac_ext
20349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20350 echo "${ECHO_T}$ac_header_preproc" >&6
20352 # So? What about this header?
20353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20359 ac_header_preproc=yes
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20376 ## --------------------------------------------- ##
20377 ## Report this to <http://www.openldap.org/its/> ##
20378 ## --------------------------------------------- ##
20381 sed "s/^/$as_me: WARNING: /" >&2
20384 echo "$as_me:$LINENO: checking for $ac_header" >&5
20385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 eval "$as_ac_Header=\$ac_header_preproc"
20391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20396 cat >>confdefs.h <<_ACEOF
20397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20407 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20408 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20409 if test "${ol_cv_pthread_create+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 if test "$cross_compiling" = yes; then
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 /* pthread test headers */
20422 #include <pthread.h>
20423 #if HAVE_PTHREADS < 7
20427 #define NULL (void*)0
20430 static void *task(p)
20433 return (void *) (p == NULL);
20440 /* pthread test function */
20441 #ifndef PTHREAD_CREATE_DETACHED
20442 #define PTHREAD_CREATE_DETACHED 1
20446 int detach = PTHREAD_CREATE_DETACHED;
20448 #if HAVE_PTHREADS > 4
20449 /* Final pthreads */
20450 pthread_attr_t attr;
20452 status = pthread_attr_init(&attr);
20453 if( status ) return status;
20455 #if HAVE_PTHREADS < 7
20456 status = pthread_attr_setdetachstate(&attr, &detach);
20457 if( status < 0 ) status = errno;
20459 status = pthread_attr_setdetachstate(&attr, detach);
20461 if( status ) return status;
20462 status = pthread_create( &t, &attr, task, NULL );
20463 #if HAVE_PTHREADS < 7
20464 if( status < 0 ) status = errno;
20466 if( status ) return status;
20468 /* Draft 4 pthreads */
20469 status = pthread_create( &t, pthread_attr_default, task, NULL );
20470 if( status ) return errno;
20472 /* give thread a chance to complete */
20473 /* it should remain joinable and hence detachable */
20476 status = pthread_detach( &t );
20477 if( status ) return errno;
20480 #ifdef HAVE_LINUX_THREADS
20481 pthread_kill_other_threads_np();
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492 (eval $ac_link) 2>conftest.er1
20494 grep -v '^ *+' conftest.er1 >conftest.err
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -z "$ac_c_werror_flag"
20500 || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest$ac_exeext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ol_cv_pthread_create=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ol_cv_pthread_create=no
20519 rm -f conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20529 /* pthread test headers */
20530 #include <pthread.h>
20531 #if HAVE_PTHREADS < 7
20535 #define NULL (void*)0
20538 static void *task(p)
20541 return (void *) (p == NULL);
20545 int main(argc, argv)
20550 /* pthread test function */
20551 #ifndef PTHREAD_CREATE_DETACHED
20552 #define PTHREAD_CREATE_DETACHED 1
20556 int detach = PTHREAD_CREATE_DETACHED;
20558 #if HAVE_PTHREADS > 4
20559 /* Final pthreads */
20560 pthread_attr_t attr;
20562 status = pthread_attr_init(&attr);
20563 if( status ) return status;
20565 #if HAVE_PTHREADS < 7
20566 status = pthread_attr_setdetachstate(&attr, &detach);
20567 if( status < 0 ) status = errno;
20569 status = pthread_attr_setdetachstate(&attr, detach);
20571 if( status ) return status;
20572 status = pthread_create( &t, &attr, task, NULL );
20573 #if HAVE_PTHREADS < 7
20574 if( status < 0 ) status = errno;
20576 if( status ) return status;
20578 /* Draft 4 pthreads */
20579 status = pthread_create( &t, pthread_attr_default, task, NULL );
20580 if( status ) return errno;
20582 /* give thread a chance to complete */
20583 /* it should remain joinable and hence detachable */
20586 status = pthread_detach( &t );
20587 if( status ) return errno;
20590 #ifdef HAVE_LINUX_THREADS
20591 pthread_kill_other_threads_np();
20599 rm -f conftest$ac_exeext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20601 (eval $ac_link) 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ol_cv_pthread_create=yes
20612 echo "$as_me: program exited with status $ac_status" >&5
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ( exit $ac_status )
20617 ol_cv_pthread_create=no
20619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20622 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20623 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20625 if test $ol_cv_pthread_create != no ; then
20626 ol_link_threads=posix
20627 ol_link_pthreads=""
20630 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20631 if test "$ol_link_threads" = no ; then
20633 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20634 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20635 if test "${ol_cv_pthread_kthread+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 LIBS="-kthread $LIBS"
20643 if test "$cross_compiling" = yes; then
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20651 /* pthread test headers */
20652 #include <pthread.h>
20653 #if HAVE_PTHREADS < 7
20657 #define NULL (void*)0
20660 static void *task(p)
20663 return (void *) (p == NULL);
20670 /* pthread test function */
20671 #ifndef PTHREAD_CREATE_DETACHED
20672 #define PTHREAD_CREATE_DETACHED 1
20676 int detach = PTHREAD_CREATE_DETACHED;
20678 #if HAVE_PTHREADS > 4
20679 /* Final pthreads */
20680 pthread_attr_t attr;
20682 status = pthread_attr_init(&attr);
20683 if( status ) return status;
20685 #if HAVE_PTHREADS < 7
20686 status = pthread_attr_setdetachstate(&attr, &detach);
20687 if( status < 0 ) status = errno;
20689 status = pthread_attr_setdetachstate(&attr, detach);
20691 if( status ) return status;
20692 status = pthread_create( &t, &attr, task, NULL );
20693 #if HAVE_PTHREADS < 7
20694 if( status < 0 ) status = errno;
20696 if( status ) return status;
20698 /* Draft 4 pthreads */
20699 status = pthread_create( &t, pthread_attr_default, task, NULL );
20700 if( status ) return errno;
20702 /* give thread a chance to complete */
20703 /* it should remain joinable and hence detachable */
20706 status = pthread_detach( &t );
20707 if( status ) return errno;
20710 #ifdef HAVE_LINUX_THREADS
20711 pthread_kill_other_threads_np();
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest$ac_exeext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ol_cv_pthread_kthread=yes
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ol_cv_pthread_kthread=no
20749 rm -f conftest.err conftest.$ac_objext \
20750 conftest$ac_exeext conftest.$ac_ext
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* pthread test headers */
20760 #include <pthread.h>
20761 #if HAVE_PTHREADS < 7
20765 #define NULL (void*)0
20768 static void *task(p)
20771 return (void *) (p == NULL);
20775 int main(argc, argv)
20780 /* pthread test function */
20781 #ifndef PTHREAD_CREATE_DETACHED
20782 #define PTHREAD_CREATE_DETACHED 1
20786 int detach = PTHREAD_CREATE_DETACHED;
20788 #if HAVE_PTHREADS > 4
20789 /* Final pthreads */
20790 pthread_attr_t attr;
20792 status = pthread_attr_init(&attr);
20793 if( status ) return status;
20795 #if HAVE_PTHREADS < 7
20796 status = pthread_attr_setdetachstate(&attr, &detach);
20797 if( status < 0 ) status = errno;
20799 status = pthread_attr_setdetachstate(&attr, detach);
20801 if( status ) return status;
20802 status = pthread_create( &t, &attr, task, NULL );
20803 #if HAVE_PTHREADS < 7
20804 if( status < 0 ) status = errno;
20806 if( status ) return status;
20808 /* Draft 4 pthreads */
20809 status = pthread_create( &t, pthread_attr_default, task, NULL );
20810 if( status ) return errno;
20812 /* give thread a chance to complete */
20813 /* it should remain joinable and hence detachable */
20816 status = pthread_detach( &t );
20817 if( status ) return errno;
20820 #ifdef HAVE_LINUX_THREADS
20821 pthread_kill_other_threads_np();
20829 rm -f conftest$ac_exeext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20831 (eval $ac_link) 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ol_cv_pthread_kthread=yes
20842 echo "$as_me: program exited with status $ac_status" >&5
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ( exit $ac_status )
20847 ol_cv_pthread_kthread=no
20849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20857 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20859 if test $ol_cv_pthread_kthread = yes ; then
20860 ol_link_pthreads="-kthread"
20861 ol_link_threads=posix
20865 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20866 if test "$ol_link_threads" = no ; then
20868 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20869 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20870 if test "${ol_cv_pthread_pthread+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 LIBS="-pthread $LIBS"
20878 if test "$cross_compiling" = yes; then
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20886 /* pthread test headers */
20887 #include <pthread.h>
20888 #if HAVE_PTHREADS < 7
20892 #define NULL (void*)0
20895 static void *task(p)
20898 return (void *) (p == NULL);
20905 /* pthread test function */
20906 #ifndef PTHREAD_CREATE_DETACHED
20907 #define PTHREAD_CREATE_DETACHED 1
20911 int detach = PTHREAD_CREATE_DETACHED;
20913 #if HAVE_PTHREADS > 4
20914 /* Final pthreads */
20915 pthread_attr_t attr;
20917 status = pthread_attr_init(&attr);
20918 if( status ) return status;
20920 #if HAVE_PTHREADS < 7
20921 status = pthread_attr_setdetachstate(&attr, &detach);
20922 if( status < 0 ) status = errno;
20924 status = pthread_attr_setdetachstate(&attr, detach);
20926 if( status ) return status;
20927 status = pthread_create( &t, &attr, task, NULL );
20928 #if HAVE_PTHREADS < 7
20929 if( status < 0 ) status = errno;
20931 if( status ) return status;
20933 /* Draft 4 pthreads */
20934 status = pthread_create( &t, pthread_attr_default, task, NULL );
20935 if( status ) return errno;
20937 /* give thread a chance to complete */
20938 /* it should remain joinable and hence detachable */
20941 status = pthread_detach( &t );
20942 if( status ) return errno;
20945 #ifdef HAVE_LINUX_THREADS
20946 pthread_kill_other_threads_np();
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20957 (eval $ac_link) 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -z "$ac_c_werror_flag"
20965 || test ! -s conftest.err'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; } &&
20971 { ac_try='test -s conftest$ac_exeext'
20972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20977 ol_cv_pthread_pthread=yes
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ol_cv_pthread_pthread=no
20984 rm -f conftest.err conftest.$ac_objext \
20985 conftest$ac_exeext conftest.$ac_ext
20987 cat >conftest.$ac_ext <<_ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20994 /* pthread test headers */
20995 #include <pthread.h>
20996 #if HAVE_PTHREADS < 7
21000 #define NULL (void*)0
21003 static void *task(p)
21006 return (void *) (p == NULL);
21010 int main(argc, argv)
21015 /* pthread test function */
21016 #ifndef PTHREAD_CREATE_DETACHED
21017 #define PTHREAD_CREATE_DETACHED 1
21021 int detach = PTHREAD_CREATE_DETACHED;
21023 #if HAVE_PTHREADS > 4
21024 /* Final pthreads */
21025 pthread_attr_t attr;
21027 status = pthread_attr_init(&attr);
21028 if( status ) return status;
21030 #if HAVE_PTHREADS < 7
21031 status = pthread_attr_setdetachstate(&attr, &detach);
21032 if( status < 0 ) status = errno;
21034 status = pthread_attr_setdetachstate(&attr, detach);
21036 if( status ) return status;
21037 status = pthread_create( &t, &attr, task, NULL );
21038 #if HAVE_PTHREADS < 7
21039 if( status < 0 ) status = errno;
21041 if( status ) return status;
21043 /* Draft 4 pthreads */
21044 status = pthread_create( &t, pthread_attr_default, task, NULL );
21045 if( status ) return errno;
21047 /* give thread a chance to complete */
21048 /* it should remain joinable and hence detachable */
21051 status = pthread_detach( &t );
21052 if( status ) return errno;
21055 #ifdef HAVE_LINUX_THREADS
21056 pthread_kill_other_threads_np();
21064 rm -f conftest$ac_exeext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21066 (eval $ac_link) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ol_cv_pthread_pthread=yes
21077 echo "$as_me: program exited with status $ac_status" >&5
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ( exit $ac_status )
21082 ol_cv_pthread_pthread=no
21084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21091 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21092 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21094 if test $ol_cv_pthread_pthread = yes ; then
21095 ol_link_pthreads="-pthread"
21096 ol_link_threads=posix
21100 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21101 if test "$ol_link_threads" = no ; then
21103 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21104 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21105 if test "${ol_cv_pthread_pthreads+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 LIBS="-pthreads $LIBS"
21113 if test "$cross_compiling" = yes; then
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* pthread test headers */
21122 #include <pthread.h>
21123 #if HAVE_PTHREADS < 7
21127 #define NULL (void*)0
21130 static void *task(p)
21133 return (void *) (p == NULL);
21140 /* pthread test function */
21141 #ifndef PTHREAD_CREATE_DETACHED
21142 #define PTHREAD_CREATE_DETACHED 1
21146 int detach = PTHREAD_CREATE_DETACHED;
21148 #if HAVE_PTHREADS > 4
21149 /* Final pthreads */
21150 pthread_attr_t attr;
21152 status = pthread_attr_init(&attr);
21153 if( status ) return status;
21155 #if HAVE_PTHREADS < 7
21156 status = pthread_attr_setdetachstate(&attr, &detach);
21157 if( status < 0 ) status = errno;
21159 status = pthread_attr_setdetachstate(&attr, detach);
21161 if( status ) return status;
21162 status = pthread_create( &t, &attr, task, NULL );
21163 #if HAVE_PTHREADS < 7
21164 if( status < 0 ) status = errno;
21166 if( status ) return status;
21168 /* Draft 4 pthreads */
21169 status = pthread_create( &t, pthread_attr_default, task, NULL );
21170 if( status ) return errno;
21172 /* give thread a chance to complete */
21173 /* it should remain joinable and hence detachable */
21176 status = pthread_detach( &t );
21177 if( status ) return errno;
21180 #ifdef HAVE_LINUX_THREADS
21181 pthread_kill_other_threads_np();
21190 rm -f conftest.$ac_objext conftest$ac_exeext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21192 (eval $ac_link) 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
21199 { ac_try='test -z "$ac_c_werror_flag"
21200 || test ! -s conftest.err'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest$ac_exeext'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ol_cv_pthread_pthreads=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ol_cv_pthread_pthreads=no
21219 rm -f conftest.err conftest.$ac_objext \
21220 conftest$ac_exeext conftest.$ac_ext
21222 cat >conftest.$ac_ext <<_ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21229 /* pthread test headers */
21230 #include <pthread.h>
21231 #if HAVE_PTHREADS < 7
21235 #define NULL (void*)0
21238 static void *task(p)
21241 return (void *) (p == NULL);
21245 int main(argc, argv)
21250 /* pthread test function */
21251 #ifndef PTHREAD_CREATE_DETACHED
21252 #define PTHREAD_CREATE_DETACHED 1
21256 int detach = PTHREAD_CREATE_DETACHED;
21258 #if HAVE_PTHREADS > 4
21259 /* Final pthreads */
21260 pthread_attr_t attr;
21262 status = pthread_attr_init(&attr);
21263 if( status ) return status;
21265 #if HAVE_PTHREADS < 7
21266 status = pthread_attr_setdetachstate(&attr, &detach);
21267 if( status < 0 ) status = errno;
21269 status = pthread_attr_setdetachstate(&attr, detach);
21271 if( status ) return status;
21272 status = pthread_create( &t, &attr, task, NULL );
21273 #if HAVE_PTHREADS < 7
21274 if( status < 0 ) status = errno;
21276 if( status ) return status;
21278 /* Draft 4 pthreads */
21279 status = pthread_create( &t, pthread_attr_default, task, NULL );
21280 if( status ) return errno;
21282 /* give thread a chance to complete */
21283 /* it should remain joinable and hence detachable */
21286 status = pthread_detach( &t );
21287 if( status ) return errno;
21290 #ifdef HAVE_LINUX_THREADS
21291 pthread_kill_other_threads_np();
21299 rm -f conftest$ac_exeext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301 (eval $ac_link) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; }; then
21310 ol_cv_pthread_pthreads=yes
21312 echo "$as_me: program exited with status $ac_status" >&5
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ( exit $ac_status )
21317 ol_cv_pthread_pthreads=no
21319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21326 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21327 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21329 if test $ol_cv_pthread_pthreads = yes ; then
21330 ol_link_pthreads="-pthreads"
21331 ol_link_threads=posix
21335 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21336 if test "$ol_link_threads" = no ; then
21338 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21339 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21340 if test "${ol_cv_pthread_mthreads+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 LIBS="-mthreads $LIBS"
21348 if test "$cross_compiling" = yes; then
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21356 /* pthread test headers */
21357 #include <pthread.h>
21358 #if HAVE_PTHREADS < 7
21362 #define NULL (void*)0
21365 static void *task(p)
21368 return (void *) (p == NULL);
21375 /* pthread test function */
21376 #ifndef PTHREAD_CREATE_DETACHED
21377 #define PTHREAD_CREATE_DETACHED 1
21381 int detach = PTHREAD_CREATE_DETACHED;
21383 #if HAVE_PTHREADS > 4
21384 /* Final pthreads */
21385 pthread_attr_t attr;
21387 status = pthread_attr_init(&attr);
21388 if( status ) return status;
21390 #if HAVE_PTHREADS < 7
21391 status = pthread_attr_setdetachstate(&attr, &detach);
21392 if( status < 0 ) status = errno;
21394 status = pthread_attr_setdetachstate(&attr, detach);
21396 if( status ) return status;
21397 status = pthread_create( &t, &attr, task, NULL );
21398 #if HAVE_PTHREADS < 7
21399 if( status < 0 ) status = errno;
21401 if( status ) return status;
21403 /* Draft 4 pthreads */
21404 status = pthread_create( &t, pthread_attr_default, task, NULL );
21405 if( status ) return errno;
21407 /* give thread a chance to complete */
21408 /* it should remain joinable and hence detachable */
21411 status = pthread_detach( &t );
21412 if( status ) return errno;
21415 #ifdef HAVE_LINUX_THREADS
21416 pthread_kill_other_threads_np();
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427 (eval $ac_link) 2>conftest.er1
21429 grep -v '^ *+' conftest.er1 >conftest.err
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } &&
21434 { ac_try='test -z "$ac_c_werror_flag"
21435 || test ! -s conftest.err'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } &&
21441 { ac_try='test -s conftest$ac_exeext'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ol_cv_pthread_mthreads=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ol_cv_pthread_mthreads=no
21454 rm -f conftest.err conftest.$ac_objext \
21455 conftest$ac_exeext conftest.$ac_ext
21457 cat >conftest.$ac_ext <<_ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21464 /* pthread test headers */
21465 #include <pthread.h>
21466 #if HAVE_PTHREADS < 7
21470 #define NULL (void*)0
21473 static void *task(p)
21476 return (void *) (p == NULL);
21480 int main(argc, argv)
21485 /* pthread test function */
21486 #ifndef PTHREAD_CREATE_DETACHED
21487 #define PTHREAD_CREATE_DETACHED 1
21491 int detach = PTHREAD_CREATE_DETACHED;
21493 #if HAVE_PTHREADS > 4
21494 /* Final pthreads */
21495 pthread_attr_t attr;
21497 status = pthread_attr_init(&attr);
21498 if( status ) return status;
21500 #if HAVE_PTHREADS < 7
21501 status = pthread_attr_setdetachstate(&attr, &detach);
21502 if( status < 0 ) status = errno;
21504 status = pthread_attr_setdetachstate(&attr, detach);
21506 if( status ) return status;
21507 status = pthread_create( &t, &attr, task, NULL );
21508 #if HAVE_PTHREADS < 7
21509 if( status < 0 ) status = errno;
21511 if( status ) return status;
21513 /* Draft 4 pthreads */
21514 status = pthread_create( &t, pthread_attr_default, task, NULL );
21515 if( status ) return errno;
21517 /* give thread a chance to complete */
21518 /* it should remain joinable and hence detachable */
21521 status = pthread_detach( &t );
21522 if( status ) return errno;
21525 #ifdef HAVE_LINUX_THREADS
21526 pthread_kill_other_threads_np();
21534 rm -f conftest$ac_exeext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536 (eval $ac_link) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ol_cv_pthread_mthreads=yes
21547 echo "$as_me: program exited with status $ac_status" >&5
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ( exit $ac_status )
21552 ol_cv_pthread_mthreads=no
21554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21561 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21562 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21564 if test $ol_cv_pthread_mthreads = yes ; then
21565 ol_link_pthreads="-mthreads"
21566 ol_link_threads=posix
21570 # Pthread try link: -thread (ol_cv_pthread_thread)
21571 if test "$ol_link_threads" = no ; then
21573 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21574 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21575 if test "${ol_cv_pthread_thread+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 LIBS="-thread $LIBS"
21583 if test "$cross_compiling" = yes; then
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21591 /* pthread test headers */
21592 #include <pthread.h>
21593 #if HAVE_PTHREADS < 7
21597 #define NULL (void*)0
21600 static void *task(p)
21603 return (void *) (p == NULL);
21610 /* pthread test function */
21611 #ifndef PTHREAD_CREATE_DETACHED
21612 #define PTHREAD_CREATE_DETACHED 1
21616 int detach = PTHREAD_CREATE_DETACHED;
21618 #if HAVE_PTHREADS > 4
21619 /* Final pthreads */
21620 pthread_attr_t attr;
21622 status = pthread_attr_init(&attr);
21623 if( status ) return status;
21625 #if HAVE_PTHREADS < 7
21626 status = pthread_attr_setdetachstate(&attr, &detach);
21627 if( status < 0 ) status = errno;
21629 status = pthread_attr_setdetachstate(&attr, detach);
21631 if( status ) return status;
21632 status = pthread_create( &t, &attr, task, NULL );
21633 #if HAVE_PTHREADS < 7
21634 if( status < 0 ) status = errno;
21636 if( status ) return status;
21638 /* Draft 4 pthreads */
21639 status = pthread_create( &t, pthread_attr_default, task, NULL );
21640 if( status ) return errno;
21642 /* give thread a chance to complete */
21643 /* it should remain joinable and hence detachable */
21646 status = pthread_detach( &t );
21647 if( status ) return errno;
21650 #ifdef HAVE_LINUX_THREADS
21651 pthread_kill_other_threads_np();
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662 (eval $ac_link) 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
21669 { ac_try='test -z "$ac_c_werror_flag"
21670 || test ! -s conftest.err'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; } &&
21676 { ac_try='test -s conftest$ac_exeext'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; }; then
21682 ol_cv_pthread_thread=yes
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ol_cv_pthread_thread=no
21689 rm -f conftest.err conftest.$ac_objext \
21690 conftest$ac_exeext conftest.$ac_ext
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21699 /* pthread test headers */
21700 #include <pthread.h>
21701 #if HAVE_PTHREADS < 7
21705 #define NULL (void*)0
21708 static void *task(p)
21711 return (void *) (p == NULL);
21715 int main(argc, argv)
21720 /* pthread test function */
21721 #ifndef PTHREAD_CREATE_DETACHED
21722 #define PTHREAD_CREATE_DETACHED 1
21726 int detach = PTHREAD_CREATE_DETACHED;
21728 #if HAVE_PTHREADS > 4
21729 /* Final pthreads */
21730 pthread_attr_t attr;
21732 status = pthread_attr_init(&attr);
21733 if( status ) return status;
21735 #if HAVE_PTHREADS < 7
21736 status = pthread_attr_setdetachstate(&attr, &detach);
21737 if( status < 0 ) status = errno;
21739 status = pthread_attr_setdetachstate(&attr, detach);
21741 if( status ) return status;
21742 status = pthread_create( &t, &attr, task, NULL );
21743 #if HAVE_PTHREADS < 7
21744 if( status < 0 ) status = errno;
21746 if( status ) return status;
21748 /* Draft 4 pthreads */
21749 status = pthread_create( &t, pthread_attr_default, task, NULL );
21750 if( status ) return errno;
21752 /* give thread a chance to complete */
21753 /* it should remain joinable and hence detachable */
21756 status = pthread_detach( &t );
21757 if( status ) return errno;
21760 #ifdef HAVE_LINUX_THREADS
21761 pthread_kill_other_threads_np();
21769 rm -f conftest$ac_exeext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21771 (eval $ac_link) 2>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
21780 ol_cv_pthread_thread=yes
21782 echo "$as_me: program exited with status $ac_status" >&5
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ( exit $ac_status )
21787 ol_cv_pthread_thread=no
21789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21796 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21797 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21799 if test $ol_cv_pthread_thread = yes ; then
21800 ol_link_pthreads="-thread"
21801 ol_link_threads=posix
21806 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21807 if test "$ol_link_threads" = no ; then
21808 # try -lpthread -lmach -lexc -lc_r
21809 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21810 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21811 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21819 if test "$cross_compiling" = yes; then
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21827 /* pthread test headers */
21828 #include <pthread.h>
21829 #if HAVE_PTHREADS < 7
21833 #define NULL (void*)0
21836 static void *task(p)
21839 return (void *) (p == NULL);
21846 /* pthread test function */
21847 #ifndef PTHREAD_CREATE_DETACHED
21848 #define PTHREAD_CREATE_DETACHED 1
21852 int detach = PTHREAD_CREATE_DETACHED;
21854 #if HAVE_PTHREADS > 4
21855 /* Final pthreads */
21856 pthread_attr_t attr;
21858 status = pthread_attr_init(&attr);
21859 if( status ) return status;
21861 #if HAVE_PTHREADS < 7
21862 status = pthread_attr_setdetachstate(&attr, &detach);
21863 if( status < 0 ) status = errno;
21865 status = pthread_attr_setdetachstate(&attr, detach);
21867 if( status ) return status;
21868 status = pthread_create( &t, &attr, task, NULL );
21869 #if HAVE_PTHREADS < 7
21870 if( status < 0 ) status = errno;
21872 if( status ) return status;
21874 /* Draft 4 pthreads */
21875 status = pthread_create( &t, pthread_attr_default, task, NULL );
21876 if( status ) return errno;
21878 /* give thread a chance to complete */
21879 /* it should remain joinable and hence detachable */
21882 status = pthread_detach( &t );
21883 if( status ) return errno;
21886 #ifdef HAVE_LINUX_THREADS
21887 pthread_kill_other_threads_np();
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>conftest.er1
21900 grep -v '^ *+' conftest.er1 >conftest.err
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_c_werror_flag"
21906 || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest$ac_exeext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21925 rm -f conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21935 /* pthread test headers */
21936 #include <pthread.h>
21937 #if HAVE_PTHREADS < 7
21941 #define NULL (void*)0
21944 static void *task(p)
21947 return (void *) (p == NULL);
21951 int main(argc, argv)
21956 /* pthread test function */
21957 #ifndef PTHREAD_CREATE_DETACHED
21958 #define PTHREAD_CREATE_DETACHED 1
21962 int detach = PTHREAD_CREATE_DETACHED;
21964 #if HAVE_PTHREADS > 4
21965 /* Final pthreads */
21966 pthread_attr_t attr;
21968 status = pthread_attr_init(&attr);
21969 if( status ) return status;
21971 #if HAVE_PTHREADS < 7
21972 status = pthread_attr_setdetachstate(&attr, &detach);
21973 if( status < 0 ) status = errno;
21975 status = pthread_attr_setdetachstate(&attr, detach);
21977 if( status ) return status;
21978 status = pthread_create( &t, &attr, task, NULL );
21979 #if HAVE_PTHREADS < 7
21980 if( status < 0 ) status = errno;
21982 if( status ) return status;
21984 /* Draft 4 pthreads */
21985 status = pthread_create( &t, pthread_attr_default, task, NULL );
21986 if( status ) return errno;
21988 /* give thread a chance to complete */
21989 /* it should remain joinable and hence detachable */
21992 status = pthread_detach( &t );
21993 if( status ) return errno;
21996 #ifdef HAVE_LINUX_THREADS
21997 pthread_kill_other_threads_np();
22005 rm -f conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007 (eval $ac_link) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22018 echo "$as_me: program exited with status $ac_status" >&5
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022 ( exit $ac_status )
22023 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22032 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22033 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22035 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22036 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22037 ol_link_threads=posix
22041 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22042 if test "$ol_link_threads" = no ; then
22043 # try -lpthread -lmach -lexc
22044 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22045 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22046 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 LIBS="-lpthread -lmach -lexc $LIBS"
22054 if test "$cross_compiling" = yes; then
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* pthread test headers */
22063 #include <pthread.h>
22064 #if HAVE_PTHREADS < 7
22068 #define NULL (void*)0
22071 static void *task(p)
22074 return (void *) (p == NULL);
22081 /* pthread test function */
22082 #ifndef PTHREAD_CREATE_DETACHED
22083 #define PTHREAD_CREATE_DETACHED 1
22087 int detach = PTHREAD_CREATE_DETACHED;
22089 #if HAVE_PTHREADS > 4
22090 /* Final pthreads */
22091 pthread_attr_t attr;
22093 status = pthread_attr_init(&attr);
22094 if( status ) return status;
22096 #if HAVE_PTHREADS < 7
22097 status = pthread_attr_setdetachstate(&attr, &detach);
22098 if( status < 0 ) status = errno;
22100 status = pthread_attr_setdetachstate(&attr, detach);
22102 if( status ) return status;
22103 status = pthread_create( &t, &attr, task, NULL );
22104 #if HAVE_PTHREADS < 7
22105 if( status < 0 ) status = errno;
22107 if( status ) return status;
22109 /* Draft 4 pthreads */
22110 status = pthread_create( &t, pthread_attr_default, task, NULL );
22111 if( status ) return errno;
22113 /* give thread a chance to complete */
22114 /* it should remain joinable and hence detachable */
22117 status = pthread_detach( &t );
22118 if( status ) return errno;
22121 #ifdef HAVE_LINUX_THREADS
22122 pthread_kill_other_threads_np();
22131 rm -f conftest.$ac_objext conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133 (eval $ac_link) 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } &&
22140 { ac_try='test -z "$ac_c_werror_flag"
22141 || test ! -s conftest.err'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; } &&
22147 { ac_try='test -s conftest$ac_exeext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 ol_cv_pthread_lpthread_lmach_lexc=yes
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ol_cv_pthread_lpthread_lmach_lexc=no
22160 rm -f conftest.err conftest.$ac_objext \
22161 conftest$ac_exeext conftest.$ac_ext
22163 cat >conftest.$ac_ext <<_ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22170 /* pthread test headers */
22171 #include <pthread.h>
22172 #if HAVE_PTHREADS < 7
22176 #define NULL (void*)0
22179 static void *task(p)
22182 return (void *) (p == NULL);
22186 int main(argc, argv)
22191 /* pthread test function */
22192 #ifndef PTHREAD_CREATE_DETACHED
22193 #define PTHREAD_CREATE_DETACHED 1
22197 int detach = PTHREAD_CREATE_DETACHED;
22199 #if HAVE_PTHREADS > 4
22200 /* Final pthreads */
22201 pthread_attr_t attr;
22203 status = pthread_attr_init(&attr);
22204 if( status ) return status;
22206 #if HAVE_PTHREADS < 7
22207 status = pthread_attr_setdetachstate(&attr, &detach);
22208 if( status < 0 ) status = errno;
22210 status = pthread_attr_setdetachstate(&attr, detach);
22212 if( status ) return status;
22213 status = pthread_create( &t, &attr, task, NULL );
22214 #if HAVE_PTHREADS < 7
22215 if( status < 0 ) status = errno;
22217 if( status ) return status;
22219 /* Draft 4 pthreads */
22220 status = pthread_create( &t, pthread_attr_default, task, NULL );
22221 if( status ) return errno;
22223 /* give thread a chance to complete */
22224 /* it should remain joinable and hence detachable */
22227 status = pthread_detach( &t );
22228 if( status ) return errno;
22231 #ifdef HAVE_LINUX_THREADS
22232 pthread_kill_other_threads_np();
22240 rm -f conftest$ac_exeext
22241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22242 (eval $ac_link) 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }; then
22251 ol_cv_pthread_lpthread_lmach_lexc=yes
22253 echo "$as_me: program exited with status $ac_status" >&5
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ( exit $ac_status )
22258 ol_cv_pthread_lpthread_lmach_lexc=no
22260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22267 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22268 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22270 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22271 ol_link_pthreads="-lpthread -lmach -lexc"
22272 ol_link_threads=posix
22277 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22278 if test "$ol_link_threads" = no ; then
22279 # try -lpthread -Wl,-woff,85
22280 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22281 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22282 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22288 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22290 if test "$cross_compiling" = yes; then
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22298 /* pthread test headers */
22299 #include <pthread.h>
22300 #if HAVE_PTHREADS < 7
22304 #define NULL (void*)0
22307 static void *task(p)
22310 return (void *) (p == NULL);
22317 /* pthread test function */
22318 #ifndef PTHREAD_CREATE_DETACHED
22319 #define PTHREAD_CREATE_DETACHED 1
22323 int detach = PTHREAD_CREATE_DETACHED;
22325 #if HAVE_PTHREADS > 4
22326 /* Final pthreads */
22327 pthread_attr_t attr;
22329 status = pthread_attr_init(&attr);
22330 if( status ) return status;
22332 #if HAVE_PTHREADS < 7
22333 status = pthread_attr_setdetachstate(&attr, &detach);
22334 if( status < 0 ) status = errno;
22336 status = pthread_attr_setdetachstate(&attr, detach);
22338 if( status ) return status;
22339 status = pthread_create( &t, &attr, task, NULL );
22340 #if HAVE_PTHREADS < 7
22341 if( status < 0 ) status = errno;
22343 if( status ) return status;
22345 /* Draft 4 pthreads */
22346 status = pthread_create( &t, pthread_attr_default, task, NULL );
22347 if( status ) return errno;
22349 /* give thread a chance to complete */
22350 /* it should remain joinable and hence detachable */
22353 status = pthread_detach( &t );
22354 if( status ) return errno;
22357 #ifdef HAVE_LINUX_THREADS
22358 pthread_kill_other_threads_np();
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try='test -z "$ac_c_werror_flag"
22377 || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest$ac_exeext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ol_cv_pthread_lib_lpthread_woff=yes
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ol_cv_pthread_lib_lpthread_woff=no
22396 rm -f conftest.err conftest.$ac_objext \
22397 conftest$ac_exeext conftest.$ac_ext
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22406 /* pthread test headers */
22407 #include <pthread.h>
22408 #if HAVE_PTHREADS < 7
22412 #define NULL (void*)0
22415 static void *task(p)
22418 return (void *) (p == NULL);
22422 int main(argc, argv)
22427 /* pthread test function */
22428 #ifndef PTHREAD_CREATE_DETACHED
22429 #define PTHREAD_CREATE_DETACHED 1
22433 int detach = PTHREAD_CREATE_DETACHED;
22435 #if HAVE_PTHREADS > 4
22436 /* Final pthreads */
22437 pthread_attr_t attr;
22439 status = pthread_attr_init(&attr);
22440 if( status ) return status;
22442 #if HAVE_PTHREADS < 7
22443 status = pthread_attr_setdetachstate(&attr, &detach);
22444 if( status < 0 ) status = errno;
22446 status = pthread_attr_setdetachstate(&attr, detach);
22448 if( status ) return status;
22449 status = pthread_create( &t, &attr, task, NULL );
22450 #if HAVE_PTHREADS < 7
22451 if( status < 0 ) status = errno;
22453 if( status ) return status;
22455 /* Draft 4 pthreads */
22456 status = pthread_create( &t, pthread_attr_default, task, NULL );
22457 if( status ) return errno;
22459 /* give thread a chance to complete */
22460 /* it should remain joinable and hence detachable */
22463 status = pthread_detach( &t );
22464 if( status ) return errno;
22467 #ifdef HAVE_LINUX_THREADS
22468 pthread_kill_other_threads_np();
22476 rm -f conftest$ac_exeext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22478 (eval $ac_link) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
22487 ol_cv_pthread_lib_lpthread_woff=yes
22489 echo "$as_me: program exited with status $ac_status" >&5
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ( exit $ac_status )
22494 ol_cv_pthread_lib_lpthread_woff=no
22496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22503 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22504 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22506 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22507 ol_link_pthreads="-lpthread -Wl,-woff,85"
22508 ol_link_threads=posix
22513 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22514 if test "$ol_link_threads" = no ; then
22516 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22517 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22518 if test "${ol_cv_pthread_lpthread+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 LIBS="-lpthread $LIBS"
22526 if test "$cross_compiling" = yes; then
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22534 /* pthread test headers */
22535 #include <pthread.h>
22536 #if HAVE_PTHREADS < 7
22540 #define NULL (void*)0
22543 static void *task(p)
22546 return (void *) (p == NULL);
22553 /* pthread test function */
22554 #ifndef PTHREAD_CREATE_DETACHED
22555 #define PTHREAD_CREATE_DETACHED 1
22559 int detach = PTHREAD_CREATE_DETACHED;
22561 #if HAVE_PTHREADS > 4
22562 /* Final pthreads */
22563 pthread_attr_t attr;
22565 status = pthread_attr_init(&attr);
22566 if( status ) return status;
22568 #if HAVE_PTHREADS < 7
22569 status = pthread_attr_setdetachstate(&attr, &detach);
22570 if( status < 0 ) status = errno;
22572 status = pthread_attr_setdetachstate(&attr, detach);
22574 if( status ) return status;
22575 status = pthread_create( &t, &attr, task, NULL );
22576 #if HAVE_PTHREADS < 7
22577 if( status < 0 ) status = errno;
22579 if( status ) return status;
22581 /* Draft 4 pthreads */
22582 status = pthread_create( &t, pthread_attr_default, task, NULL );
22583 if( status ) return errno;
22585 /* give thread a chance to complete */
22586 /* it should remain joinable and hence detachable */
22589 status = pthread_detach( &t );
22590 if( status ) return errno;
22593 #ifdef HAVE_LINUX_THREADS
22594 pthread_kill_other_threads_np();
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22605 (eval $ac_link) 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } &&
22612 { ac_try='test -z "$ac_c_werror_flag"
22613 || test ! -s conftest.err'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; } &&
22619 { ac_try='test -s conftest$ac_exeext'
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 ol_cv_pthread_lpthread=yes
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22630 ol_cv_pthread_lpthread=no
22632 rm -f conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22635 cat >conftest.$ac_ext <<_ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22642 /* pthread test headers */
22643 #include <pthread.h>
22644 #if HAVE_PTHREADS < 7
22648 #define NULL (void*)0
22651 static void *task(p)
22654 return (void *) (p == NULL);
22658 int main(argc, argv)
22663 /* pthread test function */
22664 #ifndef PTHREAD_CREATE_DETACHED
22665 #define PTHREAD_CREATE_DETACHED 1
22669 int detach = PTHREAD_CREATE_DETACHED;
22671 #if HAVE_PTHREADS > 4
22672 /* Final pthreads */
22673 pthread_attr_t attr;
22675 status = pthread_attr_init(&attr);
22676 if( status ) return status;
22678 #if HAVE_PTHREADS < 7
22679 status = pthread_attr_setdetachstate(&attr, &detach);
22680 if( status < 0 ) status = errno;
22682 status = pthread_attr_setdetachstate(&attr, detach);
22684 if( status ) return status;
22685 status = pthread_create( &t, &attr, task, NULL );
22686 #if HAVE_PTHREADS < 7
22687 if( status < 0 ) status = errno;
22689 if( status ) return status;
22691 /* Draft 4 pthreads */
22692 status = pthread_create( &t, pthread_attr_default, task, NULL );
22693 if( status ) return errno;
22695 /* give thread a chance to complete */
22696 /* it should remain joinable and hence detachable */
22699 status = pthread_detach( &t );
22700 if( status ) return errno;
22703 #ifdef HAVE_LINUX_THREADS
22704 pthread_kill_other_threads_np();
22712 rm -f conftest$ac_exeext
22713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 ol_cv_pthread_lpthread=yes
22725 echo "$as_me: program exited with status $ac_status" >&5
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22729 ( exit $ac_status )
22730 ol_cv_pthread_lpthread=no
22732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22739 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22740 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22742 if test $ol_cv_pthread_lpthread = yes ; then
22743 ol_link_pthreads="-lpthread"
22744 ol_link_threads=posix
22748 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22749 if test "$ol_link_threads" = no ; then
22751 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22752 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22753 if test "${ol_cv_pthread_lc_r+set}" = set; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 if test "$cross_compiling" = yes; then
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22769 /* pthread test headers */
22770 #include <pthread.h>
22771 #if HAVE_PTHREADS < 7
22775 #define NULL (void*)0
22778 static void *task(p)
22781 return (void *) (p == NULL);
22788 /* pthread test function */
22789 #ifndef PTHREAD_CREATE_DETACHED
22790 #define PTHREAD_CREATE_DETACHED 1
22794 int detach = PTHREAD_CREATE_DETACHED;
22796 #if HAVE_PTHREADS > 4
22797 /* Final pthreads */
22798 pthread_attr_t attr;
22800 status = pthread_attr_init(&attr);
22801 if( status ) return status;
22803 #if HAVE_PTHREADS < 7
22804 status = pthread_attr_setdetachstate(&attr, &detach);
22805 if( status < 0 ) status = errno;
22807 status = pthread_attr_setdetachstate(&attr, detach);
22809 if( status ) return status;
22810 status = pthread_create( &t, &attr, task, NULL );
22811 #if HAVE_PTHREADS < 7
22812 if( status < 0 ) status = errno;
22814 if( status ) return status;
22816 /* Draft 4 pthreads */
22817 status = pthread_create( &t, pthread_attr_default, task, NULL );
22818 if( status ) return errno;
22820 /* give thread a chance to complete */
22821 /* it should remain joinable and hence detachable */
22824 status = pthread_detach( &t );
22825 if( status ) return errno;
22828 #ifdef HAVE_LINUX_THREADS
22829 pthread_kill_other_threads_np();
22838 rm -f conftest.$ac_objext conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840 (eval $ac_link) 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
22847 { ac_try='test -z "$ac_c_werror_flag"
22848 || test ! -s conftest.err'
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest$ac_exeext'
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
22860 ol_cv_pthread_lc_r=yes
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ol_cv_pthread_lc_r=no
22867 rm -f conftest.err conftest.$ac_objext \
22868 conftest$ac_exeext conftest.$ac_ext
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22877 /* pthread test headers */
22878 #include <pthread.h>
22879 #if HAVE_PTHREADS < 7
22883 #define NULL (void*)0
22886 static void *task(p)
22889 return (void *) (p == NULL);
22893 int main(argc, argv)
22898 /* pthread test function */
22899 #ifndef PTHREAD_CREATE_DETACHED
22900 #define PTHREAD_CREATE_DETACHED 1
22904 int detach = PTHREAD_CREATE_DETACHED;
22906 #if HAVE_PTHREADS > 4
22907 /* Final pthreads */
22908 pthread_attr_t attr;
22910 status = pthread_attr_init(&attr);
22911 if( status ) return status;
22913 #if HAVE_PTHREADS < 7
22914 status = pthread_attr_setdetachstate(&attr, &detach);
22915 if( status < 0 ) status = errno;
22917 status = pthread_attr_setdetachstate(&attr, detach);
22919 if( status ) return status;
22920 status = pthread_create( &t, &attr, task, NULL );
22921 #if HAVE_PTHREADS < 7
22922 if( status < 0 ) status = errno;
22924 if( status ) return status;
22926 /* Draft 4 pthreads */
22927 status = pthread_create( &t, pthread_attr_default, task, NULL );
22928 if( status ) return errno;
22930 /* give thread a chance to complete */
22931 /* it should remain joinable and hence detachable */
22934 status = pthread_detach( &t );
22935 if( status ) return errno;
22938 #ifdef HAVE_LINUX_THREADS
22939 pthread_kill_other_threads_np();
22947 rm -f conftest$ac_exeext
22948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22949 (eval $ac_link) 2>&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22954 (eval $ac_try) 2>&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); }; }; then
22958 ol_cv_pthread_lc_r=yes
22960 echo "$as_me: program exited with status $ac_status" >&5
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ( exit $ac_status )
22965 ol_cv_pthread_lc_r=no
22967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22974 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22975 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22977 if test $ol_cv_pthread_lc_r = yes ; then
22978 ol_link_pthreads="-lc_r"
22979 ol_link_threads=posix
22984 # Pthread try link: -threads (ol_cv_pthread_threads)
22985 if test "$ol_link_threads" = no ; then
22987 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22988 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22989 if test "${ol_cv_pthread_threads+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22995 LIBS="-threads $LIBS"
22997 if test "$cross_compiling" = yes; then
22998 cat >conftest.$ac_ext <<_ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23005 /* pthread test headers */
23006 #include <pthread.h>
23007 #if HAVE_PTHREADS < 7
23011 #define NULL (void*)0
23014 static void *task(p)
23017 return (void *) (p == NULL);
23024 /* pthread test function */
23025 #ifndef PTHREAD_CREATE_DETACHED
23026 #define PTHREAD_CREATE_DETACHED 1
23030 int detach = PTHREAD_CREATE_DETACHED;
23032 #if HAVE_PTHREADS > 4
23033 /* Final pthreads */
23034 pthread_attr_t attr;
23036 status = pthread_attr_init(&attr);
23037 if( status ) return status;
23039 #if HAVE_PTHREADS < 7
23040 status = pthread_attr_setdetachstate(&attr, &detach);
23041 if( status < 0 ) status = errno;
23043 status = pthread_attr_setdetachstate(&attr, detach);
23045 if( status ) return status;
23046 status = pthread_create( &t, &attr, task, NULL );
23047 #if HAVE_PTHREADS < 7
23048 if( status < 0 ) status = errno;
23050 if( status ) return status;
23052 /* Draft 4 pthreads */
23053 status = pthread_create( &t, pthread_attr_default, task, NULL );
23054 if( status ) return errno;
23056 /* give thread a chance to complete */
23057 /* it should remain joinable and hence detachable */
23060 status = pthread_detach( &t );
23061 if( status ) return errno;
23064 #ifdef HAVE_LINUX_THREADS
23065 pthread_kill_other_threads_np();
23074 rm -f conftest.$ac_objext conftest$ac_exeext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23076 (eval $ac_link) 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
23083 { ac_try='test -z "$ac_c_werror_flag"
23084 || test ! -s conftest.err'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; } &&
23090 { ac_try='test -s conftest$ac_exeext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 ol_cv_pthread_threads=yes
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ol_cv_pthread_threads=no
23103 rm -f conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 /* pthread test headers */
23114 #include <pthread.h>
23115 #if HAVE_PTHREADS < 7
23119 #define NULL (void*)0
23122 static void *task(p)
23125 return (void *) (p == NULL);
23129 int main(argc, argv)
23134 /* pthread test function */
23135 #ifndef PTHREAD_CREATE_DETACHED
23136 #define PTHREAD_CREATE_DETACHED 1
23140 int detach = PTHREAD_CREATE_DETACHED;
23142 #if HAVE_PTHREADS > 4
23143 /* Final pthreads */
23144 pthread_attr_t attr;
23146 status = pthread_attr_init(&attr);
23147 if( status ) return status;
23149 #if HAVE_PTHREADS < 7
23150 status = pthread_attr_setdetachstate(&attr, &detach);
23151 if( status < 0 ) status = errno;
23153 status = pthread_attr_setdetachstate(&attr, detach);
23155 if( status ) return status;
23156 status = pthread_create( &t, &attr, task, NULL );
23157 #if HAVE_PTHREADS < 7
23158 if( status < 0 ) status = errno;
23160 if( status ) return status;
23162 /* Draft 4 pthreads */
23163 status = pthread_create( &t, pthread_attr_default, task, NULL );
23164 if( status ) return errno;
23166 /* give thread a chance to complete */
23167 /* it should remain joinable and hence detachable */
23170 status = pthread_detach( &t );
23171 if( status ) return errno;
23174 #ifdef HAVE_LINUX_THREADS
23175 pthread_kill_other_threads_np();
23183 rm -f conftest$ac_exeext
23184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23185 (eval $ac_link) 2>&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 ol_cv_pthread_threads=yes
23196 echo "$as_me: program exited with status $ac_status" >&5
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ( exit $ac_status )
23201 ol_cv_pthread_threads=no
23203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23210 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23211 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23213 if test $ol_cv_pthread_threads = yes ; then
23214 ol_link_pthreads="-threads"
23215 ol_link_threads=posix
23220 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23221 if test "$ol_link_threads" = no ; then
23222 # try -lpthreads -lmach -lexc -lc_r
23223 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23224 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23225 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23226 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23233 if test "$cross_compiling" = yes; then
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 /* pthread test headers */
23242 #include <pthread.h>
23243 #if HAVE_PTHREADS < 7
23247 #define NULL (void*)0
23250 static void *task(p)
23253 return (void *) (p == NULL);
23260 /* pthread test function */
23261 #ifndef PTHREAD_CREATE_DETACHED
23262 #define PTHREAD_CREATE_DETACHED 1
23266 int detach = PTHREAD_CREATE_DETACHED;
23268 #if HAVE_PTHREADS > 4
23269 /* Final pthreads */
23270 pthread_attr_t attr;
23272 status = pthread_attr_init(&attr);
23273 if( status ) return status;
23275 #if HAVE_PTHREADS < 7
23276 status = pthread_attr_setdetachstate(&attr, &detach);
23277 if( status < 0 ) status = errno;
23279 status = pthread_attr_setdetachstate(&attr, detach);
23281 if( status ) return status;
23282 status = pthread_create( &t, &attr, task, NULL );
23283 #if HAVE_PTHREADS < 7
23284 if( status < 0 ) status = errno;
23286 if( status ) return status;
23288 /* Draft 4 pthreads */
23289 status = pthread_create( &t, pthread_attr_default, task, NULL );
23290 if( status ) return errno;
23292 /* give thread a chance to complete */
23293 /* it should remain joinable and hence detachable */
23296 status = pthread_detach( &t );
23297 if( status ) return errno;
23300 #ifdef HAVE_LINUX_THREADS
23301 pthread_kill_other_threads_np();
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>conftest.er1
23314 grep -v '^ *+' conftest.er1 >conftest.err
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } &&
23319 { ac_try='test -z "$ac_c_werror_flag"
23320 || test ! -s conftest.err'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; } &&
23326 { ac_try='test -s conftest$ac_exeext'
23327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328 (eval $ac_try) 2>&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23339 rm -f conftest.err conftest.$ac_objext \
23340 conftest$ac_exeext conftest.$ac_ext
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23349 /* pthread test headers */
23350 #include <pthread.h>
23351 #if HAVE_PTHREADS < 7
23355 #define NULL (void*)0
23358 static void *task(p)
23361 return (void *) (p == NULL);
23365 int main(argc, argv)
23370 /* pthread test function */
23371 #ifndef PTHREAD_CREATE_DETACHED
23372 #define PTHREAD_CREATE_DETACHED 1
23376 int detach = PTHREAD_CREATE_DETACHED;
23378 #if HAVE_PTHREADS > 4
23379 /* Final pthreads */
23380 pthread_attr_t attr;
23382 status = pthread_attr_init(&attr);
23383 if( status ) return status;
23385 #if HAVE_PTHREADS < 7
23386 status = pthread_attr_setdetachstate(&attr, &detach);
23387 if( status < 0 ) status = errno;
23389 status = pthread_attr_setdetachstate(&attr, detach);
23391 if( status ) return status;
23392 status = pthread_create( &t, &attr, task, NULL );
23393 #if HAVE_PTHREADS < 7
23394 if( status < 0 ) status = errno;
23396 if( status ) return status;
23398 /* Draft 4 pthreads */
23399 status = pthread_create( &t, pthread_attr_default, task, NULL );
23400 if( status ) return errno;
23402 /* give thread a chance to complete */
23403 /* it should remain joinable and hence detachable */
23406 status = pthread_detach( &t );
23407 if( status ) return errno;
23410 #ifdef HAVE_LINUX_THREADS
23411 pthread_kill_other_threads_np();
23419 rm -f conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421 (eval $ac_link) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23432 echo "$as_me: program exited with status $ac_status" >&5
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ( exit $ac_status )
23437 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23446 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23447 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23449 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23450 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23451 ol_link_threads=posix
23455 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23456 if test "$ol_link_threads" = no ; then
23457 # try -lpthreads -lmach -lexc
23458 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23459 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23460 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23466 LIBS="-lpthreads -lmach -lexc $LIBS"
23468 if test "$cross_compiling" = yes; then
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23476 /* pthread test headers */
23477 #include <pthread.h>
23478 #if HAVE_PTHREADS < 7
23482 #define NULL (void*)0
23485 static void *task(p)
23488 return (void *) (p == NULL);
23495 /* pthread test function */
23496 #ifndef PTHREAD_CREATE_DETACHED
23497 #define PTHREAD_CREATE_DETACHED 1
23501 int detach = PTHREAD_CREATE_DETACHED;
23503 #if HAVE_PTHREADS > 4
23504 /* Final pthreads */
23505 pthread_attr_t attr;
23507 status = pthread_attr_init(&attr);
23508 if( status ) return status;
23510 #if HAVE_PTHREADS < 7
23511 status = pthread_attr_setdetachstate(&attr, &detach);
23512 if( status < 0 ) status = errno;
23514 status = pthread_attr_setdetachstate(&attr, detach);
23516 if( status ) return status;
23517 status = pthread_create( &t, &attr, task, NULL );
23518 #if HAVE_PTHREADS < 7
23519 if( status < 0 ) status = errno;
23521 if( status ) return status;
23523 /* Draft 4 pthreads */
23524 status = pthread_create( &t, pthread_attr_default, task, NULL );
23525 if( status ) return errno;
23527 /* give thread a chance to complete */
23528 /* it should remain joinable and hence detachable */
23531 status = pthread_detach( &t );
23532 if( status ) return errno;
23535 #ifdef HAVE_LINUX_THREADS
23536 pthread_kill_other_threads_np();
23545 rm -f conftest.$ac_objext conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547 (eval $ac_link) 2>conftest.er1
23549 grep -v '^ *+' conftest.er1 >conftest.err
23551 cat conftest.err >&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } &&
23554 { ac_try='test -z "$ac_c_werror_flag"
23555 || test ! -s conftest.err'
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest$ac_exeext'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ol_cv_pthread_lpthreads_lmach_lexc=yes
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ol_cv_pthread_lpthreads_lmach_lexc=no
23574 rm -f conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23584 /* pthread test headers */
23585 #include <pthread.h>
23586 #if HAVE_PTHREADS < 7
23590 #define NULL (void*)0
23593 static void *task(p)
23596 return (void *) (p == NULL);
23600 int main(argc, argv)
23605 /* pthread test function */
23606 #ifndef PTHREAD_CREATE_DETACHED
23607 #define PTHREAD_CREATE_DETACHED 1
23611 int detach = PTHREAD_CREATE_DETACHED;
23613 #if HAVE_PTHREADS > 4
23614 /* Final pthreads */
23615 pthread_attr_t attr;
23617 status = pthread_attr_init(&attr);
23618 if( status ) return status;
23620 #if HAVE_PTHREADS < 7
23621 status = pthread_attr_setdetachstate(&attr, &detach);
23622 if( status < 0 ) status = errno;
23624 status = pthread_attr_setdetachstate(&attr, detach);
23626 if( status ) return status;
23627 status = pthread_create( &t, &attr, task, NULL );
23628 #if HAVE_PTHREADS < 7
23629 if( status < 0 ) status = errno;
23631 if( status ) return status;
23633 /* Draft 4 pthreads */
23634 status = pthread_create( &t, pthread_attr_default, task, NULL );
23635 if( status ) return errno;
23637 /* give thread a chance to complete */
23638 /* it should remain joinable and hence detachable */
23641 status = pthread_detach( &t );
23642 if( status ) return errno;
23645 #ifdef HAVE_LINUX_THREADS
23646 pthread_kill_other_threads_np();
23654 rm -f conftest$ac_exeext
23655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23656 (eval $ac_link) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; }; then
23665 ol_cv_pthread_lpthreads_lmach_lexc=yes
23667 echo "$as_me: program exited with status $ac_status" >&5
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ( exit $ac_status )
23672 ol_cv_pthread_lpthreads_lmach_lexc=no
23674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23681 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23682 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23684 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23685 ol_link_pthreads="-lpthreads -lmach -lexc"
23686 ol_link_threads=posix
23690 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23691 if test "$ol_link_threads" = no ; then
23692 # try -lpthreads -lexc
23693 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23694 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23695 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23701 LIBS="-lpthreads -lexc $LIBS"
23703 if test "$cross_compiling" = yes; then
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23711 /* pthread test headers */
23712 #include <pthread.h>
23713 #if HAVE_PTHREADS < 7
23717 #define NULL (void*)0
23720 static void *task(p)
23723 return (void *) (p == NULL);
23730 /* pthread test function */
23731 #ifndef PTHREAD_CREATE_DETACHED
23732 #define PTHREAD_CREATE_DETACHED 1
23736 int detach = PTHREAD_CREATE_DETACHED;
23738 #if HAVE_PTHREADS > 4
23739 /* Final pthreads */
23740 pthread_attr_t attr;
23742 status = pthread_attr_init(&attr);
23743 if( status ) return status;
23745 #if HAVE_PTHREADS < 7
23746 status = pthread_attr_setdetachstate(&attr, &detach);
23747 if( status < 0 ) status = errno;
23749 status = pthread_attr_setdetachstate(&attr, detach);
23751 if( status ) return status;
23752 status = pthread_create( &t, &attr, task, NULL );
23753 #if HAVE_PTHREADS < 7
23754 if( status < 0 ) status = errno;
23756 if( status ) return status;
23758 /* Draft 4 pthreads */
23759 status = pthread_create( &t, pthread_attr_default, task, NULL );
23760 if( status ) return errno;
23762 /* give thread a chance to complete */
23763 /* it should remain joinable and hence detachable */
23766 status = pthread_detach( &t );
23767 if( status ) return errno;
23770 #ifdef HAVE_LINUX_THREADS
23771 pthread_kill_other_threads_np();
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782 (eval $ac_link) 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -z "$ac_c_werror_flag"
23790 || test ! -s conftest.err'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } &&
23796 { ac_try='test -s conftest$ac_exeext'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; }; then
23802 ol_cv_pthread_lpthreads_lexc=yes
23804 echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23807 ol_cv_pthread_lpthreads_lexc=no
23809 rm -f conftest.err conftest.$ac_objext \
23810 conftest$ac_exeext conftest.$ac_ext
23812 cat >conftest.$ac_ext <<_ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23819 /* pthread test headers */
23820 #include <pthread.h>
23821 #if HAVE_PTHREADS < 7
23825 #define NULL (void*)0
23828 static void *task(p)
23831 return (void *) (p == NULL);
23835 int main(argc, argv)
23840 /* pthread test function */
23841 #ifndef PTHREAD_CREATE_DETACHED
23842 #define PTHREAD_CREATE_DETACHED 1
23846 int detach = PTHREAD_CREATE_DETACHED;
23848 #if HAVE_PTHREADS > 4
23849 /* Final pthreads */
23850 pthread_attr_t attr;
23852 status = pthread_attr_init(&attr);
23853 if( status ) return status;
23855 #if HAVE_PTHREADS < 7
23856 status = pthread_attr_setdetachstate(&attr, &detach);
23857 if( status < 0 ) status = errno;
23859 status = pthread_attr_setdetachstate(&attr, detach);
23861 if( status ) return status;
23862 status = pthread_create( &t, &attr, task, NULL );
23863 #if HAVE_PTHREADS < 7
23864 if( status < 0 ) status = errno;
23866 if( status ) return status;
23868 /* Draft 4 pthreads */
23869 status = pthread_create( &t, pthread_attr_default, task, NULL );
23870 if( status ) return errno;
23872 /* give thread a chance to complete */
23873 /* it should remain joinable and hence detachable */
23876 status = pthread_detach( &t );
23877 if( status ) return errno;
23880 #ifdef HAVE_LINUX_THREADS
23881 pthread_kill_other_threads_np();
23889 rm -f conftest$ac_exeext
23890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23891 (eval $ac_link) 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; }; then
23900 ol_cv_pthread_lpthreads_lexc=yes
23902 echo "$as_me: program exited with status $ac_status" >&5
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 ( exit $ac_status )
23907 ol_cv_pthread_lpthreads_lexc=no
23909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23916 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23917 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23919 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23920 ol_link_pthreads="-lpthreads -lexc"
23921 ol_link_threads=posix
23926 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23927 if test "$ol_link_threads" = no ; then
23929 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23930 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23931 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 LIBS="-lpthreads $LIBS"
23939 if test "$cross_compiling" = yes; then
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 /* pthread test headers */
23948 #include <pthread.h>
23949 #if HAVE_PTHREADS < 7
23953 #define NULL (void*)0
23956 static void *task(p)
23959 return (void *) (p == NULL);
23966 /* pthread test function */
23967 #ifndef PTHREAD_CREATE_DETACHED
23968 #define PTHREAD_CREATE_DETACHED 1
23972 int detach = PTHREAD_CREATE_DETACHED;
23974 #if HAVE_PTHREADS > 4
23975 /* Final pthreads */
23976 pthread_attr_t attr;
23978 status = pthread_attr_init(&attr);
23979 if( status ) return status;
23981 #if HAVE_PTHREADS < 7
23982 status = pthread_attr_setdetachstate(&attr, &detach);
23983 if( status < 0 ) status = errno;
23985 status = pthread_attr_setdetachstate(&attr, detach);
23987 if( status ) return status;
23988 status = pthread_create( &t, &attr, task, NULL );
23989 #if HAVE_PTHREADS < 7
23990 if( status < 0 ) status = errno;
23992 if( status ) return status;
23994 /* Draft 4 pthreads */
23995 status = pthread_create( &t, pthread_attr_default, task, NULL );
23996 if( status ) return errno;
23998 /* give thread a chance to complete */
23999 /* it should remain joinable and hence detachable */
24002 status = pthread_detach( &t );
24003 if( status ) return errno;
24006 #ifdef HAVE_LINUX_THREADS
24007 pthread_kill_other_threads_np();
24016 rm -f conftest.$ac_objext conftest$ac_exeext
24017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24018 (eval $ac_link) 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } &&
24025 { ac_try='test -z "$ac_c_werror_flag"
24026 || test ! -s conftest.err'
24027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028 (eval $ac_try) 2>&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); }; } &&
24032 { ac_try='test -s conftest$ac_exeext'
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; }; then
24038 ol_cv_pthread_lib_lpthreads=yes
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ol_cv_pthread_lib_lpthreads=no
24045 rm -f conftest.err conftest.$ac_objext \
24046 conftest$ac_exeext conftest.$ac_ext
24048 cat >conftest.$ac_ext <<_ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24055 /* pthread test headers */
24056 #include <pthread.h>
24057 #if HAVE_PTHREADS < 7
24061 #define NULL (void*)0
24064 static void *task(p)
24067 return (void *) (p == NULL);
24071 int main(argc, argv)
24076 /* pthread test function */
24077 #ifndef PTHREAD_CREATE_DETACHED
24078 #define PTHREAD_CREATE_DETACHED 1
24082 int detach = PTHREAD_CREATE_DETACHED;
24084 #if HAVE_PTHREADS > 4
24085 /* Final pthreads */
24086 pthread_attr_t attr;
24088 status = pthread_attr_init(&attr);
24089 if( status ) return status;
24091 #if HAVE_PTHREADS < 7
24092 status = pthread_attr_setdetachstate(&attr, &detach);
24093 if( status < 0 ) status = errno;
24095 status = pthread_attr_setdetachstate(&attr, detach);
24097 if( status ) return status;
24098 status = pthread_create( &t, &attr, task, NULL );
24099 #if HAVE_PTHREADS < 7
24100 if( status < 0 ) status = errno;
24102 if( status ) return status;
24104 /* Draft 4 pthreads */
24105 status = pthread_create( &t, pthread_attr_default, task, NULL );
24106 if( status ) return errno;
24108 /* give thread a chance to complete */
24109 /* it should remain joinable and hence detachable */
24112 status = pthread_detach( &t );
24113 if( status ) return errno;
24116 #ifdef HAVE_LINUX_THREADS
24117 pthread_kill_other_threads_np();
24125 rm -f conftest$ac_exeext
24126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24127 (eval $ac_link) 2>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; }; then
24136 ol_cv_pthread_lib_lpthreads=yes
24138 echo "$as_me: program exited with status $ac_status" >&5
24139 echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24142 ( exit $ac_status )
24143 ol_cv_pthread_lib_lpthreads=no
24145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24152 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24153 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24155 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24156 ol_link_pthreads="-lpthreads"
24157 ol_link_threads=posix
24162 if test $ol_link_threads != no ; then
24163 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24165 save_CPPFLAGS="$CPPFLAGS"
24167 LIBS="$LTHREAD_LIBS $LIBS"
24172 for ac_func in sched_yield pthread_yield thr_yield
24174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24175 echo "$as_me:$LINENO: checking for $ac_func" >&5
24176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24177 if eval "test \"\${$as_ac_var+set}\" = set"; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24188 #define $ac_func innocuous_$ac_func
24190 /* System header to define __stub macros and hopefully few prototypes,
24191 which can conflict with char $ac_func (); below.
24192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24193 <limits.h> exists even on freestanding compilers. */
24196 # include <limits.h>
24198 # include <assert.h>
24203 /* Override any gcc2 internal prototype to avoid an error. */
24208 /* We use char because int might match the return type of a gcc2
24209 builtin and then its argument prototype would still apply. */
24211 /* The GNU C library defines this for functions which it implements
24212 to always fail with ENOSYS. Some functions are actually named
24213 something starting with __ and the normal name is an alias. */
24214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24217 char (*f) () = $ac_func;
24226 return f != $ac_func;
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 eval "$as_ac_var=yes"
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24258 eval "$as_ac_var=no"
24260 rm -f conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24265 if test `eval echo '${'$as_ac_var'}'` = yes; then
24266 cat >>confdefs.h <<_ACEOF
24267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24274 if test $ac_cv_func_sched_yield = no &&
24275 test $ac_cv_func_pthread_yield = no &&
24276 test $ac_cv_func_thr_yield = no ; then
24277 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24278 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24279 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24282 ac_check_lib_save_LIBS=$LIBS
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24291 /* Override any gcc2 internal prototype to avoid an error. */
24295 /* We use char because int might match the return type of a gcc2
24296 builtin and then its argument prototype would still apply. */
24297 char sched_yield ();
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308 (eval $ac_link) 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest$ac_exeext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_cv_lib_rt_sched_yield=yes
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_lib_rt_sched_yield=no
24335 rm -f conftest.err conftest.$ac_objext \
24336 conftest$ac_exeext conftest.$ac_ext
24337 LIBS=$ac_check_lib_save_LIBS
24339 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24340 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24341 if test $ac_cv_lib_rt_sched_yield = yes; then
24342 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24344 cat >>confdefs.h <<\_ACEOF
24345 #define HAVE_SCHED_YIELD 1
24348 ac_cv_func_sched_yield=yes
24350 ac_cv_func_sched_yield=no
24354 if test $ac_cv_func_sched_yield = no &&
24355 test $ac_cv_func_pthread_yield = no &&
24356 test "$ac_cv_func_thr_yield" = no ; then
24357 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24358 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24363 for ac_func in pthread_kill pthread_rwlock_destroy
24365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24366 echo "$as_me:$LINENO: checking for $ac_func" >&5
24367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24368 if eval "test \"\${$as_ac_var+set}\" = set"; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24371 cat >conftest.$ac_ext <<_ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24379 #define $ac_func innocuous_$ac_func
24381 /* System header to define __stub macros and hopefully few prototypes,
24382 which can conflict with char $ac_func (); below.
24383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24384 <limits.h> exists even on freestanding compilers. */
24387 # include <limits.h>
24389 # include <assert.h>
24394 /* Override any gcc2 internal prototype to avoid an error. */
24399 /* We use char because int might match the return type of a gcc2
24400 builtin and then its argument prototype would still apply. */
24402 /* The GNU C library defines this for functions which it implements
24403 to always fail with ENOSYS. Some functions are actually named
24404 something starting with __ and the normal name is an alias. */
24405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24408 char (*f) () = $ac_func;
24417 return f != $ac_func;
24422 rm -f conftest.$ac_objext conftest$ac_exeext
24423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24424 (eval $ac_link) 2>conftest.er1
24426 grep -v '^ *+' conftest.er1 >conftest.err
24428 cat conftest.err >&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); } &&
24431 { ac_try='test -z "$ac_c_werror_flag"
24432 || test ! -s conftest.err'
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; } &&
24438 { ac_try='test -s conftest$ac_exeext'
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 eval "$as_ac_var=yes"
24446 echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.$ac_ext >&5
24449 eval "$as_ac_var=no"
24451 rm -f conftest.err conftest.$ac_objext \
24452 conftest$ac_exeext conftest.$ac_ext
24454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24456 if test `eval echo '${'$as_ac_var'}'` = yes; then
24457 cat >>confdefs.h <<_ACEOF
24458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24465 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24466 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24467 if test "${ol_cv_func_pthread_detach+set}" = set; then
24468 echo $ECHO_N "(cached) $ECHO_C" >&6
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24478 #include <pthread.h>
24480 #define NULL (void*)0
24486 pthread_detach(NULL);
24491 rm -f conftest.$ac_objext conftest$ac_exeext
24492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24493 (eval $ac_link) 2>conftest.er1
24495 grep -v '^ *+' conftest.er1 >conftest.err
24497 cat conftest.err >&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); } &&
24500 { ac_try='test -z "$ac_c_werror_flag"
24501 || test ! -s conftest.err'
24502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; } &&
24507 { ac_try='test -s conftest$ac_exeext'
24508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24509 (eval $ac_try) 2>&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; }; then
24513 ol_cv_func_pthread_detach=yes
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24518 ol_cv_func_pthread_detach=no
24520 rm -f conftest.err conftest.$ac_objext \
24521 conftest$ac_exeext conftest.$ac_ext
24524 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24525 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24527 if test $ol_cv_func_pthread_detach = no ; then
24528 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24529 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24530 { (exit 1); exit 1; }; }
24534 cat >>confdefs.h <<\_ACEOF
24535 #define HAVE_PTHREAD_DETACH 1
24544 pthread_setconcurrency \
24545 pthread_getconcurrency \
24546 thr_setconcurrency \
24547 thr_getconcurrency \
24550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24551 echo "$as_me:$LINENO: checking for $ac_func" >&5
24552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24553 if eval "test \"\${$as_ac_var+set}\" = set"; then
24554 echo $ECHO_N "(cached) $ECHO_C" >&6
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24564 #define $ac_func innocuous_$ac_func
24566 /* System header to define __stub macros and hopefully few prototypes,
24567 which can conflict with char $ac_func (); below.
24568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24569 <limits.h> exists even on freestanding compilers. */
24572 # include <limits.h>
24574 # include <assert.h>
24579 /* Override any gcc2 internal prototype to avoid an error. */
24584 /* We use char because int might match the return type of a gcc2
24585 builtin and then its argument prototype would still apply. */
24587 /* The GNU C library defines this for functions which it implements
24588 to always fail with ENOSYS. Some functions are actually named
24589 something starting with __ and the normal name is an alias. */
24590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24593 char (*f) () = $ac_func;
24602 return f != $ac_func;
24607 rm -f conftest.$ac_objext conftest$ac_exeext
24608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24609 (eval $ac_link) 2>conftest.er1
24611 grep -v '^ *+' conftest.er1 >conftest.err
24613 cat conftest.err >&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } &&
24616 { ac_try='test -z "$ac_c_werror_flag"
24617 || test ! -s conftest.err'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; } &&
24623 { ac_try='test -s conftest$ac_exeext'
24624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24625 (eval $ac_try) 2>&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; }; then
24629 eval "$as_ac_var=yes"
24631 echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.$ac_ext >&5
24634 eval "$as_ac_var=no"
24636 rm -f conftest.err conftest.$ac_objext \
24637 conftest$ac_exeext conftest.$ac_ext
24639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24641 if test `eval echo '${'$as_ac_var'}'` = yes; then
24642 cat >>confdefs.h <<_ACEOF
24643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24652 for ac_func in pthread_kill_other_threads_np
24654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24655 echo "$as_me:$LINENO: checking for $ac_func" >&5
24656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24657 if eval "test \"\${$as_ac_var+set}\" = set"; then
24658 echo $ECHO_N "(cached) $ECHO_C" >&6
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24668 #define $ac_func innocuous_$ac_func
24670 /* System header to define __stub macros and hopefully few prototypes,
24671 which can conflict with char $ac_func (); below.
24672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24673 <limits.h> exists even on freestanding compilers. */
24676 # include <limits.h>
24678 # include <assert.h>
24683 /* Override any gcc2 internal prototype to avoid an error. */
24688 /* We use char because int might match the return type of a gcc2
24689 builtin and then its argument prototype would still apply. */
24691 /* The GNU C library defines this for functions which it implements
24692 to always fail with ENOSYS. Some functions are actually named
24693 something starting with __ and the normal name is an alias. */
24694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24697 char (*f) () = $ac_func;
24706 return f != $ac_func;
24711 rm -f conftest.$ac_objext conftest$ac_exeext
24712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24713 (eval $ac_link) 2>conftest.er1
24715 grep -v '^ *+' conftest.er1 >conftest.err
24717 cat conftest.err >&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } &&
24720 { ac_try='test -z "$ac_c_werror_flag"
24721 || test ! -s conftest.err'
24722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723 (eval $ac_try) 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; } &&
24727 { ac_try='test -s conftest$ac_exeext'
24728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729 (eval $ac_try) 2>&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; }; then
24733 eval "$as_ac_var=yes"
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 eval "$as_ac_var=no"
24740 rm -f conftest.err conftest.$ac_objext \
24741 conftest$ac_exeext conftest.$ac_ext
24743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24745 if test `eval echo '${'$as_ac_var'}'` = yes; then
24746 cat >>confdefs.h <<_ACEOF
24747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24753 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24754 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24755 if test "${ol_cv_sys_linux_threads+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24758 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24760 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24761 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24766 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24767 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24768 if test "${ol_cv_linux_threads+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 if test $ol_cv_header_linux_threads = yes &&
24773 test $ol_cv_sys_linux_threads = yes; then
24774 ol_cv_linux_threads=yes
24775 elif test $ol_cv_header_linux_threads = no &&
24776 test $ol_cv_sys_linux_threads = no; then
24777 ol_cv_linux_threads=no
24779 ol_cv_linux_threads=error
24783 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24784 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24787 if test $ol_cv_linux_threads = error; then
24788 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24789 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24790 { (exit 1); exit 1; }; };
24793 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24794 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24795 if test "${ol_cv_pthread_create_works+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 if test "$cross_compiling" = yes; then
24800 ol_cv_pthread_create_works=yes
24802 cat >conftest.$ac_ext <<_ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24809 /* pthread test headers */
24810 #include <pthread.h>
24811 #if HAVE_PTHREADS < 7
24815 #define NULL (void*)0
24818 static void *task(p)
24821 return (void *) (p == NULL);
24825 int main(argc, argv)
24830 /* pthread test function */
24831 #ifndef PTHREAD_CREATE_DETACHED
24832 #define PTHREAD_CREATE_DETACHED 1
24836 int detach = PTHREAD_CREATE_DETACHED;
24838 #if HAVE_PTHREADS > 4
24839 /* Final pthreads */
24840 pthread_attr_t attr;
24842 status = pthread_attr_init(&attr);
24843 if( status ) return status;
24845 #if HAVE_PTHREADS < 7
24846 status = pthread_attr_setdetachstate(&attr, &detach);
24847 if( status < 0 ) status = errno;
24849 status = pthread_attr_setdetachstate(&attr, detach);
24851 if( status ) return status;
24852 status = pthread_create( &t, &attr, task, NULL );
24853 #if HAVE_PTHREADS < 7
24854 if( status < 0 ) status = errno;
24856 if( status ) return status;
24858 /* Draft 4 pthreads */
24859 status = pthread_create( &t, pthread_attr_default, task, NULL );
24860 if( status ) return errno;
24862 /* give thread a chance to complete */
24863 /* it should remain joinable and hence detachable */
24866 status = pthread_detach( &t );
24867 if( status ) return errno;
24870 #ifdef HAVE_LINUX_THREADS
24871 pthread_kill_other_threads_np();
24879 rm -f conftest$ac_exeext
24880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24881 (eval $ac_link) 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ol_cv_pthread_create_works=yes
24892 echo "$as_me: program exited with status $ac_status" >&5
24893 echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24896 ( exit $ac_status )
24897 ol_cv_pthread_create_works=no
24899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24902 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24903 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24905 if test $ol_cv_pthread_create_works = no ; then
24906 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24907 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24908 { (exit 1); exit 1; }; }
24911 ol_replace_broken_yield=no
24913 if test $ol_replace_broken_yield = yes ; then
24915 cat >>confdefs.h <<\_ACEOF
24916 #define REPLACE_BROKEN_YIELD 1
24921 if test $ol_with_yielding_select = auto ; then
24922 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24923 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24924 if test "${ol_cv_pthread_select_yields+set}" = set; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24928 if test "$cross_compiling" = yes; then
24929 ol_cv_pthread_select_yields=cross
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24938 #include <sys/types.h>
24939 #include <sys/time.h>
24940 #include <unistd.h>
24941 #include <pthread.h>
24943 #define NULL (void*) 0
24946 static int fildes[2];
24948 static void *task(p)
24960 FD_SET(fildes[0], &rfds);
24962 /* we're not interested in any fds */
24963 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24970 exit(0); /* if we exit here, the select blocked the whole process */
24973 int main(argc, argv)
24979 /* create a pipe to select */
24980 if(pipe(&fildes[0])) {
24985 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24986 (void) pthread_setconcurrency(2);
24988 #ifdef HAVE_THR_SETCONCURRENCY
24989 /* Set Solaris LWP concurrency to 2 */
24990 thr_setconcurrency(2);
24994 #if HAVE_PTHREADS < 6
24995 pthread_create(&t, pthread_attr_default, task, NULL);
24997 pthread_create(&t, NULL, task, NULL);
25000 /* make sure task runs first */
25003 #elif defined( HAVE_SCHED_YIELD )
25005 #elif defined( HAVE_PTHREAD_YIELD )
25012 rm -f conftest$ac_exeext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25014 (eval $ac_link) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ol_cv_pthread_select_yields=no
25025 echo "$as_me: program exited with status $ac_status" >&5
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 ( exit $ac_status )
25030 ol_cv_pthread_select_yields=yes
25032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25035 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25036 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25038 if test $ol_cv_pthread_select_yields = cross ; then
25039 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25040 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25041 { (exit 1); exit 1; }; }
25044 if test $ol_cv_pthread_select_yields = yes ; then
25045 ol_with_yielding_select=yes
25049 CPPFLAGS="$save_CPPFLAGS"
25052 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25053 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25054 { (exit 1); exit 1; }; }
25058 if test $ol_with_threads = posix ; then
25059 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25060 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25061 { (exit 1); exit 1; }; }
25066 case $ol_with_threads in auto | yes | mach)
25070 for ac_header in mach/cthreads.h cthreads.h
25072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25074 echo "$as_me:$LINENO: checking for $ac_header" >&5
25075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25082 # Is the header compilable?
25083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25091 $ac_includes_default
25092 #include <$ac_header>
25094 rm -f conftest.$ac_objext
25095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25096 (eval $ac_compile) 2>conftest.er1
25098 grep -v '^ *+' conftest.er1 >conftest.err
25100 cat conftest.err >&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } &&
25103 { ac_try='test -z "$ac_c_werror_flag"
25104 || test ! -s conftest.err'
25105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106 (eval $ac_try) 2>&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest.$ac_objext'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25116 ac_header_compiler=yes
25118 echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25121 ac_header_compiler=no
25123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25125 echo "${ECHO_T}$ac_header_compiler" >&6
25127 # Is the header present?
25128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25136 #include <$ac_header>
25138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25141 grep -v '^ *+' conftest.er1 >conftest.err
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } >/dev/null; then
25146 if test -s conftest.err; then
25147 ac_cpp_err=$ac_c_preproc_warn_flag
25148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25155 if test -z "$ac_cpp_err"; then
25156 ac_header_preproc=yes
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ac_header_preproc=no
25163 rm -f conftest.err conftest.$ac_ext
25164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25165 echo "${ECHO_T}$ac_header_preproc" >&6
25167 # So? What about this header?
25168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25174 ac_header_preproc=yes
25177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25191 ## --------------------------------------------- ##
25192 ## Report this to <http://www.openldap.org/its/> ##
25193 ## --------------------------------------------- ##
25196 sed "s/^/$as_me: WARNING: /" >&2
25199 echo "$as_me:$LINENO: checking for $ac_header" >&5
25200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 eval "$as_ac_Header=\$ac_header_preproc"
25206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25211 cat >>confdefs.h <<_ACEOF
25212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25219 if test $ac_cv_header_mach_cthreads_h = yes ; then
25220 ol_with_threads=found
25222 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25223 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25224 if test "${ac_cv_func_cthread_fork+set}" = set; then
25225 echo $ECHO_N "(cached) $ECHO_C" >&6
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25233 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25235 #define cthread_fork innocuous_cthread_fork
25237 /* System header to define __stub macros and hopefully few prototypes,
25238 which can conflict with char cthread_fork (); below.
25239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25240 <limits.h> exists even on freestanding compilers. */
25243 # include <limits.h>
25245 # include <assert.h>
25248 #undef cthread_fork
25250 /* Override any gcc2 internal prototype to avoid an error. */
25255 /* We use char because int might match the return type of a gcc2
25256 builtin and then its argument prototype would still apply. */
25257 char cthread_fork ();
25258 /* The GNU C library defines this for functions which it implements
25259 to always fail with ENOSYS. Some functions are actually named
25260 something starting with __ and the normal name is an alias. */
25261 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25264 char (*f) () = cthread_fork;
25273 return f != cthread_fork;
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280 (eval $ac_link) 2>conftest.er1
25282 grep -v '^ *+' conftest.er1 >conftest.err
25284 cat conftest.err >&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try='test -z "$ac_c_werror_flag"
25288 || test ! -s conftest.err'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_cv_func_cthread_fork=yes
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25305 ac_cv_func_cthread_fork=no
25307 rm -f conftest.err conftest.$ac_objext \
25308 conftest$ac_exeext conftest.$ac_ext
25310 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25311 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25312 if test $ac_cv_func_cthread_fork = yes; then
25313 ol_link_threads=yes
25317 if test $ol_link_threads = no ; then
25318 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25319 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25320 if test "${ol_cv_cthread_all_load+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 LIBS="-all_load $LIBS"
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <mach/cthreads.h>
25337 cthread_fork((void *)0, (void *)0);
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345 (eval $ac_link) 2>conftest.er1
25347 grep -v '^ *+' conftest.er1 >conftest.err
25349 cat conftest.err >&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } &&
25352 { ac_try='test -z "$ac_c_werror_flag"
25353 || test ! -s conftest.err'
25354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25355 (eval $ac_try) 2>&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); }; } &&
25359 { ac_try='test -s conftest$ac_exeext'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; }; then
25365 ol_cv_cthread_all_load=yes
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ol_cv_cthread_all_load=no
25372 rm -f conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
25377 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25378 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25380 if test $ol_cv_cthread_all_load = yes ; then
25381 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25382 ol_link_threads=mach
25383 ol_with_threads=found
25387 elif test $ac_cv_header_cthreads_h = yes ; then
25389 ol_with_threads=found
25392 LIBS="$LIBS -lthreads"
25393 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25394 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25395 if test "${ac_cv_func_cthread_fork+set}" = set; then
25396 echo $ECHO_N "(cached) $ECHO_C" >&6
25398 cat >conftest.$ac_ext <<_ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25406 #define cthread_fork innocuous_cthread_fork
25408 /* System header to define __stub macros and hopefully few prototypes,
25409 which can conflict with char cthread_fork (); below.
25410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25411 <limits.h> exists even on freestanding compilers. */
25414 # include <limits.h>
25416 # include <assert.h>
25419 #undef cthread_fork
25421 /* Override any gcc2 internal prototype to avoid an error. */
25426 /* We use char because int might match the return type of a gcc2
25427 builtin and then its argument prototype would still apply. */
25428 char cthread_fork ();
25429 /* The GNU C library defines this for functions which it implements
25430 to always fail with ENOSYS. Some functions are actually named
25431 something starting with __ and the normal name is an alias. */
25432 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25435 char (*f) () = cthread_fork;
25444 return f != cthread_fork;
25449 rm -f conftest.$ac_objext conftest$ac_exeext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25451 (eval $ac_link) 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } &&
25458 { ac_try='test -z "$ac_c_werror_flag"
25459 || test ! -s conftest.err'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; } &&
25465 { ac_try='test -s conftest$ac_exeext'
25466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467 (eval $ac_try) 2>&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); }; }; then
25471 ac_cv_func_cthread_fork=yes
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_cv_func_cthread_fork=no
25478 rm -f conftest.err conftest.$ac_objext \
25479 conftest$ac_exeext conftest.$ac_ext
25481 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25482 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25483 if test $ac_cv_func_cthread_fork = yes; then
25484 ol_link_threads=yes
25489 if test $ol_link_threads = yes ; then
25490 LTHREAD_LIBS="-lthreads"
25491 ol_link_threads=mach
25492 ol_with_threads=found
25494 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25495 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25496 { (exit 1); exit 1; }; }
25499 elif test $ol_with_threads = mach ; then
25500 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25501 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25502 { (exit 1); exit 1; }; }
25505 if test $ol_link_threads = mach ; then
25507 cat >>confdefs.h <<\_ACEOF
25508 #define HAVE_MACH_CTHREADS 1
25511 elif test $ol_with_threads = found ; then
25512 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25513 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25514 { (exit 1); exit 1; }; }
25519 case $ol_with_threads in auto | yes | pth)
25522 for ac_header in pth.h
25524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25526 echo "$as_me:$LINENO: checking for $ac_header" >&5
25527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25534 # Is the header compilable?
25535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25537 cat >conftest.$ac_ext <<_ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h. */
25543 $ac_includes_default
25544 #include <$ac_header>
25546 rm -f conftest.$ac_objext
25547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25548 (eval $ac_compile) 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } &&
25555 { ac_try='test -z "$ac_c_werror_flag"
25556 || test ! -s conftest.err'
25557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558 (eval $ac_try) 2>&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); }; } &&
25562 { ac_try='test -s conftest.$ac_objext'
25563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564 (eval $ac_try) 2>&5
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; }; then
25568 ac_header_compiler=yes
25570 echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 ac_header_compiler=no
25575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25577 echo "${ECHO_T}$ac_header_compiler" >&6
25579 # Is the header present?
25580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 #include <$ac_header>
25590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25593 grep -v '^ *+' conftest.er1 >conftest.err
25595 cat conftest.err >&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } >/dev/null; then
25598 if test -s conftest.err; then
25599 ac_cpp_err=$ac_c_preproc_warn_flag
25600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25607 if test -z "$ac_cpp_err"; then
25608 ac_header_preproc=yes
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ac_header_preproc=no
25615 rm -f conftest.err conftest.$ac_ext
25616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25617 echo "${ECHO_T}$ac_header_preproc" >&6
25619 # So? What about this header?
25620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25626 ac_header_preproc=yes
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25643 ## --------------------------------------------- ##
25644 ## Report this to <http://www.openldap.org/its/> ##
25645 ## --------------------------------------------- ##
25648 sed "s/^/$as_me: WARNING: /" >&2
25651 echo "$as_me:$LINENO: checking for $ac_header" >&5
25652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25656 eval "$as_ac_Header=\$ac_header_preproc"
25658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25672 if test $ac_cv_header_pth_h = yes ; then
25673 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25674 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25675 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25676 echo $ECHO_N "(cached) $ECHO_C" >&6
25678 ac_check_lib_save_LIBS=$LIBS
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25687 /* Override any gcc2 internal prototype to avoid an error. */
25691 /* We use char because int might match the return type of a gcc2
25692 builtin and then its argument prototype would still apply. */
25693 char pth_version ();
25702 rm -f conftest.$ac_objext conftest$ac_exeext
25703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25704 (eval $ac_link) 2>conftest.er1
25706 grep -v '^ *+' conftest.er1 >conftest.err
25708 cat conftest.err >&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } &&
25711 { ac_try='test -z "$ac_c_werror_flag"
25712 || test ! -s conftest.err'
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; } &&
25718 { ac_try='test -s conftest$ac_exeext'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; }; then
25724 ac_cv_lib_pth_pth_version=yes
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ac_cv_lib_pth_pth_version=no
25731 rm -f conftest.err conftest.$ac_objext \
25732 conftest$ac_exeext conftest.$ac_ext
25733 LIBS=$ac_check_lib_save_LIBS
25735 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25736 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25737 if test $ac_cv_lib_pth_pth_version = yes; then
25744 if test $have_pth = yes ; then
25746 cat >>confdefs.h <<\_ACEOF
25747 #define HAVE_GNU_PTH 1
25750 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25751 ol_link_threads=pth
25752 ol_with_threads=found
25754 if test $ol_with_yielding_select = auto ; then
25755 ol_with_yielding_select=yes
25762 case $ol_with_threads in auto | yes | lwp)
25766 for ac_header in thread.h synch.h
25768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25770 echo "$as_me:$LINENO: checking for $ac_header" >&5
25771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25773 echo $ECHO_N "(cached) $ECHO_C" >&6
25775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25778 # Is the header compilable?
25779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25787 $ac_includes_default
25788 #include <$ac_header>
25790 rm -f conftest.$ac_objext
25791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25792 (eval $ac_compile) 2>conftest.er1
25794 grep -v '^ *+' conftest.er1 >conftest.err
25796 cat conftest.err >&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } &&
25799 { ac_try='test -z "$ac_c_werror_flag"
25800 || test ! -s conftest.err'
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest.$ac_objext'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_header_compiler=yes
25814 echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25817 ac_header_compiler=no
25819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25821 echo "${ECHO_T}$ac_header_compiler" >&6
25823 # Is the header present?
25824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 #include <$ac_header>
25834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25837 grep -v '^ *+' conftest.er1 >conftest.err
25839 cat conftest.err >&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } >/dev/null; then
25842 if test -s conftest.err; then
25843 ac_cpp_err=$ac_c_preproc_warn_flag
25844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25851 if test -z "$ac_cpp_err"; then
25852 ac_header_preproc=yes
25854 echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25857 ac_header_preproc=no
25859 rm -f conftest.err conftest.$ac_ext
25860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25861 echo "${ECHO_T}$ac_header_preproc" >&6
25863 # So? What about this header?
25864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25870 ac_header_preproc=yes
25873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25887 ## --------------------------------------------- ##
25888 ## Report this to <http://www.openldap.org/its/> ##
25889 ## --------------------------------------------- ##
25892 sed "s/^/$as_me: WARNING: /" >&2
25895 echo "$as_me:$LINENO: checking for $ac_header" >&5
25896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25900 eval "$as_ac_Header=\$ac_header_preproc"
25902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25907 cat >>confdefs.h <<_ACEOF
25908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25915 if test $ac_cv_header_thread_h = yes &&
25916 test $ac_cv_header_synch_h = yes ; then
25917 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25918 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25919 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 ac_check_lib_save_LIBS=$LIBS
25923 LIBS="-lthread $LIBS"
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25931 /* Override any gcc2 internal prototype to avoid an error. */
25935 /* We use char because int might match the return type of a gcc2
25936 builtin and then its argument prototype would still apply. */
25937 char thr_create ();
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25948 (eval $ac_link) 2>conftest.er1
25950 grep -v '^ *+' conftest.er1 >conftest.err
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
25955 { ac_try='test -z "$ac_c_werror_flag"
25956 || test ! -s conftest.err'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; } &&
25962 { ac_try='test -s conftest$ac_exeext'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; }; then
25968 ac_cv_lib_thread_thr_create=yes
25970 echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25973 ac_cv_lib_thread_thr_create=no
25975 rm -f conftest.err conftest.$ac_objext \
25976 conftest$ac_exeext conftest.$ac_ext
25977 LIBS=$ac_check_lib_save_LIBS
25979 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25980 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25981 if test $ac_cv_lib_thread_thr_create = yes; then
25988 if test $have_thr = yes ; then
25990 cat >>confdefs.h <<\_ACEOF
25994 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25995 ol_link_threads=thr
25997 if test $ol_with_yielding_select = auto ; then
25998 ol_with_yielding_select=yes
26004 thr_setconcurrency \
26005 thr_getconcurrency \
26008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26009 echo "$as_me:$LINENO: checking for $ac_func" >&5
26010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26011 if eval "test \"\${$as_ac_var+set}\" = set"; then
26012 echo $ECHO_N "(cached) $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26022 #define $ac_func innocuous_$ac_func
26024 /* System header to define __stub macros and hopefully few prototypes,
26025 which can conflict with char $ac_func (); below.
26026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26027 <limits.h> exists even on freestanding compilers. */
26030 # include <limits.h>
26032 # include <assert.h>
26037 /* Override any gcc2 internal prototype to avoid an error. */
26042 /* We use char because int might match the return type of a gcc2
26043 builtin and then its argument prototype would still apply. */
26045 /* The GNU C library defines this for functions which it implements
26046 to always fail with ENOSYS. Some functions are actually named
26047 something starting with __ and the normal name is an alias. */
26048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26051 char (*f) () = $ac_func;
26060 return f != $ac_func;
26065 rm -f conftest.$ac_objext conftest$ac_exeext
26066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26067 (eval $ac_link) 2>conftest.er1
26069 grep -v '^ *+' conftest.er1 >conftest.err
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
26074 { ac_try='test -z "$ac_c_werror_flag"
26075 || test ! -s conftest.err'
26076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077 (eval $ac_try) 2>&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); }; } &&
26081 { ac_try='test -s conftest$ac_exeext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 eval "$as_ac_var=yes"
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 eval "$as_ac_var=no"
26094 rm -f conftest.err conftest.$ac_objext \
26095 conftest$ac_exeext conftest.$ac_ext
26097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26099 if test `eval echo '${'$as_ac_var'}'` = yes; then
26100 cat >>confdefs.h <<_ACEOF
26101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26111 for ac_header in lwp/lwp.h
26113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26115 echo "$as_me:$LINENO: checking for $ac_header" >&5
26116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26123 # Is the header compilable?
26124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26132 $ac_includes_default
26133 #include <$ac_header>
26135 rm -f conftest.$ac_objext
26136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26137 (eval $ac_compile) 2>conftest.er1
26139 grep -v '^ *+' conftest.er1 >conftest.err
26141 cat conftest.err >&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } &&
26144 { ac_try='test -z "$ac_c_werror_flag"
26145 || test ! -s conftest.err'
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest.$ac_objext'
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157 ac_header_compiler=yes
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26162 ac_header_compiler=no
26164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26166 echo "${ECHO_T}$ac_header_compiler" >&6
26168 # Is the header present?
26169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26177 #include <$ac_header>
26179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26182 grep -v '^ *+' conftest.er1 >conftest.err
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } >/dev/null; then
26187 if test -s conftest.err; then
26188 ac_cpp_err=$ac_c_preproc_warn_flag
26189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26196 if test -z "$ac_cpp_err"; then
26197 ac_header_preproc=yes
26199 echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26202 ac_header_preproc=no
26204 rm -f conftest.err conftest.$ac_ext
26205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26206 echo "${ECHO_T}$ac_header_preproc" >&6
26208 # So? What about this header?
26209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26215 ac_header_preproc=yes
26218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26232 ## --------------------------------------------- ##
26233 ## Report this to <http://www.openldap.org/its/> ##
26234 ## --------------------------------------------- ##
26237 sed "s/^/$as_me: WARNING: /" >&2
26240 echo "$as_me:$LINENO: checking for $ac_header" >&5
26241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 eval "$as_ac_Header=\$ac_header_preproc"
26247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26252 cat >>confdefs.h <<_ACEOF
26253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26260 if test $ac_cv_header_lwp_lwp_h = yes ; then
26261 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26262 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26263 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26264 echo $ECHO_N "(cached) $ECHO_C" >&6
26266 ac_check_lib_save_LIBS=$LIBS
26268 cat >conftest.$ac_ext <<_ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h. */
26275 /* Override any gcc2 internal prototype to avoid an error. */
26279 /* We use char because int might match the return type of a gcc2
26280 builtin and then its argument prototype would still apply. */
26281 char lwp_create ();
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26292 (eval $ac_link) 2>conftest.er1
26294 grep -v '^ *+' conftest.er1 >conftest.err
26296 cat conftest.err >&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); } &&
26299 { ac_try='test -z "$ac_c_werror_flag"
26300 || test ! -s conftest.err'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; } &&
26306 { ac_try='test -s conftest$ac_exeext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 ac_cv_lib_lwp_lwp_create=yes
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_cv_lib_lwp_lwp_create=no
26319 rm -f conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
26321 LIBS=$ac_check_lib_save_LIBS
26323 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26324 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26325 if test $ac_cv_lib_lwp_lwp_create = yes; then
26332 if test $have_lwp = yes ; then
26334 cat >>confdefs.h <<\_ACEOF
26338 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26339 ol_link_threads=lwp
26341 if test $ol_with_yielding_select = auto ; then
26342 ol_with_yielding_select=no
26349 if test $ol_with_yielding_select = yes ; then
26351 cat >>confdefs.h <<\_ACEOF
26352 #define HAVE_YIELDING_SELECT 1
26357 if test $ol_with_threads = manual ; then
26358 ol_link_threads=yes
26360 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26361 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26365 for ac_header in pthread.h sched.h
26367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26369 echo "$as_me:$LINENO: checking for $ac_header" >&5
26370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26377 # Is the header compilable?
26378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26380 cat >conftest.$ac_ext <<_ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h. */
26386 $ac_includes_default
26387 #include <$ac_header>
26389 rm -f conftest.$ac_objext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391 (eval $ac_compile) 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
26398 { ac_try='test -z "$ac_c_werror_flag"
26399 || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest.$ac_objext'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 ac_header_compiler=yes
26413 echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26416 ac_header_compiler=no
26418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26420 echo "${ECHO_T}$ac_header_compiler" >&6
26422 # Is the header present?
26423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26425 cat >conftest.$ac_ext <<_ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 #include <$ac_header>
26433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } >/dev/null; then
26441 if test -s conftest.err; then
26442 ac_cpp_err=$ac_c_preproc_warn_flag
26443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26450 if test -z "$ac_cpp_err"; then
26451 ac_header_preproc=yes
26453 echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26456 ac_header_preproc=no
26458 rm -f conftest.err conftest.$ac_ext
26459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26460 echo "${ECHO_T}$ac_header_preproc" >&6
26462 # So? What about this header?
26463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26469 ac_header_preproc=yes
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26486 ## --------------------------------------------- ##
26487 ## Report this to <http://www.openldap.org/its/> ##
26488 ## --------------------------------------------- ##
26491 sed "s/^/$as_me: WARNING: /" >&2
26494 echo "$as_me:$LINENO: checking for $ac_header" >&5
26495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 eval "$as_ac_Header=\$ac_header_preproc"
26501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26506 cat >>confdefs.h <<_ACEOF
26507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26516 for ac_func in sched_yield pthread_yield
26518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26519 echo "$as_me:$LINENO: checking for $ac_func" >&5
26520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26521 if eval "test \"\${$as_ac_var+set}\" = set"; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26532 #define $ac_func innocuous_$ac_func
26534 /* System header to define __stub macros and hopefully few prototypes,
26535 which can conflict with char $ac_func (); below.
26536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26537 <limits.h> exists even on freestanding compilers. */
26540 # include <limits.h>
26542 # include <assert.h>
26547 /* Override any gcc2 internal prototype to avoid an error. */
26552 /* We use char because int might match the return type of a gcc2
26553 builtin and then its argument prototype would still apply. */
26555 /* The GNU C library defines this for functions which it implements
26556 to always fail with ENOSYS. Some functions are actually named
26557 something starting with __ and the normal name is an alias. */
26558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26561 char (*f) () = $ac_func;
26570 return f != $ac_func;
26575 rm -f conftest.$ac_objext conftest$ac_exeext
26576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26577 (eval $ac_link) 2>conftest.er1
26579 grep -v '^ *+' conftest.er1 >conftest.err
26581 cat conftest.err >&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); } &&
26584 { ac_try='test -z "$ac_c_werror_flag"
26585 || test ! -s conftest.err'
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; } &&
26591 { ac_try='test -s conftest$ac_exeext'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 eval "$as_ac_var=yes"
26599 echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26602 eval "$as_ac_var=no"
26604 rm -f conftest.err conftest.$ac_objext \
26605 conftest$ac_exeext conftest.$ac_ext
26607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26609 if test `eval echo '${'$as_ac_var'}'` = yes; then
26610 cat >>confdefs.h <<_ACEOF
26611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26618 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26619 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26620 if test "${ol_cv_header_linux_threads+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26623 cat >conftest.$ac_ext <<_ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26629 #include <pthread.h>
26631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26632 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26633 ol_cv_header_linux_threads=yes
26635 ol_cv_header_linux_threads=no
26641 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26642 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26643 if test $ol_cv_header_linux_threads = yes; then
26645 cat >>confdefs.h <<\_ACEOF
26646 #define HAVE_LINUX_THREADS 1
26653 for ac_header in mach/cthreads.h
26655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26657 echo "$as_me:$LINENO: checking for $ac_header" >&5
26658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26665 # Is the header compilable?
26666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26668 cat >conftest.$ac_ext <<_ACEOF
26671 cat confdefs.h >>conftest.$ac_ext
26672 cat >>conftest.$ac_ext <<_ACEOF
26673 /* end confdefs.h. */
26674 $ac_includes_default
26675 #include <$ac_header>
26677 rm -f conftest.$ac_objext
26678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26679 (eval $ac_compile) 2>conftest.er1
26681 grep -v '^ *+' conftest.er1 >conftest.err
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } &&
26686 { ac_try='test -z "$ac_c_werror_flag"
26687 || test ! -s conftest.err'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; } &&
26693 { ac_try='test -s conftest.$ac_objext'
26694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26695 (eval $ac_try) 2>&5
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); }; }; then
26699 ac_header_compiler=yes
26701 echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26704 ac_header_compiler=no
26706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26708 echo "${ECHO_T}$ac_header_compiler" >&6
26710 # Is the header present?
26711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26713 cat >conftest.$ac_ext <<_ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h. */
26719 #include <$ac_header>
26721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26724 grep -v '^ *+' conftest.er1 >conftest.err
26726 cat conftest.err >&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } >/dev/null; then
26729 if test -s conftest.err; then
26730 ac_cpp_err=$ac_c_preproc_warn_flag
26731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26738 if test -z "$ac_cpp_err"; then
26739 ac_header_preproc=yes
26741 echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26744 ac_header_preproc=no
26746 rm -f conftest.err conftest.$ac_ext
26747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26748 echo "${ECHO_T}$ac_header_preproc" >&6
26750 # So? What about this header?
26751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26757 ac_header_preproc=yes
26760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26774 ## --------------------------------------------- ##
26775 ## Report this to <http://www.openldap.org/its/> ##
26776 ## --------------------------------------------- ##
26779 sed "s/^/$as_me: WARNING: /" >&2
26782 echo "$as_me:$LINENO: checking for $ac_header" >&5
26783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 eval "$as_ac_Header=\$ac_header_preproc"
26789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26803 for ac_header in lwp/lwp.h
26805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26807 echo "$as_me:$LINENO: checking for $ac_header" >&5
26808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26815 # Is the header compilable?
26816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26818 cat >conftest.$ac_ext <<_ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h. */
26824 $ac_includes_default
26825 #include <$ac_header>
26827 rm -f conftest.$ac_objext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26829 (eval $ac_compile) 2>conftest.er1
26831 grep -v '^ *+' conftest.er1 >conftest.err
26833 cat conftest.err >&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } &&
26836 { ac_try='test -z "$ac_c_werror_flag"
26837 || test ! -s conftest.err'
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; } &&
26843 { ac_try='test -s conftest.$ac_objext'
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; }; then
26849 ac_header_compiler=yes
26851 echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26854 ac_header_compiler=no
26856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26858 echo "${ECHO_T}$ac_header_compiler" >&6
26860 # Is the header present?
26861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26863 cat >conftest.$ac_ext <<_ACEOF
26866 cat confdefs.h >>conftest.$ac_ext
26867 cat >>conftest.$ac_ext <<_ACEOF
26868 /* end confdefs.h. */
26869 #include <$ac_header>
26871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26874 grep -v '^ *+' conftest.er1 >conftest.err
26876 cat conftest.err >&5
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); } >/dev/null; then
26879 if test -s conftest.err; then
26880 ac_cpp_err=$ac_c_preproc_warn_flag
26881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26888 if test -z "$ac_cpp_err"; then
26889 ac_header_preproc=yes
26891 echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26894 ac_header_preproc=no
26896 rm -f conftest.err conftest.$ac_ext
26897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26898 echo "${ECHO_T}$ac_header_preproc" >&6
26900 # So? What about this header?
26901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26907 ac_header_preproc=yes
26910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26924 ## --------------------------------------------- ##
26925 ## Report this to <http://www.openldap.org/its/> ##
26926 ## --------------------------------------------- ##
26929 sed "s/^/$as_me: WARNING: /" >&2
26932 echo "$as_me:$LINENO: checking for $ac_header" >&5
26933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935 echo $ECHO_N "(cached) $ECHO_C" >&6
26937 eval "$as_ac_Header=\$ac_header_preproc"
26939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26944 cat >>confdefs.h <<_ACEOF
26945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26954 for ac_header in thread.h synch.h
26956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26958 echo "$as_me:$LINENO: checking for $ac_header" >&5
26959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26961 echo $ECHO_N "(cached) $ECHO_C" >&6
26963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26966 # Is the header compilable?
26967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26969 cat >conftest.$ac_ext <<_ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 $ac_includes_default
26976 #include <$ac_header>
26978 rm -f conftest.$ac_objext
26979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26980 (eval $ac_compile) 2>conftest.er1
26982 grep -v '^ *+' conftest.er1 >conftest.err
26984 cat conftest.err >&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } &&
26987 { ac_try='test -z "$ac_c_werror_flag"
26988 || test ! -s conftest.err'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; } &&
26994 { ac_try='test -s conftest.$ac_objext'
26995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996 (eval $ac_try) 2>&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
27000 ac_header_compiler=yes
27002 echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27005 ac_header_compiler=no
27007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27009 echo "${ECHO_T}$ac_header_compiler" >&6
27011 # Is the header present?
27012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27014 cat >conftest.$ac_ext <<_ACEOF
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h. */
27020 #include <$ac_header>
27022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27025 grep -v '^ *+' conftest.er1 >conftest.err
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } >/dev/null; then
27030 if test -s conftest.err; then
27031 ac_cpp_err=$ac_c_preproc_warn_flag
27032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27039 if test -z "$ac_cpp_err"; then
27040 ac_header_preproc=yes
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27045 ac_header_preproc=no
27047 rm -f conftest.err conftest.$ac_ext
27048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27049 echo "${ECHO_T}$ac_header_preproc" >&6
27051 # So? What about this header?
27052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27058 ac_header_preproc=yes
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27075 ## --------------------------------------------- ##
27076 ## Report this to <http://www.openldap.org/its/> ##
27077 ## --------------------------------------------- ##
27080 sed "s/^/$as_me: WARNING: /" >&2
27083 echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 eval "$as_ac_Header=\$ac_header_preproc"
27090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27095 cat >>confdefs.h <<_ACEOF
27096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27105 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27106 cat >>confdefs.h <<\_ACEOF
27107 #define REENTRANT 1
27110 cat >>confdefs.h <<\_ACEOF
27111 #define _REENTRANT 1
27114 cat >>confdefs.h <<\_ACEOF
27115 #define THREAD_SAFE 1
27118 cat >>confdefs.h <<\_ACEOF
27119 #define _THREAD_SAFE 1
27122 cat >>confdefs.h <<\_ACEOF
27123 #define THREADSAFE 1
27126 cat >>confdefs.h <<\_ACEOF
27127 #define _THREADSAFE 1
27130 cat >>confdefs.h <<\_ACEOF
27131 #define _SGI_MP_SOURCE 1
27135 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27136 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27137 if test "${ol_cv_errno_thread_specific+set}" = set; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
27141 cat >conftest.$ac_ext <<_ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h. */
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27158 (eval $ac_link) 2>conftest.er1
27160 grep -v '^ *+' conftest.er1 >conftest.err
27162 cat conftest.err >&5
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); } &&
27165 { ac_try='test -z "$ac_c_werror_flag"
27166 || test ! -s conftest.err'
27167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27168 (eval $ac_try) 2>&5
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); }; } &&
27172 { ac_try='test -s conftest$ac_exeext'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; }; then
27178 ol_cv_errno_thread_specific=yes
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27183 ol_cv_errno_thread_specific=no
27185 rm -f conftest.err conftest.$ac_objext \
27186 conftest$ac_exeext conftest.$ac_ext
27189 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27190 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27192 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27193 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27194 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27215 (eval $ac_link) 2>conftest.er1
27217 grep -v '^ *+' conftest.er1 >conftest.err
27219 cat conftest.err >&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } &&
27222 { ac_try='test -z "$ac_c_werror_flag"
27223 || test ! -s conftest.err'
27224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225 (eval $ac_try) 2>&5
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); }; } &&
27229 { ac_try='test -s conftest$ac_exeext'
27230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231 (eval $ac_try) 2>&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; }; then
27235 ol_cv_h_errno_thread_specific=yes
27237 echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27240 ol_cv_h_errno_thread_specific=no
27242 rm -f conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext conftest.$ac_ext
27246 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27247 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27249 if test $ol_cv_errno_thread_specific != yes ||
27250 test $ol_cv_h_errno_thread_specific != yes ; then
27251 LIBS="$LTHREAD_LIBS $LIBS"
27257 if test $ol_link_threads = no ; then
27258 if test $ol_with_threads = yes ; then
27259 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27260 echo "$as_me: error: no suitable thread support" >&2;}
27261 { (exit 1); exit 1; }; }
27264 if test $ol_with_threads = auto ; then
27265 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27266 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27271 cat >>confdefs.h <<\_ACEOF
27272 #define NO_THREADS 1
27281 if test $ol_link_threads != no ; then
27283 cat >>confdefs.h <<\_ACEOF
27284 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27294 gethostbyname_r gethostbyaddr_r \
27297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27298 echo "$as_me:$LINENO: checking for $ac_func" >&5
27299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27300 if eval "test \"\${$as_ac_var+set}\" = set"; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27303 cat >conftest.$ac_ext <<_ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h. */
27309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27311 #define $ac_func innocuous_$ac_func
27313 /* System header to define __stub macros and hopefully few prototypes,
27314 which can conflict with char $ac_func (); below.
27315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27316 <limits.h> exists even on freestanding compilers. */
27319 # include <limits.h>
27321 # include <assert.h>
27326 /* Override any gcc2 internal prototype to avoid an error. */
27331 /* We use char because int might match the return type of a gcc2
27332 builtin and then its argument prototype would still apply. */
27334 /* The GNU C library defines this for functions which it implements
27335 to always fail with ENOSYS. Some functions are actually named
27336 something starting with __ and the normal name is an alias. */
27337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27340 char (*f) () = $ac_func;
27349 return f != $ac_func;
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27356 (eval $ac_link) 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
27363 { ac_try='test -z "$ac_c_werror_flag"
27364 || test ! -s conftest.err'
27365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366 (eval $ac_try) 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; } &&
27370 { ac_try='test -s conftest$ac_exeext'
27371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 eval "$as_ac_var=yes"
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 eval "$as_ac_var=no"
27383 rm -f conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27388 if test `eval echo '${'$as_ac_var'}'` = yes; then
27389 cat >>confdefs.h <<_ACEOF
27390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27397 if test "$ac_cv_func_ctime_r" = no ; then
27398 ol_cv_func_ctime_r_nargs=0
27400 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27401 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27402 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
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,32);
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_nargs3=yes
27444 echo "$as_me: failed program was:" >&5
27445 sed 's/^/| /' conftest.$ac_ext >&5
27447 ol_cv_func_ctime_r_nargs3=no
27449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27451 cat >conftest.$ac_ext <<_ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27461 time_t ti; char *buffer; ctime_r(&ti,buffer);
27466 rm -f conftest.$ac_objext
27467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27468 (eval $ac_compile) 2>conftest.er1
27470 grep -v '^ *+' conftest.er1 >conftest.err
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag"
27476 || test ! -s conftest.err'
27477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478 (eval $ac_try) 2>&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; } &&
27482 { ac_try='test -s conftest.$ac_objext'
27483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484 (eval $ac_try) 2>&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; }; then
27488 ol_cv_func_ctime_r_nargs2=yes
27490 echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27493 ol_cv_func_ctime_r_nargs2=no
27495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27497 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27498 test $ol_cv_func_ctime_r_nargs2 = no ; then
27500 ol_cv_func_ctime_r_nargs=3
27502 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27503 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27505 ol_cv_func_ctime_r_nargs=2
27508 ol_cv_func_ctime_r_nargs=0
27512 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27513 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27515 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27517 cat >>confdefs.h <<_ACEOF
27518 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27525 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27526 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27527 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27528 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27529 echo $ECHO_N "(cached) $ECHO_C" >&6
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 #include <sys/types.h>
27538 #include <sys/socket.h>
27539 #include <netinet/in.h>
27541 #define BUFSIZE (sizeof(struct hostent)+10)
27545 struct hostent hent; char buffer[BUFSIZE];
27546 int bufsize=BUFSIZE;int h_errno;
27547 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27548 buffer, bufsize, &h_errno);
27553 rm -f conftest.$ac_objext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27555 (eval $ac_compile) 2>conftest.er1
27557 grep -v '^ *+' conftest.er1 >conftest.err
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag"
27563 || test ! -s conftest.err'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest.$ac_objext'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 ol_cv_func_gethostbyname_r_nargs5=yes
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 ol_cv_func_gethostbyname_r_nargs5=no
27582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27584 cat >conftest.$ac_ext <<_ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27590 #include <sys/types.h>
27591 #include <sys/socket.h>
27592 #include <netinet/in.h>
27594 #define BUFSIZE (sizeof(struct hostent)+10)
27598 struct hostent hent;struct hostent *rhent;
27599 char buffer[BUFSIZE];
27600 int bufsize=BUFSIZE;int h_errno;
27601 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27607 rm -f conftest.$ac_objext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27609 (eval $ac_compile) 2>conftest.er1
27611 grep -v '^ *+' conftest.er1 >conftest.err
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest.$ac_objext'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
27629 ol_cv_func_gethostbyname_r_nargs6=yes
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27634 ol_cv_func_gethostbyname_r_nargs6=no
27636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27638 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27639 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27641 ol_cv_func_gethostbyname_r_nargs=5
27643 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27644 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27646 ol_cv_func_gethostbyname_r_nargs=6
27649 ol_cv_func_gethostbyname_r_nargs=0
27653 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27654 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27655 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27657 cat >>confdefs.h <<_ACEOF
27658 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27664 ol_cv_func_gethostbyname_r_nargs=0
27667 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27668 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27669 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27670 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27673 cat >conftest.$ac_ext <<_ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27679 #include <sys/types.h>
27680 #include <sys/socket.h>
27681 #include <netinet/in.h>
27683 #define BUFSIZE (sizeof(struct hostent)+10)
27687 struct hostent hent; char buffer[BUFSIZE];
27688 struct in_addr add;
27689 size_t alen=sizeof(struct in_addr);
27690 int bufsize=BUFSIZE;int h_errno;
27691 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27692 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27697 rm -f conftest.$ac_objext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699 (eval $ac_compile) 2>conftest.er1
27701 grep -v '^ *+' conftest.er1 >conftest.err
27703 cat conftest.err >&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } &&
27706 { ac_try='test -z "$ac_c_werror_flag"
27707 || test ! -s conftest.err'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest.$ac_objext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 ol_cv_func_gethostbyaddr_r_nargs7=yes
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ol_cv_func_gethostbyaddr_r_nargs7=no
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27728 cat >conftest.$ac_ext <<_ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h. */
27734 #include <sys/types.h>
27735 #include <sys/socket.h>
27736 #include <netinet/in.h>
27738 #define BUFSIZE (sizeof(struct hostent)+10)
27742 struct hostent hent;
27743 struct hostent *rhent; char buffer[BUFSIZE];
27744 struct in_addr add;
27745 size_t alen=sizeof(struct in_addr);
27746 int bufsize=BUFSIZE;int h_errno;
27747 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27748 alen, AF_INET, &hent, buffer, bufsize,
27754 rm -f conftest.$ac_objext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27756 (eval $ac_compile) 2>conftest.er1
27758 grep -v '^ *+' conftest.er1 >conftest.err
27760 cat conftest.err >&5
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } &&
27763 { ac_try='test -z "$ac_c_werror_flag"
27764 || test ! -s conftest.err'
27765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766 (eval $ac_try) 2>&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest.$ac_objext'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 ol_cv_func_gethostbyaddr_r_nargs8=yes
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ol_cv_func_gethostbyaddr_r_nargs8=no
27783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27785 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27786 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27788 ol_cv_func_gethostbyaddr_r_nargs=7
27790 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27791 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27793 ol_cv_func_gethostbyaddr_r_nargs=8
27796 ol_cv_func_gethostbyaddr_r_nargs=0
27800 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27801 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27802 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27804 cat >>confdefs.h <<_ACEOF
27805 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27811 ol_cv_func_gethostbyaddr_r_nargs=0
27816 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27818 if test $ol_enable_ldbm_api = bcompat; then \
27821 for ac_header in db_185.h db.h
27823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27825 echo "$as_me:$LINENO: checking for $ac_header" >&5
27826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27833 # Is the header compilable?
27834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 $ac_includes_default
27843 #include <$ac_header>
27845 rm -f conftest.$ac_objext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27847 (eval $ac_compile) 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
27854 { ac_try='test -z "$ac_c_werror_flag"
27855 || test ! -s conftest.err'
27856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857 (eval $ac_try) 2>&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); }; } &&
27861 { ac_try='test -s conftest.$ac_objext'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; }; then
27867 ac_header_compiler=yes
27869 echo "$as_me: failed program was:" >&5
27870 sed 's/^/| /' conftest.$ac_ext >&5
27872 ac_header_compiler=no
27874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27876 echo "${ECHO_T}$ac_header_compiler" >&6
27878 # Is the header present?
27879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 #include <$ac_header>
27889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27892 grep -v '^ *+' conftest.er1 >conftest.err
27894 cat conftest.err >&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } >/dev/null; then
27897 if test -s conftest.err; then
27898 ac_cpp_err=$ac_c_preproc_warn_flag
27899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27906 if test -z "$ac_cpp_err"; then
27907 ac_header_preproc=yes
27909 echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27912 ac_header_preproc=no
27914 rm -f conftest.err conftest.$ac_ext
27915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27916 echo "${ECHO_T}$ac_header_preproc" >&6
27918 # So? What about this header?
27919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27925 ac_header_preproc=yes
27928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27942 ## --------------------------------------------- ##
27943 ## Report this to <http://www.openldap.org/its/> ##
27944 ## --------------------------------------------- ##
27947 sed "s/^/$as_me: WARNING: /" >&2
27950 echo "$as_me:$LINENO: checking for $ac_header" >&5
27951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27953 echo $ECHO_N "(cached) $ECHO_C" >&6
27955 eval "$as_ac_Header=\$ac_header_preproc"
27957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27962 cat >>confdefs.h <<_ACEOF
27963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27970 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27971 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27972 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27973 if test "${ol_cv_header_db1+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27985 # include <db_185.h>
27990 /* this check could be improved */
27991 #ifndef DB_VERSION_MAJOR
27992 # define DB_VERSION_MAJOR 1
27995 #if DB_VERSION_MAJOR == 1
28000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28001 $EGREP "__db_version_1" >/dev/null 2>&1; then
28002 ol_cv_header_db1=yes
28004 ol_cv_header_db1=no
28009 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
28010 echo "${ECHO_T}$ol_cv_header_db1" >&6
28012 if test $ol_cv_header_db1 = yes ; then
28015 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28016 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28017 if test "${ol_cv_bdb_major+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 if test $ol_cv_bdb_major = 0 ; then
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28031 #ifndef DB_VERSION_MAJOR
28032 # define DB_VERSION_MAJOR 1
28034 #if DB_VERSION_MAJOR == 4
28039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28040 $EGREP "__db_version" >/dev/null 2>&1; then
28048 if test $ol_cv_bdb_major = 0 ; then
28049 cat >conftest.$ac_ext <<_ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28057 #ifndef DB_VERSION_MAJOR
28058 # define DB_VERSION_MAJOR 1
28060 #if DB_VERSION_MAJOR == 3
28065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28066 $EGREP "__db_version" >/dev/null 2>&1; then
28074 if test $ol_cv_bdb_major = 0 ; then
28075 cat >conftest.$ac_ext <<_ACEOF
28078 cat confdefs.h >>conftest.$ac_ext
28079 cat >>conftest.$ac_ext <<_ACEOF
28080 /* end confdefs.h. */
28083 #ifndef DB_VERSION_MAJOR
28084 # define DB_VERSION_MAJOR 1
28086 #if DB_VERSION_MAJOR == 2
28091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28092 $EGREP "__db_version" >/dev/null 2>&1; then
28100 if test $ol_cv_bdb_major = 0 ; then
28101 cat >conftest.$ac_ext <<_ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h. */
28109 #ifndef DB_VERSION_MAJOR
28110 # define DB_VERSION_MAJOR 1
28112 #if DB_VERSION_MAJOR == 1
28117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28118 $EGREP "__db_version" >/dev/null 2>&1; then
28127 if test $ol_cv_bdb_major = 0 ; then
28128 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28129 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28130 { (exit 1); exit 1; }; }
28134 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28135 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28137 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28138 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28139 if test "${ol_cv_bdb_minor+set}" = set; then
28140 echo $ECHO_N "(cached) $ECHO_C" >&6
28144 if test $ol_cv_bdb_minor = 0 ; then
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28153 #ifndef DB_VERSION_MINOR
28154 # define DB_VERSION_MINOR 0
28156 #if DB_VERSION_MINOR == 9
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162 $EGREP "__db_version" >/dev/null 2>&1; then
28170 if test $ol_cv_bdb_minor = 0 ; then
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28179 #ifndef DB_VERSION_MINOR
28180 # define DB_VERSION_MINOR 0
28182 #if DB_VERSION_MINOR == 8
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188 $EGREP "__db_version" >/dev/null 2>&1; then
28196 if test $ol_cv_bdb_minor = 0 ; then
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28205 #ifndef DB_VERSION_MINOR
28206 # define DB_VERSION_MINOR 0
28208 #if DB_VERSION_MINOR == 7
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214 $EGREP "__db_version" >/dev/null 2>&1; then
28222 if test $ol_cv_bdb_minor = 0 ; then
28223 cat >conftest.$ac_ext <<_ACEOF
28226 cat confdefs.h >>conftest.$ac_ext
28227 cat >>conftest.$ac_ext <<_ACEOF
28228 /* end confdefs.h. */
28231 #ifndef DB_VERSION_MINOR
28232 # define DB_VERSION_MINOR 0
28234 #if DB_VERSION_MINOR == 6
28239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28240 $EGREP "__db_version" >/dev/null 2>&1; then
28248 if test $ol_cv_bdb_minor = 0 ; then
28249 cat >conftest.$ac_ext <<_ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28257 #ifndef DB_VERSION_MINOR
28258 # define DB_VERSION_MINOR 0
28260 #if DB_VERSION_MINOR == 5
28265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266 $EGREP "__db_version" >/dev/null 2>&1; then
28274 if test $ol_cv_bdb_minor = 0 ; then
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28283 #ifndef DB_VERSION_MINOR
28284 # define DB_VERSION_MINOR 0
28286 #if DB_VERSION_MINOR == 4
28291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28292 $EGREP "__db_version" >/dev/null 2>&1; then
28300 if test $ol_cv_bdb_minor = 0 ; then
28301 cat >conftest.$ac_ext <<_ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h. */
28309 #ifndef DB_VERSION_MINOR
28310 # define DB_VERSION_MINOR 0
28312 #if DB_VERSION_MINOR == 3
28317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28318 $EGREP "__db_version" >/dev/null 2>&1; then
28326 if test $ol_cv_bdb_minor = 0 ; then
28327 cat >conftest.$ac_ext <<_ACEOF
28330 cat confdefs.h >>conftest.$ac_ext
28331 cat >>conftest.$ac_ext <<_ACEOF
28332 /* end confdefs.h. */
28335 #ifndef DB_VERSION_MINOR
28336 # define DB_VERSION_MINOR 0
28338 #if DB_VERSION_MINOR == 2
28343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28344 $EGREP "__db_version" >/dev/null 2>&1; then
28352 if test $ol_cv_bdb_minor = 0 ; then
28353 cat >conftest.$ac_ext <<_ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h. */
28361 #ifndef DB_VERSION_MINOR
28362 # define DB_VERSION_MINOR 0
28364 #if DB_VERSION_MINOR == 1
28369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28370 $EGREP "__db_version" >/dev/null 2>&1; then
28380 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28381 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28383 if test $ol_cv_bdb_major = 4 ; then
28384 if test $ol_cv_bdb_minor = 4 ; then
28385 if test $ol_cv_lib_db = no ; then
28386 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28387 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28388 if test "${ol_cv_db_db44+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28394 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28396 cat >conftest.$ac_ext <<_ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28403 #ifdef HAVE_DB_185_H
28404 # include <db_185.h>
28409 #ifndef DB_VERSION_MAJOR
28410 # define DB_VERSION_MAJOR 1
28414 #define NULL ((void*)0)
28421 #if DB_VERSION_MAJOR > 1
28424 int major, minor, patch;
28426 version = db_version( &major, &minor, &patch );
28428 if( major != DB_VERSION_MAJOR ||
28429 minor < DB_VERSION_MINOR )
28431 printf("Berkeley DB version mismatch\n"
28432 "\theader: %s\n\tlibrary: %s\n",
28433 DB_VERSION_STRING, version);
28439 #if DB_VERSION_MAJOR > 2
28440 db_env_create( NULL, 0 );
28441 #elif DB_VERSION_MAJOR > 1
28442 db_appexit( NULL );
28444 (void) dbopen( NULL, 0, 0, 0, NULL);
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28453 (eval $ac_link) 2>conftest.er1
28455 grep -v '^ *+' conftest.er1 >conftest.err
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -z "$ac_c_werror_flag"
28461 || test ! -s conftest.err'
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest$ac_exeext'
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28475 echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28480 rm -f conftest.err conftest.$ac_objext \
28481 conftest$ac_exeext conftest.$ac_ext
28486 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28487 echo "${ECHO_T}$ol_cv_db_db44" >&6
28489 if test $ol_cv_db_db44 = yes ; then
28490 ol_cv_lib_db=-ldb44
28494 if test $ol_cv_lib_db = no ; then
28495 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28496 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28497 if test "${ol_cv_db_db_44+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28505 cat >conftest.$ac_ext <<_ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h. */
28512 #ifdef HAVE_DB_185_H
28513 # include <db_185.h>
28518 #ifndef DB_VERSION_MAJOR
28519 # define DB_VERSION_MAJOR 1
28523 #define NULL ((void*)0)
28530 #if DB_VERSION_MAJOR > 1
28533 int major, minor, patch;
28535 version = db_version( &major, &minor, &patch );
28537 if( major != DB_VERSION_MAJOR ||
28538 minor < DB_VERSION_MINOR )
28540 printf("Berkeley DB version mismatch\n"
28541 "\theader: %s\n\tlibrary: %s\n",
28542 DB_VERSION_STRING, version);
28548 #if DB_VERSION_MAJOR > 2
28549 db_env_create( NULL, 0 );
28550 #elif DB_VERSION_MAJOR > 1
28551 db_appexit( NULL );
28553 (void) dbopen( NULL, 0, 0, 0, NULL);
28560 rm -f conftest.$ac_objext conftest$ac_exeext
28561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28562 (eval $ac_link) 2>conftest.er1
28564 grep -v '^ *+' conftest.er1 >conftest.err
28566 cat conftest.err >&5
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } &&
28569 { ac_try='test -z "$ac_c_werror_flag"
28570 || test ! -s conftest.err'
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; } &&
28576 { ac_try='test -s conftest$ac_exeext'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28584 echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28589 rm -f conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
28595 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28596 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28598 if test $ol_cv_db_db_44 = yes ; then
28599 ol_cv_lib_db=-ldb-44
28603 if test $ol_cv_lib_db = no ; then
28604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28605 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28606 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28614 cat >conftest.$ac_ext <<_ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h. */
28621 #ifdef HAVE_DB_185_H
28622 # include <db_185.h>
28627 #ifndef DB_VERSION_MAJOR
28628 # define DB_VERSION_MAJOR 1
28632 #define NULL ((void*)0)
28639 #if DB_VERSION_MAJOR > 1
28642 int major, minor, patch;
28644 version = db_version( &major, &minor, &patch );
28646 if( major != DB_VERSION_MAJOR ||
28647 minor < DB_VERSION_MINOR )
28649 printf("Berkeley DB version mismatch\n"
28650 "\theader: %s\n\tlibrary: %s\n",
28651 DB_VERSION_STRING, version);
28657 #if DB_VERSION_MAJOR > 2
28658 db_env_create( NULL, 0 );
28659 #elif DB_VERSION_MAJOR > 1
28660 db_appexit( NULL );
28662 (void) dbopen( NULL, 0, 0, 0, NULL);
28669 rm -f conftest.$ac_objext conftest$ac_exeext
28670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28671 (eval $ac_link) 2>conftest.er1
28673 grep -v '^ *+' conftest.er1 >conftest.err
28675 cat conftest.err >&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677 (exit $ac_status); } &&
28678 { ac_try='test -z "$ac_c_werror_flag"
28679 || test ! -s conftest.err'
28680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; } &&
28685 { ac_try='test -s conftest$ac_exeext'
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; }; then
28691 ol_cv_db_db_4_dot_4=yes
28693 echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28696 ol_cv_db_db_4_dot_4=no
28698 rm -f conftest.err conftest.$ac_objext \
28699 conftest$ac_exeext conftest.$ac_ext
28704 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28705 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28707 if test $ol_cv_db_db_4_dot_4 = yes ; then
28708 ol_cv_lib_db=-ldb-4.4
28712 if test $ol_cv_lib_db = no ; then
28713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28714 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28715 if test "${ol_cv_db_db_4_4+set}" = set; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28723 cat >conftest.$ac_ext <<_ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h. */
28730 #ifdef HAVE_DB_185_H
28731 # include <db_185.h>
28736 #ifndef DB_VERSION_MAJOR
28737 # define DB_VERSION_MAJOR 1
28741 #define NULL ((void*)0)
28748 #if DB_VERSION_MAJOR > 1
28751 int major, minor, patch;
28753 version = db_version( &major, &minor, &patch );
28755 if( major != DB_VERSION_MAJOR ||
28756 minor < DB_VERSION_MINOR )
28758 printf("Berkeley DB version mismatch\n"
28759 "\theader: %s\n\tlibrary: %s\n",
28760 DB_VERSION_STRING, version);
28766 #if DB_VERSION_MAJOR > 2
28767 db_env_create( NULL, 0 );
28768 #elif DB_VERSION_MAJOR > 1
28769 db_appexit( NULL );
28771 (void) dbopen( NULL, 0, 0, 0, NULL);
28778 rm -f conftest.$ac_objext conftest$ac_exeext
28779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28780 (eval $ac_link) 2>conftest.er1
28782 grep -v '^ *+' conftest.er1 >conftest.err
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
28787 { ac_try='test -z "$ac_c_werror_flag"
28788 || test ! -s conftest.err'
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; } &&
28794 { ac_try='test -s conftest$ac_exeext'
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; }; then
28800 ol_cv_db_db_4_4=yes
28802 echo "$as_me: failed program was:" >&5
28803 sed 's/^/| /' conftest.$ac_ext >&5
28807 rm -f conftest.err conftest.$ac_objext \
28808 conftest$ac_exeext conftest.$ac_ext
28813 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28814 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28816 if test $ol_cv_db_db_4_4 = yes ; then
28817 ol_cv_lib_db=-ldb-4-4
28821 elif test $ol_cv_bdb_minor = 3 ; then
28822 if test $ol_cv_lib_db = no ; then
28823 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28824 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28825 if test "${ol_cv_db_db43+set}" = set; then
28826 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28840 #ifdef HAVE_DB_185_H
28841 # include <db_185.h>
28846 #ifndef DB_VERSION_MAJOR
28847 # define DB_VERSION_MAJOR 1
28851 #define NULL ((void*)0)
28858 #if DB_VERSION_MAJOR > 1
28861 int major, minor, patch;
28863 version = db_version( &major, &minor, &patch );
28865 if( major != DB_VERSION_MAJOR ||
28866 minor < DB_VERSION_MINOR )
28868 printf("Berkeley DB version mismatch\n"
28869 "\theader: %s\n\tlibrary: %s\n",
28870 DB_VERSION_STRING, version);
28876 #if DB_VERSION_MAJOR > 2
28877 db_env_create( NULL, 0 );
28878 #elif DB_VERSION_MAJOR > 1
28879 db_appexit( NULL );
28881 (void) dbopen( NULL, 0, 0, 0, NULL);
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890 (eval $ac_link) 2>conftest.er1
28892 grep -v '^ *+' conftest.er1 >conftest.err
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
28897 { ac_try='test -z "$ac_c_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest$ac_exeext'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28917 rm -f conftest.err conftest.$ac_objext \
28918 conftest$ac_exeext conftest.$ac_ext
28923 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28924 echo "${ECHO_T}$ol_cv_db_db43" >&6
28926 if test $ol_cv_db_db43 = yes ; then
28927 ol_cv_lib_db=-ldb43
28931 if test $ol_cv_lib_db = no ; then
28932 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28933 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28934 if test "${ol_cv_db_db_43+set}" = set; then
28935 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28942 cat >conftest.$ac_ext <<_ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28949 #ifdef HAVE_DB_185_H
28950 # include <db_185.h>
28955 #ifndef DB_VERSION_MAJOR
28956 # define DB_VERSION_MAJOR 1
28960 #define NULL ((void*)0)
28967 #if DB_VERSION_MAJOR > 1
28970 int major, minor, patch;
28972 version = db_version( &major, &minor, &patch );
28974 if( major != DB_VERSION_MAJOR ||
28975 minor < DB_VERSION_MINOR )
28977 printf("Berkeley DB version mismatch\n"
28978 "\theader: %s\n\tlibrary: %s\n",
28979 DB_VERSION_STRING, version);
28985 #if DB_VERSION_MAJOR > 2
28986 db_env_create( NULL, 0 );
28987 #elif DB_VERSION_MAJOR > 1
28988 db_appexit( NULL );
28990 (void) dbopen( NULL, 0, 0, 0, NULL);
28997 rm -f conftest.$ac_objext conftest$ac_exeext
28998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28999 (eval $ac_link) 2>conftest.er1
29001 grep -v '^ *+' conftest.er1 >conftest.err
29003 cat conftest.err >&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); } &&
29006 { ac_try='test -z "$ac_c_werror_flag"
29007 || test ! -s conftest.err'
29008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009 (eval $ac_try) 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; } &&
29013 { ac_try='test -s conftest$ac_exeext'
29014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015 (eval $ac_try) 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29026 rm -f conftest.err conftest.$ac_objext \
29027 conftest$ac_exeext conftest.$ac_ext
29032 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29033 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29035 if test $ol_cv_db_db_43 = yes ; then
29036 ol_cv_lib_db=-ldb-43
29040 if test $ol_cv_lib_db = no ; then
29041 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29042 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29043 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29051 cat >conftest.$ac_ext <<_ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h. */
29058 #ifdef HAVE_DB_185_H
29059 # include <db_185.h>
29064 #ifndef DB_VERSION_MAJOR
29065 # define DB_VERSION_MAJOR 1
29069 #define NULL ((void*)0)
29076 #if DB_VERSION_MAJOR > 1
29079 int major, minor, patch;
29081 version = db_version( &major, &minor, &patch );
29083 if( major != DB_VERSION_MAJOR ||
29084 minor < DB_VERSION_MINOR )
29086 printf("Berkeley DB version mismatch\n"
29087 "\theader: %s\n\tlibrary: %s\n",
29088 DB_VERSION_STRING, version);
29094 #if DB_VERSION_MAJOR > 2
29095 db_env_create( NULL, 0 );
29096 #elif DB_VERSION_MAJOR > 1
29097 db_appexit( NULL );
29099 (void) dbopen( NULL, 0, 0, 0, NULL);
29106 rm -f conftest.$ac_objext conftest$ac_exeext
29107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29108 (eval $ac_link) 2>conftest.er1
29110 grep -v '^ *+' conftest.er1 >conftest.err
29112 cat conftest.err >&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } &&
29115 { ac_try='test -z "$ac_c_werror_flag"
29116 || test ! -s conftest.err'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; } &&
29122 { ac_try='test -s conftest$ac_exeext'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29128 ol_cv_db_db_4_dot_3=yes
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ol_cv_db_db_4_dot_3=no
29135 rm -f conftest.err conftest.$ac_objext \
29136 conftest$ac_exeext conftest.$ac_ext
29141 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29142 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29144 if test $ol_cv_db_db_4_dot_3 = yes ; then
29145 ol_cv_lib_db=-ldb-4.3
29149 if test $ol_cv_lib_db = no ; then
29150 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29151 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29152 if test "${ol_cv_db_db_4_3+set}" = set; then
29153 echo $ECHO_N "(cached) $ECHO_C" >&6
29158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29160 cat >conftest.$ac_ext <<_ACEOF
29163 cat confdefs.h >>conftest.$ac_ext
29164 cat >>conftest.$ac_ext <<_ACEOF
29165 /* end confdefs.h. */
29167 #ifdef HAVE_DB_185_H
29168 # include <db_185.h>
29173 #ifndef DB_VERSION_MAJOR
29174 # define DB_VERSION_MAJOR 1
29178 #define NULL ((void*)0)
29185 #if DB_VERSION_MAJOR > 1
29188 int major, minor, patch;
29190 version = db_version( &major, &minor, &patch );
29192 if( major != DB_VERSION_MAJOR ||
29193 minor < DB_VERSION_MINOR )
29195 printf("Berkeley DB version mismatch\n"
29196 "\theader: %s\n\tlibrary: %s\n",
29197 DB_VERSION_STRING, version);
29203 #if DB_VERSION_MAJOR > 2
29204 db_env_create( NULL, 0 );
29205 #elif DB_VERSION_MAJOR > 1
29206 db_appexit( NULL );
29208 (void) dbopen( NULL, 0, 0, 0, NULL);
29215 rm -f conftest.$ac_objext conftest$ac_exeext
29216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29217 (eval $ac_link) 2>conftest.er1
29219 grep -v '^ *+' conftest.er1 >conftest.err
29221 cat conftest.err >&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); } &&
29224 { ac_try='test -z "$ac_c_werror_flag"
29225 || test ! -s conftest.err'
29226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227 (eval $ac_try) 2>&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; } &&
29231 { ac_try='test -s conftest$ac_exeext'
29232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29233 (eval $ac_try) 2>&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; }; then
29237 ol_cv_db_db_4_3=yes
29239 echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29244 rm -f conftest.err conftest.$ac_objext \
29245 conftest$ac_exeext conftest.$ac_ext
29250 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29251 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29253 if test $ol_cv_db_db_4_3 = yes ; then
29254 ol_cv_lib_db=-ldb-4-3
29258 elif test $ol_cv_bdb_minor = 2 ; then
29259 if test $ol_cv_lib_db = no ; then
29260 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29261 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29262 if test "${ol_cv_db_db42+set}" = set; then
29263 echo $ECHO_N "(cached) $ECHO_C" >&6
29268 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29270 cat >conftest.$ac_ext <<_ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h. */
29277 #ifdef HAVE_DB_185_H
29278 # include <db_185.h>
29283 #ifndef DB_VERSION_MAJOR
29284 # define DB_VERSION_MAJOR 1
29288 #define NULL ((void*)0)
29295 #if DB_VERSION_MAJOR > 1
29298 int major, minor, patch;
29300 version = db_version( &major, &minor, &patch );
29302 if( major != DB_VERSION_MAJOR ||
29303 minor < DB_VERSION_MINOR )
29305 printf("Berkeley DB version mismatch\n"
29306 "\theader: %s\n\tlibrary: %s\n",
29307 DB_VERSION_STRING, version);
29313 #if DB_VERSION_MAJOR > 2
29314 db_env_create( NULL, 0 );
29315 #elif DB_VERSION_MAJOR > 1
29316 db_appexit( NULL );
29318 (void) dbopen( NULL, 0, 0, 0, NULL);
29325 rm -f conftest.$ac_objext conftest$ac_exeext
29326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29327 (eval $ac_link) 2>conftest.er1
29329 grep -v '^ *+' conftest.er1 >conftest.err
29331 cat conftest.err >&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } &&
29334 { ac_try='test -z "$ac_c_werror_flag"
29335 || test ! -s conftest.err'
29336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337 (eval $ac_try) 2>&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); }; } &&
29341 { ac_try='test -s conftest$ac_exeext'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29349 echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29354 rm -f conftest.err conftest.$ac_objext \
29355 conftest$ac_exeext conftest.$ac_ext
29360 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29361 echo "${ECHO_T}$ol_cv_db_db42" >&6
29363 if test $ol_cv_db_db42 = yes ; then
29364 ol_cv_lib_db=-ldb42
29368 if test $ol_cv_lib_db = no ; then
29369 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29370 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29371 if test "${ol_cv_db_db_42+set}" = set; then
29372 echo $ECHO_N "(cached) $ECHO_C" >&6
29377 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29379 cat >conftest.$ac_ext <<_ACEOF
29382 cat confdefs.h >>conftest.$ac_ext
29383 cat >>conftest.$ac_ext <<_ACEOF
29384 /* end confdefs.h. */
29386 #ifdef HAVE_DB_185_H
29387 # include <db_185.h>
29392 #ifndef DB_VERSION_MAJOR
29393 # define DB_VERSION_MAJOR 1
29397 #define NULL ((void*)0)
29404 #if DB_VERSION_MAJOR > 1
29407 int major, minor, patch;
29409 version = db_version( &major, &minor, &patch );
29411 if( major != DB_VERSION_MAJOR ||
29412 minor < DB_VERSION_MINOR )
29414 printf("Berkeley DB version mismatch\n"
29415 "\theader: %s\n\tlibrary: %s\n",
29416 DB_VERSION_STRING, version);
29422 #if DB_VERSION_MAJOR > 2
29423 db_env_create( NULL, 0 );
29424 #elif DB_VERSION_MAJOR > 1
29425 db_appexit( NULL );
29427 (void) dbopen( NULL, 0, 0, 0, NULL);
29434 rm -f conftest.$ac_objext conftest$ac_exeext
29435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29436 (eval $ac_link) 2>conftest.er1
29438 grep -v '^ *+' conftest.er1 >conftest.err
29440 cat conftest.err >&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } &&
29443 { ac_try='test -z "$ac_c_werror_flag"
29444 || test ! -s conftest.err'
29445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446 (eval $ac_try) 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; } &&
29450 { ac_try='test -s conftest$ac_exeext'
29451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29452 (eval $ac_try) 2>&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); }; }; then
29458 echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29463 rm -f conftest.err conftest.$ac_objext \
29464 conftest$ac_exeext conftest.$ac_ext
29469 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29470 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29472 if test $ol_cv_db_db_42 = yes ; then
29473 ol_cv_lib_db=-ldb-42
29477 if test $ol_cv_lib_db = no ; then
29478 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29479 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29480 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29486 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29495 #ifdef HAVE_DB_185_H
29496 # include <db_185.h>
29501 #ifndef DB_VERSION_MAJOR
29502 # define DB_VERSION_MAJOR 1
29506 #define NULL ((void*)0)
29513 #if DB_VERSION_MAJOR > 1
29516 int major, minor, patch;
29518 version = db_version( &major, &minor, &patch );
29520 if( major != DB_VERSION_MAJOR ||
29521 minor < DB_VERSION_MINOR )
29523 printf("Berkeley DB version mismatch\n"
29524 "\theader: %s\n\tlibrary: %s\n",
29525 DB_VERSION_STRING, version);
29531 #if DB_VERSION_MAJOR > 2
29532 db_env_create( NULL, 0 );
29533 #elif DB_VERSION_MAJOR > 1
29534 db_appexit( NULL );
29536 (void) dbopen( NULL, 0, 0, 0, NULL);
29543 rm -f conftest.$ac_objext conftest$ac_exeext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29545 (eval $ac_link) 2>conftest.er1
29547 grep -v '^ *+' conftest.er1 >conftest.err
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } &&
29552 { ac_try='test -z "$ac_c_werror_flag"
29553 || test ! -s conftest.err'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; } &&
29559 { ac_try='test -s conftest$ac_exeext'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; }; then
29565 ol_cv_db_db_4_dot_2=yes
29567 echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29570 ol_cv_db_db_4_dot_2=no
29572 rm -f conftest.err conftest.$ac_objext \
29573 conftest$ac_exeext conftest.$ac_ext
29578 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29579 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29581 if test $ol_cv_db_db_4_dot_2 = yes ; then
29582 ol_cv_lib_db=-ldb-4.2
29586 if test $ol_cv_lib_db = no ; then
29587 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29588 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29589 if test "${ol_cv_db_db_4_2+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29597 cat >conftest.$ac_ext <<_ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29604 #ifdef HAVE_DB_185_H
29605 # include <db_185.h>
29610 #ifndef DB_VERSION_MAJOR
29611 # define DB_VERSION_MAJOR 1
29615 #define NULL ((void*)0)
29622 #if DB_VERSION_MAJOR > 1
29625 int major, minor, patch;
29627 version = db_version( &major, &minor, &patch );
29629 if( major != DB_VERSION_MAJOR ||
29630 minor < DB_VERSION_MINOR )
29632 printf("Berkeley DB version mismatch\n"
29633 "\theader: %s\n\tlibrary: %s\n",
29634 DB_VERSION_STRING, version);
29640 #if DB_VERSION_MAJOR > 2
29641 db_env_create( NULL, 0 );
29642 #elif DB_VERSION_MAJOR > 1
29643 db_appexit( NULL );
29645 (void) dbopen( NULL, 0, 0, 0, NULL);
29652 rm -f conftest.$ac_objext conftest$ac_exeext
29653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29654 (eval $ac_link) 2>conftest.er1
29656 grep -v '^ *+' conftest.er1 >conftest.err
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } &&
29661 { ac_try='test -z "$ac_c_werror_flag"
29662 || test ! -s conftest.err'
29663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29664 (eval $ac_try) 2>&5
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); }; } &&
29668 { ac_try='test -s conftest$ac_exeext'
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 ol_cv_db_db_4_2=yes
29676 echo "$as_me: failed program was:" >&5
29677 sed 's/^/| /' conftest.$ac_ext >&5
29681 rm -f conftest.err conftest.$ac_objext \
29682 conftest$ac_exeext conftest.$ac_ext
29687 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29688 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29690 if test $ol_cv_db_db_4_2 = yes ; then
29691 ol_cv_lib_db=-ldb-4-2
29695 elif test $ol_cv_bdb_minor = 1 ; then
29696 if test $ol_cv_lib_db = no ; then
29697 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29698 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29699 if test "${ol_cv_db_db41+set}" = set; then
29700 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29707 cat >conftest.$ac_ext <<_ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h. */
29714 #ifdef HAVE_DB_185_H
29715 # include <db_185.h>
29720 #ifndef DB_VERSION_MAJOR
29721 # define DB_VERSION_MAJOR 1
29725 #define NULL ((void*)0)
29732 #if DB_VERSION_MAJOR > 1
29735 int major, minor, patch;
29737 version = db_version( &major, &minor, &patch );
29739 if( major != DB_VERSION_MAJOR ||
29740 minor < DB_VERSION_MINOR )
29742 printf("Berkeley DB version mismatch\n"
29743 "\theader: %s\n\tlibrary: %s\n",
29744 DB_VERSION_STRING, version);
29750 #if DB_VERSION_MAJOR > 2
29751 db_env_create( NULL, 0 );
29752 #elif DB_VERSION_MAJOR > 1
29753 db_appexit( NULL );
29755 (void) dbopen( NULL, 0, 0, 0, NULL);
29762 rm -f conftest.$ac_objext conftest$ac_exeext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29764 (eval $ac_link) 2>conftest.er1
29766 grep -v '^ *+' conftest.er1 >conftest.err
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_c_werror_flag"
29772 || test ! -s conftest.err'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; } &&
29778 { ac_try='test -s conftest$ac_exeext'
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29791 rm -f conftest.err conftest.$ac_objext \
29792 conftest$ac_exeext conftest.$ac_ext
29797 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29798 echo "${ECHO_T}$ol_cv_db_db41" >&6
29800 if test $ol_cv_db_db41 = yes ; then
29801 ol_cv_lib_db=-ldb41
29805 if test $ol_cv_lib_db = no ; then
29806 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29807 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29808 if test "${ol_cv_db_db_41+set}" = set; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29814 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29816 cat >conftest.$ac_ext <<_ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h. */
29823 #ifdef HAVE_DB_185_H
29824 # include <db_185.h>
29829 #ifndef DB_VERSION_MAJOR
29830 # define DB_VERSION_MAJOR 1
29834 #define NULL ((void*)0)
29841 #if DB_VERSION_MAJOR > 1
29844 int major, minor, patch;
29846 version = db_version( &major, &minor, &patch );
29848 if( major != DB_VERSION_MAJOR ||
29849 minor < DB_VERSION_MINOR )
29851 printf("Berkeley DB version mismatch\n"
29852 "\theader: %s\n\tlibrary: %s\n",
29853 DB_VERSION_STRING, version);
29859 #if DB_VERSION_MAJOR > 2
29860 db_env_create( NULL, 0 );
29861 #elif DB_VERSION_MAJOR > 1
29862 db_appexit( NULL );
29864 (void) dbopen( NULL, 0, 0, 0, NULL);
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29873 (eval $ac_link) 2>conftest.er1
29875 grep -v '^ *+' conftest.er1 >conftest.err
29877 cat conftest.err >&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } &&
29880 { ac_try='test -z "$ac_c_werror_flag"
29881 || test ! -s conftest.err'
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; } &&
29887 { ac_try='test -s conftest$ac_exeext'
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; }; then
29895 echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29900 rm -f conftest.err conftest.$ac_objext \
29901 conftest$ac_exeext conftest.$ac_ext
29906 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29907 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29909 if test $ol_cv_db_db_41 = yes ; then
29910 ol_cv_lib_db=-ldb-41
29914 if test $ol_cv_lib_db = no ; then
29915 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29916 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29917 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29923 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29925 cat >conftest.$ac_ext <<_ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h. */
29932 #ifdef HAVE_DB_185_H
29933 # include <db_185.h>
29938 #ifndef DB_VERSION_MAJOR
29939 # define DB_VERSION_MAJOR 1
29943 #define NULL ((void*)0)
29950 #if DB_VERSION_MAJOR > 1
29953 int major, minor, patch;
29955 version = db_version( &major, &minor, &patch );
29957 if( major != DB_VERSION_MAJOR ||
29958 minor < DB_VERSION_MINOR )
29960 printf("Berkeley DB version mismatch\n"
29961 "\theader: %s\n\tlibrary: %s\n",
29962 DB_VERSION_STRING, version);
29968 #if DB_VERSION_MAJOR > 2
29969 db_env_create( NULL, 0 );
29970 #elif DB_VERSION_MAJOR > 1
29971 db_appexit( NULL );
29973 (void) dbopen( NULL, 0, 0, 0, NULL);
29980 rm -f conftest.$ac_objext conftest$ac_exeext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29982 (eval $ac_link) 2>conftest.er1
29984 grep -v '^ *+' conftest.er1 >conftest.err
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
29989 { ac_try='test -z "$ac_c_werror_flag"
29990 || test ! -s conftest.err'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; } &&
29996 { ac_try='test -s conftest$ac_exeext'
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ol_cv_db_db_4_dot_1=yes
30004 echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30007 ol_cv_db_db_4_dot_1=no
30009 rm -f conftest.err conftest.$ac_objext \
30010 conftest$ac_exeext conftest.$ac_ext
30015 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30016 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30018 if test $ol_cv_db_db_4_dot_1 = yes ; then
30019 ol_cv_lib_db=-ldb-4.1
30023 if test $ol_cv_lib_db = no ; then
30024 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30025 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30026 if test "${ol_cv_db_db_4_1+set}" = set; then
30027 echo $ECHO_N "(cached) $ECHO_C" >&6
30032 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30034 cat >conftest.$ac_ext <<_ACEOF
30037 cat confdefs.h >>conftest.$ac_ext
30038 cat >>conftest.$ac_ext <<_ACEOF
30039 /* end confdefs.h. */
30041 #ifdef HAVE_DB_185_H
30042 # include <db_185.h>
30047 #ifndef DB_VERSION_MAJOR
30048 # define DB_VERSION_MAJOR 1
30052 #define NULL ((void*)0)
30059 #if DB_VERSION_MAJOR > 1
30062 int major, minor, patch;
30064 version = db_version( &major, &minor, &patch );
30066 if( major != DB_VERSION_MAJOR ||
30067 minor < DB_VERSION_MINOR )
30069 printf("Berkeley DB version mismatch\n"
30070 "\theader: %s\n\tlibrary: %s\n",
30071 DB_VERSION_STRING, version);
30077 #if DB_VERSION_MAJOR > 2
30078 db_env_create( NULL, 0 );
30079 #elif DB_VERSION_MAJOR > 1
30080 db_appexit( NULL );
30082 (void) dbopen( NULL, 0, 0, 0, NULL);
30089 rm -f conftest.$ac_objext conftest$ac_exeext
30090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30091 (eval $ac_link) 2>conftest.er1
30093 grep -v '^ *+' conftest.er1 >conftest.err
30095 cat conftest.err >&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } &&
30098 { ac_try='test -z "$ac_c_werror_flag"
30099 || test ! -s conftest.err'
30100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101 (eval $ac_try) 2>&5
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); }; } &&
30105 { ac_try='test -s conftest$ac_exeext'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 ol_cv_db_db_4_1=yes
30113 echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30118 rm -f conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
30124 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30125 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30127 if test $ol_cv_db_db_4_1 = yes ; then
30128 ol_cv_lib_db=-ldb-4-1
30133 if test $ol_cv_lib_db = no ; then
30134 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30135 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30136 if test "${ol_cv_db_db_4+set}" = set; then
30137 echo $ECHO_N "(cached) $ECHO_C" >&6
30142 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30144 cat >conftest.$ac_ext <<_ACEOF
30147 cat confdefs.h >>conftest.$ac_ext
30148 cat >>conftest.$ac_ext <<_ACEOF
30149 /* end confdefs.h. */
30151 #ifdef HAVE_DB_185_H
30152 # include <db_185.h>
30157 #ifndef DB_VERSION_MAJOR
30158 # define DB_VERSION_MAJOR 1
30162 #define NULL ((void*)0)
30169 #if DB_VERSION_MAJOR > 1
30172 int major, minor, patch;
30174 version = db_version( &major, &minor, &patch );
30176 if( major != DB_VERSION_MAJOR ||
30177 minor < DB_VERSION_MINOR )
30179 printf("Berkeley DB version mismatch\n"
30180 "\theader: %s\n\tlibrary: %s\n",
30181 DB_VERSION_STRING, version);
30187 #if DB_VERSION_MAJOR > 2
30188 db_env_create( NULL, 0 );
30189 #elif DB_VERSION_MAJOR > 1
30190 db_appexit( NULL );
30192 (void) dbopen( NULL, 0, 0, 0, NULL);
30199 rm -f conftest.$ac_objext conftest$ac_exeext
30200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30201 (eval $ac_link) 2>conftest.er1
30203 grep -v '^ *+' conftest.er1 >conftest.err
30205 cat conftest.err >&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
30208 { ac_try='test -z "$ac_c_werror_flag"
30209 || test ! -s conftest.err'
30210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211 (eval $ac_try) 2>&5
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; } &&
30215 { ac_try='test -s conftest$ac_exeext'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30228 rm -f conftest.err conftest.$ac_objext \
30229 conftest$ac_exeext conftest.$ac_ext
30234 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30235 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30237 if test $ol_cv_db_db_4 = yes ; then
30238 ol_cv_lib_db=-ldb-4
30242 if test $ol_cv_lib_db = no ; then
30243 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30244 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30245 if test "${ol_cv_db_db4+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30253 cat >conftest.$ac_ext <<_ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h. */
30260 #ifdef HAVE_DB_185_H
30261 # include <db_185.h>
30266 #ifndef DB_VERSION_MAJOR
30267 # define DB_VERSION_MAJOR 1
30271 #define NULL ((void*)0)
30278 #if DB_VERSION_MAJOR > 1
30281 int major, minor, patch;
30283 version = db_version( &major, &minor, &patch );
30285 if( major != DB_VERSION_MAJOR ||
30286 minor < DB_VERSION_MINOR )
30288 printf("Berkeley DB version mismatch\n"
30289 "\theader: %s\n\tlibrary: %s\n",
30290 DB_VERSION_STRING, version);
30296 #if DB_VERSION_MAJOR > 2
30297 db_env_create( NULL, 0 );
30298 #elif DB_VERSION_MAJOR > 1
30299 db_appexit( NULL );
30301 (void) dbopen( NULL, 0, 0, 0, NULL);
30308 rm -f conftest.$ac_objext conftest$ac_exeext
30309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30310 (eval $ac_link) 2>conftest.er1
30312 grep -v '^ *+' conftest.er1 >conftest.err
30314 cat conftest.err >&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); } &&
30317 { ac_try='test -z "$ac_c_werror_flag"
30318 || test ! -s conftest.err'
30319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320 (eval $ac_try) 2>&5
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; } &&
30324 { ac_try='test -s conftest$ac_exeext'
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; }; then
30332 echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30337 rm -f conftest.err conftest.$ac_objext \
30338 conftest$ac_exeext conftest.$ac_ext
30343 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30344 echo "${ECHO_T}$ol_cv_db_db4" >&6
30346 if test $ol_cv_db_db4 = yes ; then
30351 if test $ol_cv_lib_db = no ; then
30352 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30353 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30354 if test "${ol_cv_db_db+set}" = set; then
30355 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30362 cat >conftest.$ac_ext <<_ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h. */
30369 #ifdef HAVE_DB_185_H
30370 # include <db_185.h>
30375 #ifndef DB_VERSION_MAJOR
30376 # define DB_VERSION_MAJOR 1
30380 #define NULL ((void*)0)
30387 #if DB_VERSION_MAJOR > 1
30390 int major, minor, patch;
30392 version = db_version( &major, &minor, &patch );
30394 if( major != DB_VERSION_MAJOR ||
30395 minor < DB_VERSION_MINOR )
30397 printf("Berkeley DB version mismatch\n"
30398 "\theader: %s\n\tlibrary: %s\n",
30399 DB_VERSION_STRING, version);
30405 #if DB_VERSION_MAJOR > 2
30406 db_env_create( NULL, 0 );
30407 #elif DB_VERSION_MAJOR > 1
30408 db_appexit( NULL );
30410 (void) dbopen( NULL, 0, 0, 0, NULL);
30417 rm -f conftest.$ac_objext conftest$ac_exeext
30418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30419 (eval $ac_link) 2>conftest.er1
30421 grep -v '^ *+' conftest.er1 >conftest.err
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } &&
30426 { ac_try='test -z "$ac_c_werror_flag"
30427 || test ! -s conftest.err'
30428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30429 (eval $ac_try) 2>&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; } &&
30433 { ac_try='test -s conftest$ac_exeext'
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30446 rm -f conftest.err conftest.$ac_objext \
30447 conftest$ac_exeext conftest.$ac_ext
30452 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30453 echo "${ECHO_T}$ol_cv_db_db" >&6
30455 if test $ol_cv_db_db = yes ; then
30461 elif test $ol_cv_bdb_major = 3 ; then
30462 if test $ol_cv_lib_db = no ; then
30463 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30464 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30465 if test "${ol_cv_db_db3+set}" = set; then
30466 echo $ECHO_N "(cached) $ECHO_C" >&6
30471 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30473 cat >conftest.$ac_ext <<_ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h. */
30480 #ifdef HAVE_DB_185_H
30481 # include <db_185.h>
30486 #ifndef DB_VERSION_MAJOR
30487 # define DB_VERSION_MAJOR 1
30491 #define NULL ((void*)0)
30498 #if DB_VERSION_MAJOR > 1
30501 int major, minor, patch;
30503 version = db_version( &major, &minor, &patch );
30505 if( major != DB_VERSION_MAJOR ||
30506 minor < DB_VERSION_MINOR )
30508 printf("Berkeley DB version mismatch\n"
30509 "\theader: %s\n\tlibrary: %s\n",
30510 DB_VERSION_STRING, version);
30516 #if DB_VERSION_MAJOR > 2
30517 db_env_create( NULL, 0 );
30518 #elif DB_VERSION_MAJOR > 1
30519 db_appexit( NULL );
30521 (void) dbopen( NULL, 0, 0, 0, NULL);
30528 rm -f conftest.$ac_objext conftest$ac_exeext
30529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30530 (eval $ac_link) 2>conftest.er1
30532 grep -v '^ *+' conftest.er1 >conftest.err
30534 cat conftest.err >&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag"
30538 || test ! -s conftest.err'
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; } &&
30544 { ac_try='test -s conftest$ac_exeext'
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30557 rm -f conftest.err conftest.$ac_objext \
30558 conftest$ac_exeext conftest.$ac_ext
30563 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30564 echo "${ECHO_T}$ol_cv_db_db3" >&6
30566 if test $ol_cv_db_db3 = yes ; then
30571 if test $ol_cv_lib_db = no ; then
30572 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30573 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30574 if test "${ol_cv_db_db_3+set}" = set; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30582 cat >conftest.$ac_ext <<_ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h. */
30589 #ifdef HAVE_DB_185_H
30590 # include <db_185.h>
30595 #ifndef DB_VERSION_MAJOR
30596 # define DB_VERSION_MAJOR 1
30600 #define NULL ((void*)0)
30607 #if DB_VERSION_MAJOR > 1
30610 int major, minor, patch;
30612 version = db_version( &major, &minor, &patch );
30614 if( major != DB_VERSION_MAJOR ||
30615 minor < DB_VERSION_MINOR )
30617 printf("Berkeley DB version mismatch\n"
30618 "\theader: %s\n\tlibrary: %s\n",
30619 DB_VERSION_STRING, version);
30625 #if DB_VERSION_MAJOR > 2
30626 db_env_create( NULL, 0 );
30627 #elif DB_VERSION_MAJOR > 1
30628 db_appexit( NULL );
30630 (void) dbopen( NULL, 0, 0, 0, NULL);
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30639 (eval $ac_link) 2>conftest.er1
30641 grep -v '^ *+' conftest.er1 >conftest.err
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_c_werror_flag"
30647 || test ! -s conftest.err'
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; } &&
30653 { ac_try='test -s conftest$ac_exeext'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30661 echo "$as_me: failed program was:" >&5
30662 sed 's/^/| /' conftest.$ac_ext >&5
30666 rm -f conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
30672 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30673 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30675 if test $ol_cv_db_db_3 = yes ; then
30676 ol_cv_lib_db=-ldb-3
30681 elif test $ol_cv_bdb_major = 2 ; then
30682 if test $ol_cv_lib_db = no ; then
30683 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30684 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30685 if test "${ol_cv_db_db2+set}" = set; then
30686 echo $ECHO_N "(cached) $ECHO_C" >&6
30691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30693 cat >conftest.$ac_ext <<_ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h. */
30700 #ifdef HAVE_DB_185_H
30701 # include <db_185.h>
30706 #ifndef DB_VERSION_MAJOR
30707 # define DB_VERSION_MAJOR 1
30711 #define NULL ((void*)0)
30718 #if DB_VERSION_MAJOR > 1
30721 int major, minor, patch;
30723 version = db_version( &major, &minor, &patch );
30725 if( major != DB_VERSION_MAJOR ||
30726 minor < DB_VERSION_MINOR )
30728 printf("Berkeley DB version mismatch\n"
30729 "\theader: %s\n\tlibrary: %s\n",
30730 DB_VERSION_STRING, version);
30736 #if DB_VERSION_MAJOR > 2
30737 db_env_create( NULL, 0 );
30738 #elif DB_VERSION_MAJOR > 1
30739 db_appexit( NULL );
30741 (void) dbopen( NULL, 0, 0, 0, NULL);
30748 rm -f conftest.$ac_objext conftest$ac_exeext
30749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30750 (eval $ac_link) 2>conftest.er1
30752 grep -v '^ *+' conftest.er1 >conftest.err
30754 cat conftest.err >&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } &&
30757 { ac_try='test -z "$ac_c_werror_flag"
30758 || test ! -s conftest.err'
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; } &&
30764 { ac_try='test -s conftest$ac_exeext'
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30772 echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30777 rm -f conftest.err conftest.$ac_objext \
30778 conftest$ac_exeext conftest.$ac_ext
30783 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30784 echo "${ECHO_T}$ol_cv_db_db2" >&6
30786 if test $ol_cv_db_db2 = yes ; then
30791 if test $ol_cv_lib_db = no ; then
30792 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30793 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30794 if test "${ol_cv_db_db_2+set}" = set; then
30795 echo $ECHO_N "(cached) $ECHO_C" >&6
30800 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30802 cat >conftest.$ac_ext <<_ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h. */
30809 #ifdef HAVE_DB_185_H
30810 # include <db_185.h>
30815 #ifndef DB_VERSION_MAJOR
30816 # define DB_VERSION_MAJOR 1
30820 #define NULL ((void*)0)
30827 #if DB_VERSION_MAJOR > 1
30830 int major, minor, patch;
30832 version = db_version( &major, &minor, &patch );
30834 if( major != DB_VERSION_MAJOR ||
30835 minor < DB_VERSION_MINOR )
30837 printf("Berkeley DB version mismatch\n"
30838 "\theader: %s\n\tlibrary: %s\n",
30839 DB_VERSION_STRING, version);
30845 #if DB_VERSION_MAJOR > 2
30846 db_env_create( NULL, 0 );
30847 #elif DB_VERSION_MAJOR > 1
30848 db_appexit( NULL );
30850 (void) dbopen( NULL, 0, 0, 0, NULL);
30857 rm -f conftest.$ac_objext conftest$ac_exeext
30858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30859 (eval $ac_link) 2>conftest.er1
30861 grep -v '^ *+' conftest.er1 >conftest.err
30863 cat conftest.err >&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); } &&
30866 { ac_try='test -z "$ac_c_werror_flag"
30867 || test ! -s conftest.err'
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; } &&
30873 { ac_try='test -s conftest$ac_exeext'
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
30881 echo "$as_me: failed program was:" >&5
30882 sed 's/^/| /' conftest.$ac_ext >&5
30886 rm -f conftest.err conftest.$ac_objext \
30887 conftest$ac_exeext conftest.$ac_ext
30892 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30893 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30895 if test $ol_cv_db_db_2 = yes ; then
30896 ol_cv_lib_db=-ldb-2
30901 elif test $ol_cv_bdb_major = 1 ; then
30902 if test $ol_cv_lib_db = no ; then
30903 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30904 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30905 if test "${ol_cv_db_db1+set}" = set; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30911 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30913 cat >conftest.$ac_ext <<_ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h. */
30920 #ifdef HAVE_DB_185_H
30921 # include <db_185.h>
30926 #ifndef DB_VERSION_MAJOR
30927 # define DB_VERSION_MAJOR 1
30931 #define NULL ((void*)0)
30938 #if DB_VERSION_MAJOR > 1
30941 int major, minor, patch;
30943 version = db_version( &major, &minor, &patch );
30945 if( major != DB_VERSION_MAJOR ||
30946 minor < DB_VERSION_MINOR )
30948 printf("Berkeley DB version mismatch\n"
30949 "\theader: %s\n\tlibrary: %s\n",
30950 DB_VERSION_STRING, version);
30956 #if DB_VERSION_MAJOR > 2
30957 db_env_create( NULL, 0 );
30958 #elif DB_VERSION_MAJOR > 1
30959 db_appexit( NULL );
30961 (void) dbopen( NULL, 0, 0, 0, NULL);
30968 rm -f conftest.$ac_objext conftest$ac_exeext
30969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30970 (eval $ac_link) 2>conftest.er1
30972 grep -v '^ *+' conftest.er1 >conftest.err
30974 cat conftest.err >&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } &&
30977 { ac_try='test -z "$ac_c_werror_flag"
30978 || test ! -s conftest.err'
30979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980 (eval $ac_try) 2>&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; } &&
30984 { ac_try='test -s conftest$ac_exeext'
30985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30986 (eval $ac_try) 2>&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); }; }; then
30992 echo "$as_me: failed program was:" >&5
30993 sed 's/^/| /' conftest.$ac_ext >&5
30997 rm -f conftest.err conftest.$ac_objext \
30998 conftest$ac_exeext conftest.$ac_ext
31003 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31004 echo "${ECHO_T}$ol_cv_db_db1" >&6
31006 if test $ol_cv_db_db1 = yes ; then
31011 if test $ol_cv_lib_db = no ; then
31012 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31013 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31014 if test "${ol_cv_db_db_1+set}" = set; then
31015 echo $ECHO_N "(cached) $ECHO_C" >&6
31020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31022 cat >conftest.$ac_ext <<_ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h. */
31029 #ifdef HAVE_DB_185_H
31030 # include <db_185.h>
31035 #ifndef DB_VERSION_MAJOR
31036 # define DB_VERSION_MAJOR 1
31040 #define NULL ((void*)0)
31047 #if DB_VERSION_MAJOR > 1
31050 int major, minor, patch;
31052 version = db_version( &major, &minor, &patch );
31054 if( major != DB_VERSION_MAJOR ||
31055 minor < DB_VERSION_MINOR )
31057 printf("Berkeley DB version mismatch\n"
31058 "\theader: %s\n\tlibrary: %s\n",
31059 DB_VERSION_STRING, version);
31065 #if DB_VERSION_MAJOR > 2
31066 db_env_create( NULL, 0 );
31067 #elif DB_VERSION_MAJOR > 1
31068 db_appexit( NULL );
31070 (void) dbopen( NULL, 0, 0, 0, NULL);
31077 rm -f conftest.$ac_objext conftest$ac_exeext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31079 (eval $ac_link) 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
31086 { ac_try='test -z "$ac_c_werror_flag"
31087 || test ! -s conftest.err'
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest$ac_exeext'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31101 echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31106 rm -f conftest.err conftest.$ac_objext \
31107 conftest$ac_exeext conftest.$ac_ext
31112 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31113 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31115 if test $ol_cv_db_db_1 = yes ; then
31116 ol_cv_lib_db=-ldb-1
31121 if test $ol_cv_lib_db = no ; then
31122 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31123 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31124 if test "${ol_cv_db_none+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31139 #ifdef HAVE_DB_185_H
31140 # include <db_185.h>
31145 #ifndef DB_VERSION_MAJOR
31146 # define DB_VERSION_MAJOR 1
31150 #define NULL ((void*)0)
31157 #if DB_VERSION_MAJOR > 1
31160 int major, minor, patch;
31162 version = db_version( &major, &minor, &patch );
31164 if( major != DB_VERSION_MAJOR ||
31165 minor < DB_VERSION_MINOR )
31167 printf("Berkeley DB version mismatch\n"
31168 "\theader: %s\n\tlibrary: %s\n",
31169 DB_VERSION_STRING, version);
31175 #if DB_VERSION_MAJOR > 2
31176 db_env_create( NULL, 0 );
31177 #elif DB_VERSION_MAJOR > 1
31178 db_appexit( NULL );
31180 (void) dbopen( NULL, 0, 0, 0, NULL);
31187 rm -f conftest.$ac_objext conftest$ac_exeext
31188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31189 (eval $ac_link) 2>conftest.er1
31191 grep -v '^ *+' conftest.er1 >conftest.err
31193 cat conftest.err >&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
31196 { ac_try='test -z "$ac_c_werror_flag"
31197 || test ! -s conftest.err'
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; } &&
31203 { ac_try='test -s conftest$ac_exeext'
31204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205 (eval $ac_try) 2>&5
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31211 echo "$as_me: failed program was:" >&5
31212 sed 's/^/| /' conftest.$ac_ext >&5
31216 rm -f conftest.err conftest.$ac_objext \
31217 conftest$ac_exeext conftest.$ac_ext
31222 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31223 echo "${ECHO_T}$ol_cv_db_none" >&6
31225 if test $ol_cv_db_none = yes ; then
31231 if test "$ol_cv_lib_db" != no ; then
31232 ol_cv_berkeley_db=yes
31238 ol_cv_berkeley_db=no
31240 for ac_header in db.h
31242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31244 echo "$as_me:$LINENO: checking for $ac_header" >&5
31245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31252 # Is the header compilable?
31253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31255 cat >conftest.$ac_ext <<_ACEOF
31258 cat confdefs.h >>conftest.$ac_ext
31259 cat >>conftest.$ac_ext <<_ACEOF
31260 /* end confdefs.h. */
31261 $ac_includes_default
31262 #include <$ac_header>
31264 rm -f conftest.$ac_objext
31265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31266 (eval $ac_compile) 2>conftest.er1
31268 grep -v '^ *+' conftest.er1 >conftest.err
31270 cat conftest.err >&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); } &&
31273 { ac_try='test -z "$ac_c_werror_flag"
31274 || test ! -s conftest.err'
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; } &&
31280 { ac_try='test -s conftest.$ac_objext'
31281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31282 (eval $ac_try) 2>&5
31284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285 (exit $ac_status); }; }; then
31286 ac_header_compiler=yes
31288 echo "$as_me: failed program was:" >&5
31289 sed 's/^/| /' conftest.$ac_ext >&5
31291 ac_header_compiler=no
31293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31295 echo "${ECHO_T}$ac_header_compiler" >&6
31297 # Is the header present?
31298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31300 cat >conftest.$ac_ext <<_ACEOF
31303 cat confdefs.h >>conftest.$ac_ext
31304 cat >>conftest.$ac_ext <<_ACEOF
31305 /* end confdefs.h. */
31306 #include <$ac_header>
31308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31311 grep -v '^ *+' conftest.er1 >conftest.err
31313 cat conftest.err >&5
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); } >/dev/null; then
31316 if test -s conftest.err; then
31317 ac_cpp_err=$ac_c_preproc_warn_flag
31318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31325 if test -z "$ac_cpp_err"; then
31326 ac_header_preproc=yes
31328 echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31331 ac_header_preproc=no
31333 rm -f conftest.err conftest.$ac_ext
31334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31335 echo "${ECHO_T}$ac_header_preproc" >&6
31337 # So? What about this header?
31338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31344 ac_header_preproc=yes
31347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31361 ## --------------------------------------------- ##
31362 ## Report this to <http://www.openldap.org/its/> ##
31363 ## --------------------------------------------- ##
31366 sed "s/^/$as_me: WARNING: /" >&2
31369 echo "$as_me:$LINENO: checking for $ac_header" >&5
31370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31372 echo $ECHO_N "(cached) $ECHO_C" >&6
31374 eval "$as_ac_Header=\$ac_header_preproc"
31376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31381 cat >>confdefs.h <<_ACEOF
31382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31389 if test $ac_cv_header_db_h = yes; then
31392 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31393 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31394 if test "${ol_cv_bdb_major+set}" = set; then
31395 echo $ECHO_N "(cached) $ECHO_C" >&6
31399 if test $ol_cv_bdb_major = 0 ; then
31400 cat >conftest.$ac_ext <<_ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31408 #ifndef DB_VERSION_MAJOR
31409 # define DB_VERSION_MAJOR 1
31411 #if DB_VERSION_MAJOR == 4
31416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31417 $EGREP "__db_version" >/dev/null 2>&1; then
31425 if test $ol_cv_bdb_major = 0 ; then
31426 cat >conftest.$ac_ext <<_ACEOF
31429 cat confdefs.h >>conftest.$ac_ext
31430 cat >>conftest.$ac_ext <<_ACEOF
31431 /* end confdefs.h. */
31434 #ifndef DB_VERSION_MAJOR
31435 # define DB_VERSION_MAJOR 1
31437 #if DB_VERSION_MAJOR == 3
31442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31443 $EGREP "__db_version" >/dev/null 2>&1; then
31451 if test $ol_cv_bdb_major = 0 ; then
31452 cat >conftest.$ac_ext <<_ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h. */
31460 #ifndef DB_VERSION_MAJOR
31461 # define DB_VERSION_MAJOR 1
31463 #if DB_VERSION_MAJOR == 2
31468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31469 $EGREP "__db_version" >/dev/null 2>&1; then
31477 if test $ol_cv_bdb_major = 0 ; then
31478 cat >conftest.$ac_ext <<_ACEOF
31481 cat confdefs.h >>conftest.$ac_ext
31482 cat >>conftest.$ac_ext <<_ACEOF
31483 /* end confdefs.h. */
31486 #ifndef DB_VERSION_MAJOR
31487 # define DB_VERSION_MAJOR 1
31489 #if DB_VERSION_MAJOR == 1
31494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31495 $EGREP "__db_version" >/dev/null 2>&1; then
31504 if test $ol_cv_bdb_major = 0 ; then
31505 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31506 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31507 { (exit 1); exit 1; }; }
31511 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31512 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31514 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31515 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31516 if test "${ol_cv_bdb_minor+set}" = set; then
31517 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 if test $ol_cv_bdb_minor = 0 ; then
31522 cat >conftest.$ac_ext <<_ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31530 #ifndef DB_VERSION_MINOR
31531 # define DB_VERSION_MINOR 0
31533 #if DB_VERSION_MINOR == 9
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539 $EGREP "__db_version" >/dev/null 2>&1; then
31547 if test $ol_cv_bdb_minor = 0 ; then
31548 cat >conftest.$ac_ext <<_ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h. */
31556 #ifndef DB_VERSION_MINOR
31557 # define DB_VERSION_MINOR 0
31559 #if DB_VERSION_MINOR == 8
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565 $EGREP "__db_version" >/dev/null 2>&1; then
31573 if test $ol_cv_bdb_minor = 0 ; then
31574 cat >conftest.$ac_ext <<_ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31582 #ifndef DB_VERSION_MINOR
31583 # define DB_VERSION_MINOR 0
31585 #if DB_VERSION_MINOR == 7
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591 $EGREP "__db_version" >/dev/null 2>&1; then
31599 if test $ol_cv_bdb_minor = 0 ; then
31600 cat >conftest.$ac_ext <<_ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31608 #ifndef DB_VERSION_MINOR
31609 # define DB_VERSION_MINOR 0
31611 #if DB_VERSION_MINOR == 6
31616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31617 $EGREP "__db_version" >/dev/null 2>&1; then
31625 if test $ol_cv_bdb_minor = 0 ; then
31626 cat >conftest.$ac_ext <<_ACEOF
31629 cat confdefs.h >>conftest.$ac_ext
31630 cat >>conftest.$ac_ext <<_ACEOF
31631 /* end confdefs.h. */
31634 #ifndef DB_VERSION_MINOR
31635 # define DB_VERSION_MINOR 0
31637 #if DB_VERSION_MINOR == 5
31642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31643 $EGREP "__db_version" >/dev/null 2>&1; then
31651 if test $ol_cv_bdb_minor = 0 ; then
31652 cat >conftest.$ac_ext <<_ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h. */
31660 #ifndef DB_VERSION_MINOR
31661 # define DB_VERSION_MINOR 0
31663 #if DB_VERSION_MINOR == 4
31668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31669 $EGREP "__db_version" >/dev/null 2>&1; then
31677 if test $ol_cv_bdb_minor = 0 ; then
31678 cat >conftest.$ac_ext <<_ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h. */
31686 #ifndef DB_VERSION_MINOR
31687 # define DB_VERSION_MINOR 0
31689 #if DB_VERSION_MINOR == 3
31694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31695 $EGREP "__db_version" >/dev/null 2>&1; then
31703 if test $ol_cv_bdb_minor = 0 ; then
31704 cat >conftest.$ac_ext <<_ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h. */
31712 #ifndef DB_VERSION_MINOR
31713 # define DB_VERSION_MINOR 0
31715 #if DB_VERSION_MINOR == 2
31720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31721 $EGREP "__db_version" >/dev/null 2>&1; then
31729 if test $ol_cv_bdb_minor = 0 ; then
31730 cat >conftest.$ac_ext <<_ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31738 #ifndef DB_VERSION_MINOR
31739 # define DB_VERSION_MINOR 0
31741 #if DB_VERSION_MINOR == 1
31746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31747 $EGREP "__db_version" >/dev/null 2>&1; then
31757 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31758 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31760 if test $ol_cv_bdb_major = 4 ; then
31761 if test $ol_cv_bdb_minor = 4 ; then
31762 if test $ol_cv_lib_db = no ; then
31763 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31764 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31765 if test "${ol_cv_db_db44+set}" = set; then
31766 echo $ECHO_N "(cached) $ECHO_C" >&6
31771 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31773 cat >conftest.$ac_ext <<_ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h. */
31780 #ifdef HAVE_DB_185_H
31781 # include <db_185.h>
31786 #ifndef DB_VERSION_MAJOR
31787 # define DB_VERSION_MAJOR 1
31791 #define NULL ((void*)0)
31798 #if DB_VERSION_MAJOR > 1
31801 int major, minor, patch;
31803 version = db_version( &major, &minor, &patch );
31805 if( major != DB_VERSION_MAJOR ||
31806 minor < DB_VERSION_MINOR )
31808 printf("Berkeley DB version mismatch\n"
31809 "\theader: %s\n\tlibrary: %s\n",
31810 DB_VERSION_STRING, version);
31816 #if DB_VERSION_MAJOR > 2
31817 db_env_create( NULL, 0 );
31818 #elif DB_VERSION_MAJOR > 1
31819 db_appexit( NULL );
31821 (void) dbopen( NULL, 0, 0, 0, NULL);
31828 rm -f conftest.$ac_objext conftest$ac_exeext
31829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31830 (eval $ac_link) 2>conftest.er1
31832 grep -v '^ *+' conftest.er1 >conftest.err
31834 cat conftest.err >&5
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } &&
31837 { ac_try='test -z "$ac_c_werror_flag"
31838 || test ! -s conftest.err'
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest$ac_exeext'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31852 echo "$as_me: failed program was:" >&5
31853 sed 's/^/| /' conftest.$ac_ext >&5
31857 rm -f conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
31863 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31864 echo "${ECHO_T}$ol_cv_db_db44" >&6
31866 if test $ol_cv_db_db44 = yes ; then
31867 ol_cv_lib_db=-ldb44
31871 if test $ol_cv_lib_db = no ; then
31872 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31873 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31874 if test "${ol_cv_db_db_44+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31880 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31882 cat >conftest.$ac_ext <<_ACEOF
31885 cat confdefs.h >>conftest.$ac_ext
31886 cat >>conftest.$ac_ext <<_ACEOF
31887 /* end confdefs.h. */
31889 #ifdef HAVE_DB_185_H
31890 # include <db_185.h>
31895 #ifndef DB_VERSION_MAJOR
31896 # define DB_VERSION_MAJOR 1
31900 #define NULL ((void*)0)
31907 #if DB_VERSION_MAJOR > 1
31910 int major, minor, patch;
31912 version = db_version( &major, &minor, &patch );
31914 if( major != DB_VERSION_MAJOR ||
31915 minor < DB_VERSION_MINOR )
31917 printf("Berkeley DB version mismatch\n"
31918 "\theader: %s\n\tlibrary: %s\n",
31919 DB_VERSION_STRING, version);
31925 #if DB_VERSION_MAJOR > 2
31926 db_env_create( NULL, 0 );
31927 #elif DB_VERSION_MAJOR > 1
31928 db_appexit( NULL );
31930 (void) dbopen( NULL, 0, 0, 0, NULL);
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31939 (eval $ac_link) 2>conftest.er1
31941 grep -v '^ *+' conftest.er1 >conftest.err
31943 cat conftest.err >&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); } &&
31946 { ac_try='test -z "$ac_c_werror_flag"
31947 || test ! -s conftest.err'
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest$ac_exeext'
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; }; then
31961 echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31966 rm -f conftest.err conftest.$ac_objext \
31967 conftest$ac_exeext conftest.$ac_ext
31972 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31973 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31975 if test $ol_cv_db_db_44 = yes ; then
31976 ol_cv_lib_db=-ldb-44
31980 if test $ol_cv_lib_db = no ; then
31981 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31982 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31983 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31991 cat >conftest.$ac_ext <<_ACEOF
31994 cat confdefs.h >>conftest.$ac_ext
31995 cat >>conftest.$ac_ext <<_ACEOF
31996 /* end confdefs.h. */
31998 #ifdef HAVE_DB_185_H
31999 # include <db_185.h>
32004 #ifndef DB_VERSION_MAJOR
32005 # define DB_VERSION_MAJOR 1
32009 #define NULL ((void*)0)
32016 #if DB_VERSION_MAJOR > 1
32019 int major, minor, patch;
32021 version = db_version( &major, &minor, &patch );
32023 if( major != DB_VERSION_MAJOR ||
32024 minor < DB_VERSION_MINOR )
32026 printf("Berkeley DB version mismatch\n"
32027 "\theader: %s\n\tlibrary: %s\n",
32028 DB_VERSION_STRING, version);
32034 #if DB_VERSION_MAJOR > 2
32035 db_env_create( NULL, 0 );
32036 #elif DB_VERSION_MAJOR > 1
32037 db_appexit( NULL );
32039 (void) dbopen( NULL, 0, 0, 0, NULL);
32046 rm -f conftest.$ac_objext conftest$ac_exeext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048 (eval $ac_link) 2>conftest.er1
32050 grep -v '^ *+' conftest.er1 >conftest.err
32052 cat conftest.err >&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); } &&
32055 { ac_try='test -z "$ac_c_werror_flag"
32056 || test ! -s conftest.err'
32057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32058 (eval $ac_try) 2>&5
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest$ac_exeext'
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; }; then
32068 ol_cv_db_db_4_dot_4=yes
32070 echo "$as_me: failed program was:" >&5
32071 sed 's/^/| /' conftest.$ac_ext >&5
32073 ol_cv_db_db_4_dot_4=no
32075 rm -f conftest.err conftest.$ac_objext \
32076 conftest$ac_exeext conftest.$ac_ext
32081 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32082 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32084 if test $ol_cv_db_db_4_dot_4 = yes ; then
32085 ol_cv_lib_db=-ldb-4.4
32089 if test $ol_cv_lib_db = no ; then
32090 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32091 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32092 if test "${ol_cv_db_db_4_4+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
32098 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32100 cat >conftest.$ac_ext <<_ACEOF
32103 cat confdefs.h >>conftest.$ac_ext
32104 cat >>conftest.$ac_ext <<_ACEOF
32105 /* end confdefs.h. */
32107 #ifdef HAVE_DB_185_H
32108 # include <db_185.h>
32113 #ifndef DB_VERSION_MAJOR
32114 # define DB_VERSION_MAJOR 1
32118 #define NULL ((void*)0)
32125 #if DB_VERSION_MAJOR > 1
32128 int major, minor, patch;
32130 version = db_version( &major, &minor, &patch );
32132 if( major != DB_VERSION_MAJOR ||
32133 minor < DB_VERSION_MINOR )
32135 printf("Berkeley DB version mismatch\n"
32136 "\theader: %s\n\tlibrary: %s\n",
32137 DB_VERSION_STRING, version);
32143 #if DB_VERSION_MAJOR > 2
32144 db_env_create( NULL, 0 );
32145 #elif DB_VERSION_MAJOR > 1
32146 db_appexit( NULL );
32148 (void) dbopen( NULL, 0, 0, 0, NULL);
32155 rm -f conftest.$ac_objext conftest$ac_exeext
32156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32157 (eval $ac_link) 2>conftest.er1
32159 grep -v '^ *+' conftest.er1 >conftest.err
32161 cat conftest.err >&5
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); } &&
32164 { ac_try='test -z "$ac_c_werror_flag"
32165 || test ! -s conftest.err'
32166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32167 (eval $ac_try) 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest$ac_exeext'
32172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173 (eval $ac_try) 2>&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); }; }; then
32177 ol_cv_db_db_4_4=yes
32179 echo "$as_me: failed program was:" >&5
32180 sed 's/^/| /' conftest.$ac_ext >&5
32184 rm -f conftest.err conftest.$ac_objext \
32185 conftest$ac_exeext conftest.$ac_ext
32190 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32191 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32193 if test $ol_cv_db_db_4_4 = yes ; then
32194 ol_cv_lib_db=-ldb-4-4
32198 elif test $ol_cv_bdb_minor = 3 ; then
32199 if test $ol_cv_lib_db = no ; then
32200 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32201 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32202 if test "${ol_cv_db_db43+set}" = set; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32208 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32210 cat >conftest.$ac_ext <<_ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h. */
32217 #ifdef HAVE_DB_185_H
32218 # include <db_185.h>
32223 #ifndef DB_VERSION_MAJOR
32224 # define DB_VERSION_MAJOR 1
32228 #define NULL ((void*)0)
32235 #if DB_VERSION_MAJOR > 1
32238 int major, minor, patch;
32240 version = db_version( &major, &minor, &patch );
32242 if( major != DB_VERSION_MAJOR ||
32243 minor < DB_VERSION_MINOR )
32245 printf("Berkeley DB version mismatch\n"
32246 "\theader: %s\n\tlibrary: %s\n",
32247 DB_VERSION_STRING, version);
32253 #if DB_VERSION_MAJOR > 2
32254 db_env_create( NULL, 0 );
32255 #elif DB_VERSION_MAJOR > 1
32256 db_appexit( NULL );
32258 (void) dbopen( NULL, 0, 0, 0, NULL);
32265 rm -f conftest.$ac_objext conftest$ac_exeext
32266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32267 (eval $ac_link) 2>conftest.er1
32269 grep -v '^ *+' conftest.er1 >conftest.err
32271 cat conftest.err >&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
32274 { ac_try='test -z "$ac_c_werror_flag"
32275 || test ! -s conftest.err'
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; } &&
32281 { ac_try='test -s conftest$ac_exeext'
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32289 echo "$as_me: failed program was:" >&5
32290 sed 's/^/| /' conftest.$ac_ext >&5
32294 rm -f conftest.err conftest.$ac_objext \
32295 conftest$ac_exeext conftest.$ac_ext
32300 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32301 echo "${ECHO_T}$ol_cv_db_db43" >&6
32303 if test $ol_cv_db_db43 = yes ; then
32304 ol_cv_lib_db=-ldb43
32308 if test $ol_cv_lib_db = no ; then
32309 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32310 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32311 if test "${ol_cv_db_db_43+set}" = set; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32319 cat >conftest.$ac_ext <<_ACEOF
32322 cat confdefs.h >>conftest.$ac_ext
32323 cat >>conftest.$ac_ext <<_ACEOF
32324 /* end confdefs.h. */
32326 #ifdef HAVE_DB_185_H
32327 # include <db_185.h>
32332 #ifndef DB_VERSION_MAJOR
32333 # define DB_VERSION_MAJOR 1
32337 #define NULL ((void*)0)
32344 #if DB_VERSION_MAJOR > 1
32347 int major, minor, patch;
32349 version = db_version( &major, &minor, &patch );
32351 if( major != DB_VERSION_MAJOR ||
32352 minor < DB_VERSION_MINOR )
32354 printf("Berkeley DB version mismatch\n"
32355 "\theader: %s\n\tlibrary: %s\n",
32356 DB_VERSION_STRING, version);
32362 #if DB_VERSION_MAJOR > 2
32363 db_env_create( NULL, 0 );
32364 #elif DB_VERSION_MAJOR > 1
32365 db_appexit( NULL );
32367 (void) dbopen( NULL, 0, 0, 0, NULL);
32374 rm -f conftest.$ac_objext conftest$ac_exeext
32375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32376 (eval $ac_link) 2>conftest.er1
32378 grep -v '^ *+' conftest.er1 >conftest.err
32380 cat conftest.err >&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } &&
32383 { ac_try='test -z "$ac_c_werror_flag"
32384 || test ! -s conftest.err'
32385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32386 (eval $ac_try) 2>&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest$ac_exeext'
32391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392 (eval $ac_try) 2>&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); }; }; then
32398 echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32403 rm -f conftest.err conftest.$ac_objext \
32404 conftest$ac_exeext conftest.$ac_ext
32409 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32410 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32412 if test $ol_cv_db_db_43 = yes ; then
32413 ol_cv_lib_db=-ldb-43
32417 if test $ol_cv_lib_db = no ; then
32418 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32419 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32420 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32421 echo $ECHO_N "(cached) $ECHO_C" >&6
32426 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32428 cat >conftest.$ac_ext <<_ACEOF
32431 cat confdefs.h >>conftest.$ac_ext
32432 cat >>conftest.$ac_ext <<_ACEOF
32433 /* end confdefs.h. */
32435 #ifdef HAVE_DB_185_H
32436 # include <db_185.h>
32441 #ifndef DB_VERSION_MAJOR
32442 # define DB_VERSION_MAJOR 1
32446 #define NULL ((void*)0)
32453 #if DB_VERSION_MAJOR > 1
32456 int major, minor, patch;
32458 version = db_version( &major, &minor, &patch );
32460 if( major != DB_VERSION_MAJOR ||
32461 minor < DB_VERSION_MINOR )
32463 printf("Berkeley DB version mismatch\n"
32464 "\theader: %s\n\tlibrary: %s\n",
32465 DB_VERSION_STRING, version);
32471 #if DB_VERSION_MAJOR > 2
32472 db_env_create( NULL, 0 );
32473 #elif DB_VERSION_MAJOR > 1
32474 db_appexit( NULL );
32476 (void) dbopen( NULL, 0, 0, 0, NULL);
32483 rm -f conftest.$ac_objext conftest$ac_exeext
32484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32485 (eval $ac_link) 2>conftest.er1
32487 grep -v '^ *+' conftest.er1 >conftest.err
32489 cat conftest.err >&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); } &&
32492 { ac_try='test -z "$ac_c_werror_flag"
32493 || test ! -s conftest.err'
32494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32495 (eval $ac_try) 2>&5
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest$ac_exeext'
32500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501 (eval $ac_try) 2>&5
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); }; }; then
32505 ol_cv_db_db_4_dot_3=yes
32507 echo "$as_me: failed program was:" >&5
32508 sed 's/^/| /' conftest.$ac_ext >&5
32510 ol_cv_db_db_4_dot_3=no
32512 rm -f conftest.err conftest.$ac_objext \
32513 conftest$ac_exeext conftest.$ac_ext
32518 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32519 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32521 if test $ol_cv_db_db_4_dot_3 = yes ; then
32522 ol_cv_lib_db=-ldb-4.3
32526 if test $ol_cv_lib_db = no ; then
32527 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32528 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32529 if test "${ol_cv_db_db_4_3+set}" = set; then
32530 echo $ECHO_N "(cached) $ECHO_C" >&6
32535 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32537 cat >conftest.$ac_ext <<_ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h. */
32544 #ifdef HAVE_DB_185_H
32545 # include <db_185.h>
32550 #ifndef DB_VERSION_MAJOR
32551 # define DB_VERSION_MAJOR 1
32555 #define NULL ((void*)0)
32562 #if DB_VERSION_MAJOR > 1
32565 int major, minor, patch;
32567 version = db_version( &major, &minor, &patch );
32569 if( major != DB_VERSION_MAJOR ||
32570 minor < DB_VERSION_MINOR )
32572 printf("Berkeley DB version mismatch\n"
32573 "\theader: %s\n\tlibrary: %s\n",
32574 DB_VERSION_STRING, version);
32580 #if DB_VERSION_MAJOR > 2
32581 db_env_create( NULL, 0 );
32582 #elif DB_VERSION_MAJOR > 1
32583 db_appexit( NULL );
32585 (void) dbopen( NULL, 0, 0, 0, NULL);
32592 rm -f conftest.$ac_objext conftest$ac_exeext
32593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32594 (eval $ac_link) 2>conftest.er1
32596 grep -v '^ *+' conftest.er1 >conftest.err
32598 cat conftest.err >&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); } &&
32601 { ac_try='test -z "$ac_c_werror_flag"
32602 || test ! -s conftest.err'
32603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32604 (eval $ac_try) 2>&5
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; } &&
32608 { ac_try='test -s conftest$ac_exeext'
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ol_cv_db_db_4_3=yes
32616 echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32621 rm -f conftest.err conftest.$ac_objext \
32622 conftest$ac_exeext conftest.$ac_ext
32627 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32628 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32630 if test $ol_cv_db_db_4_3 = yes ; then
32631 ol_cv_lib_db=-ldb-4-3
32635 elif test $ol_cv_bdb_minor = 2 ; then
32636 if test $ol_cv_lib_db = no ; then
32637 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32638 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32639 if test "${ol_cv_db_db42+set}" = set; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32645 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32647 cat >conftest.$ac_ext <<_ACEOF
32650 cat confdefs.h >>conftest.$ac_ext
32651 cat >>conftest.$ac_ext <<_ACEOF
32652 /* end confdefs.h. */
32654 #ifdef HAVE_DB_185_H
32655 # include <db_185.h>
32660 #ifndef DB_VERSION_MAJOR
32661 # define DB_VERSION_MAJOR 1
32665 #define NULL ((void*)0)
32672 #if DB_VERSION_MAJOR > 1
32675 int major, minor, patch;
32677 version = db_version( &major, &minor, &patch );
32679 if( major != DB_VERSION_MAJOR ||
32680 minor < DB_VERSION_MINOR )
32682 printf("Berkeley DB version mismatch\n"
32683 "\theader: %s\n\tlibrary: %s\n",
32684 DB_VERSION_STRING, version);
32690 #if DB_VERSION_MAJOR > 2
32691 db_env_create( NULL, 0 );
32692 #elif DB_VERSION_MAJOR > 1
32693 db_appexit( NULL );
32695 (void) dbopen( NULL, 0, 0, 0, NULL);
32702 rm -f conftest.$ac_objext conftest$ac_exeext
32703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32704 (eval $ac_link) 2>conftest.er1
32706 grep -v '^ *+' conftest.er1 >conftest.err
32708 cat conftest.err >&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } &&
32711 { ac_try='test -z "$ac_c_werror_flag"
32712 || test ! -s conftest.err'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; } &&
32718 { ac_try='test -s conftest$ac_exeext'
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; }; then
32726 echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32731 rm -f conftest.err conftest.$ac_objext \
32732 conftest$ac_exeext conftest.$ac_ext
32737 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32738 echo "${ECHO_T}$ol_cv_db_db42" >&6
32740 if test $ol_cv_db_db42 = yes ; then
32741 ol_cv_lib_db=-ldb42
32745 if test $ol_cv_lib_db = no ; then
32746 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32747 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32748 if test "${ol_cv_db_db_42+set}" = set; then
32749 echo $ECHO_N "(cached) $ECHO_C" >&6
32754 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32756 cat >conftest.$ac_ext <<_ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h. */
32763 #ifdef HAVE_DB_185_H
32764 # include <db_185.h>
32769 #ifndef DB_VERSION_MAJOR
32770 # define DB_VERSION_MAJOR 1
32774 #define NULL ((void*)0)
32781 #if DB_VERSION_MAJOR > 1
32784 int major, minor, patch;
32786 version = db_version( &major, &minor, &patch );
32788 if( major != DB_VERSION_MAJOR ||
32789 minor < DB_VERSION_MINOR )
32791 printf("Berkeley DB version mismatch\n"
32792 "\theader: %s\n\tlibrary: %s\n",
32793 DB_VERSION_STRING, version);
32799 #if DB_VERSION_MAJOR > 2
32800 db_env_create( NULL, 0 );
32801 #elif DB_VERSION_MAJOR > 1
32802 db_appexit( NULL );
32804 (void) dbopen( NULL, 0, 0, 0, NULL);
32811 rm -f conftest.$ac_objext conftest$ac_exeext
32812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32813 (eval $ac_link) 2>conftest.er1
32815 grep -v '^ *+' conftest.er1 >conftest.err
32817 cat conftest.err >&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); } &&
32820 { ac_try='test -z "$ac_c_werror_flag"
32821 || test ! -s conftest.err'
32822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; } &&
32827 { ac_try='test -s conftest$ac_exeext'
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829 (eval $ac_try) 2>&5
32831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; }; then
32835 echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32840 rm -f conftest.err conftest.$ac_objext \
32841 conftest$ac_exeext conftest.$ac_ext
32846 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32847 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32849 if test $ol_cv_db_db_42 = yes ; then
32850 ol_cv_lib_db=-ldb-42
32854 if test $ol_cv_lib_db = no ; then
32855 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32856 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32857 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32863 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32865 cat >conftest.$ac_ext <<_ACEOF
32868 cat confdefs.h >>conftest.$ac_ext
32869 cat >>conftest.$ac_ext <<_ACEOF
32870 /* end confdefs.h. */
32872 #ifdef HAVE_DB_185_H
32873 # include <db_185.h>
32878 #ifndef DB_VERSION_MAJOR
32879 # define DB_VERSION_MAJOR 1
32883 #define NULL ((void*)0)
32890 #if DB_VERSION_MAJOR > 1
32893 int major, minor, patch;
32895 version = db_version( &major, &minor, &patch );
32897 if( major != DB_VERSION_MAJOR ||
32898 minor < DB_VERSION_MINOR )
32900 printf("Berkeley DB version mismatch\n"
32901 "\theader: %s\n\tlibrary: %s\n",
32902 DB_VERSION_STRING, version);
32908 #if DB_VERSION_MAJOR > 2
32909 db_env_create( NULL, 0 );
32910 #elif DB_VERSION_MAJOR > 1
32911 db_appexit( NULL );
32913 (void) dbopen( NULL, 0, 0, 0, NULL);
32920 rm -f conftest.$ac_objext conftest$ac_exeext
32921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32922 (eval $ac_link) 2>conftest.er1
32924 grep -v '^ *+' conftest.er1 >conftest.err
32926 cat conftest.err >&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } &&
32929 { ac_try='test -z "$ac_c_werror_flag"
32930 || test ! -s conftest.err'
32931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932 (eval $ac_try) 2>&5
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest$ac_exeext'
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; }; then
32942 ol_cv_db_db_4_dot_2=yes
32944 echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32947 ol_cv_db_db_4_dot_2=no
32949 rm -f conftest.err conftest.$ac_objext \
32950 conftest$ac_exeext conftest.$ac_ext
32955 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32956 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32958 if test $ol_cv_db_db_4_dot_2 = yes ; then
32959 ol_cv_lib_db=-ldb-4.2
32963 if test $ol_cv_lib_db = no ; then
32964 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32965 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32966 if test "${ol_cv_db_db_4_2+set}" = set; then
32967 echo $ECHO_N "(cached) $ECHO_C" >&6
32972 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32981 #ifdef HAVE_DB_185_H
32982 # include <db_185.h>
32987 #ifndef DB_VERSION_MAJOR
32988 # define DB_VERSION_MAJOR 1
32992 #define NULL ((void*)0)
32999 #if DB_VERSION_MAJOR > 1
33002 int major, minor, patch;
33004 version = db_version( &major, &minor, &patch );
33006 if( major != DB_VERSION_MAJOR ||
33007 minor < DB_VERSION_MINOR )
33009 printf("Berkeley DB version mismatch\n"
33010 "\theader: %s\n\tlibrary: %s\n",
33011 DB_VERSION_STRING, version);
33017 #if DB_VERSION_MAJOR > 2
33018 db_env_create( NULL, 0 );
33019 #elif DB_VERSION_MAJOR > 1
33020 db_appexit( NULL );
33022 (void) dbopen( NULL, 0, 0, 0, NULL);
33029 rm -f conftest.$ac_objext conftest$ac_exeext
33030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33031 (eval $ac_link) 2>conftest.er1
33033 grep -v '^ *+' conftest.er1 >conftest.err
33035 cat conftest.err >&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } &&
33038 { ac_try='test -z "$ac_c_werror_flag"
33039 || test ! -s conftest.err'
33040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041 (eval $ac_try) 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; } &&
33045 { ac_try='test -s conftest$ac_exeext'
33046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33047 (eval $ac_try) 2>&5
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; }; then
33051 ol_cv_db_db_4_2=yes
33053 echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33058 rm -f conftest.err conftest.$ac_objext \
33059 conftest$ac_exeext conftest.$ac_ext
33064 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33065 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33067 if test $ol_cv_db_db_4_2 = yes ; then
33068 ol_cv_lib_db=-ldb-4-2
33072 elif test $ol_cv_bdb_minor = 1 ; then
33073 if test $ol_cv_lib_db = no ; then
33074 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33075 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33076 if test "${ol_cv_db_db41+set}" = set; then
33077 echo $ECHO_N "(cached) $ECHO_C" >&6
33082 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33084 cat >conftest.$ac_ext <<_ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h. */
33091 #ifdef HAVE_DB_185_H
33092 # include <db_185.h>
33097 #ifndef DB_VERSION_MAJOR
33098 # define DB_VERSION_MAJOR 1
33102 #define NULL ((void*)0)
33109 #if DB_VERSION_MAJOR > 1
33112 int major, minor, patch;
33114 version = db_version( &major, &minor, &patch );
33116 if( major != DB_VERSION_MAJOR ||
33117 minor < DB_VERSION_MINOR )
33119 printf("Berkeley DB version mismatch\n"
33120 "\theader: %s\n\tlibrary: %s\n",
33121 DB_VERSION_STRING, version);
33127 #if DB_VERSION_MAJOR > 2
33128 db_env_create( NULL, 0 );
33129 #elif DB_VERSION_MAJOR > 1
33130 db_appexit( NULL );
33132 (void) dbopen( NULL, 0, 0, 0, NULL);
33139 rm -f conftest.$ac_objext conftest$ac_exeext
33140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33141 (eval $ac_link) 2>conftest.er1
33143 grep -v '^ *+' conftest.er1 >conftest.err
33145 cat conftest.err >&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); } &&
33148 { ac_try='test -z "$ac_c_werror_flag"
33149 || test ! -s conftest.err'
33150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151 (eval $ac_try) 2>&5
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); }; } &&
33155 { ac_try='test -s conftest$ac_exeext'
33156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33157 (eval $ac_try) 2>&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; }; then
33163 echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33168 rm -f conftest.err conftest.$ac_objext \
33169 conftest$ac_exeext conftest.$ac_ext
33174 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33175 echo "${ECHO_T}$ol_cv_db_db41" >&6
33177 if test $ol_cv_db_db41 = yes ; then
33178 ol_cv_lib_db=-ldb41
33182 if test $ol_cv_lib_db = no ; then
33183 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33184 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33185 if test "${ol_cv_db_db_41+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33193 cat >conftest.$ac_ext <<_ACEOF
33196 cat confdefs.h >>conftest.$ac_ext
33197 cat >>conftest.$ac_ext <<_ACEOF
33198 /* end confdefs.h. */
33200 #ifdef HAVE_DB_185_H
33201 # include <db_185.h>
33206 #ifndef DB_VERSION_MAJOR
33207 # define DB_VERSION_MAJOR 1
33211 #define NULL ((void*)0)
33218 #if DB_VERSION_MAJOR > 1
33221 int major, minor, patch;
33223 version = db_version( &major, &minor, &patch );
33225 if( major != DB_VERSION_MAJOR ||
33226 minor < DB_VERSION_MINOR )
33228 printf("Berkeley DB version mismatch\n"
33229 "\theader: %s\n\tlibrary: %s\n",
33230 DB_VERSION_STRING, version);
33236 #if DB_VERSION_MAJOR > 2
33237 db_env_create( NULL, 0 );
33238 #elif DB_VERSION_MAJOR > 1
33239 db_appexit( NULL );
33241 (void) dbopen( NULL, 0, 0, 0, NULL);
33248 rm -f conftest.$ac_objext conftest$ac_exeext
33249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33250 (eval $ac_link) 2>conftest.er1
33252 grep -v '^ *+' conftest.er1 >conftest.err
33254 cat conftest.err >&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); } &&
33257 { ac_try='test -z "$ac_c_werror_flag"
33258 || test ! -s conftest.err'
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; } &&
33264 { ac_try='test -s conftest$ac_exeext'
33265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33266 (eval $ac_try) 2>&5
33268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269 (exit $ac_status); }; }; then
33272 echo "$as_me: failed program was:" >&5
33273 sed 's/^/| /' conftest.$ac_ext >&5
33277 rm -f conftest.err conftest.$ac_objext \
33278 conftest$ac_exeext conftest.$ac_ext
33283 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33284 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33286 if test $ol_cv_db_db_41 = yes ; then
33287 ol_cv_lib_db=-ldb-41
33291 if test $ol_cv_lib_db = no ; then
33292 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33293 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33294 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33300 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33309 #ifdef HAVE_DB_185_H
33310 # include <db_185.h>
33315 #ifndef DB_VERSION_MAJOR
33316 # define DB_VERSION_MAJOR 1
33320 #define NULL ((void*)0)
33327 #if DB_VERSION_MAJOR > 1
33330 int major, minor, patch;
33332 version = db_version( &major, &minor, &patch );
33334 if( major != DB_VERSION_MAJOR ||
33335 minor < DB_VERSION_MINOR )
33337 printf("Berkeley DB version mismatch\n"
33338 "\theader: %s\n\tlibrary: %s\n",
33339 DB_VERSION_STRING, version);
33345 #if DB_VERSION_MAJOR > 2
33346 db_env_create( NULL, 0 );
33347 #elif DB_VERSION_MAJOR > 1
33348 db_appexit( NULL );
33350 (void) dbopen( NULL, 0, 0, 0, NULL);
33357 rm -f conftest.$ac_objext conftest$ac_exeext
33358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33359 (eval $ac_link) 2>conftest.er1
33361 grep -v '^ *+' conftest.er1 >conftest.err
33363 cat conftest.err >&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); } &&
33366 { ac_try='test -z "$ac_c_werror_flag"
33367 || test ! -s conftest.err'
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest$ac_exeext'
33374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33375 (eval $ac_try) 2>&5
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; }; then
33379 ol_cv_db_db_4_dot_1=yes
33381 echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33384 ol_cv_db_db_4_dot_1=no
33386 rm -f conftest.err conftest.$ac_objext \
33387 conftest$ac_exeext conftest.$ac_ext
33392 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33393 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33395 if test $ol_cv_db_db_4_dot_1 = yes ; then
33396 ol_cv_lib_db=-ldb-4.1
33400 if test $ol_cv_lib_db = no ; then
33401 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33402 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33403 if test "${ol_cv_db_db_4_1+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33409 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33411 cat >conftest.$ac_ext <<_ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h. */
33418 #ifdef HAVE_DB_185_H
33419 # include <db_185.h>
33424 #ifndef DB_VERSION_MAJOR
33425 # define DB_VERSION_MAJOR 1
33429 #define NULL ((void*)0)
33436 #if DB_VERSION_MAJOR > 1
33439 int major, minor, patch;
33441 version = db_version( &major, &minor, &patch );
33443 if( major != DB_VERSION_MAJOR ||
33444 minor < DB_VERSION_MINOR )
33446 printf("Berkeley DB version mismatch\n"
33447 "\theader: %s\n\tlibrary: %s\n",
33448 DB_VERSION_STRING, version);
33454 #if DB_VERSION_MAJOR > 2
33455 db_env_create( NULL, 0 );
33456 #elif DB_VERSION_MAJOR > 1
33457 db_appexit( NULL );
33459 (void) dbopen( NULL, 0, 0, 0, NULL);
33466 rm -f conftest.$ac_objext conftest$ac_exeext
33467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33468 (eval $ac_link) 2>conftest.er1
33470 grep -v '^ *+' conftest.er1 >conftest.err
33472 cat conftest.err >&5
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_c_werror_flag"
33476 || test ! -s conftest.err'
33477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478 (eval $ac_try) 2>&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); }; } &&
33482 { ac_try='test -s conftest$ac_exeext'
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; }; then
33488 ol_cv_db_db_4_1=yes
33490 echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33495 rm -f conftest.err conftest.$ac_objext \
33496 conftest$ac_exeext conftest.$ac_ext
33501 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33502 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33504 if test $ol_cv_db_db_4_1 = yes ; then
33505 ol_cv_lib_db=-ldb-4-1
33510 if test $ol_cv_lib_db = no ; then
33511 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33512 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33513 if test "${ol_cv_db_db_4+set}" = set; then
33514 echo $ECHO_N "(cached) $ECHO_C" >&6
33519 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33521 cat >conftest.$ac_ext <<_ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h. */
33528 #ifdef HAVE_DB_185_H
33529 # include <db_185.h>
33534 #ifndef DB_VERSION_MAJOR
33535 # define DB_VERSION_MAJOR 1
33539 #define NULL ((void*)0)
33546 #if DB_VERSION_MAJOR > 1
33549 int major, minor, patch;
33551 version = db_version( &major, &minor, &patch );
33553 if( major != DB_VERSION_MAJOR ||
33554 minor < DB_VERSION_MINOR )
33556 printf("Berkeley DB version mismatch\n"
33557 "\theader: %s\n\tlibrary: %s\n",
33558 DB_VERSION_STRING, version);
33564 #if DB_VERSION_MAJOR > 2
33565 db_env_create( NULL, 0 );
33566 #elif DB_VERSION_MAJOR > 1
33567 db_appexit( NULL );
33569 (void) dbopen( NULL, 0, 0, 0, NULL);
33576 rm -f conftest.$ac_objext conftest$ac_exeext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33578 (eval $ac_link) 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
33585 { ac_try='test -z "$ac_c_werror_flag"
33586 || test ! -s conftest.err'
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; } &&
33592 { ac_try='test -s conftest$ac_exeext'
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33605 rm -f conftest.err conftest.$ac_objext \
33606 conftest$ac_exeext conftest.$ac_ext
33611 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33612 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33614 if test $ol_cv_db_db_4 = yes ; then
33615 ol_cv_lib_db=-ldb-4
33619 if test $ol_cv_lib_db = no ; then
33620 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33621 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33622 if test "${ol_cv_db_db4+set}" = set; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33630 cat >conftest.$ac_ext <<_ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h. */
33637 #ifdef HAVE_DB_185_H
33638 # include <db_185.h>
33643 #ifndef DB_VERSION_MAJOR
33644 # define DB_VERSION_MAJOR 1
33648 #define NULL ((void*)0)
33655 #if DB_VERSION_MAJOR > 1
33658 int major, minor, patch;
33660 version = db_version( &major, &minor, &patch );
33662 if( major != DB_VERSION_MAJOR ||
33663 minor < DB_VERSION_MINOR )
33665 printf("Berkeley DB version mismatch\n"
33666 "\theader: %s\n\tlibrary: %s\n",
33667 DB_VERSION_STRING, version);
33673 #if DB_VERSION_MAJOR > 2
33674 db_env_create( NULL, 0 );
33675 #elif DB_VERSION_MAJOR > 1
33676 db_appexit( NULL );
33678 (void) dbopen( NULL, 0, 0, 0, NULL);
33685 rm -f conftest.$ac_objext conftest$ac_exeext
33686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33687 (eval $ac_link) 2>conftest.er1
33689 grep -v '^ *+' conftest.er1 >conftest.err
33691 cat conftest.err >&5
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } &&
33694 { ac_try='test -z "$ac_c_werror_flag"
33695 || test ! -s conftest.err'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; } &&
33701 { ac_try='test -s conftest$ac_exeext'
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; }; then
33709 echo "$as_me: failed program was:" >&5
33710 sed 's/^/| /' conftest.$ac_ext >&5
33714 rm -f conftest.err conftest.$ac_objext \
33715 conftest$ac_exeext conftest.$ac_ext
33720 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33721 echo "${ECHO_T}$ol_cv_db_db4" >&6
33723 if test $ol_cv_db_db4 = yes ; then
33728 if test $ol_cv_lib_db = no ; then
33729 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33730 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33731 if test "${ol_cv_db_db+set}" = set; then
33732 echo $ECHO_N "(cached) $ECHO_C" >&6
33737 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33739 cat >conftest.$ac_ext <<_ACEOF
33742 cat confdefs.h >>conftest.$ac_ext
33743 cat >>conftest.$ac_ext <<_ACEOF
33744 /* end confdefs.h. */
33746 #ifdef HAVE_DB_185_H
33747 # include <db_185.h>
33752 #ifndef DB_VERSION_MAJOR
33753 # define DB_VERSION_MAJOR 1
33757 #define NULL ((void*)0)
33764 #if DB_VERSION_MAJOR > 1
33767 int major, minor, patch;
33769 version = db_version( &major, &minor, &patch );
33771 if( major != DB_VERSION_MAJOR ||
33772 minor < DB_VERSION_MINOR )
33774 printf("Berkeley DB version mismatch\n"
33775 "\theader: %s\n\tlibrary: %s\n",
33776 DB_VERSION_STRING, version);
33782 #if DB_VERSION_MAJOR > 2
33783 db_env_create( NULL, 0 );
33784 #elif DB_VERSION_MAJOR > 1
33785 db_appexit( NULL );
33787 (void) dbopen( NULL, 0, 0, 0, NULL);
33794 rm -f conftest.$ac_objext conftest$ac_exeext
33795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33796 (eval $ac_link) 2>conftest.er1
33798 grep -v '^ *+' conftest.er1 >conftest.err
33800 cat conftest.err >&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } &&
33803 { ac_try='test -z "$ac_c_werror_flag"
33804 || test ! -s conftest.err'
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; } &&
33810 { ac_try='test -s conftest$ac_exeext'
33811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812 (eval $ac_try) 2>&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; }; then
33818 echo "$as_me: failed program was:" >&5
33819 sed 's/^/| /' conftest.$ac_ext >&5
33823 rm -f conftest.err conftest.$ac_objext \
33824 conftest$ac_exeext conftest.$ac_ext
33829 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33830 echo "${ECHO_T}$ol_cv_db_db" >&6
33832 if test $ol_cv_db_db = yes ; then
33838 elif test $ol_cv_bdb_major = 3 ; then
33839 if test $ol_cv_lib_db = no ; then
33840 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33841 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33842 if test "${ol_cv_db_db3+set}" = set; then
33843 echo $ECHO_N "(cached) $ECHO_C" >&6
33848 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33850 cat >conftest.$ac_ext <<_ACEOF
33853 cat confdefs.h >>conftest.$ac_ext
33854 cat >>conftest.$ac_ext <<_ACEOF
33855 /* end confdefs.h. */
33857 #ifdef HAVE_DB_185_H
33858 # include <db_185.h>
33863 #ifndef DB_VERSION_MAJOR
33864 # define DB_VERSION_MAJOR 1
33868 #define NULL ((void*)0)
33875 #if DB_VERSION_MAJOR > 1
33878 int major, minor, patch;
33880 version = db_version( &major, &minor, &patch );
33882 if( major != DB_VERSION_MAJOR ||
33883 minor < DB_VERSION_MINOR )
33885 printf("Berkeley DB version mismatch\n"
33886 "\theader: %s\n\tlibrary: %s\n",
33887 DB_VERSION_STRING, version);
33893 #if DB_VERSION_MAJOR > 2
33894 db_env_create( NULL, 0 );
33895 #elif DB_VERSION_MAJOR > 1
33896 db_appexit( NULL );
33898 (void) dbopen( NULL, 0, 0, 0, NULL);
33905 rm -f conftest.$ac_objext conftest$ac_exeext
33906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33907 (eval $ac_link) 2>conftest.er1
33909 grep -v '^ *+' conftest.er1 >conftest.err
33911 cat conftest.err >&5
33912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 (exit $ac_status); } &&
33914 { ac_try='test -z "$ac_c_werror_flag"
33915 || test ! -s conftest.err'
33916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33917 (eval $ac_try) 2>&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); }; } &&
33921 { ac_try='test -s conftest$ac_exeext'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; }; then
33929 echo "$as_me: failed program was:" >&5
33930 sed 's/^/| /' conftest.$ac_ext >&5
33934 rm -f conftest.err conftest.$ac_objext \
33935 conftest$ac_exeext conftest.$ac_ext
33940 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33941 echo "${ECHO_T}$ol_cv_db_db3" >&6
33943 if test $ol_cv_db_db3 = yes ; then
33948 if test $ol_cv_lib_db = no ; then
33949 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33950 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33951 if test "${ol_cv_db_db_3+set}" = set; then
33952 echo $ECHO_N "(cached) $ECHO_C" >&6
33957 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33959 cat >conftest.$ac_ext <<_ACEOF
33962 cat confdefs.h >>conftest.$ac_ext
33963 cat >>conftest.$ac_ext <<_ACEOF
33964 /* end confdefs.h. */
33966 #ifdef HAVE_DB_185_H
33967 # include <db_185.h>
33972 #ifndef DB_VERSION_MAJOR
33973 # define DB_VERSION_MAJOR 1
33977 #define NULL ((void*)0)
33984 #if DB_VERSION_MAJOR > 1
33987 int major, minor, patch;
33989 version = db_version( &major, &minor, &patch );
33991 if( major != DB_VERSION_MAJOR ||
33992 minor < DB_VERSION_MINOR )
33994 printf("Berkeley DB version mismatch\n"
33995 "\theader: %s\n\tlibrary: %s\n",
33996 DB_VERSION_STRING, version);
34002 #if DB_VERSION_MAJOR > 2
34003 db_env_create( NULL, 0 );
34004 #elif DB_VERSION_MAJOR > 1
34005 db_appexit( NULL );
34007 (void) dbopen( NULL, 0, 0, 0, NULL);
34014 rm -f conftest.$ac_objext conftest$ac_exeext
34015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34016 (eval $ac_link) 2>conftest.er1
34018 grep -v '^ *+' conftest.er1 >conftest.err
34020 cat conftest.err >&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } &&
34023 { ac_try='test -z "$ac_c_werror_flag"
34024 || test ! -s conftest.err'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; } &&
34030 { ac_try='test -s conftest$ac_exeext'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34043 rm -f conftest.err conftest.$ac_objext \
34044 conftest$ac_exeext conftest.$ac_ext
34049 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34050 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34052 if test $ol_cv_db_db_3 = yes ; then
34053 ol_cv_lib_db=-ldb-3
34058 elif test $ol_cv_bdb_major = 2 ; then
34059 if test $ol_cv_lib_db = no ; then
34060 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34061 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34062 if test "${ol_cv_db_db2+set}" = set; then
34063 echo $ECHO_N "(cached) $ECHO_C" >&6
34068 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34070 cat >conftest.$ac_ext <<_ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h. */
34077 #ifdef HAVE_DB_185_H
34078 # include <db_185.h>
34083 #ifndef DB_VERSION_MAJOR
34084 # define DB_VERSION_MAJOR 1
34088 #define NULL ((void*)0)
34095 #if DB_VERSION_MAJOR > 1
34098 int major, minor, patch;
34100 version = db_version( &major, &minor, &patch );
34102 if( major != DB_VERSION_MAJOR ||
34103 minor < DB_VERSION_MINOR )
34105 printf("Berkeley DB version mismatch\n"
34106 "\theader: %s\n\tlibrary: %s\n",
34107 DB_VERSION_STRING, version);
34113 #if DB_VERSION_MAJOR > 2
34114 db_env_create( NULL, 0 );
34115 #elif DB_VERSION_MAJOR > 1
34116 db_appexit( NULL );
34118 (void) dbopen( NULL, 0, 0, 0, NULL);
34125 rm -f conftest.$ac_objext conftest$ac_exeext
34126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34127 (eval $ac_link) 2>conftest.er1
34129 grep -v '^ *+' conftest.er1 >conftest.err
34131 cat conftest.err >&5
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); } &&
34134 { ac_try='test -z "$ac_c_werror_flag"
34135 || test ! -s conftest.err'
34136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 (eval $ac_try) 2>&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; }; then
34149 echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34154 rm -f conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
34160 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34161 echo "${ECHO_T}$ol_cv_db_db2" >&6
34163 if test $ol_cv_db_db2 = yes ; then
34168 if test $ol_cv_lib_db = no ; then
34169 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34170 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34171 if test "${ol_cv_db_db_2+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34177 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34179 cat >conftest.$ac_ext <<_ACEOF
34182 cat confdefs.h >>conftest.$ac_ext
34183 cat >>conftest.$ac_ext <<_ACEOF
34184 /* end confdefs.h. */
34186 #ifdef HAVE_DB_185_H
34187 # include <db_185.h>
34192 #ifndef DB_VERSION_MAJOR
34193 # define DB_VERSION_MAJOR 1
34197 #define NULL ((void*)0)
34204 #if DB_VERSION_MAJOR > 1
34207 int major, minor, patch;
34209 version = db_version( &major, &minor, &patch );
34211 if( major != DB_VERSION_MAJOR ||
34212 minor < DB_VERSION_MINOR )
34214 printf("Berkeley DB version mismatch\n"
34215 "\theader: %s\n\tlibrary: %s\n",
34216 DB_VERSION_STRING, version);
34222 #if DB_VERSION_MAJOR > 2
34223 db_env_create( NULL, 0 );
34224 #elif DB_VERSION_MAJOR > 1
34225 db_appexit( NULL );
34227 (void) dbopen( NULL, 0, 0, 0, NULL);
34234 rm -f conftest.$ac_objext conftest$ac_exeext
34235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34236 (eval $ac_link) 2>conftest.er1
34238 grep -v '^ *+' conftest.er1 >conftest.err
34240 cat conftest.err >&5
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); } &&
34243 { ac_try='test -z "$ac_c_werror_flag"
34244 || test ! -s conftest.err'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; } &&
34250 { ac_try='test -s conftest$ac_exeext'
34251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34252 (eval $ac_try) 2>&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); }; }; then
34258 echo "$as_me: failed program was:" >&5
34259 sed 's/^/| /' conftest.$ac_ext >&5
34263 rm -f conftest.err conftest.$ac_objext \
34264 conftest$ac_exeext conftest.$ac_ext
34269 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34270 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34272 if test $ol_cv_db_db_2 = yes ; then
34273 ol_cv_lib_db=-ldb-2
34278 elif test $ol_cv_bdb_major = 1 ; then
34279 if test $ol_cv_lib_db = no ; then
34280 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34281 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34282 if test "${ol_cv_db_db1+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34288 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34290 cat >conftest.$ac_ext <<_ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h. */
34297 #ifdef HAVE_DB_185_H
34298 # include <db_185.h>
34303 #ifndef DB_VERSION_MAJOR
34304 # define DB_VERSION_MAJOR 1
34308 #define NULL ((void*)0)
34315 #if DB_VERSION_MAJOR > 1
34318 int major, minor, patch;
34320 version = db_version( &major, &minor, &patch );
34322 if( major != DB_VERSION_MAJOR ||
34323 minor < DB_VERSION_MINOR )
34325 printf("Berkeley DB version mismatch\n"
34326 "\theader: %s\n\tlibrary: %s\n",
34327 DB_VERSION_STRING, version);
34333 #if DB_VERSION_MAJOR > 2
34334 db_env_create( NULL, 0 );
34335 #elif DB_VERSION_MAJOR > 1
34336 db_appexit( NULL );
34338 (void) dbopen( NULL, 0, 0, 0, NULL);
34345 rm -f conftest.$ac_objext conftest$ac_exeext
34346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34347 (eval $ac_link) 2>conftest.er1
34349 grep -v '^ *+' conftest.er1 >conftest.err
34351 cat conftest.err >&5
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); } &&
34354 { ac_try='test -z "$ac_c_werror_flag"
34355 || test ! -s conftest.err'
34356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34357 (eval $ac_try) 2>&5
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); }; } &&
34361 { ac_try='test -s conftest$ac_exeext'
34362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34363 (eval $ac_try) 2>&5
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); }; }; then
34369 echo "$as_me: failed program was:" >&5
34370 sed 's/^/| /' conftest.$ac_ext >&5
34374 rm -f conftest.err conftest.$ac_objext \
34375 conftest$ac_exeext conftest.$ac_ext
34380 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34381 echo "${ECHO_T}$ol_cv_db_db1" >&6
34383 if test $ol_cv_db_db1 = yes ; then
34388 if test $ol_cv_lib_db = no ; then
34389 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34390 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34391 if test "${ol_cv_db_db_1+set}" = set; then
34392 echo $ECHO_N "(cached) $ECHO_C" >&6
34397 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34399 cat >conftest.$ac_ext <<_ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h. */
34406 #ifdef HAVE_DB_185_H
34407 # include <db_185.h>
34412 #ifndef DB_VERSION_MAJOR
34413 # define DB_VERSION_MAJOR 1
34417 #define NULL ((void*)0)
34424 #if DB_VERSION_MAJOR > 1
34427 int major, minor, patch;
34429 version = db_version( &major, &minor, &patch );
34431 if( major != DB_VERSION_MAJOR ||
34432 minor < DB_VERSION_MINOR )
34434 printf("Berkeley DB version mismatch\n"
34435 "\theader: %s\n\tlibrary: %s\n",
34436 DB_VERSION_STRING, version);
34442 #if DB_VERSION_MAJOR > 2
34443 db_env_create( NULL, 0 );
34444 #elif DB_VERSION_MAJOR > 1
34445 db_appexit( NULL );
34447 (void) dbopen( NULL, 0, 0, 0, NULL);
34454 rm -f conftest.$ac_objext conftest$ac_exeext
34455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34456 (eval $ac_link) 2>conftest.er1
34458 grep -v '^ *+' conftest.er1 >conftest.err
34460 cat conftest.err >&5
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } &&
34463 { ac_try='test -z "$ac_c_werror_flag"
34464 || test ! -s conftest.err'
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; } &&
34470 { ac_try='test -s conftest$ac_exeext'
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34478 echo "$as_me: failed program was:" >&5
34479 sed 's/^/| /' conftest.$ac_ext >&5
34483 rm -f conftest.err conftest.$ac_objext \
34484 conftest$ac_exeext conftest.$ac_ext
34489 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34490 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34492 if test $ol_cv_db_db_1 = yes ; then
34493 ol_cv_lib_db=-ldb-1
34498 if test $ol_cv_lib_db = no ; then
34499 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34500 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34501 if test "${ol_cv_db_none+set}" = set; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34507 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34509 cat >conftest.$ac_ext <<_ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h. */
34516 #ifdef HAVE_DB_185_H
34517 # include <db_185.h>
34522 #ifndef DB_VERSION_MAJOR
34523 # define DB_VERSION_MAJOR 1
34527 #define NULL ((void*)0)
34534 #if DB_VERSION_MAJOR > 1
34537 int major, minor, patch;
34539 version = db_version( &major, &minor, &patch );
34541 if( major != DB_VERSION_MAJOR ||
34542 minor < DB_VERSION_MINOR )
34544 printf("Berkeley DB version mismatch\n"
34545 "\theader: %s\n\tlibrary: %s\n",
34546 DB_VERSION_STRING, version);
34552 #if DB_VERSION_MAJOR > 2
34553 db_env_create( NULL, 0 );
34554 #elif DB_VERSION_MAJOR > 1
34555 db_appexit( NULL );
34557 (void) dbopen( NULL, 0, 0, 0, NULL);
34564 rm -f conftest.$ac_objext conftest$ac_exeext
34565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34566 (eval $ac_link) 2>conftest.er1
34568 grep -v '^ *+' conftest.er1 >conftest.err
34570 cat conftest.err >&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); } &&
34573 { ac_try='test -z "$ac_c_werror_flag"
34574 || test ! -s conftest.err'
34575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576 (eval $ac_try) 2>&5
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; } &&
34580 { ac_try='test -s conftest$ac_exeext'
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; }; then
34588 echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34593 rm -f conftest.err conftest.$ac_objext \
34594 conftest$ac_exeext conftest.$ac_ext
34599 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34600 echo "${ECHO_T}$ol_cv_db_none" >&6
34602 if test $ol_cv_db_none = yes ; then
34608 if test "$ol_cv_lib_db" != no ; then
34609 ol_cv_berkeley_db=yes
34610 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34611 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34612 if test "${ol_cv_berkeley_db_version+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34617 LIBS="$LTHREAD_LIBS $LIBS"
34618 if test $ol_cv_lib_db != yes ; then
34619 LIBS="$ol_cv_lib_db $LIBS"
34622 if test "$cross_compiling" = yes; then
34623 ol_cv_berkeley_db_version=cross
34625 cat >conftest.$ac_ext <<_ACEOF
34628 cat confdefs.h >>conftest.$ac_ext
34629 cat >>conftest.$ac_ext <<_ACEOF
34630 /* end confdefs.h. */
34632 #ifdef HAVE_DB_185_H
34637 #ifndef DB_VERSION_MAJOR
34638 # define DB_VERSION_MAJOR 1
34641 #define NULL ((void *)0)
34645 #if DB_VERSION_MAJOR > 1
34647 int major, minor, patch;
34649 version = db_version( &major, &minor, &patch );
34651 if( major != DB_VERSION_MAJOR ||
34652 minor != DB_VERSION_MINOR ||
34653 patch != DB_VERSION_PATCH )
34655 printf("Berkeley DB version mismatch\n"
34656 "\theader: %s\n\tlibrary: %s\n",
34657 DB_VERSION_STRING, version);
34665 rm -f conftest$ac_exeext
34666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34667 (eval $ac_link) 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672 (eval $ac_try) 2>&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); }; }; then
34676 ol_cv_berkeley_db_version=yes
34678 echo "$as_me: program exited with status $ac_status" >&5
34679 echo "$as_me: failed program was:" >&5
34680 sed 's/^/| /' conftest.$ac_ext >&5
34682 ( exit $ac_status )
34683 ol_cv_berkeley_db_version=no
34685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34691 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34692 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34694 if test $ol_cv_berkeley_db_version = no ; then
34695 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34696 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34697 { (exit 1); exit 1; }; }
34700 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34701 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34702 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34707 LIBS="$LTHREAD_LIBS $LIBS"
34708 if test $ol_cv_lib_db != yes ; then
34709 LIBS="$ol_cv_lib_db $LIBS"
34712 if test "$cross_compiling" = yes; then
34713 ol_cv_berkeley_db_thread=cross
34715 cat >conftest.$ac_ext <<_ACEOF
34718 cat confdefs.h >>conftest.$ac_ext
34719 cat >>conftest.$ac_ext <<_ACEOF
34720 /* end confdefs.h. */
34722 #ifdef HAVE_DB_185_H
34728 #define NULL ((void *)0)
34733 u_int32_t flags = DB_CREATE |
34739 #if DB_VERSION_MAJOR > 2
34740 DB_ENV *env = NULL;
34742 rc = db_env_create( &env, 0 );
34744 flags |= DB_INIT_MPOOL;
34745 #ifdef DB_MPOOL_PRIVATE
34746 flags |= DB_MPOOL_PRIVATE;
34750 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34754 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34755 rc = env->open( env, NULL, flags, 0 );
34757 rc = env->open( env, NULL, NULL, flags, 0 );
34761 rc = env->close( env, 0 );
34765 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34771 memset( &env, '\0', sizeof(env) );
34773 rc = db_appinit( NULL, NULL, &env, flags );
34776 db_appexit( &env );
34779 unlink("__db_mpool.share");
34780 unlink("__db_lock.share");
34786 rm -f conftest$ac_exeext
34787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34788 (eval $ac_link) 2>&5
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34793 (eval $ac_try) 2>&5
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); }; }; then
34797 ol_cv_berkeley_db_thread=yes
34799 echo "$as_me: program exited with status $ac_status" >&5
34800 echo "$as_me: failed program was:" >&5
34801 sed 's/^/| /' conftest.$ac_ext >&5
34803 ( exit $ac_status )
34804 ol_cv_berkeley_db_thread=no
34806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34812 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34813 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34815 if test $ol_cv_berkeley_db_thread != no ; then
34817 cat >>confdefs.h <<\_ACEOF
34818 #define HAVE_BERKELEY_DB_THREAD 1
34828 if test $ol_cv_berkeley_db != no ; then
34830 cat >>confdefs.h <<\_ACEOF
34831 #define HAVE_BERKELEY_DB 1
34835 ol_link_ldbm=berkeley
34836 ol_enable_ldbm_api=berkeley
34838 if test $ol_enable_ldbm_type = hash ; then
34840 cat >>confdefs.h <<\_ACEOF
34841 #define LDBM_USE_DBHASH 1
34846 cat >>confdefs.h <<\_ACEOF
34847 #define LDBM_USE_DBBTREE 1
34852 if test $ol_cv_lib_db != yes ; then
34853 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34859 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34860 if test $ol_link_ldbm != berkeley ; then
34861 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34862 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34863 { (exit 1); exit 1; }; }
34865 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34866 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34867 if test "${ol_cv_bdb_compat+set}" = set; then
34868 echo $ECHO_N "(cached) $ECHO_C" >&6
34871 cat >conftest.$ac_ext <<_ACEOF
34874 cat confdefs.h >>conftest.$ac_ext
34875 cat >>conftest.$ac_ext <<_ACEOF
34876 /* end confdefs.h. */
34880 /* this check could be improved */
34881 #ifndef DB_VERSION_MAJOR
34882 # define DB_VERSION_MAJOR 1
34884 #ifndef DB_VERSION_MINOR
34885 # define DB_VERSION_MINOR 0
34888 /* require 4.2 or later */
34889 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34890 __db_version_compat
34894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34895 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34896 ol_cv_bdb_compat=yes
34898 ol_cv_bdb_compat=no
34903 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34904 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34907 if test $ol_cv_bdb_compat != yes ; then
34908 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34909 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34910 { (exit 1); exit 1; }; }
34915 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34916 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34917 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34918 ol_enable_ldbm_api=none
34921 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34922 echo "$as_me:$LINENO: checking for MDBM library" >&5
34923 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34924 if test "${ol_cv_lib_mdbm+set}" = set; then
34925 echo $ECHO_N "(cached) $ECHO_C" >&6
34928 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34929 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34930 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34931 echo $ECHO_N "(cached) $ECHO_C" >&6
34933 cat >conftest.$ac_ext <<_ACEOF
34936 cat confdefs.h >>conftest.$ac_ext
34937 cat >>conftest.$ac_ext <<_ACEOF
34938 /* end confdefs.h. */
34939 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34941 #define mdbm_set_chain innocuous_mdbm_set_chain
34943 /* System header to define __stub macros and hopefully few prototypes,
34944 which can conflict with char mdbm_set_chain (); below.
34945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34946 <limits.h> exists even on freestanding compilers. */
34949 # include <limits.h>
34951 # include <assert.h>
34954 #undef mdbm_set_chain
34956 /* Override any gcc2 internal prototype to avoid an error. */
34961 /* We use char because int might match the return type of a gcc2
34962 builtin and then its argument prototype would still apply. */
34963 char mdbm_set_chain ();
34964 /* The GNU C library defines this for functions which it implements
34965 to always fail with ENOSYS. Some functions are actually named
34966 something starting with __ and the normal name is an alias. */
34967 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34970 char (*f) () = mdbm_set_chain;
34979 return f != mdbm_set_chain;
34984 rm -f conftest.$ac_objext conftest$ac_exeext
34985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34986 (eval $ac_link) 2>conftest.er1
34988 grep -v '^ *+' conftest.er1 >conftest.err
34990 cat conftest.err >&5
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); } &&
34993 { ac_try='test -z "$ac_c_werror_flag"
34994 || test ! -s conftest.err'
34995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996 (eval $ac_try) 2>&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); }; } &&
35000 { ac_try='test -s conftest$ac_exeext'
35001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35002 (eval $ac_try) 2>&5
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); }; }; then
35006 ac_cv_func_mdbm_set_chain=yes
35008 echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35011 ac_cv_func_mdbm_set_chain=no
35013 rm -f conftest.err conftest.$ac_objext \
35014 conftest$ac_exeext conftest.$ac_ext
35016 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
35017 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
35018 if test $ac_cv_func_mdbm_set_chain = yes; then
35022 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
35023 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
35024 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
35025 echo $ECHO_N "(cached) $ECHO_C" >&6
35027 ac_check_lib_save_LIBS=$LIBS
35028 LIBS="-lmdbm $LIBS"
35029 cat >conftest.$ac_ext <<_ACEOF
35032 cat confdefs.h >>conftest.$ac_ext
35033 cat >>conftest.$ac_ext <<_ACEOF
35034 /* end confdefs.h. */
35036 /* Override any gcc2 internal prototype to avoid an error. */
35040 /* We use char because int might match the return type of a gcc2
35041 builtin and then its argument prototype would still apply. */
35042 char mdbm_set_chain ();
35051 rm -f conftest.$ac_objext conftest$ac_exeext
35052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35053 (eval $ac_link) 2>conftest.er1
35055 grep -v '^ *+' conftest.er1 >conftest.err
35057 cat conftest.err >&5
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); } &&
35060 { ac_try='test -z "$ac_c_werror_flag"
35061 || test ! -s conftest.err'
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; } &&
35067 { ac_try='test -s conftest$ac_exeext'
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; }; then
35073 ac_cv_lib_mdbm_mdbm_set_chain=yes
35075 echo "$as_me: failed program was:" >&5
35076 sed 's/^/| /' conftest.$ac_ext >&5
35078 ac_cv_lib_mdbm_mdbm_set_chain=no
35080 rm -f conftest.err conftest.$ac_objext \
35081 conftest$ac_exeext conftest.$ac_ext
35082 LIBS=$ac_check_lib_save_LIBS
35084 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35085 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35086 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35087 ol_cv_lib_mdbm=-lmdbm
35098 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35099 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35103 for ac_header in mdbm.h
35105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35107 echo "$as_me:$LINENO: checking for $ac_header" >&5
35108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35110 echo $ECHO_N "(cached) $ECHO_C" >&6
35112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35115 # Is the header compilable?
35116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35118 cat >conftest.$ac_ext <<_ACEOF
35121 cat confdefs.h >>conftest.$ac_ext
35122 cat >>conftest.$ac_ext <<_ACEOF
35123 /* end confdefs.h. */
35124 $ac_includes_default
35125 #include <$ac_header>
35127 rm -f conftest.$ac_objext
35128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35129 (eval $ac_compile) 2>conftest.er1
35131 grep -v '^ *+' conftest.er1 >conftest.err
35133 cat conftest.err >&5
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); } &&
35136 { ac_try='test -z "$ac_c_werror_flag"
35137 || test ! -s conftest.err'
35138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139 (eval $ac_try) 2>&5
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); }; } &&
35143 { ac_try='test -s conftest.$ac_objext'
35144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145 (eval $ac_try) 2>&5
35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148 (exit $ac_status); }; }; then
35149 ac_header_compiler=yes
35151 echo "$as_me: failed program was:" >&5
35152 sed 's/^/| /' conftest.$ac_ext >&5
35154 ac_header_compiler=no
35156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35158 echo "${ECHO_T}$ac_header_compiler" >&6
35160 # Is the header present?
35161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35163 cat >conftest.$ac_ext <<_ACEOF
35166 cat confdefs.h >>conftest.$ac_ext
35167 cat >>conftest.$ac_ext <<_ACEOF
35168 /* end confdefs.h. */
35169 #include <$ac_header>
35171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35174 grep -v '^ *+' conftest.er1 >conftest.err
35176 cat conftest.err >&5
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); } >/dev/null; then
35179 if test -s conftest.err; then
35180 ac_cpp_err=$ac_c_preproc_warn_flag
35181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35188 if test -z "$ac_cpp_err"; then
35189 ac_header_preproc=yes
35191 echo "$as_me: failed program was:" >&5
35192 sed 's/^/| /' conftest.$ac_ext >&5
35194 ac_header_preproc=no
35196 rm -f conftest.err conftest.$ac_ext
35197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35198 echo "${ECHO_T}$ac_header_preproc" >&6
35200 # So? What about this header?
35201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35207 ac_header_preproc=yes
35210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35224 ## --------------------------------------------- ##
35225 ## Report this to <http://www.openldap.org/its/> ##
35226 ## --------------------------------------------- ##
35229 sed "s/^/$as_me: WARNING: /" >&2
35232 echo "$as_me:$LINENO: checking for $ac_header" >&5
35233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35235 echo $ECHO_N "(cached) $ECHO_C" >&6
35237 eval "$as_ac_Header=\$ac_header_preproc"
35239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35244 cat >>confdefs.h <<_ACEOF
35245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35252 echo "$as_me:$LINENO: checking for db" >&5
35253 echo $ECHO_N "checking for db... $ECHO_C" >&6
35254 if test "${ol_cv_mdbm+set}" = set; then
35255 echo $ECHO_N "(cached) $ECHO_C" >&6
35258 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35265 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35266 echo "${ECHO_T}$ol_cv_mdbm" >&6
35267 if test $ol_cv_mdbm = yes ; then
35269 cat >>confdefs.h <<\_ACEOF
35270 #define HAVE_MDBM 1
35276 if test $ol_cv_mdbm = yes ; then
35278 ol_enable_ldbm_api=mdbm
35279 if test $ol_cv_lib_mdbm != yes ; then
35280 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35285 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35286 echo "$as_me:$LINENO: checking for GDBM library" >&5
35287 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35288 if test "${ol_cv_lib_gdbm+set}" = set; then
35289 echo $ECHO_N "(cached) $ECHO_C" >&6
35292 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35293 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35294 if test "${ac_cv_func_gdbm_open+set}" = set; then
35295 echo $ECHO_N "(cached) $ECHO_C" >&6
35297 cat >conftest.$ac_ext <<_ACEOF
35300 cat confdefs.h >>conftest.$ac_ext
35301 cat >>conftest.$ac_ext <<_ACEOF
35302 /* end confdefs.h. */
35303 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35305 #define gdbm_open innocuous_gdbm_open
35307 /* System header to define __stub macros and hopefully few prototypes,
35308 which can conflict with char gdbm_open (); below.
35309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35310 <limits.h> exists even on freestanding compilers. */
35313 # include <limits.h>
35315 # include <assert.h>
35320 /* Override any gcc2 internal prototype to avoid an error. */
35325 /* We use char because int might match the return type of a gcc2
35326 builtin and then its argument prototype would still apply. */
35328 /* The GNU C library defines this for functions which it implements
35329 to always fail with ENOSYS. Some functions are actually named
35330 something starting with __ and the normal name is an alias. */
35331 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35334 char (*f) () = gdbm_open;
35343 return f != gdbm_open;
35348 rm -f conftest.$ac_objext conftest$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350 (eval $ac_link) 2>conftest.er1
35352 grep -v '^ *+' conftest.er1 >conftest.err
35354 cat conftest.err >&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); } &&
35357 { ac_try='test -z "$ac_c_werror_flag"
35358 || test ! -s conftest.err'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; } &&
35364 { ac_try='test -s conftest$ac_exeext'
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; }; then
35370 ac_cv_func_gdbm_open=yes
35372 echo "$as_me: failed program was:" >&5
35373 sed 's/^/| /' conftest.$ac_ext >&5
35375 ac_cv_func_gdbm_open=no
35377 rm -f conftest.err conftest.$ac_objext \
35378 conftest$ac_exeext conftest.$ac_ext
35380 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35381 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35382 if test $ac_cv_func_gdbm_open = yes; then
35386 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35387 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35388 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35391 ac_check_lib_save_LIBS=$LIBS
35392 LIBS="-lgdbm $LIBS"
35393 cat >conftest.$ac_ext <<_ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h. */
35400 /* Override any gcc2 internal prototype to avoid an error. */
35404 /* We use char because int might match the return type of a gcc2
35405 builtin and then its argument prototype would still apply. */
35415 rm -f conftest.$ac_objext conftest$ac_exeext
35416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35417 (eval $ac_link) 2>conftest.er1
35419 grep -v '^ *+' conftest.er1 >conftest.err
35421 cat conftest.err >&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } &&
35424 { ac_try='test -z "$ac_c_werror_flag"
35425 || test ! -s conftest.err'
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; } &&
35431 { ac_try='test -s conftest$ac_exeext'
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 ac_cv_lib_gdbm_gdbm_open=yes
35439 echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35442 ac_cv_lib_gdbm_gdbm_open=no
35444 rm -f conftest.err conftest.$ac_objext \
35445 conftest$ac_exeext conftest.$ac_ext
35446 LIBS=$ac_check_lib_save_LIBS
35448 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35449 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35450 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35451 ol_cv_lib_gdbm=-lgdbm
35462 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35463 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35467 for ac_header in gdbm.h
35469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35471 echo "$as_me:$LINENO: checking for $ac_header" >&5
35472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35474 echo $ECHO_N "(cached) $ECHO_C" >&6
35476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35479 # Is the header compilable?
35480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35482 cat >conftest.$ac_ext <<_ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h. */
35488 $ac_includes_default
35489 #include <$ac_header>
35491 rm -f conftest.$ac_objext
35492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35493 (eval $ac_compile) 2>conftest.er1
35495 grep -v '^ *+' conftest.er1 >conftest.err
35497 cat conftest.err >&5
35498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499 (exit $ac_status); } &&
35500 { ac_try='test -z "$ac_c_werror_flag"
35501 || test ! -s conftest.err'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503 (eval $ac_try) 2>&5
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; } &&
35507 { ac_try='test -s conftest.$ac_objext'
35508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35509 (eval $ac_try) 2>&5
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); }; }; then
35513 ac_header_compiler=yes
35515 echo "$as_me: failed program was:" >&5
35516 sed 's/^/| /' conftest.$ac_ext >&5
35518 ac_header_compiler=no
35520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35522 echo "${ECHO_T}$ac_header_compiler" >&6
35524 # Is the header present?
35525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35527 cat >conftest.$ac_ext <<_ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h. */
35533 #include <$ac_header>
35535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35538 grep -v '^ *+' conftest.er1 >conftest.err
35540 cat conftest.err >&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); } >/dev/null; then
35543 if test -s conftest.err; then
35544 ac_cpp_err=$ac_c_preproc_warn_flag
35545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35552 if test -z "$ac_cpp_err"; then
35553 ac_header_preproc=yes
35555 echo "$as_me: failed program was:" >&5
35556 sed 's/^/| /' conftest.$ac_ext >&5
35558 ac_header_preproc=no
35560 rm -f conftest.err conftest.$ac_ext
35561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35562 echo "${ECHO_T}$ac_header_preproc" >&6
35564 # So? What about this header?
35565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35571 ac_header_preproc=yes
35574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35588 ## --------------------------------------------- ##
35589 ## Report this to <http://www.openldap.org/its/> ##
35590 ## --------------------------------------------- ##
35593 sed "s/^/$as_me: WARNING: /" >&2
35596 echo "$as_me:$LINENO: checking for $ac_header" >&5
35597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35599 echo $ECHO_N "(cached) $ECHO_C" >&6
35601 eval "$as_ac_Header=\$ac_header_preproc"
35603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35608 cat >>confdefs.h <<_ACEOF
35609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35616 echo "$as_me:$LINENO: checking for db" >&5
35617 echo $ECHO_N "checking for db... $ECHO_C" >&6
35618 if test "${ol_cv_gdbm+set}" = set; then
35619 echo $ECHO_N "(cached) $ECHO_C" >&6
35622 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35629 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35630 echo "${ECHO_T}$ol_cv_gdbm" >&6
35631 if test $ol_cv_gdbm = yes ; then
35633 cat >>confdefs.h <<\_ACEOF
35634 #define HAVE_GDBM 1
35640 if test $ol_cv_gdbm = yes ; then
35642 ol_enable_ldbm_api=gdbm
35644 if test $ol_cv_lib_gdbm != yes ; then
35645 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35650 if test $ol_enable_ldbm_api = ndbm ; then
35651 echo "$as_me:$LINENO: checking for NDBM library" >&5
35652 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35653 if test "${ol_cv_lib_ndbm+set}" = set; then
35654 echo $ECHO_N "(cached) $ECHO_C" >&6
35657 echo "$as_me:$LINENO: checking for dbm_open" >&5
35658 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35659 if test "${ac_cv_func_dbm_open+set}" = set; then
35660 echo $ECHO_N "(cached) $ECHO_C" >&6
35662 cat >conftest.$ac_ext <<_ACEOF
35665 cat confdefs.h >>conftest.$ac_ext
35666 cat >>conftest.$ac_ext <<_ACEOF
35667 /* end confdefs.h. */
35668 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35670 #define dbm_open innocuous_dbm_open
35672 /* System header to define __stub macros and hopefully few prototypes,
35673 which can conflict with char dbm_open (); below.
35674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35675 <limits.h> exists even on freestanding compilers. */
35678 # include <limits.h>
35680 # include <assert.h>
35685 /* Override any gcc2 internal prototype to avoid an error. */
35690 /* We use char because int might match the return type of a gcc2
35691 builtin and then its argument prototype would still apply. */
35693 /* The GNU C library defines this for functions which it implements
35694 to always fail with ENOSYS. Some functions are actually named
35695 something starting with __ and the normal name is an alias. */
35696 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35699 char (*f) () = dbm_open;
35708 return f != dbm_open;
35713 rm -f conftest.$ac_objext conftest$ac_exeext
35714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35715 (eval $ac_link) 2>conftest.er1
35717 grep -v '^ *+' conftest.er1 >conftest.err
35719 cat conftest.err >&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); } &&
35722 { ac_try='test -z "$ac_c_werror_flag"
35723 || test ! -s conftest.err'
35724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35725 (eval $ac_try) 2>&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); }; } &&
35729 { ac_try='test -s conftest$ac_exeext'
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; }; then
35735 ac_cv_func_dbm_open=yes
35737 echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35740 ac_cv_func_dbm_open=no
35742 rm -f conftest.err conftest.$ac_objext \
35743 conftest$ac_exeext conftest.$ac_ext
35745 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35746 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35747 if test $ac_cv_func_dbm_open = yes; then
35751 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35752 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35753 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35754 echo $ECHO_N "(cached) $ECHO_C" >&6
35756 ac_check_lib_save_LIBS=$LIBS
35757 LIBS="-lndbm $LIBS"
35758 cat >conftest.$ac_ext <<_ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35765 /* Override any gcc2 internal prototype to avoid an error. */
35769 /* We use char because int might match the return type of a gcc2
35770 builtin and then its argument prototype would still apply. */
35780 rm -f conftest.$ac_objext conftest$ac_exeext
35781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35782 (eval $ac_link) 2>conftest.er1
35784 grep -v '^ *+' conftest.er1 >conftest.err
35786 cat conftest.err >&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } &&
35789 { ac_try='test -z "$ac_c_werror_flag"
35790 || test ! -s conftest.err'
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; } &&
35796 { ac_try='test -s conftest$ac_exeext'
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; }; then
35802 ac_cv_lib_ndbm_dbm_open=yes
35804 echo "$as_me: failed program was:" >&5
35805 sed 's/^/| /' conftest.$ac_ext >&5
35807 ac_cv_lib_ndbm_dbm_open=no
35809 rm -f conftest.err conftest.$ac_objext \
35810 conftest$ac_exeext conftest.$ac_ext
35811 LIBS=$ac_check_lib_save_LIBS
35813 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35814 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35815 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35816 ol_cv_lib_ndbm=-lndbm
35819 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35820 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35821 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35822 echo $ECHO_N "(cached) $ECHO_C" >&6
35824 ac_check_lib_save_LIBS=$LIBS
35826 cat >conftest.$ac_ext <<_ACEOF
35829 cat confdefs.h >>conftest.$ac_ext
35830 cat >>conftest.$ac_ext <<_ACEOF
35831 /* end confdefs.h. */
35833 /* Override any gcc2 internal prototype to avoid an error. */
35837 /* We use char because int might match the return type of a gcc2
35838 builtin and then its argument prototype would still apply. */
35848 rm -f conftest.$ac_objext conftest$ac_exeext
35849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35850 (eval $ac_link) 2>conftest.er1
35852 grep -v '^ *+' conftest.er1 >conftest.err
35854 cat conftest.err >&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); } &&
35857 { ac_try='test -z "$ac_c_werror_flag"
35858 || test ! -s conftest.err'
35859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35860 (eval $ac_try) 2>&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); }; } &&
35864 { ac_try='test -s conftest$ac_exeext'
35865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866 (eval $ac_try) 2>&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); }; }; then
35870 ac_cv_lib_dbm_dbm_open=yes
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 ac_cv_lib_dbm_dbm_open=no
35877 rm -f conftest.err conftest.$ac_objext \
35878 conftest$ac_exeext conftest.$ac_ext
35879 LIBS=$ac_check_lib_save_LIBS
35881 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35882 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35883 if test $ac_cv_lib_dbm_dbm_open = yes; then
35884 ol_cv_lib_ndbm=-ldbm
35897 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35898 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35902 for ac_header in ndbm.h
35904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35906 echo "$as_me:$LINENO: checking for $ac_header" >&5
35907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35909 echo $ECHO_N "(cached) $ECHO_C" >&6
35911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35914 # Is the header compilable?
35915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35917 cat >conftest.$ac_ext <<_ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h. */
35923 $ac_includes_default
35924 #include <$ac_header>
35926 rm -f conftest.$ac_objext
35927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35928 (eval $ac_compile) 2>conftest.er1
35930 grep -v '^ *+' conftest.er1 >conftest.err
35932 cat conftest.err >&5
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); } &&
35935 { ac_try='test -z "$ac_c_werror_flag"
35936 || test ! -s conftest.err'
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; } &&
35942 { ac_try='test -s conftest.$ac_objext'
35943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35944 (eval $ac_try) 2>&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); }; }; then
35948 ac_header_compiler=yes
35950 echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 ac_header_compiler=no
35955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35957 echo "${ECHO_T}$ac_header_compiler" >&6
35959 # Is the header present?
35960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35962 cat >conftest.$ac_ext <<_ACEOF
35965 cat confdefs.h >>conftest.$ac_ext
35966 cat >>conftest.$ac_ext <<_ACEOF
35967 /* end confdefs.h. */
35968 #include <$ac_header>
35970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35973 grep -v '^ *+' conftest.er1 >conftest.err
35975 cat conftest.err >&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); } >/dev/null; then
35978 if test -s conftest.err; then
35979 ac_cpp_err=$ac_c_preproc_warn_flag
35980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35987 if test -z "$ac_cpp_err"; then
35988 ac_header_preproc=yes
35990 echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35993 ac_header_preproc=no
35995 rm -f conftest.err conftest.$ac_ext
35996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35997 echo "${ECHO_T}$ac_header_preproc" >&6
35999 # So? What about this header?
36000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36006 ac_header_preproc=yes
36009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36023 ## --------------------------------------------- ##
36024 ## Report this to <http://www.openldap.org/its/> ##
36025 ## --------------------------------------------- ##
36028 sed "s/^/$as_me: WARNING: /" >&2
36031 echo "$as_me:$LINENO: checking for $ac_header" >&5
36032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36034 echo $ECHO_N "(cached) $ECHO_C" >&6
36036 eval "$as_ac_Header=\$ac_header_preproc"
36038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36043 cat >>confdefs.h <<_ACEOF
36044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36051 echo "$as_me:$LINENO: checking for db" >&5
36052 echo $ECHO_N "checking for db... $ECHO_C" >&6
36053 if test "${ol_cv_ndbm+set}" = set; then
36054 echo $ECHO_N "(cached) $ECHO_C" >&6
36057 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36064 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36065 echo "${ECHO_T}$ol_cv_ndbm" >&6
36066 if test $ol_cv_ndbm = yes ; then
36068 cat >>confdefs.h <<\_ACEOF
36069 #define HAVE_NDBM 1
36075 if test $ol_cv_ndbm = yes ; then
36077 ol_enable_ldbm_api=ndbm
36079 if test $ol_cv_lib_ndbm != yes ; then
36080 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36085 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36086 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36087 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36088 { (exit 1); exit 1; }; }
36091 if test $ol_enable_bdb = yes ||
36092 test $ol_enable_hdb = yes ||
36093 test $ol_enable_ldbm = yes ; then
36094 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36098 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36099 BUILD_LIBS_DYNAMIC=shared
36101 cat >>confdefs.h <<\_ACEOF
36102 #define LDAP_LIBS_DYNAMIC 1
36107 BUILD_LIBS_DYNAMIC=static
36111 if test $ol_enable_wrappers != no ; then
36113 for ac_header in tcpd.h
36115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36117 echo "$as_me:$LINENO: checking for $ac_header" >&5
36118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36120 echo $ECHO_N "(cached) $ECHO_C" >&6
36122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36125 # Is the header compilable?
36126 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36128 cat >conftest.$ac_ext <<_ACEOF
36131 cat confdefs.h >>conftest.$ac_ext
36132 cat >>conftest.$ac_ext <<_ACEOF
36133 /* end confdefs.h. */
36134 $ac_includes_default
36135 #include <$ac_header>
36137 rm -f conftest.$ac_objext
36138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36139 (eval $ac_compile) 2>conftest.er1
36141 grep -v '^ *+' conftest.er1 >conftest.err
36143 cat conftest.err >&5
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); } &&
36146 { ac_try='test -z "$ac_c_werror_flag"
36147 || test ! -s conftest.err'
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; } &&
36153 { ac_try='test -s conftest.$ac_objext'
36154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36155 (eval $ac_try) 2>&5
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); }; }; then
36159 ac_header_compiler=yes
36161 echo "$as_me: failed program was:" >&5
36162 sed 's/^/| /' conftest.$ac_ext >&5
36164 ac_header_compiler=no
36166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36168 echo "${ECHO_T}$ac_header_compiler" >&6
36170 # Is the header present?
36171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36173 cat >conftest.$ac_ext <<_ACEOF
36176 cat confdefs.h >>conftest.$ac_ext
36177 cat >>conftest.$ac_ext <<_ACEOF
36178 /* end confdefs.h. */
36179 #include <$ac_header>
36181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36184 grep -v '^ *+' conftest.er1 >conftest.err
36186 cat conftest.err >&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } >/dev/null; then
36189 if test -s conftest.err; then
36190 ac_cpp_err=$ac_c_preproc_warn_flag
36191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36198 if test -z "$ac_cpp_err"; then
36199 ac_header_preproc=yes
36201 echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36204 ac_header_preproc=no
36206 rm -f conftest.err conftest.$ac_ext
36207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36208 echo "${ECHO_T}$ac_header_preproc" >&6
36210 # So? What about this header?
36211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36217 ac_header_preproc=yes
36220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36234 ## --------------------------------------------- ##
36235 ## Report this to <http://www.openldap.org/its/> ##
36236 ## --------------------------------------------- ##
36239 sed "s/^/$as_me: WARNING: /" >&2
36242 echo "$as_me:$LINENO: checking for $ac_header" >&5
36243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36245 echo $ECHO_N "(cached) $ECHO_C" >&6
36247 eval "$as_ac_Header=\$ac_header_preproc"
36249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36254 cat >>confdefs.h <<_ACEOF
36255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36258 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36259 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36261 LIBS="$LIBS -lwrap"
36262 cat >conftest.$ac_ext <<_ACEOF
36265 cat confdefs.h >>conftest.$ac_ext
36266 cat >>conftest.$ac_ext <<_ACEOF
36267 /* end confdefs.h. */
36270 int allow_severity = 0;
36271 int deny_severity = 0;
36273 struct request_info *req;
36285 rm -f conftest.$ac_objext conftest$ac_exeext
36286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36287 (eval $ac_link) 2>conftest.er1
36289 grep -v '^ *+' conftest.er1 >conftest.err
36291 cat conftest.err >&5
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); } &&
36294 { ac_try='test -z "$ac_c_werror_flag"
36295 || test ! -s conftest.err'
36296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297 (eval $ac_try) 2>&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); }; } &&
36301 { ac_try='test -s conftest$ac_exeext'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
36307 echo "$as_me:$LINENO: result: -lwrap" >&5
36308 echo "${ECHO_T}-lwrap" >&6
36312 echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36317 cat >conftest.$ac_ext <<_ACEOF
36320 cat confdefs.h >>conftest.$ac_ext
36321 cat >>conftest.$ac_ext <<_ACEOF
36322 /* end confdefs.h. */
36325 int allow_severity = 0;
36326 int deny_severity = 0;
36328 struct request_info *req;
36340 rm -f conftest.$ac_objext conftest$ac_exeext
36341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36342 (eval $ac_link) 2>conftest.er1
36344 grep -v '^ *+' conftest.er1 >conftest.err
36346 cat conftest.err >&5
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); } &&
36349 { ac_try='test -z "$ac_c_werror_flag"
36350 || test ! -s conftest.err'
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; } &&
36356 { ac_try='test -s conftest$ac_exeext'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36363 echo "${ECHO_T}-lwrap -lnsl" >&6
36365 LIBS="$save_LIBS -lnsl"
36367 echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36371 echo "$as_me:$LINENO: result: no" >&5
36372 echo "${ECHO_T}no" >&6
36376 rm -f conftest.err conftest.$ac_objext \
36377 conftest$ac_exeext conftest.$ac_ext
36379 rm -f conftest.err conftest.$ac_objext \
36380 conftest$ac_exeext conftest.$ac_ext
36388 if test $have_wrappers = yes ; then
36390 cat >>confdefs.h <<\_ACEOF
36391 #define HAVE_TCPD 1
36395 elif test $ol_enable_wrappers = yes ; then
36396 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36397 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36398 { (exit 1); exit 1; }; }
36400 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36401 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36406 if test $ol_enable_syslog != no ; then
36407 echo "$as_me:$LINENO: checking for openlog" >&5
36408 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36409 if test "${ac_cv_func_openlog+set}" = set; then
36410 echo $ECHO_N "(cached) $ECHO_C" >&6
36412 cat >conftest.$ac_ext <<_ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36418 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36420 #define openlog innocuous_openlog
36422 /* System header to define __stub macros and hopefully few prototypes,
36423 which can conflict with char openlog (); below.
36424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36425 <limits.h> exists even on freestanding compilers. */
36428 # include <limits.h>
36430 # include <assert.h>
36435 /* Override any gcc2 internal prototype to avoid an error. */
36440 /* We use char because int might match the return type of a gcc2
36441 builtin and then its argument prototype would still apply. */
36443 /* The GNU C library defines this for functions which it implements
36444 to always fail with ENOSYS. Some functions are actually named
36445 something starting with __ and the normal name is an alias. */
36446 #if defined (__stub_openlog) || defined (__stub___openlog)
36449 char (*f) () = openlog;
36458 return f != openlog;
36463 rm -f conftest.$ac_objext conftest$ac_exeext
36464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36465 (eval $ac_link) 2>conftest.er1
36467 grep -v '^ *+' conftest.er1 >conftest.err
36469 cat conftest.err >&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); } &&
36472 { ac_try='test -z "$ac_c_werror_flag"
36473 || test ! -s conftest.err'
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; } &&
36479 { ac_try='test -s conftest$ac_exeext'
36480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481 (eval $ac_try) 2>&5
36483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484 (exit $ac_status); }; }; then
36485 ac_cv_func_openlog=yes
36487 echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36490 ac_cv_func_openlog=no
36492 rm -f conftest.err conftest.$ac_objext \
36493 conftest$ac_exeext conftest.$ac_ext
36495 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36496 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36498 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36499 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36500 echo "$as_me: error: could not find syslog" >&2;}
36501 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36503 ol_enable_syslog=$ac_cv_func_openlog
36507 if test $ol_enable_sql != no ; then
36510 for ac_header in sql.h sqlext.h
36512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36514 echo "$as_me:$LINENO: checking for $ac_header" >&5
36515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36517 echo $ECHO_N "(cached) $ECHO_C" >&6
36519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36522 # Is the header compilable?
36523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36525 cat >conftest.$ac_ext <<_ACEOF
36528 cat confdefs.h >>conftest.$ac_ext
36529 cat >>conftest.$ac_ext <<_ACEOF
36530 /* end confdefs.h. */
36531 $ac_includes_default
36532 #include <$ac_header>
36534 rm -f conftest.$ac_objext
36535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36536 (eval $ac_compile) 2>conftest.er1
36538 grep -v '^ *+' conftest.er1 >conftest.err
36540 cat conftest.err >&5
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); } &&
36543 { ac_try='test -z "$ac_c_werror_flag"
36544 || test ! -s conftest.err'
36545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36546 (eval $ac_try) 2>&5
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); }; } &&
36550 { ac_try='test -s conftest.$ac_objext'
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; }; then
36556 ac_header_compiler=yes
36558 echo "$as_me: failed program was:" >&5
36559 sed 's/^/| /' conftest.$ac_ext >&5
36561 ac_header_compiler=no
36563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36565 echo "${ECHO_T}$ac_header_compiler" >&6
36567 # Is the header present?
36568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36570 cat >conftest.$ac_ext <<_ACEOF
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h. */
36576 #include <$ac_header>
36578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36581 grep -v '^ *+' conftest.er1 >conftest.err
36583 cat conftest.err >&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } >/dev/null; then
36586 if test -s conftest.err; then
36587 ac_cpp_err=$ac_c_preproc_warn_flag
36588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36595 if test -z "$ac_cpp_err"; then
36596 ac_header_preproc=yes
36598 echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36601 ac_header_preproc=no
36603 rm -f conftest.err conftest.$ac_ext
36604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36605 echo "${ECHO_T}$ac_header_preproc" >&6
36607 # So? What about this header?
36608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36614 ac_header_preproc=yes
36617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36631 ## --------------------------------------------- ##
36632 ## Report this to <http://www.openldap.org/its/> ##
36633 ## --------------------------------------------- ##
36636 sed "s/^/$as_me: WARNING: /" >&2
36639 echo "$as_me:$LINENO: checking for $ac_header" >&5
36640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36644 eval "$as_ac_Header=\$ac_header_preproc"
36646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36651 cat >>confdefs.h <<_ACEOF
36652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36657 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36658 echo "$as_me: error: could not locate SQL headers" >&2;}
36659 { (exit 1); exit 1; }; }
36667 LIBS="$LTHREAD_LIBS"
36669 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36670 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36671 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36672 echo $ECHO_N "(cached) $ECHO_C" >&6
36674 ac_check_lib_save_LIBS=$LIBS
36675 LIBS="-liodbc $LIBS"
36676 cat >conftest.$ac_ext <<_ACEOF
36679 cat confdefs.h >>conftest.$ac_ext
36680 cat >>conftest.$ac_ext <<_ACEOF
36681 /* end confdefs.h. */
36683 /* Override any gcc2 internal prototype to avoid an error. */
36687 /* We use char because int might match the return type of a gcc2
36688 builtin and then its argument prototype would still apply. */
36689 char SQLDriverConnect ();
36693 SQLDriverConnect ();
36698 rm -f conftest.$ac_objext conftest$ac_exeext
36699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36700 (eval $ac_link) 2>conftest.er1
36702 grep -v '^ *+' conftest.er1 >conftest.err
36704 cat conftest.err >&5
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); } &&
36707 { ac_try='test -z "$ac_c_werror_flag"
36708 || test ! -s conftest.err'
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; } &&
36714 { ac_try='test -s conftest$ac_exeext'
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; }; then
36720 ac_cv_lib_iodbc_SQLDriverConnect=yes
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36725 ac_cv_lib_iodbc_SQLDriverConnect=no
36727 rm -f conftest.err conftest.$ac_objext \
36728 conftest$ac_exeext conftest.$ac_ext
36729 LIBS=$ac_check_lib_save_LIBS
36731 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36732 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36733 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36739 if test $have_iodbc = yes ; then
36740 ol_link_sql="-liodbc"
36742 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36743 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36744 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36745 echo $ECHO_N "(cached) $ECHO_C" >&6
36747 ac_check_lib_save_LIBS=$LIBS
36748 LIBS="-lodbc $LIBS"
36749 cat >conftest.$ac_ext <<_ACEOF
36752 cat confdefs.h >>conftest.$ac_ext
36753 cat >>conftest.$ac_ext <<_ACEOF
36754 /* end confdefs.h. */
36756 /* Override any gcc2 internal prototype to avoid an error. */
36760 /* We use char because int might match the return type of a gcc2
36761 builtin and then its argument prototype would still apply. */
36762 char SQLDriverConnect ();
36766 SQLDriverConnect ();
36771 rm -f conftest.$ac_objext conftest$ac_exeext
36772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36773 (eval $ac_link) 2>conftest.er1
36775 grep -v '^ *+' conftest.er1 >conftest.err
36777 cat conftest.err >&5
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); } &&
36780 { ac_try='test -z "$ac_c_werror_flag"
36781 || test ! -s conftest.err'
36782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36783 (eval $ac_try) 2>&5
36785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36786 (exit $ac_status); }; } &&
36787 { ac_try='test -s conftest$ac_exeext'
36788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36789 (eval $ac_try) 2>&5
36791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36792 (exit $ac_status); }; }; then
36793 ac_cv_lib_odbc_SQLDriverConnect=yes
36795 echo "$as_me: failed program was:" >&5
36796 sed 's/^/| /' conftest.$ac_ext >&5
36798 ac_cv_lib_odbc_SQLDriverConnect=no
36800 rm -f conftest.err conftest.$ac_objext \
36801 conftest$ac_exeext conftest.$ac_ext
36802 LIBS=$ac_check_lib_save_LIBS
36804 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36805 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36806 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36812 if test $have_odbc = yes ; then
36813 ol_link_sql="-lodbc"
36819 if test $ol_link_sql != no ; then
36820 SLAPD_SQL_LIBS="$ol_link_sql"
36822 elif test $ol_enable_sql != auto ; then
36823 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36824 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36825 { (exit 1); exit 1; }; }
36831 for ac_header in unicode/utypes.h
36833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36835 echo "$as_me:$LINENO: checking for $ac_header" >&5
36836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36838 echo $ECHO_N "(cached) $ECHO_C" >&6
36840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36843 # Is the header compilable?
36844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36846 cat >conftest.$ac_ext <<_ACEOF
36849 cat confdefs.h >>conftest.$ac_ext
36850 cat >>conftest.$ac_ext <<_ACEOF
36851 /* end confdefs.h. */
36852 $ac_includes_default
36853 #include <$ac_header>
36855 rm -f conftest.$ac_objext
36856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36857 (eval $ac_compile) 2>conftest.er1
36859 grep -v '^ *+' conftest.er1 >conftest.err
36861 cat conftest.err >&5
36862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863 (exit $ac_status); } &&
36864 { ac_try='test -z "$ac_c_werror_flag"
36865 || test ! -s conftest.err'
36866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36867 (eval $ac_try) 2>&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); }; } &&
36871 { ac_try='test -s conftest.$ac_objext'
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; }; then
36877 ac_header_compiler=yes
36879 echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36882 ac_header_compiler=no
36884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36886 echo "${ECHO_T}$ac_header_compiler" >&6
36888 # Is the header present?
36889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36891 cat >conftest.$ac_ext <<_ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h. */
36897 #include <$ac_header>
36899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36902 grep -v '^ *+' conftest.er1 >conftest.err
36904 cat conftest.err >&5
36905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); } >/dev/null; then
36907 if test -s conftest.err; then
36908 ac_cpp_err=$ac_c_preproc_warn_flag
36909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36916 if test -z "$ac_cpp_err"; then
36917 ac_header_preproc=yes
36919 echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36922 ac_header_preproc=no
36924 rm -f conftest.err conftest.$ac_ext
36925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36926 echo "${ECHO_T}$ac_header_preproc" >&6
36928 # So? What about this header?
36929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36935 ac_header_preproc=yes
36938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36952 ## --------------------------------------------- ##
36953 ## Report this to <http://www.openldap.org/its/> ##
36954 ## --------------------------------------------- ##
36957 sed "s/^/$as_me: WARNING: /" >&2
36960 echo "$as_me:$LINENO: checking for $ac_header" >&5
36961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36963 echo $ECHO_N "(cached) $ECHO_C" >&6
36965 eval "$as_ac_Header=\$ac_header_preproc"
36967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36972 cat >>confdefs.h <<_ACEOF
36973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36980 if test $ac_cv_header_unicode_utypes_h = yes ; then
36981 OL_ICULIBS="-licuuc -licudata"
36983 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36984 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36985 if test "${ol_cv_lib_icu+set}" = set; then
36986 echo $ECHO_N "(cached) $ECHO_C" >&6
36990 LIBS="$OL_ICULIBS $LIBS"
36991 cat >conftest.$ac_ext <<_ACEOF
36994 cat confdefs.h >>conftest.$ac_ext
36995 cat >>conftest.$ac_ext <<_ACEOF
36996 /* end confdefs.h. */
36998 #include <unicode/utypes.h>
37004 (void) u_errorName(0);
37010 rm -f conftest.$ac_objext conftest$ac_exeext
37011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37012 (eval $ac_link) 2>conftest.er1
37014 grep -v '^ *+' conftest.er1 >conftest.err
37016 cat conftest.err >&5
37017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018 (exit $ac_status); } &&
37019 { ac_try='test -z "$ac_c_werror_flag"
37020 || test ! -s conftest.err'
37021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022 (eval $ac_try) 2>&5
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); }; } &&
37026 { ac_try='test -s conftest$ac_exeext'
37027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37028 (eval $ac_try) 2>&5
37030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031 (exit $ac_status); }; }; then
37034 echo "$as_me: failed program was:" >&5
37035 sed 's/^/| /' conftest.$ac_ext >&5
37039 rm -f conftest.err conftest.$ac_objext \
37040 conftest$ac_exeext conftest.$ac_ext
37044 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
37045 echo "${ECHO_T}$ol_cv_lib_icu" >&6
37047 if test $ol_cv_lib_icu != no ; then
37048 ol_icu="$OL_ICULIBS"
37050 cat >>confdefs.h <<\_ACEOF
37057 if test "$ol_icu" = no ; then
37058 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37059 echo "$as_me: WARNING: ICU not available" >&2;}
37066 if test $ol_with_cyrus_sasl != no ; then
37069 for ac_header in sasl/sasl.h sasl.h
37071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37073 echo "$as_me:$LINENO: checking for $ac_header" >&5
37074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37076 echo $ECHO_N "(cached) $ECHO_C" >&6
37078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37081 # Is the header compilable?
37082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37084 cat >conftest.$ac_ext <<_ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h. */
37090 $ac_includes_default
37091 #include <$ac_header>
37093 rm -f conftest.$ac_objext
37094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37095 (eval $ac_compile) 2>conftest.er1
37097 grep -v '^ *+' conftest.er1 >conftest.err
37099 cat conftest.err >&5
37100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101 (exit $ac_status); } &&
37102 { ac_try='test -z "$ac_c_werror_flag"
37103 || test ! -s conftest.err'
37104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37105 (eval $ac_try) 2>&5
37107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37108 (exit $ac_status); }; } &&
37109 { ac_try='test -s conftest.$ac_objext'
37110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37111 (eval $ac_try) 2>&5
37113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114 (exit $ac_status); }; }; then
37115 ac_header_compiler=yes
37117 echo "$as_me: failed program was:" >&5
37118 sed 's/^/| /' conftest.$ac_ext >&5
37120 ac_header_compiler=no
37122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37124 echo "${ECHO_T}$ac_header_compiler" >&6
37126 # Is the header present?
37127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37129 cat >conftest.$ac_ext <<_ACEOF
37132 cat confdefs.h >>conftest.$ac_ext
37133 cat >>conftest.$ac_ext <<_ACEOF
37134 /* end confdefs.h. */
37135 #include <$ac_header>
37137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37140 grep -v '^ *+' conftest.er1 >conftest.err
37142 cat conftest.err >&5
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); } >/dev/null; then
37145 if test -s conftest.err; then
37146 ac_cpp_err=$ac_c_preproc_warn_flag
37147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37154 if test -z "$ac_cpp_err"; then
37155 ac_header_preproc=yes
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37160 ac_header_preproc=no
37162 rm -f conftest.err conftest.$ac_ext
37163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37164 echo "${ECHO_T}$ac_header_preproc" >&6
37166 # So? What about this header?
37167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37173 ac_header_preproc=yes
37176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37190 ## --------------------------------------------- ##
37191 ## Report this to <http://www.openldap.org/its/> ##
37192 ## --------------------------------------------- ##
37195 sed "s/^/$as_me: WARNING: /" >&2
37198 echo "$as_me:$LINENO: checking for $ac_header" >&5
37199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37201 echo $ECHO_N "(cached) $ECHO_C" >&6
37203 eval "$as_ac_Header=\$ac_header_preproc"
37205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37210 cat >>confdefs.h <<_ACEOF
37211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37219 if test $ac_cv_header_sasl_sasl_h = yes ||
37220 test $ac_cv_header_sasl_h = yes; then
37221 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37222 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37223 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37224 echo $ECHO_N "(cached) $ECHO_C" >&6
37226 ac_check_lib_save_LIBS=$LIBS
37227 LIBS="-lsasl2 $LIBS"
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37235 /* Override any gcc2 internal prototype to avoid an error. */
37239 /* We use char because int might match the return type of a gcc2
37240 builtin and then its argument prototype would still apply. */
37241 char sasl_client_init ();
37245 sasl_client_init ();
37250 rm -f conftest.$ac_objext conftest$ac_exeext
37251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37252 (eval $ac_link) 2>conftest.er1
37254 grep -v '^ *+' conftest.er1 >conftest.err
37256 cat conftest.err >&5
37257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258 (exit $ac_status); } &&
37259 { ac_try='test -z "$ac_c_werror_flag"
37260 || test ! -s conftest.err'
37261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37262 (eval $ac_try) 2>&5
37264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37265 (exit $ac_status); }; } &&
37266 { ac_try='test -s conftest$ac_exeext'
37267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37268 (eval $ac_try) 2>&5
37270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271 (exit $ac_status); }; }; then
37272 ac_cv_lib_sasl2_sasl_client_init=yes
37274 echo "$as_me: failed program was:" >&5
37275 sed 's/^/| /' conftest.$ac_ext >&5
37277 ac_cv_lib_sasl2_sasl_client_init=no
37279 rm -f conftest.err conftest.$ac_objext \
37280 conftest$ac_exeext conftest.$ac_ext
37281 LIBS=$ac_check_lib_save_LIBS
37283 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37284 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37285 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37286 ol_link_sasl="-lsasl2"
37288 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37289 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37290 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37291 echo $ECHO_N "(cached) $ECHO_C" >&6
37293 ac_check_lib_save_LIBS=$LIBS
37294 LIBS="-lsasl $LIBS"
37295 cat >conftest.$ac_ext <<_ACEOF
37298 cat confdefs.h >>conftest.$ac_ext
37299 cat >>conftest.$ac_ext <<_ACEOF
37300 /* end confdefs.h. */
37302 /* Override any gcc2 internal prototype to avoid an error. */
37306 /* We use char because int might match the return type of a gcc2
37307 builtin and then its argument prototype would still apply. */
37308 char sasl_client_init ();
37312 sasl_client_init ();
37317 rm -f conftest.$ac_objext conftest$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319 (eval $ac_link) 2>conftest.er1
37321 grep -v '^ *+' conftest.er1 >conftest.err
37323 cat conftest.err >&5
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); } &&
37326 { ac_try='test -z "$ac_c_werror_flag"
37327 || test ! -s conftest.err'
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; } &&
37333 { ac_try='test -s conftest$ac_exeext'
37334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37335 (eval $ac_try) 2>&5
37337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37338 (exit $ac_status); }; }; then
37339 ac_cv_lib_sasl_sasl_client_init=yes
37341 echo "$as_me: failed program was:" >&5
37342 sed 's/^/| /' conftest.$ac_ext >&5
37344 ac_cv_lib_sasl_sasl_client_init=no
37346 rm -f conftest.err conftest.$ac_objext \
37347 conftest$ac_exeext conftest.$ac_ext
37348 LIBS=$ac_check_lib_save_LIBS
37350 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37351 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37352 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37353 ol_link_sasl="-lsasl"
37360 if test $ol_link_sasl = no ; then
37361 if test $ol_with_cyrus_sasl != auto ; then
37362 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37363 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37364 { (exit 1); exit 1; }; }
37366 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37367 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37368 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37369 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37370 if test $ol_link_tls = no ; then
37371 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37372 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37376 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37377 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37378 if test "${ol_cv_sasl_compat+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37389 #ifdef HAVE_SASL_SASL_H
37390 #include <sasl/sasl.h>
37395 /* Require 2.1.15+ */
37396 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37397 char *__sasl_compat = "2.2+ or better okay (we guess)";
37398 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37399 && SASL_VERSION_STEP >=15
37400 char *__sasl_compat = "2.1.15+ or better okay";
37404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37405 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37406 ol_cv_sasl_compat=yes
37408 ol_cv_sasl_compat=no
37413 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37414 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37416 if test $ol_cv_sasl_compat = no ; then
37418 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37419 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37420 { (exit 1); exit 1; }; }
37424 cat >>confdefs.h <<\_ACEOF
37425 #define HAVE_CYRUS_SASL 1
37428 SASL_LIBS="$ol_link_sasl"
37429 if test $ol_enable_spasswd != no ; then
37430 ol_link_spasswd=yes
37433 ac_save_LIBS="$LIBS"
37434 LIBS="$LIBS $ol_link_sasl"
37435 echo "$as_me:$LINENO: checking for sasl_version" >&5
37436 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37437 if test "${ac_cv_func_sasl_version+set}" = set; then
37438 echo $ECHO_N "(cached) $ECHO_C" >&6
37440 cat >conftest.$ac_ext <<_ACEOF
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h. */
37446 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37448 #define sasl_version innocuous_sasl_version
37450 /* System header to define __stub macros and hopefully few prototypes,
37451 which can conflict with char sasl_version (); below.
37452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37453 <limits.h> exists even on freestanding compilers. */
37456 # include <limits.h>
37458 # include <assert.h>
37461 #undef sasl_version
37463 /* Override any gcc2 internal prototype to avoid an error. */
37468 /* We use char because int might match the return type of a gcc2
37469 builtin and then its argument prototype would still apply. */
37470 char sasl_version ();
37471 /* The GNU C library defines this for functions which it implements
37472 to always fail with ENOSYS. Some functions are actually named
37473 something starting with __ and the normal name is an alias. */
37474 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37477 char (*f) () = sasl_version;
37486 return f != sasl_version;
37491 rm -f conftest.$ac_objext conftest$ac_exeext
37492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37493 (eval $ac_link) 2>conftest.er1
37495 grep -v '^ *+' conftest.er1 >conftest.err
37497 cat conftest.err >&5
37498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499 (exit $ac_status); } &&
37500 { ac_try='test -z "$ac_c_werror_flag"
37501 || test ! -s conftest.err'
37502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503 (eval $ac_try) 2>&5
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; } &&
37507 { ac_try='test -s conftest$ac_exeext'
37508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37509 (eval $ac_try) 2>&5
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); }; }; then
37513 ac_cv_func_sasl_version=yes
37515 echo "$as_me: failed program was:" >&5
37516 sed 's/^/| /' conftest.$ac_ext >&5
37518 ac_cv_func_sasl_version=no
37520 rm -f conftest.err conftest.$ac_objext \
37521 conftest$ac_exeext conftest.$ac_ext
37523 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37524 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37525 if test $ac_cv_func_sasl_version = yes; then
37527 cat >>confdefs.h <<\_ACEOF
37528 #define HAVE_SASL_VERSION 1
37533 LIBS="$ac_save_LIBS"
37539 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37540 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37541 if test $ol_link_tls = no ; then
37542 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37543 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37547 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37549 if test -r /dev/urandom ; then
37550 dev="/dev/urandom";
37551 elif test -r /idev/urandom ; then
37552 dev="/idev/urandom";
37553 elif test -r /dev/srandom ; then
37554 dev="/dev/srandom";
37555 elif test -r /dev/random ; then
37557 elif test -r /idev/random ; then
37558 dev="/idev/random";
37561 if test $dev != no ; then
37563 cat >>confdefs.h <<_ACEOF
37564 #define URANDOM_DEVICE "$dev"
37571 if test $ol_with_fetch != no ; then
37573 LIBS="-lfetch -lcom_err $LIBS"
37574 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37575 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37576 if test "${ol_cv_lib_fetch+set}" = set; then
37577 echo $ECHO_N "(cached) $ECHO_C" >&6
37580 cat >conftest.$ac_ext <<_ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h. */
37587 #include <sys/param.h>
37593 struct url *u = fetchParseURL("file:///");
37598 rm -f conftest.$ac_objext conftest$ac_exeext
37599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37600 (eval $ac_link) 2>conftest.er1
37602 grep -v '^ *+' conftest.er1 >conftest.err
37604 cat conftest.err >&5
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); } &&
37607 { ac_try='test -z "$ac_c_werror_flag"
37608 || test ! -s conftest.err'
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; } &&
37614 { ac_try='test -s conftest$ac_exeext'
37615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616 (eval $ac_try) 2>&5
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); }; }; then
37620 ol_cv_lib_fetch=yes
37622 echo "$as_me: failed program was:" >&5
37623 sed 's/^/| /' conftest.$ac_ext >&5
37627 rm -f conftest.err conftest.$ac_objext \
37628 conftest$ac_exeext conftest.$ac_ext
37630 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37631 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37633 if test $ol_cv_lib_fetch != no ; then
37634 ol_link_fetch="-lfetch -lcom_err"
37636 cat >>confdefs.h <<\_ACEOF
37637 #define HAVE_FETCH 1
37643 if test $ol_cv_lib_fetch != no ; then
37644 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37645 ol_link_fetch=freebsd
37647 elif test $ol_with_fetch != auto ; then
37648 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37649 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37650 { (exit 1); exit 1; }; }
37654 if test $ol_enable_crypt != no ; then
37656 LIBS="$TLS_LIBS $LIBS"
37658 echo "$as_me:$LINENO: checking for crypt" >&5
37659 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37660 if test "${ac_cv_func_crypt+set}" = set; then
37661 echo $ECHO_N "(cached) $ECHO_C" >&6
37663 cat >conftest.$ac_ext <<_ACEOF
37666 cat confdefs.h >>conftest.$ac_ext
37667 cat >>conftest.$ac_ext <<_ACEOF
37668 /* end confdefs.h. */
37669 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37671 #define crypt innocuous_crypt
37673 /* System header to define __stub macros and hopefully few prototypes,
37674 which can conflict with char crypt (); below.
37675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37676 <limits.h> exists even on freestanding compilers. */
37679 # include <limits.h>
37681 # include <assert.h>
37686 /* Override any gcc2 internal prototype to avoid an error. */
37691 /* We use char because int might match the return type of a gcc2
37692 builtin and then its argument prototype would still apply. */
37694 /* The GNU C library defines this for functions which it implements
37695 to always fail with ENOSYS. Some functions are actually named
37696 something starting with __ and the normal name is an alias. */
37697 #if defined (__stub_crypt) || defined (__stub___crypt)
37700 char (*f) () = crypt;
37714 rm -f conftest.$ac_objext conftest$ac_exeext
37715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37716 (eval $ac_link) 2>conftest.er1
37718 grep -v '^ *+' conftest.er1 >conftest.err
37720 cat conftest.err >&5
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); } &&
37723 { ac_try='test -z "$ac_c_werror_flag"
37724 || test ! -s conftest.err'
37725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37726 (eval $ac_try) 2>&5
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); }; } &&
37730 { ac_try='test -s conftest$ac_exeext'
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; }; then
37736 ac_cv_func_crypt=yes
37738 echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37741 ac_cv_func_crypt=no
37743 rm -f conftest.err conftest.$ac_objext \
37744 conftest$ac_exeext conftest.$ac_ext
37746 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37747 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37748 if test $ac_cv_func_crypt = yes; then
37753 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37754 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37755 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37756 echo $ECHO_N "(cached) $ECHO_C" >&6
37758 ac_check_lib_save_LIBS=$LIBS
37759 LIBS="-lcrypt $LIBS"
37760 cat >conftest.$ac_ext <<_ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37767 /* Override any gcc2 internal prototype to avoid an error. */
37771 /* We use char because int might match the return type of a gcc2
37772 builtin and then its argument prototype would still apply. */
37782 rm -f conftest.$ac_objext conftest$ac_exeext
37783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37784 (eval $ac_link) 2>conftest.er1
37786 grep -v '^ *+' conftest.er1 >conftest.err
37788 cat conftest.err >&5
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); } &&
37791 { ac_try='test -z "$ac_c_werror_flag"
37792 || test ! -s conftest.err'
37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794 (eval $ac_try) 2>&5
37796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); }; } &&
37798 { ac_try='test -s conftest$ac_exeext'
37799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37800 (eval $ac_try) 2>&5
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); }; }; then
37804 ac_cv_lib_crypt_crypt=yes
37806 echo "$as_me: failed program was:" >&5
37807 sed 's/^/| /' conftest.$ac_ext >&5
37809 ac_cv_lib_crypt_crypt=no
37811 rm -f conftest.err conftest.$ac_objext \
37812 conftest$ac_exeext conftest.$ac_ext
37813 LIBS=$ac_check_lib_save_LIBS
37815 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37816 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37817 if test $ac_cv_lib_crypt_crypt = yes; then
37818 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37829 if test $have_crypt = yes ; then
37831 cat >>confdefs.h <<\_ACEOF
37832 #define HAVE_CRYPT 1
37836 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37837 echo "$as_me: WARNING: could not find crypt" >&2;}
37838 if test $ol_enable_crypt = yes ; then
37839 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37840 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37841 { (exit 1); exit 1; }; }
37844 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37845 echo "$as_me: WARNING: disabling crypt support" >&2;}
37850 if test $ol_enable_proctitle != no ; then
37851 echo "$as_me:$LINENO: checking for setproctitle" >&5
37852 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37853 if test "${ac_cv_func_setproctitle+set}" = set; then
37854 echo $ECHO_N "(cached) $ECHO_C" >&6
37856 cat >conftest.$ac_ext <<_ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h. */
37862 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37864 #define setproctitle innocuous_setproctitle
37866 /* System header to define __stub macros and hopefully few prototypes,
37867 which can conflict with char setproctitle (); below.
37868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37869 <limits.h> exists even on freestanding compilers. */
37872 # include <limits.h>
37874 # include <assert.h>
37877 #undef setproctitle
37879 /* Override any gcc2 internal prototype to avoid an error. */
37884 /* We use char because int might match the return type of a gcc2
37885 builtin and then its argument prototype would still apply. */
37886 char setproctitle ();
37887 /* The GNU C library defines this for functions which it implements
37888 to always fail with ENOSYS. Some functions are actually named
37889 something starting with __ and the normal name is an alias. */
37890 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37893 char (*f) () = setproctitle;
37902 return f != setproctitle;
37907 rm -f conftest.$ac_objext conftest$ac_exeext
37908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37909 (eval $ac_link) 2>conftest.er1
37911 grep -v '^ *+' conftest.er1 >conftest.err
37913 cat conftest.err >&5
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); } &&
37916 { ac_try='test -z "$ac_c_werror_flag"
37917 || test ! -s conftest.err'
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; } &&
37923 { ac_try='test -s conftest$ac_exeext'
37924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 (eval $ac_try) 2>&5
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); }; }; then
37929 ac_cv_func_setproctitle=yes
37931 echo "$as_me: failed program was:" >&5
37932 sed 's/^/| /' conftest.$ac_ext >&5
37934 ac_cv_func_setproctitle=no
37936 rm -f conftest.err conftest.$ac_objext \
37937 conftest$ac_exeext conftest.$ac_ext
37939 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37940 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37941 if test $ac_cv_func_setproctitle = yes; then
37942 have_setproctitle=yes
37945 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37946 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37947 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37948 echo $ECHO_N "(cached) $ECHO_C" >&6
37950 ac_check_lib_save_LIBS=$LIBS
37951 LIBS="-lutil $LIBS"
37952 cat >conftest.$ac_ext <<_ACEOF
37955 cat confdefs.h >>conftest.$ac_ext
37956 cat >>conftest.$ac_ext <<_ACEOF
37957 /* end confdefs.h. */
37959 /* Override any gcc2 internal prototype to avoid an error. */
37963 /* We use char because int might match the return type of a gcc2
37964 builtin and then its argument prototype would still apply. */
37965 char setproctitle ();
37974 rm -f conftest.$ac_objext conftest$ac_exeext
37975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37976 (eval $ac_link) 2>conftest.er1
37978 grep -v '^ *+' conftest.er1 >conftest.err
37980 cat conftest.err >&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); } &&
37983 { ac_try='test -z "$ac_c_werror_flag"
37984 || test ! -s conftest.err'
37985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37986 (eval $ac_try) 2>&5
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); }; } &&
37990 { ac_try='test -s conftest$ac_exeext'
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; }; then
37996 ac_cv_lib_util_setproctitle=yes
37998 echo "$as_me: failed program was:" >&5
37999 sed 's/^/| /' conftest.$ac_ext >&5
38001 ac_cv_lib_util_setproctitle=no
38003 rm -f conftest.err conftest.$ac_objext \
38004 conftest$ac_exeext conftest.$ac_ext
38005 LIBS=$ac_check_lib_save_LIBS
38007 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
38008 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
38009 if test $ac_cv_lib_util_setproctitle = yes; then
38010 have_setproctitle=yes
38011 LUTIL_LIBS="$LUTIL_LIBS -lutil"
38013 have_setproctitle=no
38015 "setproctitle.$ac_objext" | \
38016 *" setproctitle.$ac_objext" | \
38017 "setproctitle.$ac_objext "* | \
38018 *" setproctitle.$ac_objext "* ) ;;
38019 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
38022 LIBSRCS="$LIBSRCS setproctitle.c"
38028 if test $have_setproctitle = yes ; then
38030 cat >>confdefs.h <<\_ACEOF
38031 #define HAVE_SETPROCTITLE 1
38037 if test $ol_enable_slp != no ; then
38039 for ac_header in slp.h
38041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38043 echo "$as_me:$LINENO: checking for $ac_header" >&5
38044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38046 echo $ECHO_N "(cached) $ECHO_C" >&6
38048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38051 # Is the header compilable?
38052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38054 cat >conftest.$ac_ext <<_ACEOF
38057 cat confdefs.h >>conftest.$ac_ext
38058 cat >>conftest.$ac_ext <<_ACEOF
38059 /* end confdefs.h. */
38060 $ac_includes_default
38061 #include <$ac_header>
38063 rm -f conftest.$ac_objext
38064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38065 (eval $ac_compile) 2>conftest.er1
38067 grep -v '^ *+' conftest.er1 >conftest.err
38069 cat conftest.err >&5
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); } &&
38072 { ac_try='test -z "$ac_c_werror_flag"
38073 || test ! -s conftest.err'
38074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38075 (eval $ac_try) 2>&5
38077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078 (exit $ac_status); }; } &&
38079 { ac_try='test -s conftest.$ac_objext'
38080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38081 (eval $ac_try) 2>&5
38083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); }; }; then
38085 ac_header_compiler=yes
38087 echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.$ac_ext >&5
38090 ac_header_compiler=no
38092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38094 echo "${ECHO_T}$ac_header_compiler" >&6
38096 # Is the header present?
38097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38099 cat >conftest.$ac_ext <<_ACEOF
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h. */
38105 #include <$ac_header>
38107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38110 grep -v '^ *+' conftest.er1 >conftest.err
38112 cat conftest.err >&5
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); } >/dev/null; then
38115 if test -s conftest.err; then
38116 ac_cpp_err=$ac_c_preproc_warn_flag
38117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38124 if test -z "$ac_cpp_err"; then
38125 ac_header_preproc=yes
38127 echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38130 ac_header_preproc=no
38132 rm -f conftest.err conftest.$ac_ext
38133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38134 echo "${ECHO_T}$ac_header_preproc" >&6
38136 # So? What about this header?
38137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38143 ac_header_preproc=yes
38146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38160 ## --------------------------------------------- ##
38161 ## Report this to <http://www.openldap.org/its/> ##
38162 ## --------------------------------------------- ##
38165 sed "s/^/$as_me: WARNING: /" >&2
38168 echo "$as_me:$LINENO: checking for $ac_header" >&5
38169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38171 echo $ECHO_N "(cached) $ECHO_C" >&6
38173 eval "$as_ac_Header=\$ac_header_preproc"
38175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38180 cat >>confdefs.h <<_ACEOF
38181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38189 if test $ac_cv_header_slp_h = yes ; then
38190 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38191 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38192 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38193 echo $ECHO_N "(cached) $ECHO_C" >&6
38195 ac_check_lib_save_LIBS=$LIBS
38197 cat >conftest.$ac_ext <<_ACEOF
38200 cat confdefs.h >>conftest.$ac_ext
38201 cat >>conftest.$ac_ext <<_ACEOF
38202 /* end confdefs.h. */
38204 /* Override any gcc2 internal prototype to avoid an error. */
38208 /* We use char because int might match the return type of a gcc2
38209 builtin and then its argument prototype would still apply. */
38219 rm -f conftest.$ac_objext conftest$ac_exeext
38220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38221 (eval $ac_link) 2>conftest.er1
38223 grep -v '^ *+' conftest.er1 >conftest.err
38225 cat conftest.err >&5
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); } &&
38228 { ac_try='test -z "$ac_c_werror_flag"
38229 || test ! -s conftest.err'
38230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38231 (eval $ac_try) 2>&5
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); }; } &&
38235 { ac_try='test -s conftest$ac_exeext'
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; }; then
38241 ac_cv_lib_slp_SLPOpen=yes
38243 echo "$as_me: failed program was:" >&5
38244 sed 's/^/| /' conftest.$ac_ext >&5
38246 ac_cv_lib_slp_SLPOpen=no
38248 rm -f conftest.err conftest.$ac_objext \
38249 conftest$ac_exeext conftest.$ac_ext
38250 LIBS=$ac_check_lib_save_LIBS
38252 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38253 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38254 if test $ac_cv_lib_slp_SLPOpen = yes; then
38260 if test $have_slp = yes ; then
38262 cat >>confdefs.h <<\_ACEOF
38266 SLAPD_SLP_LIBS=-lslp
38269 elif test $ol_enable_slp = yes ; then
38270 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38271 echo "$as_me: error: SLP not found" >&2;}
38272 { (exit 1); exit 1; }; }
38277 echo "$as_me:$LINENO: checking for mode_t" >&5
38278 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38279 if test "${ac_cv_type_mode_t+set}" = set; then
38280 echo $ECHO_N "(cached) $ECHO_C" >&6
38282 cat >conftest.$ac_ext <<_ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h. */
38288 $ac_includes_default
38294 if (sizeof (mode_t))
38300 rm -f conftest.$ac_objext
38301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38302 (eval $ac_compile) 2>conftest.er1
38304 grep -v '^ *+' conftest.er1 >conftest.err
38306 cat conftest.err >&5
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); } &&
38309 { ac_try='test -z "$ac_c_werror_flag"
38310 || test ! -s conftest.err'
38311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38312 (eval $ac_try) 2>&5
38314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38315 (exit $ac_status); }; } &&
38316 { ac_try='test -s conftest.$ac_objext'
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; }; then
38322 ac_cv_type_mode_t=yes
38324 echo "$as_me: failed program was:" >&5
38325 sed 's/^/| /' conftest.$ac_ext >&5
38327 ac_cv_type_mode_t=no
38329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38331 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38332 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38333 if test $ac_cv_type_mode_t = yes; then
38337 cat >>confdefs.h <<_ACEOF
38343 echo "$as_me:$LINENO: checking for off_t" >&5
38344 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38345 if test "${ac_cv_type_off_t+set}" = set; then
38346 echo $ECHO_N "(cached) $ECHO_C" >&6
38348 cat >conftest.$ac_ext <<_ACEOF
38351 cat confdefs.h >>conftest.$ac_ext
38352 cat >>conftest.$ac_ext <<_ACEOF
38353 /* end confdefs.h. */
38354 $ac_includes_default
38360 if (sizeof (off_t))
38366 rm -f conftest.$ac_objext
38367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38368 (eval $ac_compile) 2>conftest.er1
38370 grep -v '^ *+' conftest.er1 >conftest.err
38372 cat conftest.err >&5
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); } &&
38375 { ac_try='test -z "$ac_c_werror_flag"
38376 || test ! -s conftest.err'
38377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38378 (eval $ac_try) 2>&5
38380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381 (exit $ac_status); }; } &&
38382 { ac_try='test -s conftest.$ac_objext'
38383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384 (eval $ac_try) 2>&5
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); }; }; then
38388 ac_cv_type_off_t=yes
38390 echo "$as_me: failed program was:" >&5
38391 sed 's/^/| /' conftest.$ac_ext >&5
38393 ac_cv_type_off_t=no
38395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38397 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38398 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38399 if test $ac_cv_type_off_t = yes; then
38403 cat >>confdefs.h <<_ACEOF
38409 echo "$as_me:$LINENO: checking for pid_t" >&5
38410 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38411 if test "${ac_cv_type_pid_t+set}" = set; then
38412 echo $ECHO_N "(cached) $ECHO_C" >&6
38414 cat >conftest.$ac_ext <<_ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h. */
38420 $ac_includes_default
38426 if (sizeof (pid_t))
38432 rm -f conftest.$ac_objext
38433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38434 (eval $ac_compile) 2>conftest.er1
38436 grep -v '^ *+' conftest.er1 >conftest.err
38438 cat conftest.err >&5
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); } &&
38441 { ac_try='test -z "$ac_c_werror_flag"
38442 || test ! -s conftest.err'
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; } &&
38448 { ac_try='test -s conftest.$ac_objext'
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454 ac_cv_type_pid_t=yes
38456 echo "$as_me: failed program was:" >&5
38457 sed 's/^/| /' conftest.$ac_ext >&5
38459 ac_cv_type_pid_t=no
38461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38463 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38464 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38465 if test $ac_cv_type_pid_t = yes; then
38469 cat >>confdefs.h <<_ACEOF
38475 echo "$as_me:$LINENO: checking for ssize_t" >&5
38476 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38477 if test "${ac_cv_type_ssize_t+set}" = set; then
38478 echo $ECHO_N "(cached) $ECHO_C" >&6
38480 cat >conftest.$ac_ext <<_ACEOF
38483 cat confdefs.h >>conftest.$ac_ext
38484 cat >>conftest.$ac_ext <<_ACEOF
38485 /* end confdefs.h. */
38486 $ac_includes_default
38492 if (sizeof (ssize_t))
38498 rm -f conftest.$ac_objext
38499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38500 (eval $ac_compile) 2>conftest.er1
38502 grep -v '^ *+' conftest.er1 >conftest.err
38504 cat conftest.err >&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } &&
38507 { ac_try='test -z "$ac_c_werror_flag"
38508 || test ! -s conftest.err'
38509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510 (eval $ac_try) 2>&5
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); }; } &&
38514 { ac_try='test -s conftest.$ac_objext'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
38520 ac_cv_type_ssize_t=yes
38522 echo "$as_me: failed program was:" >&5
38523 sed 's/^/| /' conftest.$ac_ext >&5
38525 ac_cv_type_ssize_t=no
38527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38530 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38531 if test $ac_cv_type_ssize_t = yes; then
38535 cat >>confdefs.h <<_ACEOF
38536 #define ssize_t signed int
38541 echo "$as_me:$LINENO: checking for caddr_t" >&5
38542 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38543 if test "${ac_cv_type_caddr_t+set}" = set; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38546 cat >conftest.$ac_ext <<_ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h. */
38552 $ac_includes_default
38558 if (sizeof (caddr_t))
38564 rm -f conftest.$ac_objext
38565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38566 (eval $ac_compile) 2>conftest.er1
38568 grep -v '^ *+' conftest.er1 >conftest.err
38570 cat conftest.err >&5
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); } &&
38573 { ac_try='test -z "$ac_c_werror_flag"
38574 || test ! -s conftest.err'
38575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38576 (eval $ac_try) 2>&5
38578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579 (exit $ac_status); }; } &&
38580 { ac_try='test -s conftest.$ac_objext'
38581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582 (eval $ac_try) 2>&5
38584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585 (exit $ac_status); }; }; then
38586 ac_cv_type_caddr_t=yes
38588 echo "$as_me: failed program was:" >&5
38589 sed 's/^/| /' conftest.$ac_ext >&5
38591 ac_cv_type_caddr_t=no
38593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38595 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38596 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38597 if test $ac_cv_type_caddr_t = yes; then
38601 cat >>confdefs.h <<_ACEOF
38602 #define caddr_t char *
38607 echo "$as_me:$LINENO: checking for size_t" >&5
38608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38609 if test "${ac_cv_type_size_t+set}" = set; then
38610 echo $ECHO_N "(cached) $ECHO_C" >&6
38612 cat >conftest.$ac_ext <<_ACEOF
38615 cat confdefs.h >>conftest.$ac_ext
38616 cat >>conftest.$ac_ext <<_ACEOF
38617 /* end confdefs.h. */
38618 $ac_includes_default
38624 if (sizeof (size_t))
38630 rm -f conftest.$ac_objext
38631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38632 (eval $ac_compile) 2>conftest.er1
38634 grep -v '^ *+' conftest.er1 >conftest.err
38636 cat conftest.err >&5
38637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638 (exit $ac_status); } &&
38639 { ac_try='test -z "$ac_c_werror_flag"
38640 || test ! -s conftest.err'
38641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38642 (eval $ac_try) 2>&5
38644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645 (exit $ac_status); }; } &&
38646 { ac_try='test -s conftest.$ac_objext'
38647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38648 (eval $ac_try) 2>&5
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); }; }; then
38652 ac_cv_type_size_t=yes
38654 echo "$as_me: failed program was:" >&5
38655 sed 's/^/| /' conftest.$ac_ext >&5
38657 ac_cv_type_size_t=no
38659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38661 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38662 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38663 if test $ac_cv_type_size_t = yes; then
38667 cat >>confdefs.h <<_ACEOF
38668 #define size_t unsigned
38674 echo "$as_me:$LINENO: checking for long long" >&5
38675 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38676 if test "${ac_cv_type_long_long+set}" = set; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38679 cat >conftest.$ac_ext <<_ACEOF
38682 cat confdefs.h >>conftest.$ac_ext
38683 cat >>conftest.$ac_ext <<_ACEOF
38684 /* end confdefs.h. */
38685 $ac_includes_default
38689 if ((long long *) 0)
38691 if (sizeof (long long))
38697 rm -f conftest.$ac_objext
38698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38699 (eval $ac_compile) 2>conftest.er1
38701 grep -v '^ *+' conftest.er1 >conftest.err
38703 cat conftest.err >&5
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); } &&
38706 { ac_try='test -z "$ac_c_werror_flag"
38707 || test ! -s conftest.err'
38708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38709 (eval $ac_try) 2>&5
38711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712 (exit $ac_status); }; } &&
38713 { ac_try='test -s conftest.$ac_objext'
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; }; then
38719 ac_cv_type_long_long=yes
38721 echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38724 ac_cv_type_long_long=no
38726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38728 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38729 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38730 if test $ac_cv_type_long_long = yes; then
38732 cat >>confdefs.h <<_ACEOF
38733 #define HAVE_LONG_LONG 1
38739 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38740 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38741 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38742 echo $ECHO_N "(cached) $ECHO_C" >&6
38744 cat >conftest.$ac_ext <<_ACEOF
38747 cat confdefs.h >>conftest.$ac_ext
38748 cat >>conftest.$ac_ext <<_ACEOF
38749 /* end confdefs.h. */
38750 $ac_includes_default
38754 if ((ptrdiff_t *) 0)
38756 if (sizeof (ptrdiff_t))
38762 rm -f conftest.$ac_objext
38763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38764 (eval $ac_compile) 2>conftest.er1
38766 grep -v '^ *+' conftest.er1 >conftest.err
38768 cat conftest.err >&5
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); } &&
38771 { ac_try='test -z "$ac_c_werror_flag"
38772 || test ! -s conftest.err'
38773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38774 (eval $ac_try) 2>&5
38776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777 (exit $ac_status); }; } &&
38778 { ac_try='test -s conftest.$ac_objext'
38779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780 (eval $ac_try) 2>&5
38782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783 (exit $ac_status); }; }; then
38784 ac_cv_type_ptrdiff_t=yes
38786 echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38789 ac_cv_type_ptrdiff_t=no
38791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38793 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
38794 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
38795 if test $ac_cv_type_ptrdiff_t = yes; then
38797 cat >>confdefs.h <<_ACEOF
38798 #define HAVE_PTRDIFF_T 1
38805 echo "$as_me:$LINENO: checking for socklen_t" >&5
38806 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
38807 if test "${ac_cv_type_socklen_t+set}" = set; then
38808 echo $ECHO_N "(cached) $ECHO_C" >&6
38810 cat >conftest.$ac_ext <<_ACEOF
38813 cat confdefs.h >>conftest.$ac_ext
38814 cat >>conftest.$ac_ext <<_ACEOF
38815 /* end confdefs.h. */
38816 $ac_includes_default
38817 #ifdef HAVE_SYS_SOCKET_H
38818 #include <sys/socket.h>
38825 if ((socklen_t *) 0)
38827 if (sizeof (socklen_t))
38833 rm -f conftest.$ac_objext
38834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38835 (eval $ac_compile) 2>conftest.er1
38837 grep -v '^ *+' conftest.er1 >conftest.err
38839 cat conftest.err >&5
38840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38841 (exit $ac_status); } &&
38842 { ac_try='test -z "$ac_c_werror_flag"
38843 || test ! -s conftest.err'
38844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38845 (eval $ac_try) 2>&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); }; } &&
38849 { ac_try='test -s conftest.$ac_objext'
38850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38851 (eval $ac_try) 2>&5
38853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38854 (exit $ac_status); }; }; then
38855 ac_cv_type_socklen_t=yes
38857 echo "$as_me: failed program was:" >&5
38858 sed 's/^/| /' conftest.$ac_ext >&5
38860 ac_cv_type_socklen_t=no
38862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38864 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38865 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
38866 if test $ac_cv_type_socklen_t = yes; then
38870 cat >>confdefs.h <<_ACEOF
38871 #define socklen_t int
38877 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38878 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
38879 if test "${ac_cv_type_signal+set}" = set; then
38880 echo $ECHO_N "(cached) $ECHO_C" >&6
38882 cat >conftest.$ac_ext <<_ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h. */
38888 #include <sys/types.h>
38889 #include <signal.h>
38894 extern "C" void (*signal (int, void (*)(int)))(int);
38896 void (*signal ()) ();
38907 rm -f conftest.$ac_objext
38908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38909 (eval $ac_compile) 2>conftest.er1
38911 grep -v '^ *+' conftest.er1 >conftest.err
38913 cat conftest.err >&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); } &&
38916 { ac_try='test -z "$ac_c_werror_flag"
38917 || test ! -s conftest.err'
38918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38919 (eval $ac_try) 2>&5
38921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922 (exit $ac_status); }; } &&
38923 { ac_try='test -s conftest.$ac_objext'
38924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38925 (eval $ac_try) 2>&5
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); }; }; then
38929 ac_cv_type_signal=void
38931 echo "$as_me: failed program was:" >&5
38932 sed 's/^/| /' conftest.$ac_ext >&5
38934 ac_cv_type_signal=int
38936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38938 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38939 echo "${ECHO_T}$ac_cv_type_signal" >&6
38941 cat >>confdefs.h <<_ACEOF
38942 #define RETSIGTYPE $ac_cv_type_signal
38947 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38948 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
38949 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38952 cat >conftest.$ac_ext <<_ACEOF
38955 cat confdefs.h >>conftest.$ac_ext
38956 cat >>conftest.$ac_ext <<_ACEOF
38957 /* end confdefs.h. */
38958 $ac_includes_default
38959 #include <signal.h>
38965 if ((sig_atomic_t *) 0)
38967 if (sizeof (sig_atomic_t))
38973 rm -f conftest.$ac_objext
38974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38975 (eval $ac_compile) 2>conftest.er1
38977 grep -v '^ *+' conftest.er1 >conftest.err
38979 cat conftest.err >&5
38980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981 (exit $ac_status); } &&
38982 { ac_try='test -z "$ac_c_werror_flag"
38983 || test ! -s conftest.err'
38984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38985 (eval $ac_try) 2>&5
38987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988 (exit $ac_status); }; } &&
38989 { ac_try='test -s conftest.$ac_objext'
38990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38991 (eval $ac_try) 2>&5
38993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994 (exit $ac_status); }; }; then
38995 ac_cv_type_sig_atomic_t=yes
38997 echo "$as_me: failed program was:" >&5
38998 sed 's/^/| /' conftest.$ac_ext >&5
39000 ac_cv_type_sig_atomic_t=no
39002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39004 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39005 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39006 if test $ac_cv_type_sig_atomic_t = yes; then
39010 cat >>confdefs.h <<_ACEOF
39011 #define sig_atomic_t int
39017 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39018 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39019 if test "${ac_cv_type_uid_t+set}" = set; then
39020 echo $ECHO_N "(cached) $ECHO_C" >&6
39022 cat >conftest.$ac_ext <<_ACEOF
39025 cat confdefs.h >>conftest.$ac_ext
39026 cat >>conftest.$ac_ext <<_ACEOF
39027 /* end confdefs.h. */
39028 #include <sys/types.h>
39031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39032 $EGREP "uid_t" >/dev/null 2>&1; then
39033 ac_cv_type_uid_t=yes
39035 ac_cv_type_uid_t=no
39040 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39041 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39042 if test $ac_cv_type_uid_t = no; then
39044 cat >>confdefs.h <<\_ACEOF
39049 cat >>confdefs.h <<\_ACEOF
39056 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39057 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39058 if test "${ac_cv_header_time+set}" = set; then
39059 echo $ECHO_N "(cached) $ECHO_C" >&6
39061 cat >conftest.$ac_ext <<_ACEOF
39064 cat confdefs.h >>conftest.$ac_ext
39065 cat >>conftest.$ac_ext <<_ACEOF
39066 /* end confdefs.h. */
39067 #include <sys/types.h>
39068 #include <sys/time.h>
39074 if ((struct tm *) 0)
39080 rm -f conftest.$ac_objext
39081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39082 (eval $ac_compile) 2>conftest.er1
39084 grep -v '^ *+' conftest.er1 >conftest.err
39086 cat conftest.err >&5
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); } &&
39089 { ac_try='test -z "$ac_c_werror_flag"
39090 || test ! -s conftest.err'
39091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39092 (eval $ac_try) 2>&5
39094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095 (exit $ac_status); }; } &&
39096 { ac_try='test -s conftest.$ac_objext'
39097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39098 (eval $ac_try) 2>&5
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); }; }; then
39102 ac_cv_header_time=yes
39104 echo "$as_me: failed program was:" >&5
39105 sed 's/^/| /' conftest.$ac_ext >&5
39107 ac_cv_header_time=no
39109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39111 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39112 echo "${ECHO_T}$ac_cv_header_time" >&6
39113 if test $ac_cv_header_time = yes; then
39115 cat >>confdefs.h <<\_ACEOF
39116 #define TIME_WITH_SYS_TIME 1
39121 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39122 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39123 if test "${ac_cv_struct_tm+set}" = set; then
39124 echo $ECHO_N "(cached) $ECHO_C" >&6
39126 cat >conftest.$ac_ext <<_ACEOF
39129 cat confdefs.h >>conftest.$ac_ext
39130 cat >>conftest.$ac_ext <<_ACEOF
39131 /* end confdefs.h. */
39132 #include <sys/types.h>
39138 struct tm *tp; tp->tm_sec;
39143 rm -f conftest.$ac_objext
39144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39145 (eval $ac_compile) 2>conftest.er1
39147 grep -v '^ *+' conftest.er1 >conftest.err
39149 cat conftest.err >&5
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); } &&
39152 { ac_try='test -z "$ac_c_werror_flag"
39153 || test ! -s conftest.err'
39154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155 (eval $ac_try) 2>&5
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); }; } &&
39159 { ac_try='test -s conftest.$ac_objext'
39160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39161 (eval $ac_try) 2>&5
39163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39164 (exit $ac_status); }; }; then
39165 ac_cv_struct_tm=time.h
39167 echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39170 ac_cv_struct_tm=sys/time.h
39172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39174 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39175 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39176 if test $ac_cv_struct_tm = sys/time.h; then
39178 cat >>confdefs.h <<\_ACEOF
39179 #define TM_IN_SYS_TIME 1
39184 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39185 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39186 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39187 echo $ECHO_N "(cached) $ECHO_C" >&6
39189 cat >conftest.$ac_ext <<_ACEOF
39192 cat confdefs.h >>conftest.$ac_ext
39193 cat >>conftest.$ac_ext <<_ACEOF
39194 /* end confdefs.h. */
39195 $ac_includes_default
39199 static struct stat ac_aggr;
39200 if (ac_aggr.st_blksize)
39206 rm -f conftest.$ac_objext
39207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39208 (eval $ac_compile) 2>conftest.er1
39210 grep -v '^ *+' conftest.er1 >conftest.err
39212 cat conftest.err >&5
39213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); } &&
39215 { ac_try='test -z "$ac_c_werror_flag"
39216 || test ! -s conftest.err'
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; } &&
39222 { ac_try='test -s conftest.$ac_objext'
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 ac_cv_member_struct_stat_st_blksize=yes
39230 echo "$as_me: failed program was:" >&5
39231 sed 's/^/| /' conftest.$ac_ext >&5
39233 cat >conftest.$ac_ext <<_ACEOF
39236 cat confdefs.h >>conftest.$ac_ext
39237 cat >>conftest.$ac_ext <<_ACEOF
39238 /* end confdefs.h. */
39239 $ac_includes_default
39243 static struct stat ac_aggr;
39244 if (sizeof ac_aggr.st_blksize)
39250 rm -f conftest.$ac_objext
39251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39252 (eval $ac_compile) 2>conftest.er1
39254 grep -v '^ *+' conftest.er1 >conftest.err
39256 cat conftest.err >&5
39257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39258 (exit $ac_status); } &&
39259 { ac_try='test -z "$ac_c_werror_flag"
39260 || test ! -s conftest.err'
39261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262 (eval $ac_try) 2>&5
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); }; } &&
39266 { ac_try='test -s conftest.$ac_objext'
39267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268 (eval $ac_try) 2>&5
39270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271 (exit $ac_status); }; }; then
39272 ac_cv_member_struct_stat_st_blksize=yes
39274 echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39277 ac_cv_member_struct_stat_st_blksize=no
39279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39283 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39284 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39285 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39287 cat >>confdefs.h <<_ACEOF
39288 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39294 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39295 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39296 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39297 echo $ECHO_N "(cached) $ECHO_C" >&6
39299 cat >conftest.$ac_ext <<_ACEOF
39302 cat confdefs.h >>conftest.$ac_ext
39303 cat >>conftest.$ac_ext <<_ACEOF
39304 /* end confdefs.h. */
39305 $ac_includes_default
39311 static struct passwd ac_aggr;
39312 if (ac_aggr.pw_gecos)
39318 rm -f conftest.$ac_objext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39320 (eval $ac_compile) 2>conftest.er1
39322 grep -v '^ *+' conftest.er1 >conftest.err
39324 cat conftest.err >&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); } &&
39327 { ac_try='test -z "$ac_c_werror_flag"
39328 || test ! -s conftest.err'
39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; } &&
39334 { ac_try='test -s conftest.$ac_objext'
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; }; then
39340 ac_cv_member_struct_passwd_pw_gecos=yes
39342 echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39345 cat >conftest.$ac_ext <<_ACEOF
39348 cat confdefs.h >>conftest.$ac_ext
39349 cat >>conftest.$ac_ext <<_ACEOF
39350 /* end confdefs.h. */
39351 $ac_includes_default
39357 static struct passwd ac_aggr;
39358 if (sizeof ac_aggr.pw_gecos)
39364 rm -f conftest.$ac_objext
39365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39366 (eval $ac_compile) 2>conftest.er1
39368 grep -v '^ *+' conftest.er1 >conftest.err
39370 cat conftest.err >&5
39371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372 (exit $ac_status); } &&
39373 { ac_try='test -z "$ac_c_werror_flag"
39374 || test ! -s conftest.err'
39375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39376 (eval $ac_try) 2>&5
39378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379 (exit $ac_status); }; } &&
39380 { ac_try='test -s conftest.$ac_objext'
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39386 ac_cv_member_struct_passwd_pw_gecos=yes
39388 echo "$as_me: failed program was:" >&5
39389 sed 's/^/| /' conftest.$ac_ext >&5
39391 ac_cv_member_struct_passwd_pw_gecos=no
39393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39398 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39399 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39401 cat >>confdefs.h <<_ACEOF
39402 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39408 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39409 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39410 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39411 echo $ECHO_N "(cached) $ECHO_C" >&6
39413 cat >conftest.$ac_ext <<_ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h. */
39419 $ac_includes_default
39425 static struct passwd ac_aggr;
39426 if (ac_aggr.pw_passwd)
39432 rm -f conftest.$ac_objext
39433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39434 (eval $ac_compile) 2>conftest.er1
39436 grep -v '^ *+' conftest.er1 >conftest.err
39438 cat conftest.err >&5
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); } &&
39441 { ac_try='test -z "$ac_c_werror_flag"
39442 || test ! -s conftest.err'
39443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39444 (eval $ac_try) 2>&5
39446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447 (exit $ac_status); }; } &&
39448 { ac_try='test -s conftest.$ac_objext'
39449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39450 (eval $ac_try) 2>&5
39452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453 (exit $ac_status); }; }; then
39454 ac_cv_member_struct_passwd_pw_passwd=yes
39456 echo "$as_me: failed program was:" >&5
39457 sed 's/^/| /' conftest.$ac_ext >&5
39459 cat >conftest.$ac_ext <<_ACEOF
39462 cat confdefs.h >>conftest.$ac_ext
39463 cat >>conftest.$ac_ext <<_ACEOF
39464 /* end confdefs.h. */
39465 $ac_includes_default
39471 static struct passwd ac_aggr;
39472 if (sizeof ac_aggr.pw_passwd)
39478 rm -f conftest.$ac_objext
39479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39480 (eval $ac_compile) 2>conftest.er1
39482 grep -v '^ *+' conftest.er1 >conftest.err
39484 cat conftest.err >&5
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); } &&
39487 { ac_try='test -z "$ac_c_werror_flag"
39488 || test ! -s conftest.err'
39489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39490 (eval $ac_try) 2>&5
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); }; } &&
39494 { ac_try='test -s conftest.$ac_objext'
39495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39496 (eval $ac_try) 2>&5
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); }; }; then
39500 ac_cv_member_struct_passwd_pw_passwd=yes
39502 echo "$as_me: failed program was:" >&5
39503 sed 's/^/| /' conftest.$ac_ext >&5
39505 ac_cv_member_struct_passwd_pw_passwd=no
39507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39512 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39513 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39515 cat >>confdefs.h <<_ACEOF
39516 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39523 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39524 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39525 if test "${ol_cv_c_upper_lower+set}" = set; then
39526 echo $ECHO_N "(cached) $ECHO_C" >&6
39529 if test "$cross_compiling" = yes; then
39530 ol_cv_c_upper_lower=safe
39532 cat >conftest.$ac_ext <<_ACEOF
39535 cat confdefs.h >>conftest.$ac_ext
39536 cat >>conftest.$ac_ext <<_ACEOF
39537 /* end confdefs.h. */
39542 if ('C' == toupper('C'))
39548 rm -f conftest$ac_exeext
39549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39550 (eval $ac_link) 2>&5
39552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555 (eval $ac_try) 2>&5
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); }; }; then
39559 ol_cv_c_upper_lower=no
39561 echo "$as_me: program exited with status $ac_status" >&5
39562 echo "$as_me: failed program was:" >&5
39563 sed 's/^/| /' conftest.$ac_ext >&5
39565 ( exit $ac_status )
39566 ol_cv_c_upper_lower=yes
39568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39571 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39572 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39573 if test $ol_cv_c_upper_lower != no ; then
39575 cat >>confdefs.h <<\_ACEOF
39576 #define C_UPPER_LOWER 1
39581 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39582 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39583 if test "${ac_cv_c_const+set}" = set; then
39584 echo $ECHO_N "(cached) $ECHO_C" >&6
39586 cat >conftest.$ac_ext <<_ACEOF
39589 cat confdefs.h >>conftest.$ac_ext
39590 cat >>conftest.$ac_ext <<_ACEOF
39591 /* end confdefs.h. */
39596 /* FIXME: Include the comments suggested by Paul. */
39597 #ifndef __cplusplus
39598 /* Ultrix mips cc rejects this. */
39599 typedef int charset[2];
39601 /* SunOS 4.1.1 cc rejects this. */
39602 char const *const *ccp;
39604 /* NEC SVR4.0.2 mips cc rejects this. */
39605 struct point {int x, y;};
39606 static struct point const zero = {0,0};
39607 /* AIX XL C 1.02.0.0 rejects this.
39608 It does not let you subtract one const X* pointer from another in
39609 an arm of an if-expression whose if-part is not a constant
39611 const char *g = "string";
39612 ccp = &g + (g ? g-g : 0);
39613 /* HPUX 7.0 cc rejects these. */
39616 ccp = (char const *const *) p;
39617 { /* SCO 3.2v4 cc rejects this. */
39619 char const *s = 0 ? (char *) 0 : (char const *) 0;
39623 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
39624 int x[] = {25, 17};
39625 const int *foo = &x[0];
39628 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39629 typedef const int *iptr;
39633 { /* AIX XL C 1.02.0.0 rejects this saying
39634 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39635 struct s { int j; const int *ap[3]; };
39636 struct s *b; b->j = 5;
39638 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39639 const int foo = 10;
39647 rm -f conftest.$ac_objext
39648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39649 (eval $ac_compile) 2>conftest.er1
39651 grep -v '^ *+' conftest.er1 >conftest.err
39653 cat conftest.err >&5
39654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39655 (exit $ac_status); } &&
39656 { ac_try='test -z "$ac_c_werror_flag"
39657 || test ! -s conftest.err'
39658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659 (eval $ac_try) 2>&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); }; } &&
39663 { ac_try='test -s conftest.$ac_objext'
39664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665 (eval $ac_try) 2>&5
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); }; }; then
39671 echo "$as_me: failed program was:" >&5
39672 sed 's/^/| /' conftest.$ac_ext >&5
39676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39678 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39679 echo "${ECHO_T}$ac_cv_c_const" >&6
39680 if test $ac_cv_c_const = no; then
39682 cat >>confdefs.h <<\_ACEOF
39688 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39689 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39690 if test "${ol_cv_c_volatile+set}" = set; then
39691 echo $ECHO_N "(cached) $ECHO_C" >&6
39693 cat >conftest.$ac_ext <<_ACEOF
39696 cat confdefs.h >>conftest.$ac_ext
39697 cat >>conftest.$ac_ext <<_ACEOF
39698 /* end confdefs.h. */
39703 volatile int a; int * volatile b = x ? &y : &z;
39704 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39710 rm -f conftest.$ac_objext
39711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39712 (eval $ac_compile) 2>conftest.er1
39714 grep -v '^ *+' conftest.er1 >conftest.err
39716 cat conftest.err >&5
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); } &&
39719 { ac_try='test -z "$ac_c_werror_flag"
39720 || test ! -s conftest.err'
39721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722 (eval $ac_try) 2>&5
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); }; } &&
39726 { ac_try='test -s conftest.$ac_objext'
39727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728 (eval $ac_try) 2>&5
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); }; }; then
39732 ol_cv_c_volatile=yes
39734 echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39737 ol_cv_c_volatile=no
39739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39742 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39743 if test $ol_cv_c_volatile = yes; then
39747 cat >>confdefs.h <<\_ACEOF
39754 if test $cross_compiling = yes ; then
39755 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39756 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39758 cat >>confdefs.h <<\_ACEOF
39759 #define CROSS_COMPILING 1
39763 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39764 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39765 if test "${ac_cv_c_bigendian+set}" = set; then
39766 echo $ECHO_N "(cached) $ECHO_C" >&6
39768 # See if sys/param.h defines the BYTE_ORDER macro.
39769 cat >conftest.$ac_ext <<_ACEOF
39772 cat confdefs.h >>conftest.$ac_ext
39773 cat >>conftest.$ac_ext <<_ACEOF
39774 /* end confdefs.h. */
39775 #include <sys/types.h>
39776 #include <sys/param.h>
39781 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39782 bogus endian macros
39789 rm -f conftest.$ac_objext
39790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39791 (eval $ac_compile) 2>conftest.er1
39793 grep -v '^ *+' conftest.er1 >conftest.err
39795 cat conftest.err >&5
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); } &&
39798 { ac_try='test -z "$ac_c_werror_flag"
39799 || test ! -s conftest.err'
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; } &&
39805 { ac_try='test -s conftest.$ac_objext'
39806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807 (eval $ac_try) 2>&5
39809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810 (exit $ac_status); }; }; then
39811 # It does; now see whether it defined to BIG_ENDIAN or not.
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39818 #include <sys/types.h>
39819 #include <sys/param.h>
39824 #if BYTE_ORDER != BIG_ENDIAN
39832 rm -f conftest.$ac_objext
39833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39834 (eval $ac_compile) 2>conftest.er1
39836 grep -v '^ *+' conftest.er1 >conftest.err
39838 cat conftest.err >&5
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); } &&
39841 { ac_try='test -z "$ac_c_werror_flag"
39842 || test ! -s conftest.err'
39843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39844 (eval $ac_try) 2>&5
39846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39847 (exit $ac_status); }; } &&
39848 { ac_try='test -s conftest.$ac_objext'
39849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39850 (eval $ac_try) 2>&5
39852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853 (exit $ac_status); }; }; then
39854 ac_cv_c_bigendian=yes
39856 echo "$as_me: failed program was:" >&5
39857 sed 's/^/| /' conftest.$ac_ext >&5
39859 ac_cv_c_bigendian=no
39861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39863 echo "$as_me: failed program was:" >&5
39864 sed 's/^/| /' conftest.$ac_ext >&5
39866 # It does not; compile a test program.
39867 if test "$cross_compiling" = yes; then
39868 # try to guess the endianness by grepping values into an object file
39869 ac_cv_c_bigendian=unknown
39870 cat >conftest.$ac_ext <<_ACEOF
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h. */
39876 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39877 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39878 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39879 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39880 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39881 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39885 _ascii (); _ebcdic ();
39890 rm -f conftest.$ac_objext
39891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39892 (eval $ac_compile) 2>conftest.er1
39894 grep -v '^ *+' conftest.er1 >conftest.err
39896 cat conftest.err >&5
39897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898 (exit $ac_status); } &&
39899 { ac_try='test -z "$ac_c_werror_flag"
39900 || test ! -s conftest.err'
39901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39902 (eval $ac_try) 2>&5
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); }; } &&
39906 { ac_try='test -s conftest.$ac_objext'
39907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39908 (eval $ac_try) 2>&5
39910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39911 (exit $ac_status); }; }; then
39912 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39913 ac_cv_c_bigendian=yes
39915 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39916 if test "$ac_cv_c_bigendian" = unknown; then
39917 ac_cv_c_bigendian=no
39919 # finding both strings is unlikely to happen, but who knows?
39920 ac_cv_c_bigendian=unknown
39924 echo "$as_me: failed program was:" >&5
39925 sed 's/^/| /' conftest.$ac_ext >&5
39928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39939 /* Are we little or big endian? From Harbison&Steele. */
39943 char c[sizeof (long)];
39946 exit (u.c[sizeof (long) - 1] == 1);
39949 rm -f conftest$ac_exeext
39950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39951 (eval $ac_link) 2>&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_c_bigendian=no
39962 echo "$as_me: program exited with status $ac_status" >&5
39963 echo "$as_me: failed program was:" >&5
39964 sed 's/^/| /' conftest.$ac_ext >&5
39966 ( exit $ac_status )
39967 ac_cv_c_bigendian=yes
39969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39974 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39975 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39976 case $ac_cv_c_bigendian in
39979 cat >>confdefs.h <<\_ACEOF
39980 #define WORDS_BIGENDIAN 1
39986 { { echo "$as_me:$LINENO: error: unknown endianness
39987 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39988 echo "$as_me: error: unknown endianness
39989 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39990 { (exit 1); exit 1; }; } ;;
39995 echo "$as_me:$LINENO: checking for short" >&5
39996 echo $ECHO_N "checking for short... $ECHO_C" >&6
39997 if test "${ac_cv_type_short+set}" = set; then
39998 echo $ECHO_N "(cached) $ECHO_C" >&6
40000 cat >conftest.$ac_ext <<_ACEOF
40003 cat confdefs.h >>conftest.$ac_ext
40004 cat >>conftest.$ac_ext <<_ACEOF
40005 /* end confdefs.h. */
40006 $ac_includes_default
40012 if (sizeof (short))
40018 rm -f conftest.$ac_objext
40019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40020 (eval $ac_compile) 2>conftest.er1
40022 grep -v '^ *+' conftest.er1 >conftest.err
40024 cat conftest.err >&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); } &&
40027 { ac_try='test -z "$ac_c_werror_flag"
40028 || test ! -s conftest.err'
40029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40030 (eval $ac_try) 2>&5
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); }; } &&
40034 { ac_try='test -s conftest.$ac_objext'
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; }; then
40040 ac_cv_type_short=yes
40042 echo "$as_me: failed program was:" >&5
40043 sed 's/^/| /' conftest.$ac_ext >&5
40045 ac_cv_type_short=no
40047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40049 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40050 echo "${ECHO_T}$ac_cv_type_short" >&6
40052 echo "$as_me:$LINENO: checking size of short" >&5
40053 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40054 if test "${ac_cv_sizeof_short+set}" = set; then
40055 echo $ECHO_N "(cached) $ECHO_C" >&6
40057 if test "$ac_cv_type_short" = yes; then
40058 # The cast to unsigned long works around a bug in the HP C Compiler
40059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40061 # This bug is HP SR number 8606223364.
40062 if test "$cross_compiling" = yes; then
40063 # Depending upon the size, compute the lo and hi bounds.
40064 cat >conftest.$ac_ext <<_ACEOF
40067 cat confdefs.h >>conftest.$ac_ext
40068 cat >>conftest.$ac_ext <<_ACEOF
40069 /* end confdefs.h. */
40070 $ac_includes_default
40074 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40081 rm -f conftest.$ac_objext
40082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40083 (eval $ac_compile) 2>conftest.er1
40085 grep -v '^ *+' conftest.er1 >conftest.err
40087 cat conftest.err >&5
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); } &&
40090 { ac_try='test -z "$ac_c_werror_flag"
40091 || test ! -s conftest.err'
40092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40093 (eval $ac_try) 2>&5
40095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); }; } &&
40097 { ac_try='test -s conftest.$ac_objext'
40098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40099 (eval $ac_try) 2>&5
40101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102 (exit $ac_status); }; }; then
40105 cat >conftest.$ac_ext <<_ACEOF
40108 cat confdefs.h >>conftest.$ac_ext
40109 cat >>conftest.$ac_ext <<_ACEOF
40110 /* end confdefs.h. */
40111 $ac_includes_default
40115 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40122 rm -f conftest.$ac_objext
40123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40124 (eval $ac_compile) 2>conftest.er1
40126 grep -v '^ *+' conftest.er1 >conftest.err
40128 cat conftest.err >&5
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); } &&
40131 { ac_try='test -z "$ac_c_werror_flag"
40132 || test ! -s conftest.err'
40133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40134 (eval $ac_try) 2>&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); }; } &&
40138 { ac_try='test -s conftest.$ac_objext'
40139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40140 (eval $ac_try) 2>&5
40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143 (exit $ac_status); }; }; then
40144 ac_hi=$ac_mid; break
40146 echo "$as_me: failed program was:" >&5
40147 sed 's/^/| /' conftest.$ac_ext >&5
40149 ac_lo=`expr $ac_mid + 1`
40150 if test $ac_lo -le $ac_mid; then
40154 ac_mid=`expr 2 '*' $ac_mid + 1`
40156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40159 echo "$as_me: failed program was:" >&5
40160 sed 's/^/| /' conftest.$ac_ext >&5
40162 cat >conftest.$ac_ext <<_ACEOF
40165 cat confdefs.h >>conftest.$ac_ext
40166 cat >>conftest.$ac_ext <<_ACEOF
40167 /* end confdefs.h. */
40168 $ac_includes_default
40172 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40179 rm -f conftest.$ac_objext
40180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40181 (eval $ac_compile) 2>conftest.er1
40183 grep -v '^ *+' conftest.er1 >conftest.err
40185 cat conftest.err >&5
40186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187 (exit $ac_status); } &&
40188 { ac_try='test -z "$ac_c_werror_flag"
40189 || test ! -s conftest.err'
40190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40191 (eval $ac_try) 2>&5
40193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194 (exit $ac_status); }; } &&
40195 { ac_try='test -s conftest.$ac_objext'
40196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40197 (eval $ac_try) 2>&5
40199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40200 (exit $ac_status); }; }; then
40203 cat >conftest.$ac_ext <<_ACEOF
40206 cat confdefs.h >>conftest.$ac_ext
40207 cat >>conftest.$ac_ext <<_ACEOF
40208 /* end confdefs.h. */
40209 $ac_includes_default
40213 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40220 rm -f conftest.$ac_objext
40221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40222 (eval $ac_compile) 2>conftest.er1
40224 grep -v '^ *+' conftest.er1 >conftest.err
40226 cat conftest.err >&5
40227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40228 (exit $ac_status); } &&
40229 { ac_try='test -z "$ac_c_werror_flag"
40230 || test ! -s conftest.err'
40231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40232 (eval $ac_try) 2>&5
40234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235 (exit $ac_status); }; } &&
40236 { ac_try='test -s conftest.$ac_objext'
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238 (eval $ac_try) 2>&5
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; }; then
40242 ac_lo=$ac_mid; break
40244 echo "$as_me: failed program was:" >&5
40245 sed 's/^/| /' conftest.$ac_ext >&5
40247 ac_hi=`expr '(' $ac_mid ')' - 1`
40248 if test $ac_mid -le $ac_hi; then
40252 ac_mid=`expr 2 '*' $ac_mid`
40254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40257 echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40265 # Binary search between lo and hi bounds.
40266 while test "x$ac_lo" != "x$ac_hi"; do
40267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40268 cat >conftest.$ac_ext <<_ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h. */
40274 $ac_includes_default
40278 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40285 rm -f conftest.$ac_objext
40286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40287 (eval $ac_compile) 2>conftest.er1
40289 grep -v '^ *+' conftest.er1 >conftest.err
40291 cat conftest.err >&5
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); } &&
40294 { ac_try='test -z "$ac_c_werror_flag"
40295 || test ! -s conftest.err'
40296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40297 (eval $ac_try) 2>&5
40299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300 (exit $ac_status); }; } &&
40301 { ac_try='test -s conftest.$ac_objext'
40302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40303 (eval $ac_try) 2>&5
40305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306 (exit $ac_status); }; }; then
40309 echo "$as_me: failed program was:" >&5
40310 sed 's/^/| /' conftest.$ac_ext >&5
40312 ac_lo=`expr '(' $ac_mid ')' + 1`
40314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40317 ?*) ac_cv_sizeof_short=$ac_lo;;
40318 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40319 See \`config.log' for more details." >&5
40320 echo "$as_me: error: cannot compute sizeof (short), 77
40321 See \`config.log' for more details." >&2;}
40322 { (exit 1); exit 1; }; } ;;
40325 if test "$cross_compiling" = yes; then
40326 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40327 See \`config.log' for more details." >&5
40328 echo "$as_me: error: cannot run test program while cross compiling
40329 See \`config.log' for more details." >&2;}
40330 { (exit 1); exit 1; }; }
40332 cat >conftest.$ac_ext <<_ACEOF
40335 cat confdefs.h >>conftest.$ac_ext
40336 cat >>conftest.$ac_ext <<_ACEOF
40337 /* end confdefs.h. */
40338 $ac_includes_default
40339 long longval () { return (long) (sizeof (short)); }
40340 unsigned long ulongval () { return (long) (sizeof (short)); }
40342 #include <stdlib.h>
40347 FILE *f = fopen ("conftest.val", "w");
40350 if (((long) (sizeof (short))) < 0)
40352 long i = longval ();
40353 if (i != ((long) (sizeof (short))))
40355 fprintf (f, "%ld\n", i);
40359 unsigned long i = ulongval ();
40360 if (i != ((long) (sizeof (short))))
40362 fprintf (f, "%lu\n", i);
40364 exit (ferror (f) || fclose (f) != 0);
40370 rm -f conftest$ac_exeext
40371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40372 (eval $ac_link) 2>&5
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377 (eval $ac_try) 2>&5
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); }; }; then
40381 ac_cv_sizeof_short=`cat conftest.val`
40383 echo "$as_me: program exited with status $ac_status" >&5
40384 echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40387 ( exit $ac_status )
40388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40389 See \`config.log' for more details." >&5
40390 echo "$as_me: error: cannot compute sizeof (short), 77
40391 See \`config.log' for more details." >&2;}
40392 { (exit 1); exit 1; }; }
40394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40399 ac_cv_sizeof_short=0
40402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40403 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40404 cat >>confdefs.h <<_ACEOF
40405 #define SIZEOF_SHORT $ac_cv_sizeof_short
40409 echo "$as_me:$LINENO: checking for int" >&5
40410 echo $ECHO_N "checking for int... $ECHO_C" >&6
40411 if test "${ac_cv_type_int+set}" = set; then
40412 echo $ECHO_N "(cached) $ECHO_C" >&6
40414 cat >conftest.$ac_ext <<_ACEOF
40417 cat confdefs.h >>conftest.$ac_ext
40418 cat >>conftest.$ac_ext <<_ACEOF
40419 /* end confdefs.h. */
40420 $ac_includes_default
40432 rm -f conftest.$ac_objext
40433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40434 (eval $ac_compile) 2>conftest.er1
40436 grep -v '^ *+' conftest.er1 >conftest.err
40438 cat conftest.err >&5
40439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440 (exit $ac_status); } &&
40441 { ac_try='test -z "$ac_c_werror_flag"
40442 || test ! -s conftest.err'
40443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40444 (eval $ac_try) 2>&5
40446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); }; } &&
40448 { ac_try='test -s conftest.$ac_objext'
40449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40450 (eval $ac_try) 2>&5
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); }; }; then
40456 echo "$as_me: failed program was:" >&5
40457 sed 's/^/| /' conftest.$ac_ext >&5
40461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40463 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40464 echo "${ECHO_T}$ac_cv_type_int" >&6
40466 echo "$as_me:$LINENO: checking size of int" >&5
40467 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40468 if test "${ac_cv_sizeof_int+set}" = set; then
40469 echo $ECHO_N "(cached) $ECHO_C" >&6
40471 if test "$ac_cv_type_int" = yes; then
40472 # The cast to unsigned long works around a bug in the HP C Compiler
40473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40475 # This bug is HP SR number 8606223364.
40476 if test "$cross_compiling" = yes; then
40477 # Depending upon the size, compute the lo and hi bounds.
40478 cat >conftest.$ac_ext <<_ACEOF
40481 cat confdefs.h >>conftest.$ac_ext
40482 cat >>conftest.$ac_ext <<_ACEOF
40483 /* end confdefs.h. */
40484 $ac_includes_default
40488 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40495 rm -f conftest.$ac_objext
40496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40497 (eval $ac_compile) 2>conftest.er1
40499 grep -v '^ *+' conftest.er1 >conftest.err
40501 cat conftest.err >&5
40502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); } &&
40504 { ac_try='test -z "$ac_c_werror_flag"
40505 || test ! -s conftest.err'
40506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507 (eval $ac_try) 2>&5
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); }; } &&
40511 { ac_try='test -s conftest.$ac_objext'
40512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513 (eval $ac_try) 2>&5
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); }; }; then
40519 cat >conftest.$ac_ext <<_ACEOF
40522 cat confdefs.h >>conftest.$ac_ext
40523 cat >>conftest.$ac_ext <<_ACEOF
40524 /* end confdefs.h. */
40525 $ac_includes_default
40529 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40536 rm -f conftest.$ac_objext
40537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40538 (eval $ac_compile) 2>conftest.er1
40540 grep -v '^ *+' conftest.er1 >conftest.err
40542 cat conftest.err >&5
40543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544 (exit $ac_status); } &&
40545 { ac_try='test -z "$ac_c_werror_flag"
40546 || test ! -s conftest.err'
40547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40548 (eval $ac_try) 2>&5
40550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551 (exit $ac_status); }; } &&
40552 { ac_try='test -s conftest.$ac_objext'
40553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40554 (eval $ac_try) 2>&5
40556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40557 (exit $ac_status); }; }; then
40558 ac_hi=$ac_mid; break
40560 echo "$as_me: failed program was:" >&5
40561 sed 's/^/| /' conftest.$ac_ext >&5
40563 ac_lo=`expr $ac_mid + 1`
40564 if test $ac_lo -le $ac_mid; then
40568 ac_mid=`expr 2 '*' $ac_mid + 1`
40570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40573 echo "$as_me: failed program was:" >&5
40574 sed 's/^/| /' conftest.$ac_ext >&5
40576 cat >conftest.$ac_ext <<_ACEOF
40579 cat confdefs.h >>conftest.$ac_ext
40580 cat >>conftest.$ac_ext <<_ACEOF
40581 /* end confdefs.h. */
40582 $ac_includes_default
40586 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40593 rm -f conftest.$ac_objext
40594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40595 (eval $ac_compile) 2>conftest.er1
40597 grep -v '^ *+' conftest.er1 >conftest.err
40599 cat conftest.err >&5
40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); } &&
40602 { ac_try='test -z "$ac_c_werror_flag"
40603 || test ! -s conftest.err'
40604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605 (eval $ac_try) 2>&5
40607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608 (exit $ac_status); }; } &&
40609 { ac_try='test -s conftest.$ac_objext'
40610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40611 (eval $ac_try) 2>&5
40613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614 (exit $ac_status); }; }; then
40617 cat >conftest.$ac_ext <<_ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h. */
40623 $ac_includes_default
40627 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40634 rm -f conftest.$ac_objext
40635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40636 (eval $ac_compile) 2>conftest.er1
40638 grep -v '^ *+' conftest.er1 >conftest.err
40640 cat conftest.err >&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); } &&
40643 { ac_try='test -z "$ac_c_werror_flag"
40644 || test ! -s conftest.err'
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; } &&
40650 { ac_try='test -s conftest.$ac_objext'
40651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652 (eval $ac_try) 2>&5
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); }; }; then
40656 ac_lo=$ac_mid; break
40658 echo "$as_me: failed program was:" >&5
40659 sed 's/^/| /' conftest.$ac_ext >&5
40661 ac_hi=`expr '(' $ac_mid ')' - 1`
40662 if test $ac_mid -le $ac_hi; then
40666 ac_mid=`expr 2 '*' $ac_mid`
40668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40671 echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40679 # Binary search between lo and hi bounds.
40680 while test "x$ac_lo" != "x$ac_hi"; do
40681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40682 cat >conftest.$ac_ext <<_ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h. */
40688 $ac_includes_default
40692 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40699 rm -f conftest.$ac_objext
40700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40701 (eval $ac_compile) 2>conftest.er1
40703 grep -v '^ *+' conftest.er1 >conftest.err
40705 cat conftest.err >&5
40706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707 (exit $ac_status); } &&
40708 { ac_try='test -z "$ac_c_werror_flag"
40709 || test ! -s conftest.err'
40710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40711 (eval $ac_try) 2>&5
40713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714 (exit $ac_status); }; } &&
40715 { ac_try='test -s conftest.$ac_objext'
40716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717 (eval $ac_try) 2>&5
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); }; }; then
40723 echo "$as_me: failed program was:" >&5
40724 sed 's/^/| /' conftest.$ac_ext >&5
40726 ac_lo=`expr '(' $ac_mid ')' + 1`
40728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40731 ?*) ac_cv_sizeof_int=$ac_lo;;
40732 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40733 See \`config.log' for more details." >&5
40734 echo "$as_me: error: cannot compute sizeof (int), 77
40735 See \`config.log' for more details." >&2;}
40736 { (exit 1); exit 1; }; } ;;
40739 if test "$cross_compiling" = yes; then
40740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40741 See \`config.log' for more details." >&5
40742 echo "$as_me: error: cannot run test program while cross compiling
40743 See \`config.log' for more details." >&2;}
40744 { (exit 1); exit 1; }; }
40746 cat >conftest.$ac_ext <<_ACEOF
40749 cat confdefs.h >>conftest.$ac_ext
40750 cat >>conftest.$ac_ext <<_ACEOF
40751 /* end confdefs.h. */
40752 $ac_includes_default
40753 long longval () { return (long) (sizeof (int)); }
40754 unsigned long ulongval () { return (long) (sizeof (int)); }
40756 #include <stdlib.h>
40761 FILE *f = fopen ("conftest.val", "w");
40764 if (((long) (sizeof (int))) < 0)
40766 long i = longval ();
40767 if (i != ((long) (sizeof (int))))
40769 fprintf (f, "%ld\n", i);
40773 unsigned long i = ulongval ();
40774 if (i != ((long) (sizeof (int))))
40776 fprintf (f, "%lu\n", i);
40778 exit (ferror (f) || fclose (f) != 0);
40784 rm -f conftest$ac_exeext
40785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40786 (eval $ac_link) 2>&5
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40791 (eval $ac_try) 2>&5
40793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40794 (exit $ac_status); }; }; then
40795 ac_cv_sizeof_int=`cat conftest.val`
40797 echo "$as_me: program exited with status $ac_status" >&5
40798 echo "$as_me: failed program was:" >&5
40799 sed 's/^/| /' conftest.$ac_ext >&5
40801 ( exit $ac_status )
40802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40803 See \`config.log' for more details." >&5
40804 echo "$as_me: error: cannot compute sizeof (int), 77
40805 See \`config.log' for more details." >&2;}
40806 { (exit 1); exit 1; }; }
40808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40816 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
40817 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
40818 cat >>confdefs.h <<_ACEOF
40819 #define SIZEOF_INT $ac_cv_sizeof_int
40823 echo "$as_me:$LINENO: checking for long" >&5
40824 echo $ECHO_N "checking for long... $ECHO_C" >&6
40825 if test "${ac_cv_type_long+set}" = set; then
40826 echo $ECHO_N "(cached) $ECHO_C" >&6
40828 cat >conftest.$ac_ext <<_ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h. */
40834 $ac_includes_default
40846 rm -f conftest.$ac_objext
40847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40848 (eval $ac_compile) 2>conftest.er1
40850 grep -v '^ *+' conftest.er1 >conftest.err
40852 cat conftest.err >&5
40853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854 (exit $ac_status); } &&
40855 { ac_try='test -z "$ac_c_werror_flag"
40856 || test ! -s conftest.err'
40857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40858 (eval $ac_try) 2>&5
40860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861 (exit $ac_status); }; } &&
40862 { ac_try='test -s conftest.$ac_objext'
40863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40864 (eval $ac_try) 2>&5
40866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867 (exit $ac_status); }; }; then
40868 ac_cv_type_long=yes
40870 echo "$as_me: failed program was:" >&5
40871 sed 's/^/| /' conftest.$ac_ext >&5
40875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40877 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
40878 echo "${ECHO_T}$ac_cv_type_long" >&6
40880 echo "$as_me:$LINENO: checking size of long" >&5
40881 echo $ECHO_N "checking size of long... $ECHO_C" >&6
40882 if test "${ac_cv_sizeof_long+set}" = set; then
40883 echo $ECHO_N "(cached) $ECHO_C" >&6
40885 if test "$ac_cv_type_long" = yes; then
40886 # The cast to unsigned long works around a bug in the HP C Compiler
40887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40889 # This bug is HP SR number 8606223364.
40890 if test "$cross_compiling" = yes; then
40891 # Depending upon the size, compute the lo and hi bounds.
40892 cat >conftest.$ac_ext <<_ACEOF
40895 cat confdefs.h >>conftest.$ac_ext
40896 cat >>conftest.$ac_ext <<_ACEOF
40897 /* end confdefs.h. */
40898 $ac_includes_default
40902 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
40909 rm -f conftest.$ac_objext
40910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40911 (eval $ac_compile) 2>conftest.er1
40913 grep -v '^ *+' conftest.er1 >conftest.err
40915 cat conftest.err >&5
40916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917 (exit $ac_status); } &&
40918 { ac_try='test -z "$ac_c_werror_flag"
40919 || test ! -s conftest.err'
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921 (eval $ac_try) 2>&5
40923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; } &&
40925 { ac_try='test -s conftest.$ac_objext'
40926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927 (eval $ac_try) 2>&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); }; }; then
40933 cat >conftest.$ac_ext <<_ACEOF
40936 cat confdefs.h >>conftest.$ac_ext
40937 cat >>conftest.$ac_ext <<_ACEOF
40938 /* end confdefs.h. */
40939 $ac_includes_default
40943 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40950 rm -f conftest.$ac_objext
40951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40952 (eval $ac_compile) 2>conftest.er1
40954 grep -v '^ *+' conftest.er1 >conftest.err
40956 cat conftest.err >&5
40957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958 (exit $ac_status); } &&
40959 { ac_try='test -z "$ac_c_werror_flag"
40960 || test ! -s conftest.err'
40961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962 (eval $ac_try) 2>&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; } &&
40966 { ac_try='test -s conftest.$ac_objext'
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; }; then
40972 ac_hi=$ac_mid; break
40974 echo "$as_me: failed program was:" >&5
40975 sed 's/^/| /' conftest.$ac_ext >&5
40977 ac_lo=`expr $ac_mid + 1`
40978 if test $ac_lo -le $ac_mid; then
40982 ac_mid=`expr 2 '*' $ac_mid + 1`
40984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40987 echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40990 cat >conftest.$ac_ext <<_ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h. */
40996 $ac_includes_default
41000 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41007 rm -f conftest.$ac_objext
41008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41009 (eval $ac_compile) 2>conftest.er1
41011 grep -v '^ *+' conftest.er1 >conftest.err
41013 cat conftest.err >&5
41014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015 (exit $ac_status); } &&
41016 { ac_try='test -z "$ac_c_werror_flag"
41017 || test ! -s conftest.err'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019 (eval $ac_try) 2>&5
41021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; } &&
41023 { ac_try='test -s conftest.$ac_objext'
41024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41025 (eval $ac_try) 2>&5
41027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 (exit $ac_status); }; }; then
41031 cat >conftest.$ac_ext <<_ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h. */
41037 $ac_includes_default
41041 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41048 rm -f conftest.$ac_objext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050 (eval $ac_compile) 2>conftest.er1
41052 grep -v '^ *+' conftest.er1 >conftest.err
41054 cat conftest.err >&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } &&
41057 { ac_try='test -z "$ac_c_werror_flag"
41058 || test ! -s conftest.err'
41059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060 (eval $ac_try) 2>&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); }; } &&
41064 { ac_try='test -s conftest.$ac_objext'
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; }; then
41070 ac_lo=$ac_mid; break
41072 echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41075 ac_hi=`expr '(' $ac_mid ')' - 1`
41076 if test $ac_mid -le $ac_hi; then
41080 ac_mid=`expr 2 '*' $ac_mid`
41082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41085 echo "$as_me: failed program was:" >&5
41086 sed 's/^/| /' conftest.$ac_ext >&5
41090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41093 # Binary search between lo and hi bounds.
41094 while test "x$ac_lo" != "x$ac_hi"; do
41095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41096 cat >conftest.$ac_ext <<_ACEOF
41099 cat confdefs.h >>conftest.$ac_ext
41100 cat >>conftest.$ac_ext <<_ACEOF
41101 /* end confdefs.h. */
41102 $ac_includes_default
41106 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41113 rm -f conftest.$ac_objext
41114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41115 (eval $ac_compile) 2>conftest.er1
41117 grep -v '^ *+' conftest.er1 >conftest.err
41119 cat conftest.err >&5
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); } &&
41122 { ac_try='test -z "$ac_c_werror_flag"
41123 || test ! -s conftest.err'
41124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41125 (eval $ac_try) 2>&5
41127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); }; } &&
41129 { ac_try='test -s conftest.$ac_objext'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; }; then
41137 echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41140 ac_lo=`expr '(' $ac_mid ')' + 1`
41142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41145 ?*) ac_cv_sizeof_long=$ac_lo;;
41146 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41147 See \`config.log' for more details." >&5
41148 echo "$as_me: error: cannot compute sizeof (long), 77
41149 See \`config.log' for more details." >&2;}
41150 { (exit 1); exit 1; }; } ;;
41153 if test "$cross_compiling" = yes; then
41154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41155 See \`config.log' for more details." >&5
41156 echo "$as_me: error: cannot run test program while cross compiling
41157 See \`config.log' for more details." >&2;}
41158 { (exit 1); exit 1; }; }
41160 cat >conftest.$ac_ext <<_ACEOF
41163 cat confdefs.h >>conftest.$ac_ext
41164 cat >>conftest.$ac_ext <<_ACEOF
41165 /* end confdefs.h. */
41166 $ac_includes_default
41167 long longval () { return (long) (sizeof (long)); }
41168 unsigned long ulongval () { return (long) (sizeof (long)); }
41170 #include <stdlib.h>
41175 FILE *f = fopen ("conftest.val", "w");
41178 if (((long) (sizeof (long))) < 0)
41180 long i = longval ();
41181 if (i != ((long) (sizeof (long))))
41183 fprintf (f, "%ld\n", i);
41187 unsigned long i = ulongval ();
41188 if (i != ((long) (sizeof (long))))
41190 fprintf (f, "%lu\n", i);
41192 exit (ferror (f) || fclose (f) != 0);
41198 rm -f conftest$ac_exeext
41199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41200 (eval $ac_link) 2>&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41205 (eval $ac_try) 2>&5
41207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208 (exit $ac_status); }; }; then
41209 ac_cv_sizeof_long=`cat conftest.val`
41211 echo "$as_me: program exited with status $ac_status" >&5
41212 echo "$as_me: failed program was:" >&5
41213 sed 's/^/| /' conftest.$ac_ext >&5
41215 ( exit $ac_status )
41216 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41217 See \`config.log' for more details." >&5
41218 echo "$as_me: error: cannot compute sizeof (long), 77
41219 See \`config.log' for more details." >&2;}
41220 { (exit 1); exit 1; }; }
41222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41227 ac_cv_sizeof_long=0
41230 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41231 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41232 cat >>confdefs.h <<_ACEOF
41233 #define SIZEOF_LONG $ac_cv_sizeof_long
41237 echo "$as_me:$LINENO: checking for long long" >&5
41238 echo $ECHO_N "checking for long long... $ECHO_C" >&6
41239 if test "${ac_cv_type_long_long+set}" = set; then
41240 echo $ECHO_N "(cached) $ECHO_C" >&6
41242 cat >conftest.$ac_ext <<_ACEOF
41245 cat confdefs.h >>conftest.$ac_ext
41246 cat >>conftest.$ac_ext <<_ACEOF
41247 /* end confdefs.h. */
41248 $ac_includes_default
41252 if ((long long *) 0)
41254 if (sizeof (long long))
41260 rm -f conftest.$ac_objext
41261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41262 (eval $ac_compile) 2>conftest.er1
41264 grep -v '^ *+' conftest.er1 >conftest.err
41266 cat conftest.err >&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); } &&
41269 { ac_try='test -z "$ac_c_werror_flag"
41270 || test ! -s conftest.err'
41271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41272 (eval $ac_try) 2>&5
41274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275 (exit $ac_status); }; } &&
41276 { ac_try='test -s conftest.$ac_objext'
41277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41278 (eval $ac_try) 2>&5
41280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281 (exit $ac_status); }; }; then
41282 ac_cv_type_long_long=yes
41284 echo "$as_me: failed program was:" >&5
41285 sed 's/^/| /' conftest.$ac_ext >&5
41287 ac_cv_type_long_long=no
41289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41291 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
41292 echo "${ECHO_T}$ac_cv_type_long_long" >&6
41294 echo "$as_me:$LINENO: checking size of long long" >&5
41295 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
41296 if test "${ac_cv_sizeof_long_long+set}" = set; then
41297 echo $ECHO_N "(cached) $ECHO_C" >&6
41299 if test "$ac_cv_type_long_long" = yes; then
41300 # The cast to unsigned long works around a bug in the HP C Compiler
41301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41303 # This bug is HP SR number 8606223364.
41304 if test "$cross_compiling" = yes; then
41305 # Depending upon the size, compute the lo and hi bounds.
41306 cat >conftest.$ac_ext <<_ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h. */
41312 $ac_includes_default
41316 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
41323 rm -f conftest.$ac_objext
41324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41325 (eval $ac_compile) 2>conftest.er1
41327 grep -v '^ *+' conftest.er1 >conftest.err
41329 cat conftest.err >&5
41330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41331 (exit $ac_status); } &&
41332 { ac_try='test -z "$ac_c_werror_flag"
41333 || test ! -s conftest.err'
41334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41335 (eval $ac_try) 2>&5
41337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338 (exit $ac_status); }; } &&
41339 { ac_try='test -s conftest.$ac_objext'
41340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341 (eval $ac_try) 2>&5
41343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344 (exit $ac_status); }; }; then
41347 cat >conftest.$ac_ext <<_ACEOF
41350 cat confdefs.h >>conftest.$ac_ext
41351 cat >>conftest.$ac_ext <<_ACEOF
41352 /* end confdefs.h. */
41353 $ac_includes_default
41357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41364 rm -f conftest.$ac_objext
41365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41366 (eval $ac_compile) 2>conftest.er1
41368 grep -v '^ *+' conftest.er1 >conftest.err
41370 cat conftest.err >&5
41371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41372 (exit $ac_status); } &&
41373 { ac_try='test -z "$ac_c_werror_flag"
41374 || test ! -s conftest.err'
41375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376 (eval $ac_try) 2>&5
41378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379 (exit $ac_status); }; } &&
41380 { ac_try='test -s conftest.$ac_objext'
41381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41382 (eval $ac_try) 2>&5
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); }; }; then
41386 ac_hi=$ac_mid; break
41388 echo "$as_me: failed program was:" >&5
41389 sed 's/^/| /' conftest.$ac_ext >&5
41391 ac_lo=`expr $ac_mid + 1`
41392 if test $ac_lo -le $ac_mid; then
41396 ac_mid=`expr 2 '*' $ac_mid + 1`
41398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41401 echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41404 cat >conftest.$ac_ext <<_ACEOF
41407 cat confdefs.h >>conftest.$ac_ext
41408 cat >>conftest.$ac_ext <<_ACEOF
41409 /* end confdefs.h. */
41410 $ac_includes_default
41414 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
41421 rm -f conftest.$ac_objext
41422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41423 (eval $ac_compile) 2>conftest.er1
41425 grep -v '^ *+' conftest.er1 >conftest.err
41427 cat conftest.err >&5
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); } &&
41430 { ac_try='test -z "$ac_c_werror_flag"
41431 || test ! -s conftest.err'
41432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41433 (eval $ac_try) 2>&5
41435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436 (exit $ac_status); }; } &&
41437 { ac_try='test -s conftest.$ac_objext'
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; }; then
41445 cat >conftest.$ac_ext <<_ACEOF
41448 cat confdefs.h >>conftest.$ac_ext
41449 cat >>conftest.$ac_ext <<_ACEOF
41450 /* end confdefs.h. */
41451 $ac_includes_default
41455 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
41462 rm -f conftest.$ac_objext
41463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41464 (eval $ac_compile) 2>conftest.er1
41466 grep -v '^ *+' conftest.er1 >conftest.err
41468 cat conftest.err >&5
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); } &&
41471 { ac_try='test -z "$ac_c_werror_flag"
41472 || test ! -s conftest.err'
41473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474 (eval $ac_try) 2>&5
41476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477 (exit $ac_status); }; } &&
41478 { ac_try='test -s conftest.$ac_objext'
41479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41480 (eval $ac_try) 2>&5
41482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483 (exit $ac_status); }; }; then
41484 ac_lo=$ac_mid; break
41486 echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41489 ac_hi=`expr '(' $ac_mid ')' - 1`
41490 if test $ac_mid -le $ac_hi; then
41494 ac_mid=`expr 2 '*' $ac_mid`
41496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41499 echo "$as_me: failed program was:" >&5
41500 sed 's/^/| /' conftest.$ac_ext >&5
41504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41507 # Binary search between lo and hi bounds.
41508 while test "x$ac_lo" != "x$ac_hi"; do
41509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41510 cat >conftest.$ac_ext <<_ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41516 $ac_includes_default
41520 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41527 rm -f conftest.$ac_objext
41528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41529 (eval $ac_compile) 2>conftest.er1
41531 grep -v '^ *+' conftest.er1 >conftest.err
41533 cat conftest.err >&5
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); } &&
41536 { ac_try='test -z "$ac_c_werror_flag"
41537 || test ! -s conftest.err'
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; } &&
41543 { ac_try='test -s conftest.$ac_objext'
41544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545 (eval $ac_try) 2>&5
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; }; then
41551 echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41554 ac_lo=`expr '(' $ac_mid ')' + 1`
41556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41559 ?*) ac_cv_sizeof_long_long=$ac_lo;;
41560 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41561 See \`config.log' for more details." >&5
41562 echo "$as_me: error: cannot compute sizeof (long long), 77
41563 See \`config.log' for more details." >&2;}
41564 { (exit 1); exit 1; }; } ;;
41567 if test "$cross_compiling" = yes; then
41568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41569 See \`config.log' for more details." >&5
41570 echo "$as_me: error: cannot run test program while cross compiling
41571 See \`config.log' for more details." >&2;}
41572 { (exit 1); exit 1; }; }
41574 cat >conftest.$ac_ext <<_ACEOF
41577 cat confdefs.h >>conftest.$ac_ext
41578 cat >>conftest.$ac_ext <<_ACEOF
41579 /* end confdefs.h. */
41580 $ac_includes_default
41581 long longval () { return (long) (sizeof (long long)); }
41582 unsigned long ulongval () { return (long) (sizeof (long long)); }
41584 #include <stdlib.h>
41589 FILE *f = fopen ("conftest.val", "w");
41592 if (((long) (sizeof (long long))) < 0)
41594 long i = longval ();
41595 if (i != ((long) (sizeof (long long))))
41597 fprintf (f, "%ld\n", i);
41601 unsigned long i = ulongval ();
41602 if (i != ((long) (sizeof (long long))))
41604 fprintf (f, "%lu\n", i);
41606 exit (ferror (f) || fclose (f) != 0);
41612 rm -f conftest$ac_exeext
41613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41614 (eval $ac_link) 2>&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41619 (eval $ac_try) 2>&5
41621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41622 (exit $ac_status); }; }; then
41623 ac_cv_sizeof_long_long=`cat conftest.val`
41625 echo "$as_me: program exited with status $ac_status" >&5
41626 echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41629 ( exit $ac_status )
41630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41631 See \`config.log' for more details." >&5
41632 echo "$as_me: error: cannot compute sizeof (long long), 77
41633 See \`config.log' for more details." >&2;}
41634 { (exit 1); exit 1; }; }
41636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41641 ac_cv_sizeof_long_long=0
41644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
41645 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
41646 cat >>confdefs.h <<_ACEOF
41647 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
41651 echo "$as_me:$LINENO: checking for wchar_t" >&5
41652 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41653 if test "${ac_cv_type_wchar_t+set}" = set; then
41654 echo $ECHO_N "(cached) $ECHO_C" >&6
41656 cat >conftest.$ac_ext <<_ACEOF
41659 cat confdefs.h >>conftest.$ac_ext
41660 cat >>conftest.$ac_ext <<_ACEOF
41661 /* end confdefs.h. */
41662 $ac_includes_default
41668 if (sizeof (wchar_t))
41674 rm -f conftest.$ac_objext
41675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41676 (eval $ac_compile) 2>conftest.er1
41678 grep -v '^ *+' conftest.er1 >conftest.err
41680 cat conftest.err >&5
41681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41682 (exit $ac_status); } &&
41683 { ac_try='test -z "$ac_c_werror_flag"
41684 || test ! -s conftest.err'
41685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41686 (eval $ac_try) 2>&5
41688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689 (exit $ac_status); }; } &&
41690 { ac_try='test -s conftest.$ac_objext'
41691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41692 (eval $ac_try) 2>&5
41694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695 (exit $ac_status); }; }; then
41696 ac_cv_type_wchar_t=yes
41698 echo "$as_me: failed program was:" >&5
41699 sed 's/^/| /' conftest.$ac_ext >&5
41701 ac_cv_type_wchar_t=no
41703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41705 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41706 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41708 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41709 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41710 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41711 echo $ECHO_N "(cached) $ECHO_C" >&6
41713 if test "$ac_cv_type_wchar_t" = yes; then
41714 # The cast to unsigned long works around a bug in the HP C Compiler
41715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41717 # This bug is HP SR number 8606223364.
41718 if test "$cross_compiling" = yes; then
41719 # Depending upon the size, compute the lo and hi bounds.
41720 cat >conftest.$ac_ext <<_ACEOF
41723 cat confdefs.h >>conftest.$ac_ext
41724 cat >>conftest.$ac_ext <<_ACEOF
41725 /* end confdefs.h. */
41726 $ac_includes_default
41730 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41737 rm -f conftest.$ac_objext
41738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41739 (eval $ac_compile) 2>conftest.er1
41741 grep -v '^ *+' conftest.er1 >conftest.err
41743 cat conftest.err >&5
41744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41745 (exit $ac_status); } &&
41746 { ac_try='test -z "$ac_c_werror_flag"
41747 || test ! -s conftest.err'
41748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41749 (eval $ac_try) 2>&5
41751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752 (exit $ac_status); }; } &&
41753 { ac_try='test -s conftest.$ac_objext'
41754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41755 (eval $ac_try) 2>&5
41757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41758 (exit $ac_status); }; }; then
41761 cat >conftest.$ac_ext <<_ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h. */
41767 $ac_includes_default
41771 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41778 rm -f conftest.$ac_objext
41779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41780 (eval $ac_compile) 2>conftest.er1
41782 grep -v '^ *+' conftest.er1 >conftest.err
41784 cat conftest.err >&5
41785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41786 (exit $ac_status); } &&
41787 { ac_try='test -z "$ac_c_werror_flag"
41788 || test ! -s conftest.err'
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; } &&
41794 { ac_try='test -s conftest.$ac_objext'
41795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41796 (eval $ac_try) 2>&5
41798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799 (exit $ac_status); }; }; then
41800 ac_hi=$ac_mid; break
41802 echo "$as_me: failed program was:" >&5
41803 sed 's/^/| /' conftest.$ac_ext >&5
41805 ac_lo=`expr $ac_mid + 1`
41806 if test $ac_lo -le $ac_mid; then
41810 ac_mid=`expr 2 '*' $ac_mid + 1`
41812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41815 echo "$as_me: failed program was:" >&5
41816 sed 's/^/| /' conftest.$ac_ext >&5
41818 cat >conftest.$ac_ext <<_ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h. */
41824 $ac_includes_default
41828 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41835 rm -f conftest.$ac_objext
41836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41837 (eval $ac_compile) 2>conftest.er1
41839 grep -v '^ *+' conftest.er1 >conftest.err
41841 cat conftest.err >&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); } &&
41844 { ac_try='test -z "$ac_c_werror_flag"
41845 || test ! -s conftest.err'
41846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41847 (eval $ac_try) 2>&5
41849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41850 (exit $ac_status); }; } &&
41851 { ac_try='test -s conftest.$ac_objext'
41852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853 (eval $ac_try) 2>&5
41855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856 (exit $ac_status); }; }; then
41859 cat >conftest.$ac_ext <<_ACEOF
41862 cat confdefs.h >>conftest.$ac_ext
41863 cat >>conftest.$ac_ext <<_ACEOF
41864 /* end confdefs.h. */
41865 $ac_includes_default
41869 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41876 rm -f conftest.$ac_objext
41877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41878 (eval $ac_compile) 2>conftest.er1
41880 grep -v '^ *+' conftest.er1 >conftest.err
41882 cat conftest.err >&5
41883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41884 (exit $ac_status); } &&
41885 { ac_try='test -z "$ac_c_werror_flag"
41886 || test ! -s conftest.err'
41887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41888 (eval $ac_try) 2>&5
41890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891 (exit $ac_status); }; } &&
41892 { ac_try='test -s conftest.$ac_objext'
41893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41894 (eval $ac_try) 2>&5
41896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897 (exit $ac_status); }; }; then
41898 ac_lo=$ac_mid; break
41900 echo "$as_me: failed program was:" >&5
41901 sed 's/^/| /' conftest.$ac_ext >&5
41903 ac_hi=`expr '(' $ac_mid ')' - 1`
41904 if test $ac_mid -le $ac_hi; then
41908 ac_mid=`expr 2 '*' $ac_mid`
41910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41913 echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41921 # Binary search between lo and hi bounds.
41922 while test "x$ac_lo" != "x$ac_hi"; do
41923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41924 cat >conftest.$ac_ext <<_ACEOF
41927 cat confdefs.h >>conftest.$ac_ext
41928 cat >>conftest.$ac_ext <<_ACEOF
41929 /* end confdefs.h. */
41930 $ac_includes_default
41934 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41941 rm -f conftest.$ac_objext
41942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41943 (eval $ac_compile) 2>conftest.er1
41945 grep -v '^ *+' conftest.er1 >conftest.err
41947 cat conftest.err >&5
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); } &&
41950 { ac_try='test -z "$ac_c_werror_flag"
41951 || test ! -s conftest.err'
41952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953 (eval $ac_try) 2>&5
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); }; } &&
41957 { ac_try='test -s conftest.$ac_objext'
41958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959 (eval $ac_try) 2>&5
41961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); }; }; then
41965 echo "$as_me: failed program was:" >&5
41966 sed 's/^/| /' conftest.$ac_ext >&5
41968 ac_lo=`expr '(' $ac_mid ')' + 1`
41970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41973 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41974 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41975 See \`config.log' for more details." >&5
41976 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41977 See \`config.log' for more details." >&2;}
41978 { (exit 1); exit 1; }; } ;;
41981 if test "$cross_compiling" = yes; then
41982 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41983 See \`config.log' for more details." >&5
41984 echo "$as_me: error: cannot run test program while cross compiling
41985 See \`config.log' for more details." >&2;}
41986 { (exit 1); exit 1; }; }
41988 cat >conftest.$ac_ext <<_ACEOF
41991 cat confdefs.h >>conftest.$ac_ext
41992 cat >>conftest.$ac_ext <<_ACEOF
41993 /* end confdefs.h. */
41994 $ac_includes_default
41995 long longval () { return (long) (sizeof (wchar_t)); }
41996 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41998 #include <stdlib.h>
42003 FILE *f = fopen ("conftest.val", "w");
42006 if (((long) (sizeof (wchar_t))) < 0)
42008 long i = longval ();
42009 if (i != ((long) (sizeof (wchar_t))))
42011 fprintf (f, "%ld\n", i);
42015 unsigned long i = ulongval ();
42016 if (i != ((long) (sizeof (wchar_t))))
42018 fprintf (f, "%lu\n", i);
42020 exit (ferror (f) || fclose (f) != 0);
42026 rm -f conftest$ac_exeext
42027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42028 (eval $ac_link) 2>&5
42030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42033 (eval $ac_try) 2>&5
42035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036 (exit $ac_status); }; }; then
42037 ac_cv_sizeof_wchar_t=`cat conftest.val`
42039 echo "$as_me: program exited with status $ac_status" >&5
42040 echo "$as_me: failed program was:" >&5
42041 sed 's/^/| /' conftest.$ac_ext >&5
42043 ( exit $ac_status )
42044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42045 See \`config.log' for more details." >&5
42046 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42047 See \`config.log' for more details." >&2;}
42048 { (exit 1); exit 1; }; }
42050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42055 ac_cv_sizeof_wchar_t=0
42058 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42059 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42060 cat >>confdefs.h <<_ACEOF
42061 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42066 if test "$ac_cv_sizeof_int" -lt 4 ; then
42067 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42068 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42071 cat >>confdefs.h <<\_ACEOF
42072 #define LBER_INT_T long
42077 cat >>confdefs.h <<\_ACEOF
42078 #define LBER_INT_T int
42084 cat >>confdefs.h <<\_ACEOF
42085 #define LBER_LEN_T long
42089 cat >>confdefs.h <<\_ACEOF
42090 #define LBER_SOCKET_T int
42094 cat >>confdefs.h <<\_ACEOF
42095 #define LBER_TAG_T long
42099 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
42100 if test $ac_cv_sizeof_long_long -gt 4 ; then
42101 ol_with_mp=longlong
42103 cat >>confdefs.h <<\_ACEOF
42104 #define USE_MP_LONG_LONG 1
42107 elif test $ol_with_mp = longlong ; then
42108 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
42109 echo "$as_me: error: long long unusable for multiple precision" >&2;}
42110 { (exit 1); exit 1; }; }
42113 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
42114 if test $ac_cv_sizeof_long -gt 4 ; then
42117 cat >>confdefs.h <<\_ACEOF
42118 #define USE_MP_LONG 1
42121 elif test $ol_with_mp = long ; then
42122 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
42123 echo "$as_me: error: long unusable for multiple precision" >&2;}
42124 { (exit 1); exit 1; }; }
42127 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
42129 for ac_header in openssl/bn.h
42131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42133 echo "$as_me:$LINENO: checking for $ac_header" >&5
42134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42136 echo $ECHO_N "(cached) $ECHO_C" >&6
42138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42141 # Is the header compilable?
42142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42144 cat >conftest.$ac_ext <<_ACEOF
42147 cat confdefs.h >>conftest.$ac_ext
42148 cat >>conftest.$ac_ext <<_ACEOF
42149 /* end confdefs.h. */
42150 $ac_includes_default
42151 #include <$ac_header>
42153 rm -f conftest.$ac_objext
42154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42155 (eval $ac_compile) 2>conftest.er1
42157 grep -v '^ *+' conftest.er1 >conftest.err
42159 cat conftest.err >&5
42160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161 (exit $ac_status); } &&
42162 { ac_try='test -z "$ac_c_werror_flag"
42163 || test ! -s conftest.err'
42164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42165 (eval $ac_try) 2>&5
42167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168 (exit $ac_status); }; } &&
42169 { ac_try='test -s conftest.$ac_objext'
42170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42171 (eval $ac_try) 2>&5
42173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174 (exit $ac_status); }; }; then
42175 ac_header_compiler=yes
42177 echo "$as_me: failed program was:" >&5
42178 sed 's/^/| /' conftest.$ac_ext >&5
42180 ac_header_compiler=no
42182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42184 echo "${ECHO_T}$ac_header_compiler" >&6
42186 # Is the header present?
42187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42189 cat >conftest.$ac_ext <<_ACEOF
42192 cat confdefs.h >>conftest.$ac_ext
42193 cat >>conftest.$ac_ext <<_ACEOF
42194 /* end confdefs.h. */
42195 #include <$ac_header>
42197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42200 grep -v '^ *+' conftest.er1 >conftest.err
42202 cat conftest.err >&5
42203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204 (exit $ac_status); } >/dev/null; then
42205 if test -s conftest.err; then
42206 ac_cpp_err=$ac_c_preproc_warn_flag
42207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42214 if test -z "$ac_cpp_err"; then
42215 ac_header_preproc=yes
42217 echo "$as_me: failed program was:" >&5
42218 sed 's/^/| /' conftest.$ac_ext >&5
42220 ac_header_preproc=no
42222 rm -f conftest.err conftest.$ac_ext
42223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42224 echo "${ECHO_T}$ac_header_preproc" >&6
42226 # So? What about this header?
42227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42233 ac_header_preproc=yes
42236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42250 ## --------------------------------------------- ##
42251 ## Report this to <http://www.openldap.org/its/> ##
42252 ## --------------------------------------------- ##
42255 sed "s/^/$as_me: WARNING: /" >&2
42258 echo "$as_me:$LINENO: checking for $ac_header" >&5
42259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42261 echo $ECHO_N "(cached) $ECHO_C" >&6
42263 eval "$as_ac_Header=\$ac_header_preproc"
42265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42270 cat >>confdefs.h <<_ACEOF
42271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42279 for ac_header in openssl/crypto.h
42281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42283 echo "$as_me:$LINENO: checking for $ac_header" >&5
42284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42286 echo $ECHO_N "(cached) $ECHO_C" >&6
42288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42291 # Is the header compilable?
42292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42294 cat >conftest.$ac_ext <<_ACEOF
42297 cat confdefs.h >>conftest.$ac_ext
42298 cat >>conftest.$ac_ext <<_ACEOF
42299 /* end confdefs.h. */
42300 $ac_includes_default
42301 #include <$ac_header>
42303 rm -f conftest.$ac_objext
42304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42305 (eval $ac_compile) 2>conftest.er1
42307 grep -v '^ *+' conftest.er1 >conftest.err
42309 cat conftest.err >&5
42310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); } &&
42312 { ac_try='test -z "$ac_c_werror_flag"
42313 || test ! -s conftest.err'
42314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42315 (eval $ac_try) 2>&5
42317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42318 (exit $ac_status); }; } &&
42319 { ac_try='test -s conftest.$ac_objext'
42320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42321 (eval $ac_try) 2>&5
42323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42324 (exit $ac_status); }; }; then
42325 ac_header_compiler=yes
42327 echo "$as_me: failed program was:" >&5
42328 sed 's/^/| /' conftest.$ac_ext >&5
42330 ac_header_compiler=no
42332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42334 echo "${ECHO_T}$ac_header_compiler" >&6
42336 # Is the header present?
42337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42339 cat >conftest.$ac_ext <<_ACEOF
42342 cat confdefs.h >>conftest.$ac_ext
42343 cat >>conftest.$ac_ext <<_ACEOF
42344 /* end confdefs.h. */
42345 #include <$ac_header>
42347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42350 grep -v '^ *+' conftest.er1 >conftest.err
42352 cat conftest.err >&5
42353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354 (exit $ac_status); } >/dev/null; then
42355 if test -s conftest.err; then
42356 ac_cpp_err=$ac_c_preproc_warn_flag
42357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42364 if test -z "$ac_cpp_err"; then
42365 ac_header_preproc=yes
42367 echo "$as_me: failed program was:" >&5
42368 sed 's/^/| /' conftest.$ac_ext >&5
42370 ac_header_preproc=no
42372 rm -f conftest.err conftest.$ac_ext
42373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42374 echo "${ECHO_T}$ac_header_preproc" >&6
42376 # So? What about this header?
42377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42383 ac_header_preproc=yes
42386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42400 ## --------------------------------------------- ##
42401 ## Report this to <http://www.openldap.org/its/> ##
42402 ## --------------------------------------------- ##
42405 sed "s/^/$as_me: WARNING: /" >&2
42408 echo "$as_me:$LINENO: checking for $ac_header" >&5
42409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42411 echo $ECHO_N "(cached) $ECHO_C" >&6
42413 eval "$as_ac_Header=\$ac_header_preproc"
42415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42420 cat >>confdefs.h <<_ACEOF
42421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42428 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
42429 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
42430 test "$ol_with_tls" = "found" ; then
42433 cat >>confdefs.h <<\_ACEOF
42434 #define USE_MP_BIGNUM 1
42437 elif test $ol_with_mp = bignum ; then
42438 { { echo "$as_me:$LINENO: error: bignum not available" >&5
42439 echo "$as_me: error: bignum not available" >&2;}
42440 { (exit 1); exit 1; }; }
42443 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
42445 for ac_header in gmp.h
42447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42449 echo "$as_me:$LINENO: checking for $ac_header" >&5
42450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42452 echo $ECHO_N "(cached) $ECHO_C" >&6
42454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42457 # Is the header compilable?
42458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42460 cat >conftest.$ac_ext <<_ACEOF
42463 cat confdefs.h >>conftest.$ac_ext
42464 cat >>conftest.$ac_ext <<_ACEOF
42465 /* end confdefs.h. */
42466 $ac_includes_default
42467 #include <$ac_header>
42469 rm -f conftest.$ac_objext
42470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42471 (eval $ac_compile) 2>conftest.er1
42473 grep -v '^ *+' conftest.er1 >conftest.err
42475 cat conftest.err >&5
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); } &&
42478 { ac_try='test -z "$ac_c_werror_flag"
42479 || test ! -s conftest.err'
42480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42481 (eval $ac_try) 2>&5
42483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484 (exit $ac_status); }; } &&
42485 { ac_try='test -s conftest.$ac_objext'
42486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42487 (eval $ac_try) 2>&5
42489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490 (exit $ac_status); }; }; then
42491 ac_header_compiler=yes
42493 echo "$as_me: failed program was:" >&5
42494 sed 's/^/| /' conftest.$ac_ext >&5
42496 ac_header_compiler=no
42498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42500 echo "${ECHO_T}$ac_header_compiler" >&6
42502 # Is the header present?
42503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42505 cat >conftest.$ac_ext <<_ACEOF
42508 cat confdefs.h >>conftest.$ac_ext
42509 cat >>conftest.$ac_ext <<_ACEOF
42510 /* end confdefs.h. */
42511 #include <$ac_header>
42513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42516 grep -v '^ *+' conftest.er1 >conftest.err
42518 cat conftest.err >&5
42519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); } >/dev/null; then
42521 if test -s conftest.err; then
42522 ac_cpp_err=$ac_c_preproc_warn_flag
42523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42530 if test -z "$ac_cpp_err"; then
42531 ac_header_preproc=yes
42533 echo "$as_me: failed program was:" >&5
42534 sed 's/^/| /' conftest.$ac_ext >&5
42536 ac_header_preproc=no
42538 rm -f conftest.err conftest.$ac_ext
42539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42540 echo "${ECHO_T}$ac_header_preproc" >&6
42542 # So? What about this header?
42543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42549 ac_header_preproc=yes
42552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42566 ## --------------------------------------------- ##
42567 ## Report this to <http://www.openldap.org/its/> ##
42568 ## --------------------------------------------- ##
42571 sed "s/^/$as_me: WARNING: /" >&2
42574 echo "$as_me:$LINENO: checking for $ac_header" >&5
42575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42577 echo $ECHO_N "(cached) $ECHO_C" >&6
42579 eval "$as_ac_Header=\$ac_header_preproc"
42581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42586 cat >>confdefs.h <<_ACEOF
42587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42595 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
42596 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
42597 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
42598 echo $ECHO_N "(cached) $ECHO_C" >&6
42600 ac_check_lib_save_LIBS=$LIBS
42602 cat >conftest.$ac_ext <<_ACEOF
42605 cat confdefs.h >>conftest.$ac_ext
42606 cat >>conftest.$ac_ext <<_ACEOF
42607 /* end confdefs.h. */
42609 /* Override any gcc2 internal prototype to avoid an error. */
42613 /* We use char because int might match the return type of a gcc2
42614 builtin and then its argument prototype would still apply. */
42615 char __gmpz_add_ui ();
42624 rm -f conftest.$ac_objext conftest$ac_exeext
42625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42626 (eval $ac_link) 2>conftest.er1
42628 grep -v '^ *+' conftest.er1 >conftest.err
42630 cat conftest.err >&5
42631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42632 (exit $ac_status); } &&
42633 { ac_try='test -z "$ac_c_werror_flag"
42634 || test ! -s conftest.err'
42635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42636 (eval $ac_try) 2>&5
42638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42639 (exit $ac_status); }; } &&
42640 { ac_try='test -s conftest$ac_exeext'
42641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42642 (eval $ac_try) 2>&5
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); }; }; then
42646 ac_cv_lib_gmp___gmpz_add_ui=yes
42648 echo "$as_me: failed program was:" >&5
42649 sed 's/^/| /' conftest.$ac_ext >&5
42651 ac_cv_lib_gmp___gmpz_add_ui=no
42653 rm -f conftest.err conftest.$ac_objext \
42654 conftest$ac_exeext conftest.$ac_ext
42655 LIBS=$ac_check_lib_save_LIBS
42657 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42658 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
42659 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42660 cat >>confdefs.h <<_ACEOF
42661 #define HAVE_LIBGMP 1
42668 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
42670 cat >>confdefs.h <<\_ACEOF
42671 #define USE_MP_GMP 1
42675 elif test $ol_with_mp = gmp ; then
42676 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42677 echo "$as_me: error: gmp not available" >&2;}
42678 { (exit 1); exit 1; }; }
42681 if test $ol_with_mp = auto ; then
42685 echo "$as_me:$LINENO: checking for working memcmp" >&5
42686 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42687 if test "${ac_cv_func_memcmp_working+set}" = set; then
42688 echo $ECHO_N "(cached) $ECHO_C" >&6
42690 if test "$cross_compiling" = yes; then
42691 ac_cv_func_memcmp_working=no
42693 cat >conftest.$ac_ext <<_ACEOF
42696 cat confdefs.h >>conftest.$ac_ext
42697 cat >>conftest.$ac_ext <<_ACEOF
42698 /* end confdefs.h. */
42699 $ac_includes_default
42704 /* Some versions of memcmp are not 8-bit clean. */
42705 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42706 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42709 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42710 or more and with at least one buffer not starting on a 4-byte boundary.
42711 William Lewis provided this test program. */
42716 for (i = 0; i < 4; i++)
42720 strcpy (a, "--------01111111");
42721 strcpy (b, "--------10000000");
42722 if (memcmp (a, b, 16) >= 0)
42732 rm -f conftest$ac_exeext
42733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42734 (eval $ac_link) 2>&5
42736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42739 (eval $ac_try) 2>&5
42741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42742 (exit $ac_status); }; }; then
42743 ac_cv_func_memcmp_working=yes
42745 echo "$as_me: program exited with status $ac_status" >&5
42746 echo "$as_me: failed program was:" >&5
42747 sed 's/^/| /' conftest.$ac_ext >&5
42749 ( exit $ac_status )
42750 ac_cv_func_memcmp_working=no
42752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42755 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42756 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42757 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42758 "memcmp.$ac_objext" | \
42759 *" memcmp.$ac_objext" | \
42760 "memcmp.$ac_objext "* | \
42761 *" memcmp.$ac_objext "* ) ;;
42762 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42767 if test $ac_cv_func_memcmp_working = no ; then
42769 cat >>confdefs.h <<\_ACEOF
42770 #define NEED_MEMCMP_REPLACEMENT 1
42776 for ac_func in strftime
42778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42779 echo "$as_me:$LINENO: checking for $ac_func" >&5
42780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42781 if eval "test \"\${$as_ac_var+set}\" = set"; then
42782 echo $ECHO_N "(cached) $ECHO_C" >&6
42784 cat >conftest.$ac_ext <<_ACEOF
42787 cat confdefs.h >>conftest.$ac_ext
42788 cat >>conftest.$ac_ext <<_ACEOF
42789 /* end confdefs.h. */
42790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42792 #define $ac_func innocuous_$ac_func
42794 /* System header to define __stub macros and hopefully few prototypes,
42795 which can conflict with char $ac_func (); below.
42796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42797 <limits.h> exists even on freestanding compilers. */
42800 # include <limits.h>
42802 # include <assert.h>
42807 /* Override any gcc2 internal prototype to avoid an error. */
42812 /* We use char because int might match the return type of a gcc2
42813 builtin and then its argument prototype would still apply. */
42815 /* The GNU C library defines this for functions which it implements
42816 to always fail with ENOSYS. Some functions are actually named
42817 something starting with __ and the normal name is an alias. */
42818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42821 char (*f) () = $ac_func;
42830 return f != $ac_func;
42835 rm -f conftest.$ac_objext conftest$ac_exeext
42836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42837 (eval $ac_link) 2>conftest.er1
42839 grep -v '^ *+' conftest.er1 >conftest.err
42841 cat conftest.err >&5
42842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42843 (exit $ac_status); } &&
42844 { ac_try='test -z "$ac_c_werror_flag"
42845 || test ! -s conftest.err'
42846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42847 (eval $ac_try) 2>&5
42849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42850 (exit $ac_status); }; } &&
42851 { ac_try='test -s conftest$ac_exeext'
42852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42853 (eval $ac_try) 2>&5
42855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856 (exit $ac_status); }; }; then
42857 eval "$as_ac_var=yes"
42859 echo "$as_me: failed program was:" >&5
42860 sed 's/^/| /' conftest.$ac_ext >&5
42862 eval "$as_ac_var=no"
42864 rm -f conftest.err conftest.$ac_objext \
42865 conftest$ac_exeext conftest.$ac_ext
42867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42869 if test `eval echo '${'$as_ac_var'}'` = yes; then
42870 cat >>confdefs.h <<_ACEOF
42871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42875 # strftime is in -lintl on SCO UNIX.
42876 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42877 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42878 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42879 echo $ECHO_N "(cached) $ECHO_C" >&6
42881 ac_check_lib_save_LIBS=$LIBS
42882 LIBS="-lintl $LIBS"
42883 cat >conftest.$ac_ext <<_ACEOF
42886 cat confdefs.h >>conftest.$ac_ext
42887 cat >>conftest.$ac_ext <<_ACEOF
42888 /* end confdefs.h. */
42890 /* Override any gcc2 internal prototype to avoid an error. */
42894 /* We use char because int might match the return type of a gcc2
42895 builtin and then its argument prototype would still apply. */
42905 rm -f conftest.$ac_objext conftest$ac_exeext
42906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42907 (eval $ac_link) 2>conftest.er1
42909 grep -v '^ *+' conftest.er1 >conftest.err
42911 cat conftest.err >&5
42912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913 (exit $ac_status); } &&
42914 { ac_try='test -z "$ac_c_werror_flag"
42915 || test ! -s conftest.err'
42916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917 (eval $ac_try) 2>&5
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); }; } &&
42921 { ac_try='test -s conftest$ac_exeext'
42922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42923 (eval $ac_try) 2>&5
42925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42926 (exit $ac_status); }; }; then
42927 ac_cv_lib_intl_strftime=yes
42929 echo "$as_me: failed program was:" >&5
42930 sed 's/^/| /' conftest.$ac_ext >&5
42932 ac_cv_lib_intl_strftime=no
42934 rm -f conftest.err conftest.$ac_objext \
42935 conftest$ac_exeext conftest.$ac_ext
42936 LIBS=$ac_check_lib_save_LIBS
42938 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42939 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42940 if test $ac_cv_lib_intl_strftime = yes; then
42941 cat >>confdefs.h <<\_ACEOF
42942 #define HAVE_STRFTIME 1
42945 LIBS="-lintl $LIBS"
42952 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42953 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42954 if test "${ol_cv_func_inet_aton+set}" = set; then
42955 echo $ECHO_N "(cached) $ECHO_C" >&6
42957 cat >conftest.$ac_ext <<_ACEOF
42960 cat confdefs.h >>conftest.$ac_ext
42961 cat >>conftest.$ac_ext <<_ACEOF
42962 /* end confdefs.h. */
42964 #ifdef HAVE_SYS_TYPES_H
42965 # include <sys/types.h>
42967 #ifdef HAVE_SYS_SOCKET_H
42968 # include <sys/socket.h>
42969 # ifdef HAVE_SYS_SELECT_H
42970 # include <sys/select.h>
42972 # include <netinet/in.h>
42973 # ifdef HAVE_ARPA_INET_H
42974 # include <arpa/inet.h>
42982 int rc = inet_aton( "255.255.255.255", &in );
42987 rm -f conftest.$ac_objext conftest$ac_exeext
42988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42989 (eval $ac_link) 2>conftest.er1
42991 grep -v '^ *+' conftest.er1 >conftest.err
42993 cat conftest.err >&5
42994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995 (exit $ac_status); } &&
42996 { ac_try='test -z "$ac_c_werror_flag"
42997 || test ! -s conftest.err'
42998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42999 (eval $ac_try) 2>&5
43001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43002 (exit $ac_status); }; } &&
43003 { ac_try='test -s conftest$ac_exeext'
43004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43005 (eval $ac_try) 2>&5
43007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43008 (exit $ac_status); }; }; then
43009 ol_cv_func_inet_aton=yes
43011 echo "$as_me: failed program was:" >&5
43012 sed 's/^/| /' conftest.$ac_ext >&5
43014 ol_cv_func_inet_aton=no
43016 rm -f conftest.err conftest.$ac_objext \
43017 conftest$ac_exeext conftest.$ac_ext
43019 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
43020 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
43021 if test $ol_cv_func_inet_aton != no; then
43023 cat >>confdefs.h <<\_ACEOF
43024 #define HAVE_INET_ATON 1
43030 echo "$as_me:$LINENO: checking for _spawnlp" >&5
43031 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
43032 if test "${ac_cv_func__spawnlp+set}" = set; then
43033 echo $ECHO_N "(cached) $ECHO_C" >&6
43035 cat >conftest.$ac_ext <<_ACEOF
43038 cat confdefs.h >>conftest.$ac_ext
43039 cat >>conftest.$ac_ext <<_ACEOF
43040 /* end confdefs.h. */
43041 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
43042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43043 #define _spawnlp innocuous__spawnlp
43045 /* System header to define __stub macros and hopefully few prototypes,
43046 which can conflict with char _spawnlp (); below.
43047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43048 <limits.h> exists even on freestanding compilers. */
43051 # include <limits.h>
43053 # include <assert.h>
43058 /* Override any gcc2 internal prototype to avoid an error. */
43063 /* We use char because int might match the return type of a gcc2
43064 builtin and then its argument prototype would still apply. */
43066 /* The GNU C library defines this for functions which it implements
43067 to always fail with ENOSYS. Some functions are actually named
43068 something starting with __ and the normal name is an alias. */
43069 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
43072 char (*f) () = _spawnlp;
43081 return f != _spawnlp;
43086 rm -f conftest.$ac_objext conftest$ac_exeext
43087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43088 (eval $ac_link) 2>conftest.er1
43090 grep -v '^ *+' conftest.er1 >conftest.err
43092 cat conftest.err >&5
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); } &&
43095 { ac_try='test -z "$ac_c_werror_flag"
43096 || test ! -s conftest.err'
43097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43098 (eval $ac_try) 2>&5
43100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101 (exit $ac_status); }; } &&
43102 { ac_try='test -s conftest$ac_exeext'
43103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43104 (eval $ac_try) 2>&5
43106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43107 (exit $ac_status); }; }; then
43108 ac_cv_func__spawnlp=yes
43110 echo "$as_me: failed program was:" >&5
43111 sed 's/^/| /' conftest.$ac_ext >&5
43113 ac_cv_func__spawnlp=no
43115 rm -f conftest.err conftest.$ac_objext \
43116 conftest$ac_exeext conftest.$ac_ext
43118 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
43119 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
43120 if test $ac_cv_func__spawnlp = yes; then
43122 cat >>confdefs.h <<\_ACEOF
43123 #define HAVE_SPAWNLP 1
43129 echo "$as_me:$LINENO: checking for _snprintf" >&5
43130 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
43131 if test "${ac_cv_func__snprintf+set}" = set; then
43132 echo $ECHO_N "(cached) $ECHO_C" >&6
43134 cat >conftest.$ac_ext <<_ACEOF
43137 cat confdefs.h >>conftest.$ac_ext
43138 cat >>conftest.$ac_ext <<_ACEOF
43139 /* end confdefs.h. */
43140 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
43141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43142 #define _snprintf innocuous__snprintf
43144 /* System header to define __stub macros and hopefully few prototypes,
43145 which can conflict with char _snprintf (); below.
43146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43147 <limits.h> exists even on freestanding compilers. */
43150 # include <limits.h>
43152 # include <assert.h>
43157 /* Override any gcc2 internal prototype to avoid an error. */
43162 /* We use char because int might match the return type of a gcc2
43163 builtin and then its argument prototype would still apply. */
43165 /* The GNU C library defines this for functions which it implements
43166 to always fail with ENOSYS. Some functions are actually named
43167 something starting with __ and the normal name is an alias. */
43168 #if defined (__stub__snprintf) || defined (__stub____snprintf)
43171 char (*f) () = _snprintf;
43180 return f != _snprintf;
43185 rm -f conftest.$ac_objext conftest$ac_exeext
43186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43187 (eval $ac_link) 2>conftest.er1
43189 grep -v '^ *+' conftest.er1 >conftest.err
43191 cat conftest.err >&5
43192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193 (exit $ac_status); } &&
43194 { ac_try='test -z "$ac_c_werror_flag"
43195 || test ! -s conftest.err'
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; } &&
43201 { ac_try='test -s conftest$ac_exeext'
43202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43203 (eval $ac_try) 2>&5
43205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206 (exit $ac_status); }; }; then
43207 ac_cv_func__snprintf=yes
43209 echo "$as_me: failed program was:" >&5
43210 sed 's/^/| /' conftest.$ac_ext >&5
43212 ac_cv_func__snprintf=no
43214 rm -f conftest.err conftest.$ac_objext \
43215 conftest$ac_exeext conftest.$ac_ext
43217 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
43218 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
43219 if test $ac_cv_func__snprintf = yes; then
43220 ac_cv_func_snprintf=yes
43222 cat >>confdefs.h <<\_ACEOF
43223 #define snprintf _snprintf
43230 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
43231 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
43232 if test "${ac_cv_func__vsnprintf+set}" = set; then
43233 echo $ECHO_N "(cached) $ECHO_C" >&6
43235 cat >conftest.$ac_ext <<_ACEOF
43238 cat confdefs.h >>conftest.$ac_ext
43239 cat >>conftest.$ac_ext <<_ACEOF
43240 /* end confdefs.h. */
43241 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
43242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43243 #define _vsnprintf innocuous__vsnprintf
43245 /* System header to define __stub macros and hopefully few prototypes,
43246 which can conflict with char _vsnprintf (); below.
43247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43248 <limits.h> exists even on freestanding compilers. */
43251 # include <limits.h>
43253 # include <assert.h>
43258 /* Override any gcc2 internal prototype to avoid an error. */
43263 /* We use char because int might match the return type of a gcc2
43264 builtin and then its argument prototype would still apply. */
43265 char _vsnprintf ();
43266 /* The GNU C library defines this for functions which it implements
43267 to always fail with ENOSYS. Some functions are actually named
43268 something starting with __ and the normal name is an alias. */
43269 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
43272 char (*f) () = _vsnprintf;
43281 return f != _vsnprintf;
43286 rm -f conftest.$ac_objext conftest$ac_exeext
43287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43288 (eval $ac_link) 2>conftest.er1
43290 grep -v '^ *+' conftest.er1 >conftest.err
43292 cat conftest.err >&5
43293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43294 (exit $ac_status); } &&
43295 { ac_try='test -z "$ac_c_werror_flag"
43296 || test ! -s conftest.err'
43297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43298 (eval $ac_try) 2>&5
43300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 (exit $ac_status); }; } &&
43302 { ac_try='test -s conftest$ac_exeext'
43303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 (eval $ac_try) 2>&5
43306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 (exit $ac_status); }; }; then
43308 ac_cv_func__vsnprintf=yes
43310 echo "$as_me: failed program was:" >&5
43311 sed 's/^/| /' conftest.$ac_ext >&5
43313 ac_cv_func__vsnprintf=no
43315 rm -f conftest.err conftest.$ac_objext \
43316 conftest$ac_exeext conftest.$ac_ext
43318 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
43319 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
43320 if test $ac_cv_func__vsnprintf = yes; then
43321 ac_cv_func_vsnprintf=yes
43323 cat >>confdefs.h <<\_ACEOF
43324 #define vsnprintf _vsnprintf
43332 for ac_func in vprintf
43334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43335 echo "$as_me:$LINENO: checking for $ac_func" >&5
43336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43337 if eval "test \"\${$as_ac_var+set}\" = set"; then
43338 echo $ECHO_N "(cached) $ECHO_C" >&6
43340 cat >conftest.$ac_ext <<_ACEOF
43343 cat confdefs.h >>conftest.$ac_ext
43344 cat >>conftest.$ac_ext <<_ACEOF
43345 /* end confdefs.h. */
43346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43348 #define $ac_func innocuous_$ac_func
43350 /* System header to define __stub macros and hopefully few prototypes,
43351 which can conflict with char $ac_func (); below.
43352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43353 <limits.h> exists even on freestanding compilers. */
43356 # include <limits.h>
43358 # include <assert.h>
43363 /* Override any gcc2 internal prototype to avoid an error. */
43368 /* We use char because int might match the return type of a gcc2
43369 builtin and then its argument prototype would still apply. */
43371 /* The GNU C library defines this for functions which it implements
43372 to always fail with ENOSYS. Some functions are actually named
43373 something starting with __ and the normal name is an alias. */
43374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43377 char (*f) () = $ac_func;
43386 return f != $ac_func;
43391 rm -f conftest.$ac_objext conftest$ac_exeext
43392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43393 (eval $ac_link) 2>conftest.er1
43395 grep -v '^ *+' conftest.er1 >conftest.err
43397 cat conftest.err >&5
43398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399 (exit $ac_status); } &&
43400 { ac_try='test -z "$ac_c_werror_flag"
43401 || test ! -s conftest.err'
43402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43403 (eval $ac_try) 2>&5
43405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406 (exit $ac_status); }; } &&
43407 { ac_try='test -s conftest$ac_exeext'
43408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43409 (eval $ac_try) 2>&5
43411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43412 (exit $ac_status); }; }; then
43413 eval "$as_ac_var=yes"
43415 echo "$as_me: failed program was:" >&5
43416 sed 's/^/| /' conftest.$ac_ext >&5
43418 eval "$as_ac_var=no"
43420 rm -f conftest.err conftest.$ac_objext \
43421 conftest$ac_exeext conftest.$ac_ext
43423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43425 if test `eval echo '${'$as_ac_var'}'` = yes; then
43426 cat >>confdefs.h <<_ACEOF
43427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43430 echo "$as_me:$LINENO: checking for _doprnt" >&5
43431 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43432 if test "${ac_cv_func__doprnt+set}" = set; then
43433 echo $ECHO_N "(cached) $ECHO_C" >&6
43435 cat >conftest.$ac_ext <<_ACEOF
43438 cat confdefs.h >>conftest.$ac_ext
43439 cat >>conftest.$ac_ext <<_ACEOF
43440 /* end confdefs.h. */
43441 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43443 #define _doprnt innocuous__doprnt
43445 /* System header to define __stub macros and hopefully few prototypes,
43446 which can conflict with char _doprnt (); below.
43447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43448 <limits.h> exists even on freestanding compilers. */
43451 # include <limits.h>
43453 # include <assert.h>
43458 /* Override any gcc2 internal prototype to avoid an error. */
43463 /* We use char because int might match the return type of a gcc2
43464 builtin and then its argument prototype would still apply. */
43466 /* The GNU C library defines this for functions which it implements
43467 to always fail with ENOSYS. Some functions are actually named
43468 something starting with __ and the normal name is an alias. */
43469 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43472 char (*f) () = _doprnt;
43481 return f != _doprnt;
43486 rm -f conftest.$ac_objext conftest$ac_exeext
43487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43488 (eval $ac_link) 2>conftest.er1
43490 grep -v '^ *+' conftest.er1 >conftest.err
43492 cat conftest.err >&5
43493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43494 (exit $ac_status); } &&
43495 { ac_try='test -z "$ac_c_werror_flag"
43496 || test ! -s conftest.err'
43497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43498 (eval $ac_try) 2>&5
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); }; } &&
43502 { ac_try='test -s conftest$ac_exeext'
43503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43504 (eval $ac_try) 2>&5
43506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43507 (exit $ac_status); }; }; then
43508 ac_cv_func__doprnt=yes
43510 echo "$as_me: failed program was:" >&5
43511 sed 's/^/| /' conftest.$ac_ext >&5
43513 ac_cv_func__doprnt=no
43515 rm -f conftest.err conftest.$ac_objext \
43516 conftest$ac_exeext conftest.$ac_ext
43518 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43519 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43520 if test $ac_cv_func__doprnt = yes; then
43522 cat >>confdefs.h <<\_ACEOF
43523 #define HAVE_DOPRNT 1
43533 if test $ac_cv_func_vprintf = yes ; then
43536 for ac_func in snprintf vsnprintf
43538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43539 echo "$as_me:$LINENO: checking for $ac_func" >&5
43540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43541 if eval "test \"\${$as_ac_var+set}\" = set"; then
43542 echo $ECHO_N "(cached) $ECHO_C" >&6
43544 cat >conftest.$ac_ext <<_ACEOF
43547 cat confdefs.h >>conftest.$ac_ext
43548 cat >>conftest.$ac_ext <<_ACEOF
43549 /* end confdefs.h. */
43550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43552 #define $ac_func innocuous_$ac_func
43554 /* System header to define __stub macros and hopefully few prototypes,
43555 which can conflict with char $ac_func (); below.
43556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43557 <limits.h> exists even on freestanding compilers. */
43560 # include <limits.h>
43562 # include <assert.h>
43567 /* Override any gcc2 internal prototype to avoid an error. */
43572 /* We use char because int might match the return type of a gcc2
43573 builtin and then its argument prototype would still apply. */
43575 /* The GNU C library defines this for functions which it implements
43576 to always fail with ENOSYS. Some functions are actually named
43577 something starting with __ and the normal name is an alias. */
43578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43581 char (*f) () = $ac_func;
43590 return f != $ac_func;
43595 rm -f conftest.$ac_objext conftest$ac_exeext
43596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43597 (eval $ac_link) 2>conftest.er1
43599 grep -v '^ *+' conftest.er1 >conftest.err
43601 cat conftest.err >&5
43602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43603 (exit $ac_status); } &&
43604 { ac_try='test -z "$ac_c_werror_flag"
43605 || test ! -s conftest.err'
43606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43607 (eval $ac_try) 2>&5
43609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43610 (exit $ac_status); }; } &&
43611 { ac_try='test -s conftest$ac_exeext'
43612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43613 (eval $ac_try) 2>&5
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); }; }; then
43617 eval "$as_ac_var=yes"
43619 echo "$as_me: failed program was:" >&5
43620 sed 's/^/| /' conftest.$ac_ext >&5
43622 eval "$as_ac_var=no"
43624 rm -f conftest.err conftest.$ac_objext \
43625 conftest$ac_exeext conftest.$ac_ext
43627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43629 if test `eval echo '${'$as_ac_var'}'` = yes; then
43630 cat >>confdefs.h <<_ACEOF
43631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43751 echo "$as_me:$LINENO: checking for $ac_func" >&5
43752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43753 if eval "test \"\${$as_ac_var+set}\" = set"; then
43754 echo $ECHO_N "(cached) $ECHO_C" >&6
43756 cat >conftest.$ac_ext <<_ACEOF
43759 cat confdefs.h >>conftest.$ac_ext
43760 cat >>conftest.$ac_ext <<_ACEOF
43761 /* end confdefs.h. */
43762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43764 #define $ac_func innocuous_$ac_func
43766 /* System header to define __stub macros and hopefully few prototypes,
43767 which can conflict with char $ac_func (); below.
43768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43769 <limits.h> exists even on freestanding compilers. */
43772 # include <limits.h>
43774 # include <assert.h>
43779 /* Override any gcc2 internal prototype to avoid an error. */
43784 /* We use char because int might match the return type of a gcc2
43785 builtin and then its argument prototype would still apply. */
43787 /* The GNU C library defines this for functions which it implements
43788 to always fail with ENOSYS. Some functions are actually named
43789 something starting with __ and the normal name is an alias. */
43790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43793 char (*f) () = $ac_func;
43802 return f != $ac_func;
43807 rm -f conftest.$ac_objext conftest$ac_exeext
43808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43809 (eval $ac_link) 2>conftest.er1
43811 grep -v '^ *+' conftest.er1 >conftest.err
43813 cat conftest.err >&5
43814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43815 (exit $ac_status); } &&
43816 { ac_try='test -z "$ac_c_werror_flag"
43817 || test ! -s conftest.err'
43818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43819 (eval $ac_try) 2>&5
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); }; } &&
43823 { ac_try='test -s conftest$ac_exeext'
43824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43825 (eval $ac_try) 2>&5
43827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; }; then
43829 eval "$as_ac_var=yes"
43831 echo "$as_me: failed program was:" >&5
43832 sed 's/^/| /' conftest.$ac_ext >&5
43834 eval "$as_ac_var=no"
43836 rm -f conftest.err conftest.$ac_objext \
43837 conftest$ac_exeext conftest.$ac_ext
43839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43841 if test `eval echo '${'$as_ac_var'}'` = yes; then
43842 cat >>confdefs.h <<_ACEOF
43843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43852 for ac_func in getopt getpeereid
43854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43855 echo "$as_me:$LINENO: checking for $ac_func" >&5
43856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43857 if eval "test \"\${$as_ac_var+set}\" = set"; then
43858 echo $ECHO_N "(cached) $ECHO_C" >&6
43860 cat >conftest.$ac_ext <<_ACEOF
43863 cat confdefs.h >>conftest.$ac_ext
43864 cat >>conftest.$ac_ext <<_ACEOF
43865 /* end confdefs.h. */
43866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43868 #define $ac_func innocuous_$ac_func
43870 /* System header to define __stub macros and hopefully few prototypes,
43871 which can conflict with char $ac_func (); below.
43872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43873 <limits.h> exists even on freestanding compilers. */
43876 # include <limits.h>
43878 # include <assert.h>
43883 /* Override any gcc2 internal prototype to avoid an error. */
43888 /* We use char because int might match the return type of a gcc2
43889 builtin and then its argument prototype would still apply. */
43891 /* The GNU C library defines this for functions which it implements
43892 to always fail with ENOSYS. Some functions are actually named
43893 something starting with __ and the normal name is an alias. */
43894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43897 char (*f) () = $ac_func;
43906 return f != $ac_func;
43911 rm -f conftest.$ac_objext conftest$ac_exeext
43912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43913 (eval $ac_link) 2>conftest.er1
43915 grep -v '^ *+' conftest.er1 >conftest.err
43917 cat conftest.err >&5
43918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919 (exit $ac_status); } &&
43920 { ac_try='test -z "$ac_c_werror_flag"
43921 || test ! -s conftest.err'
43922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43923 (eval $ac_try) 2>&5
43925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926 (exit $ac_status); }; } &&
43927 { ac_try='test -s conftest$ac_exeext'
43928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43929 (eval $ac_try) 2>&5
43931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43932 (exit $ac_status); }; }; then
43933 eval "$as_ac_var=yes"
43935 echo "$as_me: failed program was:" >&5
43936 sed 's/^/| /' conftest.$ac_ext >&5
43938 eval "$as_ac_var=no"
43940 rm -f conftest.err conftest.$ac_objext \
43941 conftest$ac_exeext conftest.$ac_ext
43943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43945 if test `eval echo '${'$as_ac_var'}'` = yes; then
43946 cat >>confdefs.h <<_ACEOF
43947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43952 "$ac_func.$ac_objext" | \
43953 *" $ac_func.$ac_objext" | \
43954 "$ac_func.$ac_objext "* | \
43955 *" $ac_func.$ac_objext "* ) ;;
43956 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43964 if test "$ac_cv_func_getopt" != yes; then
43965 LIBSRCS="$LIBSRCS getopt.c"
43968 if test "$ac_cv_func_getpeereid" != yes; then
43970 for ac_func in getpeerucred
43972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43973 echo "$as_me:$LINENO: checking for $ac_func" >&5
43974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43975 if eval "test \"\${$as_ac_var+set}\" = set"; then
43976 echo $ECHO_N "(cached) $ECHO_C" >&6
43978 cat >conftest.$ac_ext <<_ACEOF
43981 cat confdefs.h >>conftest.$ac_ext
43982 cat >>conftest.$ac_ext <<_ACEOF
43983 /* end confdefs.h. */
43984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43986 #define $ac_func innocuous_$ac_func
43988 /* System header to define __stub macros and hopefully few prototypes,
43989 which can conflict with char $ac_func (); below.
43990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43991 <limits.h> exists even on freestanding compilers. */
43994 # include <limits.h>
43996 # include <assert.h>
44001 /* Override any gcc2 internal prototype to avoid an error. */
44006 /* We use char because int might match the return type of a gcc2
44007 builtin and then its argument prototype would still apply. */
44009 /* The GNU C library defines this for functions which it implements
44010 to always fail with ENOSYS. Some functions are actually named
44011 something starting with __ and the normal name is an alias. */
44012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44015 char (*f) () = $ac_func;
44024 return f != $ac_func;
44029 rm -f conftest.$ac_objext conftest$ac_exeext
44030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44031 (eval $ac_link) 2>conftest.er1
44033 grep -v '^ *+' conftest.er1 >conftest.err
44035 cat conftest.err >&5
44036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44037 (exit $ac_status); } &&
44038 { ac_try='test -z "$ac_c_werror_flag"
44039 || test ! -s conftest.err'
44040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44041 (eval $ac_try) 2>&5
44043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044 (exit $ac_status); }; } &&
44045 { ac_try='test -s conftest$ac_exeext'
44046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44047 (eval $ac_try) 2>&5
44049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050 (exit $ac_status); }; }; then
44051 eval "$as_ac_var=yes"
44053 echo "$as_me: failed program was:" >&5
44054 sed 's/^/| /' conftest.$ac_ext >&5
44056 eval "$as_ac_var=no"
44058 rm -f conftest.err conftest.$ac_objext \
44059 conftest$ac_exeext conftest.$ac_ext
44061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44063 if test `eval echo '${'$as_ac_var'}'` = yes; then
44064 cat >>confdefs.h <<_ACEOF
44065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44071 if test "$ac_cv_func_getpeerucred" != yes ; then
44072 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
44073 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
44074 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
44075 echo $ECHO_N "(cached) $ECHO_C" >&6
44077 cat >conftest.$ac_ext <<_ACEOF
44080 cat confdefs.h >>conftest.$ac_ext
44081 cat >>conftest.$ac_ext <<_ACEOF
44082 /* end confdefs.h. */
44083 $ac_includes_default
44084 #ifdef HAVE_SYS_SOCKET_H
44085 #include <sys/socket.h>
44091 static struct msghdr ac_aggr;
44092 if (ac_aggr.msg_accrightslen)
44098 rm -f conftest.$ac_objext
44099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44100 (eval $ac_compile) 2>conftest.er1
44102 grep -v '^ *+' conftest.er1 >conftest.err
44104 cat conftest.err >&5
44105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44106 (exit $ac_status); } &&
44107 { ac_try='test -z "$ac_c_werror_flag"
44108 || test ! -s conftest.err'
44109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44110 (eval $ac_try) 2>&5
44112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113 (exit $ac_status); }; } &&
44114 { ac_try='test -s conftest.$ac_objext'
44115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44116 (eval $ac_try) 2>&5
44118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44119 (exit $ac_status); }; }; then
44120 ac_cv_member_struct_msghdr_msg_accrightslen=yes
44122 echo "$as_me: failed program was:" >&5
44123 sed 's/^/| /' conftest.$ac_ext >&5
44125 cat >conftest.$ac_ext <<_ACEOF
44128 cat confdefs.h >>conftest.$ac_ext
44129 cat >>conftest.$ac_ext <<_ACEOF
44130 /* end confdefs.h. */
44131 $ac_includes_default
44132 #ifdef HAVE_SYS_SOCKET_H
44133 #include <sys/socket.h>
44139 static struct msghdr ac_aggr;
44140 if (sizeof ac_aggr.msg_accrightslen)
44146 rm -f conftest.$ac_objext
44147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44148 (eval $ac_compile) 2>conftest.er1
44150 grep -v '^ *+' conftest.er1 >conftest.err
44152 cat conftest.err >&5
44153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44154 (exit $ac_status); } &&
44155 { ac_try='test -z "$ac_c_werror_flag"
44156 || test ! -s conftest.err'
44157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44158 (eval $ac_try) 2>&5
44160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44161 (exit $ac_status); }; } &&
44162 { ac_try='test -s conftest.$ac_objext'
44163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44164 (eval $ac_try) 2>&5
44166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44167 (exit $ac_status); }; }; then
44168 ac_cv_member_struct_msghdr_msg_accrightslen=yes
44170 echo "$as_me: failed program was:" >&5
44171 sed 's/^/| /' conftest.$ac_ext >&5
44173 ac_cv_member_struct_msghdr_msg_accrightslen=no
44175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44179 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
44180 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
44181 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
44183 cat >>confdefs.h <<_ACEOF
44184 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
44190 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
44191 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
44192 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
44193 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
44194 echo $ECHO_N "(cached) $ECHO_C" >&6
44196 cat >conftest.$ac_ext <<_ACEOF
44199 cat confdefs.h >>conftest.$ac_ext
44200 cat >>conftest.$ac_ext <<_ACEOF
44201 /* end confdefs.h. */
44202 $ac_includes_default
44203 #ifdef HAVE_SYS_SOCKET_H
44204 #include <sys/socket.h>
44210 static struct msghdr ac_aggr;
44211 if (ac_aggr.msg_control)
44217 rm -f conftest.$ac_objext
44218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44219 (eval $ac_compile) 2>conftest.er1
44221 grep -v '^ *+' conftest.er1 >conftest.err
44223 cat conftest.err >&5
44224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44225 (exit $ac_status); } &&
44226 { ac_try='test -z "$ac_c_werror_flag"
44227 || test ! -s conftest.err'
44228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44229 (eval $ac_try) 2>&5
44231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232 (exit $ac_status); }; } &&
44233 { ac_try='test -s conftest.$ac_objext'
44234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44235 (eval $ac_try) 2>&5
44237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44238 (exit $ac_status); }; }; then
44239 ac_cv_member_struct_msghdr_msg_control=yes
44241 echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44244 cat >conftest.$ac_ext <<_ACEOF
44247 cat confdefs.h >>conftest.$ac_ext
44248 cat >>conftest.$ac_ext <<_ACEOF
44249 /* end confdefs.h. */
44250 $ac_includes_default
44251 #ifdef HAVE_SYS_SOCKET_H
44252 #include <sys/socket.h>
44258 static struct msghdr ac_aggr;
44259 if (sizeof ac_aggr.msg_control)
44265 rm -f conftest.$ac_objext
44266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44267 (eval $ac_compile) 2>conftest.er1
44269 grep -v '^ *+' conftest.er1 >conftest.err
44271 cat conftest.err >&5
44272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273 (exit $ac_status); } &&
44274 { ac_try='test -z "$ac_c_werror_flag"
44275 || test ! -s conftest.err'
44276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277 (eval $ac_try) 2>&5
44279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280 (exit $ac_status); }; } &&
44281 { ac_try='test -s conftest.$ac_objext'
44282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283 (eval $ac_try) 2>&5
44285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286 (exit $ac_status); }; }; then
44287 ac_cv_member_struct_msghdr_msg_control=yes
44289 echo "$as_me: failed program was:" >&5
44290 sed 's/^/| /' conftest.$ac_ext >&5
44292 ac_cv_member_struct_msghdr_msg_control=no
44294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
44299 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
44300 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
44302 cat >>confdefs.h <<_ACEOF
44303 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
44311 LIBSRCS="$LIBSRCS getpeereid.c"
44314 if test "$ac_cv_func_snprintf" != yes ||
44315 test "$ac_cv_func_vsnprintf" != yes; then
44316 if test "$ac_cv_func_snprintf" != yes; then
44318 cat >>confdefs.h <<\_ACEOF
44319 #define snprintf ber_pvt_snprintf
44323 if test "$ac_cv_func_vsnprintf" != yes; then
44325 cat >>confdefs.h <<\_ACEOF
44326 #define vsnprintf ber_pvt_vsnprintf
44333 if test "$ol_enable_slapi" != no ; then
44335 for ac_header in ltdl.h
44337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44339 echo "$as_me:$LINENO: checking for $ac_header" >&5
44340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44342 echo $ECHO_N "(cached) $ECHO_C" >&6
44344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44347 # Is the header compilable?
44348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44350 cat >conftest.$ac_ext <<_ACEOF
44353 cat confdefs.h >>conftest.$ac_ext
44354 cat >>conftest.$ac_ext <<_ACEOF
44355 /* end confdefs.h. */
44356 $ac_includes_default
44357 #include <$ac_header>
44359 rm -f conftest.$ac_objext
44360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44361 (eval $ac_compile) 2>conftest.er1
44363 grep -v '^ *+' conftest.er1 >conftest.err
44365 cat conftest.err >&5
44366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44367 (exit $ac_status); } &&
44368 { ac_try='test -z "$ac_c_werror_flag"
44369 || test ! -s conftest.err'
44370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44371 (eval $ac_try) 2>&5
44373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44374 (exit $ac_status); }; } &&
44375 { ac_try='test -s conftest.$ac_objext'
44376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44377 (eval $ac_try) 2>&5
44379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380 (exit $ac_status); }; }; then
44381 ac_header_compiler=yes
44383 echo "$as_me: failed program was:" >&5
44384 sed 's/^/| /' conftest.$ac_ext >&5
44386 ac_header_compiler=no
44388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44390 echo "${ECHO_T}$ac_header_compiler" >&6
44392 # Is the header present?
44393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44395 cat >conftest.$ac_ext <<_ACEOF
44398 cat confdefs.h >>conftest.$ac_ext
44399 cat >>conftest.$ac_ext <<_ACEOF
44400 /* end confdefs.h. */
44401 #include <$ac_header>
44403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44406 grep -v '^ *+' conftest.er1 >conftest.err
44408 cat conftest.err >&5
44409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410 (exit $ac_status); } >/dev/null; then
44411 if test -s conftest.err; then
44412 ac_cpp_err=$ac_c_preproc_warn_flag
44413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44420 if test -z "$ac_cpp_err"; then
44421 ac_header_preproc=yes
44423 echo "$as_me: failed program was:" >&5
44424 sed 's/^/| /' conftest.$ac_ext >&5
44426 ac_header_preproc=no
44428 rm -f conftest.err conftest.$ac_ext
44429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44430 echo "${ECHO_T}$ac_header_preproc" >&6
44432 # So? What about this header?
44433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44439 ac_header_preproc=yes
44442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44456 ## --------------------------------------------- ##
44457 ## Report this to <http://www.openldap.org/its/> ##
44458 ## --------------------------------------------- ##
44461 sed "s/^/$as_me: WARNING: /" >&2
44464 echo "$as_me:$LINENO: checking for $ac_header" >&5
44465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44467 echo $ECHO_N "(cached) $ECHO_C" >&6
44469 eval "$as_ac_Header=\$ac_header_preproc"
44471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44476 cat >>confdefs.h <<_ACEOF
44477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44485 if test $ac_cv_header_ltdl_h != yes ; then
44486 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44487 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44488 { (exit 1); exit 1; }; }
44490 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44491 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44492 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44493 echo $ECHO_N "(cached) $ECHO_C" >&6
44495 ac_check_lib_save_LIBS=$LIBS
44496 LIBS="-lltdl $LIBS"
44497 cat >conftest.$ac_ext <<_ACEOF
44500 cat confdefs.h >>conftest.$ac_ext
44501 cat >>conftest.$ac_ext <<_ACEOF
44502 /* end confdefs.h. */
44504 /* Override any gcc2 internal prototype to avoid an error. */
44508 /* We use char because int might match the return type of a gcc2
44509 builtin and then its argument prototype would still apply. */
44519 rm -f conftest.$ac_objext conftest$ac_exeext
44520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44521 (eval $ac_link) 2>conftest.er1
44523 grep -v '^ *+' conftest.er1 >conftest.err
44525 cat conftest.err >&5
44526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44527 (exit $ac_status); } &&
44528 { ac_try='test -z "$ac_c_werror_flag"
44529 || test ! -s conftest.err'
44530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44531 (eval $ac_try) 2>&5
44533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534 (exit $ac_status); }; } &&
44535 { ac_try='test -s conftest$ac_exeext'
44536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44537 (eval $ac_try) 2>&5
44539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44540 (exit $ac_status); }; }; then
44541 ac_cv_lib_ltdl_lt_dlinit=yes
44543 echo "$as_me: failed program was:" >&5
44544 sed 's/^/| /' conftest.$ac_ext >&5
44546 ac_cv_lib_ltdl_lt_dlinit=no
44548 rm -f conftest.err conftest.$ac_objext \
44549 conftest$ac_exeext conftest.$ac_ext
44550 LIBS=$ac_check_lib_save_LIBS
44552 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44553 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44554 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44557 LIBSLAPI=libslapi.a
44558 LIBSLAPITOOLS=../libslapi.a
44560 cat >>confdefs.h <<\_ACEOF
44561 #define HAVE_LIBLTDL 1
44566 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44567 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44568 { (exit 1); exit 1; }; }
44573 cat >>confdefs.h <<\_ACEOF
44574 #define LDAP_SLAPI 1
44579 if test "$ol_enable_debug" != no ; then
44580 if test "$ol_enable_debug" = traditional; then
44582 cat >>confdefs.h <<\_ACEOF
44583 #define OLD_DEBUG 1
44588 cat >>confdefs.h <<\_ACEOF
44589 #define LDAP_DEBUG 1
44593 if test "$ol_enable_syslog" = yes ; then
44595 cat >>confdefs.h <<\_ACEOF
44596 #define LDAP_SYSLOG 1
44600 if test "$ol_link_kbind" != no ; then
44602 cat >>confdefs.h <<\_ACEOF
44603 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44607 if test "$ol_enable_proctitle" != no ; then
44609 cat >>confdefs.h <<\_ACEOF
44610 #define LDAP_PROCTITLE 1
44614 if test "$ol_enable_referrals" != no ; then
44616 cat >>confdefs.h <<\_ACEOF
44617 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44621 if test "$ol_enable_local" != no; then
44623 cat >>confdefs.h <<\_ACEOF
44624 #define LDAP_PF_LOCAL 1
44628 if test "$ol_link_ipv6" != no; then
44630 cat >>confdefs.h <<\_ACEOF
44631 #define LDAP_PF_INET6 1
44635 if test "$ol_enable_cleartext" != no ; then
44637 cat >>confdefs.h <<\_ACEOF
44638 #define SLAPD_CLEARTEXT 1
44642 if test "$ol_enable_crypt" != no ; then
44644 cat >>confdefs.h <<\_ACEOF
44645 #define SLAPD_CRYPT 1
44649 if test "$ol_link_spasswd" != no ; then
44651 cat >>confdefs.h <<\_ACEOF
44652 #define SLAPD_SPASSWD 1
44656 if test "$ol_enable_rlookups" != no ; then
44658 cat >>confdefs.h <<\_ACEOF
44659 #define SLAPD_RLOOKUPS 1
44663 if test "$ol_enable_aci" != no ; then
44664 if test $ol_enable_dynacl = no ; then
44665 ol_enable_dynacl=yes
44666 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44667 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44669 if test "$ol_enable_aci" = mod ; then
44670 MFLAG=SLAPD_MOD_DYNAMIC
44671 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44672 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44673 { (exit 1); exit 1; }; }
44675 MFLAG=SLAPD_MOD_STATIC
44677 WITH_ACI_ENABLED=$ol_enable_aci
44679 cat >>confdefs.h <<_ACEOF
44680 #define SLAPD_ACI_ENABLED $MFLAG
44684 WITH_ACI_ENABLED=no
44686 if test "$ol_enable_dynacl" != no ; then
44688 cat >>confdefs.h <<\_ACEOF
44689 #define SLAP_DYNACL 1
44694 if test "$ol_link_modules" != no ; then
44696 cat >>confdefs.h <<\_ACEOF
44697 #define SLAPD_MODULES 1
44701 SLAPD_MODULES_LDFLAGS="-dlopen self"
44705 cat >>confdefs.h <<\_ACEOF
44706 #define SLAPD_MOD_STATIC 1
44710 cat >>confdefs.h <<\_ACEOF
44711 #define SLAPD_MOD_DYNAMIC 2
44715 if test "$ol_enable_bdb" != no ; then
44717 BUILD_BDB=$ol_enable_bdb
44718 if test "$ol_enable_bdb" = mod ; then
44719 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44720 MFLAG=SLAPD_MOD_DYNAMIC
44722 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44723 MFLAG=SLAPD_MOD_STATIC
44726 cat >>confdefs.h <<_ACEOF
44727 #define SLAPD_BDB $MFLAG
44732 if test "$ol_enable_dnssrv" != no ; then
44734 BUILD_DNSSRV=$ol_enable_dnssrv
44735 if test "$ol_enable_dnssrv" = mod ; then
44736 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44737 MFLAG=SLAPD_MOD_DYNAMIC
44739 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44740 MFLAG=SLAPD_MOD_STATIC
44743 cat >>confdefs.h <<_ACEOF
44744 #define SLAPD_DNSSRV $MFLAG
44749 if test "$ol_enable_hdb" != no ; then
44751 BUILD_HDB=$ol_enable_hdb
44752 if test "$ol_enable_hdb" = mod ; then
44753 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44754 MFLAG=SLAPD_MOD_DYNAMIC
44756 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44757 MFLAG=SLAPD_MOD_STATIC
44760 cat >>confdefs.h <<_ACEOF
44761 #define SLAPD_HDB $MFLAG
44766 if test "$ol_enable_ldap" != no ; then
44768 BUILD_LDAP=$ol_enable_ldap
44769 if test "$ol_enable_ldap" = mod ; then
44770 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44771 MFLAG=SLAPD_MOD_DYNAMIC
44773 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44774 MFLAG=SLAPD_MOD_STATIC
44777 cat >>confdefs.h <<_ACEOF
44778 #define SLAPD_LDAP $MFLAG
44783 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44785 BUILD_LDBM=$ol_enable_ldbm
44786 if test "$ol_enable_ldbm" = mod ; then
44787 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44788 MFLAG=SLAPD_MOD_DYNAMIC
44790 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44791 MFLAG=SLAPD_MOD_STATIC
44794 cat >>confdefs.h <<_ACEOF
44795 #define SLAPD_LDBM $MFLAG
44800 if test "$ol_enable_meta" != no ; then
44802 BUILD_META=$ol_enable_meta
44804 if test "$ol_enable_meta" = mod ; then
44805 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44806 MFLAG=SLAPD_MOD_DYNAMIC
44808 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44809 MFLAG=SLAPD_MOD_STATIC
44812 cat >>confdefs.h <<_ACEOF
44813 #define SLAPD_META $MFLAG
44818 if test "$ol_enable_monitor" != no ; then
44820 BUILD_MONITOR=$ol_enable_monitor
44821 if test "$ol_enable_monitor" = mod ; then
44822 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44823 MFLAG=SLAPD_MOD_DYNAMIC
44825 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44826 MFLAG=SLAPD_MOD_STATIC
44829 cat >>confdefs.h <<_ACEOF
44830 #define SLAPD_MONITOR $MFLAG
44835 if test "$ol_enable_null" != no ; then
44837 BUILD_NULL=$ol_enable_null
44838 if test "$ol_enable_null" = mod ; then
44839 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44840 MFLAG=SLAPD_MOD_DYNAMIC
44842 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44843 MFLAG=SLAPD_MOD_STATIC
44846 cat >>confdefs.h <<_ACEOF
44847 #define SLAPD_NULL $MFLAG
44852 if test "$ol_enable_passwd" != no ; then
44854 BUILD_PASSWD=$ol_enable_passwd
44855 if test "$ol_enable_passwd" = mod ; then
44856 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44857 MFLAG=SLAPD_MOD_DYNAMIC
44859 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44860 MFLAG=SLAPD_MOD_STATIC
44863 cat >>confdefs.h <<_ACEOF
44864 #define SLAPD_PASSWD $MFLAG
44869 if test "$ol_link_perl" != no ; then
44871 BUILD_PERL=$ol_enable_perl
44872 if test "$ol_enable_perl" = mod ; then
44873 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44874 MFLAG=SLAPD_MOD_DYNAMIC
44876 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44877 MFLAG=SLAPD_MOD_STATIC
44880 cat >>confdefs.h <<_ACEOF
44881 #define SLAPD_PERL $MFLAG
44886 if test "$ol_enable_relay" != no ; then
44888 BUILD_RELAY=$ol_enable_relay
44889 if test "$ol_enable_relay" = mod ; then
44890 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44891 MFLAG=SLAPD_MOD_DYNAMIC
44893 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44894 MFLAG=SLAPD_MOD_STATIC
44897 cat >>confdefs.h <<_ACEOF
44898 #define SLAPD_RELAY $MFLAG
44903 if test "$ol_enable_shell" != no ; then
44904 if test "$ol_link_threads" != no ; then
44905 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44906 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44909 BUILD_SHELL=$ol_enable_shell
44910 if test "$ol_enable_shell" = mod ; then
44911 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44912 MFLAG=SLAPD_MOD_DYNAMIC
44914 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44915 MFLAG=SLAPD_MOD_STATIC
44918 cat >>confdefs.h <<_ACEOF
44919 #define SLAPD_SHELL $MFLAG
44924 if test "$ol_link_sql" != no ; then
44926 BUILD_SQL=$ol_enable_sql
44927 if test "$ol_enable_sql" = mod; then
44928 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44929 MFLAG=SLAPD_MOD_DYNAMIC
44931 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44932 MFLAG=SLAPD_MOD_STATIC
44935 cat >>confdefs.h <<_ACEOF
44936 #define SLAPD_SQL $MFLAG
44941 if test "$ol_enable_accesslog" != no ; then
44942 BUILD_ACCESSLOG=$ol_enable_accesslog
44943 if test "$ol_enable_accesslog" = mod ; then
44944 MFLAG=SLAPD_MOD_DYNAMIC
44945 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44947 MFLAG=SLAPD_MOD_STATIC
44948 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44951 cat >>confdefs.h <<_ACEOF
44952 #define SLAPD_OVER_ACCESSLOG $MFLAG
44957 if test "$ol_enable_auditlog" != no ; then
44958 BUILD_AUDITLOG=$ol_enable_auditlog
44959 if test "$ol_enable_auditlog" = mod ; then
44960 MFLAG=SLAPD_MOD_DYNAMIC
44961 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44963 MFLAG=SLAPD_MOD_STATIC
44964 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44967 cat >>confdefs.h <<_ACEOF
44968 #define SLAPD_OVER_AUDITLOG $MFLAG
44973 if test "$ol_enable_dds" != no ; then
44974 BUILD_DDS=$ol_enable_dds
44975 if test "$ol_enable_dds" = mod ; then
44976 MFLAG=SLAPD_MOD_DYNAMIC
44977 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44979 MFLAG=SLAPD_MOD_STATIC
44980 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44983 cat >>confdefs.h <<_ACEOF
44984 #define SLAPD_OVER_DDS $MFLAG
44989 if test "$ol_enable_denyop" != no ; then
44990 BUILD_DENYOP=$ol_enable_denyop
44991 if test "$ol_enable_denyop" = mod ; then
44992 MFLAG=SLAPD_MOD_DYNAMIC
44993 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44995 MFLAG=SLAPD_MOD_STATIC
44996 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44999 cat >>confdefs.h <<_ACEOF
45000 #define SLAPD_OVER_DENYOP $MFLAG
45005 if test "$ol_enable_dyngroup" != no ; then
45006 BUILD_DYNGROUP=$ol_enable_dyngroup
45007 if test "$ol_enable_dyngroup" = mod ; then
45008 MFLAG=SLAPD_MOD_DYNAMIC
45009 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
45011 MFLAG=SLAPD_MOD_STATIC
45012 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
45015 cat >>confdefs.h <<_ACEOF
45016 #define SLAPD_OVER_DYNGROUP $MFLAG
45021 if test "$ol_enable_dynlist" != no ; then
45022 BUILD_DYNLIST=$ol_enable_dynlist
45023 if test "$ol_enable_dynlist" = mod ; then
45024 MFLAG=SLAPD_MOD_DYNAMIC
45025 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
45027 MFLAG=SLAPD_MOD_STATIC
45028 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
45031 cat >>confdefs.h <<_ACEOF
45032 #define SLAPD_OVER_DYNLIST $MFLAG
45037 if test "$ol_enable_lastmod" != no ; then
45038 BUILD_LASTMOD=$ol_enable_lastmod
45039 if test "$ol_enable_lastmod" = mod ; then
45040 MFLAG=SLAPD_MOD_DYNAMIC
45041 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
45043 MFLAG=SLAPD_MOD_STATIC
45044 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
45047 cat >>confdefs.h <<_ACEOF
45048 #define SLAPD_OVER_LASTMOD $MFLAG
45053 if test "$ol_enable_ppolicy" != no ; then
45054 BUILD_PPOLICY=$ol_enable_ppolicy
45055 if test "$ol_enable_ppolicy" = mod ; then
45056 MFLAG=SLAPD_MOD_DYNAMIC
45057 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
45059 MFLAG=SLAPD_MOD_STATIC
45060 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
45063 cat >>confdefs.h <<_ACEOF
45064 #define SLAPD_OVER_PPOLICY $MFLAG
45069 if test "$ol_enable_proxycache" != no ; then
45070 BUILD_PROXYCACHE=$ol_enable_proxycache
45071 if test "$ol_enable_proxycache" = mod ; then
45072 MFLAG=SLAPD_MOD_DYNAMIC
45073 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
45075 MFLAG=SLAPD_MOD_STATIC
45076 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
45079 cat >>confdefs.h <<_ACEOF
45080 #define SLAPD_OVER_PROXYCACHE $MFLAG
45085 if test "$ol_enable_refint" != no ; then
45086 BUILD_REFINT=$ol_enable_refint
45087 if test "$ol_enable_refint" = mod ; then
45088 MFLAG=SLAPD_MOD_DYNAMIC
45089 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
45091 MFLAG=SLAPD_MOD_STATIC
45092 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
45095 cat >>confdefs.h <<_ACEOF
45096 #define SLAPD_OVER_REFINT $MFLAG
45101 if test "$ol_enable_retcode" != no ; then
45102 BUILD_RETCODE=$ol_enable_retcode
45103 if test "$ol_enable_retcode" = mod ; then
45104 MFLAG=SLAPD_MOD_DYNAMIC
45105 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
45107 MFLAG=SLAPD_MOD_STATIC
45108 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
45111 cat >>confdefs.h <<_ACEOF
45112 #define SLAPD_OVER_RETCODE $MFLAG
45117 if test "$ol_enable_rwm" != no ; then
45119 BUILD_RWM=$ol_enable_rwm
45120 if test "$ol_enable_rwm" = mod ; then
45121 MFLAG=SLAPD_MOD_DYNAMIC
45122 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
45124 MFLAG=SLAPD_MOD_STATIC
45125 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
45128 cat >>confdefs.h <<_ACEOF
45129 #define SLAPD_OVER_RWM $MFLAG
45134 if test "$ol_enable_seqmod" != no ; then
45135 BUILD_SEQMOD=$ol_enable_seqmod
45136 if test "$ol_enable_seqmod" = mod ; then
45137 MFLAG=SLAPD_MOD_DYNAMIC
45138 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
45140 MFLAG=SLAPD_MOD_STATIC
45141 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
45144 cat >>confdefs.h <<_ACEOF
45145 #define SLAPD_OVER_SEQMOD $MFLAG
45150 if test "$ol_enable_syncprov" != no ; then
45151 BUILD_SYNCPROV=$ol_enable_syncprov
45152 if test "$ol_enable_syncprov" = mod ; then
45153 MFLAG=SLAPD_MOD_DYNAMIC
45154 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
45156 MFLAG=SLAPD_MOD_STATIC
45157 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
45160 cat >>confdefs.h <<_ACEOF
45161 #define SLAPD_OVER_SYNCPROV $MFLAG
45166 if test "$ol_enable_translucent" != no ; then
45167 BUILD_TRANSLUCENT=$ol_enable_translucent
45168 if test "$ol_enable_translucent" = mod ; then
45169 MFLAG=SLAPD_MOD_DYNAMIC
45170 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
45172 MFLAG=SLAPD_MOD_STATIC
45173 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
45176 cat >>confdefs.h <<_ACEOF
45177 #define SLAPD_OVER_TRANSLUCENT $MFLAG
45182 if test "$ol_enable_unique" != no ; then
45183 BUILD_UNIQUE=$ol_enable_unique
45184 if test "$ol_enable_unique" = mod ; then
45185 MFLAG=SLAPD_MOD_DYNAMIC
45186 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
45188 MFLAG=SLAPD_MOD_STATIC
45189 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
45192 cat >>confdefs.h <<_ACEOF
45193 #define SLAPD_OVER_UNIQUE $MFLAG
45198 if test "$ol_enable_valsort" != no ; then
45199 BUILD_VALSORT=$ol_enable_valsort
45200 if test "$ol_enable_valsort" = mod ; then
45201 MFLAG=SLAPD_MOD_DYNAMIC
45202 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
45204 MFLAG=SLAPD_MOD_STATIC
45205 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
45208 cat >>confdefs.h <<_ACEOF
45209 #define SLAPD_OVER_VALSORT $MFLAG
45214 if test "$ol_enable_slurpd" != no &&
45215 test "$ol_link_threads" != no &&
45216 test $BUILD_SLAPD = yes ; then
45220 if test "$ol_enable_rewrite" != no ; then
45222 cat >>confdefs.h <<\_ACEOF
45223 #define ENABLE_REWRITE 1
45229 if test "$ol_enable_slapi" != no ; then
45231 cat >>confdefs.h <<\_ACEOF
45232 #define ENABLE_SLAPI 1
45236 SLAPD_SLAPI_DEPEND=libslapi.a
45241 if test "$ac_cv_mingw32" = yes ; then
45243 SLAPD_MODULES_LDFLAGS=
45332 # Check whether --with-xxinstall or --without-xxinstall was given.
45333 if test "${with_xxinstall+set}" = set; then
45334 withval="$with_xxinstall"
45339 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"
45342 ac_config_commands="$ac_config_commands default"
45346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45347 # Let make expand exec_prefix.
45348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45352 # trailing colons and then remove the whole line if VPATH becomes empty
45353 # (actually we leave an empty line to preserve line numbers).
45354 if test "x$srcdir" = x.; then
45355 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45356 s/:*\$(srcdir):*/:/;
45357 s/:*\${srcdir}:*/:/;
45359 s/^\([^=]*=[ ]*\):*/\1/;
45365 DEFS=-DHAVE_CONFIG_H
45369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45370 # 1. Remove the extension, and $U if already installed.
45371 ac_i=`echo "$ac_i" |
45372 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45374 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45375 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45377 LIBOBJS=$ac_libobjs
45379 LTLIBOBJS=$ac_ltlibobjs
45382 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45383 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45384 Usually this means the macro was only invoked conditionally." >&5
45385 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45386 Usually this means the macro was only invoked conditionally." >&2;}
45387 { (exit 1); exit 1; }; }
45389 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45390 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45391 Usually this means the macro was only invoked conditionally." >&5
45392 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45393 Usually this means the macro was only invoked conditionally." >&2;}
45394 { (exit 1); exit 1; }; }
45396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45397 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45398 Usually this means the macro was only invoked conditionally." >&5
45399 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45400 Usually this means the macro was only invoked conditionally." >&2;}
45401 { (exit 1); exit 1; }; }
45404 : ${CONFIG_STATUS=./config.status}
45405 ac_clean_files_save=$ac_clean_files
45406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45407 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45408 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45409 cat >$CONFIG_STATUS <<_ACEOF
45411 # Generated by $as_me.
45412 # Run this file to recreate the current configuration.
45413 # Compiler output produced by configure, useful for debugging
45414 # configure, is in config.log if it exists.
45417 ac_cs_recheck=false
45419 SHELL=\${CONFIG_SHELL-$SHELL}
45422 cat >>$CONFIG_STATUS <<\_ACEOF
45423 ## --------------------- ##
45424 ## M4sh Initialization. ##
45425 ## --------------------- ##
45427 # Be Bourne compatible
45428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45432 # is contrary to our usage. Disable this feature.
45433 alias -g '${1+"$@"}'='"$@"'
45434 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45437 DUALCASE=1; export DUALCASE # for MKS sh
45439 # Support unset when possible.
45440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45447 # Work around bugs in pre-3.0 UWIN ksh.
45448 $as_unset ENV MAIL MAILPATH
45455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45457 LC_TELEPHONE LC_TIME
45459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45460 eval $as_var=C; export $as_var
45466 # Required to use basename.
45467 if expr a : '\(a\)' >/dev/null 2>&1; then
45473 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45474 as_basename=basename
45480 # Name of the executable.
45481 as_me=`$as_basename "$0" ||
45482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45483 X"$0" : 'X\(//\)$' \| \
45484 X"$0" : 'X\(/\)$' \| \
45485 . : '\(.\)' 2>/dev/null ||
45487 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45488 /^X\/\(\/\/\)$/{ s//\1/; q; }
45489 /^X\/\(\/\).*/{ s//\1/; q; }
45493 # PATH needs CR, and LINENO needs CR and PATH.
45494 # Avoid depending upon Character Ranges.
45495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45498 as_cr_digits='0123456789'
45499 as_cr_alnum=$as_cr_Letters$as_cr_digits
45501 # The user is always right.
45502 if test "${PATH_SEPARATOR+set}" != set; then
45503 echo "#! /bin/sh" >conf$$.sh
45504 echo "exit 0" >>conf$$.sh
45506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45515 as_lineno_1=$LINENO
45516 as_lineno_2=$LINENO
45517 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45518 test "x$as_lineno_1" != "x$as_lineno_2" &&
45519 test "x$as_lineno_3" = "x$as_lineno_2" || {
45520 # Find who we are. Look in the path if we contain no path at all
45523 *[\\/]* ) as_myself=$0 ;;
45524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45525 for as_dir in $PATH
45528 test -z "$as_dir" && as_dir=.
45529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45534 # We did not find ourselves, most probably we were run as `sh COMMAND'
45535 # in which case we are not to be found in the path.
45536 if test "x$as_myself" = x; then
45539 if test ! -f "$as_myself"; then
45540 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45541 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45542 { (exit 1); exit 1; }; }
45544 case $CONFIG_SHELL in
45546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45547 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45550 test -z "$as_dir" && as_dir=.
45551 for as_base in sh bash ksh sh5; do
45554 if ("$as_dir/$as_base" -c '
45555 as_lineno_1=$LINENO
45556 as_lineno_2=$LINENO
45557 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45558 test "x$as_lineno_1" != "x$as_lineno_2" &&
45559 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45560 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45561 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45562 CONFIG_SHELL=$as_dir/$as_base
45563 export CONFIG_SHELL
45564 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45573 # uniformly replaced by the line number. The first 'sed' inserts a
45574 # line-number line before each line; the second 'sed' does the real
45575 # work. The second script uses 'N' to pair each line-number line
45576 # with the numbered line, and appends trailing '-' during
45577 # substitution so that $LINENO is not a special case at line end.
45578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45580 sed '=' <$as_myself |
45585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45588 s,^['$as_cr_digits']*\n,,
45589 ' >$as_me.lineno &&
45590 chmod +x $as_me.lineno ||
45591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45592 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45593 { (exit 1); exit 1; }; }
45595 # Don't try to exec as it changes $[0], causing all sort of problems
45596 # (the dirname of $[0] is not the place where we might find the
45597 # original and so on. Autoconf is especially sensible to this).
45599 # Exit status is that of the last command.
45604 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45605 *c*,-n*) ECHO_N= ECHO_C='
45607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45611 if expr a : '\(a\)' >/dev/null 2>&1; then
45617 rm -f conf$$ conf$$.exe conf$$.file
45619 if ln -s conf$$.file conf$$ 2>/dev/null; then
45620 # We could just check for DJGPP; but this test a) works b) is more generic
45621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45622 if test -f conf$$.exe; then
45623 # Don't use ln at all; we don't have any links
45628 elif ln conf$$.file conf$$ 2>/dev/null; then
45633 rm -f conf$$ conf$$.exe conf$$.file
45635 if mkdir -p . 2>/dev/null; then
45638 test -d ./-p && rmdir ./-p
45642 as_executable_p="test -f"
45644 # Sed expression to map a string onto a valid CPP name.
45645 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45647 # Sed expression to map a string onto a valid variable name.
45648 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45652 # We need space, tab and new line, in precisely that order.
45662 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45663 # report actual input values of CONFIG_FILES etc. instead of their
45664 # values after options handling. Logging --version etc. is OK.
45668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45669 ## Running $as_me. ##
45674 This file was extended by $as_me, which was
45675 generated by GNU Autoconf 2.59. Invocation command line was
45677 CONFIG_FILES = $CONFIG_FILES
45678 CONFIG_HEADERS = $CONFIG_HEADERS
45679 CONFIG_LINKS = $CONFIG_LINKS
45680 CONFIG_COMMANDS = $CONFIG_COMMANDS
45684 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45688 # Files that config.status was made for.
45689 if test -n "$ac_config_files"; then
45690 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45693 if test -n "$ac_config_headers"; then
45694 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45697 if test -n "$ac_config_links"; then
45698 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45701 if test -n "$ac_config_commands"; then
45702 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45705 cat >>$CONFIG_STATUS <<\_ACEOF
45708 \`$as_me' instantiates files from templates according to the
45709 current configuration.
45711 Usage: $0 [OPTIONS] [FILE]...
45713 -h, --help print this help, then exit
45714 -V, --version print version number, then exit
45715 -q, --quiet do not print progress messages
45716 -d, --debug don't remove temporary files
45717 --recheck update $as_me by reconfiguring in the same conditions
45718 --file=FILE[:TEMPLATE]
45719 instantiate the configuration file FILE
45720 --header=FILE[:TEMPLATE]
45721 instantiate the configuration header FILE
45723 Configuration files:
45726 Configuration headers:
45729 Configuration commands:
45732 Report bugs to <bug-autoconf@gnu.org>."
45735 cat >>$CONFIG_STATUS <<_ACEOF
45738 configured by $0, generated by GNU Autoconf 2.59,
45739 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45741 Copyright (C) 2003 Free Software Foundation, Inc.
45742 This config.status script is free software; the Free Software Foundation
45743 gives unlimited permission to copy, distribute and modify it."
45748 cat >>$CONFIG_STATUS <<\_ACEOF
45749 # If no file are specified by the user, then we need to provide default
45750 # value. By we need to know if files were specified by the user.
45756 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45757 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45765 *) # This is not an option, so the user has probably given explicit
45768 ac_need_defaults=false;;
45772 # Handling of the options.
45774 cat >>$CONFIG_STATUS <<\_ACEOF
45775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45777 --version | --vers* | -V )
45778 echo "$ac_cs_version"; exit 0 ;;
45780 # Conflict between --help and --header
45781 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45782 Try \`$0 --help' for more information." >&5
45783 echo "$as_me: error: ambiguous option: $1
45784 Try \`$0 --help' for more information." >&2;}
45785 { (exit 1); exit 1; }; };;
45786 --help | --hel | -h )
45787 echo "$ac_cs_usage"; exit 0 ;;
45788 --debug | --d* | -d )
45790 --file | --fil | --fi | --f )
45792 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45793 ac_need_defaults=false;;
45794 --header | --heade | --head | --hea )
45796 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45797 ac_need_defaults=false;;
45798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45802 # This is an error.
45803 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45804 Try \`$0 --help' for more information." >&5
45805 echo "$as_me: error: unrecognized option: $1
45806 Try \`$0 --help' for more information." >&2;}
45807 { (exit 1); exit 1; }; } ;;
45809 *) ac_config_targets="$ac_config_targets $1" ;;
45815 ac_configure_extra_args=
45817 if $ac_cs_silent; then
45819 ac_configure_extra_args="$ac_configure_extra_args --silent"
45823 cat >>$CONFIG_STATUS <<_ACEOF
45824 if \$ac_cs_recheck; then
45825 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45826 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45831 cat >>$CONFIG_STATUS <<_ACEOF
45833 # INIT-COMMANDS section.
45836 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45838 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45839 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45846 cat >>$CONFIG_STATUS <<\_ACEOF
45847 for ac_config_target in $ac_config_targets
45849 case "$ac_config_target" in
45850 # Handling of arguments.
45851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45852 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45853 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45854 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45855 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45856 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45857 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45858 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45859 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45860 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45861 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45862 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45863 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45864 "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" ;;
45865 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45866 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45867 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45868 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45869 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45870 "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" ;;
45871 "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" ;;
45872 "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" ;;
45873 "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" ;;
45874 "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" ;;
45875 "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" ;;
45876 "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" ;;
45877 "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" ;;
45878 "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" ;;
45879 "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" ;;
45880 "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" ;;
45881 "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" ;;
45882 "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" ;;
45883 "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" ;;
45884 "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" ;;
45885 "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" ;;
45886 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45887 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45888 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45889 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45890 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45891 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45892 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45893 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45894 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45895 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45898 { (exit 1); exit 1; }; };;
45902 # If the user did not use the arguments to specify the items to instantiate,
45903 # then the envvar interface is used. Set only those that are not.
45904 # We use the long form for the default assignment because of an extremely
45905 # bizarre bug on SunOS 4.1.3.
45906 if $ac_need_defaults; then
45907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45912 # Have a temporary directory for convenience. Make it in the build tree
45913 # simply because there is no reason to put it here, and in addition,
45914 # creating and moving files from /tmp can sometimes cause problems.
45915 # Create a temporary directory, and hook for its removal unless debugging.
45918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45919 trap '{ (exit 1); exit 1; }' 1 2 13 15
45922 # Create a (secure) tmp directory for tmp files.
45925 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45926 test -n "$tmp" && test -d "$tmp"
45929 tmp=./confstat$$-$RANDOM
45930 (umask 077 && mkdir $tmp)
45933 echo "$me: cannot create a temporary directory in ." >&2
45934 { (exit 1); exit 1; }
45939 cat >>$CONFIG_STATUS <<_ACEOF
45942 # CONFIG_FILES section.
45945 # No need to generate the scripts if there are no CONFIG_FILES.
45946 # This happens for instance when ./config.status config.h
45947 if test -n "\$CONFIG_FILES"; then
45948 # Protect against being on the right side of a sed subst in config.status.
45949 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45950 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45951 s,@SHELL@,$SHELL,;t t
45952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45958 s,@exec_prefix@,$exec_prefix,;t t
45959 s,@prefix@,$prefix,;t t
45960 s,@program_transform_name@,$program_transform_name,;t t
45961 s,@bindir@,$bindir,;t t
45962 s,@sbindir@,$sbindir,;t t
45963 s,@libexecdir@,$libexecdir,;t t
45964 s,@datadir@,$datadir,;t t
45965 s,@sysconfdir@,$sysconfdir,;t t
45966 s,@sharedstatedir@,$sharedstatedir,;t t
45967 s,@localstatedir@,$localstatedir,;t t
45968 s,@libdir@,$libdir,;t t
45969 s,@includedir@,$includedir,;t t
45970 s,@oldincludedir@,$oldincludedir,;t t
45971 s,@infodir@,$infodir,;t t
45972 s,@mandir@,$mandir,;t t
45973 s,@build_alias@,$build_alias,;t t
45974 s,@host_alias@,$host_alias,;t t
45975 s,@target_alias@,$target_alias,;t t
45976 s,@DEFS@,$DEFS,;t t
45977 s,@ECHO_C@,$ECHO_C,;t t
45978 s,@ECHO_N@,$ECHO_N,;t t
45979 s,@ECHO_T@,$ECHO_T,;t t
45980 s,@LIBS@,$LIBS,;t t
45981 s,@build@,$build,;t t
45982 s,@build_cpu@,$build_cpu,;t t
45983 s,@build_vendor@,$build_vendor,;t t
45984 s,@build_os@,$build_os,;t t
45985 s,@host@,$host,;t t
45986 s,@host_cpu@,$host_cpu,;t t
45987 s,@host_vendor@,$host_vendor,;t t
45988 s,@host_os@,$host_os,;t t
45989 s,@target@,$target,;t t
45990 s,@target_cpu@,$target_cpu,;t t
45991 s,@target_vendor@,$target_vendor,;t t
45992 s,@target_os@,$target_os,;t t
45993 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45994 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45995 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45996 s,@CYGPATH_W@,$CYGPATH_W,;t t
45997 s,@PACKAGE@,$PACKAGE,;t t
45998 s,@VERSION@,$VERSION,;t t
45999 s,@ACLOCAL@,$ACLOCAL,;t t
46000 s,@AUTOCONF@,$AUTOCONF,;t t
46001 s,@AUTOMAKE@,$AUTOMAKE,;t t
46002 s,@AUTOHEADER@,$AUTOHEADER,;t t
46003 s,@MAKEINFO@,$MAKEINFO,;t t
46004 s,@install_sh@,$install_sh,;t t
46005 s,@STRIP@,$STRIP,;t t
46006 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46007 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
46008 s,@mkdir_p@,$mkdir_p,;t t
46010 s,@SET_MAKE@,$SET_MAKE,;t t
46011 s,@am__leading_dot@,$am__leading_dot,;t t
46012 s,@AMTAR@,$AMTAR,;t t
46013 s,@am__tar@,$am__tar,;t t
46014 s,@am__untar@,$am__untar,;t t
46015 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
46016 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
46017 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
46018 s,@top_builddir@,$top_builddir,;t t
46019 s,@ldap_subdir@,$ldap_subdir,;t t
46022 s,@CFLAGS@,$CFLAGS,;t t
46023 s,@LDFLAGS@,$LDFLAGS,;t t
46024 s,@CPPFLAGS@,$CPPFLAGS,;t t
46025 s,@ac_ct_CC@,$ac_ct_CC,;t t
46026 s,@EXEEXT@,$EXEEXT,;t t
46027 s,@OBJEXT@,$OBJEXT,;t t
46028 s,@DEPDIR@,$DEPDIR,;t t
46029 s,@am__include@,$am__include,;t t
46030 s,@am__quote@,$am__quote,;t t
46031 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
46032 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
46033 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
46034 s,@CCDEPMODE@,$CCDEPMODE,;t t
46035 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
46036 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
46037 s,@EGREP@,$EGREP,;t t
46038 s,@LN_S@,$LN_S,;t t
46039 s,@ECHO@,$ECHO,;t t
46040 s,@ac_ct_AR@,$ac_ct_AR,;t t
46041 s,@RANLIB@,$RANLIB,;t t
46042 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46043 s,@DLLTOOL@,$DLLTOOL,;t t
46044 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
46046 s,@ac_ct_AS@,$ac_ct_AS,;t t
46047 s,@OBJDUMP@,$OBJDUMP,;t t
46048 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
46050 s,@LIBTOOL@,$LIBTOOL,;t t
46051 s,@PERLBIN@,$PERLBIN,;t t
46052 s,@OL_MKDEP@,$OL_MKDEP,;t t
46053 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
46054 s,@LTSTATIC@,$LTSTATIC,;t t
46055 s,@LIBOBJS@,$LIBOBJS,;t t
46056 s,@LIBSRCS@,$LIBSRCS,;t t
46057 s,@PLAT@,$PLAT,;t t
46058 s,@WITH_SASL@,$WITH_SASL,;t t
46059 s,@WITH_TLS@,$WITH_TLS,;t t
46060 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
46061 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
46062 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
46063 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
46064 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
46065 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
46066 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
46067 s,@BUILD_BDB@,$BUILD_BDB,;t t
46068 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
46069 s,@BUILD_HDB@,$BUILD_HDB,;t t
46070 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
46071 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
46072 s,@BUILD_META@,$BUILD_META,;t t
46073 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
46074 s,@BUILD_NULL@,$BUILD_NULL,;t t
46075 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
46076 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
46077 s,@BUILD_PERL@,$BUILD_PERL,;t t
46078 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
46079 s,@BUILD_SQL@,$BUILD_SQL,;t t
46080 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
46081 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
46082 s,@BUILD_DDS@,$BUILD_DDS,;t t
46083 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
46084 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
46085 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
46086 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
46087 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
46088 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
46089 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
46090 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
46091 s,@BUILD_RWM@,$BUILD_RWM,;t t
46092 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
46093 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
46094 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
46095 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
46096 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
46097 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
46098 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
46099 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
46100 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
46101 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
46102 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
46103 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
46104 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
46105 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
46106 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
46107 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
46108 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
46109 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
46110 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
46111 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
46112 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
46113 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
46114 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
46115 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
46116 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
46117 s,@SASL_LIBS@,$SASL_LIBS,;t t
46118 s,@TLS_LIBS@,$TLS_LIBS,;t t
46119 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
46120 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
46121 s,@LIBSLAPI@,$LIBSLAPI,;t t
46122 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
46123 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
46124 s,@ICU_LIBS@,$ICU_LIBS,;t t
46125 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
46126 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
46127 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
46128 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
46129 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
46130 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46135 cat >>$CONFIG_STATUS <<\_ACEOF
46136 # Split the substitutions into bite-sized pieces for seds with
46137 # small command number limits, like on Digital OSF/1 and HP-UX.
46138 ac_max_sed_lines=48
46139 ac_sed_frag=1 # Number of current file.
46140 ac_beg=1 # First line for current file.
46141 ac_end=$ac_max_sed_lines # Line after last line for current file.
46144 while $ac_more_lines; do
46145 if test $ac_beg -gt 1; then
46146 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46148 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46150 if test ! -s $tmp/subs.frag; then
46151 ac_more_lines=false
46153 # The purpose of the label and of the branching condition is to
46154 # speed up the sed processing (if there are no `@' at all, there
46155 # is no need to browse any of the substitutions).
46156 # These are the two extra sed commands mentioned above.
46158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46159 if test -z "$ac_sed_cmds"; then
46160 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46162 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46164 ac_sed_frag=`expr $ac_sed_frag + 1`
46166 ac_end=`expr $ac_end + $ac_max_sed_lines`
46169 if test -z "$ac_sed_cmds"; then
46172 fi # test -n "$CONFIG_FILES"
46175 cat >>$CONFIG_STATUS <<\_ACEOF
46176 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46179 - | *:- | *:-:* ) # input from stdin
46181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46185 * ) ac_file_in=$ac_file.in ;;
46188 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46191 X"$ac_file" : 'X\(//\)[^/]' \| \
46192 X"$ac_file" : 'X\(//\)$' \| \
46193 X"$ac_file" : 'X\(/\)' \| \
46194 . : '\(.\)' 2>/dev/null ||
46196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46198 /^X\(\/\/\)$/{ s//\1/; q; }
46199 /^X\(\/\).*/{ s//\1/; q; }
46201 { if $as_mkdir_p; then
46206 while test ! -d "$as_dir"; do
46207 as_dirs="$as_dir $as_dirs"
46208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46210 X"$as_dir" : 'X\(//\)[^/]' \| \
46211 X"$as_dir" : 'X\(//\)$' \| \
46212 X"$as_dir" : 'X\(/\)' \| \
46213 . : '\(.\)' 2>/dev/null ||
46215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46217 /^X\(\/\/\)$/{ s//\1/; q; }
46218 /^X\(\/\).*/{ s//\1/; q; }
46221 test ! -n "$as_dirs" || mkdir $as_dirs
46222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46224 { (exit 1); exit 1; }; }; }
46228 if test "$ac_dir" != .; then
46229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46230 # A "../" for each directory in $ac_dir_suffix.
46231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46233 ac_dir_suffix= ac_top_builddir=
46237 .) # No --srcdir option. We are building in place.
46239 if test -z "$ac_top_builddir"; then
46242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46244 [\\/]* | ?:[\\/]* ) # Absolute path.
46245 ac_srcdir=$srcdir$ac_dir_suffix;
46246 ac_top_srcdir=$srcdir ;;
46247 *) # Relative path.
46248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46252 # Do not use `cd foo && pwd` to compute absolute paths, because
46253 # the directories may not exist.
46255 .) ac_abs_builddir="$ac_dir";;
46258 .) ac_abs_builddir=`pwd`;;
46259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46260 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46263 case $ac_abs_builddir in
46264 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46266 case ${ac_top_builddir}. in
46267 .) ac_abs_top_builddir=$ac_abs_builddir;;
46268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46272 case $ac_abs_builddir in
46273 .) ac_abs_srcdir=$ac_srcdir;;
46276 .) ac_abs_srcdir=$ac_abs_builddir;;
46277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46281 case $ac_abs_builddir in
46282 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46284 case $ac_top_srcdir in
46285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46294 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46297 if test x"$ac_file" != x-; then
46298 { echo "$as_me:$LINENO: creating $ac_file" >&5
46299 echo "$as_me: creating $ac_file" >&6;}
46302 # Let's still pretend it is `configure' which instantiates (i.e., don't
46303 # use $as_me), people would be surprised to read:
46304 # /* config.h. Generated by config.status. */
46305 if test x"$ac_file" = x-; then
46308 configure_input="$ac_file. "
46310 configure_input=$configure_input"Generated from `echo $ac_file_in |
46311 sed 's,.*/,,'` by configure."
46313 # First look for the input files in the build tree, otherwise in the
46315 ac_file_inputs=`IFS=:
46316 for f in $ac_file_in; do
46318 -) echo $tmp/stdin ;;
46320 # Absolute (can't be DOS-style, as IFS=:)
46321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46322 echo "$as_me: error: cannot find input file: $f" >&2;}
46323 { (exit 1); exit 1; }; }
46326 if test -f "$f"; then
46329 elif test -f "$srcdir/$f"; then
46334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46335 echo "$as_me: error: cannot find input file: $f" >&2;}
46336 { (exit 1); exit 1; }; }
46339 done` || { (exit 1); exit 1; }
46341 cat >>$CONFIG_STATUS <<_ACEOF
46345 cat >>$CONFIG_STATUS <<\_ACEOF
46347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46348 s,@configure_input@,$configure_input,;t t
46349 s,@srcdir@,$ac_srcdir,;t t
46350 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46351 s,@top_srcdir@,$ac_top_srcdir,;t t
46352 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46353 s,@builddir@,$ac_builddir,;t t
46354 s,@abs_builddir@,$ac_abs_builddir,;t t
46355 s,@top_builddir@,$ac_top_builddir,;t t
46356 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46357 s,@INSTALL@,$ac_INSTALL,;t t
46358 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46360 if test x"$ac_file" != x-; then
46361 mv $tmp/out $ac_file
46369 cat >>$CONFIG_STATUS <<\_ACEOF
46372 # CONFIG_HEADER section.
46375 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46376 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46378 # ac_d sets the value in "#define NAME VALUE" lines.
46379 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46380 ac_dB='[ ].*$,\1#\2'
46383 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46384 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
46385 ac_uB='$,\1#\2define\3'
46389 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46392 - | *:- | *:-:* ) # input from stdin
46394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46398 * ) ac_file_in=$ac_file.in ;;
46401 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46402 echo "$as_me: creating $ac_file" >&6;}
46404 # First look for the input files in the build tree, otherwise in the
46406 ac_file_inputs=`IFS=:
46407 for f in $ac_file_in; do
46409 -) echo $tmp/stdin ;;
46411 # Absolute (can't be DOS-style, as IFS=:)
46412 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46413 echo "$as_me: error: cannot find input file: $f" >&2;}
46414 { (exit 1); exit 1; }; }
46415 # Do quote $f, to prevent DOS paths from being IFS'd.
46418 if test -f "$f"; then
46421 elif test -f "$srcdir/$f"; then
46426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46427 echo "$as_me: error: cannot find input file: $f" >&2;}
46428 { (exit 1); exit 1; }; }
46431 done` || { (exit 1); exit 1; }
46432 # Remove the trailing spaces.
46433 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
46437 # Transform confdefs.h into two sed scripts, `conftest.defines' and
46438 # `conftest.undefs', that substitutes the proper values into
46439 # config.h.in to produce config.h. The first handles `#define'
46440 # templates, and the second `#undef' templates.
46441 # And first: Protect against being on the right side of a sed subst in
46442 # config.status. Protect against being in an unquoted here document
46443 # in config.status.
46444 rm -f conftest.defines conftest.undefs
46445 # Using a here document instead of a string reduces the quoting nightmare.
46446 # Putting comments in sed scripts is not portable.
46448 # `end' is used to avoid that the second main sed command (meant for
46449 # 0-ary CPP macros) applies to n-ary macro definitions.
46450 # See the Autoconf documentation for `clear'.
46451 cat >confdef2sed.sed <<\_ACEOF
46456 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46458 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46461 # If some macros were called several times there might be several times
46462 # the same #defines, which is useless. Nevertheless, we may not want to
46463 # sort them, since we want the *last* AC-DEFINE to be honored.
46464 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46465 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46466 rm -f confdef2sed.sed
46468 # This sed command replaces #undef with comments. This is necessary, for
46469 # example, in the case of _POSIX_SOURCE, which is predefined and required
46470 # on some systems where configure will not decide to define it.
46471 cat >>conftest.undefs <<\_ACEOF
46472 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46475 # Break up conftest.defines because some shells have a limit on the size
46476 # of here documents, and old seds have small limits too (100 cmds).
46477 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46478 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46479 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46480 echo ' :' >>$CONFIG_STATUS
46481 rm -f conftest.tail
46482 while grep . conftest.defines >/dev/null
46484 # Write a limited-size here document to $tmp/defines.sed.
46485 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46486 # Speed up: don't consider the non `#define' lines.
46487 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46488 # Work around the forget-to-reset-the-flag bug.
46489 echo 't clr' >>$CONFIG_STATUS
46490 echo ': clr' >>$CONFIG_STATUS
46491 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46493 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46495 mv $tmp/out $tmp/in
46497 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46498 rm -f conftest.defines
46499 mv conftest.tail conftest.defines
46501 rm -f conftest.defines
46502 echo ' fi # grep' >>$CONFIG_STATUS
46503 echo >>$CONFIG_STATUS
46505 # Break up conftest.undefs because some shells have a limit on the size
46506 # of here documents, and old seds have small limits too (100 cmds).
46507 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46508 rm -f conftest.tail
46509 while grep . conftest.undefs >/dev/null
46511 # Write a limited-size here document to $tmp/undefs.sed.
46512 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46513 # Speed up: don't consider the non `#undef'
46514 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46515 # Work around the forget-to-reset-the-flag bug.
46516 echo 't clr' >>$CONFIG_STATUS
46517 echo ': clr' >>$CONFIG_STATUS
46518 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46520 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46522 mv $tmp/out $tmp/in
46524 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46525 rm -f conftest.undefs
46526 mv conftest.tail conftest.undefs
46528 rm -f conftest.undefs
46530 cat >>$CONFIG_STATUS <<\_ACEOF
46531 # Let's still pretend it is `configure' which instantiates (i.e., don't
46532 # use $as_me), people would be surprised to read:
46533 # /* config.h. Generated by config.status. */
46534 if test x"$ac_file" = x-; then
46535 echo "/* Generated by configure. */" >$tmp/config.h
46537 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46539 cat $tmp/in >>$tmp/config.h
46541 if test x"$ac_file" != x-; then
46542 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46544 echo "$as_me: $ac_file is unchanged" >&6;}
46546 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46548 X"$ac_file" : 'X\(//\)[^/]' \| \
46549 X"$ac_file" : 'X\(//\)$' \| \
46550 X"$ac_file" : 'X\(/\)' \| \
46551 . : '\(.\)' 2>/dev/null ||
46553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46555 /^X\(\/\/\)$/{ s//\1/; q; }
46556 /^X\(\/\).*/{ s//\1/; q; }
46558 { if $as_mkdir_p; then
46563 while test ! -d "$as_dir"; do
46564 as_dirs="$as_dir $as_dirs"
46565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46567 X"$as_dir" : 'X\(//\)[^/]' \| \
46568 X"$as_dir" : 'X\(//\)$' \| \
46569 X"$as_dir" : 'X\(/\)' \| \
46570 . : '\(.\)' 2>/dev/null ||
46572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46574 /^X\(\/\/\)$/{ s//\1/; q; }
46575 /^X\(\/\).*/{ s//\1/; q; }
46578 test ! -n "$as_dirs" || mkdir $as_dirs
46579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46581 { (exit 1); exit 1; }; }; }
46584 mv $tmp/config.h $ac_file
46588 rm -f $tmp/config.h
46590 # Compute $ac_file's index in $config_headers.
46592 for _am_header in $config_headers :; do
46593 case $_am_header in
46594 $ac_file | $ac_file:* )
46597 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46600 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46601 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46602 X$ac_file : 'X\(//\)[^/]' \| \
46603 X$ac_file : 'X\(//\)$' \| \
46604 X$ac_file : 'X\(/\)' \| \
46605 . : '\(.\)' 2>/dev/null ||
46607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46609 /^X\(\/\/\)$/{ s//\1/; q; }
46610 /^X\(\/\).*/{ s//\1/; q; }
46611 s/.*/./; q'`/stamp-h$_am_stamp_count
46614 cat >>$CONFIG_STATUS <<\_ACEOF
46617 # CONFIG_COMMANDS section.
46619 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46620 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46621 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46622 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46624 X"$ac_dest" : 'X\(//\)[^/]' \| \
46625 X"$ac_dest" : 'X\(//\)$' \| \
46626 X"$ac_dest" : 'X\(/\)' \| \
46627 . : '\(.\)' 2>/dev/null ||
46629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46631 /^X\(\/\/\)$/{ s//\1/; q; }
46632 /^X\(\/\).*/{ s//\1/; q; }
46634 { if $as_mkdir_p; then
46639 while test ! -d "$as_dir"; do
46640 as_dirs="$as_dir $as_dirs"
46641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46643 X"$as_dir" : 'X\(//\)[^/]' \| \
46644 X"$as_dir" : 'X\(//\)$' \| \
46645 X"$as_dir" : 'X\(/\)' \| \
46646 . : '\(.\)' 2>/dev/null ||
46648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46650 /^X\(\/\/\)$/{ s//\1/; q; }
46651 /^X\(\/\).*/{ s//\1/; q; }
46654 test ! -n "$as_dirs" || mkdir $as_dirs
46655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46657 { (exit 1); exit 1; }; }; }
46661 if test "$ac_dir" != .; then
46662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46663 # A "../" for each directory in $ac_dir_suffix.
46664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46666 ac_dir_suffix= ac_top_builddir=
46670 .) # No --srcdir option. We are building in place.
46672 if test -z "$ac_top_builddir"; then
46675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46677 [\\/]* | ?:[\\/]* ) # Absolute path.
46678 ac_srcdir=$srcdir$ac_dir_suffix;
46679 ac_top_srcdir=$srcdir ;;
46680 *) # Relative path.
46681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46685 # Do not use `cd foo && pwd` to compute absolute paths, because
46686 # the directories may not exist.
46688 .) ac_abs_builddir="$ac_dir";;
46691 .) ac_abs_builddir=`pwd`;;
46692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46696 case $ac_abs_builddir in
46697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46699 case ${ac_top_builddir}. in
46700 .) ac_abs_top_builddir=$ac_abs_builddir;;
46701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46705 case $ac_abs_builddir in
46706 .) ac_abs_srcdir=$ac_srcdir;;
46709 .) ac_abs_srcdir=$ac_abs_builddir;;
46710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46714 case $ac_abs_builddir in
46715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46717 case $ac_top_srcdir in
46718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46725 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46726 echo "$as_me: executing $ac_dest commands" >&6;}
46728 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46729 # Strip MF so we end up with the name of the file.
46730 mf=`echo "$mf" | sed -e 's/:.*$//'`
46731 # Check whether this is an Automake generated Makefile or not.
46732 # We used to match only the files named `Makefile.in', but
46733 # some people rename them; so instead we look at the file content.
46734 # Grep'ing the first line is not enough: some people post-process
46735 # each Makefile.in and add a new line on top of each file to say so.
46736 # So let's grep whole file.
46737 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46738 dirpart=`(dirname "$mf") 2>/dev/null ||
46739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46740 X"$mf" : 'X\(//\)[^/]' \| \
46741 X"$mf" : 'X\(//\)$' \| \
46742 X"$mf" : 'X\(/\)' \| \
46743 . : '\(.\)' 2>/dev/null ||
46745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46747 /^X\(\/\/\)$/{ s//\1/; q; }
46748 /^X\(\/\).*/{ s//\1/; q; }
46753 # Extract the definition of DEPDIR, am__include, and am__quote
46754 # from the Makefile without running `make'.
46755 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46756 test -z "$DEPDIR" && continue
46757 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46758 test -z "am__include" && continue
46759 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46760 # When using ansi2knr, U may be empty or an underscore; expand it
46761 U=`sed -n 's/^U = //p' < "$mf"`
46762 # Find all dependency output files, they are included files with
46763 # $(DEPDIR) in their names. We invoke sed twice because it is the
46764 # simplest approach to changing $(DEPDIR) to its actual value in the
46766 for file in `sed -n "
46767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46769 # Make sure the directory exists.
46770 test -f "$dirpart/$file" && continue
46771 fdir=`(dirname "$file") 2>/dev/null ||
46772 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46773 X"$file" : 'X\(//\)[^/]' \| \
46774 X"$file" : 'X\(//\)$' \| \
46775 X"$file" : 'X\(/\)' \| \
46776 . : '\(.\)' 2>/dev/null ||
46778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46780 /^X\(\/\/\)$/{ s//\1/; q; }
46781 /^X\(\/\).*/{ s//\1/; q; }
46783 { if $as_mkdir_p; then
46784 mkdir -p $dirpart/$fdir
46786 as_dir=$dirpart/$fdir
46788 while test ! -d "$as_dir"; do
46789 as_dirs="$as_dir $as_dirs"
46790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46792 X"$as_dir" : 'X\(//\)[^/]' \| \
46793 X"$as_dir" : 'X\(//\)$' \| \
46794 X"$as_dir" : 'X\(/\)' \| \
46795 . : '\(.\)' 2>/dev/null ||
46797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46799 /^X\(\/\/\)$/{ s//\1/; q; }
46800 /^X\(\/\).*/{ s//\1/; q; }
46803 test ! -n "$as_dirs" || mkdir $as_dirs
46804 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46805 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46806 { (exit 1); exit 1; }; }; }
46808 # echo "creating $dirpart/$file"
46809 echo '# dummy' > "$dirpart/$file"
46816 BACKENDSC="servers/slapd/backends.c"
46817 echo "Making $BACKENDSC"
46819 cat > $BACKENDSC << ENDX
46820 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46822 * Copyright 1998-2006 The OpenLDAP Foundation.
46823 * All rights reserved.
46825 * Redistribution and use in source and binary forms, with or without
46826 * modification, are permitted only as authorized by the OpenLDAP
46829 * A copy of this license is available in the file LICENSE in the
46830 * top-level directory of the distribution or, alternatively, at
46831 * <http://www.OpenLDAP.org/license.html>.
46833 /* This file is automatically generated by configure; please do not edit. */
46835 #include "portable.h"
46839 if test "${STATIC_BACKENDS}"; then
46840 for b in config ${STATIC_BACKENDS}; do
46841 bb=`echo "${b}" | sed -e 's/back-//'`
46842 cat >> $BACKENDSC << ENDX
46843 extern BI_init ${bb}_back_initialize;
46847 cat >> $BACKENDSC << ENDX
46849 BackendInfo slap_binfo[] = {
46852 for b in config ${STATIC_BACKENDS}; do
46853 bb=`echo "${b}" | sed -e 's/back-//'`
46854 echo " Add ${bb} ..."
46855 cat >> $BACKENDSC << ENDX
46856 { "${bb}", ${bb}_back_initialize },
46860 cat >> $BACKENDSC << ENDX
46864 /* end of generated file */
46867 OVERLAYSC="servers/slapd/overlays/statover.c"
46868 echo "Making $OVERLAYSC"
46870 cat > $OVERLAYSC << ENDX
46871 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46873 * Copyright 1998-2006 The OpenLDAP Foundation.
46874 * All rights reserved.
46876 * Redistribution and use in source and binary forms, with or without
46877 * modification, are permitted only as authorized by the OpenLDAP
46880 * A copy of this license is available in the file LICENSE in the
46881 * top-level directory of the distribution or, alternatively, at
46882 * <http://www.OpenLDAP.org/license.html>.
46884 /* This file is automatically generated by configure; please do not edit. */
46886 #include "portable.h"
46890 if test "${STATIC_OVERLAYS}"; then
46891 for o in ${STATIC_OVERLAYS}; do
46892 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46893 cat >> $OVERLAYSC << ENDX
46894 extern OV_init ${oo}_initialize;
46899 cat >> $OVERLAYSC << ENDX
46901 OverlayInit slap_oinfo[] = {
46904 if test "${STATIC_OVERLAYS}"; then
46905 for o in ${STATIC_OVERLAYS}; do
46906 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46907 echo " Add ${oo} ..."
46908 cat >> $OVERLAYSC << ENDX
46909 { "${oo}", ${oo}_initialize },
46914 cat >> $OVERLAYSC << ENDX
46918 /* end of generated file */
46921 echo Please run \"make depend\" to build dependencies
46927 cat >>$CONFIG_STATUS <<\_ACEOF
46929 { (exit 0); exit 0; }
46931 chmod +x $CONFIG_STATUS
46932 ac_clean_files=$ac_clean_files_save
46935 # configure is writing to config.log, and then calls config.status.
46936 # config.status does its own redirection, appending to config.log.
46937 # Unfortunately, on DOS this fails, as config.log is still kept open
46938 # by configure, so config.status won't be able to write to it; its
46939 # output is simply discarded. So we exec the FD to /dev/null,
46940 # effectively closing config.log, so it can be properly (re)opened and
46941 # appended to by config.status. When coming back to configure, we
46942 # need to make the FD available again.
46943 if test "$no_create" != yes; then
46945 ac_config_status_args=
46946 test "$silent" = yes &&
46947 ac_config_status_args="$ac_config_status_args --quiet"
46949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46952 # would make configure fail if this is the last instruction.
46953 $ac_cs_success || { (exit 1); exit 1; }