2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.625 2006/02/06 03:51:55 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_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-ldbm enable ldbm backend no|yes|mod [no]
1038 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1040 --enable-meta enable metadirectory backend no|yes|mod [no]
1041 --enable-monitor enable monitor backend no|yes|mod [yes]
1042 --enable-null enable null backend no|yes|mod [no]
1043 --enable-passwd enable passwd backend no|yes|mod [no]
1044 --enable-perl enable perl backend no|yes|mod [no]
1045 --enable-relay enable relay backend no|yes|mod [yes]
1046 --enable-shell enable shell backend no|yes|mod [no]
1047 --enable-sql enable sql backend no|yes|mod [no]
1049 SLAPD Overlay Options:
1050 --enable-overlays enable all available overlays no|yes|mod
1051 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1052 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1053 --enable-denyop Deny Operation overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-lastmod Last Modification overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-multiple-precision
1091 multiple precision support for statistics
1092 auto|bignum|gmp [auto]
1094 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1095 --with-pic try to use only PIC/non-PIC objects [default=use
1098 include additional configurations [automatic]
1100 See INSTALL file for further details.
1102 Some influential environment variables:
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 ac_dir_suffix= ac_top_builddir=
1133 .) # No --srcdir option. We are building in place.
1135 if test -z "$ac_top_builddir"; then
1138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1151 .) ac_abs_builddir="$ac_dir";;
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1198 $ac_configure --help
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59. Invocation command line was
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 test -z "$as_dir" && as_dir=.
1260 echo "PATH: $as_dir"
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1284 ac_must_keep_next=false
1290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301 if test $ac_must_keep_next = true; then
1302 ac_must_keep_next=false # Got value, back to normal.
1305 *=* | --config-cache | -C | -disable-* | --disable-* \
1306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308 | -with-* | --with-* | -without-* | --without-* | --x)
1309 case "$ac_configure_args0 " in
1310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 -* ) ac_must_keep_next=true ;;
1316 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317 # Get rid of the leading space.
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log. We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332 # Save into config.log some information that might help in debugging.
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1342 # The following way of writing the cache mishandles newlines in values,
1345 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1365 for ac_var in $ac_subst_vars
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1372 if test -n "$ac_subst_files"; then
1379 for ac_var in $ac_subst_files
1381 eval ac_val=$`echo $ac_var`
1382 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -s confdefs.h; then
1394 sed "/^$/d" confdefs.h | sort
1397 test "$ac_signal" != 0 &&
1398 echo "$as_me: caught signal $ac_signal"
1399 echo "$as_me: exit $exit_status"
1401 rm -f core *.core &&
1402 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 for ac_signal in 1 2 13 15; do
1406 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415 # Predefined preprocessor variables.
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445 if test "x$prefix" != xNONE; then
1446 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 for ac_site_file in $CONFIG_SITE; do
1452 if test -r "$ac_site_file"; then
1453 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455 sed 's/^/| /' "$ac_site_file" >&5
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 for ac_dir in build $srcdir/build; do
1562 if test -f $ac_dir/install-sh; then
1564 ac_install_sh="$ac_aux_dir/install-sh -c"
1566 elif test -f $ac_dir/install.sh; then
1568 ac_install_sh="$ac_aux_dir/install.sh -c"
1570 elif test -f $ac_dir/shtool; then
1572 ac_install_sh="$ac_aux_dir/shtool install -c"
1576 if test -z "$ac_aux_dir"; then
1577 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1578 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1579 { (exit 1); exit 1; }; }
1581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1583 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585 eval `$ac_aux_dir/version.sh`
1586 if test -z "$OL_STRING"; then
1587 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1588 echo "$as_me: error: could not determine version" >&2;}
1589 { (exit 1); exit 1; }; }
1592 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1593 ac_cv_shtool="$ac_aux_dir/shtool"
1595 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1596 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1597 { (exit 1); exit 1; }; }
1600 SHTOOL="$ac_cv_shtool"
1602 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1606 if test -d $ac_aux_dir/CVS; then
1607 OPENLDAP_CVS="(from CVS sources) "
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625 ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629 { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651 ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673 ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691 test "$program_prefix$program_suffix$program_transform_name" = \
1693 program_prefix=${target_alias}-
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1789 set X `ls -t $srcdir/configure conftest.file`
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1806 test "$2" = conftest.file
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1867 for d in ./-p ./--version;
1869 test -d $d && rmdir $d
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1875 mkdir_p='$(install_sh) -d'
1879 for ac_prog in gawk mawk nawk awk
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$AWK" && break
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.make <<\_ACEOF
1927 @echo 'ac_maketemp="$(MAKE)"'
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1934 eval ac_cv_prog_make_${ac_make}_set=no
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1955 rmdir .tst 2>/dev/null
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1975 # Define the identity of the package.
1980 # Some tools Automake needs.
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'. However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$STRIP"; then
2012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032 echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_STRIP"; then
2042 # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_STRIP"; then
2050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_STRIP="strip"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2080 STRIP="$ac_cv_prog_STRIP"
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086 # We need awk for the "check" target. The system "awk" is bad on
2088 # Always define AMTAR for backward compatibility.
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2141 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2143 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2145 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154 ldap_subdir="/openldap"
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159 withval="$with_subdir"
2166 ldap_subdir="$withval"
2169 ldap_subdir="/$withval"
2175 # OpenLDAP --enable-debug
2177 # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179 enableval="$enable_debug"
2182 for ol_val in no yes traditional ; do
2183 if test "$enableval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190 { (exit 1); exit 1; }; }
2192 ol_enable_debug="$ol_arg"
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2200 # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202 enableval="$enable_dynamic"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213 { (exit 1); exit 1; }; }
2215 ol_enable_dynamic="$ol_arg"
2218 ol_enable_dynamic=no
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2223 # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225 enableval="$enable_syslog"
2228 for ol_val in auto yes no ; do
2229 if test "$enableval" = "$ol_val" ; then
2233 if test "$ol_arg" = "invalid" ; then
2234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236 { (exit 1); exit 1; }; }
2238 ol_enable_syslog="$ol_arg"
2241 ol_enable_syslog=auto
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2246 # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248 enableval="$enable_proctitle"
2251 for ol_val in auto yes no ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259 { (exit 1); exit 1; }; }
2261 ol_enable_proctitle="$ol_arg"
2264 ol_enable_proctitle=yes
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 ol_enable_kbind=${ol_enable_kbind-no}
2269 # OpenLDAP --enable-ipv6
2271 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273 enableval="$enable_ipv6"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284 { (exit 1); exit 1; }; }
2286 ol_enable_ipv6="$ol_arg"
2292 # OpenLDAP --enable-local
2294 # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296 enableval="$enable_local"
2299 for ol_val in auto yes no ; do
2300 if test "$enableval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307 { (exit 1); exit 1; }; }
2309 ol_enable_local="$ol_arg"
2312 ol_enable_local=auto
2314 # end --enable-local
2316 # OpenLDAP --with-cyrus_sasl
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320 withval="$with_cyrus_sasl"
2323 for ol_val in auto yes no ; do
2324 if test "$withval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331 { (exit 1); exit 1; }; }
2333 ol_with_cyrus_sasl="$ol_arg"
2336 ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2339 # OpenLDAP --with-fetch
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343 withval="$with_fetch"
2346 for ol_val in auto yes no ; do
2347 if test "$withval" = "$ol_val" ; then
2351 if test "$ol_arg" = "invalid" ; then
2352 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354 { (exit 1); exit 1; }; }
2356 ol_with_fetch="$ol_arg"
2359 ol_with_fetch="auto"
2360 fi; # end --with-fetch
2362 ol_with_kerberos=${ol_with_kerberos-auto}
2363 # OpenLDAP --with-threads
2365 # Check whether --with-threads or --without-threads was given.
2366 if test "${with_threads+set}" = set; then
2367 withval="$with_threads"
2370 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2371 if test "$withval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2377 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2378 { (exit 1); exit 1; }; }
2380 ol_with_threads="$ol_arg"
2383 ol_with_threads="auto"
2384 fi; # end --with-threads
2386 # OpenLDAP --with-tls
2388 # Check whether --with-tls or --without-tls was given.
2389 if test "${with_tls+set}" = set; then
2393 for ol_val in auto openssl yes no ; do
2394 if test "$withval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2400 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2401 { (exit 1); exit 1; }; }
2403 ol_with_tls="$ol_arg"
2407 fi; # end --with-tls
2409 # OpenLDAP --with-yielding_select
2411 # Check whether --with-yielding_select or --without-yielding_select was given.
2412 if test "${with_yielding_select+set}" = set; then
2413 withval="$with_yielding_select"
2416 for ol_val in auto yes no manual ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2423 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2424 { (exit 1); exit 1; }; }
2426 ol_with_yielding_select="$ol_arg"
2429 ol_with_yielding_select="auto"
2430 fi; # end --with-yielding_select
2432 # OpenLDAP --with-multiple_precision
2434 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2435 if test "${with_multiple_precision+set}" = set; then
2436 withval="$with_multiple_precision"
2439 for ol_val in auto bignum gmp yes no ; do
2440 if test "$withval" = "$ol_val" ; then
2444 if test "$ol_arg" = "invalid" ; then
2445 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2446 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2447 { (exit 1); exit 1; }; }
2449 ol_with_multiple_precision="$ol_arg"
2452 ol_with_multiple_precision="auto"
2453 fi; # end --with-multiple_precision
2457 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2458 if test "${enable_xxslapdoptions+set}" = set; then
2459 enableval="$enable_xxslapdoptions"
2462 # OpenLDAP --enable-slapd
2464 # Check whether --enable-slapd or --disable-slapd was given.
2465 if test "${enable_slapd+set}" = set; then
2466 enableval="$enable_slapd"
2469 for ol_val in auto yes no ; do
2470 if test "$enableval" = "$ol_val" ; then
2474 if test "$ol_arg" = "invalid" ; then
2475 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2476 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2477 { (exit 1); exit 1; }; }
2479 ol_enable_slapd="$ol_arg"
2484 # end --enable-slapd
2485 # OpenLDAP --enable-dynacl
2487 # Check whether --enable-dynacl or --disable-dynacl was given.
2488 if test "${enable_dynacl+set}" = set; then
2489 enableval="$enable_dynacl"
2492 for ol_val in auto yes no ; do
2493 if test "$enableval" = "$ol_val" ; then
2497 if test "$ol_arg" = "invalid" ; then
2498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2499 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2500 { (exit 1); exit 1; }; }
2502 ol_enable_dynacl="$ol_arg"
2507 # end --enable-dynacl
2508 # OpenLDAP --enable-aci
2510 # Check whether --enable-aci or --disable-aci was given.
2511 if test "${enable_aci+set}" = set; then
2512 enableval="$enable_aci"
2515 for ol_val in no yes mod ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_aci="$ol_arg"
2531 # OpenLDAP --enable-cleartext
2533 # Check whether --enable-cleartext or --disable-cleartext was given.
2534 if test "${enable_cleartext+set}" = set; then
2535 enableval="$enable_cleartext"
2538 for ol_val in auto yes no ; do
2539 if test "$enableval" = "$ol_val" ; then
2543 if test "$ol_arg" = "invalid" ; then
2544 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2546 { (exit 1); exit 1; }; }
2548 ol_enable_cleartext="$ol_arg"
2551 ol_enable_cleartext=yes
2553 # end --enable-cleartext
2554 # OpenLDAP --enable-crypt
2556 # Check whether --enable-crypt or --disable-crypt was given.
2557 if test "${enable_crypt+set}" = set; then
2558 enableval="$enable_crypt"
2561 for ol_val in auto yes no ; do
2562 if test "$enableval" = "$ol_val" ; then
2566 if test "$ol_arg" = "invalid" ; then
2567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2569 { (exit 1); exit 1; }; }
2571 ol_enable_crypt="$ol_arg"
2576 # end --enable-crypt
2577 # OpenLDAP --enable-lmpasswd
2579 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2580 if test "${enable_lmpasswd+set}" = set; then
2581 enableval="$enable_lmpasswd"
2584 for ol_val in auto yes no ; do
2585 if test "$enableval" = "$ol_val" ; then
2589 if test "$ol_arg" = "invalid" ; then
2590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2592 { (exit 1); exit 1; }; }
2594 ol_enable_lmpasswd="$ol_arg"
2597 ol_enable_lmpasswd=no
2599 # end --enable-lmpasswd
2600 # OpenLDAP --enable-spasswd
2602 # Check whether --enable-spasswd or --disable-spasswd was given.
2603 if test "${enable_spasswd+set}" = set; then
2604 enableval="$enable_spasswd"
2607 for ol_val in auto yes no ; do
2608 if test "$enableval" = "$ol_val" ; then
2612 if test "$ol_arg" = "invalid" ; then
2613 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2615 { (exit 1); exit 1; }; }
2617 ol_enable_spasswd="$ol_arg"
2620 ol_enable_spasswd=no
2622 # end --enable-spasswd
2623 # OpenLDAP --enable-modules
2625 # Check whether --enable-modules or --disable-modules was given.
2626 if test "${enable_modules+set}" = set; then
2627 enableval="$enable_modules"
2630 for ol_val in auto yes no ; do
2631 if test "$enableval" = "$ol_val" ; then
2635 if test "$ol_arg" = "invalid" ; then
2636 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2638 { (exit 1); exit 1; }; }
2640 ol_enable_modules="$ol_arg"
2643 ol_enable_modules=no
2645 # end --enable-modules
2646 # 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 \
3185 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3186 if test "${enable_xxslapoverlays+set}" = set; then
3187 enableval="$enable_xxslapoverlays"
3191 # OpenLDAP --enable-overlays
3193 # Check whether --enable-overlays or --disable-overlays was given.
3194 if test "${enable_overlays+set}" = set; then
3195 enableval="$enable_overlays"
3198 for ol_val in no yes mod ; do
3199 if test "$enableval" = "$ol_val" ; then
3203 if test "$ol_arg" = "invalid" ; then
3204 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3206 { (exit 1); exit 1; }; }
3208 ol_enable_overlays="$ol_arg"
3211 # end --enable-overlays
3212 # OpenLDAP --enable-accesslog
3214 # Check whether --enable-accesslog or --disable-accesslog was given.
3215 if test "${enable_accesslog+set}" = set; then
3216 enableval="$enable_accesslog"
3219 for ol_val in no yes mod ; do
3220 if test "$enableval" = "$ol_val" ; then
3224 if test "$ol_arg" = "invalid" ; then
3225 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3227 { (exit 1); exit 1; }; }
3229 ol_enable_accesslog="$ol_arg"
3232 ol_enable_accesslog=${ol_enable_overlays:-no}
3234 # end --enable-accesslog
3236 # OpenLDAP --enable-dds
3238 # Check whether --enable-dds or --disable-dds was given.
3239 if test "${enable_dds+set}" = set; then
3240 enableval="$enable_dds"
3243 for ol_val in no yes mod ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_dds="$ol_arg"
3256 ol_enable_dds=${ol_enable_overlays:-no}
3260 # OpenLDAP --enable-denyop
3262 # Check whether --enable-denyop or --disable-denyop was given.
3263 if test "${enable_denyop+set}" = set; then
3264 enableval="$enable_denyop"
3267 for ol_val in no yes mod ; do
3268 if test "$enableval" = "$ol_val" ; then
3272 if test "$ol_arg" = "invalid" ; then
3273 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3275 { (exit 1); exit 1; }; }
3277 ol_enable_denyop="$ol_arg"
3280 ol_enable_denyop=${ol_enable_overlays:-no}
3282 # end --enable-denyop
3284 # OpenLDAP --enable-dyngroup
3286 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3287 if test "${enable_dyngroup+set}" = set; then
3288 enableval="$enable_dyngroup"
3291 for ol_val in no yes mod ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_dyngroup="$ol_arg"
3304 ol_enable_dyngroup=${ol_enable_overlays:-no}
3306 # end --enable-dyngroup
3308 # OpenLDAP --enable-dynlist
3310 # Check whether --enable-dynlist or --disable-dynlist was given.
3311 if test "${enable_dynlist+set}" = set; then
3312 enableval="$enable_dynlist"
3315 for ol_val in no yes mod ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_dynlist="$ol_arg"
3328 ol_enable_dynlist=${ol_enable_overlays:-no}
3330 # end --enable-dynlist
3332 # OpenLDAP --enable-lastmod
3334 # Check whether --enable-lastmod or --disable-lastmod was given.
3335 if test "${enable_lastmod+set}" = set; then
3336 enableval="$enable_lastmod"
3339 for ol_val in no yes mod ; do
3340 if test "$enableval" = "$ol_val" ; then
3344 if test "$ol_arg" = "invalid" ; then
3345 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3347 { (exit 1); exit 1; }; }
3349 ol_enable_lastmod="$ol_arg"
3352 ol_enable_lastmod=${ol_enable_overlays:-no}
3354 # end --enable-lastmod
3356 # OpenLDAP --enable-ppolicy
3358 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3359 if test "${enable_ppolicy+set}" = set; then
3360 enableval="$enable_ppolicy"
3363 for ol_val in no yes mod ; do
3364 if test "$enableval" = "$ol_val" ; then
3368 if test "$ol_arg" = "invalid" ; then
3369 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3371 { (exit 1); exit 1; }; }
3373 ol_enable_ppolicy="$ol_arg"
3376 ol_enable_ppolicy=${ol_enable_overlays:-no}
3378 # end --enable-ppolicy
3380 # OpenLDAP --enable-proxycache
3382 # Check whether --enable-proxycache or --disable-proxycache was given.
3383 if test "${enable_proxycache+set}" = set; then
3384 enableval="$enable_proxycache"
3387 for ol_val in no yes mod ; do
3388 if test "$enableval" = "$ol_val" ; then
3392 if test "$ol_arg" = "invalid" ; then
3393 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3395 { (exit 1); exit 1; }; }
3397 ol_enable_proxycache="$ol_arg"
3400 ol_enable_proxycache=${ol_enable_overlays:-no}
3402 # end --enable-proxycache
3404 # OpenLDAP --enable-refint
3406 # Check whether --enable-refint or --disable-refint was given.
3407 if test "${enable_refint+set}" = set; then
3408 enableval="$enable_refint"
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_refint="$ol_arg"
3424 ol_enable_refint=${ol_enable_overlays:-no}
3426 # end --enable-refint
3428 # OpenLDAP --enable-retcode
3430 # Check whether --enable-retcode or --disable-retcode was given.
3431 if test "${enable_retcode+set}" = set; then
3432 enableval="$enable_retcode"
3435 for ol_val in no yes mod ; do
3436 if test "$enableval" = "$ol_val" ; then
3440 if test "$ol_arg" = "invalid" ; then
3441 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3443 { (exit 1); exit 1; }; }
3445 ol_enable_retcode="$ol_arg"
3448 ol_enable_retcode=${ol_enable_overlays:-no}
3450 # end --enable-retcode
3452 # OpenLDAP --enable-rwm
3454 # Check whether --enable-rwm or --disable-rwm was given.
3455 if test "${enable_rwm+set}" = set; then
3456 enableval="$enable_rwm"
3459 for ol_val in no yes mod ; do
3460 if test "$enableval" = "$ol_val" ; then
3464 if test "$ol_arg" = "invalid" ; then
3465 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3467 { (exit 1); exit 1; }; }
3469 ol_enable_rwm="$ol_arg"
3472 ol_enable_rwm=${ol_enable_overlays:-no}
3476 # OpenLDAP --enable-syncprov
3478 # Check whether --enable-syncprov or --disable-syncprov was given.
3479 if test "${enable_syncprov+set}" = set; then
3480 enableval="$enable_syncprov"
3483 for ol_val in no yes mod ; do
3484 if test "$enableval" = "$ol_val" ; then
3488 if test "$ol_arg" = "invalid" ; then
3489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3491 { (exit 1); exit 1; }; }
3493 ol_enable_syncprov="$ol_arg"
3496 ol_enable_syncprov=${ol_enable_overlays:-yes}
3498 # end --enable-syncprov
3500 # OpenLDAP --enable-translucent
3502 # Check whether --enable-translucent or --disable-translucent was given.
3503 if test "${enable_translucent+set}" = set; then
3504 enableval="$enable_translucent"
3507 for ol_val in no yes mod ; do
3508 if test "$enableval" = "$ol_val" ; then
3512 if test "$ol_arg" = "invalid" ; then
3513 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3515 { (exit 1); exit 1; }; }
3517 ol_enable_translucent="$ol_arg"
3520 ol_enable_translucent=${ol_enable_overlays:-no}
3522 # end --enable-translucent
3524 # OpenLDAP --enable-unique
3526 # Check whether --enable-unique or --disable-unique was given.
3527 if test "${enable_unique+set}" = set; then
3528 enableval="$enable_unique"
3531 for ol_val in no yes mod ; do
3532 if test "$enableval" = "$ol_val" ; then
3536 if test "$ol_arg" = "invalid" ; then
3537 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3538 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3539 { (exit 1); exit 1; }; }
3541 ol_enable_unique="$ol_arg"
3544 ol_enable_unique=${ol_enable_overlays:-no}
3546 # end --enable-unique
3548 # OpenLDAP --enable-valsort
3550 # Check whether --enable-valsort or --disable-valsort was given.
3551 if test "${enable_valsort+set}" = set; then
3552 enableval="$enable_valsort"
3555 for ol_val in no yes mod ; do
3556 if test "$enableval" = "$ol_val" ; then
3560 if test "$ol_arg" = "invalid" ; then
3561 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3562 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3563 { (exit 1); exit 1; }; }
3565 ol_enable_valsort="$ol_arg"
3568 ol_enable_valsort=${ol_enable_overlays:-no}
3570 # end --enable-valsort
3573 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3574 if test "${enable_xxslurpdoptions+set}" = set; then
3575 enableval="$enable_xxslurpdoptions"
3578 # OpenLDAP --enable-slurpd
3580 # Check whether --enable-slurpd or --disable-slurpd was given.
3581 if test "${enable_slurpd+set}" = set; then
3582 enableval="$enable_slurpd"
3585 for ol_val in auto yes no ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_slurpd="$ol_arg"
3598 ol_enable_slurpd=auto
3600 # end --enable-slurpd
3602 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3603 if test "${enable_xxliboptions+set}" = set; then
3604 enableval="$enable_xxliboptions"
3607 # Check whether --enable-static or --disable-static was given.
3608 if test "${enable_static+set}" = set; then
3609 enableval="$enable_static"
3610 p=${PACKAGE-default}
3612 yes) enable_static=yes ;;
3613 no) enable_static=no ;;
3616 # Look at the argument we got. We use all the common list separators.
3617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3618 for pkg in $enableval; do
3620 if test "X$pkg" = "X$p"; then
3631 # Check whether --enable-shared or --disable-shared was given.
3632 if test "${enable_shared+set}" = set; then
3633 enableval="$enable_shared"
3634 p=${PACKAGE-default}
3636 yes) enable_shared=yes ;;
3637 no) enable_shared=no ;;
3640 # Look at the argument we got. We use all the common list separators.
3641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642 for pkg in $enableval; do
3644 if test "X$pkg" = "X$p"; then
3658 if test $ol_enable_slapd = no ; then
3659 if test $ol_enable_slapi = yes ; then
3660 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3663 case "$ol_enable_backends" in yes | mod)
3664 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3667 for i in $Backends; do
3668 eval "ol_tmp=\$ol_enable_$i"
3669 if test $ol_tmp != no ; then
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672 eval "ol_enable_$i=no"
3675 if test $ol_enable_modules = yes ; then
3676 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3679 if test $ol_enable_wrappers = yes ; then
3680 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3683 if test $ol_enable_rlookups = yes ; then
3684 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3687 if test $ol_enable_dynacl = yes ; then
3688 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3691 if test $ol_enable_aci != no ; then
3692 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3695 if test $ol_enable_ldbm_api != auto ; then
3696 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3703 if test $ol_enable_slurpd = yes ; then
3704 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3705 echo "$as_me: error: slurpd requires slapd" >&2;}
3706 { (exit 1); exit 1; }; }
3708 if test $ol_enable_rewrite = yes ; then
3709 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3712 case "$ol_enable_overlays" in yes | mod)
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3716 for i in $Overlays; do
3717 eval "ol_tmp=\$ol_enable_$i"
3718 if test $ol_tmp != no ; then
3719 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721 eval "ol_enable_$i=no"
3725 # force settings to no
3730 ol_enable_modules=no
3731 ol_enable_rlookups=no
3734 ol_enable_wrappers=no
3736 ol_enable_ldbm_api=no
3737 ol_enable_ldbm_type=no
3741 ol_enable_rewrite=no
3743 elif test $ol_enable_ldbm = no ; then
3745 if test $ol_enable_ldbm_api != auto ; then
3746 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3747 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3750 if test $ol_enable_ldbm_type != auto ; then
3751 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3752 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3755 if test $ol_enable_modules != yes &&
3756 test $ol_enable_bdb = no &&
3757 test $ol_enable_dnssrv = no &&
3758 test $ol_enable_hdb = no &&
3759 test $ol_enable_ldap = no &&
3760 test $ol_enable_meta = no &&
3761 test $ol_enable_monitor = no &&
3762 test $ol_enable_null = no &&
3763 test $ol_enable_passwd = no &&
3764 test $ol_enable_perl = no &&
3765 test $ol_enable_relay = no &&
3766 test $ol_enable_shell = no &&
3767 test $ol_enable_sql = no ; then
3769 if test $ol_enable_slapd = yes ; then
3770 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3771 echo "$as_me: error: slapd requires a backend" >&2;}
3772 { (exit 1); exit 1; }; }
3774 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3775 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3780 ol_enable_ldbm_api=no
3781 ol_enable_ldbm_type=no
3783 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3784 ol_enable_ldbm_api=berkeley
3788 if test $ol_enable_ldbm_api = gdbm &&
3789 test $ol_enable_ldbm_type = btree ; then
3790 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3791 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3792 { (exit 1); exit 1; }; }
3794 if test $ol_enable_ldbm_api = mdbm &&
3795 test $ol_enable_ldbm_type = btree ; then
3796 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3797 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3798 { (exit 1); exit 1; }; }
3800 if test $ol_enable_ldbm_api = ndbm &&
3801 test $ol_enable_ldbm_type = btree ; then
3802 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3803 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3804 { (exit 1); exit 1; }; }
3807 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3808 if test $ol_enable_ldbm_api = auto ; then
3809 ol_enable_ldbm_api=berkeley
3810 elif test $ol_enable_ldbm_api != berkeley ; then
3811 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3812 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3813 { (exit 1); exit 1; }; }
3818 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3819 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3820 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3821 { (exit 1); exit 1; }; }
3824 if test $ol_enable_slurpd = yes ; then
3825 if test $ol_with_threads = no ; then
3826 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3827 echo "$as_me: error: slurpd requires threads" >&2;}
3828 { (exit 1); exit 1; }; }
3832 if test $ol_enable_lmpasswd = yes ; then
3833 if test $ol_with_tls = no ; then
3834 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3835 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3836 { (exit 1); exit 1; }; }
3840 if test $ol_enable_kbind = yes ; then
3841 if test $ol_with_kerberos = no ; then
3842 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3843 echo "$as_me: error: options require --with-kerberos" >&2;}
3844 { (exit 1); exit 1; }; }
3845 elif test $ol_with_kerberos = auto ; then
3846 ol_with_kerberos=yes
3849 elif test $ol_enable_kbind = no ; then
3850 if test $ol_with_kerberos = auto ; then
3852 elif test $ol_with_kerberos != no ; then
3853 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3854 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3859 if test $ol_enable_spasswd = yes ; then
3860 if test $ol_with_cyrus_sasl = no ; then
3861 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3862 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3863 { (exit 1); exit 1; }; }
3865 ol_with_cyrus_sasl=yes
3868 echo "$as_me:$LINENO: result: done" >&5
3869 echo "${ECHO_T}done" >&6
3913 BUILD_TRANSLUCENT=no
3917 SLAPD_STATIC_OVERLAYS=
3918 SLAPD_DYNAMIC_OVERLAYS=
3920 SLAPD_MODULES_LDFLAGS=
3921 SLAPD_MODULES_CPPFLAGS=
3923 SLAPD_STATIC_BACKENDS=back-ldif
3924 SLAPD_DYNAMIC_BACKENDS=
3950 cat >>confdefs.h <<\_ACEOF
3951 #define HAVE_MKVERSION 1
3959 *-*-aix*) if test -z "$CC" ; then
3960 case "$ol_with_threads" in
3961 auto | yes | posix) ol_aix_threads=yes ;;
3967 if test $ol_aix_threads = yes ; then
3968 if test -z "${CC}" ; then
3969 for ac_prog in cc_r xlc_r cc
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy $ac_prog; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_CC+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 if test -n "$CC"; then
3979 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_CC="$ac_prog"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$CC"; then
3999 echo "$as_me:$LINENO: result: $CC" >&5
4000 echo "${ECHO_T}$CC" >&6
4002 echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4006 test -n "$CC" && break
4010 if test "$CC" = cc ; then
4011 if test $ol_with_threads != auto ; then
4012 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4013 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4014 { (exit 1); exit 1; }; }
4016 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4017 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4023 case ${CC} in cc_r | xlc_r)
4024 ol_with_threads=posix
4025 ol_cv_pthread_create=yes
4030 if test -z "${CC}"; then
4031 for ac_prog in cc gcc
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 echo "$as_me:$LINENO: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_prog_CC+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if test -n "$CC"; then
4041 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050 ac_cv_prog_CC="$ac_prog"
4051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 if test -n "$CC"; then
4061 echo "$as_me:$LINENO: result: $CC" >&5
4062 echo "${ECHO_T}$CC" >&6
4064 echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6
4068 test -n "$CC" && break
4070 test -n "$CC" || CC="missing"
4073 if test "${CC}" = "missing" ; then
4074 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4075 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4076 { (exit 1); exit 1; }; }
4080 if test -z "${AR}"; then
4081 for ac_prog in ar gar
4083 # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AR+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$AR"; then
4091 ac_cv_prog_AR="$AR" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_AR="$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 if test -n "$AR"; then
4111 echo "$as_me:$LINENO: result: $AR" >&5
4112 echo "${ECHO_T}$AR" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 test -n "$AR" && break
4120 test -n "$AR" || AR="missing"
4123 if test "${AR}" = "missing" ; then
4124 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4125 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4126 { (exit 1); exit 1; }; }
4134 # Check whether --enable-fast-install or --disable-fast-install was given.
4135 if test "${enable_fast_install+set}" = set; then
4136 enableval="$enable_fast_install"
4137 p=${PACKAGE-default}
4139 yes) enable_fast_install=yes ;;
4140 no) enable_fast_install=no ;;
4142 enable_fast_install=no
4143 # Look at the argument we got. We use all the common list separators.
4144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4145 for pkg in $enableval; do
4147 if test "X$pkg" = "X$p"; then
4148 enable_fast_install=yes
4155 enable_fast_install=yes
4158 DEPDIR="${am__leading_dot}deps"
4160 ac_config_commands="$ac_config_commands depfiles"
4163 am_make=${MAKE-make}
4164 cat > confinc << 'END'
4169 # If we don't find an include directive, just comment out the code.
4170 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4171 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4175 # First try GNU make style include.
4176 echo "include confinc" > confmf
4177 # We grep out `Entering directory' and `Leaving directory'
4178 # messages which can occur if `w' ends up in MAKEFLAGS.
4179 # In particular we don't look at `^make:' because GNU make might
4180 # be invoked under some other name (usually "gmake"), in which
4181 # case it prints its new name instead of `make'.
4182 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4187 # Now try BSD make style include.
4188 if test "$am__include" = "#"; then
4189 echo '.include "confinc"' > confmf
4190 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4191 am__include=.include
4198 echo "$as_me:$LINENO: result: $_am_result" >&5
4199 echo "${ECHO_T}$_am_result" >&6
4200 rm -f confinc confmf
4202 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4203 if test "${enable_dependency_tracking+set}" = set; then
4204 enableval="$enable_dependency_tracking"
4207 if test "x$enable_dependency_tracking" != xno; then
4208 am_depcomp="$ac_aux_dir/depcomp"
4213 if test "x$enable_dependency_tracking" != xno; then
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4231 echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4233 if test "${ac_cv_prog_CC+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 if test -n "$CC"; then
4237 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 if test -n "$CC"; then
4257 echo "$as_me:$LINENO: result: $CC" >&5
4258 echo "${ECHO_T}$CC" >&6
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4265 if test -z "$ac_cv_prog_CC"; then
4267 # Extract the first word of "gcc", so it can be a program name with args.
4268 set dummy gcc; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$ac_ct_CC"; then
4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_ac_ct_CC="gcc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294 if test -n "$ac_ct_CC"; then
4295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4296 echo "${ECHO_T}$ac_ct_CC" >&6
4298 echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6
4307 if test -z "$CC"; then
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}cc; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}cc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 if test -n "$CC"; then
4337 echo "$as_me:$LINENO: result: $CC" >&5
4338 echo "${ECHO_T}$CC" >&6
4340 echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4345 if test -z "$ac_cv_prog_CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$ac_ct_CC"; then
4355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_ac_ct_CC="cc"
4365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4374 if test -n "$ac_ct_CC"; then
4375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4376 echo "${ECHO_T}$ac_ct_CC" >&6
4378 echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4388 if test -z "$CC"; then
4389 # Extract the first word of "cc", so it can be a program name with args.
4390 set dummy cc; ac_word=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$CC"; then
4397 ac_cv_prog_CC="$CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4408 ac_prog_rejected=yes
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 if test $ac_prog_rejected = yes; then
4419 # We found a bogon in the path, so make sure we never use it.
4420 set dummy $ac_cv_prog_CC
4422 if test $# != 0; then
4423 # We chose a different compiler from the bogus one.
4424 # However, it has the same basename, so the bogon will be chosen
4425 # first if we set CC to just the basename; use the full file name.
4427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4433 if test -n "$CC"; then
4434 echo "$as_me:$LINENO: result: $CC" >&5
4435 echo "${ECHO_T}$CC" >&6
4437 echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6
4442 if test -z "$CC"; then
4443 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$CC"; then
4454 ac_cv_prog_CC="$CC" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 if test -n "$CC"; then
4474 echo "$as_me:$LINENO: result: $CC" >&5
4475 echo "${ECHO_T}$CC" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$CC" && break
4484 if test -z "$CC"; then
4488 # Extract the first word of "$ac_prog", so it can be a program name with args.
4489 set dummy $ac_prog; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$ac_ct_CC"; then
4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_ac_ct_CC="$ac_prog"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4517 echo "${ECHO_T}$ac_ct_CC" >&6
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4523 test -n "$ac_ct_CC" && break
4532 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: no acceptable C compiler found in \$PATH
4535 See \`config.log' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4538 # Provide some information about the compiler.
4539 echo "$as_me:$LINENO:" \
4540 "checking for C compiler version" >&5
4541 ac_compiler=`set X $ac_compile; echo $2`
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4543 (eval $ac_compiler --version </dev/null >&5) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4548 (eval $ac_compiler -v </dev/null >&5) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4553 (eval $ac_compiler -V </dev/null >&5) 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4573 ac_clean_files_save=$ac_clean_files
4574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4575 # Try to create an executable without -o first, disregard a.out.
4576 # It will help us diagnose broken compilers, and finding out an intuition
4578 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4582 (eval $ac_link_default) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; then
4586 # Find the output, starting from the most likely. This scheme is
4587 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4590 # Be careful to initialize this variable, since it used to be cached.
4591 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4593 # b.out is created by i960 compilers.
4594 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4596 test -f "$ac_file" || continue
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4601 # This is the source file.
4604 # We found the default executable, but exeext='' is most
4608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4609 # FIXME: I believe we export ac_cv_exeext for Libtool,
4610 # but it would be cool to find out if it's true. Does anybody
4611 # maintain Libtool? --akim.
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4623 See \`config.log' for more details." >&5
4624 echo "$as_me: error: C compiler cannot create executables
4625 See \`config.log' for more details." >&2;}
4626 { (exit 77); exit 77; }; }
4629 ac_exeext=$ac_cv_exeext
4630 echo "$as_me:$LINENO: result: $ac_file" >&5
4631 echo "${ECHO_T}$ac_file" >&6
4633 # Check the compiler produces executables we can run. If not, either
4634 # the compiler is broken, or we cross compile.
4635 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4636 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4637 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4638 # If not cross compiling, check that we can run a simple program.
4639 if test "$cross_compiling" != yes; then
4640 if { ac_try='./$ac_file'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4648 if test "$cross_compiling" = maybe; then
4651 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details." >&5
4654 echo "$as_me: error: cannot run C compiled programs.
4655 If you meant to cross compile, use \`--host'.
4656 See \`config.log' for more details." >&2;}
4657 { (exit 1); exit 1; }; }
4661 echo "$as_me:$LINENO: result: yes" >&5
4662 echo "${ECHO_T}yes" >&6
4664 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4665 ac_clean_files=$ac_clean_files_save
4666 # Check the compiler produces executables we can run. If not, either
4667 # the compiler is broken, or we cross compile.
4668 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4669 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4670 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4671 echo "${ECHO_T}$cross_compiling" >&6
4673 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4674 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676 (eval $ac_link) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; then
4680 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4681 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4682 # work properly (i.e., refer to `conftest.exe'), while it won't with
4684 for ac_file in conftest.exe conftest conftest.*; do
4685 test -f "$ac_file" || continue
4687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4688 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4695 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4698 See \`config.log' for more details." >&2;}
4699 { (exit 1); exit 1; }; }
4702 rm -f conftest$ac_cv_exeext
4703 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4704 echo "${ECHO_T}$ac_cv_exeext" >&6
4706 rm -f conftest.$ac_ext
4707 EXEEXT=$ac_cv_exeext
4709 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4711 if test "${ac_cv_objext+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4729 rm -f conftest.o conftest.obj
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; then
4735 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4747 See \`config.log' for more details." >&5
4748 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4749 See \`config.log' for more details." >&2;}
4750 { (exit 1); exit 1; }; }
4753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4756 echo "${ECHO_T}$ac_cv_objext" >&6
4757 OBJEXT=$ac_cv_objext
4759 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4815 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4816 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4817 GCC=`test $ac_compiler_gnu = yes && echo yes`
4818 ac_test_CFLAGS=${CFLAGS+set}
4819 ac_save_CFLAGS=$CFLAGS
4821 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4822 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4823 if test "${ac_cv_prog_cc_g+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4873 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4874 if test "$ac_test_CFLAGS" = set; then
4875 CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877 if test "$GCC" = yes; then
4883 if test "$GCC" = yes; then
4889 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4890 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4891 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 ac_cv_prog_cc_stdc=no
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 #include <sys/stat.h>
4906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4907 struct buf { int x; };
4908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4909 static char *e (p, i)
4915 static char *f (char * (*g) (char **, int), char **p, ...)
4920 s = g (p, va_arg (v,int));
4925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4926 function prototypes and stuff, but not '\xHH' hex character constants.
4927 These don't provoke an error unfortunately, instead are silently treated
4928 as 'x'. The following induces an error, until -std1 is added to get
4929 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4930 array size at least. It's necessary to write '\x00'==0 to get something
4931 that's true only with -std1. */
4932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4934 int test (int i, double x);
4935 struct s1 {int (*f) (int a);};
4936 struct s2 {int (*f) (double a);};
4937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4948 # Don't try gcc -ansi; that turns off useful extensions and
4949 # breaks some systems' header files.
4950 # AIX -qlanglvl=ansi
4951 # Ultrix and OSF/1 -std1
4952 # HP-UX 10.20 and later -Ae
4953 # HP-UX older versions -Aa -D_HPUX_SOURCE
4954 # SVR4 -Xc -D__EXTENSIONS__
4955 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4957 CC="$ac_save_CC $ac_arg"
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_prog_cc_stdc=$ac_arg
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f conftest.err conftest.$ac_objext
4989 rm -f conftest.$ac_ext conftest.$ac_objext
4994 case "x$ac_cv_prog_cc_stdc" in
4996 echo "$as_me:$LINENO: result: none needed" >&5
4997 echo "${ECHO_T}none needed" >&6 ;;
4999 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5000 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5001 CC="$CC $ac_cv_prog_cc_stdc" ;;
5004 # Some people use a C++ compiler to compile C. Since we use `exit',
5005 # in C++ we need to declare it. In case someone uses the same compiler
5006 # for both compiling C and C++ we need to have the C++ compiler decide
5007 # the declaration of exit, since it's the most demanding environment.
5008 cat >conftest.$ac_ext <<_ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 for ac_declaration in \
5037 'extern "C" void std::exit (int) throw (); using std::exit;' \
5038 'extern "C" void std::exit (int); using std::exit;' \
5039 'extern "C" void exit (int) throw ();' \
5040 'extern "C" void exit (int);' \
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5063 grep -v '^ *+' conftest.er1 >conftest.err
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try='test -z "$ac_c_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 if test -n "$ac_declaration"; then
5136 echo '#ifdef __cplusplus' >>confdefs.h
5137 echo $ac_declaration >>confdefs.h
5138 echo '#endif' >>confdefs.h
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 depcc="$CC" am_compiler_list=
5155 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5156 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5157 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161 # We make a subdir and do the tests there. Otherwise we can end up
5162 # making bogus files that we don't know about and never remove. For
5163 # instance it was reported that on HP-UX the gcc test will end up
5164 # making a dummy file named `D' -- because `-MD' means `put the output
5167 # Copy depcomp to subdir because otherwise we won't find it if we're
5168 # using a relative directory.
5169 cp "$am_depcomp" conftest.dir
5171 # We will build objects and dependencies in a subdirectory because
5172 # it helps to detect inapplicable dependency modes. For instance
5173 # both Tru64's cc and ICC support -MD to output dependencies as a
5174 # side effect of compilation, but ICC will put the dependencies in
5175 # the current directory while Tru64 will put them in the object
5179 am_cv_CC_dependencies_compiler_type=none
5180 if test "$am_compiler_list" = ""; then
5181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183 for depmode in $am_compiler_list; do
5184 # Setup a source with many dependencies, because some compilers
5185 # like to wrap large dependency lists on column 80 (with \), and
5186 # we should not choose a depcomp mode which is confused by this.
5188 # We need to recreate these files for each test, as the compiler may
5189 # overwrite some of them when testing with obscure command lines.
5190 # This happens at least with the AIX C compiler.
5192 for i in 1 2 3 4 5 6; do
5193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5195 # Solaris 8's {/usr,}/bin/sh.
5196 touch sub/conftst$i.h
5198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5202 # after this tag, mechanisms are not by side-effect, so they'll
5203 # only be used when explicitly requested
5204 if test "x$enable_dependency_tracking" = xyes; then
5212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5213 # mode. It turns out that the SunPro C++ compiler does not properly
5214 # handle `-M -o', and we need to detect this.
5215 if depmode=$depmode \
5216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5219 >/dev/null 2>conftest.err &&
5220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5223 # icc doesn't choke on unknown options, it will just issue warnings
5224 # or remarks (even with -Werror). So we grep stderr for any message
5225 # that says an option was ignored or not supported.
5226 # When given -MP, icc 7.0 and 7.1 complain thusly:
5227 # icc: Command line warning: ignoring option '-M'; no argument required
5228 # The diagnosis changed in icc 8.0:
5229 # icc: Command line remark: option '-MP' not supported
5230 if (grep 'ignoring option' conftest.err ||
5231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5232 am_cv_CC_dependencies_compiler_type=$depmode
5241 am_cv_CC_dependencies_compiler_type=none
5245 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5246 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5252 test "x$enable_dependency_tracking" != xno \
5253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5255 am__fastdepCC_FALSE='#'
5257 am__fastdepCC_TRUE='#'
5258 am__fastdepCC_FALSE=
5262 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5263 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5264 if test "${lt_cv_path_SED+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 # Loop through the user's path and test for sed and gsed.
5268 # Then use that list of sed's as ones to test for truncation.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for lt_ac_prog in sed gsed; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5277 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5284 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5285 # along with /bin/sed that truncates output.
5286 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5287 test ! -f $lt_ac_sed && continue
5288 cat /dev/null > conftest.in
5290 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5291 # Check for GNU sed and select it if it is found.
5292 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5293 lt_cv_path_SED=$lt_ac_sed
5297 cat conftest.in conftest.in >conftest.tmp
5298 mv conftest.tmp conftest.in
5299 cp conftest.in conftest.nl
5301 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5302 cmp -s conftest.out conftest.nl || break
5303 # 10000 chars as input seems more than enough
5304 test $lt_ac_count -gt 10 && break
5305 lt_ac_count=`expr $lt_ac_count + 1`
5306 if test $lt_ac_count -gt $lt_ac_max; then
5307 lt_ac_max=$lt_ac_count
5308 lt_cv_path_SED=$lt_ac_sed
5316 echo "$as_me:$LINENO: result: $SED" >&5
5317 echo "${ECHO_T}$SED" >&6
5319 echo "$as_me:$LINENO: checking for egrep" >&5
5320 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5321 if test "${ac_cv_prog_egrep+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5325 then ac_cv_prog_egrep='grep -E'
5326 else ac_cv_prog_egrep='egrep'
5329 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5330 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5331 EGREP=$ac_cv_prog_egrep
5335 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5336 if test "${with_gnu_ld+set}" = set; then
5337 withval="$with_gnu_ld"
5338 test "$withval" = no || with_gnu_ld=yes
5343 if test "$GCC" = yes; then
5344 # Check if gcc -print-prog-name=ld gives a path.
5345 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5346 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5349 # gcc leaves a trailing carriage return which upsets mingw
5350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5355 # Accept absolute paths.
5357 re_direlt='/[^/][^/]*/\.\./'
5358 # Canonicalize the pathname of ld
5359 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5360 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5361 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5363 test -z "$LD" && LD="$ac_prog"
5366 # If it fails, then pretend we aren't using GCC.
5370 # If it is relative, then search for the first ld in PATH.
5374 elif test "$with_gnu_ld" = yes; then
5375 echo "$as_me:$LINENO: checking for GNU ld" >&5
5376 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5378 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5379 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5381 if test "${lt_cv_path_LD+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 if test -z "$LD"; then
5385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386 for ac_dir in $PATH; do
5388 test -z "$ac_dir" && ac_dir=.
5389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5390 lt_cv_path_LD="$ac_dir/$ac_prog"
5391 # Check to see if the program is GNU ld. I'd rather use --version,
5392 # but apparently some variants of GNU ld only accept -v.
5393 # Break only if it was the GNU/non-GNU ld that we prefer.
5394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5395 *GNU* | *'with BFD'*)
5396 test "$with_gnu_ld" != no && break
5399 test "$with_gnu_ld" != yes && break
5406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5411 if test -n "$LD"; then
5412 echo "$as_me:$LINENO: result: $LD" >&5
5413 echo "${ECHO_T}$LD" >&6
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5418 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5419 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5420 { (exit 1); exit 1; }; }
5421 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5422 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5423 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5427 case `$LD -v 2>&1 </dev/null` in
5428 *GNU* | *'with BFD'*)
5429 lt_cv_prog_gnu_ld=yes
5432 lt_cv_prog_gnu_ld=no
5436 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5437 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5438 with_gnu_ld=$lt_cv_prog_gnu_ld
5441 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5443 if test "${lt_cv_ld_reload_flag+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 lt_cv_ld_reload_flag='-r'
5448 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5450 reload_flag=$lt_cv_ld_reload_flag
5451 case $reload_flag in
5453 *) reload_flag=" $reload_flag" ;;
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458 if test "$GCC" = yes; then
5459 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5466 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5467 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5468 if test "${lt_cv_path_NM+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 if test -n "$NM"; then
5472 # Let the user override the test.
5475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5476 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5478 test -z "$ac_dir" && ac_dir=.
5479 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5481 # Check to see if the nm accepts a BSD-compat flag.
5482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5483 # nm: unknown option "B" ignored
5484 # Tru64's nm complains that /dev/null is an invalid object file
5485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5486 */dev/null* | *'Invalid file or object type'*)
5487 lt_cv_path_NM="$tmp_nm -B"
5491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5493 lt_cv_path_NM="$tmp_nm -p"
5497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5498 continue # so that we can try to find one that supports BSD flags
5505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5508 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5509 echo "${ECHO_T}$lt_cv_path_NM" >&6
5512 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5513 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5515 if test "$LN_S" = "ln -s"; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5519 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5520 echo "${ECHO_T}no, using $LN_S" >&6
5523 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5524 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5525 if test "${lt_cv_deplibs_check_method+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 lt_cv_file_magic_cmd='$MAGIC_CMD'
5529 lt_cv_file_magic_test_file=
5530 lt_cv_deplibs_check_method='unknown'
5531 # Need to set the preceding variable on all platforms that support
5532 # interlibrary dependencies.
5533 # 'none' -- dependencies not supported.
5534 # `unknown' -- same as none, but documents that we really don't know.
5535 # 'pass_all' -- all dependencies passed with no checks.
5536 # 'test_compile' -- check by making test program.
5537 # 'file_magic [[regex]]' -- check by looking for files in library path
5538 # which responds to the $file_magic_cmd with a given extended regex.
5539 # If you have `file' or equivalent on your system and you're not sure
5540 # whether `pass_all' will *always* work, you probably want this one.
5544 lt_cv_deplibs_check_method=pass_all
5548 lt_cv_deplibs_check_method=pass_all
5552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5553 lt_cv_file_magic_cmd='/usr/bin/file -L'
5554 lt_cv_file_magic_test_file=/shlib/libc.so
5558 # func_win32_libid is a shell function defined in ltmain.sh
5559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560 lt_cv_file_magic_cmd='func_win32_libid'
5564 # Base MSYS/MinGW do not provide the 'file' command needed by
5565 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5570 darwin* | rhapsody*)
5571 lt_cv_deplibs_check_method=pass_all
5574 freebsd* | kfreebsd*-gnu | dragonfly*)
5575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5578 # Not sure whether the presence of OpenBSD here was a mistake.
5579 # Let's accept both of them until this is cleared up.
5580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5581 lt_cv_file_magic_cmd=/usr/bin/file
5582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_deplibs_check_method=pass_all
5594 hpux10.20* | hpux11*)
5595 lt_cv_file_magic_cmd=/usr/bin/file
5598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5602 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]'
5603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5607 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5612 irix5* | irix6* | nonstopux*)
5614 *-32|*"-32 ") libmagic=32-bit;;
5615 *-n32|*"-n32 ") libmagic=N32;;
5616 *-64|*"-64 ") libmagic=64-bit;;
5617 *) libmagic=never-match;;
5619 lt_cv_deplibs_check_method=pass_all
5622 # This must be Linux ELF.
5624 lt_cv_deplibs_check_method=pass_all
5628 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5637 lt_cv_file_magic_cmd=/usr/bin/file
5638 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5642 lt_cv_deplibs_check_method=unknown
5646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5653 osf3* | osf4* | osf5*)
5654 lt_cv_deplibs_check_method=pass_all
5658 lt_cv_deplibs_check_method=pass_all
5662 lt_cv_deplibs_check_method=pass_all
5665 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5666 case $host_vendor in
5668 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]'
5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5672 lt_cv_deplibs_check_method=pass_all
5675 lt_cv_file_magic_cmd='/bin/file'
5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5679 lt_cv_file_magic_cmd='/bin/file'
5680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5681 lt_cv_file_magic_test_file=/lib/libc.so
5684 lt_cv_deplibs_check_method=pass_all
5689 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5690 lt_cv_deplibs_check_method=pass_all
5695 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5696 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5704 # If no C compiler was specified, use CC.
5707 # Allow CC to be a program name with arguments.
5711 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5712 if test "${enable_libtool_lock+set}" = set; then
5713 enableval="$enable_libtool_lock"
5716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5718 # Some flags need to be propagated to the compiler or linker for good
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; then
5729 case `/usr/bin/file conftest.$ac_objext` in
5741 # Find out which ABI we are using.
5742 echo '#line 5742 "configure"' > conftest.$ac_ext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; then
5748 if test "$lt_cv_prog_gnu_ld" = yes; then
5749 case `/usr/bin/file conftest.$ac_objext` in
5751 LD="${LD-ld} -melf32bsmip"
5754 LD="${LD-ld} -melf32bmipn32"
5757 LD="${LD-ld} -melf64bmip"
5761 case `/usr/bin/file conftest.$ac_objext` in
5777 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5778 # Find out which ABI we are using.
5779 echo 'int i;' > conftest.$ac_ext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; then
5785 case `/usr/bin/file conftest.o` in
5789 LD="${LD-ld} -m elf_i386"
5791 ppc64-*linux*|powerpc64-*linux*)
5792 LD="${LD-ld} -m elf32ppclinux"
5795 LD="${LD-ld} -m elf_s390"
5798 LD="${LD-ld} -m elf32_sparc"
5805 LD="${LD-ld} -m elf_x86_64"
5807 ppc*-*linux*|powerpc*-*linux*)
5808 LD="${LD-ld} -m elf64ppc"
5811 LD="${LD-ld} -m elf64_s390"
5814 LD="${LD-ld} -m elf64_sparc"
5824 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5825 SAVE_CFLAGS="$CFLAGS"
5826 CFLAGS="$CFLAGS -belf"
5827 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5828 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5829 if test "${lt_cv_cc_needs_belf+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 lt_cv_cc_needs_belf=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 lt_cv_cc_needs_belf=no
5882 rm -f conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
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
5891 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5892 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5895 CFLAGS="$SAVE_CFLAGS"
5898 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 if test -n "$DLLTOOL"; then
5908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 DLLTOOL=$ac_cv_prog_DLLTOOL
5927 if test -n "$DLLTOOL"; then
5928 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5929 echo "${ECHO_T}$DLLTOOL" >&6
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5936 if test -z "$ac_cv_prog_DLLTOOL"; then
5937 ac_ct_DLLTOOL=$DLLTOOL
5938 # Extract the first word of "dlltool", so it can be a program name with args.
5939 set dummy dlltool; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 if test -n "$ac_ct_DLLTOOL"; then
5946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5966 if test -n "$ac_ct_DLLTOOL"; then
5967 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5968 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5970 echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5974 DLLTOOL=$ac_ct_DLLTOOL
5976 DLLTOOL="$ac_cv_prog_DLLTOOL"
5979 if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}as; ac_word=$2
5982 echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984 if test "${ac_cv_prog_AS+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 if test -n "$AS"; then
5988 ac_cv_prog_AS="$AS" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_AS="${ac_tool_prefix}as"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 if test -n "$AS"; then
6008 echo "$as_me:$LINENO: result: $AS" >&5
6009 echo "${ECHO_T}$AS" >&6
6011 echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6
6016 if test -z "$ac_cv_prog_AS"; then
6018 # Extract the first word of "as", so it can be a program name with args.
6019 set dummy as; ac_word=$2
6020 echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6022 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$ac_ct_AS"; then
6026 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_ac_ct_AS="as"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6046 if test -n "$ac_ct_AS"; then
6047 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6048 echo "${ECHO_T}$ac_ct_AS" >&6
6050 echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 if test -n "$OBJDUMP"; then
6068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 OBJDUMP=$ac_cv_prog_OBJDUMP
6087 if test -n "$OBJDUMP"; then
6088 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6089 echo "${ECHO_T}$OBJDUMP" >&6
6091 echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6096 if test -z "$ac_cv_prog_OBJDUMP"; then
6097 ac_ct_OBJDUMP=$OBJDUMP
6098 # Extract the first word of "objdump", so it can be a program name with args.
6099 set dummy objdump; ac_word=$2
6100 echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6102 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 if test -n "$ac_ct_OBJDUMP"; then
6106 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6125 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6126 if test -n "$ac_ct_OBJDUMP"; then
6127 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6128 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6134 OBJDUMP=$ac_ct_OBJDUMP
6136 OBJDUMP="$ac_cv_prog_OBJDUMP"
6143 need_locks="$enable_libtool_lock"
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6152 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6153 # On Suns, sometimes $CPP names a directory.
6154 if test -n "$CPP" && test -d "$CPP"; then
6157 if test -z "$CPP"; then
6158 if test "${ac_cv_prog_CPP+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 # Double quotes because CPP needs to be expanded
6162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6165 for ac_c_preproc_warn_flag in '' yes
6167 # Use a header file that comes with gcc, so configuring glibc
6168 # with a fresh cross-compiler works.
6169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170 # <limits.h> exists even on freestanding compilers.
6171 # On the NeXT, cc -E runs the code through the compiler's parser,
6172 # not just through cpp. "Syntax error" is here to catch this case.
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 # include <limits.h>
6182 # include <assert.h>
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null; then
6194 if test -s conftest.err; then
6195 ac_cpp_err=$ac_c_preproc_warn_flag
6196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203 if test -z "$ac_cpp_err"; then
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 # Broken: fails on valid input.
6212 rm -f conftest.err conftest.$ac_ext
6214 # OK, works on sane cases. Now check whether non-existent headers
6215 # can be detected and how.
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <ac_nonexistent.h>
6224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6227 grep -v '^ *+' conftest.er1 >conftest.err
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } >/dev/null; then
6232 if test -s conftest.err; then
6233 ac_cpp_err=$ac_c_preproc_warn_flag
6234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241 if test -z "$ac_cpp_err"; then
6242 # Broken: success on invalid input.
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 # Passes both tests.
6252 rm -f conftest.err conftest.$ac_ext
6255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6256 rm -f conftest.err conftest.$ac_ext
6257 if $ac_preproc_ok; then
6269 echo "$as_me:$LINENO: result: $CPP" >&5
6270 echo "${ECHO_T}$CPP" >&6
6272 for ac_c_preproc_warn_flag in '' yes
6274 # Use a header file that comes with gcc, so configuring glibc
6275 # with a fresh cross-compiler works.
6276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 # <limits.h> exists even on freestanding compilers.
6278 # On the NeXT, cc -E runs the code through the compiler's parser,
6279 # not just through cpp. "Syntax error" is here to catch this case.
6280 cat >conftest.$ac_ext <<_ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6287 # include <limits.h>
6289 # include <assert.h>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310 if test -z "$ac_cpp_err"; then
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 # Broken: fails on valid input.
6319 rm -f conftest.err conftest.$ac_ext
6321 # OK, works on sane cases. Now check whether non-existent headers
6322 # can be detected and how.
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <ac_nonexistent.h>
6331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null; then
6339 if test -s conftest.err; then
6340 ac_cpp_err=$ac_c_preproc_warn_flag
6341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6348 if test -z "$ac_cpp_err"; then
6349 # Broken: success on invalid input.
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 # Passes both tests.
6359 rm -f conftest.err conftest.$ac_ext
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.$ac_ext
6364 if $ac_preproc_ok; then
6367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371 { (exit 1); exit 1; }; }
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6383 if test "${ac_cv_header_stdc+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_cv_header_stdc=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_cv_header_stdc=no
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 if test $ac_cv_header_stdc = yes; then
6437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448 $EGREP "memchr" >/dev/null 2>&1; then
6451 ac_cv_header_stdc=no
6457 if test $ac_cv_header_stdc = yes; then
6458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP "free" >/dev/null 2>&1; then
6472 ac_cv_header_stdc=no
6478 if test $ac_cv_header_stdc = yes; then
6479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6480 if test "$cross_compiling" = yes; then
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6490 #if ((' ' & 0x0FF) == 0x020)
6491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6494 # define ISLOWER(c) \
6495 (('a' <= (c) && (c) <= 'i') \
6496 || ('j' <= (c) && (c) <= 'r') \
6497 || ('s' <= (c) && (c) <= 'z'))
6498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6506 for (i = 0; i < 256; i++)
6507 if (XOR (islower (i), ISLOWER (i))
6508 || toupper (i) != TOUPPER (i))
6513 rm -f conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515 (eval $ac_link) 2>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6526 echo "$as_me: program exited with status $ac_status" >&5
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6531 ac_cv_header_stdc=no
6533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6537 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6538 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6539 if test $ac_cv_header_stdc = yes; then
6541 cat >>confdefs.h <<\_ACEOF
6542 #define STDC_HEADERS 1
6547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6558 inttypes.h stdint.h unistd.h
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6574 #include <$ac_header>
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1 >conftest.err
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 eval "$as_ac_Header=yes"
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 eval "$as_ac_Header=no"
6605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610 cat >>confdefs.h <<_ACEOF
6611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6620 for ac_header in dlfcn.h
6622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6624 echo "$as_me:$LINENO: checking for $ac_header" >&5
6625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6632 # Is the header compilable?
6633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 #include <$ac_header>
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6648 grep -v '^ *+' conftest.er1 >conftest.err
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_c_werror_flag"
6654 || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_header_compiler=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_header_compiler=no
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6675 echo "${ECHO_T}$ac_header_compiler" >&6
6677 # Is the header present?
6678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <$ac_header>
6688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev/null; then
6696 if test -s conftest.err; then
6697 ac_cpp_err=$ac_c_preproc_warn_flag
6698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6705 if test -z "$ac_cpp_err"; then
6706 ac_header_preproc=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ac_header_preproc=no
6713 rm -f conftest.err conftest.$ac_ext
6714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6715 echo "${ECHO_T}$ac_header_preproc" >&6
6717 # So? What about this header?
6718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6724 ac_header_preproc=yes
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6741 ## --------------------------------------------- ##
6742 ## Report this to <http://www.openldap.org/its/> ##
6743 ## --------------------------------------------- ##
6746 sed "s/^/$as_me: WARNING: /" >&2
6749 echo "$as_me:$LINENO: checking for $ac_header" >&5
6750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 eval "$as_ac_Header=\$ac_header_preproc"
6756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6761 cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6772 # find the maximum length of command line arguments
6773 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 # On DJGPP, this test can blow up pretty badly due to problems in libc
6784 # (any single argument exceeding 2000 bytes causes a buffer overrun
6785 # during glob expansion). Even if it were fixed, the result of this
6786 # check would be larger than it should be.
6787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6791 # Under GNU Hurd, this test is not required because there is
6792 # no limit to the length of command line arguments.
6793 # Libtool will interpret -1 as no limit whatsoever
6794 lt_cv_sys_max_cmd_len=-1;
6798 # On Win9x/ME, this test blows up -- it succeeds, but takes
6799 # about 5 minutes as the teststring grows exponentially.
6800 # Worse, since 9x/ME are not pre-emptively multitasking,
6801 # you end up with a "frozen" computer, even though with patience
6802 # the test eventually succeeds (with a max line length of 256k).
6803 # Instead, let's just punt: use the minimum linelength reported by
6804 # all of the supported platforms: 8192 (on NT/2K/XP).
6805 lt_cv_sys_max_cmd_len=8192;
6809 # On AmigaOS with pdksh, this test takes hours, literally.
6810 # So we just punt and use a minimum line length of 8192.
6811 lt_cv_sys_max_cmd_len=8192;
6814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6815 # This has been around since 386BSD, at least. Likely further.
6816 if test -x /sbin/sysctl; then
6817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6818 elif test -x /usr/sbin/sysctl; then
6819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6823 # And add a safety zone
6824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6828 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6829 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6830 # nice to cause kernel panics so lets avoid the loop below.
6831 # First set a reasonable default.
6832 lt_cv_sys_max_cmd_len=16384
6834 if test -x /sbin/sysconfig; then
6835 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6836 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6841 # If test is not a shell built-in, we'll probably end up computing a
6842 # maximum length that is only half of the actual maximum length, but
6844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6845 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846 = "XX$teststring") >/dev/null 2>&1 &&
6847 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848 lt_cv_sys_max_cmd_len=$new_result &&
6849 test $i != 17 # 1/2 MB should be enough
6852 teststring=$teststring$teststring
6855 # Add a significant safety factor because C++ compilers can tack on massive
6856 # amounts of additional arguments before passing them to the linker.
6857 # It appears as though 1/2 is a usable value.
6858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6864 if test -n $lt_cv_sys_max_cmd_len ; then
6865 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6868 echo "$as_me:$LINENO: result: none" >&5
6869 echo "${ECHO_T}none" >&6
6875 # Check for command to grab the raw symbol name followed by C symbol from nm.
6876 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 # These are sane defaults that work on at least a few old systems.
6883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6885 # Character class describing NM global symbol codes.
6886 symcode='[BCDEGRST]'
6888 # Regexp to match symbols that can be accessed directly from C.
6889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6891 # Transform an extracted symbol line into a proper C declaration
6892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6894 # Transform an extracted symbol line into symbol name and symbol address
6895 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'"
6897 # Define system-specific variables.
6902 cygwin* | mingw* | pw32*)
6903 symcode='[ABCDGISTW]'
6905 hpux*) # Its linker distinguishes data from code symbols
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6910 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'"
6913 if test "$host_cpu" = ia64; then
6914 symcode='[ABCDGIRSTW]'
6915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6916 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6920 symcode='[BCDEGRST]'
6923 symcode='[BCDEGQRST]'
6933 # Handle CRLF in mingw tool chain
6937 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6941 # If we're using GNU nm, then use its standard symbol codes.
6942 case `$NM -V 2>&1` in
6943 *GNU* | *'with BFD'*)
6944 symcode='[ABCDGIRSTW]' ;;
6947 # Try without a prefix undercore, then with it.
6948 for ac_symprfx in "" "_"; do
6950 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6951 symxfrm="\\1 $ac_symprfx\\2 \\2"
6953 # Write the raw and C identifiers.
6954 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6956 # Check to see that the pipe works correctly.
6960 cat > conftest.$ac_ext <<EOF
6965 void nm_test_func(){}
6969 int main(){nm_test_var='a';nm_test_func();return(0);}
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; then
6977 # Now try to grab the symbols.
6979 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6980 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && test -s "$nlist"; then
6984 # Try sorting and uniquifying the output.
6985 if sort "$nlist" | uniq > "$nlist"T; then
6986 mv -f "$nlist"T "$nlist"
6991 # Make sure that we snagged all the symbols we need.
6992 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6993 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6994 cat <<EOF > conftest.$ac_ext
7000 # Now generate the symbol file.
7001 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7003 cat <<EOF >> conftest.$ac_ext
7004 #if defined (__STDC__) && __STDC__
7005 # define lt_ptr_t void *
7007 # define lt_ptr_t char *
7011 /* The mapping between symbol names and symbols. */
7016 lt_preloaded_symbols[] =
7019 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7020 cat <<\EOF >> conftest.$ac_ext
7028 # Now try linking the two files.
7029 mv conftest.$ac_objext conftstm.$ac_objext
7030 lt_save_LIBS="$LIBS"
7031 lt_save_CFLAGS="$CFLAGS"
7032 LIBS="conftstm.$ac_objext"
7033 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7041 LIBS="$lt_save_LIBS"
7042 CFLAGS="$lt_save_CFLAGS"
7044 echo "cannot find nm_test_func in $nlist" >&5
7047 echo "cannot find nm_test_var in $nlist" >&5
7050 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7053 echo "$progname: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 rm -f conftest* conftst*
7058 # Do not use the global_symbol_pipe unless it works.
7059 if test "$pipe_works" = yes; then
7062 lt_cv_sys_global_symbol_pipe=
7068 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7069 lt_cv_sys_global_symbol_to_cdecl=
7071 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7072 echo "$as_me:$LINENO: result: failed" >&5
7073 echo "${ECHO_T}failed" >&6
7075 echo "$as_me:$LINENO: result: ok" >&5
7076 echo "${ECHO_T}ok" >&6
7079 echo "$as_me:$LINENO: checking for objdir" >&5
7080 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7081 if test "${lt_cv_objdir+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 rm -f .libs 2>/dev/null
7085 mkdir .libs 2>/dev/null
7086 if test -d .libs; then
7089 # MS-DOS does not allow filenames that begin with a dot.
7092 rmdir .libs 2>/dev/null
7094 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7095 echo "${ECHO_T}$lt_cv_objdir" >&6
7096 objdir=$lt_cv_objdir
7104 # AIX sometimes has problems with the GCC collect2 program. For some
7105 # reason, if we set the COLLECT_NAMES environment variable, the problems
7106 # vanish in a puff of smoke.
7107 if test "X${COLLECT_NAMES+set}" != Xset; then
7109 export COLLECT_NAMES
7114 # Sed substitution that helps us do robust quoting. It backslashifies
7115 # metacharacters that are still active within double-quoted strings.
7116 Xsed='sed -e 1s/^X//'
7117 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7119 # Same as above, but do not quote variable references.
7120 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7122 # Sed substitution to delay expansion of an escaped shell variable in a
7123 # double_quote_subst'ed string.
7124 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7126 # Sed substitution to avoid accidental globbing in evaled expressions
7127 no_glob_subst='s/\*/\\\*/g'
7133 default_ofile=libtool
7134 can_build_shared=yes
7136 # All known linkers require a `.a' archive for static linking (except MSVC,
7137 # which needs '.lib').
7139 ltmain="$ac_aux_dir/ltmain.sh"
7140 ofile="$default_ofile"
7141 with_gnu_ld="$lt_cv_prog_gnu_ld"
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}ar; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_AR+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 if test -n "$AR"; then
7152 ac_cv_prog_AR="$AR" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_AR="${ac_tool_prefix}ar"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 if test -n "$AR"; then
7172 echo "$as_me:$LINENO: result: $AR" >&5
7173 echo "${ECHO_T}$AR" >&6
7175 echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7180 if test -z "$ac_cv_prog_AR"; then
7182 # Extract the first word of "ar", so it can be a program name with args.
7183 set dummy ar; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$ac_ct_AR"; then
7190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_ac_ct_AR="ar"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7210 if test -n "$ac_ct_AR"; then
7211 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7212 echo "${ECHO_T}$ac_ct_AR" >&6
7214 echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_RANLIB+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 if test -n "$RANLIB"; then
7232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 RANLIB=$ac_cv_prog_RANLIB
7251 if test -n "$RANLIB"; then
7252 echo "$as_me:$LINENO: result: $RANLIB" >&5
7253 echo "${ECHO_T}$RANLIB" >&6
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7260 if test -z "$ac_cv_prog_RANLIB"; then
7261 ac_ct_RANLIB=$RANLIB
7262 # Extract the first word of "ranlib", so it can be a program name with args.
7263 set dummy ranlib; ac_word=$2
7264 echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 if test -n "$ac_ct_RANLIB"; then
7270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_RANLIB="ranlib"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7290 if test -n "$ac_ct_RANLIB"; then
7291 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7292 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7294 echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7298 RANLIB=$ac_ct_RANLIB
7300 RANLIB="$ac_cv_prog_RANLIB"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}strip; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_STRIP+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test -n "$STRIP"; then
7312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 STRIP=$ac_cv_prog_STRIP
7331 if test -n "$STRIP"; then
7332 echo "$as_me:$LINENO: result: $STRIP" >&5
7333 echo "${ECHO_T}$STRIP" >&6
7335 echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7340 if test -z "$ac_cv_prog_STRIP"; then
7342 # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$ac_ct_STRIP"; then
7350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_STRIP="strip"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7372 echo "${ECHO_T}$ac_ct_STRIP" >&6
7374 echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6
7380 STRIP="$ac_cv_prog_STRIP"
7385 old_CFLAGS="$CFLAGS"
7387 # Set sane defaults for various variables
7388 test -z "$AR" && AR=ar
7389 test -z "$AR_FLAGS" && AR_FLAGS=cru
7390 test -z "$AS" && AS=as
7391 test -z "$CC" && CC=cc
7392 test -z "$LTCC" && LTCC=$CC
7393 test -z "$DLLTOOL" && DLLTOOL=dlltool
7394 test -z "$LD" && LD=ld
7395 test -z "$LN_S" && LN_S="ln -s"
7396 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7397 test -z "$NM" && NM=nm
7398 test -z "$SED" && SED=sed
7399 test -z "$OBJDUMP" && OBJDUMP=objdump
7400 test -z "$RANLIB" && RANLIB=:
7401 test -z "$STRIP" && STRIP=:
7402 test -z "$ac_objext" && ac_objext=o
7404 # Determine commands to create old-style static archives.
7405 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7406 old_postinstall_cmds='chmod 644 $oldlib'
7407 old_postuninstall_cmds=
7409 if test -n "$RANLIB"; then
7412 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7415 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7418 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7421 for cc_temp in $compiler""; do
7423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7429 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7432 # Only perform the check for file, if the check method requires it
7433 case $deplibs_check_method in
7435 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7436 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7437 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7438 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7446 lt_save_MAGIC_CMD="$MAGIC_CMD"
7447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449 for ac_dir in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/${ac_tool_prefix}file; then
7453 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7454 if test -n "$file_magic_test_file"; then
7455 case $deplibs_check_method in
7457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460 $EGREP "$file_magic_regex" > /dev/null; then
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such. This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem. Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7482 MAGIC_CMD="$lt_save_MAGIC_CMD"
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7490 echo "${ECHO_T}$MAGIC_CMD" >&6
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7496 if test -z "$lt_cv_path_MAGIC_CMD"; then
7497 if test -n "$ac_tool_prefix"; then
7498 echo "$as_me:$LINENO: checking for file" >&5
7499 echo $ECHO_N "checking for file... $ECHO_C" >&6
7500 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7508 lt_save_MAGIC_CMD="$MAGIC_CMD"
7509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511 for ac_dir in $ac_dummy; do
7513 test -z "$ac_dir" && ac_dir=.
7514 if test -f $ac_dir/file; then
7515 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7516 if test -n "$file_magic_test_file"; then
7517 case $deplibs_check_method in
7519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522 $EGREP "$file_magic_regex" > /dev/null; then
7527 *** Warning: the command libtool uses to detect shared libraries,
7528 *** $file_magic_cmd, produces output that libtool cannot recognize.
7529 *** The result is that libtool may fail to recognize shared libraries
7530 *** as such. This will affect the creation of libtool libraries that
7531 *** depend on shared libraries, but programs linked with such libtool
7532 *** libraries will work regardless of this problem. Nevertheless, you
7533 *** may want to report the problem to your system manager and/or to
7534 *** bug-libtool@gnu.org
7544 MAGIC_CMD="$lt_save_MAGIC_CMD"
7549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550 if test -n "$MAGIC_CMD"; then
7551 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7552 echo "${ECHO_T}$MAGIC_CMD" >&6
7554 echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6
7568 enable_win32_dll=yes
7570 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7571 if test "${enable_libtool_lock+set}" = set; then
7572 enableval="$enable_libtool_lock"
7575 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7578 # Check whether --with-pic or --without-pic was given.
7579 if test "${with_pic+set}" = set; then
7585 test -z "$pic_mode" && pic_mode=default
7587 # Use C for the default configuration in the libtool script
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7597 # Source file extension for C test sources.
7600 # Object file extension for compiled C test sources.
7604 # Code to be used in simple compile tests
7605 lt_simple_compile_test_code="int some_variable = 0;\n"
7607 # Code to be used in simple link tests
7608 lt_simple_link_test_code='int main(){return(0);}\n'
7611 # If no C compiler was specified, use CC.
7614 # Allow CC to be a program name with arguments.
7618 # save warnings/boilerplate of simple test code
7619 ac_outfile=conftest.$ac_objext
7620 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7622 _lt_compiler_boilerplate=`cat conftest.err`
7625 ac_outfile=conftest.$ac_objext
7626 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7628 _lt_linker_boilerplate=`cat conftest.err`
7633 # Check for any special shared library compilation flags.
7636 if test "$GCC" = no; then
7639 lt_prog_cc_shlib='-belf'
7643 if test -n "$lt_prog_cc_shlib"; then
7644 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7645 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7646 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7648 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7649 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7650 lt_cv_prog_cc_can_build_shared=no
7656 # Check to make sure the static flag actually works.
7658 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7659 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7660 if test "${lt_prog_compiler_static_works+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 lt_prog_compiler_static_works=no
7664 save_LDFLAGS="$LDFLAGS"
7665 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7666 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7668 # The linker can only warn and ignore the option if not recognized
7669 # So say no if there are warnings
7670 if test -s conftest.err; then
7671 # Append any errors to the config.log.
7672 cat conftest.err 1>&5
7673 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7674 $SED '/^$/d' conftest.err >conftest.er2
7675 if diff conftest.exp conftest.er2 >/dev/null; then
7676 lt_prog_compiler_static_works=yes
7679 lt_prog_compiler_static_works=yes
7683 LDFLAGS="$save_LDFLAGS"
7686 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7689 if test x"$lt_prog_compiler_static_works" = xyes; then
7692 lt_prog_compiler_static=
7698 lt_prog_compiler_no_builtin_flag=
7700 if test "$GCC" = yes; then
7701 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7704 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 lt_cv_prog_compiler_rtti_exceptions=no
7710 ac_outfile=conftest.$ac_objext
7711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7712 lt_compiler_flag="-fno-rtti -fno-exceptions"
7713 # Insert the option either (1) after the last *FLAGS variable, or
7714 # (2) before a word containing "conftest.", or (3) at the end.
7715 # Note that $ac_compile itself does not contain backslashes and begins
7716 # with a dollar sign (not a hyphen), so the echo should work correctly.
7717 # The option is referenced via a variable to avoid confusing sed.
7718 lt_compile=`echo "$ac_compile" | $SED \
7719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721 -e 's:$: $lt_compiler_flag:'`
7722 (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723 (eval "$lt_compile" 2>conftest.err)
7725 cat conftest.err >&5
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 if (exit $ac_status) && test -s "$ac_outfile"; then
7728 # The compiler can only warn and ignore the option if not recognized
7729 # So say no if there are warnings other than the usual output.
7730 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7731 $SED '/^$/d' conftest.err >conftest.er2
7732 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7733 lt_cv_prog_compiler_rtti_exceptions=yes
7739 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7750 lt_prog_compiler_wl=
7751 lt_prog_compiler_pic=
7752 lt_prog_compiler_static=
7754 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7757 if test "$GCC" = yes; then
7758 lt_prog_compiler_wl='-Wl,'
7759 lt_prog_compiler_static='-static'
7763 # All AIX code is PIC.
7764 if test "$host_cpu" = ia64; then
7765 # AIX 5 now supports IA64 processor
7766 lt_prog_compiler_static='-Bstatic'
7771 # FIXME: we need at least 68020 code to build shared libraries, but
7772 # adding the `-m68020' flag to GCC prevents building anything better,
7774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7777 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7778 # PIC is the default for these OSes.
7781 mingw* | pw32* | os2*)
7782 # This hack is so that the source file can tell whether it is being
7783 # built for inclusion in a dll (and should export symbols for example).
7784 lt_prog_compiler_pic='-DDLL_EXPORT'
7787 darwin* | rhapsody*)
7788 # PIC is the default on this platform
7789 # Common symbols not allowed in MH_DYLIB files
7790 lt_prog_compiler_pic='-fno-common'
7794 # Just because we use GCC doesn't mean we suddenly get shared libraries
7795 # on systems that don't support them.
7796 lt_prog_compiler_can_build_shared=no
7801 if test -d /usr/nec; then
7802 lt_prog_compiler_pic=-Kconform_pic
7807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7814 lt_prog_compiler_pic='-fPIC'
7820 lt_prog_compiler_pic='-fPIC'
7824 # PORTME Check for flag to pass linker flags through the system compiler.
7827 lt_prog_compiler_wl='-Wl,'
7828 if test "$host_cpu" = ia64; then
7829 # AIX 5 now supports IA64 processor
7830 lt_prog_compiler_static='-Bstatic'
7832 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7836 # PIC is the default on this platform
7837 # Common symbols not allowed in MH_DYLIB files
7838 case $cc_basename in
7840 lt_prog_compiler_pic='-qnocommon'
7841 lt_prog_compiler_wl='-Wl,'
7846 mingw* | pw32* | os2*)
7847 # This hack is so that the source file can tell whether it is being
7848 # built for inclusion in a dll (and should export symbols for example).
7849 lt_prog_compiler_pic='-DDLL_EXPORT'
7852 hpux9* | hpux10* | hpux11*)
7853 lt_prog_compiler_wl='-Wl,'
7854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7861 lt_prog_compiler_pic='+Z'
7864 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7865 lt_prog_compiler_static='${wl}-a ${wl}archive'
7868 irix5* | irix6* | nonstopux*)
7869 lt_prog_compiler_wl='-Wl,'
7870 # PIC (with -KPIC) is the default.
7871 lt_prog_compiler_static='-non_shared'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7880 case $cc_basename in
7882 lt_prog_compiler_wl='-Wl,'
7883 lt_prog_compiler_pic='-KPIC'
7884 lt_prog_compiler_static='-static'
7886 pgcc* | pgf77* | pgf90* | pgf95*)
7887 # Portland Group compilers (*not* the Pentium gcc compiler,
7888 # which looks to be a dead project)
7889 lt_prog_compiler_wl='-Wl,'
7890 lt_prog_compiler_pic='-fpic'
7891 lt_prog_compiler_static='-Bstatic'
7894 lt_prog_compiler_wl='-Wl,'
7895 # All Alpha code is PIC.
7896 lt_prog_compiler_static='-non_shared'
7901 osf3* | osf4* | osf5*)
7902 lt_prog_compiler_wl='-Wl,'
7903 # All OSF/1 code is PIC.
7904 lt_prog_compiler_static='-non_shared'
7908 lt_prog_compiler_pic='-Kpic'
7909 lt_prog_compiler_static='-dn'
7913 lt_prog_compiler_pic='-KPIC'
7914 lt_prog_compiler_static='-Bstatic'
7915 case $cc_basename in
7917 lt_prog_compiler_wl='-Qoption ld ';;
7919 lt_prog_compiler_wl='-Wl,';;
7924 lt_prog_compiler_wl='-Qoption ld '
7925 lt_prog_compiler_pic='-PIC'
7926 lt_prog_compiler_static='-Bstatic'
7929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-KPIC'
7932 lt_prog_compiler_static='-Bstatic'
7936 if test -d /usr/nec ;then
7937 lt_prog_compiler_pic='-Kconform_pic'
7938 lt_prog_compiler_static='-Bstatic'
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_can_build_shared=no
7948 lt_prog_compiler_pic='-pic'
7949 lt_prog_compiler_static='-Bstatic'
7953 lt_prog_compiler_can_build_shared=no
7958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7959 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7962 # Check to make sure the PIC flag actually works.
7964 if test -n "$lt_prog_compiler_pic"; then
7966 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7968 if test "${lt_prog_compiler_pic_works+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 lt_prog_compiler_pic_works=no
7972 ac_outfile=conftest.$ac_objext
7973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7974 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7975 # Insert the option either (1) after the last *FLAGS variable, or
7976 # (2) before a word containing "conftest.", or (3) at the end.
7977 # Note that $ac_compile itself does not contain backslashes and begins
7978 # with a dollar sign (not a hyphen), so the echo should work correctly.
7979 # The option is referenced via a variable to avoid confusing sed.
7980 lt_compile=`echo "$ac_compile" | $SED \
7981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7983 -e 's:$: $lt_compiler_flag:'`
7984 (eval echo "\"\$as_me:7984: $lt_compile\"" >&5)
7985 (eval "$lt_compile" 2>conftest.err)
7987 cat conftest.err >&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 if (exit $ac_status) && test -s "$ac_outfile"; then
7990 # The compiler can only warn and ignore the option if not recognized
7991 # So say no if there are warnings other than the usual output.
7992 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7993 $SED '/^$/d' conftest.err >conftest.er2
7994 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7995 lt_prog_compiler_pic_works=yes
8001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8002 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8004 if test x"$lt_prog_compiler_pic_works" = xyes; then
8005 case $lt_prog_compiler_pic in
8007 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8010 lt_prog_compiler_pic=
8011 lt_prog_compiler_can_build_shared=no
8016 # For platforms which do not support PIC, -DPIC is meaningless:
8018 lt_prog_compiler_pic=
8021 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8025 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8026 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8027 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 lt_cv_prog_compiler_c_o=no
8031 $rm -r conftest 2>/dev/null
8035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8037 lt_compiler_flag="-o out/conftest2.$ac_objext"
8038 # Insert the option either (1) after the last *FLAGS variable, or
8039 # (2) before a word containing "conftest.", or (3) at the end.
8040 # Note that $ac_compile itself does not contain backslashes and begins
8041 # with a dollar sign (not a hyphen), so the echo should work correctly.
8042 lt_compile=`echo "$ac_compile" | $SED \
8043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045 -e 's:$: $lt_compiler_flag:'`
8046 (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
8047 (eval "$lt_compile" 2>out/conftest.err)
8049 cat out/conftest.err >&5
8050 echo "$as_me:8050: \$? = $ac_status" >&5
8051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8053 # The compiler can only warn and ignore the option if not recognized
8054 # So say no if there are warnings
8055 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8056 $SED '/^$/d' out/conftest.err >out/conftest.er2
8057 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8058 lt_cv_prog_compiler_c_o=yes
8063 # SGI C++ compiler will create directory out/ii_files/ for
8064 # template instantiation
8065 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8066 $rm out/* && rmdir out
8072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8076 hard_links="nottested"
8077 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8078 # do not overwrite the value of need_locks provided by the user
8079 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085 ln conftest.a conftest.b 2>&5 || hard_links=no
8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087 echo "$as_me:$LINENO: result: $hard_links" >&5
8088 echo "${ECHO_T}$hard_links" >&6
8089 if test "$hard_links" = no; then
8090 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8102 allow_undefined_flag=
8103 enable_shared_with_static_runtimes=no
8105 archive_expsym_cmds=
8106 old_archive_From_new_cmds=
8107 old_archive_from_expsyms_cmds=
8108 export_dynamic_flag_spec=
8109 whole_archive_flag_spec=
8110 thread_safe_flag_spec=
8111 hardcode_libdir_flag_spec=
8112 hardcode_libdir_flag_spec_ld=
8113 hardcode_libdir_separator=
8116 hardcode_shlibpath_var=unsupported
8117 link_all_deplibs=unknown
8118 hardcode_automatic=no
8121 always_export_symbols=no
8122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8123 # include_expsyms should be a list of space-separated symbols to be *always*
8124 # included in the symbol list
8126 # exclude_expsyms can be an extended regexp of symbols to exclude
8127 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8128 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8129 # as well as any symbol that contains `d'.
8130 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8132 # platforms (ab)use it in PIC code, but their linkers get confused if
8133 # the symbol is explicitly referenced. Since portable code cannot
8134 # rely on this symbol name, it's probably fine to never include it in
8135 # preloaded symbol tables.
8136 extract_expsyms_cmds=
8137 # Just being paranoid about ensuring that cc_basename is set.
8138 for cc_temp in $compiler""; do
8140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8146 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8149 cygwin* | mingw* | pw32*)
8150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 if test "$GCC" != yes; then
8163 if test "$with_gnu_ld" = yes; then
8164 # If archive_cmds runs LD, not CC, wlarc should be empty
8167 # Set some defaults for GNU ld with shared library support. These
8168 # are reset later if shared libraries are not supported. Putting them
8169 # here allows them to be overridden if necessary.
8170 runpath_var=LD_RUN_PATH
8171 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8172 export_dynamic_flag_spec='${wl}--export-dynamic'
8173 # ancient GNU ld didn't support --whole-archive et. al.
8174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8177 whole_archive_flag_spec=
8179 supports_anon_versioning=no
8180 case `$LD -v 2>/dev/null` in
8181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8184 *\ 2.11.*) ;; # other 2.11 versions
8185 *) supports_anon_versioning=yes ;;
8188 # See if GNU ld supports shared libraries.
8190 aix3* | aix4* | aix5*)
8191 # On AIX/PPC, the GNU linker is very broken
8192 if test "$host_cpu" != ia64; then
8196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8197 *** to be unable to reliably create shared libraries on AIX.
8198 *** Therefore, libtool is disabling shared libraries support. If you
8199 *** really care for shared libraries, you may want to modify your PATH
8200 *** so that a non-GNU linker is found, and then restart.
8207 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)'
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 hardcode_minus_L=yes
8211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8212 # that the semantics of dynamic libraries on AmigaOS, at least up
8213 # to version 4, is to share data among multiple programs linked
8214 # with the same dynamic library. Since this doesn't match the
8215 # behavior of shared libraries on other platforms, we can't use
8221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 allow_undefined_flag=unsupported
8223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8224 # support --undefined. This deserves some investigation. FIXME
8225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 cygwin* | mingw* | pw32*)
8232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8233 # as there is no search path for DLLs.
8234 hardcode_libdir_flag_spec='-L$libdir'
8235 allow_undefined_flag=unsupported
8236 always_export_symbols=no
8237 enable_shared_with_static_runtimes=yes
8238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8242 # If the export-symbols file already is a .def file (1st line
8243 # is EXPORTS), use it as is; otherwise, prepend...
8244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8245 cp $export_symbols $output_objdir/$soname.def;
8247 echo EXPORTS > $output_objdir/$soname.def;
8248 cat $export_symbols >> $output_objdir/$soname.def;
8250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 case $cc_basename,$host_cpu in
8260 pgcc*) # Portland Group C compiler
8261 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'
8262 tmp_addflag=' $pic_flag'
8264 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8265 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'
8266 tmp_addflag=' $pic_flag -Mnomain' ;;
8267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8268 tmp_addflag=' -i_dynamic' ;;
8269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8270 tmp_addflag=' -i_dynamic -nofor_main' ;;
8271 ifc* | ifort*) # Intel Fortran compiler
8272 tmp_addflag=' -nofor_main' ;;
8274 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 if test $supports_anon_versioning = yes; then
8277 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279 $echo "local: *; };" >> $output_objdir/$libname.ver~
8280 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8298 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303 *** create shared libraries on Solaris systems. Therefore, libtool
8304 *** is disabling shared libraries support. We urge you to upgrade GNU
8305 *** binutils to release 2.9.1 or newer. Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8310 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322 hardcode_shlibpath_var=no
8326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335 if test "$ld_shlibs" = no; then
8337 hardcode_libdir_flag_spec=
8338 export_dynamic_flag_spec=
8339 whole_archive_flag_spec=
8342 # PORTME fill in a description of your system's linker (not GNU ld)
8345 allow_undefined_flag=unsupported
8346 always_export_symbols=yes
8347 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'
8348 # Note: this linker hardcodes the directories in LIBPATH if there
8349 # are no directories specified by -L.
8350 hardcode_minus_L=yes
8351 if test "$GCC" = yes && test -z "$link_static_flag"; then
8352 # Neither direct hardcoding nor static linking is supported with a
8354 hardcode_direct=unsupported
8359 if test "$host_cpu" = ia64; then
8360 # On IA64, the linker does run time linking by default, so we don't
8361 # have to do anything special.
8362 aix_use_runtimelinking=no
8363 exp_sym_flag='-Bexport'
8366 # If we're using GNU nm, then we don't want the "-C" option.
8367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8368 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8369 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'
8371 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'
8373 aix_use_runtimelinking=no
8375 # Test if we are trying to use run time linking or normal
8376 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8377 # need to do runtime linking.
8378 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8379 for ld_flag in $LDFLAGS; do
8380 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8381 aix_use_runtimelinking=yes
8387 exp_sym_flag='-bexport'
8388 no_entry_flag='-bnoentry'
8391 # When large executables or shared objects are built, AIX ld can
8392 # have problems creating the table of contents. If linking a library
8393 # or program results in "error TOC overflow" add -mminimal-toc to
8394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8399 hardcode_libdir_separator=':'
8400 link_all_deplibs=yes
8402 if test "$GCC" = yes; then
8403 case $host_os in aix4.[012]|aix4.[012].*)
8404 # We only want to do this on AIX 4.2 and lower, the check
8405 # below for broken collect2 doesn't work under 4.3+
8406 collect2name=`${CC} -print-prog-name=collect2`
8407 if test -f "$collect2name" && \
8408 strings "$collect2name" | grep resolve_lib_name >/dev/null
8410 # We have reworked collect2
8413 # We have old collect2
8414 hardcode_direct=unsupported
8415 # It fails to find uninstalled libraries when the uninstalled
8416 # path is not listed in the libpath. Setting hardcode_minus_L
8417 # to unsupported forces relinking
8418 hardcode_minus_L=yes
8419 hardcode_libdir_flag_spec='-L$libdir'
8420 hardcode_libdir_separator=
8423 shared_flag='-shared'
8424 if test "$aix_use_runtimelinking" = yes; then
8425 shared_flag="$shared_flag "'${wl}-G'
8429 if test "$host_cpu" = ia64; then
8430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431 # chokes on -Wl,-G. The following line is correct:
8434 if test "$aix_use_runtimelinking" = yes; then
8435 shared_flag='${wl}-G'
8437 shared_flag='${wl}-bM:SRE'
8442 # It seems that -bexpall does not export symbols beginning with
8443 # underscore (_), so it is better to generate a list of symbols to export.
8444 always_export_symbols=yes
8445 if test "$aix_use_runtimelinking" = yes; then
8446 # Warning - without using the other runtime loading flags (-brtl),
8447 # -berok will link without error, but may produce a broken library.
8448 allow_undefined_flag='-berok'
8449 # Determine the default libpath from the value encoded in an empty executable.
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467 (eval $ac_link) 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -z "$ac_c_werror_flag"
8475 || test ! -s conftest.err'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest$ac_exeext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8490 # Check for a 64-bit object if we didn't find anything.
8491 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; }
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8498 rm -f conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8503 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"
8505 if test "$host_cpu" = ia64; then
8506 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8507 allow_undefined_flag="-z nodefs"
8508 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"
8510 # Determine the default libpath from the value encoded in an empty executable.
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528 (eval $ac_link) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest$ac_exeext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8551 # Check for a 64-bit object if we didn't find anything.
8552 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; }
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8564 # Warning - without using the other run time loading flags,
8565 # -berok will link without error, but may produce a broken library.
8566 no_undefined_flag=' ${wl}-bernotok'
8567 allow_undefined_flag=' ${wl}-berok'
8568 # -bexpall does not export symbols beginning with underscore (_)
8569 always_export_symbols=yes
8570 # Exported symbols can be pulled into shared objects from archives
8571 whole_archive_flag_spec=' '
8572 archive_cmds_need_lc=yes
8573 # This is similar to how AIX traditionally builds its shared libraries.
8574 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'
8580 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)'
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 hardcode_minus_L=yes
8583 # see comment about different semantics on the GNU ld section
8588 export_dynamic_flag_spec=-rdynamic
8591 cygwin* | mingw* | pw32*)
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 # hardcode_libdir_flag_spec is actually meaningless, as there is
8595 # no search path for DLLs.
8596 hardcode_libdir_flag_spec=' '
8597 allow_undefined_flag=unsupported
8598 # Tell ltmain to make .lib files, not .a files.
8600 # Tell ltmain to make .dll files, not .so files.
8602 # FIXME: Setting linknames here is a bad hack.
8603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8604 # The linker will automatically build a .lib file if we build a DLL.
8605 old_archive_From_new_cmds='true'
8606 # FIXME: Should let the user specify the lib program.
8607 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8608 fix_srcfile_path='`cygpath -w "$srcfile"`'
8609 enable_shared_with_static_runtimes=yes
8612 darwin* | rhapsody*)
8614 rhapsody* | darwin1.[012])
8615 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8618 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8619 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621 case ${MACOSX_DEPLOYMENT_TARGET} in
8623 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8632 archive_cmds_need_lc=no
8634 hardcode_automatic=yes
8635 hardcode_shlibpath_var=unsupported
8636 whole_archive_flag_spec=''
8637 link_all_deplibs=yes
8638 if test "$GCC" = yes ; then
8639 output_verbose_link_cmd='echo'
8640 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8643 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}'
8644 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}'
8646 case $cc_basename in
8648 output_verbose_link_cmd='echo'
8649 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8650 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8652 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}'
8653 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}'
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 hardcode_shlibpath_var=no
8672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8673 # support. Future versions do this automatically, but an explicit c++rt0.o
8674 # does not break anything, and helps significantly (at the cost of a little
8677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8678 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_shlibpath_var=no
8683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_minus_L=yes
8688 hardcode_shlibpath_var=no
8691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8692 freebsd* | kfreebsd*-gnu | dragonfly*)
8693 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8694 hardcode_libdir_flag_spec='-R$libdir'
8696 hardcode_shlibpath_var=no
8700 if test "$GCC" = yes; then
8701 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'
8703 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'
8705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706 hardcode_libdir_separator=:
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L=yes
8712 export_dynamic_flag_spec='${wl}-E'
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8735 if test "$with_gnu_ld" = no; then
8738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739 hardcode_libdir_flag_spec_ld='+b $libdir'
8740 hardcode_libdir_separator=:
8742 hardcode_shlibpath_var=no
8745 hardcode_libdir_flag_spec='-L$libdir'
8747 hardcode_shlibpath_var=no
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755 hardcode_libdir_separator=:
8757 export_dynamic_flag_spec='${wl}-E'
8759 # hardcode_minus_L: Not really in the search PATH,
8760 # but as the default location of the library.
8761 hardcode_minus_L=yes
8767 irix5* | irix6* | nonstopux*)
8768 if test "$GCC" = yes; then
8769 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'
8771 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'
8772 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775 hardcode_libdir_separator=:
8776 link_all_deplibs=yes
8780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8785 hardcode_libdir_flag_spec='-R$libdir'
8787 hardcode_shlibpath_var=no
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 hardcode_shlibpath_var=no
8800 hardcode_shlibpath_var=no
8801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805 export_dynamic_flag_spec='${wl}-E'
8808 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_libdir_flag_spec='-R$libdir'
8813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8823 allow_undefined_flag=unsupported
8824 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'
8825 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8833 allow_undefined_flag=' -expect_unresolved \*'
8834 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'
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8840 osf4* | osf5*) # as osf3* with the addition of -msym flag
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843 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'
8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8846 allow_undefined_flag=' -expect_unresolved \*'
8847 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'
8848 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849 $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'
8851 # Both c and cxx compiler support -rpath directly
8852 hardcode_libdir_flag_spec='-rpath $libdir'
8854 hardcode_libdir_separator=:
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_shlibpath_var=no
8860 export_dynamic_flag_spec='${wl}-Bexport'
8861 runpath_var=LD_RUN_PATH
8862 hardcode_runpath_var=yes
8866 no_undefined_flag=' -z text'
8867 if test "$GCC" = yes; then
8869 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8871 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8874 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8878 hardcode_libdir_flag_spec='-R$libdir'
8879 hardcode_shlibpath_var=no
8881 solaris2.[0-5] | solaris2.[0-5].*) ;;
8883 # The compiler driver will combine linker options so we
8884 # cannot just pass the convience library names through
8885 # without $wl, iff we do not link with $LD.
8886 # Luckily, gcc supports the same syntax we need for Sun Studio.
8887 # Supported since Solaris 2.6 (maybe 2.5.1?)
8890 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8892 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' ;;
8895 link_all_deplibs=yes
8899 if test "x$host_vendor" = xsequent; then
8900 # Use $CC to link under sequent, because it throws in some extra .o
8901 # files that make .init and .fini sections work.
8902 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_libdir_flag_spec='-L$libdir'
8908 hardcode_minus_L=yes
8909 hardcode_shlibpath_var=no
8913 case $host_vendor in
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_direct=yes # is this really true???
8919 ## LD is ld it makes a PLAMLIB
8920 ## CC just makes a GrossModule.
8921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8922 reload_cmds='$CC -r -o $output$reload_objs'
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8930 runpath_var='LD_RUN_PATH'
8931 hardcode_shlibpath_var=no
8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_shlibpath_var=no
8937 export_dynamic_flag_spec='-Bexport'
8941 if test -d /usr/nec; then
8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_shlibpath_var=no
8944 runpath_var=LD_RUN_PATH
8945 hardcode_runpath_var=yes
8951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8955 hardcode_runpath_var=yes
8956 runpath_var=LD_RUN_PATH
8959 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8960 no_undefined_flag='${wl}-z ${wl}text'
8961 if test "$GCC" = yes; then
8962 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 runpath_var='LD_RUN_PATH'
8967 hardcode_shlibpath_var=no
8971 no_undefined_flag=' -z text'
8972 # $CC -shared without GNU ld will not create a library from C++
8973 # object files and a static libstdc++, better avoid it by now
8974 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8976 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8977 hardcode_libdir_flag_spec=
8978 hardcode_shlibpath_var=no
8979 runpath_var='LD_RUN_PATH'
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_shlibpath_var=no
8994 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995 echo "${ECHO_T}$ld_shlibs" >&6
8996 test "$ld_shlibs" = no && can_build_shared=no
8998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8999 if test "$GCC" = yes; then
9000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9004 # Do we need to explicitly link libc?
9006 case "x$archive_cmds_need_lc" in
9008 # Assume -lc should be added
9009 archive_cmds_need_lc=yes
9011 if test "$enable_shared" = yes && test "$GCC" = yes; then
9012 case $archive_cmds in
9014 # FIXME: we may have to deal with multi-command sequences.
9017 # Test whether the compiler implicitly links with -lc since on some
9018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9019 # to ld, don't add -lc before -lgcc.
9020 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026 (eval $ac_compile) 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } 2>conftest.err; then
9032 libobjs=conftest.$ac_objext
9034 wl=$lt_prog_compiler_wl
9040 lt_save_allow_undefined_flag=$allow_undefined_flag
9041 allow_undefined_flag=
9042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9043 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }
9048 archive_cmds_need_lc=no
9050 archive_cmds_need_lc=yes
9052 allow_undefined_flag=$lt_save_allow_undefined_flag
9054 cat conftest.err 1>&5
9057 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9058 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9065 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9068 libname_spec='lib$name'
9076 shlibpath_overrides_runpath=unknown
9078 dynamic_linker="$host_os ld.so"
9079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9080 if test "$GCC" = yes; then
9081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9083 # if the path contains ";" then we assume it to be the separator
9084 # otherwise default to the standard path separator (i.e. ":") - it is
9085 # assumed that no part of a normal pathname contains ";" but that should
9086 # okay in the real world where ";" in dirpaths is itself problematic.
9087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9094 need_lib_prefix=unknown
9095 hardcode_into_libs=no
9097 # when you set need_version to no, make sure it does not cause -set_version
9098 # flags to be left without arguments
9099 need_version=unknown
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105 shlibpath_var=LIBPATH
9107 # AIX 3 has no versioning support, so we append a major version to the name.
9108 soname_spec='${libname}${release}${shared_ext}$major'
9115 hardcode_into_libs=yes
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 supports IA64
9118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119 shlibpath_var=LD_LIBRARY_PATH
9121 # With GCC up to 2.95.x, collect2 would create an import file
9122 # for dependence libraries. The import file would start with
9123 # the line `#! .'. This would cause the generated library to
9124 # depend on `.', always an invalid library. This was fixed in
9125 # development snapshots of GCC prior to 3.0.
9127 aix4 | aix4.[01] | aix4.[01].*)
9128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138 # soname into executable. Probably we can add versioning support to
9139 # collect2, so additional links can be useful in future.
9140 if test "$aix_use_runtimelinking" = yes; then
9141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142 # instead of lib<name>.a to let people know that these are not
9143 # typical AIX shared libraries.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 # We preserve .a as extension for shared libraries through AIX4.2
9147 # and later when we are not doing run time linking.
9148 library_names_spec='${libname}${release}.a $libname.a'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LIBPATH
9156 library_names_spec='$libname.ixlibrary $libname.a'
9157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9158 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'
9162 library_names_spec='${libname}${shared_ext}'
9163 dynamic_linker="$host_os ld.so"
9164 shlibpath_var=LIBRARY_PATH
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9176 # the default ld.so.conf also contains /usr/contrib/lib and
9177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9178 # libtool to hard-code these into programs
9181 cygwin* | mingw* | pw32*)
9182 version_type=windows
9187 case $GCC,$host_os in
9188 yes,cygwin* | yes,mingw* | yes,pw32*)
9189 library_names_spec='$libname.dll.a'
9190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9191 postinstall_cmds='base_file=`basename \${file}`~
9192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9193 dldir=$destdir/`dirname \$dlpath`~
9194 test -d \$dldir || mkdir -p \$dldir~
9195 $install_prog $dir/$dlname \$dldir/$dlname~
9196 chmod a+x \$dldir/$dlname'
9197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198 dlpath=$dir/\$dldll~
9200 shlibpath_overrides_runpath=yes
9204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9209 # MinGW DLLs use traditional 'lib' prefix
9210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9213 # It is most probably a Windows format PATH printed by
9214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215 # path with ; separators, and with drive letters. We can handle the
9216 # drive letters (cygwin fileutils understands them), so leave them,
9217 # especially as we might pass files found there to a mingw objdump,
9218 # which wouldn't understand a cygwinified path. Ahh.
9219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9225 # pw32 DLLs use 'pw' prefix rather than 'lib'
9226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9235 dynamic_linker='Win32 ld.exe'
9236 # FIXME: first we should search . and the directory the executable is in
9240 darwin* | rhapsody*)
9241 dynamic_linker="$host_os dyld"
9245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246 soname_spec='${libname}${release}${major}$shared_ext'
9247 shlibpath_overrides_runpath=yes
9248 shlibpath_var=DYLD_LIBRARY_PATH
9249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9251 if test "$GCC" = yes; then
9252 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"`
9254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 shlibpath_overrides_runpath=no
9280 hardcode_into_libs=yes
9281 dynamic_linker='GNU ld.so'
9284 freebsd* | dragonfly*)
9285 # DragonFly does not have aout. When/if they implement a new
9286 # versioning mechanism, adjust this.
9287 if test -x /usr/bin/objformat; then
9288 objformat=`/usr/bin/objformat`
9291 freebsd[123]*) objformat=aout ;;
9295 version_type=freebsd-$objformat
9296 case $version_type in
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9307 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9312 freebsd3.[01]* | freebsdelf3.[01]*)
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9317 shlibpath_overrides_runpath=no
9318 hardcode_into_libs=yes
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 hardcode_into_libs=yes
9333 hpux9* | hpux10* | hpux11*)
9334 # Give a soname corresponding to the major version so that dld.sl refuses to
9335 # link against other versions.
9342 hardcode_into_libs=yes
9343 dynamic_linker="$host_os dld.so"
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 if test "X$HPUX_IA64_MODE" = X32; then
9349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357 hardcode_into_libs=yes
9358 dynamic_linker="$host_os dld.sl"
9359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9368 dynamic_linker="$host_os dld.sl"
9369 shlibpath_var=SHLIB_PATH
9370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9375 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9376 postinstall_cmds='chmod 555 $lib'
9379 irix5* | irix6* | nonstopux*)
9381 nonstopux*) version_type=nonstopux ;;
9383 if test "$lt_cv_prog_gnu_ld" = yes; then
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394 irix5* | nonstopux*)
9398 case $LD in # libtool.m4 will add one of these switches to LD
9399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400 libsuff= shlibsuff= libmagic=32-bit;;
9401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402 libsuff=32 shlibsuff=N32 libmagic=N32;;
9403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405 *) libsuff= shlibsuff= libmagic=never-match;;
9409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410 shlibpath_overrides_runpath=no
9411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413 hardcode_into_libs=yes
9416 # No shared lib support for Linux oldld, aout, or coff.
9417 linux*oldld* | linux*aout* | linux*coff*)
9421 # This must be Linux ELF.
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=no
9431 # This implies no fast_install, which is unacceptable.
9432 # Some rework will be needed to allow for fast_install
9433 # before this can be enabled.
9434 hardcode_into_libs=yes
9436 # Append ld.so.conf contents to the search path
9437 if test -f /etc/ld.so.conf; then
9438 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' ' '`
9439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9442 # We used to test for /lib/ld.so.1 and disable shared libraries on
9443 # powerpc, because MkLinux only supported shared libraries with the
9444 # GNU dynamic linker. Since this was broken with cross compilers,
9445 # most powerpc-linux boxes support dynamic linking these days and
9446 # people can always --disable-shared, the test was removed, and we
9447 # assume the GNU/Linux dynamic linker is in use.
9448 dynamic_linker='GNU/Linux ld.so'
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=no
9459 hardcode_into_libs=yes
9460 dynamic_linker='GNU ld.so'
9467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470 dynamic_linker='NetBSD (a.out) ld.so'
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 dynamic_linker='NetBSD ld.elf_so'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=yes
9478 hardcode_into_libs=yes
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9504 *) need_version=no ;;
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511 openbsd2.[89] | openbsd2.[89].*)
9512 shlibpath_overrides_runpath=no
9515 shlibpath_overrides_runpath=yes
9519 shlibpath_overrides_runpath=yes
9524 libname_spec='$name'
9527 library_names_spec='$libname${shared_ext} $libname.a'
9528 dynamic_linker='OS/2 ld.exe'
9529 shlibpath_var=LIBPATH
9532 osf3* | osf4* | osf5*)
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547 shlibpath_var=LD_LIBRARY_PATH
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=yes
9558 hardcode_into_libs=yes
9559 # ldd complains unless libraries are executable
9560 postinstall_cmds='chmod +x $lib'
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 if test "$with_gnu_ld" = yes; then
9575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 case $host_vendor in
9582 shlibpath_overrides_runpath=no
9584 export_dynamic_flag_spec='${wl}-Blargedynsym'
9585 runpath_var=LD_RUN_PATH
9593 shlibpath_overrides_runpath=no
9594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9600 if test -d /usr/nec ;then
9602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9603 soname_spec='$libname${shared_ext}.$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 shlibpath_var=LD_LIBRARY_PATH
9619 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9620 echo "${ECHO_T}$dynamic_linker" >&6
9621 test "$dynamic_linker" = no && can_build_shared=no
9623 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9626 if test -n "$hardcode_libdir_flag_spec" || \
9627 test -n "$runpath_var" || \
9628 test "X$hardcode_automatic" = "Xyes" ; then
9630 # We can hardcode non-existant directories.
9631 if test "$hardcode_direct" != no &&
9632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9633 # have to relink, otherwise we might link with an installed library
9634 # when we should be linking with a yet-to-be-installed one
9635 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9636 test "$hardcode_minus_L" != no; then
9637 # Linking always hardcodes the temporary library directory.
9638 hardcode_action=relink
9640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9641 hardcode_action=immediate
9644 # We cannot hardcode anything, or else we can only hardcode existing
9646 hardcode_action=unsupported
9648 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9649 echo "${ECHO_T}$hardcode_action" >&6
9651 if test "$hardcode_action" = relink; then
9652 # Fast installation is not supported
9653 enable_fast_install=no
9654 elif test "$shlibpath_overrides_runpath" = yes ||
9655 test "$enable_shared" = no; then
9656 # Fast installation is not necessary
9657 enable_fast_install=needless
9662 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9663 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9664 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9665 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9666 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9667 echo "$as_me:$LINENO: result: yes" >&5
9668 echo "${ECHO_T}yes" >&6
9670 # FIXME - insert some real tests, host_os isn't really good enough
9673 if test -n "$STRIP" ; then
9674 striplib="$STRIP -x"
9675 echo "$as_me:$LINENO: result: yes" >&5
9676 echo "${ECHO_T}yes" >&6
9678 echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9683 echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9689 if test "x$enable_dlopen" != xyes; then
9690 enable_dlopen=unknown
9691 enable_dlopen_self=unknown
9692 enable_dlopen_self_static=unknown
9699 lt_cv_dlopen="load_add_on"
9701 lt_cv_dlopen_self=yes
9705 lt_cv_dlopen="LoadLibrary"
9710 lt_cv_dlopen="dlopen"
9715 # if libdl is installed we need to link against it
9716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 ac_check_lib_save_LIBS=$LIBS
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9730 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_lib_dl_dlopen=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_lib_dl_dlopen=no
9774 rm -f conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9780 if test $ac_cv_lib_dl_dlopen = yes; then
9781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9786 lt_cv_dlopen_self=yes
9793 echo "$as_me:$LINENO: checking for shl_load" >&5
9794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9795 if test "${ac_cv_func_shl_load+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define shl_load innocuous_shl_load
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char shl_load (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9821 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9835 char (*f) () = shl_load;
9844 return f != shl_load;
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag"
9859 || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 ac_cv_func_shl_load=yes
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_cv_func_shl_load=no
9878 rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9883 if test $ac_cv_func_shl_load = yes; then
9884 lt_cv_dlopen="shl_load"
9886 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ac_check_lib_save_LIBS=$LIBS
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any gcc2 internal prototype to avoid an error. */
9904 /* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917 (eval $ac_link) 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dld_shl_load=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_dld_shl_load=no
9944 rm -f conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9950 if test $ac_cv_lib_dld_shl_load = yes; then
9951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9953 echo "$as_me:$LINENO: checking for dlopen" >&5
9954 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9955 if test "${ac_cv_func_dlopen+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966 #define dlopen innocuous_dlopen
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char dlopen (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9974 # include <limits.h>
9976 # include <assert.h>
9981 /* Override any gcc2 internal prototype to avoid an error. */
9986 /* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9995 char (*f) () = dlopen;
10004 return f != dlopen;
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_func_dlopen=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_cv_func_dlopen=no
10038 rm -f conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10041 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10042 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10043 if test $ac_cv_func_dlopen = yes; then
10044 lt_cv_dlopen="dlopen"
10046 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10047 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10048 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS=$LIBS
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_lib_dl_dlopen=yes
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_lib_dl_dlopen=no
10104 rm -f conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10110 if test $ac_cv_lib_dl_dlopen = yes; then
10111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10113 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lsvld $LIBS"
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10127 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_lib_svld_dlopen=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_cv_lib_svld_dlopen=no
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10176 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10177 if test $ac_cv_lib_svld_dlopen = yes; then
10178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10180 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10181 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10182 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 ac_check_lib_save_LIBS=$LIBS
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10194 /* Override any gcc2 internal prototype to avoid an error. */
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_lib_dld_dld_link=yes
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ac_cv_lib_dld_dld_link=no
10238 rm -f conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10243 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10244 if test $ac_cv_lib_dld_dld_link = yes; then
10245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10266 if test "x$lt_cv_dlopen" != xno; then
10272 case $lt_cv_dlopen in
10274 save_CPPFLAGS="$CPPFLAGS"
10275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10277 save_LDFLAGS="$LDFLAGS"
10278 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10281 LIBS="$lt_cv_dlopen_libs $LIBS"
10283 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10284 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10285 if test "${lt_cv_dlopen_self+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 if test "$cross_compiling" = yes; then :
10289 lt_cv_dlopen_self=cross
10291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10292 lt_status=$lt_dlunknown
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10294 "configure"
10295 #include "confdefs.h"
10304 # define LT_DLGLOBAL RTLD_GLOBAL
10307 # define LT_DLGLOBAL DL_GLOBAL
10309 # define LT_DLGLOBAL 0
10313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10314 find out it does not work in some platform. */
10315 #ifndef LT_DLLAZY_OR_NOW
10317 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10320 # define LT_DLLAZY_OR_NOW DL_LAZY
10323 # define LT_DLLAZY_OR_NOW RTLD_NOW
10326 # define LT_DLLAZY_OR_NOW DL_NOW
10328 # define LT_DLLAZY_OR_NOW 0
10336 extern "C" void exit (int);
10339 void fnord() { int i=42;}
10342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10343 int status = $lt_dlunknown;
10347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10349 /* dlclose (self); */
10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356 (eval $ac_link) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10360 (./conftest; exit; ) >&5 2>/dev/null
10362 case x$lt_status in
10363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10365 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10368 # compilation failed
10369 lt_cv_dlopen_self=no
10376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10377 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10379 if test "x$lt_cv_dlopen_self" = xyes; then
10380 LDFLAGS="$LDFLAGS $link_static_flag"
10381 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self_static+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self_static=cross
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10402 # define LT_DLGLOBAL RTLD_GLOBAL
10405 # define LT_DLGLOBAL DL_GLOBAL
10407 # define LT_DLGLOBAL 0
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10418 # define LT_DLLAZY_OR_NOW DL_LAZY
10421 # define LT_DLLAZY_OR_NOW RTLD_NOW
10424 # define LT_DLLAZY_OR_NOW DL_NOW
10426 # define LT_DLLAZY_OR_NOW 0
10434 extern "C" void exit (int);
10437 void fnord() { int i=42;}
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458 (./conftest; exit; ) >&5 2>/dev/null
10460 case x$lt_status in
10461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10463 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10466 # compilation failed
10467 lt_cv_dlopen_self_static=no
10474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10475 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10478 CPPFLAGS="$save_CPPFLAGS"
10479 LDFLAGS="$save_LDFLAGS"
10484 case $lt_cv_dlopen_self in
10485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10486 *) enable_dlopen_self=unknown ;;
10489 case $lt_cv_dlopen_self_static in
10490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10491 *) enable_dlopen_self_static=unknown ;;
10496 # Report which librarie types wil actually be built
10497 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10498 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10499 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10500 echo "${ECHO_T}$can_build_shared" >&6
10502 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10503 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10504 test "$can_build_shared" = "no" && enable_shared=no
10506 # On AIX, shared libraries and static libraries use the same namespace, and
10507 # are all built from PIC.
10510 test "$enable_shared" = yes && enable_static=no
10511 if test -n "$RANLIB"; then
10512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10513 postinstall_cmds='$RANLIB $lib'
10518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10519 test "$enable_shared" = yes && enable_static=no
10523 echo "$as_me:$LINENO: result: $enable_shared" >&5
10524 echo "${ECHO_T}$enable_shared" >&6
10526 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10527 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10528 # Make sure either enable_shared or enable_static is yes.
10529 test "$enable_shared" = yes || enable_static=yes
10530 echo "$as_me:$LINENO: result: $enable_static" >&5
10531 echo "${ECHO_T}$enable_static" >&6
10533 # The else clause should only fire when bootstrapping the
10534 # libtool distribution, otherwise you forgot to ship ltmain.sh
10535 # with your package, and you will get complaints that there are
10536 # no rules to generate ltmain.sh.
10537 if test -f "$ltmain"; then
10538 # See if we are running on zsh, and set the options which allow our commands through
10539 # without removal of \ escapes.
10540 if test -n "${ZSH_VERSION+set}" ; then
10541 setopt NO_GLOB_SUBST
10543 # Now quote all the things that may contain metacharacters while being
10544 # careful not to overquote the AC_SUBSTed values. We take copies of the
10545 # variables and quote the copies for generation of the libtool script.
10546 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10548 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10549 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10550 deplibs_check_method reload_flag reload_cmds need_locks \
10551 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10552 lt_cv_sys_global_symbol_to_c_name_address \
10553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10554 old_postinstall_cmds old_postuninstall_cmds \
10558 lt_prog_compiler_wl \
10559 lt_prog_compiler_pic \
10560 lt_prog_compiler_static \
10561 lt_prog_compiler_no_builtin_flag \
10562 export_dynamic_flag_spec \
10563 thread_safe_flag_spec \
10564 whole_archive_flag_spec \
10565 enable_shared_with_static_runtimes \
10567 old_archive_from_new_cmds \
10572 compiler_lib_search_path \
10574 archive_expsym_cmds \
10576 postuninstall_cmds \
10577 old_archive_from_expsyms_cmds \
10578 allow_undefined_flag \
10579 no_undefined_flag \
10580 export_symbols_cmds \
10581 hardcode_libdir_flag_spec \
10582 hardcode_libdir_flag_spec_ld \
10583 hardcode_libdir_separator \
10584 hardcode_automatic \
10586 module_expsym_cmds \
10587 lt_cv_prog_compiler_c_o \
10589 include_expsyms; do
10592 old_archive_cmds | \
10593 old_archive_from_new_cmds | \
10595 archive_expsym_cmds | \
10597 module_expsym_cmds | \
10598 old_archive_from_expsyms_cmds | \
10599 export_symbols_cmds | \
10600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10601 postinstall_cmds | postuninstall_cmds | \
10602 old_postinstall_cmds | old_postuninstall_cmds | \
10603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10604 # Double-quote double-evaled strings.
10605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10614 *'\$0 --fallback-echo"')
10615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10619 cfgfile="${ofile}T"
10620 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10622 { echo "$as_me:$LINENO: creating $ofile" >&5
10623 echo "$as_me: creating $ofile" >&6;}
10625 cat <<__EOF__ >> "$cfgfile"
10628 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10629 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10630 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10632 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10633 # Free Software Foundation, Inc.
10635 # This file is part of GNU Libtool:
10636 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10638 # This program is free software; you can redistribute it and/or modify
10639 # it under the terms of the GNU General Public License as published by
10640 # the Free Software Foundation; either version 2 of the License, or
10641 # (at your option) any later version.
10643 # This program is distributed in the hope that it will be useful, but
10644 # WITHOUT ANY WARRANTY; without even the implied warranty of
10645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10646 # General Public License for more details.
10648 # You should have received a copy of the GNU General Public License
10649 # along with this program; if not, write to the Free Software
10650 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10652 # As a special exception to the GNU General Public License, if you
10653 # distribute this file as part of a program that contains a
10654 # configuration script generated by Autoconf, you may include it under
10655 # the same distribution terms that you use for the rest of that program.
10657 # A sed program that does not truncate output.
10660 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10661 Xsed="$SED -e 1s/^X//"
10663 # The HP-UX ksh and POSIX shell print the target directory to stdout
10664 # if CDPATH is set.
10665 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10667 # The names of the tagged configurations supported by this script.
10670 # ### BEGIN LIBTOOL CONFIG
10672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10674 # Shell to use when invoking shell scripts.
10677 # Whether or not to build shared libraries.
10678 build_libtool_libs=$enable_shared
10680 # Whether or not to build static libraries.
10681 build_old_libs=$enable_static
10683 # Whether or not to add -lc for building shared libraries.
10684 build_libtool_need_lc=$archive_cmds_need_lc
10686 # Whether or not to disallow shared libs when runtime libs are static
10687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10689 # Whether or not to optimize for fast installation.
10690 fast_install=$enable_fast_install
10693 host_alias=$host_alias
10697 # The build system.
10698 build_alias=$build_alias
10702 # An echo program that does not interpret backslashes.
10707 AR_FLAGS=$lt_AR_FLAGS
10712 # A language-specific compiler.
10715 # Is the compiler the GNU C compiler?
10721 # The linker used to build libraries.
10724 # Whether we need hard or soft links.
10727 # A BSD-compatible nm program.
10730 # A symbol stripping program
10733 # Used to examine libraries when file_magic_cmd begins "file"
10734 MAGIC_CMD=$MAGIC_CMD
10736 # Used on cygwin: DLL creation program.
10739 # Used on cygwin: object dumper.
10742 # Used on cygwin: assembler.
10745 # The name of the directory that contains temporary libtool files.
10748 # How to create reloadable object files.
10749 reload_flag=$lt_reload_flag
10750 reload_cmds=$lt_reload_cmds
10752 # How to pass a linker flag through the compiler.
10753 wl=$lt_lt_prog_compiler_wl
10755 # Object file suffix (normally "o").
10756 objext="$ac_objext"
10758 # Old archive suffix (normally "a").
10761 # Shared library suffix (normally ".so").
10762 shrext_cmds='$shrext_cmds'
10764 # Executable file suffix (normally "").
10767 # Additional compiler flags for building library objects.
10768 pic_flag=$lt_lt_prog_compiler_pic
10771 # What is the maximum length of a command?
10772 max_cmd_len=$lt_cv_sys_max_cmd_len
10774 # Does compiler simultaneously support -c and -o options?
10775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10777 # Must we lock files when doing compilation?
10778 need_locks=$lt_need_locks
10780 # Do we need the lib prefix for modules?
10781 need_lib_prefix=$need_lib_prefix
10783 # Do we need a version for libraries?
10784 need_version=$need_version
10786 # Whether dlopen is supported.
10787 dlopen_support=$enable_dlopen
10789 # Whether dlopen of programs is supported.
10790 dlopen_self=$enable_dlopen_self
10792 # Whether dlopen of statically linked programs is supported.
10793 dlopen_self_static=$enable_dlopen_self_static
10795 # Compiler flag to prevent dynamic linking.
10796 link_static_flag=$lt_lt_prog_compiler_static
10798 # Compiler flag to turn off builtin functions.
10799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10801 # Compiler flag to allow reflexive dlopens.
10802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10804 # Compiler flag to generate shared objects directly from archives.
10805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10807 # Compiler flag to generate thread-safe objects.
10808 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10810 # Library versioning type.
10811 version_type=$version_type
10813 # Format of library name prefix.
10814 libname_spec=$lt_libname_spec
10816 # List of archive names. First name is the real one, the rest are links.
10817 # The last name is the one that the linker finds with -lNAME.
10818 library_names_spec=$lt_library_names_spec
10820 # The coded name of the library, if different from the real name.
10821 soname_spec=$lt_soname_spec
10823 # Commands used to build and install an old-style archive.
10825 old_archive_cmds=$lt_old_archive_cmds
10826 old_postinstall_cmds=$lt_old_postinstall_cmds
10827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10829 # Create an old-style archive from a shared archive.
10830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10832 # Create a temporary old-style archive to link instead of a shared archive.
10833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10835 # Commands used to build and install a shared archive.
10836 archive_cmds=$lt_archive_cmds
10837 archive_expsym_cmds=$lt_archive_expsym_cmds
10838 postinstall_cmds=$lt_postinstall_cmds
10839 postuninstall_cmds=$lt_postuninstall_cmds
10841 # Commands used to build a loadable module (assumed same as above if empty)
10842 module_cmds=$lt_module_cmds
10843 module_expsym_cmds=$lt_module_expsym_cmds
10845 # Commands to strip libraries.
10846 old_striplib=$lt_old_striplib
10847 striplib=$lt_striplib
10849 # Dependencies to place before the objects being linked to create a
10851 predep_objects=$lt_predep_objects
10853 # Dependencies to place after the objects being linked to create a
10855 postdep_objects=$lt_postdep_objects
10857 # Dependencies to place before the objects being linked to create a
10859 predeps=$lt_predeps
10861 # Dependencies to place after the objects being linked to create a
10863 postdeps=$lt_postdeps
10865 # The library search path used internally by the compiler when linking
10866 # a shared library.
10867 compiler_lib_search_path=$lt_compiler_lib_search_path
10869 # Method to check whether dependent libraries are shared objects.
10870 deplibs_check_method=$lt_deplibs_check_method
10872 # Command to use when deplibs_check_method == file_magic.
10873 file_magic_cmd=$lt_file_magic_cmd
10875 # Flag that allows shared libraries with undefined symbols to be built.
10876 allow_undefined_flag=$lt_allow_undefined_flag
10878 # Flag that forces no undefined symbols.
10879 no_undefined_flag=$lt_no_undefined_flag
10881 # Commands used to finish a libtool library installation in a directory.
10882 finish_cmds=$lt_finish_cmds
10884 # Same as above, but a single script fragment to be evaled but not shown.
10885 finish_eval=$lt_finish_eval
10887 # Take the output of nm and produce a listing of raw symbols and C names.
10888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10890 # Transform the output of nm in a proper C declaration
10891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10893 # Transform the output of nm in a C name address pair
10894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10896 # This is the shared library runtime path variable.
10897 runpath_var=$runpath_var
10899 # This is the shared library path variable.
10900 shlibpath_var=$shlibpath_var
10902 # Is shlibpath searched before the hard-coded library search path?
10903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10905 # How to hardcode a shared library path into an executable.
10906 hardcode_action=$hardcode_action
10908 # Whether we should hardcode library paths into libraries.
10909 hardcode_into_libs=$hardcode_into_libs
10911 # Flag to hardcode \$libdir into a binary during linking.
10912 # This must work even if \$libdir does not exist.
10913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10915 # If ld is used when linking, flag to hardcode \$libdir into
10916 # a binary during linking. This must work even if \$libdir does
10918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10920 # Whether we need a single -rpath flag with a separated argument.
10921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10924 # resulting binary.
10925 hardcode_direct=$hardcode_direct
10927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10928 # resulting binary.
10929 hardcode_minus_L=$hardcode_minus_L
10931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10932 # the resulting binary.
10933 hardcode_shlibpath_var=$hardcode_shlibpath_var
10935 # Set to yes if building a shared library automatically hardcodes DIR into the library
10936 # and all subsequent libraries and executables linked against it.
10937 hardcode_automatic=$hardcode_automatic
10939 # Variables whose values should be saved in libtool wrapper scripts and
10940 # restored at relink time.
10941 variables_saved_for_relink="$variables_saved_for_relink"
10943 # Whether libtool must link a program against all its dependency libraries.
10944 link_all_deplibs=$link_all_deplibs
10946 # Compile-time system search path for libraries
10947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10949 # Run-time system search path for libraries
10950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10952 # Fix the shell variable \$srcfile for the compiler.
10953 fix_srcfile_path="$fix_srcfile_path"
10955 # Set to yes if exported symbols are required.
10956 always_export_symbols=$always_export_symbols
10958 # The commands to list exported symbols.
10959 export_symbols_cmds=$lt_export_symbols_cmds
10961 # The commands to extract the exported symbol list from a shared archive.
10962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10964 # Symbols that should not be listed in the preloaded symbols.
10965 exclude_expsyms=$lt_exclude_expsyms
10967 # Symbols that must always be exported.
10968 include_expsyms=$lt_include_expsyms
10970 # ### END LIBTOOL CONFIG
10977 cat <<\EOF >> "$cfgfile"
10979 # AIX sometimes has problems with the GCC collect2 program. For some
10980 # reason, if we set the COLLECT_NAMES environment variable, the problems
10981 # vanish in a puff of smoke.
10982 if test "X${COLLECT_NAMES+set}" != Xset; then
10984 export COLLECT_NAMES
10990 # We use sed instead of cat because bash on DJGPP gets confused if
10991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10992 # text mode, it properly converts lines to CR/LF. This bash problem
10993 # is reportedly fixed, but why not run on old versions too?
10994 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10996 mv -f "$cfgfile" "$ofile" || \
10997 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11001 # If there is no Makefile yet, we rely on a make rule to execute
11002 # `config.status --recheck' to rerun these tests and create the
11003 # libtool script then.
11004 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11005 if test -f "$ltmain_in"; then
11006 test -f Makefile && make "$ltmain"
11012 ac_cpp='$CPP $CPPFLAGS'
11013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020 # Check whether --with-tags or --without-tags was given.
11021 if test "${with_tags+set}" = set; then
11022 withval="$with_tags"
11023 tagnames="$withval"
11026 if test -f "$ltmain" && test -n "$tagnames"; then
11027 if test ! -f "${ofile}"; then
11028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11029 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11032 if test -z "$LTCC"; then
11033 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11034 if test -z "$LTCC"; then
11035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11036 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11039 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11043 # Extract list of available tagged configurations in $ofile.
11044 # Note that this assumes the entire list is on one line.
11045 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11048 for tagname in $tagnames; do
11050 # Check whether tagname contains only valid characters
11051 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11053 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11054 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11055 { (exit 1); exit 1; }; }
11059 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11061 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11062 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11063 { (exit 1); exit 1; }; }
11066 # Update the list of available tags.
11067 if test -n "$tagname"; then
11068 echo appending configuration tag \"$tagname\" to $ofile
11072 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11073 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11074 (test "X$CXX" != "Xg++"))) ; then
11082 if test -n "$F77" && test "X$F77" != "Xno"; then
11090 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11101 # Source file extension for RC test sources.
11104 # Object file extension for compiled RC test sources.
11108 # Code to be used in simple compile tests
11109 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11111 # Code to be used in simple link tests
11112 lt_simple_link_test_code="$lt_simple_compile_test_code"
11114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11116 # If no C compiler was specified, use CC.
11119 # Allow CC to be a program name with arguments.
11123 # save warnings/boilerplate of simple test code
11124 ac_outfile=conftest.$ac_objext
11125 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11127 _lt_compiler_boilerplate=`cat conftest.err`
11130 ac_outfile=conftest.$ac_objext
11131 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11133 _lt_linker_boilerplate=`cat conftest.err`
11137 # Allow CC to be a program name with arguments.
11142 for cc_temp in $compiler""; do
11144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11152 lt_cv_prog_compiler_c_o_RC=yes
11154 # The else clause should only fire when bootstrapping the
11155 # libtool distribution, otherwise you forgot to ship ltmain.sh
11156 # with your package, and you will get complaints that there are
11157 # no rules to generate ltmain.sh.
11158 if test -f "$ltmain"; then
11159 # See if we are running on zsh, and set the options which allow our commands through
11160 # without removal of \ escapes.
11161 if test -n "${ZSH_VERSION+set}" ; then
11162 setopt NO_GLOB_SUBST
11164 # Now quote all the things that may contain metacharacters while being
11165 # careful not to overquote the AC_SUBSTed values. We take copies of the
11166 # variables and quote the copies for generation of the libtool script.
11167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11171 deplibs_check_method reload_flag reload_cmds need_locks \
11172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11173 lt_cv_sys_global_symbol_to_c_name_address \
11174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11175 old_postinstall_cmds old_postuninstall_cmds \
11179 lt_prog_compiler_wl_RC \
11180 lt_prog_compiler_pic_RC \
11181 lt_prog_compiler_static_RC \
11182 lt_prog_compiler_no_builtin_flag_RC \
11183 export_dynamic_flag_spec_RC \
11184 thread_safe_flag_spec_RC \
11185 whole_archive_flag_spec_RC \
11186 enable_shared_with_static_runtimes_RC \
11187 old_archive_cmds_RC \
11188 old_archive_from_new_cmds_RC \
11189 predep_objects_RC \
11190 postdep_objects_RC \
11193 compiler_lib_search_path_RC \
11195 archive_expsym_cmds_RC \
11196 postinstall_cmds_RC \
11197 postuninstall_cmds_RC \
11198 old_archive_from_expsyms_cmds_RC \
11199 allow_undefined_flag_RC \
11200 no_undefined_flag_RC \
11201 export_symbols_cmds_RC \
11202 hardcode_libdir_flag_spec_RC \
11203 hardcode_libdir_flag_spec_ld_RC \
11204 hardcode_libdir_separator_RC \
11205 hardcode_automatic_RC \
11207 module_expsym_cmds_RC \
11208 lt_cv_prog_compiler_c_o_RC \
11209 exclude_expsyms_RC \
11210 include_expsyms_RC; do
11213 old_archive_cmds_RC | \
11214 old_archive_from_new_cmds_RC | \
11215 archive_cmds_RC | \
11216 archive_expsym_cmds_RC | \
11218 module_expsym_cmds_RC | \
11219 old_archive_from_expsyms_cmds_RC | \
11220 export_symbols_cmds_RC | \
11221 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11222 postinstall_cmds | postuninstall_cmds | \
11223 old_postinstall_cmds | old_postuninstall_cmds | \
11224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11225 # Double-quote double-evaled strings.
11226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11235 *'\$0 --fallback-echo"')
11236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11242 cat <<__EOF__ >> "$cfgfile"
11243 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11247 # Shell to use when invoking shell scripts.
11250 # Whether or not to build shared libraries.
11251 build_libtool_libs=$enable_shared
11253 # Whether or not to build static libraries.
11254 build_old_libs=$enable_static
11256 # Whether or not to add -lc for building shared libraries.
11257 build_libtool_need_lc=$archive_cmds_need_lc_RC
11259 # Whether or not to disallow shared libs when runtime libs are static
11260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11262 # Whether or not to optimize for fast installation.
11263 fast_install=$enable_fast_install
11266 host_alias=$host_alias
11270 # The build system.
11271 build_alias=$build_alias
11275 # An echo program that does not interpret backslashes.
11280 AR_FLAGS=$lt_AR_FLAGS
11285 # A language-specific compiler.
11288 # Is the compiler the GNU C compiler?
11294 # The linker used to build libraries.
11297 # Whether we need hard or soft links.
11300 # A BSD-compatible nm program.
11303 # A symbol stripping program
11306 # Used to examine libraries when file_magic_cmd begins "file"
11307 MAGIC_CMD=$MAGIC_CMD
11309 # Used on cygwin: DLL creation program.
11312 # Used on cygwin: object dumper.
11315 # Used on cygwin: assembler.
11318 # The name of the directory that contains temporary libtool files.
11321 # How to create reloadable object files.
11322 reload_flag=$lt_reload_flag
11323 reload_cmds=$lt_reload_cmds
11325 # How to pass a linker flag through the compiler.
11326 wl=$lt_lt_prog_compiler_wl_RC
11328 # Object file suffix (normally "o").
11329 objext="$ac_objext"
11331 # Old archive suffix (normally "a").
11334 # Shared library suffix (normally ".so").
11335 shrext_cmds='$shrext_cmds'
11337 # Executable file suffix (normally "").
11340 # Additional compiler flags for building library objects.
11341 pic_flag=$lt_lt_prog_compiler_pic_RC
11344 # What is the maximum length of a command?
11345 max_cmd_len=$lt_cv_sys_max_cmd_len
11347 # Does compiler simultaneously support -c and -o options?
11348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11350 # Must we lock files when doing compilation?
11351 need_locks=$lt_need_locks
11353 # Do we need the lib prefix for modules?
11354 need_lib_prefix=$need_lib_prefix
11356 # Do we need a version for libraries?
11357 need_version=$need_version
11359 # Whether dlopen is supported.
11360 dlopen_support=$enable_dlopen
11362 # Whether dlopen of programs is supported.
11363 dlopen_self=$enable_dlopen_self
11365 # Whether dlopen of statically linked programs is supported.
11366 dlopen_self_static=$enable_dlopen_self_static
11368 # Compiler flag to prevent dynamic linking.
11369 link_static_flag=$lt_lt_prog_compiler_static_RC
11371 # Compiler flag to turn off builtin functions.
11372 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11374 # Compiler flag to allow reflexive dlopens.
11375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11377 # Compiler flag to generate shared objects directly from archives.
11378 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11380 # Compiler flag to generate thread-safe objects.
11381 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11383 # Library versioning type.
11384 version_type=$version_type
11386 # Format of library name prefix.
11387 libname_spec=$lt_libname_spec
11389 # List of archive names. First name is the real one, the rest are links.
11390 # The last name is the one that the linker finds with -lNAME.
11391 library_names_spec=$lt_library_names_spec
11393 # The coded name of the library, if different from the real name.
11394 soname_spec=$lt_soname_spec
11396 # Commands used to build and install an old-style archive.
11398 old_archive_cmds=$lt_old_archive_cmds_RC
11399 old_postinstall_cmds=$lt_old_postinstall_cmds
11400 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11402 # Create an old-style archive from a shared archive.
11403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11405 # Create a temporary old-style archive to link instead of a shared archive.
11406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11408 # Commands used to build and install a shared archive.
11409 archive_cmds=$lt_archive_cmds_RC
11410 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11411 postinstall_cmds=$lt_postinstall_cmds
11412 postuninstall_cmds=$lt_postuninstall_cmds
11414 # Commands used to build a loadable module (assumed same as above if empty)
11415 module_cmds=$lt_module_cmds_RC
11416 module_expsym_cmds=$lt_module_expsym_cmds_RC
11418 # Commands to strip libraries.
11419 old_striplib=$lt_old_striplib
11420 striplib=$lt_striplib
11422 # Dependencies to place before the objects being linked to create a
11424 predep_objects=$lt_predep_objects_RC
11426 # Dependencies to place after the objects being linked to create a
11428 postdep_objects=$lt_postdep_objects_RC
11430 # Dependencies to place before the objects being linked to create a
11432 predeps=$lt_predeps_RC
11434 # Dependencies to place after the objects being linked to create a
11436 postdeps=$lt_postdeps_RC
11438 # The library search path used internally by the compiler when linking
11439 # a shared library.
11440 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11442 # Method to check whether dependent libraries are shared objects.
11443 deplibs_check_method=$lt_deplibs_check_method
11445 # Command to use when deplibs_check_method == file_magic.
11446 file_magic_cmd=$lt_file_magic_cmd
11448 # Flag that allows shared libraries with undefined symbols to be built.
11449 allow_undefined_flag=$lt_allow_undefined_flag_RC
11451 # Flag that forces no undefined symbols.
11452 no_undefined_flag=$lt_no_undefined_flag_RC
11454 # Commands used to finish a libtool library installation in a directory.
11455 finish_cmds=$lt_finish_cmds
11457 # Same as above, but a single script fragment to be evaled but not shown.
11458 finish_eval=$lt_finish_eval
11460 # Take the output of nm and produce a listing of raw symbols and C names.
11461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11463 # Transform the output of nm in a proper C declaration
11464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11466 # Transform the output of nm in a C name address pair
11467 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11469 # This is the shared library runtime path variable.
11470 runpath_var=$runpath_var
11472 # This is the shared library path variable.
11473 shlibpath_var=$shlibpath_var
11475 # Is shlibpath searched before the hard-coded library search path?
11476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11478 # How to hardcode a shared library path into an executable.
11479 hardcode_action=$hardcode_action_RC
11481 # Whether we should hardcode library paths into libraries.
11482 hardcode_into_libs=$hardcode_into_libs
11484 # Flag to hardcode \$libdir into a binary during linking.
11485 # This must work even if \$libdir does not exist.
11486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11488 # If ld is used when linking, flag to hardcode \$libdir into
11489 # a binary during linking. This must work even if \$libdir does
11491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11493 # Whether we need a single -rpath flag with a separated argument.
11494 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11496 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11497 # resulting binary.
11498 hardcode_direct=$hardcode_direct_RC
11500 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11501 # resulting binary.
11502 hardcode_minus_L=$hardcode_minus_L_RC
11504 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11505 # the resulting binary.
11506 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11508 # Set to yes if building a shared library automatically hardcodes DIR into the library
11509 # and all subsequent libraries and executables linked against it.
11510 hardcode_automatic=$hardcode_automatic_RC
11512 # Variables whose values should be saved in libtool wrapper scripts and
11513 # restored at relink time.
11514 variables_saved_for_relink="$variables_saved_for_relink"
11516 # Whether libtool must link a program against all its dependency libraries.
11517 link_all_deplibs=$link_all_deplibs_RC
11519 # Compile-time system search path for libraries
11520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11522 # Run-time system search path for libraries
11523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11525 # Fix the shell variable \$srcfile for the compiler.
11526 fix_srcfile_path="$fix_srcfile_path_RC"
11528 # Set to yes if exported symbols are required.
11529 always_export_symbols=$always_export_symbols_RC
11531 # The commands to list exported symbols.
11532 export_symbols_cmds=$lt_export_symbols_cmds_RC
11534 # The commands to extract the exported symbol list from a shared archive.
11535 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11537 # Symbols that should not be listed in the preloaded symbols.
11538 exclude_expsyms=$lt_exclude_expsyms_RC
11540 # Symbols that must always be exported.
11541 include_expsyms=$lt_include_expsyms_RC
11543 # ### END LIBTOOL TAG CONFIG: $tagname
11549 # If there is no Makefile yet, we rely on a make rule to execute
11550 # `config.status --recheck' to rerun these tests and create the
11551 # libtool script then.
11552 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11553 if test -f "$ltmain_in"; then
11554 test -f Makefile && make "$ltmain"
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11570 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11571 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11572 { (exit 1); exit 1; }; }
11576 # Append the new tag name to the list of available tags.
11577 if test -n "$tagname" ; then
11578 available_tags="$available_tags $tagname"
11584 # Now substitute the updated list of available tags.
11585 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11586 mv "${ofile}T" "$ofile"
11590 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11591 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11592 { (exit 1); exit 1; }; }
11598 # This can be used to rebuild libtool when needed
11599 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11601 # Always use our own libtool.
11602 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11604 # Prevent multiple expansion
11616 if test $ol_enable_perl != no ; then
11617 # Extract the first word of "perl", so it can be a program name with args.
11618 set dummy perl; ac_word=$2
11619 echo "$as_me:$LINENO: checking for $ac_word" >&5
11620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11621 if test "${ac_cv_path_PERLBIN+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11647 PERLBIN=$ac_cv_path_PERLBIN
11649 if test -n "$PERLBIN"; then
11650 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11651 echo "${ECHO_T}$PERLBIN" >&6
11653 echo "$as_me:$LINENO: result: no" >&5
11654 echo "${ECHO_T}no" >&6
11658 if test "no$PERLBIN" = "no" ; then
11659 if test $ol_enable_perl = yes ; then
11660 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11661 echo "$as_me: error: could not locate perl" >&2;}
11662 { (exit 1); exit 1; }; }
11666 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11667 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11669 if test x"$ol_enable_perl" = "xyes" ; then
11670 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11672 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11685 # On Suns, sometimes $CPP names a directory.
11686 if test -n "$CPP" && test -d "$CPP"; then
11689 if test -z "$CPP"; then
11690 if test "${ac_cv_prog_CPP+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 # Double quotes because CPP needs to be expanded
11694 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11696 ac_preproc_ok=false
11697 for ac_c_preproc_warn_flag in '' yes
11699 # Use a header file that comes with gcc, so configuring glibc
11700 # with a fresh cross-compiler works.
11701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 # <limits.h> exists even on freestanding compilers.
11703 # On the NeXT, cc -E runs the code through the compiler's parser,
11704 # not just through cpp. "Syntax error" is here to catch this case.
11705 cat >conftest.$ac_ext <<_ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11712 # include <limits.h>
11714 # include <assert.h>
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
11728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735 if test -z "$ac_cpp_err"; then
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 # Broken: fails on valid input.
11744 rm -f conftest.err conftest.$ac_ext
11746 # OK, works on sane cases. Now check whether non-existent headers
11747 # can be detected and how.
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <ac_nonexistent.h>
11756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11759 grep -v '^ *+' conftest.er1 >conftest.err
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } >/dev/null; then
11764 if test -s conftest.err; then
11765 ac_cpp_err=$ac_c_preproc_warn_flag
11766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773 if test -z "$ac_cpp_err"; then
11774 # Broken: success on invalid input.
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 # Passes both tests.
11784 rm -f conftest.err conftest.$ac_ext
11787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11788 rm -f conftest.err conftest.$ac_ext
11789 if $ac_preproc_ok; then
11794 ac_cv_prog_CPP=$CPP
11797 CPP=$ac_cv_prog_CPP
11799 ac_cv_prog_CPP=$CPP
11801 echo "$as_me:$LINENO: result: $CPP" >&5
11802 echo "${ECHO_T}$CPP" >&6
11803 ac_preproc_ok=false
11804 for ac_c_preproc_warn_flag in '' yes
11806 # Use a header file that comes with gcc, so configuring glibc
11807 # with a fresh cross-compiler works.
11808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 # <limits.h> exists even on freestanding compilers.
11810 # On the NeXT, cc -E runs the code through the compiler's parser,
11811 # not just through cpp. "Syntax error" is here to catch this case.
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 # include <limits.h>
11821 # include <assert.h>
11825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null; then
11833 if test -s conftest.err; then
11834 ac_cpp_err=$ac_c_preproc_warn_flag
11835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842 if test -z "$ac_cpp_err"; then
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 # Broken: fails on valid input.
11851 rm -f conftest.err conftest.$ac_ext
11853 # OK, works on sane cases. Now check whether non-existent headers
11854 # can be detected and how.
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <ac_nonexistent.h>
11863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev/null; then
11871 if test -s conftest.err; then
11872 ac_cpp_err=$ac_c_preproc_warn_flag
11873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 if test -z "$ac_cpp_err"; then
11881 # Broken: success on invalid input.
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 # Passes both tests.
11891 rm -f conftest.err conftest.$ac_ext
11894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11895 rm -f conftest.err conftest.$ac_ext
11896 if $ac_preproc_ok; then
11899 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11900 See \`config.log' for more details." >&5
11901 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11902 See \`config.log' for more details." >&2;}
11903 { (exit 1); exit 1; }; }
11907 ac_cpp='$CPP $CPPFLAGS'
11908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11914 *mingw32* ) ac_cv_mingw32=yes ;;
11915 *cygwin* ) ac_cv_cygwin=yes ;;
11921 cat >>confdefs.h <<_ACEOF
11922 #define EXEEXT "${EXEEXT}"
11926 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11927 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11928 if test "${ac_cv_lib_be_be_app+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-lbe -lroot -lnet $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 /* Override any gcc2 internal prototype to avoid an error. */
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_be_be_app=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_lib_be_be_app=no
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11989 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11990 if test $ac_cv_lib_be_be_app = yes; then
11991 LIBS="$LIBS -lbe -lroot -lnet"
11998 ac_cpp='$CPP $CPPFLAGS'
11999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12002 if test -n "$ac_tool_prefix"; then
12003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12005 echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12007 if test "${ac_cv_prog_CC+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 if test -n "$CC"; then
12011 ac_cv_prog_CC="$CC" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 if test -n "$CC"; then
12031 echo "$as_me:$LINENO: result: $CC" >&5
12032 echo "${ECHO_T}$CC" >&6
12034 echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6
12039 if test -z "$ac_cv_prog_CC"; then
12041 # Extract the first word of "gcc", so it can be a program name with args.
12042 set dummy gcc; ac_word=$2
12043 echo "$as_me:$LINENO: checking for $ac_word" >&5
12044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 if test -n "$ac_ct_CC"; then
12049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058 ac_cv_prog_ac_ct_CC="gcc"
12059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12068 if test -n "$ac_ct_CC"; then
12069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12070 echo "${ECHO_T}$ac_ct_CC" >&6
12072 echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12078 CC="$ac_cv_prog_CC"
12081 if test -z "$CC"; then
12082 if test -n "$ac_tool_prefix"; then
12083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12084 set dummy ${ac_tool_prefix}cc; ac_word=$2
12085 echo "$as_me:$LINENO: checking for $ac_word" >&5
12086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12087 if test "${ac_cv_prog_CC+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 if test -n "$CC"; then
12091 ac_cv_prog_CC="$CC" # Let the user override the test.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_prog_CC="${ac_tool_prefix}cc"
12101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 if test -n "$CC"; then
12111 echo "$as_me:$LINENO: result: $CC" >&5
12112 echo "${ECHO_T}$CC" >&6
12114 echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12119 if test -z "$ac_cv_prog_CC"; then
12121 # Extract the first word of "cc", so it can be a program name with args.
12122 set dummy cc; ac_word=$2
12123 echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 if test -n "$ac_ct_CC"; then
12129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_ac_ct_CC="cc"
12139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12148 if test -n "$ac_ct_CC"; then
12149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12150 echo "${ECHO_T}$ac_ct_CC" >&6
12152 echo "$as_me:$LINENO: result: no" >&5
12153 echo "${ECHO_T}no" >&6
12158 CC="$ac_cv_prog_CC"
12162 if test -z "$CC"; then
12163 # Extract the first word of "cc", so it can be a program name with args.
12164 set dummy cc; ac_word=$2
12165 echo "$as_me:$LINENO: checking for $ac_word" >&5
12166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12167 if test "${ac_cv_prog_CC+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 if test -n "$CC"; then
12171 ac_cv_prog_CC="$CC" # Let the user override the test.
12173 ac_prog_rejected=no
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in $PATH
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12182 ac_prog_rejected=yes
12186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 if test $ac_prog_rejected = yes; then
12193 # We found a bogon in the path, so make sure we never use it.
12194 set dummy $ac_cv_prog_CC
12196 if test $# != 0; then
12197 # We chose a different compiler from the bogus one.
12198 # However, it has the same basename, so the bogon will be chosen
12199 # first if we set CC to just the basename; use the full file name.
12201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12207 if test -n "$CC"; then
12208 echo "$as_me:$LINENO: result: $CC" >&5
12209 echo "${ECHO_T}$CC" >&6
12211 echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12216 if test -z "$CC"; then
12217 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12222 echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12224 if test "${ac_cv_prog_CC+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 if test -n "$CC"; then
12228 ac_cv_prog_CC="$CC" # Let the user override the test.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 if test -n "$CC"; then
12248 echo "$as_me:$LINENO: result: $CC" >&5
12249 echo "${ECHO_T}$CC" >&6
12251 echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6
12255 test -n "$CC" && break
12258 if test -z "$CC"; then
12262 # Extract the first word of "$ac_prog", so it can be a program name with args.
12263 set dummy $ac_prog; ac_word=$2
12264 echo "$as_me:$LINENO: checking for $ac_word" >&5
12265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 if test -n "$ac_ct_CC"; then
12270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279 ac_cv_prog_ac_ct_CC="$ac_prog"
12280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12289 if test -n "$ac_ct_CC"; then
12290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12291 echo "${ECHO_T}$ac_ct_CC" >&6
12293 echo "$as_me:$LINENO: result: no" >&5
12294 echo "${ECHO_T}no" >&6
12297 test -n "$ac_ct_CC" && break
12306 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12307 See \`config.log' for more details." >&5
12308 echo "$as_me: error: no acceptable C compiler found in \$PATH
12309 See \`config.log' for more details." >&2;}
12310 { (exit 1); exit 1; }; }
12312 # Provide some information about the compiler.
12313 echo "$as_me:$LINENO:" \
12314 "checking for C compiler version" >&5
12315 ac_compiler=`set X $ac_compile; echo $2`
12316 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12317 (eval $ac_compiler --version </dev/null >&5) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }
12321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12322 (eval $ac_compiler -v </dev/null >&5) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }
12326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12327 (eval $ac_compiler -V </dev/null >&5) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }
12332 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12333 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12334 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12355 rm -f conftest.$ac_objext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag"
12365 || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest.$ac_objext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_compiler_gnu=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12388 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12390 GCC=`test $ac_compiler_gnu = yes && echo yes`
12391 ac_test_CFLAGS=${CFLAGS+set}
12392 ac_save_CFLAGS=$CFLAGS
12394 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12396 if test "${ac_cv_prog_cc_g+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_prog_cc_g=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12446 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12447 if test "$ac_test_CFLAGS" = set; then
12448 CFLAGS=$ac_save_CFLAGS
12449 elif test $ac_cv_prog_cc_g = yes; then
12450 if test "$GCC" = yes; then
12456 if test "$GCC" = yes; then
12462 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12463 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12464 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 ac_cv_prog_cc_stdc=no
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 #include <stdarg.h>
12477 #include <sys/types.h>
12478 #include <sys/stat.h>
12479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12480 struct buf { int x; };
12481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12482 static char *e (p, i)
12488 static char *f (char * (*g) (char **, int), char **p, ...)
12493 s = g (p, va_arg (v,int));
12498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12499 function prototypes and stuff, but not '\xHH' hex character constants.
12500 These don't provoke an error unfortunately, instead are silently treated
12501 as 'x'. The following induces an error, until -std1 is added to get
12502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12503 array size at least. It's necessary to write '\x00'==0 to get something
12504 that's true only with -std1. */
12505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12507 int test (int i, double x);
12508 struct s1 {int (*f) (int a);};
12509 struct s2 {int (*f) (double a);};
12510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12516 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12521 # Don't try gcc -ansi; that turns off useful extensions and
12522 # breaks some systems' header files.
12523 # AIX -qlanglvl=ansi
12524 # Ultrix and OSF/1 -std1
12525 # HP-UX 10.20 and later -Ae
12526 # HP-UX older versions -Aa -D_HPUX_SOURCE
12527 # SVR4 -Xc -D__EXTENSIONS__
12528 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12530 CC="$ac_save_CC $ac_arg"
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_prog_cc_stdc=$ac_arg
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12560 rm -f conftest.err conftest.$ac_objext
12562 rm -f conftest.$ac_ext conftest.$ac_objext
12567 case "x$ac_cv_prog_cc_stdc" in
12569 echo "$as_me:$LINENO: result: none needed" >&5
12570 echo "${ECHO_T}none needed" >&6 ;;
12572 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12573 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12574 CC="$CC $ac_cv_prog_cc_stdc" ;;
12577 # Some people use a C++ compiler to compile C. Since we use `exit',
12578 # in C++ we need to declare it. In case someone uses the same compiler
12579 # for both compiling C and C++ we need to have the C++ compiler decide
12580 # the declaration of exit, since it's the most demanding environment.
12581 cat >conftest.$ac_ext <<_ACEOF
12582 #ifndef __cplusplus
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag"
12596 || test ! -s conftest.err'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } &&
12602 { ac_try='test -s conftest.$ac_objext'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 for ac_declaration in \
12610 'extern "C" void std::exit (int) throw (); using std::exit;' \
12611 'extern "C" void std::exit (int); using std::exit;' \
12612 'extern "C" void exit (int) throw ();' \
12613 'extern "C" void exit (int);' \
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12623 #include <stdlib.h>
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12677 rm -f conftest.$ac_objext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12679 (eval $ac_compile) 2>conftest.er1
12681 grep -v '^ *+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -z "$ac_c_werror_flag"
12687 || test ! -s conftest.err'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; } &&
12693 { ac_try='test -s conftest.$ac_objext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 if test -n "$ac_declaration"; then
12709 echo '#ifdef __cplusplus' >>confdefs.h
12710 echo $ac_declaration >>confdefs.h
12711 echo '#endif' >>confdefs.h
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726 depcc="$CC" am_compiler_list=
12728 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12729 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12734 # We make a subdir and do the tests there. Otherwise we can end up
12735 # making bogus files that we don't know about and never remove. For
12736 # instance it was reported that on HP-UX the gcc test will end up
12737 # making a dummy file named `D' -- because `-MD' means `put the output
12740 # Copy depcomp to subdir because otherwise we won't find it if we're
12741 # using a relative directory.
12742 cp "$am_depcomp" conftest.dir
12744 # We will build objects and dependencies in a subdirectory because
12745 # it helps to detect inapplicable dependency modes. For instance
12746 # both Tru64's cc and ICC support -MD to output dependencies as a
12747 # side effect of compilation, but ICC will put the dependencies in
12748 # the current directory while Tru64 will put them in the object
12752 am_cv_CC_dependencies_compiler_type=none
12753 if test "$am_compiler_list" = ""; then
12754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12756 for depmode in $am_compiler_list; do
12757 # Setup a source with many dependencies, because some compilers
12758 # like to wrap large dependency lists on column 80 (with \), and
12759 # we should not choose a depcomp mode which is confused by this.
12761 # We need to recreate these files for each test, as the compiler may
12762 # overwrite some of them when testing with obscure command lines.
12763 # This happens at least with the AIX C compiler.
12765 for i in 1 2 3 4 5 6; do
12766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12767 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12768 # Solaris 8's {/usr,}/bin/sh.
12769 touch sub/conftst$i.h
12771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12775 # after this tag, mechanisms are not by side-effect, so they'll
12776 # only be used when explicitly requested
12777 if test "x$enable_dependency_tracking" = xyes; then
12785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12786 # mode. It turns out that the SunPro C++ compiler does not properly
12787 # handle `-M -o', and we need to detect this.
12788 if depmode=$depmode \
12789 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12790 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12791 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12792 >/dev/null 2>conftest.err &&
12793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12794 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12796 # icc doesn't choke on unknown options, it will just issue warnings
12797 # or remarks (even with -Werror). So we grep stderr for any message
12798 # that says an option was ignored or not supported.
12799 # When given -MP, icc 7.0 and 7.1 complain thusly:
12800 # icc: Command line warning: ignoring option '-M'; no argument required
12801 # The diagnosis changed in icc 8.0:
12802 # icc: Command line remark: option '-MP' not supported
12803 if (grep 'ignoring option' conftest.err ||
12804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12805 am_cv_CC_dependencies_compiler_type=$depmode
12812 rm -rf conftest.dir
12814 am_cv_CC_dependencies_compiler_type=none
12818 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12819 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12825 test "x$enable_dependency_tracking" != xno \
12826 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12827 am__fastdepCC_TRUE=
12828 am__fastdepCC_FALSE='#'
12830 am__fastdepCC_TRUE='#'
12831 am__fastdepCC_FALSE=
12835 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12836 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12837 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12838 { (exit 1); exit 1; }; }
12841 # test for make depend flag
12844 if test -z "${MKDEP}"; then
12845 OL_MKDEP="${CC-cc}"
12846 if test -z "${MKDEP_FLAGS}"; then
12847 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12848 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12849 if test "${ol_cv_mkdep+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 for flag in "-M" "-xM"; do
12855 cat > conftest.c <<EOF
12858 if { ac_try='$OL_MKDEP $flag conftest.c'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } \
12864 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12866 if test ! -f conftest."${ac_object}" ; then
12868 OL_MKDEP_FLAGS="$flag"
12876 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12877 echo "${ECHO_T}$ol_cv_mkdep" >&6
12880 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12884 OL_MKDEP="${MKDEP}"
12885 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12890 if test "${ol_cv_mkdep}" = no ; then
12891 # this will soon become an error
12892 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12893 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12896 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12897 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12898 if test "${ac_cv_lib_s_afopen+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 ac_check_lib_save_LIBS=$LIBS
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 /* Override any gcc2 internal prototype to avoid an error. */
12914 /* We use char because int might match the return type of a gcc2
12915 builtin and then its argument prototype would still apply. */
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_cv_lib_s_afopen=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_cv_lib_s_afopen=no
12954 rm -f conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12958 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12959 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12960 if test $ac_cv_lib_s_afopen = yes; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_AIX_SECURITY 1
12974 ac_cv_func_getopt=no
12976 cat >>confdefs.h <<\_ACEOF
12977 #define BOTH_STRINGS_H 1
12984 WITH_MODULES_ENABLED=no
12985 if test $ol_enable_modules != no ; then
12987 for ac_header in ltdl.h
12989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12991 echo "$as_me:$LINENO: checking for $ac_header" >&5
12992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999 # Is the header compilable?
13000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13009 #include <$ac_header>
13011 rm -f conftest.$ac_objext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag"
13021 || test ! -s conftest.err'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest.$ac_objext'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_header_compiler=yes
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ac_header_compiler=no
13040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13042 echo "${ECHO_T}$ac_header_compiler" >&6
13044 # Is the header present?
13045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 #include <$ac_header>
13055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } >/dev/null; then
13063 if test -s conftest.err; then
13064 ac_cpp_err=$ac_c_preproc_warn_flag
13065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13072 if test -z "$ac_cpp_err"; then
13073 ac_header_preproc=yes
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_header_preproc=no
13080 rm -f conftest.err conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082 echo "${ECHO_T}$ac_header_preproc" >&6
13084 # So? What about this header?
13085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091 ac_header_preproc=yes
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13108 ## --------------------------------------------- ##
13109 ## Report this to <http://www.openldap.org/its/> ##
13110 ## --------------------------------------------- ##
13113 sed "s/^/$as_me: WARNING: /" >&2
13116 echo "$as_me:$LINENO: checking for $ac_header" >&5
13117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 eval "$as_ac_Header=\$ac_header_preproc"
13123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13128 cat >>confdefs.h <<_ACEOF
13129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13137 if test $ac_cv_header_ltdl_h = no ; then
13138 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13139 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13140 { (exit 1); exit 1; }; }
13143 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13144 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13145 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lltdl $LIBS"
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13157 /* Override any gcc2 internal prototype to avoid an error. */
13161 /* We use char because int might match the return type of a gcc2
13162 builtin and then its argument prototype would still apply. */
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_cv_lib_ltdl_lt_dlinit=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_lib_ltdl_lt_dlinit=no
13201 rm -f conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13206 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13207 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13209 MODULES_LIBS=-lltdl
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_LIBLTDL 1
13219 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13220 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13221 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13222 { (exit 1); exit 1; }; }
13224 ol_link_modules=yes
13225 WITH_MODULES_ENABLED=yes
13228 for i in $Backends; do
13229 eval "ol_tmp=\$ol_enable_$i"
13230 if test $ol_tmp = mod ; then
13231 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13232 echo "$as_me: WARNING: building static $i backend" >&2;}
13233 eval "ol_enable_$i=yes"
13236 for i in $Overlays; do
13237 eval "ol_tmp=\$ol_enable_$i"
13238 if test $ol_tmp = mod ; then
13239 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13240 echo "$as_me: WARNING: building static $i overlay" >&2;}
13241 eval "ol_enable_$i=yes"
13247 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13248 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13249 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13261 #include <__ASCII__/generate_error.h>
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13282 if test -z "$ac_cpp_err"; then
13283 ol_cv_cpp_ebcdic=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ol_cv_cpp_ebcdic=no
13290 rm -f conftest.err conftest.$ac_ext
13292 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13293 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13294 if test $ol_cv_cpp_ebcdic = yes ; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_EBCDIC 1
13302 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13303 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13304 if test "${ol_cv_header_stdc+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <stdlib.h>
13314 #include <stdarg.h>
13315 #include <string.h>
13318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null; then
13326 if test -s conftest.err; then
13327 ac_cpp_err=$ac_c_preproc_warn_flag
13328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13335 if test -z "$ac_cpp_err"; then
13336 ol_cv_header_stdc=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ol_cv_header_stdc=no
13343 rm -f conftest.err conftest.$ac_ext
13345 if test $ol_cv_header_stdc = yes; then
13346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 #include <string.h>
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357 $EGREP "memchr" >/dev/null 2>&1; then
13360 ol_cv_header_stdc=no
13366 if test $ol_cv_header_stdc = yes; then
13367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #include <stdlib.h>
13377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13378 $EGREP "free" >/dev/null 2>&1; then
13381 ol_cv_header_stdc=no
13387 if test $ol_cv_header_stdc = yes; then
13388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13389 if test "$cross_compiling" = yes; then
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 #ifndef HAVE_EBCDIC
13400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13403 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13404 || ('j' <= (c) && (c) <= 'r') \
13405 || ('s' <= (c) && (c) <= 'z'))
13406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13409 int main () { int i; for (i = 0; i < 256; i++)
13410 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13414 rm -f conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13427 echo "$as_me: program exited with status $ac_status" >&5
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 ( exit $ac_status )
13432 ol_cv_header_stdc=no
13434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13439 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13440 if test $ol_cv_header_stdc = yes; then
13441 cat >>confdefs.h <<\_ACEOF
13442 #define STDC_HEADERS 1
13446 ac_cv_header_stdc=disable
13449 if test $ol_cv_header_stdc != yes; then
13450 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13451 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13459 ac_header_dirent=no
13460 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13461 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13462 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13463 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <sys/types.h>
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>conftest.er1
13489 grep -v '^ *+' conftest.er1 >conftest.err
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
13494 { ac_try='test -z "$ac_c_werror_flag"
13495 || test ! -s conftest.err'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest.$ac_objext'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 eval "$as_ac_Header=yes"
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 eval "$as_ac_Header=no"
13514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519 cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13523 ac_header_dirent=$ac_hdr; break
13527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13528 if test $ac_header_dirent = dirent.h; then
13529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13531 if test "${ac_cv_search_opendir+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_func_search_save_LIBS=$LIBS
13535 ac_cv_search_opendir=no
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13543 /* Override any gcc2 internal prototype to avoid an error. */
13547 /* We use char because int might match the return type of a gcc2
13548 builtin and then its argument prototype would still apply. */
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560 (eval $ac_link) 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag"
13568 || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_search_opendir="none required"
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13586 rm -f conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 if test "$ac_cv_search_opendir" = no; then
13589 for ac_lib in dir; do
13590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 /* Override any gcc2 internal prototype to avoid an error. */
13602 /* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_search_opendir="-l$ac_lib"
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13642 rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_func_search_save_LIBS
13648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13650 if test "$ac_cv_search_opendir" != no; then
13651 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13656 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13658 if test "${ac_cv_search_opendir+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_func_search_save_LIBS=$LIBS
13662 ac_cv_search_opendir=no
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 /* Override any gcc2 internal prototype to avoid an error. */
13674 /* We use char because int might match the return type of a gcc2
13675 builtin and then its argument prototype would still apply. */
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687 (eval $ac_link) 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag"
13695 || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_search_opendir="none required"
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13713 rm -f conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 if test "$ac_cv_search_opendir" = no; then
13716 for ac_lib in x; do
13717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13718 cat >conftest.$ac_ext <<_ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13725 /* Override any gcc2 internal prototype to avoid an error. */
13729 /* We use char because int might match the return type of a gcc2
13730 builtin and then its argument prototype would still apply. */
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13742 (eval $ac_link) 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag"
13750 || test ! -s conftest.err'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_search_opendir="-l$ac_lib"
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13769 rm -f conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_func_search_save_LIBS
13775 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13776 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13777 if test "$ac_cv_search_opendir" != no; then
13778 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13784 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 cat >conftest.$ac_ext <<_ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 #include <sys/types.h>
13796 #include <sys/wait.h>
13797 #ifndef WEXITSTATUS
13798 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13809 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_header_sys_wait_h=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_header_sys_wait_h=no
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13846 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13847 if test $ac_cv_header_sys_wait_h = yes; then
13849 cat >>confdefs.h <<\_ACEOF
13850 #define HAVE_SYS_WAIT_H 1
13855 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13856 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13857 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <sys/types.h>
13867 #include <termios.h>
13873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13874 $EGREP "yes" >/dev/null 2>&1; then
13875 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13877 ac_cv_sys_tiocgwinsz_in_termios_h=no
13882 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13883 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13885 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13886 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13887 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13888 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <sys/ioctl.h>
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905 $EGREP "yes" >/dev/null 2>&1; then
13906 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13908 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13913 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13914 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13916 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13918 cat >>confdefs.h <<\_ACEOF
13919 #define GWINSZ_IN_SYS_IOCTL 1
14021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo "$as_me:$LINENO: checking for $ac_header" >&5
14024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031 # Is the header compilable?
14032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 $ac_includes_default
14041 #include <$ac_header>
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>conftest.er1
14047 grep -v '^ *+' conftest.er1 >conftest.err
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 ac_header_compiler=yes
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 ac_header_compiler=no
14072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14074 echo "${ECHO_T}$ac_header_compiler" >&6
14076 # Is the header present?
14077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #include <$ac_header>
14087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } >/dev/null; then
14095 if test -s conftest.err; then
14096 ac_cpp_err=$ac_c_preproc_warn_flag
14097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14104 if test -z "$ac_cpp_err"; then
14105 ac_header_preproc=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_header_preproc=no
14112 rm -f conftest.err conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14114 echo "${ECHO_T}$ac_header_preproc" >&6
14116 # So? What about this header?
14117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14123 ac_header_preproc=yes
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14140 ## --------------------------------------------- ##
14141 ## Report this to <http://www.openldap.org/its/> ##
14142 ## --------------------------------------------- ##
14145 sed "s/^/$as_me: WARNING: /" >&2
14148 echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 eval "$as_ac_Header=\$ac_header_preproc"
14155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14160 cat >>confdefs.h <<_ACEOF
14161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14170 for ac_header in resolv.h
14172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14173 echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 $ac_includes_default
14185 #include <netinet/in.h>
14188 #include <$ac_header>
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1 >conftest.err
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 eval "$as_ac_Header=yes"
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 eval "$as_ac_Header=no"
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 for ac_header in netinet/tcp.h
14236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14237 echo "$as_me:$LINENO: checking for $ac_header" >&5
14238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 cat >conftest.$ac_ext <<_ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 $ac_includes_default
14249 #include <netinet/in.h>
14252 #include <$ac_header>
14254 rm -f conftest.$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -z "$ac_c_werror_flag"
14264 || test ! -s conftest.err'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 eval "$as_ac_Header=yes"
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 eval "$as_ac_Header=no"
14283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 for ac_header in sys/ucred.h
14300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14301 echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14313 #ifdef HAVE_SYS_PARAM_H
14314 #include <sys/param.h>
14318 #include <$ac_header>
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 eval "$as_ac_Header=yes"
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 eval "$as_ac_Header=no"
14349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14366 for ac_func in sigaction sigset
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14382 #define $ac_func innocuous_$ac_func
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14390 # include <limits.h>
14392 # include <assert.h>
14397 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14405 /* The GNU C library defines this for functions which it implements
14406 to always fail with ENOSYS. Some functions are actually named
14407 something starting with __ and the normal name is an alias. */
14408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14411 char (*f) () = $ac_func;
14420 return f != $ac_func;
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427 (eval $ac_link) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest$ac_exeext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 eval "$as_ac_var=yes"
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 eval "$as_ac_var=no"
14454 rm -f conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14459 if test `eval echo '${'$as_ac_var'}'` = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14468 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14470 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14471 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14472 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 ac_check_lib_save_LIBS=$LIBS
14477 cat >conftest.$ac_ext <<_ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14484 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>conftest.er1
14503 grep -v '^ *+' conftest.er1 >conftest.err
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_lib_V3_sigset=yes
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_cv_lib_V3_sigset=no
14528 rm -f conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14532 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14533 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14534 if test $ac_cv_lib_V3_sigset = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_LIBV3 1
14545 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14546 echo "$as_me:$LINENO: checking for winsock" >&5
14547 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14548 if test "${ol_cv_winsock+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 for curlib in ws2_32 wsock32; do
14553 LIBS="$LIBS -l$curlib"
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <winsock.h>
14567 select(0,NULL,NULL,NULL,NULL);
14569 gethostname(NULL,0);
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } &&
14584 { ac_try='test -z "$ac_c_werror_flag"
14585 || test ! -s conftest.err'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14604 rm -f conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14607 if test $ol_cv_winsock = yes; then
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_WINSOCK 1
14613 ac_cv_func_socket=yes
14614 ac_cv_func_select=yes
14615 ac_cv_func_closesocket=yes
14616 ac_cv_func_gethostname=yes
14617 if test $curlib = ws2_32; then
14618 ol_cv_winsock=winsock2
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_WINSOCK2 1
14630 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14631 echo "${ECHO_T}$ol_cv_winsock" >&6
14635 echo "$as_me:$LINENO: checking for socket" >&5
14636 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14637 if test "${ac_cv_func_socket+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14648 #define socket innocuous_socket
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char socket (); below.
14652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653 <limits.h> exists even on freestanding compilers. */
14656 # include <limits.h>
14658 # include <assert.h>
14663 /* Override any gcc2 internal prototype to avoid an error. */
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14671 /* The GNU C library defines this for functions which it implements
14672 to always fail with ENOSYS. Some functions are actually named
14673 something starting with __ and the normal name is an alias. */
14674 #if defined (__stub_socket) || defined (__stub___socket)
14677 char (*f) () = socket;
14686 return f != socket;
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693 (eval $ac_link) 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest$ac_exeext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_cv_func_socket=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_cv_func_socket=no
14720 rm -f conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14723 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14724 echo "${ECHO_T}$ac_cv_func_socket" >&6
14725 if test $ac_cv_func_socket = yes; then
14730 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14731 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14732 if test "${ac_cv_lib_socket_main+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lsocket $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_lib_socket_main=yes
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_lib_socket_main=no
14782 rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14786 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14787 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14788 if test $ac_cv_lib_socket_main = yes; then
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_LIBSOCKET 1
14793 LIBS="-lsocket $LIBS"
14798 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14799 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14800 if test "${ac_cv_lib_net_main+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 ac_check_lib_save_LIBS=$LIBS
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14823 (eval $ac_link) 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag"
14831 || test ! -s conftest.err'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_lib_net_main=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_cv_lib_net_main=no
14850 rm -f conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS
14854 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14855 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14856 if test $ac_cv_lib_net_main = yes; then
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_LIBNET 1
14866 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14867 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14868 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-lnsl_s $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_lib_nsl_s_main=yes
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ac_cv_lib_nsl_s_main=no
14918 rm -f conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14923 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14924 if test $ac_cv_lib_nsl_s_main = yes; then
14925 cat >>confdefs.h <<_ACEOF
14926 #define HAVE_LIBNSL_S 1
14929 LIBS="-lnsl_s $LIBS"
14934 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14935 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14936 if test "${ac_cv_lib_nsl_main+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 ac_check_lib_save_LIBS=$LIBS
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -z "$ac_c_werror_flag"
14967 || test ! -s conftest.err'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; } &&
14973 { ac_try='test -s conftest$ac_exeext'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_cv_lib_nsl_main=yes
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_cv_lib_nsl_main=no
14986 rm -f conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14991 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14992 if test $ac_cv_lib_nsl_main = yes; then
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_LIBNSL 1
15002 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15003 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15004 if test "${ac_cv_lib_inet_socket+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 ac_check_lib_save_LIBS=$LIBS
15008 LIBS="-linet $LIBS"
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15016 /* Override any gcc2 internal prototype to avoid an error. */
15020 /* We use char because int might match the return type of a gcc2
15021 builtin and then its argument prototype would still apply. */
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_lib_inet_socket=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_cv_lib_inet_socket=no
15060 rm -f conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15065 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15066 if test $ac_cv_lib_inet_socket = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBINET 1
15071 LIBS="-linet $LIBS"
15076 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15077 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15078 if test "${ac_cv_lib_gen_main+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_check_lib_save_LIBS=$LIBS
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_lib_gen_main=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_lib_gen_main=no
15128 rm -f conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15134 if test $ac_cv_lib_gen_main = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBGEN 1
15147 echo "$as_me:$LINENO: checking for select" >&5
15148 echo $ECHO_N "checking for select... $ECHO_C" >&6
15149 if test "${ac_cv_func_select+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 /* Define select to an innocuous variant, in case <limits.h> declares select.
15159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15160 #define select innocuous_select
15162 /* System header to define __stub macros and hopefully few prototypes,
15163 which can conflict with char select (); below.
15164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15165 <limits.h> exists even on freestanding compilers. */
15168 # include <limits.h>
15170 # include <assert.h>
15175 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15183 /* The GNU C library defines this for functions which it implements
15184 to always fail with ENOSYS. Some functions are actually named
15185 something starting with __ and the normal name is an alias. */
15186 #if defined (__stub_select) || defined (__stub___select)
15189 char (*f) () = select;
15198 return f != select;
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_cv_func_select=yes
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_cv_func_select=no
15232 rm -f conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15236 echo "${ECHO_T}$ac_cv_func_select" >&6
15237 if test $ac_cv_func_select = yes; then
15240 { { echo "$as_me:$LINENO: error: select() required." >&5
15241 echo "$as_me: error: select() required." >&2;}
15242 { (exit 1); exit 1; }; }
15246 if test "${ac_cv_header_winsock_h}" != yes; then
15249 for ac_header in sys/select.h sys/socket.h
15251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15253 echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15261 # Is the header compilable?
15262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 $ac_includes_default
15271 #include <$ac_header>
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275 (eval $ac_compile) 2>conftest.er1
15277 grep -v '^ *+' conftest.er1 >conftest.err
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -z "$ac_c_werror_flag"
15283 || test ! -s conftest.err'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest.$ac_objext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_header_compiler=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_header_compiler=no
15302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15304 echo "${ECHO_T}$ac_header_compiler" >&6
15306 # Is the header present?
15307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15309 cat >conftest.$ac_ext <<_ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <$ac_header>
15317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } >/dev/null; then
15325 if test -s conftest.err; then
15326 ac_cpp_err=$ac_c_preproc_warn_flag
15327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15334 if test -z "$ac_cpp_err"; then
15335 ac_header_preproc=yes
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 ac_header_preproc=no
15342 rm -f conftest.err conftest.$ac_ext
15343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15344 echo "${ECHO_T}$ac_header_preproc" >&6
15346 # So? What about this header?
15347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15353 ac_header_preproc=yes
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15370 ## --------------------------------------------- ##
15371 ## Report this to <http://www.openldap.org/its/> ##
15372 ## --------------------------------------------- ##
15375 sed "s/^/$as_me: WARNING: /" >&2
15378 echo "$as_me:$LINENO: checking for $ac_header" >&5
15379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 eval "$as_ac_Header=\$ac_header_preproc"
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15390 cat >>confdefs.h <<_ACEOF
15391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15399 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15400 if test "${ac_cv_func_select_args+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15404 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15405 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #if HAVE_SYS_SELECT_H
15414 # include <sys/select.h>
15416 #if HAVE_SYS_SOCKET_H
15417 # include <sys/socket.h>
15423 extern int select ($ac_arg1,
15424 $ac_arg234, $ac_arg234, $ac_arg234,
15430 rm -f conftest.$ac_objext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432 (eval $ac_compile) 2>conftest.er1
15434 grep -v '^ *+' conftest.er1 >conftest.err
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -z "$ac_c_werror_flag"
15440 || test ! -s conftest.err'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; } &&
15446 { ac_try='test -s conftest.$ac_objext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462 # Provide a safe default value.
15463 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15466 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15467 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15468 ac_save_IFS=$IFS; IFS=','
15469 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15473 cat >>confdefs.h <<_ACEOF
15474 #define SELECT_TYPE_ARG1 $1
15478 cat >>confdefs.h <<_ACEOF
15479 #define SELECT_TYPE_ARG234 ($2)
15483 cat >>confdefs.h <<_ACEOF
15484 #define SELECT_TYPE_ARG5 ($3)
15493 for ac_func in poll
15495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15496 echo "$as_me:$LINENO: checking for $ac_func" >&5
15497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15498 if eval "test \"\${$as_ac_var+set}\" = set"; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15509 #define $ac_func innocuous_$ac_func
15511 /* System header to define __stub macros and hopefully few prototypes,
15512 which can conflict with char $ac_func (); below.
15513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15514 <limits.h> exists even on freestanding compilers. */
15517 # include <limits.h>
15519 # include <assert.h>
15524 /* Override any gcc2 internal prototype to avoid an error. */
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15532 /* The GNU C library defines this for functions which it implements
15533 to always fail with ENOSYS. Some functions are actually named
15534 something starting with __ and the normal name is an alias. */
15535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15538 char (*f) () = $ac_func;
15547 return f != $ac_func;
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 eval "$as_ac_var=yes"
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 eval "$as_ac_var=no"
15581 rm -f conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15586 if test `eval echo '${'$as_ac_var'}'` = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15595 for ac_header in poll.h
15597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599 echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15607 # Is the header compilable?
15608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15617 #include <$ac_header>
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_compiler=no
15648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15650 echo "${ECHO_T}$ac_header_compiler" >&6
15652 # Is the header present?
15653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 #include <$ac_header>
15663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15666 grep -v '^ *+' conftest.er1 >conftest.err
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } >/dev/null; then
15671 if test -s conftest.err; then
15672 ac_cpp_err=$ac_c_preproc_warn_flag
15673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680 if test -z "$ac_cpp_err"; then
15681 ac_header_preproc=yes
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 ac_header_preproc=no
15688 rm -f conftest.err conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15690 echo "${ECHO_T}$ac_header_preproc" >&6
15692 # So? What about this header?
15693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15699 ac_header_preproc=yes
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15716 ## --------------------------------------------- ##
15717 ## Report this to <http://www.openldap.org/its/> ##
15718 ## --------------------------------------------- ##
15721 sed "s/^/$as_me: WARNING: /" >&2
15724 echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 eval "$as_ac_Header=\$ac_header_preproc"
15731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15736 cat >>confdefs.h <<_ACEOF
15737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15746 for ac_header in sys/epoll.h
15748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15758 # Is the header compilable?
15759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 #include <$ac_header>
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772 (eval $ac_compile) 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag"
15780 || test ! -s conftest.err'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_header_compiler=yes
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ac_header_compiler=no
15799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15801 echo "${ECHO_T}$ac_header_compiler" >&6
15803 # Is the header present?
15804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 #include <$ac_header>
15814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } >/dev/null; then
15822 if test -s conftest.err; then
15823 ac_cpp_err=$ac_c_preproc_warn_flag
15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15831 if test -z "$ac_cpp_err"; then
15832 ac_header_preproc=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_preproc=no
15839 rm -f conftest.err conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15841 echo "${ECHO_T}$ac_header_preproc" >&6
15843 # So? What about this header?
15844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15850 ac_header_preproc=yes
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15867 ## --------------------------------------------- ##
15868 ## Report this to <http://www.openldap.org/its/> ##
15869 ## --------------------------------------------- ##
15872 sed "s/^/$as_me: WARNING: /" >&2
15875 echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 eval "$as_ac_Header=\$ac_header_preproc"
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887 cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15896 echo "$as_me:$LINENO: checking for epoll system call" >&5
15897 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15898 if test "$cross_compiling" = yes; then
15899 echo "$as_me:$LINENO: result: no" >&5
15900 echo "${ECHO_T}no" >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 int main(int argc, char *argv)
15910 int epfd = epoll_create(256);
15911 exit (epfd == -1 ? 1 : 0);
15914 rm -f conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 echo "$as_me:$LINENO: result: yes" >&5
15926 echo "${ECHO_T}yes" >&6
15928 cat >>confdefs.h <<\_ACEOF
15929 #define HAVE_EPOLL 1
15933 echo "$as_me: program exited with status $ac_status" >&5
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ( exit $ac_status )
15938 echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6
15941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15946 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15947 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15948 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15960 #include <sys/types.h>
15963 #include <stdlib.h>
15968 char *c = (char *) *sys_errlist
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975 (eval $ac_compile) 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag"
15983 || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ol_cv_dcl_sys_errlist=yes
15996 ol_cv_have_sys_errlist=yes
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ol_cv_dcl_sys_errlist=no
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16006 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16008 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16009 if test $ol_cv_dcl_sys_errlist = no ; then
16011 cat >>confdefs.h <<\_ACEOF
16012 #define DECL_SYS_ERRLIST 1
16016 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16017 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16018 if test "${ol_cv_have_sys_errlist+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16032 char *c = (char *) *sys_errlist
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ol_cv_have_sys_errlist=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ol_cv_have_sys_errlist=no
16066 rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16069 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16070 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16072 if test $ol_cv_have_sys_errlist = yes ; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_SYS_ERRLIST 1
16081 for ac_func in strerror strerror_r
16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16105 # include <limits.h>
16107 # include <assert.h>
16112 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126 char (*f) () = $ac_func;
16135 return f != $ac_func;
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 eval "$as_ac_var=yes"
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 eval "$as_ac_var=no"
16169 rm -f conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16182 ol_cv_func_strerror_r=no
16183 if test "${ac_cv_func_strerror_r}" = yes ; then
16184 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16185 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16186 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <string.h>
16198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16199 $EGREP "strerror_r" >/dev/null 2>&1; then
16200 ol_decl_strerror_r=yes
16202 ol_decl_strerror_r=no
16206 if test $ol_decl_strerror_r = yes ; then
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <string.h>
16217 /* from autoconf 2.59 */
16219 char x = *strerror_r (0, buf, sizeof buf);
16220 char *p = strerror_r (0, buf, sizeof buf);
16226 rm -f conftest.$ac_objext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16228 (eval $ac_compile) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ol_cv_nonposix_strerror_r=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ol_cv_nonposix_strerror_r=no
16255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16257 if test "$cross_compiling" = yes; then
16258 ol_cv_nonposix_strerror=no
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16270 strerror_r( 1, buf, sizeof buf );
16271 exit( buf[0] == 0 );
16275 rm -f conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277 (eval $ac_link) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ol_cv_nonposix_strerror_r=yes
16288 echo "$as_me: program exited with status $ac_status" >&5
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ( exit $ac_status )
16293 ol_cv_nonposix_strerror=no
16295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16301 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16302 if test $ol_cv_nonposix_strerror_r = yes ; then
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_NONPOSIX_STRERROR_R 1
16310 elif test "${ac_cv_func_strerror}" = no ; then
16311 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16312 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16313 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16325 #include <sys/types.h>
16328 #include <stdlib.h>
16333 char *c = (char *) *sys_errlist
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
16347 { ac_try='test -z "$ac_c_werror_flag"
16348 || test ! -s conftest.err'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ol_cv_dcl_sys_errlist=yes
16361 ol_cv_have_sys_errlist=yes
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ol_cv_dcl_sys_errlist=no
16368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16371 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16373 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16374 if test $ol_cv_dcl_sys_errlist = no ; then
16376 cat >>confdefs.h <<\_ACEOF
16377 #define DECL_SYS_ERRLIST 1
16381 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16382 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16383 if test "${ol_cv_have_sys_errlist+set}" = set; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 cat >conftest.$ac_ext <<_ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16397 char *c = (char *) *sys_errlist
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16404 (eval $ac_link) 2>conftest.er1
16406 grep -v '^ *+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag"
16412 || test ! -s conftest.err'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; } &&
16418 { ac_try='test -s conftest$ac_exeext'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ol_cv_have_sys_errlist=yes
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ol_cv_have_sys_errlist=no
16431 rm -f conftest.err conftest.$ac_objext \
16432 conftest$ac_exeext conftest.$ac_ext
16434 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16435 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16437 if test $ol_cv_have_sys_errlist = yes ; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_SYS_ERRLIST 1
16449 for ac_header in regex.h
16451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16453 echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16461 # Is the header compilable?
16462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16471 #include <$ac_header>
16473 rm -f conftest.$ac_objext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16475 (eval $ac_compile) 2>conftest.er1
16477 grep -v '^ *+' conftest.er1 >conftest.err
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -z "$ac_c_werror_flag"
16483 || test ! -s conftest.err'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest.$ac_objext'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_header_compiler=yes
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_compiler=no
16502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16504 echo "${ECHO_T}$ac_header_compiler" >&6
16506 # Is the header present?
16507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16509 cat >conftest.$ac_ext <<_ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 #include <$ac_header>
16517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } >/dev/null; then
16525 if test -s conftest.err; then
16526 ac_cpp_err=$ac_c_preproc_warn_flag
16527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16534 if test -z "$ac_cpp_err"; then
16535 ac_header_preproc=yes
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_header_preproc=no
16542 rm -f conftest.err conftest.$ac_ext
16543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16544 echo "${ECHO_T}$ac_header_preproc" >&6
16546 # So? What about this header?
16547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16553 ac_header_preproc=yes
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16570 ## --------------------------------------------- ##
16571 ## Report this to <http://www.openldap.org/its/> ##
16572 ## --------------------------------------------- ##
16575 sed "s/^/$as_me: WARNING: /" >&2
16578 echo "$as_me:$LINENO: checking for $ac_header" >&5
16579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 eval "$as_ac_Header=\$ac_header_preproc"
16585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16590 cat >>confdefs.h <<_ACEOF
16591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598 if test "$ac_cv_header_regex_h" != yes ; then
16599 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16600 echo "$as_me: error: POSIX regex.h required." >&2;}
16601 { (exit 1); exit 1; }; }
16603 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16604 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16605 if test "${ac_cv_search_regfree+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 ac_func_search_save_LIBS=$LIBS
16609 ac_cv_search_regfree=no
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16617 /* Override any gcc2 internal prototype to avoid an error. */
16621 /* We use char because int might match the return type of a gcc2
16622 builtin and then its argument prototype would still apply. */
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634 (eval $ac_link) 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag"
16642 || test ! -s conftest.err'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest$ac_exeext'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_search_regfree="none required"
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16660 rm -f conftest.err conftest.$ac_objext \
16661 conftest$ac_exeext conftest.$ac_ext
16662 if test "$ac_cv_search_regfree" = no; then
16663 for ac_lib in regex gnuregex; do
16664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16665 cat >conftest.$ac_ext <<_ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16672 /* Override any gcc2 internal prototype to avoid an error. */
16676 /* We use char because int might match the return type of a gcc2
16677 builtin and then its argument prototype would still apply. */
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16689 (eval $ac_link) 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest$ac_exeext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_cv_search_regfree="-l$ac_lib"
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16716 rm -f conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16720 LIBS=$ac_func_search_save_LIBS
16722 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16723 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16724 if test "$ac_cv_search_regfree" != no; then
16725 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16728 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16729 echo "$as_me: error: POSIX regex required." >&2;}
16730 { (exit 1); exit 1; }; }
16735 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16736 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16737 if test "${ol_cv_c_posix_regex+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 if test "$cross_compiling" = yes; then
16742 ol_cv_c_posix_regex=cross
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 #include <sys/types.h>
16753 static char *pattern, *string;
16761 if(regcomp(&re, pattern, 0)) {
16765 string = "ALL MATCH";
16767 rc = regexec(&re, string, 0, (void*)0, 0);
16774 rm -f conftest$ac_exeext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776 (eval $ac_link) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ol_cv_c_posix_regex=yes
16787 echo "$as_me: program exited with status $ac_status" >&5
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ( exit $ac_status )
16792 ol_cv_c_posix_regex=no
16794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16797 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16798 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16800 if test "$ol_cv_c_posix_regex" = no ; then
16801 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16802 echo "$as_me: error: broken POSIX regex!" >&2;}
16803 { (exit 1); exit 1; }; }
16809 for ac_header in sys/uuid.h
16811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16813 echo "$as_me:$LINENO: checking for $ac_header" >&5
16814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16821 # Is the header compilable?
16822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 $ac_includes_default
16831 #include <$ac_header>
16833 rm -f conftest.$ac_objext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16835 (eval $ac_compile) 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_header_compiler=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_header_compiler=no
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16864 echo "${ECHO_T}$ac_header_compiler" >&6
16866 # Is the header present?
16867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 #include <$ac_header>
16877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } >/dev/null; then
16885 if test -s conftest.err; then
16886 ac_cpp_err=$ac_c_preproc_warn_flag
16887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16894 if test -z "$ac_cpp_err"; then
16895 ac_header_preproc=yes
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_header_preproc=no
16902 rm -f conftest.err conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6
16906 # So? What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16913 ac_header_preproc=yes
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16930 ## --------------------------------------------- ##
16931 ## Report this to <http://www.openldap.org/its/> ##
16932 ## --------------------------------------------- ##
16935 sed "s/^/$as_me: WARNING: /" >&2
16938 echo "$as_me:$LINENO: checking for $ac_header" >&5
16939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 eval "$as_ac_Header=\$ac_header_preproc"
16945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16950 cat >>confdefs.h <<_ACEOF
16951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16958 if test $ac_cv_header_sys_uuid_h = yes ; then
16960 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16961 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16962 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 ac_func_search_save_LIBS=$LIBS
16966 ac_cv_search_uuid_to_str=no
16967 cat >conftest.$ac_ext <<_ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16974 /* Override any gcc2 internal prototype to avoid an error. */
16978 /* We use char because int might match the return type of a gcc2
16979 builtin and then its argument prototype would still apply. */
16980 char uuid_to_str ();
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag"
16999 || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_cv_search_uuid_to_str="none required"
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17017 rm -f conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 if test "$ac_cv_search_uuid_to_str" = no; then
17020 for ac_lib in uuid; do
17021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17029 /* Override any gcc2 internal prototype to avoid an error. */
17033 /* We use char because int might match the return type of a gcc2
17034 builtin and then its argument prototype would still apply. */
17035 char uuid_to_str ();
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_search_uuid_to_str="-l$ac_lib"
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17073 rm -f conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17077 LIBS=$ac_func_search_save_LIBS
17079 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17080 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17081 if test "$ac_cv_search_uuid_to_str" != no; then
17082 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17090 if test have_uuid = yes ; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_UUID_TO_STR 1
17097 test "$ac_cv_search_uuid_to_str" = "none required" || \
17098 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17102 if test $have_uuid = no ; then
17103 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17104 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17106 LIBS="$LIBS -lrpcrt4"
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17114 int __stdcall UuidCreate(void *);
17115 int __stdcall UuidToStringA(void *,void **);
17122 UuidToStringA(0,0);
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag"
17138 || test ! -s conftest.err'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17157 rm -f conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159 if test $need_rpcrt = yes; then
17160 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17163 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17164 echo "${ECHO_T}$need_rpcrt" >&6
17167 ol_cv_lib_resolver=no
17168 if test $ol_cv_lib_resolver = no ; then
17169 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17170 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17171 if test "${ol_cv_resolver_none+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 LIBS="$ol_RESOLVER_LIB $LIBS"
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17186 #ifdef HAVE_SYS_TYPES_H
17187 # include <sys/types.h>
17189 #include <netinet/in.h>
17190 #ifdef HAVE_ARPA_NAMESER_H
17191 # include <arpa/nameser.h>
17193 #ifdef HAVE_RESOLV_H
17194 # include <resolv.h>
17202 char *request = NULL;
17203 unsigned char reply[64*1024];
17204 unsigned char host[64*1024];
17208 /* Bind 8/9 interface */
17209 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17211 /* Bind 4 interface */
17215 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17219 /* Bind 8/9 interface */
17221 #elif defined(HFIXEDSZ)
17222 /* Bind 4 interface w/ HFIXEDSZ */
17225 /* Bind 4 interface w/o HFIXEDSZ */
17226 p += sizeof(HEADER);
17228 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ol_cv_resolver_none=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ol_cv_resolver_none=no
17263 rm -f conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17269 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17270 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17272 if test $ol_cv_resolver_none = yes ; then
17273 ol_cv_lib_resolver=yes
17277 if test $ol_cv_lib_resolver = no ; then
17278 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17279 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17280 if test "${ol_cv_resolver_resolv+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 ol_RESOLVER_LIB=-lresolv
17286 LIBS="$ol_RESOLVER_LIB $LIBS"
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 #ifdef HAVE_SYS_TYPES_H
17296 # include <sys/types.h>
17298 #include <netinet/in.h>
17299 #ifdef HAVE_ARPA_NAMESER_H
17300 # include <arpa/nameser.h>
17302 #ifdef HAVE_RESOLV_H
17303 # include <resolv.h>
17311 char *request = NULL;
17312 unsigned char reply[64*1024];
17313 unsigned char host[64*1024];
17317 /* Bind 8/9 interface */
17318 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17320 /* Bind 4 interface */
17324 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17328 /* Bind 8/9 interface */
17330 #elif defined(HFIXEDSZ)
17331 /* Bind 4 interface w/ HFIXEDSZ */
17334 /* Bind 4 interface w/o HFIXEDSZ */
17335 p += sizeof(HEADER);
17337 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345 (eval $ac_link) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest$ac_exeext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ol_cv_resolver_resolv=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ol_cv_resolver_resolv=no
17372 rm -f conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17379 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17381 if test $ol_cv_resolver_resolv = yes ; then
17382 ol_cv_lib_resolver=-lresolv
17386 if test $ol_cv_lib_resolver = no ; then
17387 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17388 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17389 if test "${ol_cv_resolver_bind+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 ol_RESOLVER_LIB=-lbind
17395 LIBS="$ol_RESOLVER_LIB $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 #ifdef HAVE_SYS_TYPES_H
17405 # include <sys/types.h>
17407 #include <netinet/in.h>
17408 #ifdef HAVE_ARPA_NAMESER_H
17409 # include <arpa/nameser.h>
17411 #ifdef HAVE_RESOLV_H
17412 # include <resolv.h>
17420 char *request = NULL;
17421 unsigned char reply[64*1024];
17422 unsigned char host[64*1024];
17426 /* Bind 8/9 interface */
17427 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17429 /* Bind 4 interface */
17433 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17437 /* Bind 8/9 interface */
17439 #elif defined(HFIXEDSZ)
17440 /* Bind 4 interface w/ HFIXEDSZ */
17443 /* Bind 4 interface w/o HFIXEDSZ */
17444 p += sizeof(HEADER);
17446 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest$ac_exeext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ol_cv_resolver_bind=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ol_cv_resolver_bind=no
17481 rm -f conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17488 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17490 if test $ol_cv_resolver_bind = yes ; then
17491 ol_cv_lib_resolver=-lbind
17498 if test "$ol_cv_lib_resolver" != no ; then
17500 cat >>confdefs.h <<\_ACEOF
17501 #define HAVE_RES_QUERY 1
17505 if test "$ol_enable_dnssrv" != no ; then
17509 if test "$ol_cv_lib_resolver" != yes ; then
17510 LIBS="$ol_cv_lib_resolver $LIBS"
17514 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17515 if test "$ol_link_dnssrv" = no ; then
17516 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17517 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17518 { (exit 1); exit 1; }; }
17521 ol_enable_dnssrv=no
17525 for ac_func in hstrerror
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17530 if eval "test \"\${$as_ac_var+set}\" = set"; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541 #define $ac_func innocuous_$ac_func
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17549 # include <limits.h>
17551 # include <assert.h>
17556 /* Override any gcc2 internal prototype to avoid an error. */
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570 char (*f) () = $ac_func;
17579 return f != $ac_func;
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 eval "$as_ac_var=yes"
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 eval "$as_ac_var=no"
17613 rm -f conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619 cat >>confdefs.h <<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17631 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17634 echo "$as_me:$LINENO: checking for $ac_func" >&5
17635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17636 if eval "test \"\${$as_ac_var+set}\" = set"; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17647 #define $ac_func innocuous_$ac_func
17649 /* System header to define __stub macros and hopefully few prototypes,
17650 which can conflict with char $ac_func (); below.
17651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652 <limits.h> exists even on freestanding compilers. */
17655 # include <limits.h>
17657 # include <assert.h>
17662 /* Override any gcc2 internal prototype to avoid an error. */
17667 /* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17670 /* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17676 char (*f) () = $ac_func;
17685 return f != $ac_func;
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 eval "$as_ac_var=yes"
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 eval "$as_ac_var=no"
17719 rm -f conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17724 if test `eval echo '${'$as_ac_var'}'` = yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17734 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17735 if test $ol_enable_ipv6 = yes ; then
17736 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17737 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17738 { (exit 1); exit 1; }; }
17740 elif test $ol_enable_ipv6 != no ; then
17741 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17742 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17743 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17754 # include <netinet/in.h>
17755 # ifdef INET6_ADDRSTRLEN
17756 __has_inet6_addrstrlen__;
17760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17761 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17762 ol_cv_inet6_addrstrlen=yes
17764 ol_cv_inet6_addrstrlen=no
17769 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17770 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17773 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17774 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17775 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17786 #include <sys/types.h>
17787 #include <sys/socket.h>
17793 struct sockaddr_storage ss;
17799 rm -f conftest.$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ol_cv_struct_sockaddr_storage=yes
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ol_cv_struct_sockaddr_storage=no
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17831 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17833 if test $ol_cv_inet6_addrstrlen = yes &&
17834 test $ol_cv_struct_sockaddr_storage = yes ; then
17836 elif test $ol_enable_ipv6 = yes &&
17837 test $ol_cv_inet6_addrstrlen = no ; then
17838 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17839 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17840 { (exit 1); exit 1; }; }
17841 elif test $ol_enable_ipv6 = yes &&
17842 test $ol_cv_struct_sockaddr_storage = no ; then
17843 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17844 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17845 { (exit 1); exit 1; }; }
17849 if test $ol_enable_local != no ; then
17851 for ac_header in sys/un.h
17853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo "$as_me:$LINENO: checking for $ac_header" >&5
17856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17863 # Is the header compilable?
17864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 #include <$ac_header>
17875 rm -f conftest.$ac_objext
17876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17877 (eval $ac_compile) 2>conftest.er1
17879 grep -v '^ *+' conftest.er1 >conftest.err
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
17884 { ac_try='test -z "$ac_c_werror_flag"
17885 || test ! -s conftest.err'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; } &&
17891 { ac_try='test -s conftest.$ac_objext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_header_compiler=yes
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ac_header_compiler=no
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17906 echo "${ECHO_T}$ac_header_compiler" >&6
17908 # Is the header present?
17909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917 #include <$ac_header>
17919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } >/dev/null; then
17927 if test -s conftest.err; then
17928 ac_cpp_err=$ac_c_preproc_warn_flag
17929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17936 if test -z "$ac_cpp_err"; then
17937 ac_header_preproc=yes
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ac_header_preproc=no
17944 rm -f conftest.err conftest.$ac_ext
17945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17946 echo "${ECHO_T}$ac_header_preproc" >&6
17948 # So? What about this header?
17949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17955 ac_header_preproc=yes
17958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17972 ## --------------------------------------------- ##
17973 ## Report this to <http://www.openldap.org/its/> ##
17974 ## --------------------------------------------- ##
17977 sed "s/^/$as_me: WARNING: /" >&2
17980 echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 eval "$as_ac_Header=\$ac_header_preproc"
17987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18001 if test $ol_enable_local = auto ; then
18002 ol_enable_local=$ac_cv_header_sys_un_h
18003 elif test $ac_cv_header_sys_un_h = no ; then
18004 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18005 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18006 { (exit 1); exit 1; }; }
18014 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18017 for ac_header in krb5.h
18019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18021 echo "$as_me:$LINENO: checking for $ac_header" >&5
18022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18029 # Is the header compilable?
18030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 $ac_includes_default
18039 #include <$ac_header>
18041 rm -f conftest.$ac_objext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18043 (eval $ac_compile) 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag"
18051 || test ! -s conftest.err'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_header_compiler=yes
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ac_header_compiler=no
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <$ac_header>
18085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } >/dev/null; then
18093 if test -s conftest.err; then
18094 ac_cpp_err=$ac_c_preproc_warn_flag
18095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18102 if test -z "$ac_cpp_err"; then
18103 ac_header_preproc=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_header_preproc=no
18110 rm -f conftest.err conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18121 ac_header_preproc=yes
18124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18138 ## --------------------------------------------- ##
18139 ## Report this to <http://www.openldap.org/its/> ##
18140 ## --------------------------------------------- ##
18143 sed "s/^/$as_me: WARNING: /" >&2
18146 echo "$as_me:$LINENO: checking for $ac_header" >&5
18147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 eval "$as_ac_Header=\$ac_header_preproc"
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18158 cat >>confdefs.h <<_ACEOF
18159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18167 if test $ac_cv_header_krb5_h = yes ; then
18169 for ac_header in heim_err.h
18171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18173 echo "$as_me:$LINENO: checking for $ac_header" >&5
18174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18181 # Is the header compilable?
18182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18191 #include <$ac_header>
18193 rm -f conftest.$ac_objext
18194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18195 (eval $ac_compile) 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -z "$ac_c_werror_flag"
18203 || test ! -s conftest.err'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try='test -s conftest.$ac_objext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_header_compiler=yes
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ac_header_compiler=no
18222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18224 echo "${ECHO_T}$ac_header_compiler" >&6
18226 # Is the header present?
18227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18229 cat >conftest.$ac_ext <<_ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h. */
18235 #include <$ac_header>
18237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } >/dev/null; then
18245 if test -s conftest.err; then
18246 ac_cpp_err=$ac_c_preproc_warn_flag
18247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18254 if test -z "$ac_cpp_err"; then
18255 ac_header_preproc=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_header_preproc=no
18262 rm -f conftest.err conftest.$ac_ext
18263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18264 echo "${ECHO_T}$ac_header_preproc" >&6
18266 # So? What about this header?
18267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18273 ac_header_preproc=yes
18276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18290 ## --------------------------------------------- ##
18291 ## Report this to <http://www.openldap.org/its/> ##
18292 ## --------------------------------------------- ##
18295 sed "s/^/$as_me: WARNING: /" >&2
18298 echo "$as_me:$LINENO: checking for $ac_header" >&5
18299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 eval "$as_ac_Header=\$ac_header_preproc"
18305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18310 cat >>confdefs.h <<_ACEOF
18311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18318 if test $ac_cv_header_heim_err_h = yes ; then
18324 if test $krb5_impl = mit; then
18325 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18326 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18327 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lk5crypto $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18352 grep -v '^ *+' conftest.er1 >conftest.err
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag"
18358 || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest$ac_exeext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_lib_k5crypto_main=yes
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 ac_cv_lib_k5crypto_main=no
18377 rm -f conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18381 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18382 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18383 if test $ac_cv_lib_k5crypto_main = yes; then
18384 krb5crypto=k5crypto
18390 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18391 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18392 if test "${ac_cv_lib_krb5_main+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag"
18423 || test ! -s conftest.err'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_krb5_main=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_cv_lib_krb5_main=no
18442 rm -f conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18444 LIBS=$ac_check_lib_save_LIBS
18446 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18447 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18448 if test $ac_cv_lib_krb5_main = yes; then
18450 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18456 elif test $krb5_impl = heimdal; then
18457 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18458 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18459 if test "${ac_cv_lib_des_main+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 ac_check_lib_save_LIBS=$LIBS
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag"
18490 || test ! -s conftest.err'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_lib_des_main=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_cv_lib_des_main=no
18509 rm -f conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18513 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18514 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18515 if test $ac_cv_lib_des_main = yes; then
18522 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18523 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18524 if test "${ac_cv_lib_krb5_main+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 ac_check_lib_save_LIBS=$LIBS
18528 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18529 cat >conftest.$ac_ext <<_ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_lib_krb5_main=yes
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_cv_lib_krb5_main=no
18574 rm -f conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18579 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18580 if test $ac_cv_lib_krb5_main = yes; then
18582 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_HEIMDAL_KERBEROS 1
18596 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18597 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18600 if test $have_krb5 = yes ; then
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_KRB5 1
18609 if test $ol_with_kerberos = k5only ; then
18610 ol_with_kerberos=found
18613 elif test $ol_with_kerberos != auto ; then
18614 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18615 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18616 { (exit 1); exit 1; }; }
18623 if test $ol_link_krb5 = yes &&
18624 { test $ol_with_kerberos = yes ||
18625 test $ol_with_kerberos = auto ||
18626 test $ol_with_kerberos = k425; }; then
18630 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18634 echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18642 # Is the header compilable?
18643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18652 #include <$ac_header>
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656 (eval $ac_compile) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_header_compiler=yes
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_header_compiler=no
18683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18685 echo "${ECHO_T}$ac_header_compiler" >&6
18687 # Is the header present?
18688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 #include <$ac_header>
18698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } >/dev/null; then
18706 if test -s conftest.err; then
18707 ac_cpp_err=$ac_c_preproc_warn_flag
18708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18715 if test -z "$ac_cpp_err"; then
18716 ac_header_preproc=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_header_preproc=no
18723 rm -f conftest.err conftest.$ac_ext
18724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18725 echo "${ECHO_T}$ac_header_preproc" >&6
18727 # So? What about this header?
18728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18734 ac_header_preproc=yes
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18751 ## --------------------------------------------- ##
18752 ## Report this to <http://www.openldap.org/its/> ##
18753 ## --------------------------------------------- ##
18756 sed "s/^/$as_me: WARNING: /" >&2
18759 echo "$as_me:$LINENO: checking for $ac_header" >&5
18760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 eval "$as_ac_Header=\$ac_header_preproc"
18766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18771 cat >>confdefs.h <<_ACEOF
18772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18780 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18781 if test $krb5_impl = mit; then
18782 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18783 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18784 if test "${ac_cv_lib_krb4_main+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807 (eval $ac_link) 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_cv_lib_krb4_main=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 ac_cv_lib_krb4_main=no
18834 rm -f conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18838 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18839 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18840 if test $ac_cv_lib_krb4_main = yes; then
18842 KRB4_LIBS="-lkrb4 -ldes425"
18848 elif test $krb5_impl = heimdal; then
18849 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18850 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18851 if test "${ac_cv_lib_krb4_main+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 ac_check_lib_save_LIBS=$LIBS
18855 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874 (eval $ac_link) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_krb4_main=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_krb4_main=no
18901 rm -f conftest.err conftest.$ac_objext \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18906 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18907 if test $ac_cv_lib_krb4_main = yes; then
18917 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18918 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18921 if test $have_k425 = yes ; then
18922 ol_with_kerberos=found
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_KRB425 1
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_KRB4 1
18936 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18937 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18938 if test "${ol_cv_var_des_debug+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18944 cat >conftest.$ac_ext <<_ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18951 #include <kerberosIV/krb.h>
18952 #include <kerberosIV/des.h>
18953 extern int des_debug;
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18967 (eval $ac_link) 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -z "$ac_c_werror_flag"
18975 || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest$ac_exeext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ol_cv_var_des_debug=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ol_cv_var_des_debug=no
18994 rm -f conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext conftest.$ac_ext
18999 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19000 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19002 if test $ol_cv_var_des_debug = yes ; then
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE_DES_DEBUG 1
19015 if test $ol_link_krb5 = yes ; then
19016 ol_with_kerberos=found
19019 case $ol_with_kerberos in yes | auto | k4 | kth)
19024 for ac_header in krb.h des.h krb-archaeology.h
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19028 echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19036 # Is the header compilable?
19037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 $ac_includes_default
19046 #include <$ac_header>
19048 rm -f conftest.$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050 (eval $ac_compile) 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try='test -z "$ac_c_werror_flag"
19058 || test ! -s conftest.err'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest.$ac_objext'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19070 ac_header_compiler=yes
19072 echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19075 ac_header_compiler=no
19077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19079 echo "${ECHO_T}$ac_header_compiler" >&6
19081 # Is the header present?
19082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 #include <$ac_header>
19092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } >/dev/null; then
19100 if test -s conftest.err; then
19101 ac_cpp_err=$ac_c_preproc_warn_flag
19102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19109 if test -z "$ac_cpp_err"; then
19110 ac_header_preproc=yes
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_header_preproc=no
19117 rm -f conftest.err conftest.$ac_ext
19118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19119 echo "${ECHO_T}$ac_header_preproc" >&6
19121 # So? What about this header?
19122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19128 ac_header_preproc=yes
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19145 ## --------------------------------------------- ##
19146 ## Report this to <http://www.openldap.org/its/> ##
19147 ## --------------------------------------------- ##
19150 sed "s/^/$as_me: WARNING: /" >&2
19153 echo "$as_me:$LINENO: checking for $ac_header" >&5
19154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 eval "$as_ac_Header=\$ac_header_preproc"
19160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19165 cat >>confdefs.h <<_ACEOF
19166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19174 if test $ac_cv_header_krb_h = yes ; then
19175 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19176 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19177 if test "${ac_cv_lib_krb_main+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lkrb -ldes $LIBS"
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200 (eval $ac_link) 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag"
19208 || test ! -s conftest.err'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest$ac_exeext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_lib_krb_main=yes
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_lib_krb_main=no
19227 rm -f conftest.err conftest.$ac_objext \
19228 conftest$ac_exeext conftest.$ac_ext
19229 LIBS=$ac_check_lib_save_LIBS
19231 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19232 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19233 if test $ac_cv_lib_krb_main = yes; then
19240 if test $have_k4 = yes ; then
19241 ol_with_kerberos=found
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_KRB4 1
19250 KRB4_LIBS="-lkrb -ldes"
19252 if test $ac_cv_header_krb_archaeology_h = yes ; then
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE_KTH_KERBEROS 1
19264 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19267 elif test $ol_enable_kbind = yes ; then
19268 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19269 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19270 { (exit 1); exit 1; }; }
19273 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_KERBEROS 1
19280 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19281 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19282 echo "$as_me: error: Kerberos detection failed" >&2;}
19283 { (exit 1); exit 1; }; }
19288 if test $ol_with_tls != no ; then
19290 for ac_header in openssl/ssl.h
19292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294 echo "$as_me:$LINENO: checking for $ac_header" >&5
19295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19302 # Is the header compilable?
19303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 $ac_includes_default
19312 #include <$ac_header>
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19318 grep -v '^ *+' conftest.er1 >conftest.err
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -z "$ac_c_werror_flag"
19324 || test ! -s conftest.err'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 ac_header_compiler=yes
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 ac_header_compiler=no
19343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19345 echo "${ECHO_T}$ac_header_compiler" >&6
19347 # Is the header present?
19348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 #include <$ac_header>
19358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } >/dev/null; then
19366 if test -s conftest.err; then
19367 ac_cpp_err=$ac_c_preproc_warn_flag
19368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19375 if test -z "$ac_cpp_err"; then
19376 ac_header_preproc=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_header_preproc=no
19383 rm -f conftest.err conftest.$ac_ext
19384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19385 echo "${ECHO_T}$ac_header_preproc" >&6
19387 # So? What about this header?
19388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19394 ac_header_preproc=yes
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19411 ## --------------------------------------------- ##
19412 ## Report this to <http://www.openldap.org/its/> ##
19413 ## --------------------------------------------- ##
19416 sed "s/^/$as_me: WARNING: /" >&2
19419 echo "$as_me:$LINENO: checking for $ac_header" >&5
19420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 eval "$as_ac_Header=\$ac_header_preproc"
19426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19440 if test $ac_cv_header_openssl_ssl_h = yes ; then
19441 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19442 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19443 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lssl -lcrypto $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any gcc2 internal prototype to avoid an error. */
19459 /* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461 char SSL_library_init ();
19465 SSL_library_init ();
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_lib_ssl_SSL_library_init=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_lib_ssl_SSL_library_init=no
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501 LIBS=$ac_check_lib_save_LIBS
19503 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19504 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19505 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19513 if test $have_openssl = no ; then
19514 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19515 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19516 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19517 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 ac_check_lib_save_LIBS=$LIBS
19520 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19528 /* Override any gcc2 internal prototype to avoid an error. */
19532 /* We use char because int might match the return type of a gcc2
19533 builtin and then its argument prototype would still apply. */
19534 char ssl3_accept ();
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545 (eval $ac_link) 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_cv_lib_ssl_ssl3_accept=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_ssl_ssl3_accept=no
19572 rm -f conftest.err conftest.$ac_objext \
19573 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19576 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19577 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19578 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19587 if test $have_openssl = yes ; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_OPENSSL 1
19597 if test $need_rsaref = yes; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_RSAREF 1
19604 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19606 TLS_LIBS="-lssl -lcrypto"
19609 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19610 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19611 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19622 #ifdef HAVE_OPENSSL_SSL_H
19623 #include <openssl/ssl.h>
19628 /* Require 0.9.7d+ */
19629 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19630 char *__ssl_compat = "0.9.7d";
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19636 ol_cv_ssl_crl_compat=yes
19638 ol_cv_ssl_crl_compat=no
19643 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19644 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19646 if test $ol_cv_ssl_crl_compat = no ; then
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_OPENSSL_CRL 1
19658 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19659 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19663 if test $ol_link_tls = yes ; then
19665 cat >>confdefs.h <<\_ACEOF
19671 elif test $ol_with_tls = auto ; then
19672 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19673 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19675 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19677 elif test $ol_with_tls != no ; then
19678 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19679 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19680 { (exit 1); exit 1; }; }
19683 if test $ol_enable_lmpasswd != no; then
19684 if test $ol_link_tls != yes ; then
19685 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19686 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19687 { (exit 1); exit 1; }; }
19691 cat >>confdefs.h <<\_ACEOF
19692 #define SLAPD_LMHASH 1
19699 case $ol_with_threads in auto | yes | nt)
19702 echo "$as_me:$LINENO: checking for _beginthread" >&5
19703 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19704 if test "${ac_cv_func__beginthread+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19715 #define _beginthread innocuous__beginthread
19717 /* System header to define __stub macros and hopefully few prototypes,
19718 which can conflict with char _beginthread (); below.
19719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19720 <limits.h> exists even on freestanding compilers. */
19723 # include <limits.h>
19725 # include <assert.h>
19728 #undef _beginthread
19730 /* Override any gcc2 internal prototype to avoid an error. */
19735 /* We use char because int might match the return type of a gcc2
19736 builtin and then its argument prototype would still apply. */
19737 char _beginthread ();
19738 /* The GNU C library defines this for functions which it implements
19739 to always fail with ENOSYS. Some functions are actually named
19740 something starting with __ and the normal name is an alias. */
19741 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19744 char (*f) () = _beginthread;
19753 return f != _beginthread;
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_func__beginthread=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_func__beginthread=no
19787 rm -f conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19791 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19794 if test $ac_cv_func__beginthread = yes ; then
19796 cat >>confdefs.h <<\_ACEOF
19797 #define HAVE_NT_THREADS 1
19800 ol_cv_nt_threads=yes
19804 if test "$ol_cv_nt_threads" = yes ; then
19806 ol_with_threads=found
19807 ol_with_yielding_select=yes
19810 cat >>confdefs.h <<\_ACEOF
19811 #define HAVE_NT_SERVICE_MANAGER 1
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_NT_EVENT_LOG 1
19821 if test $ol_with_threads = nt ; then
19822 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19823 echo "$as_me: error: could not locate NT Threads" >&2;}
19824 { (exit 1); exit 1; }; }
19829 case $ol_with_threads in auto | yes | posix)
19832 for ac_header in pthread.h
19834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19836 echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19844 # Is the header compilable?
19845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 $ac_includes_default
19854 #include <$ac_header>
19856 rm -f conftest.$ac_objext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858 (eval $ac_compile) 2>conftest.er1
19860 grep -v '^ *+' conftest.er1 >conftest.err
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
19865 { ac_try='test -z "$ac_c_werror_flag"
19866 || test ! -s conftest.err'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest.$ac_objext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_header_compiler=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_header_compiler=no
19885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19887 echo "${ECHO_T}$ac_header_compiler" >&6
19889 # Is the header present?
19890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 #include <$ac_header>
19900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } >/dev/null; then
19908 if test -s conftest.err; then
19909 ac_cpp_err=$ac_c_preproc_warn_flag
19910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19917 if test -z "$ac_cpp_err"; then
19918 ac_header_preproc=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_header_preproc=no
19925 rm -f conftest.err conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6
19929 # So? What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19936 ac_header_preproc=yes
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19953 ## --------------------------------------------- ##
19954 ## Report this to <http://www.openldap.org/its/> ##
19955 ## --------------------------------------------- ##
19958 sed "s/^/$as_me: WARNING: /" >&2
19961 echo "$as_me:$LINENO: checking for $ac_header" >&5
19962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 eval "$as_ac_Header=\$ac_header_preproc"
19968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973 cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19982 if test $ac_cv_header_pthread_h = yes ; then
19983 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19984 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19985 if test "${ol_cv_pthread_version+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19996 # include <pthread.h>
20002 int i = PTHREAD_CREATE_JOINABLE;
20008 rm -f conftest.$ac_objext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010 (eval $ac_compile) 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 #include <pthread.h>
20040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20041 $EGREP "pthread_detach" >/dev/null 2>&1; then
20042 ol_cv_pthread_version=10
20044 ol_cv_pthread_version=8
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20060 # include <pthread.h>
20061 # ifdef PTHREAD_CREATE_UNDETACHED
20066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20067 $EGREP "draft7" >/dev/null 2>&1; then
20068 ol_cv_pthread_version=7
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 #include <pthread.h>
20080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20081 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20082 ol_cv_pthread_version=6
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20092 # include <pthread.h>
20093 #ifdef PTHREAD_MUTEX_INITIALIZER
20098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20099 $EGREP "draft5" >/dev/null 2>&1; then
20100 ol_cv_pthread_version=5
20102 ol_cv_pthread_version=4
20113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20116 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20117 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20120 if test $ol_cv_pthread_version != 0 ; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define HAVE_PTHREADS $ol_cv_pthread_version
20127 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20128 echo "$as_me: error: unknown pthread version" >&2;}
20129 { (exit 1); exit 1; }; }
20132 # consider threads found
20133 ol_with_threads=found
20136 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20137 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20138 if test "${ol_cv_header_linux_threads+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <pthread.h>
20149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20150 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20151 ol_cv_header_linux_threads=yes
20153 ol_cv_header_linux_threads=no
20159 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20160 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20161 if test $ol_cv_header_linux_threads = yes; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_LINUX_THREADS 1
20170 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20171 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20172 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <pthread.h>
20182 #ifdef _POSIX_THREAD_IS_GNU_PTH
20187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20188 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20189 ol_cv_header_gnu_pth_pthread_h=yes
20191 ol_cv_header_gnu_pth_pthread_h=no
20197 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20198 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20201 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20203 for ac_header in sched.h
20205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20207 echo "$as_me:$LINENO: checking for $ac_header" >&5
20208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20215 # Is the header compilable?
20216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20225 #include <$ac_header>
20227 rm -f conftest.$ac_objext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20229 (eval $ac_compile) 2>conftest.er1
20231 grep -v '^ *+' conftest.er1 >conftest.err
20233 cat conftest.err >&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
20236 { ac_try='test -z "$ac_c_werror_flag"
20237 || test ! -s conftest.err'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_header_compiler=yes
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_header_compiler=no
20256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20258 echo "${ECHO_T}$ac_header_compiler" >&6
20260 # Is the header present?
20261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <$ac_header>
20271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20274 grep -v '^ *+' conftest.er1 >conftest.err
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } >/dev/null; then
20279 if test -s conftest.err; then
20280 ac_cpp_err=$ac_c_preproc_warn_flag
20281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20288 if test -z "$ac_cpp_err"; then
20289 ac_header_preproc=yes
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ac_header_preproc=no
20296 rm -f conftest.err conftest.$ac_ext
20297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20298 echo "${ECHO_T}$ac_header_preproc" >&6
20300 # So? What about this header?
20301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20307 ac_header_preproc=yes
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20324 ## --------------------------------------------- ##
20325 ## Report this to <http://www.openldap.org/its/> ##
20326 ## --------------------------------------------- ##
20329 sed "s/^/$as_me: WARNING: /" >&2
20332 echo "$as_me:$LINENO: checking for $ac_header" >&5
20333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 eval "$as_ac_Header=\$ac_header_preproc"
20339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20344 cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20355 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20356 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20357 if test "${ol_cv_pthread_create+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 if test "$cross_compiling" = yes; then
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 /* pthread test headers */
20370 #include <pthread.h>
20371 #if HAVE_PTHREADS < 7
20375 #define NULL (void*)0
20378 static void *task(p)
20381 return (void *) (p == NULL);
20388 /* pthread test function */
20389 #ifndef PTHREAD_CREATE_DETACHED
20390 #define PTHREAD_CREATE_DETACHED 1
20394 int detach = PTHREAD_CREATE_DETACHED;
20396 #if HAVE_PTHREADS > 4
20397 /* Final pthreads */
20398 pthread_attr_t attr;
20400 status = pthread_attr_init(&attr);
20401 if( status ) return status;
20403 #if HAVE_PTHREADS < 7
20404 status = pthread_attr_setdetachstate(&attr, &detach);
20405 if( status < 0 ) status = errno;
20407 status = pthread_attr_setdetachstate(&attr, detach);
20409 if( status ) return status;
20410 status = pthread_create( &t, &attr, task, NULL );
20411 #if HAVE_PTHREADS < 7
20412 if( status < 0 ) status = errno;
20414 if( status ) return status;
20416 /* Draft 4 pthreads */
20417 status = pthread_create( &t, pthread_attr_default, task, NULL );
20418 if( status ) return errno;
20420 /* give thread a chance to complete */
20421 /* it should remain joinable and hence detachable */
20424 status = pthread_detach( &t );
20425 if( status ) return errno;
20428 #ifdef HAVE_LINUX_THREADS
20429 pthread_kill_other_threads_np();
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest$ac_exeext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ol_cv_pthread_create=yes
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ol_cv_pthread_create=no
20467 rm -f conftest.err conftest.$ac_objext \
20468 conftest$ac_exeext conftest.$ac_ext
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20477 /* pthread test headers */
20478 #include <pthread.h>
20479 #if HAVE_PTHREADS < 7
20483 #define NULL (void*)0
20486 static void *task(p)
20489 return (void *) (p == NULL);
20493 int main(argc, argv)
20498 /* pthread test function */
20499 #ifndef PTHREAD_CREATE_DETACHED
20500 #define PTHREAD_CREATE_DETACHED 1
20504 int detach = PTHREAD_CREATE_DETACHED;
20506 #if HAVE_PTHREADS > 4
20507 /* Final pthreads */
20508 pthread_attr_t attr;
20510 status = pthread_attr_init(&attr);
20511 if( status ) return status;
20513 #if HAVE_PTHREADS < 7
20514 status = pthread_attr_setdetachstate(&attr, &detach);
20515 if( status < 0 ) status = errno;
20517 status = pthread_attr_setdetachstate(&attr, detach);
20519 if( status ) return status;
20520 status = pthread_create( &t, &attr, task, NULL );
20521 #if HAVE_PTHREADS < 7
20522 if( status < 0 ) status = errno;
20524 if( status ) return status;
20526 /* Draft 4 pthreads */
20527 status = pthread_create( &t, pthread_attr_default, task, NULL );
20528 if( status ) return errno;
20530 /* give thread a chance to complete */
20531 /* it should remain joinable and hence detachable */
20534 status = pthread_detach( &t );
20535 if( status ) return errno;
20538 #ifdef HAVE_LINUX_THREADS
20539 pthread_kill_other_threads_np();
20547 rm -f conftest$ac_exeext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20549 (eval $ac_link) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ol_cv_pthread_create=yes
20560 echo "$as_me: program exited with status $ac_status" >&5
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ( exit $ac_status )
20565 ol_cv_pthread_create=no
20567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20570 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20571 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20573 if test $ol_cv_pthread_create != no ; then
20574 ol_link_threads=posix
20575 ol_link_pthreads=""
20578 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20579 if test "$ol_link_threads" = no ; then
20581 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20582 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20583 if test "${ol_cv_pthread_kthread+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 LIBS="-kthread $LIBS"
20591 if test "$cross_compiling" = yes; then
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 /* pthread test headers */
20600 #include <pthread.h>
20601 #if HAVE_PTHREADS < 7
20605 #define NULL (void*)0
20608 static void *task(p)
20611 return (void *) (p == NULL);
20618 /* pthread test function */
20619 #ifndef PTHREAD_CREATE_DETACHED
20620 #define PTHREAD_CREATE_DETACHED 1
20624 int detach = PTHREAD_CREATE_DETACHED;
20626 #if HAVE_PTHREADS > 4
20627 /* Final pthreads */
20628 pthread_attr_t attr;
20630 status = pthread_attr_init(&attr);
20631 if( status ) return status;
20633 #if HAVE_PTHREADS < 7
20634 status = pthread_attr_setdetachstate(&attr, &detach);
20635 if( status < 0 ) status = errno;
20637 status = pthread_attr_setdetachstate(&attr, detach);
20639 if( status ) return status;
20640 status = pthread_create( &t, &attr, task, NULL );
20641 #if HAVE_PTHREADS < 7
20642 if( status < 0 ) status = errno;
20644 if( status ) return status;
20646 /* Draft 4 pthreads */
20647 status = pthread_create( &t, pthread_attr_default, task, NULL );
20648 if( status ) return errno;
20650 /* give thread a chance to complete */
20651 /* it should remain joinable and hence detachable */
20654 status = pthread_detach( &t );
20655 if( status ) return errno;
20658 #ifdef HAVE_LINUX_THREADS
20659 pthread_kill_other_threads_np();
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ol_cv_pthread_kthread=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ol_cv_pthread_kthread=no
20697 rm -f conftest.err conftest.$ac_objext \
20698 conftest$ac_exeext conftest.$ac_ext
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 /* pthread test headers */
20708 #include <pthread.h>
20709 #if HAVE_PTHREADS < 7
20713 #define NULL (void*)0
20716 static void *task(p)
20719 return (void *) (p == NULL);
20723 int main(argc, argv)
20728 /* pthread test function */
20729 #ifndef PTHREAD_CREATE_DETACHED
20730 #define PTHREAD_CREATE_DETACHED 1
20734 int detach = PTHREAD_CREATE_DETACHED;
20736 #if HAVE_PTHREADS > 4
20737 /* Final pthreads */
20738 pthread_attr_t attr;
20740 status = pthread_attr_init(&attr);
20741 if( status ) return status;
20743 #if HAVE_PTHREADS < 7
20744 status = pthread_attr_setdetachstate(&attr, &detach);
20745 if( status < 0 ) status = errno;
20747 status = pthread_attr_setdetachstate(&attr, detach);
20749 if( status ) return status;
20750 status = pthread_create( &t, &attr, task, NULL );
20751 #if HAVE_PTHREADS < 7
20752 if( status < 0 ) status = errno;
20754 if( status ) return status;
20756 /* Draft 4 pthreads */
20757 status = pthread_create( &t, pthread_attr_default, task, NULL );
20758 if( status ) return errno;
20760 /* give thread a chance to complete */
20761 /* it should remain joinable and hence detachable */
20764 status = pthread_detach( &t );
20765 if( status ) return errno;
20768 #ifdef HAVE_LINUX_THREADS
20769 pthread_kill_other_threads_np();
20777 rm -f conftest$ac_exeext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20779 (eval $ac_link) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ol_cv_pthread_kthread=yes
20790 echo "$as_me: program exited with status $ac_status" >&5
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 ( exit $ac_status )
20795 ol_cv_pthread_kthread=no
20797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20804 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20805 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20807 if test $ol_cv_pthread_kthread = yes ; then
20808 ol_link_pthreads="-kthread"
20809 ol_link_threads=posix
20813 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20814 if test "$ol_link_threads" = no ; then
20816 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20817 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20818 if test "${ol_cv_pthread_pthread+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 LIBS="-pthread $LIBS"
20826 if test "$cross_compiling" = yes; then
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20834 /* pthread test headers */
20835 #include <pthread.h>
20836 #if HAVE_PTHREADS < 7
20840 #define NULL (void*)0
20843 static void *task(p)
20846 return (void *) (p == NULL);
20853 /* pthread test function */
20854 #ifndef PTHREAD_CREATE_DETACHED
20855 #define PTHREAD_CREATE_DETACHED 1
20859 int detach = PTHREAD_CREATE_DETACHED;
20861 #if HAVE_PTHREADS > 4
20862 /* Final pthreads */
20863 pthread_attr_t attr;
20865 status = pthread_attr_init(&attr);
20866 if( status ) return status;
20868 #if HAVE_PTHREADS < 7
20869 status = pthread_attr_setdetachstate(&attr, &detach);
20870 if( status < 0 ) status = errno;
20872 status = pthread_attr_setdetachstate(&attr, detach);
20874 if( status ) return status;
20875 status = pthread_create( &t, &attr, task, NULL );
20876 #if HAVE_PTHREADS < 7
20877 if( status < 0 ) status = errno;
20879 if( status ) return status;
20881 /* Draft 4 pthreads */
20882 status = pthread_create( &t, pthread_attr_default, task, NULL );
20883 if( status ) return errno;
20885 /* give thread a chance to complete */
20886 /* it should remain joinable and hence detachable */
20889 status = pthread_detach( &t );
20890 if( status ) return errno;
20893 #ifdef HAVE_LINUX_THREADS
20894 pthread_kill_other_threads_np();
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag"
20913 || test ! -s conftest.err'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; } &&
20919 { ac_try='test -s conftest$ac_exeext'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ol_cv_pthread_pthread=yes
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ol_cv_pthread_pthread=no
20932 rm -f conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20942 /* pthread test headers */
20943 #include <pthread.h>
20944 #if HAVE_PTHREADS < 7
20948 #define NULL (void*)0
20951 static void *task(p)
20954 return (void *) (p == NULL);
20958 int main(argc, argv)
20963 /* pthread test function */
20964 #ifndef PTHREAD_CREATE_DETACHED
20965 #define PTHREAD_CREATE_DETACHED 1
20969 int detach = PTHREAD_CREATE_DETACHED;
20971 #if HAVE_PTHREADS > 4
20972 /* Final pthreads */
20973 pthread_attr_t attr;
20975 status = pthread_attr_init(&attr);
20976 if( status ) return status;
20978 #if HAVE_PTHREADS < 7
20979 status = pthread_attr_setdetachstate(&attr, &detach);
20980 if( status < 0 ) status = errno;
20982 status = pthread_attr_setdetachstate(&attr, detach);
20984 if( status ) return status;
20985 status = pthread_create( &t, &attr, task, NULL );
20986 #if HAVE_PTHREADS < 7
20987 if( status < 0 ) status = errno;
20989 if( status ) return status;
20991 /* Draft 4 pthreads */
20992 status = pthread_create( &t, pthread_attr_default, task, NULL );
20993 if( status ) return errno;
20995 /* give thread a chance to complete */
20996 /* it should remain joinable and hence detachable */
20999 status = pthread_detach( &t );
21000 if( status ) return errno;
21003 #ifdef HAVE_LINUX_THREADS
21004 pthread_kill_other_threads_np();
21012 rm -f conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ol_cv_pthread_pthread=yes
21025 echo "$as_me: program exited with status $ac_status" >&5
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ( exit $ac_status )
21030 ol_cv_pthread_pthread=no
21032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21039 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21040 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21042 if test $ol_cv_pthread_pthread = yes ; then
21043 ol_link_pthreads="-pthread"
21044 ol_link_threads=posix
21048 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21049 if test "$ol_link_threads" = no ; then
21051 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21052 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21053 if test "${ol_cv_pthread_pthreads+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 LIBS="-pthreads $LIBS"
21061 if test "$cross_compiling" = yes; then
21062 cat >conftest.$ac_ext <<_ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21069 /* pthread test headers */
21070 #include <pthread.h>
21071 #if HAVE_PTHREADS < 7
21075 #define NULL (void*)0
21078 static void *task(p)
21081 return (void *) (p == NULL);
21088 /* pthread test function */
21089 #ifndef PTHREAD_CREATE_DETACHED
21090 #define PTHREAD_CREATE_DETACHED 1
21094 int detach = PTHREAD_CREATE_DETACHED;
21096 #if HAVE_PTHREADS > 4
21097 /* Final pthreads */
21098 pthread_attr_t attr;
21100 status = pthread_attr_init(&attr);
21101 if( status ) return status;
21103 #if HAVE_PTHREADS < 7
21104 status = pthread_attr_setdetachstate(&attr, &detach);
21105 if( status < 0 ) status = errno;
21107 status = pthread_attr_setdetachstate(&attr, detach);
21109 if( status ) return status;
21110 status = pthread_create( &t, &attr, task, NULL );
21111 #if HAVE_PTHREADS < 7
21112 if( status < 0 ) status = errno;
21114 if( status ) return status;
21116 /* Draft 4 pthreads */
21117 status = pthread_create( &t, pthread_attr_default, task, NULL );
21118 if( status ) return errno;
21120 /* give thread a chance to complete */
21121 /* it should remain joinable and hence detachable */
21124 status = pthread_detach( &t );
21125 if( status ) return errno;
21128 #ifdef HAVE_LINUX_THREADS
21129 pthread_kill_other_threads_np();
21138 rm -f conftest.$ac_objext conftest$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -z "$ac_c_werror_flag"
21148 || test ! -s conftest.err'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest$ac_exeext'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ol_cv_pthread_pthreads=yes
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ol_cv_pthread_pthreads=no
21167 rm -f conftest.err conftest.$ac_objext \
21168 conftest$ac_exeext conftest.$ac_ext
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 /* pthread test headers */
21178 #include <pthread.h>
21179 #if HAVE_PTHREADS < 7
21183 #define NULL (void*)0
21186 static void *task(p)
21189 return (void *) (p == NULL);
21193 int main(argc, argv)
21198 /* pthread test function */
21199 #ifndef PTHREAD_CREATE_DETACHED
21200 #define PTHREAD_CREATE_DETACHED 1
21204 int detach = PTHREAD_CREATE_DETACHED;
21206 #if HAVE_PTHREADS > 4
21207 /* Final pthreads */
21208 pthread_attr_t attr;
21210 status = pthread_attr_init(&attr);
21211 if( status ) return status;
21213 #if HAVE_PTHREADS < 7
21214 status = pthread_attr_setdetachstate(&attr, &detach);
21215 if( status < 0 ) status = errno;
21217 status = pthread_attr_setdetachstate(&attr, detach);
21219 if( status ) return status;
21220 status = pthread_create( &t, &attr, task, NULL );
21221 #if HAVE_PTHREADS < 7
21222 if( status < 0 ) status = errno;
21224 if( status ) return status;
21226 /* Draft 4 pthreads */
21227 status = pthread_create( &t, pthread_attr_default, task, NULL );
21228 if( status ) return errno;
21230 /* give thread a chance to complete */
21231 /* it should remain joinable and hence detachable */
21234 status = pthread_detach( &t );
21235 if( status ) return errno;
21238 #ifdef HAVE_LINUX_THREADS
21239 pthread_kill_other_threads_np();
21247 rm -f conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ol_cv_pthread_pthreads=yes
21260 echo "$as_me: program exited with status $ac_status" >&5
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ( exit $ac_status )
21265 ol_cv_pthread_pthreads=no
21267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21274 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21275 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21277 if test $ol_cv_pthread_pthreads = yes ; then
21278 ol_link_pthreads="-pthreads"
21279 ol_link_threads=posix
21283 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21284 if test "$ol_link_threads" = no ; then
21286 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21287 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21288 if test "${ol_cv_pthread_mthreads+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 LIBS="-mthreads $LIBS"
21296 if test "$cross_compiling" = yes; then
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21304 /* pthread test headers */
21305 #include <pthread.h>
21306 #if HAVE_PTHREADS < 7
21310 #define NULL (void*)0
21313 static void *task(p)
21316 return (void *) (p == NULL);
21323 /* pthread test function */
21324 #ifndef PTHREAD_CREATE_DETACHED
21325 #define PTHREAD_CREATE_DETACHED 1
21329 int detach = PTHREAD_CREATE_DETACHED;
21331 #if HAVE_PTHREADS > 4
21332 /* Final pthreads */
21333 pthread_attr_t attr;
21335 status = pthread_attr_init(&attr);
21336 if( status ) return status;
21338 #if HAVE_PTHREADS < 7
21339 status = pthread_attr_setdetachstate(&attr, &detach);
21340 if( status < 0 ) status = errno;
21342 status = pthread_attr_setdetachstate(&attr, detach);
21344 if( status ) return status;
21345 status = pthread_create( &t, &attr, task, NULL );
21346 #if HAVE_PTHREADS < 7
21347 if( status < 0 ) status = errno;
21349 if( status ) return status;
21351 /* Draft 4 pthreads */
21352 status = pthread_create( &t, pthread_attr_default, task, NULL );
21353 if( status ) return errno;
21355 /* give thread a chance to complete */
21356 /* it should remain joinable and hence detachable */
21359 status = pthread_detach( &t );
21360 if( status ) return errno;
21363 #ifdef HAVE_LINUX_THREADS
21364 pthread_kill_other_threads_np();
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21375 (eval $ac_link) 2>conftest.er1
21377 grep -v '^ *+' conftest.er1 >conftest.err
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest$ac_exeext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ol_cv_pthread_mthreads=yes
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ol_cv_pthread_mthreads=no
21402 rm -f conftest.err conftest.$ac_objext \
21403 conftest$ac_exeext conftest.$ac_ext
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 /* pthread test headers */
21413 #include <pthread.h>
21414 #if HAVE_PTHREADS < 7
21418 #define NULL (void*)0
21421 static void *task(p)
21424 return (void *) (p == NULL);
21428 int main(argc, argv)
21433 /* pthread test function */
21434 #ifndef PTHREAD_CREATE_DETACHED
21435 #define PTHREAD_CREATE_DETACHED 1
21439 int detach = PTHREAD_CREATE_DETACHED;
21441 #if HAVE_PTHREADS > 4
21442 /* Final pthreads */
21443 pthread_attr_t attr;
21445 status = pthread_attr_init(&attr);
21446 if( status ) return status;
21448 #if HAVE_PTHREADS < 7
21449 status = pthread_attr_setdetachstate(&attr, &detach);
21450 if( status < 0 ) status = errno;
21452 status = pthread_attr_setdetachstate(&attr, detach);
21454 if( status ) return status;
21455 status = pthread_create( &t, &attr, task, NULL );
21456 #if HAVE_PTHREADS < 7
21457 if( status < 0 ) status = errno;
21459 if( status ) return status;
21461 /* Draft 4 pthreads */
21462 status = pthread_create( &t, pthread_attr_default, task, NULL );
21463 if( status ) return errno;
21465 /* give thread a chance to complete */
21466 /* it should remain joinable and hence detachable */
21469 status = pthread_detach( &t );
21470 if( status ) return errno;
21473 #ifdef HAVE_LINUX_THREADS
21474 pthread_kill_other_threads_np();
21482 rm -f conftest$ac_exeext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484 (eval $ac_link) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ol_cv_pthread_mthreads=yes
21495 echo "$as_me: program exited with status $ac_status" >&5
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 ( exit $ac_status )
21500 ol_cv_pthread_mthreads=no
21502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21510 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21512 if test $ol_cv_pthread_mthreads = yes ; then
21513 ol_link_pthreads="-mthreads"
21514 ol_link_threads=posix
21518 # Pthread try link: -thread (ol_cv_pthread_thread)
21519 if test "$ol_link_threads" = no ; then
21521 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21522 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21523 if test "${ol_cv_pthread_thread+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 LIBS="-thread $LIBS"
21531 if test "$cross_compiling" = yes; then
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21539 /* pthread test headers */
21540 #include <pthread.h>
21541 #if HAVE_PTHREADS < 7
21545 #define NULL (void*)0
21548 static void *task(p)
21551 return (void *) (p == NULL);
21558 /* pthread test function */
21559 #ifndef PTHREAD_CREATE_DETACHED
21560 #define PTHREAD_CREATE_DETACHED 1
21564 int detach = PTHREAD_CREATE_DETACHED;
21566 #if HAVE_PTHREADS > 4
21567 /* Final pthreads */
21568 pthread_attr_t attr;
21570 status = pthread_attr_init(&attr);
21571 if( status ) return status;
21573 #if HAVE_PTHREADS < 7
21574 status = pthread_attr_setdetachstate(&attr, &detach);
21575 if( status < 0 ) status = errno;
21577 status = pthread_attr_setdetachstate(&attr, detach);
21579 if( status ) return status;
21580 status = pthread_create( &t, &attr, task, NULL );
21581 #if HAVE_PTHREADS < 7
21582 if( status < 0 ) status = errno;
21584 if( status ) return status;
21586 /* Draft 4 pthreads */
21587 status = pthread_create( &t, pthread_attr_default, task, NULL );
21588 if( status ) return errno;
21590 /* give thread a chance to complete */
21591 /* it should remain joinable and hence detachable */
21594 status = pthread_detach( &t );
21595 if( status ) return errno;
21598 #ifdef HAVE_LINUX_THREADS
21599 pthread_kill_other_threads_np();
21608 rm -f conftest.$ac_objext conftest$ac_exeext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610 (eval $ac_link) 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } &&
21617 { ac_try='test -z "$ac_c_werror_flag"
21618 || test ! -s conftest.err'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; } &&
21624 { ac_try='test -s conftest$ac_exeext'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }; then
21630 ol_cv_pthread_thread=yes
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ol_cv_pthread_thread=no
21637 rm -f conftest.err conftest.$ac_objext \
21638 conftest$ac_exeext conftest.$ac_ext
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21647 /* pthread test headers */
21648 #include <pthread.h>
21649 #if HAVE_PTHREADS < 7
21653 #define NULL (void*)0
21656 static void *task(p)
21659 return (void *) (p == NULL);
21663 int main(argc, argv)
21668 /* pthread test function */
21669 #ifndef PTHREAD_CREATE_DETACHED
21670 #define PTHREAD_CREATE_DETACHED 1
21674 int detach = PTHREAD_CREATE_DETACHED;
21676 #if HAVE_PTHREADS > 4
21677 /* Final pthreads */
21678 pthread_attr_t attr;
21680 status = pthread_attr_init(&attr);
21681 if( status ) return status;
21683 #if HAVE_PTHREADS < 7
21684 status = pthread_attr_setdetachstate(&attr, &detach);
21685 if( status < 0 ) status = errno;
21687 status = pthread_attr_setdetachstate(&attr, detach);
21689 if( status ) return status;
21690 status = pthread_create( &t, &attr, task, NULL );
21691 #if HAVE_PTHREADS < 7
21692 if( status < 0 ) status = errno;
21694 if( status ) return status;
21696 /* Draft 4 pthreads */
21697 status = pthread_create( &t, pthread_attr_default, task, NULL );
21698 if( status ) return errno;
21700 /* give thread a chance to complete */
21701 /* it should remain joinable and hence detachable */
21704 status = pthread_detach( &t );
21705 if( status ) return errno;
21708 #ifdef HAVE_LINUX_THREADS
21709 pthread_kill_other_threads_np();
21717 rm -f conftest$ac_exeext
21718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21719 (eval $ac_link) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ol_cv_pthread_thread=yes
21730 echo "$as_me: program exited with status $ac_status" >&5
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ( exit $ac_status )
21735 ol_cv_pthread_thread=no
21737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21744 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21745 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21747 if test $ol_cv_pthread_thread = yes ; then
21748 ol_link_pthreads="-thread"
21749 ol_link_threads=posix
21754 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21755 if test "$ol_link_threads" = no ; then
21756 # try -lpthread -lmach -lexc -lc_r
21757 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21758 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21759 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21767 if test "$cross_compiling" = yes; then
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21775 /* pthread test headers */
21776 #include <pthread.h>
21777 #if HAVE_PTHREADS < 7
21781 #define NULL (void*)0
21784 static void *task(p)
21787 return (void *) (p == NULL);
21794 /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21800 int detach = PTHREAD_CREATE_DETACHED;
21802 #if HAVE_PTHREADS > 4
21803 /* Final pthreads */
21804 pthread_attr_t attr;
21806 status = pthread_attr_init(&attr);
21807 if( status ) return status;
21809 #if HAVE_PTHREADS < 7
21810 status = pthread_attr_setdetachstate(&attr, &detach);
21811 if( status < 0 ) status = errno;
21813 status = pthread_attr_setdetachstate(&attr, detach);
21815 if( status ) return status;
21816 status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818 if( status < 0 ) status = errno;
21820 if( status ) return status;
21822 /* Draft 4 pthreads */
21823 status = pthread_create( &t, pthread_attr_default, task, NULL );
21824 if( status ) return errno;
21826 /* give thread a chance to complete */
21827 /* it should remain joinable and hence detachable */
21830 status = pthread_detach( &t );
21831 if( status ) return errno;
21834 #ifdef HAVE_LINUX_THREADS
21835 pthread_kill_other_threads_np();
21844 rm -f conftest.$ac_objext conftest$ac_exeext
21845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21846 (eval $ac_link) 2>conftest.er1
21848 grep -v '^ *+' conftest.er1 >conftest.err
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try='test -z "$ac_c_werror_flag"
21854 || test ! -s conftest.err'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest$ac_exeext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21873 rm -f conftest.err conftest.$ac_objext \
21874 conftest$ac_exeext conftest.$ac_ext
21876 cat >conftest.$ac_ext <<_ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21883 /* pthread test headers */
21884 #include <pthread.h>
21885 #if HAVE_PTHREADS < 7
21889 #define NULL (void*)0
21892 static void *task(p)
21895 return (void *) (p == NULL);
21899 int main(argc, argv)
21904 /* pthread test function */
21905 #ifndef PTHREAD_CREATE_DETACHED
21906 #define PTHREAD_CREATE_DETACHED 1
21910 int detach = PTHREAD_CREATE_DETACHED;
21912 #if HAVE_PTHREADS > 4
21913 /* Final pthreads */
21914 pthread_attr_t attr;
21916 status = pthread_attr_init(&attr);
21917 if( status ) return status;
21919 #if HAVE_PTHREADS < 7
21920 status = pthread_attr_setdetachstate(&attr, &detach);
21921 if( status < 0 ) status = errno;
21923 status = pthread_attr_setdetachstate(&attr, detach);
21925 if( status ) return status;
21926 status = pthread_create( &t, &attr, task, NULL );
21927 #if HAVE_PTHREADS < 7
21928 if( status < 0 ) status = errno;
21930 if( status ) return status;
21932 /* Draft 4 pthreads */
21933 status = pthread_create( &t, pthread_attr_default, task, NULL );
21934 if( status ) return errno;
21936 /* give thread a chance to complete */
21937 /* it should remain joinable and hence detachable */
21940 status = pthread_detach( &t );
21941 if( status ) return errno;
21944 #ifdef HAVE_LINUX_THREADS
21945 pthread_kill_other_threads_np();
21953 rm -f conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21966 echo "$as_me: program exited with status $ac_status" >&5
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 ( exit $ac_status )
21971 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21981 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21983 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21984 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21985 ol_link_threads=posix
21989 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21990 if test "$ol_link_threads" = no ; then
21991 # try -lpthread -lmach -lexc
21992 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21993 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21994 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
22000 LIBS="-lpthread -lmach -lexc $LIBS"
22002 if test "$cross_compiling" = yes; then
22003 cat >conftest.$ac_ext <<_ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h. */
22010 /* pthread test headers */
22011 #include <pthread.h>
22012 #if HAVE_PTHREADS < 7
22016 #define NULL (void*)0
22019 static void *task(p)
22022 return (void *) (p == NULL);
22029 /* pthread test function */
22030 #ifndef PTHREAD_CREATE_DETACHED
22031 #define PTHREAD_CREATE_DETACHED 1
22035 int detach = PTHREAD_CREATE_DETACHED;
22037 #if HAVE_PTHREADS > 4
22038 /* Final pthreads */
22039 pthread_attr_t attr;
22041 status = pthread_attr_init(&attr);
22042 if( status ) return status;
22044 #if HAVE_PTHREADS < 7
22045 status = pthread_attr_setdetachstate(&attr, &detach);
22046 if( status < 0 ) status = errno;
22048 status = pthread_attr_setdetachstate(&attr, detach);
22050 if( status ) return status;
22051 status = pthread_create( &t, &attr, task, NULL );
22052 #if HAVE_PTHREADS < 7
22053 if( status < 0 ) status = errno;
22055 if( status ) return status;
22057 /* Draft 4 pthreads */
22058 status = pthread_create( &t, pthread_attr_default, task, NULL );
22059 if( status ) return errno;
22061 /* give thread a chance to complete */
22062 /* it should remain joinable and hence detachable */
22065 status = pthread_detach( &t );
22066 if( status ) return errno;
22069 #ifdef HAVE_LINUX_THREADS
22070 pthread_kill_other_threads_np();
22079 rm -f conftest.$ac_objext conftest$ac_exeext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22081 (eval $ac_link) 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_c_werror_flag"
22089 || test ! -s conftest.err'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try='test -s conftest$ac_exeext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ol_cv_pthread_lpthread_lmach_lexc=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ol_cv_pthread_lpthread_lmach_lexc=no
22108 rm -f conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22118 /* pthread test headers */
22119 #include <pthread.h>
22120 #if HAVE_PTHREADS < 7
22124 #define NULL (void*)0
22127 static void *task(p)
22130 return (void *) (p == NULL);
22134 int main(argc, argv)
22139 /* pthread test function */
22140 #ifndef PTHREAD_CREATE_DETACHED
22141 #define PTHREAD_CREATE_DETACHED 1
22145 int detach = PTHREAD_CREATE_DETACHED;
22147 #if HAVE_PTHREADS > 4
22148 /* Final pthreads */
22149 pthread_attr_t attr;
22151 status = pthread_attr_init(&attr);
22152 if( status ) return status;
22154 #if HAVE_PTHREADS < 7
22155 status = pthread_attr_setdetachstate(&attr, &detach);
22156 if( status < 0 ) status = errno;
22158 status = pthread_attr_setdetachstate(&attr, detach);
22160 if( status ) return status;
22161 status = pthread_create( &t, &attr, task, NULL );
22162 #if HAVE_PTHREADS < 7
22163 if( status < 0 ) status = errno;
22165 if( status ) return status;
22167 /* Draft 4 pthreads */
22168 status = pthread_create( &t, pthread_attr_default, task, NULL );
22169 if( status ) return errno;
22171 /* give thread a chance to complete */
22172 /* it should remain joinable and hence detachable */
22175 status = pthread_detach( &t );
22176 if( status ) return errno;
22179 #ifdef HAVE_LINUX_THREADS
22180 pthread_kill_other_threads_np();
22188 rm -f conftest$ac_exeext
22189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22190 (eval $ac_link) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 ol_cv_pthread_lpthread_lmach_lexc=yes
22201 echo "$as_me: program exited with status $ac_status" >&5
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ( exit $ac_status )
22206 ol_cv_pthread_lpthread_lmach_lexc=no
22208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22216 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22218 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22219 ol_link_pthreads="-lpthread -lmach -lexc"
22220 ol_link_threads=posix
22225 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22226 if test "$ol_link_threads" = no ; then
22227 # try -lpthread -Wl,-woff,85
22228 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22229 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22230 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22238 if test "$cross_compiling" = yes; then
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22246 /* pthread test headers */
22247 #include <pthread.h>
22248 #if HAVE_PTHREADS < 7
22252 #define NULL (void*)0
22255 static void *task(p)
22258 return (void *) (p == NULL);
22265 /* pthread test function */
22266 #ifndef PTHREAD_CREATE_DETACHED
22267 #define PTHREAD_CREATE_DETACHED 1
22271 int detach = PTHREAD_CREATE_DETACHED;
22273 #if HAVE_PTHREADS > 4
22274 /* Final pthreads */
22275 pthread_attr_t attr;
22277 status = pthread_attr_init(&attr);
22278 if( status ) return status;
22280 #if HAVE_PTHREADS < 7
22281 status = pthread_attr_setdetachstate(&attr, &detach);
22282 if( status < 0 ) status = errno;
22284 status = pthread_attr_setdetachstate(&attr, detach);
22286 if( status ) return status;
22287 status = pthread_create( &t, &attr, task, NULL );
22288 #if HAVE_PTHREADS < 7
22289 if( status < 0 ) status = errno;
22291 if( status ) return status;
22293 /* Draft 4 pthreads */
22294 status = pthread_create( &t, pthread_attr_default, task, NULL );
22295 if( status ) return errno;
22297 /* give thread a chance to complete */
22298 /* it should remain joinable and hence detachable */
22301 status = pthread_detach( &t );
22302 if( status ) return errno;
22305 #ifdef HAVE_LINUX_THREADS
22306 pthread_kill_other_threads_np();
22315 rm -f conftest.$ac_objext conftest$ac_exeext
22316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22317 (eval $ac_link) 2>conftest.er1
22319 grep -v '^ *+' conftest.er1 >conftest.err
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } &&
22324 { ac_try='test -z "$ac_c_werror_flag"
22325 || test ! -s conftest.err'
22326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327 (eval $ac_try) 2>&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; } &&
22331 { ac_try='test -s conftest$ac_exeext'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; }; then
22337 ol_cv_pthread_lib_lpthread_woff=yes
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 ol_cv_pthread_lib_lpthread_woff=no
22344 rm -f conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22347 cat >conftest.$ac_ext <<_ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22354 /* pthread test headers */
22355 #include <pthread.h>
22356 #if HAVE_PTHREADS < 7
22360 #define NULL (void*)0
22363 static void *task(p)
22366 return (void *) (p == NULL);
22370 int main(argc, argv)
22375 /* pthread test function */
22376 #ifndef PTHREAD_CREATE_DETACHED
22377 #define PTHREAD_CREATE_DETACHED 1
22381 int detach = PTHREAD_CREATE_DETACHED;
22383 #if HAVE_PTHREADS > 4
22384 /* Final pthreads */
22385 pthread_attr_t attr;
22387 status = pthread_attr_init(&attr);
22388 if( status ) return status;
22390 #if HAVE_PTHREADS < 7
22391 status = pthread_attr_setdetachstate(&attr, &detach);
22392 if( status < 0 ) status = errno;
22394 status = pthread_attr_setdetachstate(&attr, detach);
22396 if( status ) return status;
22397 status = pthread_create( &t, &attr, task, NULL );
22398 #if HAVE_PTHREADS < 7
22399 if( status < 0 ) status = errno;
22401 if( status ) return status;
22403 /* Draft 4 pthreads */
22404 status = pthread_create( &t, pthread_attr_default, task, NULL );
22405 if( status ) return errno;
22407 /* give thread a chance to complete */
22408 /* it should remain joinable and hence detachable */
22411 status = pthread_detach( &t );
22412 if( status ) return errno;
22415 #ifdef HAVE_LINUX_THREADS
22416 pthread_kill_other_threads_np();
22424 rm -f conftest$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426 (eval $ac_link) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 ol_cv_pthread_lib_lpthread_woff=yes
22437 echo "$as_me: program exited with status $ac_status" >&5
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ( exit $ac_status )
22442 ol_cv_pthread_lib_lpthread_woff=no
22444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22451 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22452 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22454 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22455 ol_link_pthreads="-lpthread -Wl,-woff,85"
22456 ol_link_threads=posix
22461 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22462 if test "$ol_link_threads" = no ; then
22464 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22465 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22466 if test "${ol_cv_pthread_lpthread+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 LIBS="-lpthread $LIBS"
22474 if test "$cross_compiling" = yes; then
22475 cat >conftest.$ac_ext <<_ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22482 /* pthread test headers */
22483 #include <pthread.h>
22484 #if HAVE_PTHREADS < 7
22488 #define NULL (void*)0
22491 static void *task(p)
22494 return (void *) (p == NULL);
22501 /* pthread test function */
22502 #ifndef PTHREAD_CREATE_DETACHED
22503 #define PTHREAD_CREATE_DETACHED 1
22507 int detach = PTHREAD_CREATE_DETACHED;
22509 #if HAVE_PTHREADS > 4
22510 /* Final pthreads */
22511 pthread_attr_t attr;
22513 status = pthread_attr_init(&attr);
22514 if( status ) return status;
22516 #if HAVE_PTHREADS < 7
22517 status = pthread_attr_setdetachstate(&attr, &detach);
22518 if( status < 0 ) status = errno;
22520 status = pthread_attr_setdetachstate(&attr, detach);
22522 if( status ) return status;
22523 status = pthread_create( &t, &attr, task, NULL );
22524 #if HAVE_PTHREADS < 7
22525 if( status < 0 ) status = errno;
22527 if( status ) return status;
22529 /* Draft 4 pthreads */
22530 status = pthread_create( &t, pthread_attr_default, task, NULL );
22531 if( status ) return errno;
22533 /* give thread a chance to complete */
22534 /* it should remain joinable and hence detachable */
22537 status = pthread_detach( &t );
22538 if( status ) return errno;
22541 #ifdef HAVE_LINUX_THREADS
22542 pthread_kill_other_threads_np();
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22553 (eval $ac_link) 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -z "$ac_c_werror_flag"
22561 || test ! -s conftest.err'
22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563 (eval $ac_try) 2>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; } &&
22567 { ac_try='test -s conftest$ac_exeext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ol_cv_pthread_lpthread=yes
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ol_cv_pthread_lpthread=no
22580 rm -f conftest.err conftest.$ac_objext \
22581 conftest$ac_exeext conftest.$ac_ext
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22590 /* pthread test headers */
22591 #include <pthread.h>
22592 #if HAVE_PTHREADS < 7
22596 #define NULL (void*)0
22599 static void *task(p)
22602 return (void *) (p == NULL);
22606 int main(argc, argv)
22611 /* pthread test function */
22612 #ifndef PTHREAD_CREATE_DETACHED
22613 #define PTHREAD_CREATE_DETACHED 1
22617 int detach = PTHREAD_CREATE_DETACHED;
22619 #if HAVE_PTHREADS > 4
22620 /* Final pthreads */
22621 pthread_attr_t attr;
22623 status = pthread_attr_init(&attr);
22624 if( status ) return status;
22626 #if HAVE_PTHREADS < 7
22627 status = pthread_attr_setdetachstate(&attr, &detach);
22628 if( status < 0 ) status = errno;
22630 status = pthread_attr_setdetachstate(&attr, detach);
22632 if( status ) return status;
22633 status = pthread_create( &t, &attr, task, NULL );
22634 #if HAVE_PTHREADS < 7
22635 if( status < 0 ) status = errno;
22637 if( status ) return status;
22639 /* Draft 4 pthreads */
22640 status = pthread_create( &t, pthread_attr_default, task, NULL );
22641 if( status ) return errno;
22643 /* give thread a chance to complete */
22644 /* it should remain joinable and hence detachable */
22647 status = pthread_detach( &t );
22648 if( status ) return errno;
22651 #ifdef HAVE_LINUX_THREADS
22652 pthread_kill_other_threads_np();
22660 rm -f conftest$ac_exeext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22662 (eval $ac_link) 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; }; then
22671 ol_cv_pthread_lpthread=yes
22673 echo "$as_me: program exited with status $ac_status" >&5
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22677 ( exit $ac_status )
22678 ol_cv_pthread_lpthread=no
22680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22687 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22688 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22690 if test $ol_cv_pthread_lpthread = yes ; then
22691 ol_link_pthreads="-lpthread"
22692 ol_link_threads=posix
22696 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22697 if test "$ol_link_threads" = no ; then
22699 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22700 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22701 if test "${ol_cv_pthread_lc_r+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 if test "$cross_compiling" = yes; then
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22717 /* pthread test headers */
22718 #include <pthread.h>
22719 #if HAVE_PTHREADS < 7
22723 #define NULL (void*)0
22726 static void *task(p)
22729 return (void *) (p == NULL);
22736 /* pthread test function */
22737 #ifndef PTHREAD_CREATE_DETACHED
22738 #define PTHREAD_CREATE_DETACHED 1
22742 int detach = PTHREAD_CREATE_DETACHED;
22744 #if HAVE_PTHREADS > 4
22745 /* Final pthreads */
22746 pthread_attr_t attr;
22748 status = pthread_attr_init(&attr);
22749 if( status ) return status;
22751 #if HAVE_PTHREADS < 7
22752 status = pthread_attr_setdetachstate(&attr, &detach);
22753 if( status < 0 ) status = errno;
22755 status = pthread_attr_setdetachstate(&attr, detach);
22757 if( status ) return status;
22758 status = pthread_create( &t, &attr, task, NULL );
22759 #if HAVE_PTHREADS < 7
22760 if( status < 0 ) status = errno;
22762 if( status ) return status;
22764 /* Draft 4 pthreads */
22765 status = pthread_create( &t, pthread_attr_default, task, NULL );
22766 if( status ) return errno;
22768 /* give thread a chance to complete */
22769 /* it should remain joinable and hence detachable */
22772 status = pthread_detach( &t );
22773 if( status ) return errno;
22776 #ifdef HAVE_LINUX_THREADS
22777 pthread_kill_other_threads_np();
22786 rm -f conftest.$ac_objext conftest$ac_exeext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } &&
22795 { ac_try='test -z "$ac_c_werror_flag"
22796 || test ! -s conftest.err'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try='test -s conftest$ac_exeext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ol_cv_pthread_lc_r=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ol_cv_pthread_lc_r=no
22815 rm -f conftest.err conftest.$ac_objext \
22816 conftest$ac_exeext conftest.$ac_ext
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22825 /* pthread test headers */
22826 #include <pthread.h>
22827 #if HAVE_PTHREADS < 7
22831 #define NULL (void*)0
22834 static void *task(p)
22837 return (void *) (p == NULL);
22841 int main(argc, argv)
22846 /* pthread test function */
22847 #ifndef PTHREAD_CREATE_DETACHED
22848 #define PTHREAD_CREATE_DETACHED 1
22852 int detach = PTHREAD_CREATE_DETACHED;
22854 #if HAVE_PTHREADS > 4
22855 /* Final pthreads */
22856 pthread_attr_t attr;
22858 status = pthread_attr_init(&attr);
22859 if( status ) return status;
22861 #if HAVE_PTHREADS < 7
22862 status = pthread_attr_setdetachstate(&attr, &detach);
22863 if( status < 0 ) status = errno;
22865 status = pthread_attr_setdetachstate(&attr, detach);
22867 if( status ) return status;
22868 status = pthread_create( &t, &attr, task, NULL );
22869 #if HAVE_PTHREADS < 7
22870 if( status < 0 ) status = errno;
22872 if( status ) return status;
22874 /* Draft 4 pthreads */
22875 status = pthread_create( &t, pthread_attr_default, task, NULL );
22876 if( status ) return errno;
22878 /* give thread a chance to complete */
22879 /* it should remain joinable and hence detachable */
22882 status = pthread_detach( &t );
22883 if( status ) return errno;
22886 #ifdef HAVE_LINUX_THREADS
22887 pthread_kill_other_threads_np();
22895 rm -f conftest$ac_exeext
22896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22897 (eval $ac_link) 2>&5
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 ol_cv_pthread_lc_r=yes
22908 echo "$as_me: program exited with status $ac_status" >&5
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ( exit $ac_status )
22913 ol_cv_pthread_lc_r=no
22915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22922 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22923 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22925 if test $ol_cv_pthread_lc_r = yes ; then
22926 ol_link_pthreads="-lc_r"
22927 ol_link_threads=posix
22932 # Pthread try link: -threads (ol_cv_pthread_threads)
22933 if test "$ol_link_threads" = no ; then
22935 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22936 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22937 if test "${ol_cv_pthread_threads+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 LIBS="-threads $LIBS"
22945 if test "$cross_compiling" = yes; then
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22953 /* pthread test headers */
22954 #include <pthread.h>
22955 #if HAVE_PTHREADS < 7
22959 #define NULL (void*)0
22962 static void *task(p)
22965 return (void *) (p == NULL);
22972 /* pthread test function */
22973 #ifndef PTHREAD_CREATE_DETACHED
22974 #define PTHREAD_CREATE_DETACHED 1
22978 int detach = PTHREAD_CREATE_DETACHED;
22980 #if HAVE_PTHREADS > 4
22981 /* Final pthreads */
22982 pthread_attr_t attr;
22984 status = pthread_attr_init(&attr);
22985 if( status ) return status;
22987 #if HAVE_PTHREADS < 7
22988 status = pthread_attr_setdetachstate(&attr, &detach);
22989 if( status < 0 ) status = errno;
22991 status = pthread_attr_setdetachstate(&attr, detach);
22993 if( status ) return status;
22994 status = pthread_create( &t, &attr, task, NULL );
22995 #if HAVE_PTHREADS < 7
22996 if( status < 0 ) status = errno;
22998 if( status ) return status;
23000 /* Draft 4 pthreads */
23001 status = pthread_create( &t, pthread_attr_default, task, NULL );
23002 if( status ) return errno;
23004 /* give thread a chance to complete */
23005 /* it should remain joinable and hence detachable */
23008 status = pthread_detach( &t );
23009 if( status ) return errno;
23012 #ifdef HAVE_LINUX_THREADS
23013 pthread_kill_other_threads_np();
23022 rm -f conftest.$ac_objext conftest$ac_exeext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23024 (eval $ac_link) 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } &&
23031 { ac_try='test -z "$ac_c_werror_flag"
23032 || test ! -s conftest.err'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; } &&
23038 { ac_try='test -s conftest$ac_exeext'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ol_cv_pthread_threads=yes
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ol_cv_pthread_threads=no
23051 rm -f conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23061 /* pthread test headers */
23062 #include <pthread.h>
23063 #if HAVE_PTHREADS < 7
23067 #define NULL (void*)0
23070 static void *task(p)
23073 return (void *) (p == NULL);
23077 int main(argc, argv)
23082 /* pthread test function */
23083 #ifndef PTHREAD_CREATE_DETACHED
23084 #define PTHREAD_CREATE_DETACHED 1
23088 int detach = PTHREAD_CREATE_DETACHED;
23090 #if HAVE_PTHREADS > 4
23091 /* Final pthreads */
23092 pthread_attr_t attr;
23094 status = pthread_attr_init(&attr);
23095 if( status ) return status;
23097 #if HAVE_PTHREADS < 7
23098 status = pthread_attr_setdetachstate(&attr, &detach);
23099 if( status < 0 ) status = errno;
23101 status = pthread_attr_setdetachstate(&attr, detach);
23103 if( status ) return status;
23104 status = pthread_create( &t, &attr, task, NULL );
23105 #if HAVE_PTHREADS < 7
23106 if( status < 0 ) status = errno;
23108 if( status ) return status;
23110 /* Draft 4 pthreads */
23111 status = pthread_create( &t, pthread_attr_default, task, NULL );
23112 if( status ) return errno;
23114 /* give thread a chance to complete */
23115 /* it should remain joinable and hence detachable */
23118 status = pthread_detach( &t );
23119 if( status ) return errno;
23122 #ifdef HAVE_LINUX_THREADS
23123 pthread_kill_other_threads_np();
23131 rm -f conftest$ac_exeext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133 (eval $ac_link) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ol_cv_pthread_threads=yes
23144 echo "$as_me: program exited with status $ac_status" >&5
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ( exit $ac_status )
23149 ol_cv_pthread_threads=no
23151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23158 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23159 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23161 if test $ol_cv_pthread_threads = yes ; then
23162 ol_link_pthreads="-threads"
23163 ol_link_threads=posix
23168 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23169 if test "$ol_link_threads" = no ; then
23170 # try -lpthreads -lmach -lexc -lc_r
23171 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23172 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23173 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23181 if test "$cross_compiling" = yes; then
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23189 /* pthread test headers */
23190 #include <pthread.h>
23191 #if HAVE_PTHREADS < 7
23195 #define NULL (void*)0
23198 static void *task(p)
23201 return (void *) (p == NULL);
23208 /* pthread test function */
23209 #ifndef PTHREAD_CREATE_DETACHED
23210 #define PTHREAD_CREATE_DETACHED 1
23214 int detach = PTHREAD_CREATE_DETACHED;
23216 #if HAVE_PTHREADS > 4
23217 /* Final pthreads */
23218 pthread_attr_t attr;
23220 status = pthread_attr_init(&attr);
23221 if( status ) return status;
23223 #if HAVE_PTHREADS < 7
23224 status = pthread_attr_setdetachstate(&attr, &detach);
23225 if( status < 0 ) status = errno;
23227 status = pthread_attr_setdetachstate(&attr, detach);
23229 if( status ) return status;
23230 status = pthread_create( &t, &attr, task, NULL );
23231 #if HAVE_PTHREADS < 7
23232 if( status < 0 ) status = errno;
23234 if( status ) return status;
23236 /* Draft 4 pthreads */
23237 status = pthread_create( &t, pthread_attr_default, task, NULL );
23238 if( status ) return errno;
23240 /* give thread a chance to complete */
23241 /* it should remain joinable and hence detachable */
23244 status = pthread_detach( &t );
23245 if( status ) return errno;
23248 #ifdef HAVE_LINUX_THREADS
23249 pthread_kill_other_threads_np();
23258 rm -f conftest.$ac_objext conftest$ac_exeext
23259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23260 (eval $ac_link) 2>conftest.er1
23262 grep -v '^ *+' conftest.er1 >conftest.err
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } &&
23267 { ac_try='test -z "$ac_c_werror_flag"
23268 || test ! -s conftest.err'
23269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; } &&
23274 { ac_try='test -s conftest$ac_exeext'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; }; then
23280 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23285 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23287 rm -f conftest.err conftest.$ac_objext \
23288 conftest$ac_exeext conftest.$ac_ext
23290 cat >conftest.$ac_ext <<_ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23297 /* pthread test headers */
23298 #include <pthread.h>
23299 #if HAVE_PTHREADS < 7
23303 #define NULL (void*)0
23306 static void *task(p)
23309 return (void *) (p == NULL);
23313 int main(argc, argv)
23318 /* pthread test function */
23319 #ifndef PTHREAD_CREATE_DETACHED
23320 #define PTHREAD_CREATE_DETACHED 1
23324 int detach = PTHREAD_CREATE_DETACHED;
23326 #if HAVE_PTHREADS > 4
23327 /* Final pthreads */
23328 pthread_attr_t attr;
23330 status = pthread_attr_init(&attr);
23331 if( status ) return status;
23333 #if HAVE_PTHREADS < 7
23334 status = pthread_attr_setdetachstate(&attr, &detach);
23335 if( status < 0 ) status = errno;
23337 status = pthread_attr_setdetachstate(&attr, detach);
23339 if( status ) return status;
23340 status = pthread_create( &t, &attr, task, NULL );
23341 #if HAVE_PTHREADS < 7
23342 if( status < 0 ) status = errno;
23344 if( status ) return status;
23346 /* Draft 4 pthreads */
23347 status = pthread_create( &t, pthread_attr_default, task, NULL );
23348 if( status ) return errno;
23350 /* give thread a chance to complete */
23351 /* it should remain joinable and hence detachable */
23354 status = pthread_detach( &t );
23355 if( status ) return errno;
23358 #ifdef HAVE_LINUX_THREADS
23359 pthread_kill_other_threads_np();
23367 rm -f conftest$ac_exeext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23369 (eval $ac_link) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; }; then
23378 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23380 echo "$as_me: program exited with status $ac_status" >&5
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ( exit $ac_status )
23385 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23395 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23397 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23398 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23399 ol_link_threads=posix
23403 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23404 if test "$ol_link_threads" = no ; then
23405 # try -lpthreads -lmach -lexc
23406 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23407 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23408 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 LIBS="-lpthreads -lmach -lexc $LIBS"
23416 if test "$cross_compiling" = yes; then
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23424 /* pthread test headers */
23425 #include <pthread.h>
23426 #if HAVE_PTHREADS < 7
23430 #define NULL (void*)0
23433 static void *task(p)
23436 return (void *) (p == NULL);
23443 /* pthread test function */
23444 #ifndef PTHREAD_CREATE_DETACHED
23445 #define PTHREAD_CREATE_DETACHED 1
23449 int detach = PTHREAD_CREATE_DETACHED;
23451 #if HAVE_PTHREADS > 4
23452 /* Final pthreads */
23453 pthread_attr_t attr;
23455 status = pthread_attr_init(&attr);
23456 if( status ) return status;
23458 #if HAVE_PTHREADS < 7
23459 status = pthread_attr_setdetachstate(&attr, &detach);
23460 if( status < 0 ) status = errno;
23462 status = pthread_attr_setdetachstate(&attr, detach);
23464 if( status ) return status;
23465 status = pthread_create( &t, &attr, task, NULL );
23466 #if HAVE_PTHREADS < 7
23467 if( status < 0 ) status = errno;
23469 if( status ) return status;
23471 /* Draft 4 pthreads */
23472 status = pthread_create( &t, pthread_attr_default, task, NULL );
23473 if( status ) return errno;
23475 /* give thread a chance to complete */
23476 /* it should remain joinable and hence detachable */
23479 status = pthread_detach( &t );
23480 if( status ) return errno;
23483 #ifdef HAVE_LINUX_THREADS
23484 pthread_kill_other_threads_np();
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23495 (eval $ac_link) 2>conftest.er1
23497 grep -v '^ *+' conftest.er1 >conftest.err
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } &&
23502 { ac_try='test -z "$ac_c_werror_flag"
23503 || test ! -s conftest.err'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest$ac_exeext'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 ol_cv_pthread_lpthreads_lmach_lexc=yes
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 ol_cv_pthread_lpthreads_lmach_lexc=no
23522 rm -f conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23525 cat >conftest.$ac_ext <<_ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23532 /* pthread test headers */
23533 #include <pthread.h>
23534 #if HAVE_PTHREADS < 7
23538 #define NULL (void*)0
23541 static void *task(p)
23544 return (void *) (p == NULL);
23548 int main(argc, argv)
23553 /* pthread test function */
23554 #ifndef PTHREAD_CREATE_DETACHED
23555 #define PTHREAD_CREATE_DETACHED 1
23559 int detach = PTHREAD_CREATE_DETACHED;
23561 #if HAVE_PTHREADS > 4
23562 /* Final pthreads */
23563 pthread_attr_t attr;
23565 status = pthread_attr_init(&attr);
23566 if( status ) return status;
23568 #if HAVE_PTHREADS < 7
23569 status = pthread_attr_setdetachstate(&attr, &detach);
23570 if( status < 0 ) status = errno;
23572 status = pthread_attr_setdetachstate(&attr, detach);
23574 if( status ) return status;
23575 status = pthread_create( &t, &attr, task, NULL );
23576 #if HAVE_PTHREADS < 7
23577 if( status < 0 ) status = errno;
23579 if( status ) return status;
23581 /* Draft 4 pthreads */
23582 status = pthread_create( &t, pthread_attr_default, task, NULL );
23583 if( status ) return errno;
23585 /* give thread a chance to complete */
23586 /* it should remain joinable and hence detachable */
23589 status = pthread_detach( &t );
23590 if( status ) return errno;
23593 #ifdef HAVE_LINUX_THREADS
23594 pthread_kill_other_threads_np();
23602 rm -f conftest$ac_exeext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 ol_cv_pthread_lpthreads_lmach_lexc=yes
23615 echo "$as_me: program exited with status $ac_status" >&5
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619 ( exit $ac_status )
23620 ol_cv_pthread_lpthreads_lmach_lexc=no
23622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23629 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23630 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23632 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23633 ol_link_pthreads="-lpthreads -lmach -lexc"
23634 ol_link_threads=posix
23638 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23639 if test "$ol_link_threads" = no ; then
23640 # try -lpthreads -lexc
23641 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23642 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23643 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23649 LIBS="-lpthreads -lexc $LIBS"
23651 if test "$cross_compiling" = yes; then
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23659 /* pthread test headers */
23660 #include <pthread.h>
23661 #if HAVE_PTHREADS < 7
23665 #define NULL (void*)0
23668 static void *task(p)
23671 return (void *) (p == NULL);
23678 /* pthread test function */
23679 #ifndef PTHREAD_CREATE_DETACHED
23680 #define PTHREAD_CREATE_DETACHED 1
23684 int detach = PTHREAD_CREATE_DETACHED;
23686 #if HAVE_PTHREADS > 4
23687 /* Final pthreads */
23688 pthread_attr_t attr;
23690 status = pthread_attr_init(&attr);
23691 if( status ) return status;
23693 #if HAVE_PTHREADS < 7
23694 status = pthread_attr_setdetachstate(&attr, &detach);
23695 if( status < 0 ) status = errno;
23697 status = pthread_attr_setdetachstate(&attr, detach);
23699 if( status ) return status;
23700 status = pthread_create( &t, &attr, task, NULL );
23701 #if HAVE_PTHREADS < 7
23702 if( status < 0 ) status = errno;
23704 if( status ) return status;
23706 /* Draft 4 pthreads */
23707 status = pthread_create( &t, pthread_attr_default, task, NULL );
23708 if( status ) return errno;
23710 /* give thread a chance to complete */
23711 /* it should remain joinable and hence detachable */
23714 status = pthread_detach( &t );
23715 if( status ) return errno;
23718 #ifdef HAVE_LINUX_THREADS
23719 pthread_kill_other_threads_np();
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730 (eval $ac_link) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag"
23738 || test ! -s conftest.err'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest$ac_exeext'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ol_cv_pthread_lpthreads_lexc=yes
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ol_cv_pthread_lpthreads_lexc=no
23757 rm -f conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23767 /* pthread test headers */
23768 #include <pthread.h>
23769 #if HAVE_PTHREADS < 7
23773 #define NULL (void*)0
23776 static void *task(p)
23779 return (void *) (p == NULL);
23783 int main(argc, argv)
23788 /* pthread test function */
23789 #ifndef PTHREAD_CREATE_DETACHED
23790 #define PTHREAD_CREATE_DETACHED 1
23794 int detach = PTHREAD_CREATE_DETACHED;
23796 #if HAVE_PTHREADS > 4
23797 /* Final pthreads */
23798 pthread_attr_t attr;
23800 status = pthread_attr_init(&attr);
23801 if( status ) return status;
23803 #if HAVE_PTHREADS < 7
23804 status = pthread_attr_setdetachstate(&attr, &detach);
23805 if( status < 0 ) status = errno;
23807 status = pthread_attr_setdetachstate(&attr, detach);
23809 if( status ) return status;
23810 status = pthread_create( &t, &attr, task, NULL );
23811 #if HAVE_PTHREADS < 7
23812 if( status < 0 ) status = errno;
23814 if( status ) return status;
23816 /* Draft 4 pthreads */
23817 status = pthread_create( &t, pthread_attr_default, task, NULL );
23818 if( status ) return errno;
23820 /* give thread a chance to complete */
23821 /* it should remain joinable and hence detachable */
23824 status = pthread_detach( &t );
23825 if( status ) return errno;
23828 #ifdef HAVE_LINUX_THREADS
23829 pthread_kill_other_threads_np();
23837 rm -f conftest$ac_exeext
23838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23839 (eval $ac_link) 2>&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; }; then
23848 ol_cv_pthread_lpthreads_lexc=yes
23850 echo "$as_me: program exited with status $ac_status" >&5
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 ( exit $ac_status )
23855 ol_cv_pthread_lpthreads_lexc=no
23857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23864 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23865 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23867 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23868 ol_link_pthreads="-lpthreads -lexc"
23869 ol_link_threads=posix
23874 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23875 if test "$ol_link_threads" = no ; then
23877 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23878 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23879 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 LIBS="-lpthreads $LIBS"
23887 if test "$cross_compiling" = yes; then
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23895 /* pthread test headers */
23896 #include <pthread.h>
23897 #if HAVE_PTHREADS < 7
23901 #define NULL (void*)0
23904 static void *task(p)
23907 return (void *) (p == NULL);
23914 /* pthread test function */
23915 #ifndef PTHREAD_CREATE_DETACHED
23916 #define PTHREAD_CREATE_DETACHED 1
23920 int detach = PTHREAD_CREATE_DETACHED;
23922 #if HAVE_PTHREADS > 4
23923 /* Final pthreads */
23924 pthread_attr_t attr;
23926 status = pthread_attr_init(&attr);
23927 if( status ) return status;
23929 #if HAVE_PTHREADS < 7
23930 status = pthread_attr_setdetachstate(&attr, &detach);
23931 if( status < 0 ) status = errno;
23933 status = pthread_attr_setdetachstate(&attr, detach);
23935 if( status ) return status;
23936 status = pthread_create( &t, &attr, task, NULL );
23937 #if HAVE_PTHREADS < 7
23938 if( status < 0 ) status = errno;
23940 if( status ) return status;
23942 /* Draft 4 pthreads */
23943 status = pthread_create( &t, pthread_attr_default, task, NULL );
23944 if( status ) return errno;
23946 /* give thread a chance to complete */
23947 /* it should remain joinable and hence detachable */
23950 status = pthread_detach( &t );
23951 if( status ) return errno;
23954 #ifdef HAVE_LINUX_THREADS
23955 pthread_kill_other_threads_np();
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23966 (eval $ac_link) 2>conftest.er1
23968 grep -v '^ *+' conftest.er1 >conftest.err
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -z "$ac_c_werror_flag"
23974 || test ! -s conftest.err'
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; } &&
23980 { ac_try='test -s conftest$ac_exeext'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23986 ol_cv_pthread_lib_lpthreads=yes
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 ol_cv_pthread_lib_lpthreads=no
23993 rm -f conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24003 /* pthread test headers */
24004 #include <pthread.h>
24005 #if HAVE_PTHREADS < 7
24009 #define NULL (void*)0
24012 static void *task(p)
24015 return (void *) (p == NULL);
24019 int main(argc, argv)
24024 /* pthread test function */
24025 #ifndef PTHREAD_CREATE_DETACHED
24026 #define PTHREAD_CREATE_DETACHED 1
24030 int detach = PTHREAD_CREATE_DETACHED;
24032 #if HAVE_PTHREADS > 4
24033 /* Final pthreads */
24034 pthread_attr_t attr;
24036 status = pthread_attr_init(&attr);
24037 if( status ) return status;
24039 #if HAVE_PTHREADS < 7
24040 status = pthread_attr_setdetachstate(&attr, &detach);
24041 if( status < 0 ) status = errno;
24043 status = pthread_attr_setdetachstate(&attr, detach);
24045 if( status ) return status;
24046 status = pthread_create( &t, &attr, task, NULL );
24047 #if HAVE_PTHREADS < 7
24048 if( status < 0 ) status = errno;
24050 if( status ) return status;
24052 /* Draft 4 pthreads */
24053 status = pthread_create( &t, pthread_attr_default, task, NULL );
24054 if( status ) return errno;
24056 /* give thread a chance to complete */
24057 /* it should remain joinable and hence detachable */
24060 status = pthread_detach( &t );
24061 if( status ) return errno;
24064 #ifdef HAVE_LINUX_THREADS
24065 pthread_kill_other_threads_np();
24073 rm -f conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075 (eval $ac_link) 2>&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24084 ol_cv_pthread_lib_lpthreads=yes
24086 echo "$as_me: program exited with status $ac_status" >&5
24087 echo "$as_me: failed program was:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24090 ( exit $ac_status )
24091 ol_cv_pthread_lib_lpthreads=no
24093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24101 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24103 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24104 ol_link_pthreads="-lpthreads"
24105 ol_link_threads=posix
24110 if test $ol_link_threads != no ; then
24111 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24113 save_CPPFLAGS="$CPPFLAGS"
24115 LIBS="$LTHREAD_LIBS $LIBS"
24120 for ac_func in sched_yield pthread_yield thr_yield
24122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24123 echo "$as_me:$LINENO: checking for $ac_func" >&5
24124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24125 if eval "test \"\${$as_ac_var+set}\" = set"; then
24126 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24136 #define $ac_func innocuous_$ac_func
24138 /* System header to define __stub macros and hopefully few prototypes,
24139 which can conflict with char $ac_func (); below.
24140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24141 <limits.h> exists even on freestanding compilers. */
24144 # include <limits.h>
24146 # include <assert.h>
24151 /* Override any gcc2 internal prototype to avoid an error. */
24156 /* We use char because int might match the return type of a gcc2
24157 builtin and then its argument prototype would still apply. */
24159 /* The GNU C library defines this for functions which it implements
24160 to always fail with ENOSYS. Some functions are actually named
24161 something starting with __ and the normal name is an alias. */
24162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24165 char (*f) () = $ac_func;
24174 return f != $ac_func;
24179 rm -f conftest.$ac_objext conftest$ac_exeext
24180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24181 (eval $ac_link) 2>conftest.er1
24183 grep -v '^ *+' conftest.er1 >conftest.err
24185 cat conftest.err >&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } &&
24188 { ac_try='test -z "$ac_c_werror_flag"
24189 || test ! -s conftest.err'
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; } &&
24195 { ac_try='test -s conftest$ac_exeext'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24201 eval "$as_ac_var=yes"
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 eval "$as_ac_var=no"
24208 rm -f conftest.err conftest.$ac_objext \
24209 conftest$ac_exeext conftest.$ac_ext
24211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24213 if test `eval echo '${'$as_ac_var'}'` = yes; then
24214 cat >>confdefs.h <<_ACEOF
24215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24222 if test $ac_cv_func_sched_yield = no &&
24223 test $ac_cv_func_pthread_yield = no &&
24224 test $ac_cv_func_thr_yield = no ; then
24225 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24226 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24227 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24230 ac_check_lib_save_LIBS=$LIBS
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 /* Override any gcc2 internal prototype to avoid an error. */
24243 /* We use char because int might match the return type of a gcc2
24244 builtin and then its argument prototype would still apply. */
24245 char sched_yield ();
24254 rm -f conftest.$ac_objext conftest$ac_exeext
24255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24256 (eval $ac_link) 2>conftest.er1
24258 grep -v '^ *+' conftest.er1 >conftest.err
24260 cat conftest.err >&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } &&
24263 { ac_try='test -z "$ac_c_werror_flag"
24264 || test ! -s conftest.err'
24265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266 (eval $ac_try) 2>&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); }; } &&
24270 { ac_try='test -s conftest$ac_exeext'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ac_cv_lib_rt_sched_yield=yes
24278 echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ac_cv_lib_rt_sched_yield=no
24283 rm -f conftest.err conftest.$ac_objext \
24284 conftest$ac_exeext conftest.$ac_ext
24285 LIBS=$ac_check_lib_save_LIBS
24287 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24288 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24289 if test $ac_cv_lib_rt_sched_yield = yes; then
24290 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24292 cat >>confdefs.h <<\_ACEOF
24293 #define HAVE_SCHED_YIELD 1
24296 ac_cv_func_sched_yield=yes
24298 ac_cv_func_sched_yield=no
24302 if test $ac_cv_func_sched_yield = no &&
24303 test $ac_cv_func_pthread_yield = no &&
24304 test "$ac_cv_func_thr_yield" = no ; then
24305 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24306 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24311 for ac_func in pthread_kill pthread_rwlock_destroy
24313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24314 echo "$as_me:$LINENO: checking for $ac_func" >&5
24315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24316 if eval "test \"\${$as_ac_var+set}\" = set"; then
24317 echo $ECHO_N "(cached) $ECHO_C" >&6
24319 cat >conftest.$ac_ext <<_ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24327 #define $ac_func innocuous_$ac_func
24329 /* System header to define __stub macros and hopefully few prototypes,
24330 which can conflict with char $ac_func (); below.
24331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24332 <limits.h> exists even on freestanding compilers. */
24335 # include <limits.h>
24337 # include <assert.h>
24342 /* Override any gcc2 internal prototype to avoid an error. */
24347 /* We use char because int might match the return type of a gcc2
24348 builtin and then its argument prototype would still apply. */
24350 /* The GNU C library defines this for functions which it implements
24351 to always fail with ENOSYS. Some functions are actually named
24352 something starting with __ and the normal name is an alias. */
24353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24356 char (*f) () = $ac_func;
24365 return f != $ac_func;
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372 (eval $ac_link) 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
24379 { ac_try='test -z "$ac_c_werror_flag"
24380 || test ! -s conftest.err'
24381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382 (eval $ac_try) 2>&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; } &&
24386 { ac_try='test -s conftest$ac_exeext'
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; }; then
24392 eval "$as_ac_var=yes"
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 eval "$as_ac_var=no"
24399 rm -f conftest.err conftest.$ac_objext \
24400 conftest$ac_exeext conftest.$ac_ext
24402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24404 if test `eval echo '${'$as_ac_var'}'` = yes; then
24405 cat >>confdefs.h <<_ACEOF
24406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24413 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24414 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24415 if test "${ol_cv_func_pthread_detach+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 cat >conftest.$ac_ext <<_ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24426 #include <pthread.h>
24428 #define NULL (void*)0
24434 pthread_detach(NULL);
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441 (eval $ac_link) 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } &&
24448 { ac_try='test -z "$ac_c_werror_flag"
24449 || test ! -s conftest.err'
24450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451 (eval $ac_try) 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; } &&
24455 { ac_try='test -s conftest$ac_exeext'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 ol_cv_func_pthread_detach=yes
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ol_cv_func_pthread_detach=no
24468 rm -f conftest.err conftest.$ac_objext \
24469 conftest$ac_exeext conftest.$ac_ext
24472 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24473 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24475 if test $ol_cv_func_pthread_detach = no ; then
24476 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24477 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24478 { (exit 1); exit 1; }; }
24482 cat >>confdefs.h <<\_ACEOF
24483 #define HAVE_PTHREAD_DETACH 1
24492 pthread_setconcurrency \
24493 pthread_getconcurrency \
24494 thr_setconcurrency \
24495 thr_getconcurrency \
24498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24499 echo "$as_me:$LINENO: checking for $ac_func" >&5
24500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24501 if eval "test \"\${$as_ac_var+set}\" = set"; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24512 #define $ac_func innocuous_$ac_func
24514 /* System header to define __stub macros and hopefully few prototypes,
24515 which can conflict with char $ac_func (); below.
24516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24517 <limits.h> exists even on freestanding compilers. */
24520 # include <limits.h>
24522 # include <assert.h>
24527 /* Override any gcc2 internal prototype to avoid an error. */
24532 /* We use char because int might match the return type of a gcc2
24533 builtin and then its argument prototype would still apply. */
24535 /* The GNU C library defines this for functions which it implements
24536 to always fail with ENOSYS. Some functions are actually named
24537 something starting with __ and the normal name is an alias. */
24538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24541 char (*f) () = $ac_func;
24550 return f != $ac_func;
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557 (eval $ac_link) 2>conftest.er1
24559 grep -v '^ *+' conftest.er1 >conftest.err
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } &&
24564 { ac_try='test -z "$ac_c_werror_flag"
24565 || test ! -s conftest.err'
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; } &&
24571 { ac_try='test -s conftest$ac_exeext'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 eval "$as_ac_var=yes"
24579 echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24582 eval "$as_ac_var=no"
24584 rm -f conftest.err conftest.$ac_objext \
24585 conftest$ac_exeext conftest.$ac_ext
24587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24600 for ac_func in pthread_kill_other_threads_np
24602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24603 echo "$as_me:$LINENO: checking for $ac_func" >&5
24604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24605 if eval "test \"\${$as_ac_var+set}\" = set"; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24608 cat >conftest.$ac_ext <<_ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24616 #define $ac_func innocuous_$ac_func
24618 /* System header to define __stub macros and hopefully few prototypes,
24619 which can conflict with char $ac_func (); below.
24620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24621 <limits.h> exists even on freestanding compilers. */
24624 # include <limits.h>
24626 # include <assert.h>
24631 /* Override any gcc2 internal prototype to avoid an error. */
24636 /* We use char because int might match the return type of a gcc2
24637 builtin and then its argument prototype would still apply. */
24639 /* The GNU C library defines this for functions which it implements
24640 to always fail with ENOSYS. Some functions are actually named
24641 something starting with __ and the normal name is an alias. */
24642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24645 char (*f) () = $ac_func;
24654 return f != $ac_func;
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661 (eval $ac_link) 2>conftest.er1
24663 grep -v '^ *+' conftest.er1 >conftest.err
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag"
24669 || test ! -s conftest.err'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; } &&
24675 { ac_try='test -s conftest$ac_exeext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 eval "$as_ac_var=yes"
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 eval "$as_ac_var=no"
24688 rm -f conftest.err conftest.$ac_objext \
24689 conftest$ac_exeext conftest.$ac_ext
24691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24693 if test `eval echo '${'$as_ac_var'}'` = yes; then
24694 cat >>confdefs.h <<_ACEOF
24695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24701 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24702 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24703 if test "${ol_cv_sys_linux_threads+set}" = set; then
24704 echo $ECHO_N "(cached) $ECHO_C" >&6
24706 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24708 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24709 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24714 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24715 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24716 if test "${ol_cv_linux_threads+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 if test $ol_cv_header_linux_threads = yes &&
24721 test $ol_cv_sys_linux_threads = yes; then
24722 ol_cv_linux_threads=yes
24723 elif test $ol_cv_header_linux_threads = no &&
24724 test $ol_cv_sys_linux_threads = no; then
24725 ol_cv_linux_threads=no
24727 ol_cv_linux_threads=error
24731 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24732 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24735 if test $ol_cv_linux_threads = error; then
24736 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24737 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24738 { (exit 1); exit 1; }; };
24741 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24742 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24743 if test "${ol_cv_pthread_create_works+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 if test "$cross_compiling" = yes; then
24748 ol_cv_pthread_create_works=yes
24750 cat >conftest.$ac_ext <<_ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24757 /* pthread test headers */
24758 #include <pthread.h>
24759 #if HAVE_PTHREADS < 7
24763 #define NULL (void*)0
24766 static void *task(p)
24769 return (void *) (p == NULL);
24773 int main(argc, argv)
24778 /* pthread test function */
24779 #ifndef PTHREAD_CREATE_DETACHED
24780 #define PTHREAD_CREATE_DETACHED 1
24784 int detach = PTHREAD_CREATE_DETACHED;
24786 #if HAVE_PTHREADS > 4
24787 /* Final pthreads */
24788 pthread_attr_t attr;
24790 status = pthread_attr_init(&attr);
24791 if( status ) return status;
24793 #if HAVE_PTHREADS < 7
24794 status = pthread_attr_setdetachstate(&attr, &detach);
24795 if( status < 0 ) status = errno;
24797 status = pthread_attr_setdetachstate(&attr, detach);
24799 if( status ) return status;
24800 status = pthread_create( &t, &attr, task, NULL );
24801 #if HAVE_PTHREADS < 7
24802 if( status < 0 ) status = errno;
24804 if( status ) return status;
24806 /* Draft 4 pthreads */
24807 status = pthread_create( &t, pthread_attr_default, task, NULL );
24808 if( status ) return errno;
24810 /* give thread a chance to complete */
24811 /* it should remain joinable and hence detachable */
24814 status = pthread_detach( &t );
24815 if( status ) return errno;
24818 #ifdef HAVE_LINUX_THREADS
24819 pthread_kill_other_threads_np();
24827 rm -f conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829 (eval $ac_link) 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 (eval $ac_try) 2>&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); }; }; then
24838 ol_cv_pthread_create_works=yes
24840 echo "$as_me: program exited with status $ac_status" >&5
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ( exit $ac_status )
24845 ol_cv_pthread_create_works=no
24847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24850 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24851 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24853 if test $ol_cv_pthread_create_works = no ; then
24854 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24855 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24856 { (exit 1); exit 1; }; }
24859 ol_replace_broken_yield=no
24861 if test $ol_replace_broken_yield = yes ; then
24863 cat >>confdefs.h <<\_ACEOF
24864 #define REPLACE_BROKEN_YIELD 1
24869 if test $ol_with_yielding_select = auto ; then
24870 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24871 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24872 if test "${ol_cv_pthread_select_yields+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 if test "$cross_compiling" = yes; then
24877 ol_cv_pthread_select_yields=cross
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24886 #include <sys/types.h>
24887 #include <sys/time.h>
24888 #include <unistd.h>
24889 #include <pthread.h>
24891 #define NULL (void*) 0
24894 static int fildes[2];
24896 static void *task(p)
24908 FD_SET(fildes[0], &rfds);
24910 /* we're not interested in any fds */
24911 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24918 exit(0); /* if we exit here, the select blocked the whole process */
24921 int main(argc, argv)
24927 /* create a pipe to select */
24928 if(pipe(&fildes[0])) {
24933 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24934 (void) pthread_setconcurrency(2);
24936 #ifdef HAVE_THR_SETCONCURRENCY
24937 /* Set Solaris LWP concurrency to 2 */
24938 thr_setconcurrency(2);
24942 #if HAVE_PTHREADS < 6
24943 pthread_create(&t, pthread_attr_default, task, NULL);
24945 pthread_create(&t, NULL, task, NULL);
24948 /* make sure task runs first */
24951 #elif defined( HAVE_SCHED_YIELD )
24953 #elif defined( HAVE_PTHREAD_YIELD )
24960 rm -f conftest$ac_exeext
24961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24962 (eval $ac_link) 2>&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967 (eval $ac_try) 2>&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); }; }; then
24971 ol_cv_pthread_select_yields=no
24973 echo "$as_me: program exited with status $ac_status" >&5
24974 echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24977 ( exit $ac_status )
24978 ol_cv_pthread_select_yields=yes
24980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24983 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24984 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24986 if test $ol_cv_pthread_select_yields = cross ; then
24987 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24988 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24989 { (exit 1); exit 1; }; }
24992 if test $ol_cv_pthread_select_yields = yes ; then
24993 ol_with_yielding_select=yes
24997 CPPFLAGS="$save_CPPFLAGS"
25000 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25001 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25002 { (exit 1); exit 1; }; }
25006 if test $ol_with_threads = posix ; then
25007 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25008 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25009 { (exit 1); exit 1; }; }
25014 case $ol_with_threads in auto | yes | mach)
25018 for ac_header in mach/cthreads.h cthreads.h
25020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25022 echo "$as_me:$LINENO: checking for $ac_header" >&5
25023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25030 # Is the header compilable?
25031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 $ac_includes_default
25040 #include <$ac_header>
25042 rm -f conftest.$ac_objext
25043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25044 (eval $ac_compile) 2>conftest.er1
25046 grep -v '^ *+' conftest.er1 >conftest.err
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } &&
25051 { ac_try='test -z "$ac_c_werror_flag"
25052 || test ! -s conftest.err'
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; } &&
25058 { ac_try='test -s conftest.$ac_objext'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 ac_header_compiler=yes
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ac_header_compiler=no
25071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25073 echo "${ECHO_T}$ac_header_compiler" >&6
25075 # Is the header present?
25076 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25078 cat >conftest.$ac_ext <<_ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25084 #include <$ac_header>
25086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25089 grep -v '^ *+' conftest.er1 >conftest.err
25091 cat conftest.err >&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } >/dev/null; then
25094 if test -s conftest.err; then
25095 ac_cpp_err=$ac_c_preproc_warn_flag
25096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25103 if test -z "$ac_cpp_err"; then
25104 ac_header_preproc=yes
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_header_preproc=no
25111 rm -f conftest.err conftest.$ac_ext
25112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25113 echo "${ECHO_T}$ac_header_preproc" >&6
25115 # So? What about this header?
25116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25122 ac_header_preproc=yes
25125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25139 ## --------------------------------------------- ##
25140 ## Report this to <http://www.openldap.org/its/> ##
25141 ## --------------------------------------------- ##
25144 sed "s/^/$as_me: WARNING: /" >&2
25147 echo "$as_me:$LINENO: checking for $ac_header" >&5
25148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25152 eval "$as_ac_Header=\$ac_header_preproc"
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25159 cat >>confdefs.h <<_ACEOF
25160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25167 if test $ac_cv_header_mach_cthreads_h = yes ; then
25168 ol_with_threads=found
25170 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25171 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25172 if test "${ac_cv_func_cthread_fork+set}" = set; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25175 cat >conftest.$ac_ext <<_ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25183 #define cthread_fork innocuous_cthread_fork
25185 /* System header to define __stub macros and hopefully few prototypes,
25186 which can conflict with char cthread_fork (); below.
25187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25188 <limits.h> exists even on freestanding compilers. */
25191 # include <limits.h>
25193 # include <assert.h>
25196 #undef cthread_fork
25198 /* Override any gcc2 internal prototype to avoid an error. */
25203 /* We use char because int might match the return type of a gcc2
25204 builtin and then its argument prototype would still apply. */
25205 char cthread_fork ();
25206 /* The GNU C library defines this for functions which it implements
25207 to always fail with ENOSYS. Some functions are actually named
25208 something starting with __ and the normal name is an alias. */
25209 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25212 char (*f) () = cthread_fork;
25221 return f != cthread_fork;
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228 (eval $ac_link) 2>conftest.er1
25230 grep -v '^ *+' conftest.er1 >conftest.err
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
25235 { ac_try='test -z "$ac_c_werror_flag"
25236 || test ! -s conftest.err'
25237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238 (eval $ac_try) 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); }; } &&
25242 { ac_try='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 ac_cv_func_cthread_fork=yes
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25253 ac_cv_func_cthread_fork=no
25255 rm -f conftest.err conftest.$ac_objext \
25256 conftest$ac_exeext conftest.$ac_ext
25258 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25259 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25260 if test $ac_cv_func_cthread_fork = yes; then
25261 ol_link_threads=yes
25265 if test $ol_link_threads = no ; then
25266 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25267 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25268 if test "${ol_cv_cthread_all_load+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 LIBS="-all_load $LIBS"
25274 cat >conftest.$ac_ext <<_ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h. */
25280 #include <mach/cthreads.h>
25285 cthread_fork((void *)0, (void *)0);
25291 rm -f conftest.$ac_objext conftest$ac_exeext
25292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25293 (eval $ac_link) 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } &&
25300 { ac_try='test -z "$ac_c_werror_flag"
25301 || test ! -s conftest.err'
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; } &&
25307 { ac_try='test -s conftest$ac_exeext'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ol_cv_cthread_all_load=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ol_cv_cthread_all_load=no
25320 rm -f conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
25325 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25326 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25328 if test $ol_cv_cthread_all_load = yes ; then
25329 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25330 ol_link_threads=mach
25331 ol_with_threads=found
25335 elif test $ac_cv_header_cthreads_h = yes ; then
25337 ol_with_threads=found
25340 LIBS="$LIBS -lthreads"
25341 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25342 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25343 if test "${ac_cv_func_cthread_fork+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25354 #define cthread_fork innocuous_cthread_fork
25356 /* System header to define __stub macros and hopefully few prototypes,
25357 which can conflict with char cthread_fork (); below.
25358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25359 <limits.h> exists even on freestanding compilers. */
25362 # include <limits.h>
25364 # include <assert.h>
25367 #undef cthread_fork
25369 /* Override any gcc2 internal prototype to avoid an error. */
25374 /* We use char because int might match the return type of a gcc2
25375 builtin and then its argument prototype would still apply. */
25376 char cthread_fork ();
25377 /* The GNU C library defines this for functions which it implements
25378 to always fail with ENOSYS. Some functions are actually named
25379 something starting with __ and the normal name is an alias. */
25380 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25383 char (*f) () = cthread_fork;
25392 return f != cthread_fork;
25397 rm -f conftest.$ac_objext conftest$ac_exeext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25399 (eval $ac_link) 2>conftest.er1
25401 grep -v '^ *+' conftest.er1 >conftest.err
25403 cat conftest.err >&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); } &&
25406 { ac_try='test -z "$ac_c_werror_flag"
25407 || test ! -s conftest.err'
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; } &&
25413 { ac_try='test -s conftest$ac_exeext'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25419 ac_cv_func_cthread_fork=yes
25421 echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25424 ac_cv_func_cthread_fork=no
25426 rm -f conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25429 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25430 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25431 if test $ac_cv_func_cthread_fork = yes; then
25432 ol_link_threads=yes
25437 if test $ol_link_threads = yes ; then
25438 LTHREAD_LIBS="-lthreads"
25439 ol_link_threads=mach
25440 ol_with_threads=found
25442 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25443 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25444 { (exit 1); exit 1; }; }
25447 elif test $ol_with_threads = mach ; then
25448 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25449 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25450 { (exit 1); exit 1; }; }
25453 if test $ol_link_threads = mach ; then
25455 cat >>confdefs.h <<\_ACEOF
25456 #define HAVE_MACH_CTHREADS 1
25459 elif test $ol_with_threads = found ; then
25460 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25461 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25462 { (exit 1); exit 1; }; }
25467 case $ol_with_threads in auto | yes | pth)
25470 for ac_header in pth.h
25472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25474 echo "$as_me:$LINENO: checking for $ac_header" >&5
25475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25482 # Is the header compilable?
25483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25485 cat >conftest.$ac_ext <<_ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 $ac_includes_default
25492 #include <$ac_header>
25494 rm -f conftest.$ac_objext
25495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25496 (eval $ac_compile) 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } &&
25503 { ac_try='test -z "$ac_c_werror_flag"
25504 || test ! -s conftest.err'
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; } &&
25510 { ac_try='test -s conftest.$ac_objext'
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; }; then
25516 ac_header_compiler=yes
25518 echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25521 ac_header_compiler=no
25523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25525 echo "${ECHO_T}$ac_header_compiler" >&6
25527 # Is the header present?
25528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25530 cat >conftest.$ac_ext <<_ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536 #include <$ac_header>
25538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25541 grep -v '^ *+' conftest.er1 >conftest.err
25543 cat conftest.err >&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } >/dev/null; then
25546 if test -s conftest.err; then
25547 ac_cpp_err=$ac_c_preproc_warn_flag
25548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25555 if test -z "$ac_cpp_err"; then
25556 ac_header_preproc=yes
25558 echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25561 ac_header_preproc=no
25563 rm -f conftest.err conftest.$ac_ext
25564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25565 echo "${ECHO_T}$ac_header_preproc" >&6
25567 # So? What about this header?
25568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25574 ac_header_preproc=yes
25577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25591 ## --------------------------------------------- ##
25592 ## Report this to <http://www.openldap.org/its/> ##
25593 ## --------------------------------------------- ##
25596 sed "s/^/$as_me: WARNING: /" >&2
25599 echo "$as_me:$LINENO: checking for $ac_header" >&5
25600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25602 echo $ECHO_N "(cached) $ECHO_C" >&6
25604 eval "$as_ac_Header=\$ac_header_preproc"
25606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25611 cat >>confdefs.h <<_ACEOF
25612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25620 if test $ac_cv_header_pth_h = yes ; then
25621 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25622 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25623 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25626 ac_check_lib_save_LIBS=$LIBS
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25635 /* Override any gcc2 internal prototype to avoid an error. */
25639 /* We use char because int might match the return type of a gcc2
25640 builtin and then its argument prototype would still apply. */
25641 char pth_version ();
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652 (eval $ac_link) 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_c_werror_flag"
25660 || test ! -s conftest.err'
25661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662 (eval $ac_try) 2>&5
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); }; } &&
25666 { ac_try='test -s conftest$ac_exeext'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 ac_cv_lib_pth_pth_version=yes
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25677 ac_cv_lib_pth_pth_version=no
25679 rm -f conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25683 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25684 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25685 if test $ac_cv_lib_pth_pth_version = yes; then
25692 if test $have_pth = yes ; then
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_GNU_PTH 1
25698 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25699 ol_link_threads=pth
25700 ol_with_threads=found
25702 if test $ol_with_yielding_select = auto ; then
25703 ol_with_yielding_select=yes
25710 case $ol_with_threads in auto | yes | lwp)
25714 for ac_header in thread.h synch.h
25716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25718 echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721 echo $ECHO_N "(cached) $ECHO_C" >&6
25723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25726 # Is the header compilable?
25727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 $ac_includes_default
25736 #include <$ac_header>
25738 rm -f conftest.$ac_objext
25739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25740 (eval $ac_compile) 2>conftest.er1
25742 grep -v '^ *+' conftest.er1 >conftest.err
25744 cat conftest.err >&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); } &&
25747 { ac_try='test -z "$ac_c_werror_flag"
25748 || test ! -s conftest.err'
25749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750 (eval $ac_try) 2>&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); }; } &&
25754 { ac_try='test -s conftest.$ac_objext'
25755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756 (eval $ac_try) 2>&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); }; }; then
25760 ac_header_compiler=yes
25762 echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_header_compiler=no
25767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25769 echo "${ECHO_T}$ac_header_compiler" >&6
25771 # Is the header present?
25772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25774 cat >conftest.$ac_ext <<_ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25780 #include <$ac_header>
25782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25785 grep -v '^ *+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } >/dev/null; then
25790 if test -s conftest.err; then
25791 ac_cpp_err=$ac_c_preproc_warn_flag
25792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25799 if test -z "$ac_cpp_err"; then
25800 ac_header_preproc=yes
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25805 ac_header_preproc=no
25807 rm -f conftest.err conftest.$ac_ext
25808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25809 echo "${ECHO_T}$ac_header_preproc" >&6
25811 # So? What about this header?
25812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25818 ac_header_preproc=yes
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25835 ## --------------------------------------------- ##
25836 ## Report this to <http://www.openldap.org/its/> ##
25837 ## --------------------------------------------- ##
25840 sed "s/^/$as_me: WARNING: /" >&2
25843 echo "$as_me:$LINENO: checking for $ac_header" >&5
25844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25846 echo $ECHO_N "(cached) $ECHO_C" >&6
25848 eval "$as_ac_Header=\$ac_header_preproc"
25850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25855 cat >>confdefs.h <<_ACEOF
25856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25863 if test $ac_cv_header_thread_h = yes &&
25864 test $ac_cv_header_synch_h = yes ; then
25865 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25866 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25867 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25868 echo $ECHO_N "(cached) $ECHO_C" >&6
25870 ac_check_lib_save_LIBS=$LIBS
25871 LIBS="-lthread $LIBS"
25872 cat >conftest.$ac_ext <<_ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25879 /* Override any gcc2 internal prototype to avoid an error. */
25883 /* We use char because int might match the return type of a gcc2
25884 builtin and then its argument prototype would still apply. */
25885 char thr_create ();
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25896 (eval $ac_link) 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } &&
25903 { ac_try='test -z "$ac_c_werror_flag"
25904 || test ! -s conftest.err'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; } &&
25910 { ac_try='test -s conftest$ac_exeext'
25911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912 (eval $ac_try) 2>&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); }; }; then
25916 ac_cv_lib_thread_thr_create=yes
25918 echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_cv_lib_thread_thr_create=no
25923 rm -f conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25925 LIBS=$ac_check_lib_save_LIBS
25927 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25928 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25929 if test $ac_cv_lib_thread_thr_create = yes; then
25936 if test $have_thr = yes ; then
25938 cat >>confdefs.h <<\_ACEOF
25942 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25943 ol_link_threads=thr
25945 if test $ol_with_yielding_select = auto ; then
25946 ol_with_yielding_select=yes
25952 thr_setconcurrency \
25953 thr_getconcurrency \
25956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25957 echo "$as_me:$LINENO: checking for $ac_func" >&5
25958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_var+set}\" = set"; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25970 #define $ac_func innocuous_$ac_func
25972 /* System header to define __stub macros and hopefully few prototypes,
25973 which can conflict with char $ac_func (); below.
25974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25975 <limits.h> exists even on freestanding compilers. */
25978 # include <limits.h>
25980 # include <assert.h>
25985 /* Override any gcc2 internal prototype to avoid an error. */
25990 /* We use char because int might match the return type of a gcc2
25991 builtin and then its argument prototype would still apply. */
25993 /* The GNU C library defines this for functions which it implements
25994 to always fail with ENOSYS. Some functions are actually named
25995 something starting with __ and the normal name is an alias. */
25996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25999 char (*f) () = $ac_func;
26008 return f != $ac_func;
26013 rm -f conftest.$ac_objext conftest$ac_exeext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26015 (eval $ac_link) 2>conftest.er1
26017 grep -v '^ *+' conftest.er1 >conftest.err
26019 cat conftest.err >&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); } &&
26022 { ac_try='test -z "$ac_c_werror_flag"
26023 || test ! -s conftest.err'
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; } &&
26029 { ac_try='test -s conftest$ac_exeext'
26030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031 (eval $ac_try) 2>&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); }; }; then
26035 eval "$as_ac_var=yes"
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26040 eval "$as_ac_var=no"
26042 rm -f conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
26045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26047 if test `eval echo '${'$as_ac_var'}'` = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26059 for ac_header in lwp/lwp.h
26061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26063 echo "$as_me:$LINENO: checking for $ac_header" >&5
26064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26071 # Is the header compilable?
26072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26074 cat >conftest.$ac_ext <<_ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h. */
26080 $ac_includes_default
26081 #include <$ac_header>
26083 rm -f conftest.$ac_objext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26085 (eval $ac_compile) 2>conftest.er1
26087 grep -v '^ *+' conftest.er1 >conftest.err
26089 cat conftest.err >&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } &&
26092 { ac_try='test -z "$ac_c_werror_flag"
26093 || test ! -s conftest.err'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; } &&
26099 { ac_try='test -s conftest.$ac_objext'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 ac_header_compiler=yes
26107 echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26110 ac_header_compiler=no
26112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26114 echo "${ECHO_T}$ac_header_compiler" >&6
26116 # Is the header present?
26117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26119 cat >conftest.$ac_ext <<_ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */
26125 #include <$ac_header>
26127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } >/dev/null; then
26135 if test -s conftest.err; then
26136 ac_cpp_err=$ac_c_preproc_warn_flag
26137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26144 if test -z "$ac_cpp_err"; then
26145 ac_header_preproc=yes
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26150 ac_header_preproc=no
26152 rm -f conftest.err conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26154 echo "${ECHO_T}$ac_header_preproc" >&6
26156 # So? What about this header?
26157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26163 ac_header_preproc=yes
26166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26180 ## --------------------------------------------- ##
26181 ## Report this to <http://www.openldap.org/its/> ##
26182 ## --------------------------------------------- ##
26185 sed "s/^/$as_me: WARNING: /" >&2
26188 echo "$as_me:$LINENO: checking for $ac_header" >&5
26189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26193 eval "$as_ac_Header=\$ac_header_preproc"
26195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26200 cat >>confdefs.h <<_ACEOF
26201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26208 if test $ac_cv_header_lwp_lwp_h = yes ; then
26209 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26210 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26211 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 ac_check_lib_save_LIBS=$LIBS
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26223 /* Override any gcc2 internal prototype to avoid an error. */
26227 /* We use char because int might match the return type of a gcc2
26228 builtin and then its argument prototype would still apply. */
26229 char lwp_create ();
26238 rm -f conftest.$ac_objext conftest$ac_exeext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240 (eval $ac_link) 2>conftest.er1
26242 grep -v '^ *+' conftest.er1 >conftest.err
26244 cat conftest.err >&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); } &&
26247 { ac_try='test -z "$ac_c_werror_flag"
26248 || test ! -s conftest.err'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest$ac_exeext'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
26260 ac_cv_lib_lwp_lwp_create=yes
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 ac_cv_lib_lwp_lwp_create=no
26267 rm -f conftest.err conftest.$ac_objext \
26268 conftest$ac_exeext conftest.$ac_ext
26269 LIBS=$ac_check_lib_save_LIBS
26271 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26272 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26273 if test $ac_cv_lib_lwp_lwp_create = yes; then
26280 if test $have_lwp = yes ; then
26282 cat >>confdefs.h <<\_ACEOF
26286 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26287 ol_link_threads=lwp
26289 if test $ol_with_yielding_select = auto ; then
26290 ol_with_yielding_select=no
26297 if test $ol_with_yielding_select = yes ; then
26299 cat >>confdefs.h <<\_ACEOF
26300 #define HAVE_YIELDING_SELECT 1
26305 if test $ol_with_threads = manual ; then
26306 ol_link_threads=yes
26308 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26309 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26313 for ac_header in pthread.h sched.h
26315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26317 echo "$as_me:$LINENO: checking for $ac_header" >&5
26318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26325 # Is the header compilable?
26326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26328 cat >conftest.$ac_ext <<_ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26334 $ac_includes_default
26335 #include <$ac_header>
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339 (eval $ac_compile) 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } &&
26346 { ac_try='test -z "$ac_c_werror_flag"
26347 || test ! -s conftest.err'
26348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; } &&
26353 { ac_try='test -s conftest.$ac_objext'
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; }; then
26359 ac_header_compiler=yes
26361 echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26364 ac_header_compiler=no
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26368 echo "${ECHO_T}$ac_header_compiler" >&6
26370 # Is the header present?
26371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 #include <$ac_header>
26381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26384 grep -v '^ *+' conftest.er1 >conftest.err
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } >/dev/null; then
26389 if test -s conftest.err; then
26390 ac_cpp_err=$ac_c_preproc_warn_flag
26391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26398 if test -z "$ac_cpp_err"; then
26399 ac_header_preproc=yes
26401 echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26404 ac_header_preproc=no
26406 rm -f conftest.err conftest.$ac_ext
26407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26408 echo "${ECHO_T}$ac_header_preproc" >&6
26410 # So? What about this header?
26411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26417 ac_header_preproc=yes
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26434 ## --------------------------------------------- ##
26435 ## Report this to <http://www.openldap.org/its/> ##
26436 ## --------------------------------------------- ##
26439 sed "s/^/$as_me: WARNING: /" >&2
26442 echo "$as_me:$LINENO: checking for $ac_header" >&5
26443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 eval "$as_ac_Header=\$ac_header_preproc"
26449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26454 cat >>confdefs.h <<_ACEOF
26455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26464 for ac_func in sched_yield pthread_yield
26466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26467 echo "$as_me:$LINENO: checking for $ac_func" >&5
26468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26469 if eval "test \"\${$as_ac_var+set}\" = set"; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 cat >conftest.$ac_ext <<_ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26480 #define $ac_func innocuous_$ac_func
26482 /* System header to define __stub macros and hopefully few prototypes,
26483 which can conflict with char $ac_func (); below.
26484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26485 <limits.h> exists even on freestanding compilers. */
26488 # include <limits.h>
26490 # include <assert.h>
26495 /* Override any gcc2 internal prototype to avoid an error. */
26500 /* We use char because int might match the return type of a gcc2
26501 builtin and then its argument prototype would still apply. */
26503 /* The GNU C library defines this for functions which it implements
26504 to always fail with ENOSYS. Some functions are actually named
26505 something starting with __ and the normal name is an alias. */
26506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26509 char (*f) () = $ac_func;
26518 return f != $ac_func;
26523 rm -f conftest.$ac_objext conftest$ac_exeext
26524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26525 (eval $ac_link) 2>conftest.er1
26527 grep -v '^ *+' conftest.er1 >conftest.err
26529 cat conftest.err >&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } &&
26532 { ac_try='test -z "$ac_c_werror_flag"
26533 || test ! -s conftest.err'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; } &&
26539 { ac_try='test -s conftest$ac_exeext'
26540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541 (eval $ac_try) 2>&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); }; }; then
26545 eval "$as_ac_var=yes"
26547 echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26550 eval "$as_ac_var=no"
26552 rm -f conftest.err conftest.$ac_objext \
26553 conftest$ac_exeext conftest.$ac_ext
26555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26557 if test `eval echo '${'$as_ac_var'}'` = yes; then
26558 cat >>confdefs.h <<_ACEOF
26559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26566 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26567 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26568 if test "${ol_cv_header_linux_threads+set}" = set; then
26569 echo $ECHO_N "(cached) $ECHO_C" >&6
26571 cat >conftest.$ac_ext <<_ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h. */
26577 #include <pthread.h>
26579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26580 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26581 ol_cv_header_linux_threads=yes
26583 ol_cv_header_linux_threads=no
26589 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26590 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26591 if test $ol_cv_header_linux_threads = yes; then
26593 cat >>confdefs.h <<\_ACEOF
26594 #define HAVE_LINUX_THREADS 1
26601 for ac_header in mach/cthreads.h
26603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26605 echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26613 # Is the header compilable?
26614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26616 cat >conftest.$ac_ext <<_ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 $ac_includes_default
26623 #include <$ac_header>
26625 rm -f conftest.$ac_objext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26627 (eval $ac_compile) 2>conftest.er1
26629 grep -v '^ *+' conftest.er1 >conftest.err
26631 cat conftest.err >&5
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); } &&
26634 { ac_try='test -z "$ac_c_werror_flag"
26635 || test ! -s conftest.err'
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; } &&
26641 { ac_try='test -s conftest.$ac_objext'
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }; then
26647 ac_header_compiler=yes
26649 echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26652 ac_header_compiler=no
26654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26656 echo "${ECHO_T}$ac_header_compiler" >&6
26658 # Is the header present?
26659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26661 cat >conftest.$ac_ext <<_ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h. */
26667 #include <$ac_header>
26669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } >/dev/null; then
26677 if test -s conftest.err; then
26678 ac_cpp_err=$ac_c_preproc_warn_flag
26679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26686 if test -z "$ac_cpp_err"; then
26687 ac_header_preproc=yes
26689 echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26692 ac_header_preproc=no
26694 rm -f conftest.err conftest.$ac_ext
26695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26696 echo "${ECHO_T}$ac_header_preproc" >&6
26698 # So? What about this header?
26699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26705 ac_header_preproc=yes
26708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26722 ## --------------------------------------------- ##
26723 ## Report this to <http://www.openldap.org/its/> ##
26724 ## --------------------------------------------- ##
26727 sed "s/^/$as_me: WARNING: /" >&2
26730 echo "$as_me:$LINENO: checking for $ac_header" >&5
26731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26733 echo $ECHO_N "(cached) $ECHO_C" >&6
26735 eval "$as_ac_Header=\$ac_header_preproc"
26737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26742 cat >>confdefs.h <<_ACEOF
26743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26751 for ac_header in lwp/lwp.h
26753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26763 # Is the header compilable?
26764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26766 cat >conftest.$ac_ext <<_ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h. */
26772 $ac_includes_default
26773 #include <$ac_header>
26775 rm -f conftest.$ac_objext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26777 (eval $ac_compile) 2>conftest.er1
26779 grep -v '^ *+' conftest.er1 >conftest.err
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } &&
26784 { ac_try='test -z "$ac_c_werror_flag"
26785 || test ! -s conftest.err'
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; } &&
26791 { ac_try='test -s conftest.$ac_objext'
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
26797 ac_header_compiler=yes
26799 echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26802 ac_header_compiler=no
26804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6
26808 # Is the header present?
26809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 #include <$ac_header>
26819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } >/dev/null; then
26827 if test -s conftest.err; then
26828 ac_cpp_err=$ac_c_preproc_warn_flag
26829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26836 if test -z "$ac_cpp_err"; then
26837 ac_header_preproc=yes
26839 echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26842 ac_header_preproc=no
26844 rm -f conftest.err conftest.$ac_ext
26845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26846 echo "${ECHO_T}$ac_header_preproc" >&6
26848 # So? What about this header?
26849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26855 ac_header_preproc=yes
26858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26872 ## --------------------------------------------- ##
26873 ## Report this to <http://www.openldap.org/its/> ##
26874 ## --------------------------------------------- ##
26877 sed "s/^/$as_me: WARNING: /" >&2
26880 echo "$as_me:$LINENO: checking for $ac_header" >&5
26881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 eval "$as_ac_Header=\$ac_header_preproc"
26887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26892 cat >>confdefs.h <<_ACEOF
26893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26902 for ac_header in thread.h synch.h
26904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906 echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26914 # Is the header compilable?
26915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26923 $ac_includes_default
26924 #include <$ac_header>
26926 rm -f conftest.$ac_objext
26927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928 (eval $ac_compile) 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag"
26936 || test ! -s conftest.err'
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; } &&
26942 { ac_try='test -s conftest.$ac_objext'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_header_compiler=yes
26950 echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26953 ac_header_compiler=no
26955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26957 echo "${ECHO_T}$ac_header_compiler" >&6
26959 # Is the header present?
26960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26962 cat >conftest.$ac_ext <<_ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 #include <$ac_header>
26970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } >/dev/null; then
26978 if test -s conftest.err; then
26979 ac_cpp_err=$ac_c_preproc_warn_flag
26980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26987 if test -z "$ac_cpp_err"; then
26988 ac_header_preproc=yes
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 ac_header_preproc=no
26995 rm -f conftest.err conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26997 echo "${ECHO_T}$ac_header_preproc" >&6
26999 # So? What about this header?
27000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27006 ac_header_preproc=yes
27009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27023 ## --------------------------------------------- ##
27024 ## Report this to <http://www.openldap.org/its/> ##
27025 ## --------------------------------------------- ##
27028 sed "s/^/$as_me: WARNING: /" >&2
27031 echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 eval "$as_ac_Header=\$ac_header_preproc"
27038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27043 cat >>confdefs.h <<_ACEOF
27044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27053 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27054 cat >>confdefs.h <<\_ACEOF
27055 #define REENTRANT 1
27058 cat >>confdefs.h <<\_ACEOF
27059 #define _REENTRANT 1
27062 cat >>confdefs.h <<\_ACEOF
27063 #define THREAD_SAFE 1
27066 cat >>confdefs.h <<\_ACEOF
27067 #define _THREAD_SAFE 1
27070 cat >>confdefs.h <<\_ACEOF
27071 #define THREADSAFE 1
27074 cat >>confdefs.h <<\_ACEOF
27075 #define _THREADSAFE 1
27078 cat >>confdefs.h <<\_ACEOF
27079 #define _SGI_MP_SOURCE 1
27083 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27084 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27085 if test "${ol_cv_errno_thread_specific+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 cat >conftest.$ac_ext <<_ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h. */
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27106 (eval $ac_link) 2>conftest.er1
27108 grep -v '^ *+' conftest.er1 >conftest.err
27110 cat conftest.err >&5
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); } &&
27113 { ac_try='test -z "$ac_c_werror_flag"
27114 || test ! -s conftest.err'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; } &&
27120 { ac_try='test -s conftest$ac_exeext'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126 ol_cv_errno_thread_specific=yes
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27131 ol_cv_errno_thread_specific=no
27133 rm -f conftest.err conftest.$ac_objext \
27134 conftest$ac_exeext conftest.$ac_ext
27137 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27138 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27140 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27141 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27142 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27146 cat >conftest.$ac_ext <<_ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h. */
27161 rm -f conftest.$ac_objext conftest$ac_exeext
27162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27163 (eval $ac_link) 2>conftest.er1
27165 grep -v '^ *+' conftest.er1 >conftest.err
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag"
27171 || test ! -s conftest.err'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; } &&
27177 { ac_try='test -s conftest$ac_exeext'
27178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179 (eval $ac_try) 2>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; }; then
27183 ol_cv_h_errno_thread_specific=yes
27185 echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27188 ol_cv_h_errno_thread_specific=no
27190 rm -f conftest.err conftest.$ac_objext \
27191 conftest$ac_exeext conftest.$ac_ext
27194 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27195 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27197 if test $ol_cv_errno_thread_specific != yes ||
27198 test $ol_cv_h_errno_thread_specific != yes ; then
27199 LIBS="$LTHREAD_LIBS $LIBS"
27205 if test $ol_link_threads = no ; then
27206 if test $ol_with_threads = yes ; then
27207 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27208 echo "$as_me: error: no suitable thread support" >&2;}
27209 { (exit 1); exit 1; }; }
27212 if test $ol_with_threads = auto ; then
27213 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27214 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27219 cat >>confdefs.h <<\_ACEOF
27220 #define NO_THREADS 1
27229 if test $ol_link_threads != no ; then
27231 cat >>confdefs.h <<\_ACEOF
27232 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27242 gethostbyname_r gethostbyaddr_r \
27245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 echo "$as_me:$LINENO: checking for $ac_func" >&5
27247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_var+set}\" = set"; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27251 cat >conftest.$ac_ext <<_ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27259 #define $ac_func innocuous_$ac_func
27261 /* System header to define __stub macros and hopefully few prototypes,
27262 which can conflict with char $ac_func (); below.
27263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27264 <limits.h> exists even on freestanding compilers. */
27267 # include <limits.h>
27269 # include <assert.h>
27274 /* Override any gcc2 internal prototype to avoid an error. */
27279 /* We use char because int might match the return type of a gcc2
27280 builtin and then its argument prototype would still apply. */
27282 /* The GNU C library defines this for functions which it implements
27283 to always fail with ENOSYS. Some functions are actually named
27284 something starting with __ and the normal name is an alias. */
27285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27288 char (*f) () = $ac_func;
27297 return f != $ac_func;
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27304 (eval $ac_link) 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
27311 { ac_try='test -z "$ac_c_werror_flag"
27312 || test ! -s conftest.err'
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; } &&
27318 { ac_try='test -s conftest$ac_exeext'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 eval "$as_ac_var=yes"
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27329 eval "$as_ac_var=no"
27331 rm -f conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext conftest.$ac_ext
27334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27336 if test `eval echo '${'$as_ac_var'}'` = yes; then
27337 cat >>confdefs.h <<_ACEOF
27338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27345 if test "$ac_cv_func_ctime_r" = no ; then
27346 ol_cv_func_ctime_r_nargs=0
27348 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27349 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27350 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27353 cat >conftest.$ac_ext <<_ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h. */
27363 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27368 rm -f conftest.$ac_objext
27369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27370 (eval $ac_compile) 2>conftest.er1
27372 grep -v '^ *+' conftest.er1 >conftest.err
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } &&
27377 { ac_try='test -z "$ac_c_werror_flag"
27378 || test ! -s conftest.err'
27379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380 (eval $ac_try) 2>&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; } &&
27384 { ac_try='test -s conftest.$ac_objext'
27385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386 (eval $ac_try) 2>&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; }; then
27390 ol_cv_func_ctime_r_nargs3=yes
27392 echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27395 ol_cv_func_ctime_r_nargs3=no
27397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27409 time_t ti; char *buffer; ctime_r(&ti,buffer);
27414 rm -f conftest.$ac_objext
27415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27416 (eval $ac_compile) 2>conftest.er1
27418 grep -v '^ *+' conftest.er1 >conftest.err
27420 cat conftest.err >&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); } &&
27423 { ac_try='test -z "$ac_c_werror_flag"
27424 || test ! -s conftest.err'
27425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426 (eval $ac_try) 2>&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; } &&
27430 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27436 ol_cv_func_ctime_r_nargs2=yes
27438 echo "$as_me: failed program was:" >&5
27439 sed 's/^/| /' conftest.$ac_ext >&5
27441 ol_cv_func_ctime_r_nargs2=no
27443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27445 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27446 test $ol_cv_func_ctime_r_nargs2 = no ; then
27448 ol_cv_func_ctime_r_nargs=3
27450 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27451 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27453 ol_cv_func_ctime_r_nargs=2
27456 ol_cv_func_ctime_r_nargs=0
27460 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27461 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27463 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27465 cat >>confdefs.h <<_ACEOF
27466 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27473 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27474 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27475 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27476 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27485 #include <sys/types.h>
27486 #include <sys/socket.h>
27487 #include <netinet/in.h>
27489 #define BUFSIZE (sizeof(struct hostent)+10)
27493 struct hostent hent; char buffer[BUFSIZE];
27494 int bufsize=BUFSIZE;int h_errno;
27495 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27496 buffer, bufsize, &h_errno);
27501 rm -f conftest.$ac_objext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27503 (eval $ac_compile) 2>conftest.er1
27505 grep -v '^ *+' conftest.er1 >conftest.err
27507 cat conftest.err >&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); } &&
27510 { ac_try='test -z "$ac_c_werror_flag"
27511 || test ! -s conftest.err'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; } &&
27517 { ac_try='test -s conftest.$ac_objext'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; }; then
27523 ol_cv_func_gethostbyname_r_nargs5=yes
27525 echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27528 ol_cv_func_gethostbyname_r_nargs5=no
27530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27538 #include <sys/types.h>
27539 #include <sys/socket.h>
27540 #include <netinet/in.h>
27542 #define BUFSIZE (sizeof(struct hostent)+10)
27546 struct hostent hent;struct hostent *rhent;
27547 char buffer[BUFSIZE];
27548 int bufsize=BUFSIZE;int h_errno;
27549 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27555 rm -f conftest.$ac_objext
27556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27557 (eval $ac_compile) 2>conftest.er1
27559 grep -v '^ *+' conftest.er1 >conftest.err
27561 cat conftest.err >&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
27564 { ac_try='test -z "$ac_c_werror_flag"
27565 || test ! -s conftest.err'
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; } &&
27571 { ac_try='test -s conftest.$ac_objext'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; }; then
27577 ol_cv_func_gethostbyname_r_nargs6=yes
27579 echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27582 ol_cv_func_gethostbyname_r_nargs6=no
27584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27586 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27587 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27589 ol_cv_func_gethostbyname_r_nargs=5
27591 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27592 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27594 ol_cv_func_gethostbyname_r_nargs=6
27597 ol_cv_func_gethostbyname_r_nargs=0
27601 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27602 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27603 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27605 cat >>confdefs.h <<_ACEOF
27606 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27612 ol_cv_func_gethostbyname_r_nargs=0
27615 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27616 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27617 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27618 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 #include <sys/types.h>
27628 #include <sys/socket.h>
27629 #include <netinet/in.h>
27631 #define BUFSIZE (sizeof(struct hostent)+10)
27635 struct hostent hent; char buffer[BUFSIZE];
27636 struct in_addr add;
27637 size_t alen=sizeof(struct in_addr);
27638 int bufsize=BUFSIZE;int h_errno;
27639 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27640 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27645 rm -f conftest.$ac_objext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27647 (eval $ac_compile) 2>conftest.er1
27649 grep -v '^ *+' conftest.er1 >conftest.err
27651 cat conftest.err >&5
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } &&
27654 { ac_try='test -z "$ac_c_werror_flag"
27655 || test ! -s conftest.err'
27656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657 (eval $ac_try) 2>&5
27659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); }; } &&
27661 { ac_try='test -s conftest.$ac_objext'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 ol_cv_func_gethostbyaddr_r_nargs7=yes
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ol_cv_func_gethostbyaddr_r_nargs7=no
27674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27676 cat >conftest.$ac_ext <<_ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 #include <sys/types.h>
27683 #include <sys/socket.h>
27684 #include <netinet/in.h>
27686 #define BUFSIZE (sizeof(struct hostent)+10)
27690 struct hostent hent;
27691 struct hostent *rhent; char buffer[BUFSIZE];
27692 struct in_addr add;
27693 size_t alen=sizeof(struct in_addr);
27694 int bufsize=BUFSIZE;int h_errno;
27695 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27696 alen, AF_INET, &hent, buffer, bufsize,
27702 rm -f conftest.$ac_objext
27703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27704 (eval $ac_compile) 2>conftest.er1
27706 grep -v '^ *+' conftest.er1 >conftest.err
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_c_werror_flag"
27712 || test ! -s conftest.err'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } &&
27718 { ac_try='test -s conftest.$ac_objext'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724 ol_cv_func_gethostbyaddr_r_nargs8=yes
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ol_cv_func_gethostbyaddr_r_nargs8=no
27731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27733 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27734 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27736 ol_cv_func_gethostbyaddr_r_nargs=7
27738 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27739 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27741 ol_cv_func_gethostbyaddr_r_nargs=8
27744 ol_cv_func_gethostbyaddr_r_nargs=0
27748 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27749 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27750 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27752 cat >>confdefs.h <<_ACEOF
27753 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27759 ol_cv_func_gethostbyaddr_r_nargs=0
27764 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27766 if test $ol_enable_ldbm_api = bcompat; then \
27769 for ac_header in db_185.h db.h
27771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27773 echo "$as_me:$LINENO: checking for $ac_header" >&5
27774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27781 # Is the header compilable?
27782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27784 cat >conftest.$ac_ext <<_ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790 $ac_includes_default
27791 #include <$ac_header>
27793 rm -f conftest.$ac_objext
27794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27795 (eval $ac_compile) 2>conftest.er1
27797 grep -v '^ *+' conftest.er1 >conftest.err
27799 cat conftest.err >&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
27802 { ac_try='test -z "$ac_c_werror_flag"
27803 || test ! -s conftest.err'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; } &&
27809 { ac_try='test -s conftest.$ac_objext'
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; }; then
27815 ac_header_compiler=yes
27817 echo "$as_me: failed program was:" >&5
27818 sed 's/^/| /' conftest.$ac_ext >&5
27820 ac_header_compiler=no
27822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27824 echo "${ECHO_T}$ac_header_compiler" >&6
27826 # Is the header present?
27827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27829 cat >conftest.$ac_ext <<_ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27835 #include <$ac_header>
27837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27840 grep -v '^ *+' conftest.er1 >conftest.err
27842 cat conftest.err >&5
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } >/dev/null; then
27845 if test -s conftest.err; then
27846 ac_cpp_err=$ac_c_preproc_warn_flag
27847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27854 if test -z "$ac_cpp_err"; then
27855 ac_header_preproc=yes
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27860 ac_header_preproc=no
27862 rm -f conftest.err conftest.$ac_ext
27863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27864 echo "${ECHO_T}$ac_header_preproc" >&6
27866 # So? What about this header?
27867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27873 ac_header_preproc=yes
27876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27890 ## --------------------------------------------- ##
27891 ## Report this to <http://www.openldap.org/its/> ##
27892 ## --------------------------------------------- ##
27895 sed "s/^/$as_me: WARNING: /" >&2
27898 echo "$as_me:$LINENO: checking for $ac_header" >&5
27899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 eval "$as_ac_Header=\$ac_header_preproc"
27905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27910 cat >>confdefs.h <<_ACEOF
27911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27918 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27919 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27920 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27921 if test "${ol_cv_header_db1+set}" = set; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27925 cat >conftest.$ac_ext <<_ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27933 # include <db_185.h>
27938 /* this check could be improved */
27939 #ifndef DB_VERSION_MAJOR
27940 # define DB_VERSION_MAJOR 1
27943 #if DB_VERSION_MAJOR == 1
27948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27949 $EGREP "__db_version_1" >/dev/null 2>&1; then
27950 ol_cv_header_db1=yes
27952 ol_cv_header_db1=no
27957 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27958 echo "${ECHO_T}$ol_cv_header_db1" >&6
27960 if test $ol_cv_header_db1 = yes ; then
27963 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27964 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27965 if test "${ol_cv_bdb_major+set}" = set; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27970 if test $ol_cv_bdb_major = 0 ; then
27971 cat >conftest.$ac_ext <<_ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h. */
27979 #ifndef DB_VERSION_MAJOR
27980 # define DB_VERSION_MAJOR 1
27982 #if DB_VERSION_MAJOR == 4
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988 $EGREP "__db_version" >/dev/null 2>&1; then
27996 if test $ol_cv_bdb_major = 0 ; then
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28005 #ifndef DB_VERSION_MAJOR
28006 # define DB_VERSION_MAJOR 1
28008 #if DB_VERSION_MAJOR == 3
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014 $EGREP "__db_version" >/dev/null 2>&1; then
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 == 2
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 == 1
28065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28066 $EGREP "__db_version" >/dev/null 2>&1; then
28075 if test $ol_cv_bdb_major = 0 ; then
28076 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28077 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28078 { (exit 1); exit 1; }; }
28082 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28083 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28085 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28086 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28087 if test "${ol_cv_bdb_minor+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 if test $ol_cv_bdb_minor = 0 ; then
28093 cat >conftest.$ac_ext <<_ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h. */
28101 #ifndef DB_VERSION_MINOR
28102 # define DB_VERSION_MINOR 0
28104 #if DB_VERSION_MINOR == 9
28109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28110 $EGREP "__db_version" >/dev/null 2>&1; then
28118 if test $ol_cv_bdb_minor = 0 ; then
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28127 #ifndef DB_VERSION_MINOR
28128 # define DB_VERSION_MINOR 0
28130 #if DB_VERSION_MINOR == 8
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136 $EGREP "__db_version" >/dev/null 2>&1; then
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 == 7
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 == 6
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 == 5
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 == 4
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 == 3
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 == 2
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 == 1
28317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28318 $EGREP "__db_version" >/dev/null 2>&1; then
28328 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28329 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28331 if test $ol_cv_bdb_major = 4 ; then
28332 if test $ol_cv_bdb_minor = 4 ; then
28333 if test $ol_cv_lib_db = no ; then
28334 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28335 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28336 if test "${ol_cv_db_db44+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28351 #ifdef HAVE_DB_185_H
28352 # include <db_185.h>
28357 #ifndef DB_VERSION_MAJOR
28358 # define DB_VERSION_MAJOR 1
28362 #define NULL ((void*)0)
28369 #if DB_VERSION_MAJOR > 1
28372 int major, minor, patch;
28374 version = db_version( &major, &minor, &patch );
28376 if( major != DB_VERSION_MAJOR ||
28377 minor < DB_VERSION_MINOR )
28379 printf("Berkeley DB version mismatch\n"
28380 "\theader: %s\n\tlibrary: %s\n",
28381 DB_VERSION_STRING, version);
28387 #if DB_VERSION_MAJOR > 2
28388 db_env_create( NULL, 0 );
28389 #elif DB_VERSION_MAJOR > 1
28390 db_appexit( NULL );
28392 (void) dbopen( NULL, 0, 0, 0, NULL);
28399 rm -f conftest.$ac_objext conftest$ac_exeext
28400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28401 (eval $ac_link) 2>conftest.er1
28403 grep -v '^ *+' conftest.er1 >conftest.err
28405 cat conftest.err >&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } &&
28408 { ac_try='test -z "$ac_c_werror_flag"
28409 || test ! -s conftest.err'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; } &&
28415 { ac_try='test -s conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28428 rm -f conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
28434 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28435 echo "${ECHO_T}$ol_cv_db_db44" >&6
28437 if test $ol_cv_db_db44 = yes ; then
28438 ol_cv_lib_db=-ldb44
28442 if test $ol_cv_lib_db = no ; then
28443 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28444 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28445 if test "${ol_cv_db_db_44+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28451 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28453 cat >conftest.$ac_ext <<_ACEOF
28456 cat confdefs.h >>conftest.$ac_ext
28457 cat >>conftest.$ac_ext <<_ACEOF
28458 /* end confdefs.h. */
28460 #ifdef HAVE_DB_185_H
28461 # include <db_185.h>
28466 #ifndef DB_VERSION_MAJOR
28467 # define DB_VERSION_MAJOR 1
28471 #define NULL ((void*)0)
28478 #if DB_VERSION_MAJOR > 1
28481 int major, minor, patch;
28483 version = db_version( &major, &minor, &patch );
28485 if( major != DB_VERSION_MAJOR ||
28486 minor < DB_VERSION_MINOR )
28488 printf("Berkeley DB version mismatch\n"
28489 "\theader: %s\n\tlibrary: %s\n",
28490 DB_VERSION_STRING, version);
28496 #if DB_VERSION_MAJOR > 2
28497 db_env_create( NULL, 0 );
28498 #elif DB_VERSION_MAJOR > 1
28499 db_appexit( NULL );
28501 (void) dbopen( NULL, 0, 0, 0, NULL);
28508 rm -f conftest.$ac_objext conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510 (eval $ac_link) 2>conftest.er1
28512 grep -v '^ *+' conftest.er1 >conftest.err
28514 cat conftest.err >&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); } &&
28517 { ac_try='test -z "$ac_c_werror_flag"
28518 || test ! -s conftest.err'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28537 rm -f conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext conftest.$ac_ext
28543 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28544 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28546 if test $ol_cv_db_db_44 = yes ; then
28547 ol_cv_lib_db=-ldb-44
28551 if test $ol_cv_lib_db = no ; then
28552 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28553 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28554 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 #ifdef HAVE_DB_185_H
28570 # include <db_185.h>
28575 #ifndef DB_VERSION_MAJOR
28576 # define DB_VERSION_MAJOR 1
28580 #define NULL ((void*)0)
28587 #if DB_VERSION_MAJOR > 1
28590 int major, minor, patch;
28592 version = db_version( &major, &minor, &patch );
28594 if( major != DB_VERSION_MAJOR ||
28595 minor < DB_VERSION_MINOR )
28597 printf("Berkeley DB version mismatch\n"
28598 "\theader: %s\n\tlibrary: %s\n",
28599 DB_VERSION_STRING, version);
28605 #if DB_VERSION_MAJOR > 2
28606 db_env_create( NULL, 0 );
28607 #elif DB_VERSION_MAJOR > 1
28608 db_appexit( NULL );
28610 (void) dbopen( NULL, 0, 0, 0, NULL);
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28619 (eval $ac_link) 2>conftest.er1
28621 grep -v '^ *+' conftest.er1 >conftest.err
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } &&
28626 { ac_try='test -z "$ac_c_werror_flag"
28627 || test ! -s conftest.err'
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; } &&
28633 { ac_try='test -s conftest$ac_exeext'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639 ol_cv_db_db_4_dot_4=yes
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28644 ol_cv_db_db_4_dot_4=no
28646 rm -f conftest.err conftest.$ac_objext \
28647 conftest$ac_exeext conftest.$ac_ext
28652 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28653 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28655 if test $ol_cv_db_db_4_dot_4 = yes ; then
28656 ol_cv_lib_db=-ldb-4.4
28660 if test $ol_cv_lib_db = no ; then
28661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28662 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28663 if test "${ol_cv_db_db_4_4+set}" = set; then
28664 echo $ECHO_N "(cached) $ECHO_C" >&6
28669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28671 cat >conftest.$ac_ext <<_ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28678 #ifdef HAVE_DB_185_H
28679 # include <db_185.h>
28684 #ifndef DB_VERSION_MAJOR
28685 # define DB_VERSION_MAJOR 1
28689 #define NULL ((void*)0)
28696 #if DB_VERSION_MAJOR > 1
28699 int major, minor, patch;
28701 version = db_version( &major, &minor, &patch );
28703 if( major != DB_VERSION_MAJOR ||
28704 minor < DB_VERSION_MINOR )
28706 printf("Berkeley DB version mismatch\n"
28707 "\theader: %s\n\tlibrary: %s\n",
28708 DB_VERSION_STRING, version);
28714 #if DB_VERSION_MAJOR > 2
28715 db_env_create( NULL, 0 );
28716 #elif DB_VERSION_MAJOR > 1
28717 db_appexit( NULL );
28719 (void) dbopen( NULL, 0, 0, 0, NULL);
28726 rm -f conftest.$ac_objext conftest$ac_exeext
28727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28728 (eval $ac_link) 2>conftest.er1
28730 grep -v '^ *+' conftest.er1 >conftest.err
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
28735 { ac_try='test -z "$ac_c_werror_flag"
28736 || test ! -s conftest.err'
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest$ac_exeext'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 ol_cv_db_db_4_4=yes
28750 echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28755 rm -f conftest.err conftest.$ac_objext \
28756 conftest$ac_exeext conftest.$ac_ext
28761 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28762 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28764 if test $ol_cv_db_db_4_4 = yes ; then
28765 ol_cv_lib_db=-ldb-4-4
28769 elif test $ol_cv_bdb_minor = 3 ; then
28770 if test $ol_cv_lib_db = no ; then
28771 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28772 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28773 if test "${ol_cv_db_db43+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28781 cat >conftest.$ac_ext <<_ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h. */
28788 #ifdef HAVE_DB_185_H
28789 # include <db_185.h>
28794 #ifndef DB_VERSION_MAJOR
28795 # define DB_VERSION_MAJOR 1
28799 #define NULL ((void*)0)
28806 #if DB_VERSION_MAJOR > 1
28809 int major, minor, patch;
28811 version = db_version( &major, &minor, &patch );
28813 if( major != DB_VERSION_MAJOR ||
28814 minor < DB_VERSION_MINOR )
28816 printf("Berkeley DB version mismatch\n"
28817 "\theader: %s\n\tlibrary: %s\n",
28818 DB_VERSION_STRING, version);
28824 #if DB_VERSION_MAJOR > 2
28825 db_env_create( NULL, 0 );
28826 #elif DB_VERSION_MAJOR > 1
28827 db_appexit( NULL );
28829 (void) dbopen( NULL, 0, 0, 0, NULL);
28836 rm -f conftest.$ac_objext conftest$ac_exeext
28837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28838 (eval $ac_link) 2>conftest.er1
28840 grep -v '^ *+' conftest.er1 >conftest.err
28842 cat conftest.err >&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } &&
28845 { ac_try='test -z "$ac_c_werror_flag"
28846 || test ! -s conftest.err'
28847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848 (eval $ac_try) 2>&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); }; } &&
28852 { ac_try='test -s conftest$ac_exeext'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; }; then
28860 echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28865 rm -f conftest.err conftest.$ac_objext \
28866 conftest$ac_exeext conftest.$ac_ext
28871 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28872 echo "${ECHO_T}$ol_cv_db_db43" >&6
28874 if test $ol_cv_db_db43 = yes ; then
28875 ol_cv_lib_db=-ldb43
28879 if test $ol_cv_lib_db = no ; then
28880 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28881 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28882 if test "${ol_cv_db_db_43+set}" = set; then
28883 echo $ECHO_N "(cached) $ECHO_C" >&6
28888 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28890 cat >conftest.$ac_ext <<_ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28897 #ifdef HAVE_DB_185_H
28898 # include <db_185.h>
28903 #ifndef DB_VERSION_MAJOR
28904 # define DB_VERSION_MAJOR 1
28908 #define NULL ((void*)0)
28915 #if DB_VERSION_MAJOR > 1
28918 int major, minor, patch;
28920 version = db_version( &major, &minor, &patch );
28922 if( major != DB_VERSION_MAJOR ||
28923 minor < DB_VERSION_MINOR )
28925 printf("Berkeley DB version mismatch\n"
28926 "\theader: %s\n\tlibrary: %s\n",
28927 DB_VERSION_STRING, version);
28933 #if DB_VERSION_MAJOR > 2
28934 db_env_create( NULL, 0 );
28935 #elif DB_VERSION_MAJOR > 1
28936 db_appexit( NULL );
28938 (void) dbopen( NULL, 0, 0, 0, NULL);
28945 rm -f conftest.$ac_objext conftest$ac_exeext
28946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28947 (eval $ac_link) 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } &&
28954 { ac_try='test -z "$ac_c_werror_flag"
28955 || test ! -s conftest.err'
28956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957 (eval $ac_try) 2>&5
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; } &&
28961 { ac_try='test -s conftest$ac_exeext'
28962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963 (eval $ac_try) 2>&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; }; then
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28974 rm -f conftest.err conftest.$ac_objext \
28975 conftest$ac_exeext conftest.$ac_ext
28980 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28981 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28983 if test $ol_cv_db_db_43 = yes ; then
28984 ol_cv_lib_db=-ldb-43
28988 if test $ol_cv_lib_db = no ; then
28989 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28990 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28991 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28999 cat >conftest.$ac_ext <<_ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h. */
29006 #ifdef HAVE_DB_185_H
29007 # include <db_185.h>
29012 #ifndef DB_VERSION_MAJOR
29013 # define DB_VERSION_MAJOR 1
29017 #define NULL ((void*)0)
29024 #if DB_VERSION_MAJOR > 1
29027 int major, minor, patch;
29029 version = db_version( &major, &minor, &patch );
29031 if( major != DB_VERSION_MAJOR ||
29032 minor < DB_VERSION_MINOR )
29034 printf("Berkeley DB version mismatch\n"
29035 "\theader: %s\n\tlibrary: %s\n",
29036 DB_VERSION_STRING, version);
29042 #if DB_VERSION_MAJOR > 2
29043 db_env_create( NULL, 0 );
29044 #elif DB_VERSION_MAJOR > 1
29045 db_appexit( NULL );
29047 (void) dbopen( NULL, 0, 0, 0, NULL);
29054 rm -f conftest.$ac_objext conftest$ac_exeext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29056 (eval $ac_link) 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } &&
29063 { ac_try='test -z "$ac_c_werror_flag"
29064 || test ! -s conftest.err'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; } &&
29070 { ac_try='test -s conftest$ac_exeext'
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 ol_cv_db_db_4_dot_3=yes
29078 echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29081 ol_cv_db_db_4_dot_3=no
29083 rm -f conftest.err conftest.$ac_objext \
29084 conftest$ac_exeext conftest.$ac_ext
29089 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29090 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29092 if test $ol_cv_db_db_4_dot_3 = yes ; then
29093 ol_cv_lib_db=-ldb-4.3
29097 if test $ol_cv_lib_db = no ; then
29098 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29099 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29100 if test "${ol_cv_db_db_4_3+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29108 cat >conftest.$ac_ext <<_ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h. */
29115 #ifdef HAVE_DB_185_H
29116 # include <db_185.h>
29121 #ifndef DB_VERSION_MAJOR
29122 # define DB_VERSION_MAJOR 1
29126 #define NULL ((void*)0)
29133 #if DB_VERSION_MAJOR > 1
29136 int major, minor, patch;
29138 version = db_version( &major, &minor, &patch );
29140 if( major != DB_VERSION_MAJOR ||
29141 minor < DB_VERSION_MINOR )
29143 printf("Berkeley DB version mismatch\n"
29144 "\theader: %s\n\tlibrary: %s\n",
29145 DB_VERSION_STRING, version);
29151 #if DB_VERSION_MAJOR > 2
29152 db_env_create( NULL, 0 );
29153 #elif DB_VERSION_MAJOR > 1
29154 db_appexit( NULL );
29156 (void) dbopen( NULL, 0, 0, 0, NULL);
29163 rm -f conftest.$ac_objext conftest$ac_exeext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29165 (eval $ac_link) 2>conftest.er1
29167 grep -v '^ *+' conftest.er1 >conftest.err
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } &&
29172 { ac_try='test -z "$ac_c_werror_flag"
29173 || test ! -s conftest.err'
29174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175 (eval $ac_try) 2>&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; } &&
29179 { ac_try='test -s conftest$ac_exeext'
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; }; then
29185 ol_cv_db_db_4_3=yes
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29192 rm -f conftest.err conftest.$ac_objext \
29193 conftest$ac_exeext conftest.$ac_ext
29198 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29199 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29201 if test $ol_cv_db_db_4_3 = yes ; then
29202 ol_cv_lib_db=-ldb-4-3
29206 elif test $ol_cv_bdb_minor = 2 ; then
29207 if test $ol_cv_lib_db = no ; then
29208 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29209 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29210 if test "${ol_cv_db_db42+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29218 cat >conftest.$ac_ext <<_ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h. */
29225 #ifdef HAVE_DB_185_H
29226 # include <db_185.h>
29231 #ifndef DB_VERSION_MAJOR
29232 # define DB_VERSION_MAJOR 1
29236 #define NULL ((void*)0)
29243 #if DB_VERSION_MAJOR > 1
29246 int major, minor, patch;
29248 version = db_version( &major, &minor, &patch );
29250 if( major != DB_VERSION_MAJOR ||
29251 minor < DB_VERSION_MINOR )
29253 printf("Berkeley DB version mismatch\n"
29254 "\theader: %s\n\tlibrary: %s\n",
29255 DB_VERSION_STRING, version);
29261 #if DB_VERSION_MAJOR > 2
29262 db_env_create( NULL, 0 );
29263 #elif DB_VERSION_MAJOR > 1
29264 db_appexit( NULL );
29266 (void) dbopen( NULL, 0, 0, 0, NULL);
29273 rm -f conftest.$ac_objext conftest$ac_exeext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29275 (eval $ac_link) 2>conftest.er1
29277 grep -v '^ *+' conftest.er1 >conftest.err
29279 cat conftest.err >&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
29282 { ac_try='test -z "$ac_c_werror_flag"
29283 || test ! -s conftest.err'
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest$ac_exeext'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29297 echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29302 rm -f conftest.err conftest.$ac_objext \
29303 conftest$ac_exeext conftest.$ac_ext
29308 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29309 echo "${ECHO_T}$ol_cv_db_db42" >&6
29311 if test $ol_cv_db_db42 = yes ; then
29312 ol_cv_lib_db=-ldb42
29316 if test $ol_cv_lib_db = no ; then
29317 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29318 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29319 if test "${ol_cv_db_db_42+set}" = set; then
29320 echo $ECHO_N "(cached) $ECHO_C" >&6
29325 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29327 cat >conftest.$ac_ext <<_ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h. */
29334 #ifdef HAVE_DB_185_H
29335 # include <db_185.h>
29340 #ifndef DB_VERSION_MAJOR
29341 # define DB_VERSION_MAJOR 1
29345 #define NULL ((void*)0)
29352 #if DB_VERSION_MAJOR > 1
29355 int major, minor, patch;
29357 version = db_version( &major, &minor, &patch );
29359 if( major != DB_VERSION_MAJOR ||
29360 minor < DB_VERSION_MINOR )
29362 printf("Berkeley DB version mismatch\n"
29363 "\theader: %s\n\tlibrary: %s\n",
29364 DB_VERSION_STRING, version);
29370 #if DB_VERSION_MAJOR > 2
29371 db_env_create( NULL, 0 );
29372 #elif DB_VERSION_MAJOR > 1
29373 db_appexit( NULL );
29375 (void) dbopen( NULL, 0, 0, 0, NULL);
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384 (eval $ac_link) 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -z "$ac_c_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest$ac_exeext'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; }; then
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29411 rm -f conftest.err conftest.$ac_objext \
29412 conftest$ac_exeext conftest.$ac_ext
29417 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29418 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29420 if test $ol_cv_db_db_42 = yes ; then
29421 ol_cv_lib_db=-ldb-42
29425 if test $ol_cv_lib_db = no ; then
29426 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29427 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29428 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29436 cat >conftest.$ac_ext <<_ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29443 #ifdef HAVE_DB_185_H
29444 # include <db_185.h>
29449 #ifndef DB_VERSION_MAJOR
29450 # define DB_VERSION_MAJOR 1
29454 #define NULL ((void*)0)
29461 #if DB_VERSION_MAJOR > 1
29464 int major, minor, patch;
29466 version = db_version( &major, &minor, &patch );
29468 if( major != DB_VERSION_MAJOR ||
29469 minor < DB_VERSION_MINOR )
29471 printf("Berkeley DB version mismatch\n"
29472 "\theader: %s\n\tlibrary: %s\n",
29473 DB_VERSION_STRING, version);
29479 #if DB_VERSION_MAJOR > 2
29480 db_env_create( NULL, 0 );
29481 #elif DB_VERSION_MAJOR > 1
29482 db_appexit( NULL );
29484 (void) dbopen( NULL, 0, 0, 0, NULL);
29491 rm -f conftest.$ac_objext conftest$ac_exeext
29492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29493 (eval $ac_link) 2>conftest.er1
29495 grep -v '^ *+' conftest.er1 >conftest.err
29497 cat conftest.err >&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } &&
29500 { ac_try='test -z "$ac_c_werror_flag"
29501 || test ! -s conftest.err'
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; } &&
29507 { ac_try='test -s conftest$ac_exeext'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; }; then
29513 ol_cv_db_db_4_dot_2=yes
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29518 ol_cv_db_db_4_dot_2=no
29520 rm -f conftest.err conftest.$ac_objext \
29521 conftest$ac_exeext conftest.$ac_ext
29526 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29527 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29529 if test $ol_cv_db_db_4_dot_2 = yes ; then
29530 ol_cv_lib_db=-ldb-4.2
29534 if test $ol_cv_lib_db = no ; then
29535 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29536 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29537 if test "${ol_cv_db_db_4_2+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29543 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29545 cat >conftest.$ac_ext <<_ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29552 #ifdef HAVE_DB_185_H
29553 # include <db_185.h>
29558 #ifndef DB_VERSION_MAJOR
29559 # define DB_VERSION_MAJOR 1
29563 #define NULL ((void*)0)
29570 #if DB_VERSION_MAJOR > 1
29573 int major, minor, patch;
29575 version = db_version( &major, &minor, &patch );
29577 if( major != DB_VERSION_MAJOR ||
29578 minor < DB_VERSION_MINOR )
29580 printf("Berkeley DB version mismatch\n"
29581 "\theader: %s\n\tlibrary: %s\n",
29582 DB_VERSION_STRING, version);
29588 #if DB_VERSION_MAJOR > 2
29589 db_env_create( NULL, 0 );
29590 #elif DB_VERSION_MAJOR > 1
29591 db_appexit( NULL );
29593 (void) dbopen( NULL, 0, 0, 0, NULL);
29600 rm -f conftest.$ac_objext conftest$ac_exeext
29601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29602 (eval $ac_link) 2>conftest.er1
29604 grep -v '^ *+' conftest.er1 >conftest.err
29606 cat conftest.err >&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } &&
29609 { ac_try='test -z "$ac_c_werror_flag"
29610 || test ! -s conftest.err'
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; } &&
29616 { ac_try='test -s conftest$ac_exeext'
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; }; then
29622 ol_cv_db_db_4_2=yes
29624 echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29629 rm -f conftest.err conftest.$ac_objext \
29630 conftest$ac_exeext conftest.$ac_ext
29635 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29636 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29638 if test $ol_cv_db_db_4_2 = yes ; then
29639 ol_cv_lib_db=-ldb-4-2
29643 elif test $ol_cv_bdb_minor = 1 ; then
29644 if test $ol_cv_lib_db = no ; then
29645 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29646 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29647 if test "${ol_cv_db_db41+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29653 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29655 cat >conftest.$ac_ext <<_ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29662 #ifdef HAVE_DB_185_H
29663 # include <db_185.h>
29668 #ifndef DB_VERSION_MAJOR
29669 # define DB_VERSION_MAJOR 1
29673 #define NULL ((void*)0)
29680 #if DB_VERSION_MAJOR > 1
29683 int major, minor, patch;
29685 version = db_version( &major, &minor, &patch );
29687 if( major != DB_VERSION_MAJOR ||
29688 minor < DB_VERSION_MINOR )
29690 printf("Berkeley DB version mismatch\n"
29691 "\theader: %s\n\tlibrary: %s\n",
29692 DB_VERSION_STRING, version);
29698 #if DB_VERSION_MAJOR > 2
29699 db_env_create( NULL, 0 );
29700 #elif DB_VERSION_MAJOR > 1
29701 db_appexit( NULL );
29703 (void) dbopen( NULL, 0, 0, 0, NULL);
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29712 (eval $ac_link) 2>conftest.er1
29714 grep -v '^ *+' conftest.er1 >conftest.err
29716 cat conftest.err >&5
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
29719 { ac_try='test -z "$ac_c_werror_flag"
29720 || test ! -s conftest.err'
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; } &&
29726 { ac_try='test -s conftest$ac_exeext'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; }; then
29734 echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29739 rm -f conftest.err conftest.$ac_objext \
29740 conftest$ac_exeext conftest.$ac_ext
29745 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29746 echo "${ECHO_T}$ol_cv_db_db41" >&6
29748 if test $ol_cv_db_db41 = yes ; then
29749 ol_cv_lib_db=-ldb41
29753 if test $ol_cv_lib_db = no ; then
29754 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29755 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29756 if test "${ol_cv_db_db_41+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29764 cat >conftest.$ac_ext <<_ACEOF
29767 cat confdefs.h >>conftest.$ac_ext
29768 cat >>conftest.$ac_ext <<_ACEOF
29769 /* end confdefs.h. */
29771 #ifdef HAVE_DB_185_H
29772 # include <db_185.h>
29777 #ifndef DB_VERSION_MAJOR
29778 # define DB_VERSION_MAJOR 1
29782 #define NULL ((void*)0)
29789 #if DB_VERSION_MAJOR > 1
29792 int major, minor, patch;
29794 version = db_version( &major, &minor, &patch );
29796 if( major != DB_VERSION_MAJOR ||
29797 minor < DB_VERSION_MINOR )
29799 printf("Berkeley DB version mismatch\n"
29800 "\theader: %s\n\tlibrary: %s\n",
29801 DB_VERSION_STRING, version);
29807 #if DB_VERSION_MAJOR > 2
29808 db_env_create( NULL, 0 );
29809 #elif DB_VERSION_MAJOR > 1
29810 db_appexit( NULL );
29812 (void) dbopen( NULL, 0, 0, 0, NULL);
29819 rm -f conftest.$ac_objext conftest$ac_exeext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29821 (eval $ac_link) 2>conftest.er1
29823 grep -v '^ *+' conftest.er1 >conftest.err
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag"
29829 || test ! -s conftest.err'
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; } &&
29835 { ac_try='test -s conftest$ac_exeext'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }; then
29843 echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29848 rm -f conftest.err conftest.$ac_objext \
29849 conftest$ac_exeext conftest.$ac_ext
29854 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29855 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29857 if test $ol_cv_db_db_41 = yes ; then
29858 ol_cv_lib_db=-ldb-41
29862 if test $ol_cv_lib_db = no ; then
29863 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29864 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29865 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29866 echo $ECHO_N "(cached) $ECHO_C" >&6
29871 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29873 cat >conftest.$ac_ext <<_ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29880 #ifdef HAVE_DB_185_H
29881 # include <db_185.h>
29886 #ifndef DB_VERSION_MAJOR
29887 # define DB_VERSION_MAJOR 1
29891 #define NULL ((void*)0)
29898 #if DB_VERSION_MAJOR > 1
29901 int major, minor, patch;
29903 version = db_version( &major, &minor, &patch );
29905 if( major != DB_VERSION_MAJOR ||
29906 minor < DB_VERSION_MINOR )
29908 printf("Berkeley DB version mismatch\n"
29909 "\theader: %s\n\tlibrary: %s\n",
29910 DB_VERSION_STRING, version);
29916 #if DB_VERSION_MAJOR > 2
29917 db_env_create( NULL, 0 );
29918 #elif DB_VERSION_MAJOR > 1
29919 db_appexit( NULL );
29921 (void) dbopen( NULL, 0, 0, 0, NULL);
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29930 (eval $ac_link) 2>conftest.er1
29932 grep -v '^ *+' conftest.er1 >conftest.err
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag"
29938 || test ! -s conftest.err'
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest$ac_exeext'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ol_cv_db_db_4_dot_1=yes
29952 echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29955 ol_cv_db_db_4_dot_1=no
29957 rm -f conftest.err conftest.$ac_objext \
29958 conftest$ac_exeext conftest.$ac_ext
29963 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29964 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29966 if test $ol_cv_db_db_4_dot_1 = yes ; then
29967 ol_cv_lib_db=-ldb-4.1
29971 if test $ol_cv_lib_db = no ; then
29972 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29973 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29974 if test "${ol_cv_db_db_4_1+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29980 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29982 cat >conftest.$ac_ext <<_ACEOF
29985 cat confdefs.h >>conftest.$ac_ext
29986 cat >>conftest.$ac_ext <<_ACEOF
29987 /* end confdefs.h. */
29989 #ifdef HAVE_DB_185_H
29990 # include <db_185.h>
29995 #ifndef DB_VERSION_MAJOR
29996 # define DB_VERSION_MAJOR 1
30000 #define NULL ((void*)0)
30007 #if DB_VERSION_MAJOR > 1
30010 int major, minor, patch;
30012 version = db_version( &major, &minor, &patch );
30014 if( major != DB_VERSION_MAJOR ||
30015 minor < DB_VERSION_MINOR )
30017 printf("Berkeley DB version mismatch\n"
30018 "\theader: %s\n\tlibrary: %s\n",
30019 DB_VERSION_STRING, version);
30025 #if DB_VERSION_MAJOR > 2
30026 db_env_create( NULL, 0 );
30027 #elif DB_VERSION_MAJOR > 1
30028 db_appexit( NULL );
30030 (void) dbopen( NULL, 0, 0, 0, NULL);
30037 rm -f conftest.$ac_objext conftest$ac_exeext
30038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30039 (eval $ac_link) 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } &&
30046 { ac_try='test -z "$ac_c_werror_flag"
30047 || test ! -s conftest.err'
30048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30049 (eval $ac_try) 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; } &&
30053 { ac_try='test -s conftest$ac_exeext'
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; }; then
30059 ol_cv_db_db_4_1=yes
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30066 rm -f conftest.err conftest.$ac_objext \
30067 conftest$ac_exeext conftest.$ac_ext
30072 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30073 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30075 if test $ol_cv_db_db_4_1 = yes ; then
30076 ol_cv_lib_db=-ldb-4-1
30081 if test $ol_cv_lib_db = no ; then
30082 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30083 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30084 if test "${ol_cv_db_db_4+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30090 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30092 cat >conftest.$ac_ext <<_ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h. */
30099 #ifdef HAVE_DB_185_H
30100 # include <db_185.h>
30105 #ifndef DB_VERSION_MAJOR
30106 # define DB_VERSION_MAJOR 1
30110 #define NULL ((void*)0)
30117 #if DB_VERSION_MAJOR > 1
30120 int major, minor, patch;
30122 version = db_version( &major, &minor, &patch );
30124 if( major != DB_VERSION_MAJOR ||
30125 minor < DB_VERSION_MINOR )
30127 printf("Berkeley DB version mismatch\n"
30128 "\theader: %s\n\tlibrary: %s\n",
30129 DB_VERSION_STRING, version);
30135 #if DB_VERSION_MAJOR > 2
30136 db_env_create( NULL, 0 );
30137 #elif DB_VERSION_MAJOR > 1
30138 db_appexit( NULL );
30140 (void) dbopen( NULL, 0, 0, 0, NULL);
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30149 (eval $ac_link) 2>conftest.er1
30151 grep -v '^ *+' conftest.er1 >conftest.err
30153 cat conftest.err >&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); } &&
30156 { ac_try='test -z "$ac_c_werror_flag"
30157 || test ! -s conftest.err'
30158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159 (eval $ac_try) 2>&5
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; } &&
30163 { ac_try='test -s conftest$ac_exeext'
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30176 rm -f conftest.err conftest.$ac_objext \
30177 conftest$ac_exeext conftest.$ac_ext
30182 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30183 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30185 if test $ol_cv_db_db_4 = yes ; then
30186 ol_cv_lib_db=-ldb-4
30190 if test $ol_cv_lib_db = no ; then
30191 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30192 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30193 if test "${ol_cv_db_db4+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30199 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30208 #ifdef HAVE_DB_185_H
30209 # include <db_185.h>
30214 #ifndef DB_VERSION_MAJOR
30215 # define DB_VERSION_MAJOR 1
30219 #define NULL ((void*)0)
30226 #if DB_VERSION_MAJOR > 1
30229 int major, minor, patch;
30231 version = db_version( &major, &minor, &patch );
30233 if( major != DB_VERSION_MAJOR ||
30234 minor < DB_VERSION_MINOR )
30236 printf("Berkeley DB version mismatch\n"
30237 "\theader: %s\n\tlibrary: %s\n",
30238 DB_VERSION_STRING, version);
30244 #if DB_VERSION_MAJOR > 2
30245 db_env_create( NULL, 0 );
30246 #elif DB_VERSION_MAJOR > 1
30247 db_appexit( NULL );
30249 (void) dbopen( NULL, 0, 0, 0, NULL);
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30258 (eval $ac_link) 2>conftest.er1
30260 grep -v '^ *+' conftest.er1 >conftest.err
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } &&
30265 { ac_try='test -z "$ac_c_werror_flag"
30266 || test ! -s conftest.err'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30280 echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30285 rm -f conftest.err conftest.$ac_objext \
30286 conftest$ac_exeext conftest.$ac_ext
30291 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30292 echo "${ECHO_T}$ol_cv_db_db4" >&6
30294 if test $ol_cv_db_db4 = yes ; then
30299 if test $ol_cv_lib_db = no ; then
30300 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30301 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30302 if test "${ol_cv_db_db+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30308 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30310 cat >conftest.$ac_ext <<_ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h. */
30317 #ifdef HAVE_DB_185_H
30318 # include <db_185.h>
30323 #ifndef DB_VERSION_MAJOR
30324 # define DB_VERSION_MAJOR 1
30328 #define NULL ((void*)0)
30335 #if DB_VERSION_MAJOR > 1
30338 int major, minor, patch;
30340 version = db_version( &major, &minor, &patch );
30342 if( major != DB_VERSION_MAJOR ||
30343 minor < DB_VERSION_MINOR )
30345 printf("Berkeley DB version mismatch\n"
30346 "\theader: %s\n\tlibrary: %s\n",
30347 DB_VERSION_STRING, version);
30353 #if DB_VERSION_MAJOR > 2
30354 db_env_create( NULL, 0 );
30355 #elif DB_VERSION_MAJOR > 1
30356 db_appexit( NULL );
30358 (void) dbopen( NULL, 0, 0, 0, NULL);
30365 rm -f conftest.$ac_objext conftest$ac_exeext
30366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30367 (eval $ac_link) 2>conftest.er1
30369 grep -v '^ *+' conftest.er1 >conftest.err
30371 cat conftest.err >&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } &&
30374 { ac_try='test -z "$ac_c_werror_flag"
30375 || test ! -s conftest.err'
30376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377 (eval $ac_try) 2>&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; } &&
30381 { ac_try='test -s conftest$ac_exeext'
30382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 (eval $ac_try) 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; }; then
30389 echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30394 rm -f conftest.err conftest.$ac_objext \
30395 conftest$ac_exeext conftest.$ac_ext
30400 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30401 echo "${ECHO_T}$ol_cv_db_db" >&6
30403 if test $ol_cv_db_db = yes ; then
30409 elif test $ol_cv_bdb_major = 3 ; then
30410 if test $ol_cv_lib_db = no ; then
30411 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30412 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30413 if test "${ol_cv_db_db3+set}" = set; then
30414 echo $ECHO_N "(cached) $ECHO_C" >&6
30419 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30421 cat >conftest.$ac_ext <<_ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h. */
30428 #ifdef HAVE_DB_185_H
30429 # include <db_185.h>
30434 #ifndef DB_VERSION_MAJOR
30435 # define DB_VERSION_MAJOR 1
30439 #define NULL ((void*)0)
30446 #if DB_VERSION_MAJOR > 1
30449 int major, minor, patch;
30451 version = db_version( &major, &minor, &patch );
30453 if( major != DB_VERSION_MAJOR ||
30454 minor < DB_VERSION_MINOR )
30456 printf("Berkeley DB version mismatch\n"
30457 "\theader: %s\n\tlibrary: %s\n",
30458 DB_VERSION_STRING, version);
30464 #if DB_VERSION_MAJOR > 2
30465 db_env_create( NULL, 0 );
30466 #elif DB_VERSION_MAJOR > 1
30467 db_appexit( NULL );
30469 (void) dbopen( NULL, 0, 0, 0, NULL);
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478 (eval $ac_link) 2>conftest.er1
30480 grep -v '^ *+' conftest.er1 >conftest.err
30482 cat conftest.err >&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
30485 { ac_try='test -z "$ac_c_werror_flag"
30486 || test ! -s conftest.err'
30487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30488 (eval $ac_try) 2>&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }; } &&
30492 { ac_try='test -s conftest$ac_exeext'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
30500 echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30505 rm -f conftest.err conftest.$ac_objext \
30506 conftest$ac_exeext conftest.$ac_ext
30511 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30512 echo "${ECHO_T}$ol_cv_db_db3" >&6
30514 if test $ol_cv_db_db3 = yes ; then
30519 if test $ol_cv_lib_db = no ; then
30520 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30521 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30522 if test "${ol_cv_db_db_3+set}" = set; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30528 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30530 cat >conftest.$ac_ext <<_ACEOF
30533 cat confdefs.h >>conftest.$ac_ext
30534 cat >>conftest.$ac_ext <<_ACEOF
30535 /* end confdefs.h. */
30537 #ifdef HAVE_DB_185_H
30538 # include <db_185.h>
30543 #ifndef DB_VERSION_MAJOR
30544 # define DB_VERSION_MAJOR 1
30548 #define NULL ((void*)0)
30555 #if DB_VERSION_MAJOR > 1
30558 int major, minor, patch;
30560 version = db_version( &major, &minor, &patch );
30562 if( major != DB_VERSION_MAJOR ||
30563 minor < DB_VERSION_MINOR )
30565 printf("Berkeley DB version mismatch\n"
30566 "\theader: %s\n\tlibrary: %s\n",
30567 DB_VERSION_STRING, version);
30573 #if DB_VERSION_MAJOR > 2
30574 db_env_create( NULL, 0 );
30575 #elif DB_VERSION_MAJOR > 1
30576 db_appexit( NULL );
30578 (void) dbopen( NULL, 0, 0, 0, NULL);
30585 rm -f conftest.$ac_objext conftest$ac_exeext
30586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30587 (eval $ac_link) 2>conftest.er1
30589 grep -v '^ *+' conftest.er1 >conftest.err
30591 cat conftest.err >&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); } &&
30594 { ac_try='test -z "$ac_c_werror_flag"
30595 || test ! -s conftest.err'
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; } &&
30601 { ac_try='test -s conftest$ac_exeext'
30602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30603 (eval $ac_try) 2>&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; }; then
30609 echo "$as_me: failed program was:" >&5
30610 sed 's/^/| /' conftest.$ac_ext >&5
30614 rm -f conftest.err conftest.$ac_objext \
30615 conftest$ac_exeext conftest.$ac_ext
30620 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30621 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30623 if test $ol_cv_db_db_3 = yes ; then
30624 ol_cv_lib_db=-ldb-3
30629 elif test $ol_cv_bdb_major = 2 ; then
30630 if test $ol_cv_lib_db = no ; then
30631 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30632 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30633 if test "${ol_cv_db_db2+set}" = set; then
30634 echo $ECHO_N "(cached) $ECHO_C" >&6
30639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30648 #ifdef HAVE_DB_185_H
30649 # include <db_185.h>
30654 #ifndef DB_VERSION_MAJOR
30655 # define DB_VERSION_MAJOR 1
30659 #define NULL ((void*)0)
30666 #if DB_VERSION_MAJOR > 1
30669 int major, minor, patch;
30671 version = db_version( &major, &minor, &patch );
30673 if( major != DB_VERSION_MAJOR ||
30674 minor < DB_VERSION_MINOR )
30676 printf("Berkeley DB version mismatch\n"
30677 "\theader: %s\n\tlibrary: %s\n",
30678 DB_VERSION_STRING, version);
30684 #if DB_VERSION_MAJOR > 2
30685 db_env_create( NULL, 0 );
30686 #elif DB_VERSION_MAJOR > 1
30687 db_appexit( NULL );
30689 (void) dbopen( NULL, 0, 0, 0, NULL);
30696 rm -f conftest.$ac_objext conftest$ac_exeext
30697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30698 (eval $ac_link) 2>conftest.er1
30700 grep -v '^ *+' conftest.er1 >conftest.err
30702 cat conftest.err >&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -z "$ac_c_werror_flag"
30706 || test ! -s conftest.err'
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; } &&
30712 { ac_try='test -s conftest$ac_exeext'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30725 rm -f conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
30731 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30732 echo "${ECHO_T}$ol_cv_db_db2" >&6
30734 if test $ol_cv_db_db2 = yes ; then
30739 if test $ol_cv_lib_db = no ; then
30740 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30741 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30742 if test "${ol_cv_db_db_2+set}" = set; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30748 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30750 cat >conftest.$ac_ext <<_ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h. */
30757 #ifdef HAVE_DB_185_H
30758 # include <db_185.h>
30763 #ifndef DB_VERSION_MAJOR
30764 # define DB_VERSION_MAJOR 1
30768 #define NULL ((void*)0)
30775 #if DB_VERSION_MAJOR > 1
30778 int major, minor, patch;
30780 version = db_version( &major, &minor, &patch );
30782 if( major != DB_VERSION_MAJOR ||
30783 minor < DB_VERSION_MINOR )
30785 printf("Berkeley DB version mismatch\n"
30786 "\theader: %s\n\tlibrary: %s\n",
30787 DB_VERSION_STRING, version);
30793 #if DB_VERSION_MAJOR > 2
30794 db_env_create( NULL, 0 );
30795 #elif DB_VERSION_MAJOR > 1
30796 db_appexit( NULL );
30798 (void) dbopen( NULL, 0, 0, 0, NULL);
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30807 (eval $ac_link) 2>conftest.er1
30809 grep -v '^ *+' conftest.er1 >conftest.err
30811 cat conftest.err >&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag"
30815 || test ! -s conftest.err'
30816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; } &&
30821 { ac_try='test -s conftest$ac_exeext'
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30834 rm -f conftest.err conftest.$ac_objext \
30835 conftest$ac_exeext conftest.$ac_ext
30840 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30841 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30843 if test $ol_cv_db_db_2 = yes ; then
30844 ol_cv_lib_db=-ldb-2
30849 elif test $ol_cv_bdb_major = 1 ; then
30850 if test $ol_cv_lib_db = no ; then
30851 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30852 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30853 if test "${ol_cv_db_db1+set}" = set; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30861 cat >conftest.$ac_ext <<_ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h. */
30868 #ifdef HAVE_DB_185_H
30869 # include <db_185.h>
30874 #ifndef DB_VERSION_MAJOR
30875 # define DB_VERSION_MAJOR 1
30879 #define NULL ((void*)0)
30886 #if DB_VERSION_MAJOR > 1
30889 int major, minor, patch;
30891 version = db_version( &major, &minor, &patch );
30893 if( major != DB_VERSION_MAJOR ||
30894 minor < DB_VERSION_MINOR )
30896 printf("Berkeley DB version mismatch\n"
30897 "\theader: %s\n\tlibrary: %s\n",
30898 DB_VERSION_STRING, version);
30904 #if DB_VERSION_MAJOR > 2
30905 db_env_create( NULL, 0 );
30906 #elif DB_VERSION_MAJOR > 1
30907 db_appexit( NULL );
30909 (void) dbopen( NULL, 0, 0, 0, NULL);
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30918 (eval $ac_link) 2>conftest.er1
30920 grep -v '^ *+' conftest.er1 >conftest.err
30922 cat conftest.err >&5
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); } &&
30925 { ac_try='test -z "$ac_c_werror_flag"
30926 || test ! -s conftest.err'
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; } &&
30932 { ac_try='test -s conftest$ac_exeext'
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; }; then
30940 echo "$as_me: failed program was:" >&5
30941 sed 's/^/| /' conftest.$ac_ext >&5
30945 rm -f conftest.err conftest.$ac_objext \
30946 conftest$ac_exeext conftest.$ac_ext
30951 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30952 echo "${ECHO_T}$ol_cv_db_db1" >&6
30954 if test $ol_cv_db_db1 = yes ; then
30959 if test $ol_cv_lib_db = no ; then
30960 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30961 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30962 if test "${ol_cv_db_db_1+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30968 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30970 cat >conftest.$ac_ext <<_ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30977 #ifdef HAVE_DB_185_H
30978 # include <db_185.h>
30983 #ifndef DB_VERSION_MAJOR
30984 # define DB_VERSION_MAJOR 1
30988 #define NULL ((void*)0)
30995 #if DB_VERSION_MAJOR > 1
30998 int major, minor, patch;
31000 version = db_version( &major, &minor, &patch );
31002 if( major != DB_VERSION_MAJOR ||
31003 minor < DB_VERSION_MINOR )
31005 printf("Berkeley DB version mismatch\n"
31006 "\theader: %s\n\tlibrary: %s\n",
31007 DB_VERSION_STRING, version);
31013 #if DB_VERSION_MAJOR > 2
31014 db_env_create( NULL, 0 );
31015 #elif DB_VERSION_MAJOR > 1
31016 db_appexit( NULL );
31018 (void) dbopen( NULL, 0, 0, 0, NULL);
31025 rm -f conftest.$ac_objext conftest$ac_exeext
31026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31027 (eval $ac_link) 2>conftest.er1
31029 grep -v '^ *+' conftest.er1 >conftest.err
31031 cat conftest.err >&5
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); } &&
31034 { ac_try='test -z "$ac_c_werror_flag"
31035 || test ! -s conftest.err'
31036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037 (eval $ac_try) 2>&5
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; } &&
31041 { ac_try='test -s conftest$ac_exeext'
31042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043 (eval $ac_try) 2>&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; }; then
31049 echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31054 rm -f conftest.err conftest.$ac_objext \
31055 conftest$ac_exeext conftest.$ac_ext
31060 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31061 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31063 if test $ol_cv_db_db_1 = yes ; then
31064 ol_cv_lib_db=-ldb-1
31069 if test $ol_cv_lib_db = no ; then
31070 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31071 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31072 if test "${ol_cv_db_none+set}" = set; then
31073 echo $ECHO_N "(cached) $ECHO_C" >&6
31078 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31080 cat >conftest.$ac_ext <<_ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h. */
31087 #ifdef HAVE_DB_185_H
31088 # include <db_185.h>
31093 #ifndef DB_VERSION_MAJOR
31094 # define DB_VERSION_MAJOR 1
31098 #define NULL ((void*)0)
31105 #if DB_VERSION_MAJOR > 1
31108 int major, minor, patch;
31110 version = db_version( &major, &minor, &patch );
31112 if( major != DB_VERSION_MAJOR ||
31113 minor < DB_VERSION_MINOR )
31115 printf("Berkeley DB version mismatch\n"
31116 "\theader: %s\n\tlibrary: %s\n",
31117 DB_VERSION_STRING, version);
31123 #if DB_VERSION_MAJOR > 2
31124 db_env_create( NULL, 0 );
31125 #elif DB_VERSION_MAJOR > 1
31126 db_appexit( NULL );
31128 (void) dbopen( NULL, 0, 0, 0, NULL);
31135 rm -f conftest.$ac_objext conftest$ac_exeext
31136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31137 (eval $ac_link) 2>conftest.er1
31139 grep -v '^ *+' conftest.er1 >conftest.err
31141 cat conftest.err >&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
31144 { ac_try='test -z "$ac_c_werror_flag"
31145 || test ! -s conftest.err'
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; } &&
31151 { ac_try='test -s conftest$ac_exeext'
31152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153 (eval $ac_try) 2>&5
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31159 echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31164 rm -f conftest.err conftest.$ac_objext \
31165 conftest$ac_exeext conftest.$ac_ext
31170 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31171 echo "${ECHO_T}$ol_cv_db_none" >&6
31173 if test $ol_cv_db_none = yes ; then
31179 if test "$ol_cv_lib_db" != no ; then
31180 ol_cv_berkeley_db=yes
31186 ol_cv_berkeley_db=no
31188 for ac_header in db.h
31190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31192 echo "$as_me:$LINENO: checking for $ac_header" >&5
31193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31195 echo $ECHO_N "(cached) $ECHO_C" >&6
31197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31200 # Is the header compilable?
31201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31203 cat >conftest.$ac_ext <<_ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h. */
31209 $ac_includes_default
31210 #include <$ac_header>
31212 rm -f conftest.$ac_objext
31213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31214 (eval $ac_compile) 2>conftest.er1
31216 grep -v '^ *+' conftest.er1 >conftest.err
31218 cat conftest.err >&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } &&
31221 { ac_try='test -z "$ac_c_werror_flag"
31222 || test ! -s conftest.err'
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; } &&
31228 { ac_try='test -s conftest.$ac_objext'
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 ac_header_compiler=yes
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ac_header_compiler=no
31241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31243 echo "${ECHO_T}$ac_header_compiler" >&6
31245 # Is the header present?
31246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31248 cat >conftest.$ac_ext <<_ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h. */
31254 #include <$ac_header>
31256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } >/dev/null; then
31264 if test -s conftest.err; then
31265 ac_cpp_err=$ac_c_preproc_warn_flag
31266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31273 if test -z "$ac_cpp_err"; then
31274 ac_header_preproc=yes
31276 echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31279 ac_header_preproc=no
31281 rm -f conftest.err conftest.$ac_ext
31282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31283 echo "${ECHO_T}$ac_header_preproc" >&6
31285 # So? What about this header?
31286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31292 ac_header_preproc=yes
31295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31309 ## --------------------------------------------- ##
31310 ## Report this to <http://www.openldap.org/its/> ##
31311 ## --------------------------------------------- ##
31314 sed "s/^/$as_me: WARNING: /" >&2
31317 echo "$as_me:$LINENO: checking for $ac_header" >&5
31318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31320 echo $ECHO_N "(cached) $ECHO_C" >&6
31322 eval "$as_ac_Header=\$ac_header_preproc"
31324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31329 cat >>confdefs.h <<_ACEOF
31330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31337 if test $ac_cv_header_db_h = yes; then
31340 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31341 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31342 if test "${ol_cv_bdb_major+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31347 if test $ol_cv_bdb_major = 0 ; then
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31359 #if DB_VERSION_MAJOR == 4
31364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31365 $EGREP "__db_version" >/dev/null 2>&1; then
31373 if test $ol_cv_bdb_major = 0 ; then
31374 cat >conftest.$ac_ext <<_ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h. */
31382 #ifndef DB_VERSION_MAJOR
31383 # define DB_VERSION_MAJOR 1
31385 #if DB_VERSION_MAJOR == 3
31390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31391 $EGREP "__db_version" >/dev/null 2>&1; then
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 == 2
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 == 1
31442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31443 $EGREP "__db_version" >/dev/null 2>&1; then
31452 if test $ol_cv_bdb_major = 0 ; then
31453 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31454 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31455 { (exit 1); exit 1; }; }
31459 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31460 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31462 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31463 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31464 if test "${ol_cv_bdb_minor+set}" = set; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31469 if test $ol_cv_bdb_minor = 0 ; then
31470 cat >conftest.$ac_ext <<_ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h. */
31478 #ifndef DB_VERSION_MINOR
31479 # define DB_VERSION_MINOR 0
31481 #if DB_VERSION_MINOR == 9
31486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31487 $EGREP "__db_version" >/dev/null 2>&1; then
31495 if test $ol_cv_bdb_minor = 0 ; then
31496 cat >conftest.$ac_ext <<_ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31504 #ifndef DB_VERSION_MINOR
31505 # define DB_VERSION_MINOR 0
31507 #if DB_VERSION_MINOR == 8
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513 $EGREP "__db_version" >/dev/null 2>&1; then
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 == 7
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 == 6
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 == 5
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 == 4
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 == 3
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 == 2
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 == 1
31694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31695 $EGREP "__db_version" >/dev/null 2>&1; then
31705 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31706 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31708 if test $ol_cv_bdb_major = 4 ; then
31709 if test $ol_cv_bdb_minor = 4 ; then
31710 if test $ol_cv_lib_db = no ; then
31711 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31712 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31713 if test "${ol_cv_db_db44+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31719 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31721 cat >conftest.$ac_ext <<_ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h. */
31728 #ifdef HAVE_DB_185_H
31729 # include <db_185.h>
31734 #ifndef DB_VERSION_MAJOR
31735 # define DB_VERSION_MAJOR 1
31739 #define NULL ((void*)0)
31746 #if DB_VERSION_MAJOR > 1
31749 int major, minor, patch;
31751 version = db_version( &major, &minor, &patch );
31753 if( major != DB_VERSION_MAJOR ||
31754 minor < DB_VERSION_MINOR )
31756 printf("Berkeley DB version mismatch\n"
31757 "\theader: %s\n\tlibrary: %s\n",
31758 DB_VERSION_STRING, version);
31764 #if DB_VERSION_MAJOR > 2
31765 db_env_create( NULL, 0 );
31766 #elif DB_VERSION_MAJOR > 1
31767 db_appexit( NULL );
31769 (void) dbopen( NULL, 0, 0, 0, NULL);
31776 rm -f conftest.$ac_objext conftest$ac_exeext
31777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31778 (eval $ac_link) 2>conftest.er1
31780 grep -v '^ *+' conftest.er1 >conftest.err
31782 cat conftest.err >&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); } &&
31785 { ac_try='test -z "$ac_c_werror_flag"
31786 || test ! -s conftest.err'
31787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788 (eval $ac_try) 2>&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); }; } &&
31792 { ac_try='test -s conftest$ac_exeext'
31793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 (eval $ac_try) 2>&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; }; then
31800 echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31805 rm -f conftest.err conftest.$ac_objext \
31806 conftest$ac_exeext conftest.$ac_ext
31811 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31812 echo "${ECHO_T}$ol_cv_db_db44" >&6
31814 if test $ol_cv_db_db44 = yes ; then
31815 ol_cv_lib_db=-ldb44
31819 if test $ol_cv_lib_db = no ; then
31820 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31821 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31822 if test "${ol_cv_db_db_44+set}" = set; then
31823 echo $ECHO_N "(cached) $ECHO_C" >&6
31828 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31830 cat >conftest.$ac_ext <<_ACEOF
31833 cat confdefs.h >>conftest.$ac_ext
31834 cat >>conftest.$ac_ext <<_ACEOF
31835 /* end confdefs.h. */
31837 #ifdef HAVE_DB_185_H
31838 # include <db_185.h>
31843 #ifndef DB_VERSION_MAJOR
31844 # define DB_VERSION_MAJOR 1
31848 #define NULL ((void*)0)
31855 #if DB_VERSION_MAJOR > 1
31858 int major, minor, patch;
31860 version = db_version( &major, &minor, &patch );
31862 if( major != DB_VERSION_MAJOR ||
31863 minor < DB_VERSION_MINOR )
31865 printf("Berkeley DB version mismatch\n"
31866 "\theader: %s\n\tlibrary: %s\n",
31867 DB_VERSION_STRING, version);
31873 #if DB_VERSION_MAJOR > 2
31874 db_env_create( NULL, 0 );
31875 #elif DB_VERSION_MAJOR > 1
31876 db_appexit( NULL );
31878 (void) dbopen( NULL, 0, 0, 0, NULL);
31885 rm -f conftest.$ac_objext conftest$ac_exeext
31886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31887 (eval $ac_link) 2>conftest.er1
31889 grep -v '^ *+' conftest.er1 >conftest.err
31891 cat conftest.err >&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); } &&
31894 { ac_try='test -z "$ac_c_werror_flag"
31895 || test ! -s conftest.err'
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; } &&
31901 { ac_try='test -s conftest$ac_exeext'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; }; then
31909 echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31914 rm -f conftest.err conftest.$ac_objext \
31915 conftest$ac_exeext conftest.$ac_ext
31920 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31921 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31923 if test $ol_cv_db_db_44 = yes ; then
31924 ol_cv_lib_db=-ldb-44
31928 if test $ol_cv_lib_db = no ; then
31929 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31930 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31931 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31937 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31939 cat >conftest.$ac_ext <<_ACEOF
31942 cat confdefs.h >>conftest.$ac_ext
31943 cat >>conftest.$ac_ext <<_ACEOF
31944 /* end confdefs.h. */
31946 #ifdef HAVE_DB_185_H
31947 # include <db_185.h>
31952 #ifndef DB_VERSION_MAJOR
31953 # define DB_VERSION_MAJOR 1
31957 #define NULL ((void*)0)
31964 #if DB_VERSION_MAJOR > 1
31967 int major, minor, patch;
31969 version = db_version( &major, &minor, &patch );
31971 if( major != DB_VERSION_MAJOR ||
31972 minor < DB_VERSION_MINOR )
31974 printf("Berkeley DB version mismatch\n"
31975 "\theader: %s\n\tlibrary: %s\n",
31976 DB_VERSION_STRING, version);
31982 #if DB_VERSION_MAJOR > 2
31983 db_env_create( NULL, 0 );
31984 #elif DB_VERSION_MAJOR > 1
31985 db_appexit( NULL );
31987 (void) dbopen( NULL, 0, 0, 0, NULL);
31994 rm -f conftest.$ac_objext conftest$ac_exeext
31995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31996 (eval $ac_link) 2>conftest.er1
31998 grep -v '^ *+' conftest.er1 >conftest.err
32000 cat conftest.err >&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); } &&
32003 { ac_try='test -z "$ac_c_werror_flag"
32004 || test ! -s conftest.err'
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; } &&
32010 { ac_try='test -s conftest$ac_exeext'
32011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32012 (eval $ac_try) 2>&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; }; then
32016 ol_cv_db_db_4_dot_4=yes
32018 echo "$as_me: failed program was:" >&5
32019 sed 's/^/| /' conftest.$ac_ext >&5
32021 ol_cv_db_db_4_dot_4=no
32023 rm -f conftest.err conftest.$ac_objext \
32024 conftest$ac_exeext conftest.$ac_ext
32029 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32030 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32032 if test $ol_cv_db_db_4_dot_4 = yes ; then
32033 ol_cv_lib_db=-ldb-4.4
32037 if test $ol_cv_lib_db = no ; then
32038 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32039 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32040 if test "${ol_cv_db_db_4_4+set}" = set; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32046 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32048 cat >conftest.$ac_ext <<_ACEOF
32051 cat confdefs.h >>conftest.$ac_ext
32052 cat >>conftest.$ac_ext <<_ACEOF
32053 /* end confdefs.h. */
32055 #ifdef HAVE_DB_185_H
32056 # include <db_185.h>
32061 #ifndef DB_VERSION_MAJOR
32062 # define DB_VERSION_MAJOR 1
32066 #define NULL ((void*)0)
32073 #if DB_VERSION_MAJOR > 1
32076 int major, minor, patch;
32078 version = db_version( &major, &minor, &patch );
32080 if( major != DB_VERSION_MAJOR ||
32081 minor < DB_VERSION_MINOR )
32083 printf("Berkeley DB version mismatch\n"
32084 "\theader: %s\n\tlibrary: %s\n",
32085 DB_VERSION_STRING, version);
32091 #if DB_VERSION_MAJOR > 2
32092 db_env_create( NULL, 0 );
32093 #elif DB_VERSION_MAJOR > 1
32094 db_appexit( NULL );
32096 (void) dbopen( NULL, 0, 0, 0, NULL);
32103 rm -f conftest.$ac_objext conftest$ac_exeext
32104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32105 (eval $ac_link) 2>conftest.er1
32107 grep -v '^ *+' conftest.er1 >conftest.err
32109 cat conftest.err >&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
32112 { ac_try='test -z "$ac_c_werror_flag"
32113 || test ! -s conftest.err'
32114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32115 (eval $ac_try) 2>&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); }; } &&
32119 { ac_try='test -s conftest$ac_exeext'
32120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121 (eval $ac_try) 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; }; then
32125 ol_cv_db_db_4_4=yes
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32132 rm -f conftest.err conftest.$ac_objext \
32133 conftest$ac_exeext conftest.$ac_ext
32138 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32139 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32141 if test $ol_cv_db_db_4_4 = yes ; then
32142 ol_cv_lib_db=-ldb-4-4
32146 elif test $ol_cv_bdb_minor = 3 ; then
32147 if test $ol_cv_lib_db = no ; then
32148 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32149 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32150 if test "${ol_cv_db_db43+set}" = set; then
32151 echo $ECHO_N "(cached) $ECHO_C" >&6
32156 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32158 cat >conftest.$ac_ext <<_ACEOF
32161 cat confdefs.h >>conftest.$ac_ext
32162 cat >>conftest.$ac_ext <<_ACEOF
32163 /* end confdefs.h. */
32165 #ifdef HAVE_DB_185_H
32166 # include <db_185.h>
32171 #ifndef DB_VERSION_MAJOR
32172 # define DB_VERSION_MAJOR 1
32176 #define NULL ((void*)0)
32183 #if DB_VERSION_MAJOR > 1
32186 int major, minor, patch;
32188 version = db_version( &major, &minor, &patch );
32190 if( major != DB_VERSION_MAJOR ||
32191 minor < DB_VERSION_MINOR )
32193 printf("Berkeley DB version mismatch\n"
32194 "\theader: %s\n\tlibrary: %s\n",
32195 DB_VERSION_STRING, version);
32201 #if DB_VERSION_MAJOR > 2
32202 db_env_create( NULL, 0 );
32203 #elif DB_VERSION_MAJOR > 1
32204 db_appexit( NULL );
32206 (void) dbopen( NULL, 0, 0, 0, NULL);
32213 rm -f conftest.$ac_objext conftest$ac_exeext
32214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32215 (eval $ac_link) 2>conftest.er1
32217 grep -v '^ *+' conftest.er1 >conftest.err
32219 cat conftest.err >&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); } &&
32222 { ac_try='test -z "$ac_c_werror_flag"
32223 || test ! -s conftest.err'
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; } &&
32229 { ac_try='test -s conftest$ac_exeext'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32237 echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32242 rm -f conftest.err conftest.$ac_objext \
32243 conftest$ac_exeext conftest.$ac_ext
32248 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32249 echo "${ECHO_T}$ol_cv_db_db43" >&6
32251 if test $ol_cv_db_db43 = yes ; then
32252 ol_cv_lib_db=-ldb43
32256 if test $ol_cv_lib_db = no ; then
32257 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32258 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32259 if test "${ol_cv_db_db_43+set}" = set; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32265 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32267 cat >conftest.$ac_ext <<_ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32274 #ifdef HAVE_DB_185_H
32275 # include <db_185.h>
32280 #ifndef DB_VERSION_MAJOR
32281 # define DB_VERSION_MAJOR 1
32285 #define NULL ((void*)0)
32292 #if DB_VERSION_MAJOR > 1
32295 int major, minor, patch;
32297 version = db_version( &major, &minor, &patch );
32299 if( major != DB_VERSION_MAJOR ||
32300 minor < DB_VERSION_MINOR )
32302 printf("Berkeley DB version mismatch\n"
32303 "\theader: %s\n\tlibrary: %s\n",
32304 DB_VERSION_STRING, version);
32310 #if DB_VERSION_MAJOR > 2
32311 db_env_create( NULL, 0 );
32312 #elif DB_VERSION_MAJOR > 1
32313 db_appexit( NULL );
32315 (void) dbopen( NULL, 0, 0, 0, NULL);
32322 rm -f conftest.$ac_objext conftest$ac_exeext
32323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32324 (eval $ac_link) 2>conftest.er1
32326 grep -v '^ *+' conftest.er1 >conftest.err
32328 cat conftest.err >&5
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); } &&
32331 { ac_try='test -z "$ac_c_werror_flag"
32332 || test ! -s conftest.err'
32333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32334 (eval $ac_try) 2>&5
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest$ac_exeext'
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; }; then
32346 echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32351 rm -f conftest.err conftest.$ac_objext \
32352 conftest$ac_exeext conftest.$ac_ext
32357 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32358 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32360 if test $ol_cv_db_db_43 = yes ; then
32361 ol_cv_lib_db=-ldb-43
32365 if test $ol_cv_lib_db = no ; then
32366 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32367 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32368 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32369 echo $ECHO_N "(cached) $ECHO_C" >&6
32374 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32376 cat >conftest.$ac_ext <<_ACEOF
32379 cat confdefs.h >>conftest.$ac_ext
32380 cat >>conftest.$ac_ext <<_ACEOF
32381 /* end confdefs.h. */
32383 #ifdef HAVE_DB_185_H
32384 # include <db_185.h>
32389 #ifndef DB_VERSION_MAJOR
32390 # define DB_VERSION_MAJOR 1
32394 #define NULL ((void*)0)
32401 #if DB_VERSION_MAJOR > 1
32404 int major, minor, patch;
32406 version = db_version( &major, &minor, &patch );
32408 if( major != DB_VERSION_MAJOR ||
32409 minor < DB_VERSION_MINOR )
32411 printf("Berkeley DB version mismatch\n"
32412 "\theader: %s\n\tlibrary: %s\n",
32413 DB_VERSION_STRING, version);
32419 #if DB_VERSION_MAJOR > 2
32420 db_env_create( NULL, 0 );
32421 #elif DB_VERSION_MAJOR > 1
32422 db_appexit( NULL );
32424 (void) dbopen( NULL, 0, 0, 0, NULL);
32431 rm -f conftest.$ac_objext conftest$ac_exeext
32432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32433 (eval $ac_link) 2>conftest.er1
32435 grep -v '^ *+' conftest.er1 >conftest.err
32437 cat conftest.err >&5
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); } &&
32440 { ac_try='test -z "$ac_c_werror_flag"
32441 || test ! -s conftest.err'
32442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443 (eval $ac_try) 2>&5
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; } &&
32447 { ac_try='test -s conftest$ac_exeext'
32448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32449 (eval $ac_try) 2>&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; }; then
32453 ol_cv_db_db_4_dot_3=yes
32455 echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32458 ol_cv_db_db_4_dot_3=no
32460 rm -f conftest.err conftest.$ac_objext \
32461 conftest$ac_exeext conftest.$ac_ext
32466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32467 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32469 if test $ol_cv_db_db_4_dot_3 = yes ; then
32470 ol_cv_lib_db=-ldb-4.3
32474 if test $ol_cv_lib_db = no ; then
32475 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32477 if test "${ol_cv_db_db_4_3+set}" = set; then
32478 echo $ECHO_N "(cached) $ECHO_C" >&6
32483 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32485 cat >conftest.$ac_ext <<_ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h. */
32492 #ifdef HAVE_DB_185_H
32493 # include <db_185.h>
32498 #ifndef DB_VERSION_MAJOR
32499 # define DB_VERSION_MAJOR 1
32503 #define NULL ((void*)0)
32510 #if DB_VERSION_MAJOR > 1
32513 int major, minor, patch;
32515 version = db_version( &major, &minor, &patch );
32517 if( major != DB_VERSION_MAJOR ||
32518 minor < DB_VERSION_MINOR )
32520 printf("Berkeley DB version mismatch\n"
32521 "\theader: %s\n\tlibrary: %s\n",
32522 DB_VERSION_STRING, version);
32528 #if DB_VERSION_MAJOR > 2
32529 db_env_create( NULL, 0 );
32530 #elif DB_VERSION_MAJOR > 1
32531 db_appexit( NULL );
32533 (void) dbopen( NULL, 0, 0, 0, NULL);
32540 rm -f conftest.$ac_objext conftest$ac_exeext
32541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32542 (eval $ac_link) 2>conftest.er1
32544 grep -v '^ *+' conftest.er1 >conftest.err
32546 cat conftest.err >&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } &&
32549 { ac_try='test -z "$ac_c_werror_flag"
32550 || test ! -s conftest.err'
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; } &&
32556 { ac_try='test -s conftest$ac_exeext'
32557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558 (eval $ac_try) 2>&5
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; }; then
32562 ol_cv_db_db_4_3=yes
32564 echo "$as_me: failed program was:" >&5
32565 sed 's/^/| /' conftest.$ac_ext >&5
32569 rm -f conftest.err conftest.$ac_objext \
32570 conftest$ac_exeext conftest.$ac_ext
32575 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32576 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32578 if test $ol_cv_db_db_4_3 = yes ; then
32579 ol_cv_lib_db=-ldb-4-3
32583 elif test $ol_cv_bdb_minor = 2 ; then
32584 if test $ol_cv_lib_db = no ; then
32585 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32586 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32587 if test "${ol_cv_db_db42+set}" = set; then
32588 echo $ECHO_N "(cached) $ECHO_C" >&6
32593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 #ifdef HAVE_DB_185_H
32603 # include <db_185.h>
32608 #ifndef DB_VERSION_MAJOR
32609 # define DB_VERSION_MAJOR 1
32613 #define NULL ((void*)0)
32620 #if DB_VERSION_MAJOR > 1
32623 int major, minor, patch;
32625 version = db_version( &major, &minor, &patch );
32627 if( major != DB_VERSION_MAJOR ||
32628 minor < DB_VERSION_MINOR )
32630 printf("Berkeley DB version mismatch\n"
32631 "\theader: %s\n\tlibrary: %s\n",
32632 DB_VERSION_STRING, version);
32638 #if DB_VERSION_MAJOR > 2
32639 db_env_create( NULL, 0 );
32640 #elif DB_VERSION_MAJOR > 1
32641 db_appexit( NULL );
32643 (void) dbopen( NULL, 0, 0, 0, NULL);
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32652 (eval $ac_link) 2>conftest.er1
32654 grep -v '^ *+' conftest.er1 >conftest.err
32656 cat conftest.err >&5
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } &&
32659 { ac_try='test -z "$ac_c_werror_flag"
32660 || test ! -s conftest.err'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; } &&
32666 { ac_try='test -s conftest$ac_exeext'
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; }; then
32674 echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32679 rm -f conftest.err conftest.$ac_objext \
32680 conftest$ac_exeext conftest.$ac_ext
32685 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32686 echo "${ECHO_T}$ol_cv_db_db42" >&6
32688 if test $ol_cv_db_db42 = yes ; then
32689 ol_cv_lib_db=-ldb42
32693 if test $ol_cv_lib_db = no ; then
32694 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32695 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32696 if test "${ol_cv_db_db_42+set}" = set; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32704 cat >conftest.$ac_ext <<_ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h. */
32711 #ifdef HAVE_DB_185_H
32712 # include <db_185.h>
32717 #ifndef DB_VERSION_MAJOR
32718 # define DB_VERSION_MAJOR 1
32722 #define NULL ((void*)0)
32729 #if DB_VERSION_MAJOR > 1
32732 int major, minor, patch;
32734 version = db_version( &major, &minor, &patch );
32736 if( major != DB_VERSION_MAJOR ||
32737 minor < DB_VERSION_MINOR )
32739 printf("Berkeley DB version mismatch\n"
32740 "\theader: %s\n\tlibrary: %s\n",
32741 DB_VERSION_STRING, version);
32747 #if DB_VERSION_MAJOR > 2
32748 db_env_create( NULL, 0 );
32749 #elif DB_VERSION_MAJOR > 1
32750 db_appexit( NULL );
32752 (void) dbopen( NULL, 0, 0, 0, NULL);
32759 rm -f conftest.$ac_objext conftest$ac_exeext
32760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32761 (eval $ac_link) 2>conftest.er1
32763 grep -v '^ *+' conftest.er1 >conftest.err
32765 cat conftest.err >&5
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); } &&
32768 { ac_try='test -z "$ac_c_werror_flag"
32769 || test ! -s conftest.err'
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest$ac_exeext'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32783 echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32788 rm -f conftest.err conftest.$ac_objext \
32789 conftest$ac_exeext conftest.$ac_ext
32794 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32795 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32797 if test $ol_cv_db_db_42 = yes ; then
32798 ol_cv_lib_db=-ldb-42
32802 if test $ol_cv_lib_db = no ; then
32803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32805 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32806 echo $ECHO_N "(cached) $ECHO_C" >&6
32811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32813 cat >conftest.$ac_ext <<_ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32820 #ifdef HAVE_DB_185_H
32821 # include <db_185.h>
32826 #ifndef DB_VERSION_MAJOR
32827 # define DB_VERSION_MAJOR 1
32831 #define NULL ((void*)0)
32838 #if DB_VERSION_MAJOR > 1
32841 int major, minor, patch;
32843 version = db_version( &major, &minor, &patch );
32845 if( major != DB_VERSION_MAJOR ||
32846 minor < DB_VERSION_MINOR )
32848 printf("Berkeley DB version mismatch\n"
32849 "\theader: %s\n\tlibrary: %s\n",
32850 DB_VERSION_STRING, version);
32856 #if DB_VERSION_MAJOR > 2
32857 db_env_create( NULL, 0 );
32858 #elif DB_VERSION_MAJOR > 1
32859 db_appexit( NULL );
32861 (void) dbopen( NULL, 0, 0, 0, NULL);
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870 (eval $ac_link) 2>conftest.er1
32872 grep -v '^ *+' conftest.er1 >conftest.err
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } &&
32877 { ac_try='test -z "$ac_c_werror_flag"
32878 || test ! -s conftest.err'
32879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880 (eval $ac_try) 2>&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); }; } &&
32884 { ac_try='test -s conftest$ac_exeext'
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; }; then
32890 ol_cv_db_db_4_dot_2=yes
32892 echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32895 ol_cv_db_db_4_dot_2=no
32897 rm -f conftest.err conftest.$ac_objext \
32898 conftest$ac_exeext conftest.$ac_ext
32903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32904 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32906 if test $ol_cv_db_db_4_dot_2 = yes ; then
32907 ol_cv_lib_db=-ldb-4.2
32911 if test $ol_cv_lib_db = no ; then
32912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32913 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32914 if test "${ol_cv_db_db_4_2+set}" = set; then
32915 echo $ECHO_N "(cached) $ECHO_C" >&6
32920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32922 cat >conftest.$ac_ext <<_ACEOF
32925 cat confdefs.h >>conftest.$ac_ext
32926 cat >>conftest.$ac_ext <<_ACEOF
32927 /* end confdefs.h. */
32929 #ifdef HAVE_DB_185_H
32930 # include <db_185.h>
32935 #ifndef DB_VERSION_MAJOR
32936 # define DB_VERSION_MAJOR 1
32940 #define NULL ((void*)0)
32947 #if DB_VERSION_MAJOR > 1
32950 int major, minor, patch;
32952 version = db_version( &major, &minor, &patch );
32954 if( major != DB_VERSION_MAJOR ||
32955 minor < DB_VERSION_MINOR )
32957 printf("Berkeley DB version mismatch\n"
32958 "\theader: %s\n\tlibrary: %s\n",
32959 DB_VERSION_STRING, version);
32965 #if DB_VERSION_MAJOR > 2
32966 db_env_create( NULL, 0 );
32967 #elif DB_VERSION_MAJOR > 1
32968 db_appexit( NULL );
32970 (void) dbopen( NULL, 0, 0, 0, NULL);
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32979 (eval $ac_link) 2>conftest.er1
32981 grep -v '^ *+' conftest.er1 >conftest.err
32983 cat conftest.err >&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } &&
32986 { ac_try='test -z "$ac_c_werror_flag"
32987 || test ! -s conftest.err'
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; } &&
32993 { ac_try='test -s conftest$ac_exeext'
32994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995 (eval $ac_try) 2>&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; }; then
32999 ol_cv_db_db_4_2=yes
33001 echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33006 rm -f conftest.err conftest.$ac_objext \
33007 conftest$ac_exeext conftest.$ac_ext
33012 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33013 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33015 if test $ol_cv_db_db_4_2 = yes ; then
33016 ol_cv_lib_db=-ldb-4-2
33020 elif test $ol_cv_bdb_minor = 1 ; then
33021 if test $ol_cv_lib_db = no ; then
33022 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33023 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33024 if test "${ol_cv_db_db41+set}" = set; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33030 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33032 cat >conftest.$ac_ext <<_ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33039 #ifdef HAVE_DB_185_H
33040 # include <db_185.h>
33045 #ifndef DB_VERSION_MAJOR
33046 # define DB_VERSION_MAJOR 1
33050 #define NULL ((void*)0)
33057 #if DB_VERSION_MAJOR > 1
33060 int major, minor, patch;
33062 version = db_version( &major, &minor, &patch );
33064 if( major != DB_VERSION_MAJOR ||
33065 minor < DB_VERSION_MINOR )
33067 printf("Berkeley DB version mismatch\n"
33068 "\theader: %s\n\tlibrary: %s\n",
33069 DB_VERSION_STRING, version);
33075 #if DB_VERSION_MAJOR > 2
33076 db_env_create( NULL, 0 );
33077 #elif DB_VERSION_MAJOR > 1
33078 db_appexit( NULL );
33080 (void) dbopen( NULL, 0, 0, 0, NULL);
33087 rm -f conftest.$ac_objext conftest$ac_exeext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089 (eval $ac_link) 2>conftest.er1
33091 grep -v '^ *+' conftest.er1 >conftest.err
33093 cat conftest.err >&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } &&
33096 { ac_try='test -z "$ac_c_werror_flag"
33097 || test ! -s conftest.err'
33098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099 (eval $ac_try) 2>&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); }; } &&
33103 { ac_try='test -s conftest$ac_exeext'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; }; then
33111 echo "$as_me: failed program was:" >&5
33112 sed 's/^/| /' conftest.$ac_ext >&5
33116 rm -f conftest.err conftest.$ac_objext \
33117 conftest$ac_exeext conftest.$ac_ext
33122 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33123 echo "${ECHO_T}$ol_cv_db_db41" >&6
33125 if test $ol_cv_db_db41 = yes ; then
33126 ol_cv_lib_db=-ldb41
33130 if test $ol_cv_lib_db = no ; then
33131 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33132 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33133 if test "${ol_cv_db_db_41+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33139 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33141 cat >conftest.$ac_ext <<_ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h. */
33148 #ifdef HAVE_DB_185_H
33149 # include <db_185.h>
33154 #ifndef DB_VERSION_MAJOR
33155 # define DB_VERSION_MAJOR 1
33159 #define NULL ((void*)0)
33166 #if DB_VERSION_MAJOR > 1
33169 int major, minor, patch;
33171 version = db_version( &major, &minor, &patch );
33173 if( major != DB_VERSION_MAJOR ||
33174 minor < DB_VERSION_MINOR )
33176 printf("Berkeley DB version mismatch\n"
33177 "\theader: %s\n\tlibrary: %s\n",
33178 DB_VERSION_STRING, version);
33184 #if DB_VERSION_MAJOR > 2
33185 db_env_create( NULL, 0 );
33186 #elif DB_VERSION_MAJOR > 1
33187 db_appexit( NULL );
33189 (void) dbopen( NULL, 0, 0, 0, NULL);
33196 rm -f conftest.$ac_objext conftest$ac_exeext
33197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33198 (eval $ac_link) 2>conftest.er1
33200 grep -v '^ *+' conftest.er1 >conftest.err
33202 cat conftest.err >&5
33203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204 (exit $ac_status); } &&
33205 { ac_try='test -z "$ac_c_werror_flag"
33206 || test ! -s conftest.err'
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; } &&
33212 { ac_try='test -s conftest$ac_exeext'
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; }; then
33220 echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33225 rm -f conftest.err conftest.$ac_objext \
33226 conftest$ac_exeext conftest.$ac_ext
33231 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33232 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33234 if test $ol_cv_db_db_41 = yes ; then
33235 ol_cv_lib_db=-ldb-41
33239 if test $ol_cv_lib_db = no ; then
33240 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33242 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33248 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33250 cat >conftest.$ac_ext <<_ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33257 #ifdef HAVE_DB_185_H
33258 # include <db_185.h>
33263 #ifndef DB_VERSION_MAJOR
33264 # define DB_VERSION_MAJOR 1
33268 #define NULL ((void*)0)
33275 #if DB_VERSION_MAJOR > 1
33278 int major, minor, patch;
33280 version = db_version( &major, &minor, &patch );
33282 if( major != DB_VERSION_MAJOR ||
33283 minor < DB_VERSION_MINOR )
33285 printf("Berkeley DB version mismatch\n"
33286 "\theader: %s\n\tlibrary: %s\n",
33287 DB_VERSION_STRING, version);
33293 #if DB_VERSION_MAJOR > 2
33294 db_env_create( NULL, 0 );
33295 #elif DB_VERSION_MAJOR > 1
33296 db_appexit( NULL );
33298 (void) dbopen( NULL, 0, 0, 0, NULL);
33305 rm -f conftest.$ac_objext conftest$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307 (eval $ac_link) 2>conftest.er1
33309 grep -v '^ *+' conftest.er1 >conftest.err
33311 cat conftest.err >&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
33314 { ac_try='test -z "$ac_c_werror_flag"
33315 || test ! -s conftest.err'
33316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317 (eval $ac_try) 2>&5
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest$ac_exeext'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 ol_cv_db_db_4_dot_1=yes
33329 echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33332 ol_cv_db_db_4_dot_1=no
33334 rm -f conftest.err conftest.$ac_objext \
33335 conftest$ac_exeext conftest.$ac_ext
33340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33341 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33343 if test $ol_cv_db_db_4_dot_1 = yes ; then
33344 ol_cv_lib_db=-ldb-4.1
33348 if test $ol_cv_lib_db = no ; then
33349 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33350 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33351 if test "${ol_cv_db_db_4_1+set}" = set; then
33352 echo $ECHO_N "(cached) $ECHO_C" >&6
33357 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33359 cat >conftest.$ac_ext <<_ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33366 #ifdef HAVE_DB_185_H
33367 # include <db_185.h>
33372 #ifndef DB_VERSION_MAJOR
33373 # define DB_VERSION_MAJOR 1
33377 #define NULL ((void*)0)
33384 #if DB_VERSION_MAJOR > 1
33387 int major, minor, patch;
33389 version = db_version( &major, &minor, &patch );
33391 if( major != DB_VERSION_MAJOR ||
33392 minor < DB_VERSION_MINOR )
33394 printf("Berkeley DB version mismatch\n"
33395 "\theader: %s\n\tlibrary: %s\n",
33396 DB_VERSION_STRING, version);
33402 #if DB_VERSION_MAJOR > 2
33403 db_env_create( NULL, 0 );
33404 #elif DB_VERSION_MAJOR > 1
33405 db_appexit( NULL );
33407 (void) dbopen( NULL, 0, 0, 0, NULL);
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416 (eval $ac_link) 2>conftest.er1
33418 grep -v '^ *+' conftest.er1 >conftest.err
33420 cat conftest.err >&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } &&
33423 { ac_try='test -z "$ac_c_werror_flag"
33424 || test ! -s conftest.err'
33425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426 (eval $ac_try) 2>&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); }; } &&
33430 { ac_try='test -s conftest$ac_exeext'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
33436 ol_cv_db_db_4_1=yes
33438 echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33443 rm -f conftest.err conftest.$ac_objext \
33444 conftest$ac_exeext conftest.$ac_ext
33449 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33450 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33452 if test $ol_cv_db_db_4_1 = yes ; then
33453 ol_cv_lib_db=-ldb-4-1
33458 if test $ol_cv_lib_db = no ; then
33459 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33460 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33461 if test "${ol_cv_db_db_4+set}" = set; then
33462 echo $ECHO_N "(cached) $ECHO_C" >&6
33467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33469 cat >conftest.$ac_ext <<_ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h. */
33476 #ifdef HAVE_DB_185_H
33477 # include <db_185.h>
33482 #ifndef DB_VERSION_MAJOR
33483 # define DB_VERSION_MAJOR 1
33487 #define NULL ((void*)0)
33494 #if DB_VERSION_MAJOR > 1
33497 int major, minor, patch;
33499 version = db_version( &major, &minor, &patch );
33501 if( major != DB_VERSION_MAJOR ||
33502 minor < DB_VERSION_MINOR )
33504 printf("Berkeley DB version mismatch\n"
33505 "\theader: %s\n\tlibrary: %s\n",
33506 DB_VERSION_STRING, version);
33512 #if DB_VERSION_MAJOR > 2
33513 db_env_create( NULL, 0 );
33514 #elif DB_VERSION_MAJOR > 1
33515 db_appexit( NULL );
33517 (void) dbopen( NULL, 0, 0, 0, NULL);
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33526 (eval $ac_link) 2>conftest.er1
33528 grep -v '^ *+' conftest.er1 >conftest.err
33530 cat conftest.err >&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
33533 { ac_try='test -z "$ac_c_werror_flag"
33534 || test ! -s conftest.err'
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; } &&
33540 { ac_try='test -s conftest$ac_exeext'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33553 rm -f conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
33559 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33560 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33562 if test $ol_cv_db_db_4 = yes ; then
33563 ol_cv_lib_db=-ldb-4
33567 if test $ol_cv_lib_db = no ; then
33568 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33569 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33570 if test "${ol_cv_db_db4+set}" = set; then
33571 echo $ECHO_N "(cached) $ECHO_C" >&6
33576 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33578 cat >conftest.$ac_ext <<_ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33585 #ifdef HAVE_DB_185_H
33586 # include <db_185.h>
33591 #ifndef DB_VERSION_MAJOR
33592 # define DB_VERSION_MAJOR 1
33596 #define NULL ((void*)0)
33603 #if DB_VERSION_MAJOR > 1
33606 int major, minor, patch;
33608 version = db_version( &major, &minor, &patch );
33610 if( major != DB_VERSION_MAJOR ||
33611 minor < DB_VERSION_MINOR )
33613 printf("Berkeley DB version mismatch\n"
33614 "\theader: %s\n\tlibrary: %s\n",
33615 DB_VERSION_STRING, version);
33621 #if DB_VERSION_MAJOR > 2
33622 db_env_create( NULL, 0 );
33623 #elif DB_VERSION_MAJOR > 1
33624 db_appexit( NULL );
33626 (void) dbopen( NULL, 0, 0, 0, NULL);
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635 (eval $ac_link) 2>conftest.er1
33637 grep -v '^ *+' conftest.er1 >conftest.err
33639 cat conftest.err >&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
33642 { ac_try='test -z "$ac_c_werror_flag"
33643 || test ! -s conftest.err'
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; } &&
33649 { ac_try='test -s conftest$ac_exeext'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; }; then
33657 echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33662 rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
33668 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33669 echo "${ECHO_T}$ol_cv_db_db4" >&6
33671 if test $ol_cv_db_db4 = yes ; then
33676 if test $ol_cv_lib_db = no ; then
33677 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33678 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33679 if test "${ol_cv_db_db+set}" = set; then
33680 echo $ECHO_N "(cached) $ECHO_C" >&6
33685 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33687 cat >conftest.$ac_ext <<_ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h. */
33694 #ifdef HAVE_DB_185_H
33695 # include <db_185.h>
33700 #ifndef DB_VERSION_MAJOR
33701 # define DB_VERSION_MAJOR 1
33705 #define NULL ((void*)0)
33712 #if DB_VERSION_MAJOR > 1
33715 int major, minor, patch;
33717 version = db_version( &major, &minor, &patch );
33719 if( major != DB_VERSION_MAJOR ||
33720 minor < DB_VERSION_MINOR )
33722 printf("Berkeley DB version mismatch\n"
33723 "\theader: %s\n\tlibrary: %s\n",
33724 DB_VERSION_STRING, version);
33730 #if DB_VERSION_MAJOR > 2
33731 db_env_create( NULL, 0 );
33732 #elif DB_VERSION_MAJOR > 1
33733 db_appexit( NULL );
33735 (void) dbopen( NULL, 0, 0, 0, NULL);
33742 rm -f conftest.$ac_objext conftest$ac_exeext
33743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33744 (eval $ac_link) 2>conftest.er1
33746 grep -v '^ *+' conftest.er1 >conftest.err
33748 cat conftest.err >&5
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); } &&
33751 { ac_try='test -z "$ac_c_werror_flag"
33752 || test ! -s conftest.err'
33753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33754 (eval $ac_try) 2>&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest$ac_exeext'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; }; then
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33771 rm -f conftest.err conftest.$ac_objext \
33772 conftest$ac_exeext conftest.$ac_ext
33777 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33778 echo "${ECHO_T}$ol_cv_db_db" >&6
33780 if test $ol_cv_db_db = yes ; then
33786 elif test $ol_cv_bdb_major = 3 ; then
33787 if test $ol_cv_lib_db = no ; then
33788 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33789 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33790 if test "${ol_cv_db_db3+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33798 cat >conftest.$ac_ext <<_ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h. */
33805 #ifdef HAVE_DB_185_H
33806 # include <db_185.h>
33811 #ifndef DB_VERSION_MAJOR
33812 # define DB_VERSION_MAJOR 1
33816 #define NULL ((void*)0)
33823 #if DB_VERSION_MAJOR > 1
33826 int major, minor, patch;
33828 version = db_version( &major, &minor, &patch );
33830 if( major != DB_VERSION_MAJOR ||
33831 minor < DB_VERSION_MINOR )
33833 printf("Berkeley DB version mismatch\n"
33834 "\theader: %s\n\tlibrary: %s\n",
33835 DB_VERSION_STRING, version);
33841 #if DB_VERSION_MAJOR > 2
33842 db_env_create( NULL, 0 );
33843 #elif DB_VERSION_MAJOR > 1
33844 db_appexit( NULL );
33846 (void) dbopen( NULL, 0, 0, 0, NULL);
33853 rm -f conftest.$ac_objext conftest$ac_exeext
33854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33855 (eval $ac_link) 2>conftest.er1
33857 grep -v '^ *+' conftest.er1 >conftest.err
33859 cat conftest.err >&5
33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861 (exit $ac_status); } &&
33862 { ac_try='test -z "$ac_c_werror_flag"
33863 || test ! -s conftest.err'
33864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865 (eval $ac_try) 2>&5
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; } &&
33869 { ac_try='test -s conftest$ac_exeext'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33877 echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33882 rm -f conftest.err conftest.$ac_objext \
33883 conftest$ac_exeext conftest.$ac_ext
33888 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33889 echo "${ECHO_T}$ol_cv_db_db3" >&6
33891 if test $ol_cv_db_db3 = yes ; then
33896 if test $ol_cv_lib_db = no ; then
33897 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33898 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33899 if test "${ol_cv_db_db_3+set}" = set; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
33905 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33907 cat >conftest.$ac_ext <<_ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h. */
33914 #ifdef HAVE_DB_185_H
33915 # include <db_185.h>
33920 #ifndef DB_VERSION_MAJOR
33921 # define DB_VERSION_MAJOR 1
33925 #define NULL ((void*)0)
33932 #if DB_VERSION_MAJOR > 1
33935 int major, minor, patch;
33937 version = db_version( &major, &minor, &patch );
33939 if( major != DB_VERSION_MAJOR ||
33940 minor < DB_VERSION_MINOR )
33942 printf("Berkeley DB version mismatch\n"
33943 "\theader: %s\n\tlibrary: %s\n",
33944 DB_VERSION_STRING, version);
33950 #if DB_VERSION_MAJOR > 2
33951 db_env_create( NULL, 0 );
33952 #elif DB_VERSION_MAJOR > 1
33953 db_appexit( NULL );
33955 (void) dbopen( NULL, 0, 0, 0, NULL);
33962 rm -f conftest.$ac_objext conftest$ac_exeext
33963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33964 (eval $ac_link) 2>conftest.er1
33966 grep -v '^ *+' conftest.er1 >conftest.err
33968 cat conftest.err >&5
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); } &&
33971 { ac_try='test -z "$ac_c_werror_flag"
33972 || test ! -s conftest.err'
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; } &&
33978 { ac_try='test -s conftest$ac_exeext'
33979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980 (eval $ac_try) 2>&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); }; }; then
33986 echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33991 rm -f conftest.err conftest.$ac_objext \
33992 conftest$ac_exeext conftest.$ac_ext
33997 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33998 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34000 if test $ol_cv_db_db_3 = yes ; then
34001 ol_cv_lib_db=-ldb-3
34006 elif test $ol_cv_bdb_major = 2 ; then
34007 if test $ol_cv_lib_db = no ; then
34008 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34009 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34010 if test "${ol_cv_db_db2+set}" = set; then
34011 echo $ECHO_N "(cached) $ECHO_C" >&6
34016 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34018 cat >conftest.$ac_ext <<_ACEOF
34021 cat confdefs.h >>conftest.$ac_ext
34022 cat >>conftest.$ac_ext <<_ACEOF
34023 /* end confdefs.h. */
34025 #ifdef HAVE_DB_185_H
34026 # include <db_185.h>
34031 #ifndef DB_VERSION_MAJOR
34032 # define DB_VERSION_MAJOR 1
34036 #define NULL ((void*)0)
34043 #if DB_VERSION_MAJOR > 1
34046 int major, minor, patch;
34048 version = db_version( &major, &minor, &patch );
34050 if( major != DB_VERSION_MAJOR ||
34051 minor < DB_VERSION_MINOR )
34053 printf("Berkeley DB version mismatch\n"
34054 "\theader: %s\n\tlibrary: %s\n",
34055 DB_VERSION_STRING, version);
34061 #if DB_VERSION_MAJOR > 2
34062 db_env_create( NULL, 0 );
34063 #elif DB_VERSION_MAJOR > 1
34064 db_appexit( NULL );
34066 (void) dbopen( NULL, 0, 0, 0, NULL);
34073 rm -f conftest.$ac_objext conftest$ac_exeext
34074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34075 (eval $ac_link) 2>conftest.er1
34077 grep -v '^ *+' conftest.er1 >conftest.err
34079 cat conftest.err >&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); } &&
34082 { ac_try='test -z "$ac_c_werror_flag"
34083 || test ! -s conftest.err'
34084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085 (eval $ac_try) 2>&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); }; } &&
34089 { ac_try='test -s conftest$ac_exeext'
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; }; then
34097 echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34102 rm -f conftest.err conftest.$ac_objext \
34103 conftest$ac_exeext conftest.$ac_ext
34108 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34109 echo "${ECHO_T}$ol_cv_db_db2" >&6
34111 if test $ol_cv_db_db2 = yes ; then
34116 if test $ol_cv_lib_db = no ; then
34117 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34118 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34119 if test "${ol_cv_db_db_2+set}" = set; then
34120 echo $ECHO_N "(cached) $ECHO_C" >&6
34125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34127 cat >conftest.$ac_ext <<_ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h. */
34134 #ifdef HAVE_DB_185_H
34135 # include <db_185.h>
34140 #ifndef DB_VERSION_MAJOR
34141 # define DB_VERSION_MAJOR 1
34145 #define NULL ((void*)0)
34152 #if DB_VERSION_MAJOR > 1
34155 int major, minor, patch;
34157 version = db_version( &major, &minor, &patch );
34159 if( major != DB_VERSION_MAJOR ||
34160 minor < DB_VERSION_MINOR )
34162 printf("Berkeley DB version mismatch\n"
34163 "\theader: %s\n\tlibrary: %s\n",
34164 DB_VERSION_STRING, version);
34170 #if DB_VERSION_MAJOR > 2
34171 db_env_create( NULL, 0 );
34172 #elif DB_VERSION_MAJOR > 1
34173 db_appexit( NULL );
34175 (void) dbopen( NULL, 0, 0, 0, NULL);
34182 rm -f conftest.$ac_objext conftest$ac_exeext
34183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34184 (eval $ac_link) 2>conftest.er1
34186 grep -v '^ *+' conftest.er1 >conftest.err
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } &&
34191 { ac_try='test -z "$ac_c_werror_flag"
34192 || test ! -s conftest.err'
34193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194 (eval $ac_try) 2>&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; } &&
34198 { ac_try='test -s conftest$ac_exeext'
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; }; then
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34211 rm -f conftest.err conftest.$ac_objext \
34212 conftest$ac_exeext conftest.$ac_ext
34217 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34218 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34220 if test $ol_cv_db_db_2 = yes ; then
34221 ol_cv_lib_db=-ldb-2
34226 elif test $ol_cv_bdb_major = 1 ; then
34227 if test $ol_cv_lib_db = no ; then
34228 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34229 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34230 if test "${ol_cv_db_db1+set}" = set; then
34231 echo $ECHO_N "(cached) $ECHO_C" >&6
34236 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34238 cat >conftest.$ac_ext <<_ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h. */
34245 #ifdef HAVE_DB_185_H
34246 # include <db_185.h>
34251 #ifndef DB_VERSION_MAJOR
34252 # define DB_VERSION_MAJOR 1
34256 #define NULL ((void*)0)
34263 #if DB_VERSION_MAJOR > 1
34266 int major, minor, patch;
34268 version = db_version( &major, &minor, &patch );
34270 if( major != DB_VERSION_MAJOR ||
34271 minor < DB_VERSION_MINOR )
34273 printf("Berkeley DB version mismatch\n"
34274 "\theader: %s\n\tlibrary: %s\n",
34275 DB_VERSION_STRING, version);
34281 #if DB_VERSION_MAJOR > 2
34282 db_env_create( NULL, 0 );
34283 #elif DB_VERSION_MAJOR > 1
34284 db_appexit( NULL );
34286 (void) dbopen( NULL, 0, 0, 0, NULL);
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34295 (eval $ac_link) 2>conftest.er1
34297 grep -v '^ *+' conftest.er1 >conftest.err
34299 cat conftest.err >&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); } &&
34302 { ac_try='test -z "$ac_c_werror_flag"
34303 || test ! -s conftest.err'
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; } &&
34309 { ac_try='test -s conftest$ac_exeext'
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; }; then
34317 echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34322 rm -f conftest.err conftest.$ac_objext \
34323 conftest$ac_exeext conftest.$ac_ext
34328 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34329 echo "${ECHO_T}$ol_cv_db_db1" >&6
34331 if test $ol_cv_db_db1 = yes ; then
34336 if test $ol_cv_lib_db = no ; then
34337 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34338 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34339 if test "${ol_cv_db_db_1+set}" = set; then
34340 echo $ECHO_N "(cached) $ECHO_C" >&6
34345 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34347 cat >conftest.$ac_ext <<_ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h. */
34354 #ifdef HAVE_DB_185_H
34355 # include <db_185.h>
34360 #ifndef DB_VERSION_MAJOR
34361 # define DB_VERSION_MAJOR 1
34365 #define NULL ((void*)0)
34372 #if DB_VERSION_MAJOR > 1
34375 int major, minor, patch;
34377 version = db_version( &major, &minor, &patch );
34379 if( major != DB_VERSION_MAJOR ||
34380 minor < DB_VERSION_MINOR )
34382 printf("Berkeley DB version mismatch\n"
34383 "\theader: %s\n\tlibrary: %s\n",
34384 DB_VERSION_STRING, version);
34390 #if DB_VERSION_MAJOR > 2
34391 db_env_create( NULL, 0 );
34392 #elif DB_VERSION_MAJOR > 1
34393 db_appexit( NULL );
34395 (void) dbopen( NULL, 0, 0, 0, NULL);
34402 rm -f conftest.$ac_objext conftest$ac_exeext
34403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34404 (eval $ac_link) 2>conftest.er1
34406 grep -v '^ *+' conftest.er1 >conftest.err
34408 cat conftest.err >&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); } &&
34411 { ac_try='test -z "$ac_c_werror_flag"
34412 || test ! -s conftest.err'
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; } &&
34418 { ac_try='test -s conftest$ac_exeext'
34419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420 (eval $ac_try) 2>&5
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); }; }; then
34426 echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34431 rm -f conftest.err conftest.$ac_objext \
34432 conftest$ac_exeext conftest.$ac_ext
34437 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34438 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34440 if test $ol_cv_db_db_1 = yes ; then
34441 ol_cv_lib_db=-ldb-1
34446 if test $ol_cv_lib_db = no ; then
34447 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34448 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34449 if test "${ol_cv_db_none+set}" = set; then
34450 echo $ECHO_N "(cached) $ECHO_C" >&6
34455 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34457 cat >conftest.$ac_ext <<_ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h. */
34464 #ifdef HAVE_DB_185_H
34465 # include <db_185.h>
34470 #ifndef DB_VERSION_MAJOR
34471 # define DB_VERSION_MAJOR 1
34475 #define NULL ((void*)0)
34482 #if DB_VERSION_MAJOR > 1
34485 int major, minor, patch;
34487 version = db_version( &major, &minor, &patch );
34489 if( major != DB_VERSION_MAJOR ||
34490 minor < DB_VERSION_MINOR )
34492 printf("Berkeley DB version mismatch\n"
34493 "\theader: %s\n\tlibrary: %s\n",
34494 DB_VERSION_STRING, version);
34500 #if DB_VERSION_MAJOR > 2
34501 db_env_create( NULL, 0 );
34502 #elif DB_VERSION_MAJOR > 1
34503 db_appexit( NULL );
34505 (void) dbopen( NULL, 0, 0, 0, NULL);
34512 rm -f conftest.$ac_objext conftest$ac_exeext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34514 (eval $ac_link) 2>conftest.er1
34516 grep -v '^ *+' conftest.er1 >conftest.err
34518 cat conftest.err >&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } &&
34521 { ac_try='test -z "$ac_c_werror_flag"
34522 || test ! -s conftest.err'
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; } &&
34528 { ac_try='test -s conftest$ac_exeext'
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; }; then
34536 echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34541 rm -f conftest.err conftest.$ac_objext \
34542 conftest$ac_exeext conftest.$ac_ext
34547 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34548 echo "${ECHO_T}$ol_cv_db_none" >&6
34550 if test $ol_cv_db_none = yes ; then
34556 if test "$ol_cv_lib_db" != no ; then
34557 ol_cv_berkeley_db=yes
34558 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34559 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34560 if test "${ol_cv_berkeley_db_version+set}" = set; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34565 LIBS="$LTHREAD_LIBS $LIBS"
34566 if test $ol_cv_lib_db != yes ; then
34567 LIBS="$ol_cv_lib_db $LIBS"
34570 if test "$cross_compiling" = yes; then
34571 ol_cv_berkeley_db_version=cross
34573 cat >conftest.$ac_ext <<_ACEOF
34576 cat confdefs.h >>conftest.$ac_ext
34577 cat >>conftest.$ac_ext <<_ACEOF
34578 /* end confdefs.h. */
34580 #ifdef HAVE_DB_185_H
34585 #ifndef DB_VERSION_MAJOR
34586 # define DB_VERSION_MAJOR 1
34589 #define NULL ((void *)0)
34593 #if DB_VERSION_MAJOR > 1
34595 int major, minor, patch;
34597 version = db_version( &major, &minor, &patch );
34599 if( major != DB_VERSION_MAJOR ||
34600 minor != DB_VERSION_MINOR ||
34601 patch != DB_VERSION_PATCH )
34603 printf("Berkeley DB version mismatch\n"
34604 "\theader: %s\n\tlibrary: %s\n",
34605 DB_VERSION_STRING, version);
34613 rm -f conftest$ac_exeext
34614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34615 (eval $ac_link) 2>&5
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620 (eval $ac_try) 2>&5
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624 ol_cv_berkeley_db_version=yes
34626 echo "$as_me: program exited with status $ac_status" >&5
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34630 ( exit $ac_status )
34631 ol_cv_berkeley_db_version=no
34633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34639 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34640 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34642 if test $ol_cv_berkeley_db_version = no ; then
34643 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34644 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34645 { (exit 1); exit 1; }; }
34648 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34649 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34650 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34651 echo $ECHO_N "(cached) $ECHO_C" >&6
34655 LIBS="$LTHREAD_LIBS $LIBS"
34656 if test $ol_cv_lib_db != yes ; then
34657 LIBS="$ol_cv_lib_db $LIBS"
34660 if test "$cross_compiling" = yes; then
34661 ol_cv_berkeley_db_thread=cross
34663 cat >conftest.$ac_ext <<_ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h. */
34670 #ifdef HAVE_DB_185_H
34676 #define NULL ((void *)0)
34681 u_int32_t flags = DB_CREATE |
34687 #if DB_VERSION_MAJOR > 2
34688 DB_ENV *env = NULL;
34690 rc = db_env_create( &env, 0 );
34692 flags |= DB_INIT_MPOOL;
34693 #ifdef DB_MPOOL_PRIVATE
34694 flags |= DB_MPOOL_PRIVATE;
34698 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34702 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34703 rc = env->open( env, NULL, flags, 0 );
34705 rc = env->open( env, NULL, NULL, flags, 0 );
34709 rc = env->close( env, 0 );
34713 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34719 memset( &env, '\0', sizeof(env) );
34721 rc = db_appinit( NULL, NULL, &env, flags );
34724 db_appexit( &env );
34727 unlink("__db_mpool.share");
34728 unlink("__db_lock.share");
34734 rm -f conftest$ac_exeext
34735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34736 (eval $ac_link) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; }; then
34745 ol_cv_berkeley_db_thread=yes
34747 echo "$as_me: program exited with status $ac_status" >&5
34748 echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34751 ( exit $ac_status )
34752 ol_cv_berkeley_db_thread=no
34754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34760 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34761 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34763 if test $ol_cv_berkeley_db_thread != no ; then
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_BERKELEY_DB_THREAD 1
34776 if test $ol_cv_berkeley_db != no ; then
34778 cat >>confdefs.h <<\_ACEOF
34779 #define HAVE_BERKELEY_DB 1
34783 ol_link_ldbm=berkeley
34784 ol_enable_ldbm_api=berkeley
34786 if test $ol_enable_ldbm_type = hash ; then
34788 cat >>confdefs.h <<\_ACEOF
34789 #define LDBM_USE_DBHASH 1
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LDBM_USE_DBBTREE 1
34800 if test $ol_cv_lib_db != yes ; then
34801 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34807 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34808 if test $ol_link_ldbm != berkeley ; then
34809 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34810 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34811 { (exit 1); exit 1; }; }
34813 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34814 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34815 if test "${ol_cv_bdb_compat+set}" = set; then
34816 echo $ECHO_N "(cached) $ECHO_C" >&6
34819 cat >conftest.$ac_ext <<_ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h. */
34828 /* this check could be improved */
34829 #ifndef DB_VERSION_MAJOR
34830 # define DB_VERSION_MAJOR 1
34832 #ifndef DB_VERSION_MINOR
34833 # define DB_VERSION_MINOR 0
34836 /* require 4.2 or later */
34837 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34838 __db_version_compat
34842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34843 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34844 ol_cv_bdb_compat=yes
34846 ol_cv_bdb_compat=no
34851 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34852 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34855 if test $ol_cv_bdb_compat != yes ; then
34856 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34857 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34858 { (exit 1); exit 1; }; }
34863 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34864 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34865 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34866 ol_enable_ldbm_api=none
34869 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34870 echo "$as_me:$LINENO: checking for MDBM library" >&5
34871 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34872 if test "${ol_cv_lib_mdbm+set}" = set; then
34873 echo $ECHO_N "(cached) $ECHO_C" >&6
34876 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34877 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34878 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34881 cat >conftest.$ac_ext <<_ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h. */
34887 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34889 #define mdbm_set_chain innocuous_mdbm_set_chain
34891 /* System header to define __stub macros and hopefully few prototypes,
34892 which can conflict with char mdbm_set_chain (); below.
34893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34894 <limits.h> exists even on freestanding compilers. */
34897 # include <limits.h>
34899 # include <assert.h>
34902 #undef mdbm_set_chain
34904 /* Override any gcc2 internal prototype to avoid an error. */
34909 /* We use char because int might match the return type of a gcc2
34910 builtin and then its argument prototype would still apply. */
34911 char mdbm_set_chain ();
34912 /* The GNU C library defines this for functions which it implements
34913 to always fail with ENOSYS. Some functions are actually named
34914 something starting with __ and the normal name is an alias. */
34915 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34918 char (*f) () = mdbm_set_chain;
34927 return f != mdbm_set_chain;
34932 rm -f conftest.$ac_objext conftest$ac_exeext
34933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34934 (eval $ac_link) 2>conftest.er1
34936 grep -v '^ *+' conftest.er1 >conftest.err
34938 cat conftest.err >&5
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); } &&
34941 { ac_try='test -z "$ac_c_werror_flag"
34942 || test ! -s conftest.err'
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; } &&
34948 { ac_try='test -s conftest$ac_exeext'
34949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950 (eval $ac_try) 2>&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; }; then
34954 ac_cv_func_mdbm_set_chain=yes
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34959 ac_cv_func_mdbm_set_chain=no
34961 rm -f conftest.err conftest.$ac_objext \
34962 conftest$ac_exeext conftest.$ac_ext
34964 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34965 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34966 if test $ac_cv_func_mdbm_set_chain = yes; then
34970 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34971 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34972 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34975 ac_check_lib_save_LIBS=$LIBS
34976 LIBS="-lmdbm $LIBS"
34977 cat >conftest.$ac_ext <<_ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34984 /* Override any gcc2 internal prototype to avoid an error. */
34988 /* We use char because int might match the return type of a gcc2
34989 builtin and then its argument prototype would still apply. */
34990 char mdbm_set_chain ();
34999 rm -f conftest.$ac_objext conftest$ac_exeext
35000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35001 (eval $ac_link) 2>conftest.er1
35003 grep -v '^ *+' conftest.er1 >conftest.err
35005 cat conftest.err >&5
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); } &&
35008 { ac_try='test -z "$ac_c_werror_flag"
35009 || test ! -s conftest.err'
35010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011 (eval $ac_try) 2>&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); }; } &&
35015 { ac_try='test -s conftest$ac_exeext'
35016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017 (eval $ac_try) 2>&5
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); }; }; then
35021 ac_cv_lib_mdbm_mdbm_set_chain=yes
35023 echo "$as_me: failed program was:" >&5
35024 sed 's/^/| /' conftest.$ac_ext >&5
35026 ac_cv_lib_mdbm_mdbm_set_chain=no
35028 rm -f conftest.err conftest.$ac_objext \
35029 conftest$ac_exeext conftest.$ac_ext
35030 LIBS=$ac_check_lib_save_LIBS
35032 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35033 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35034 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35035 ol_cv_lib_mdbm=-lmdbm
35046 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35047 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35051 for ac_header in mdbm.h
35053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35055 echo "$as_me:$LINENO: checking for $ac_header" >&5
35056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35058 echo $ECHO_N "(cached) $ECHO_C" >&6
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35063 # Is the header compilable?
35064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35066 cat >conftest.$ac_ext <<_ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h. */
35072 $ac_includes_default
35073 #include <$ac_header>
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077 (eval $ac_compile) 2>conftest.er1
35079 grep -v '^ *+' conftest.er1 >conftest.err
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } &&
35084 { ac_try='test -z "$ac_c_werror_flag"
35085 || test ! -s conftest.err'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; } &&
35091 { ac_try='test -s conftest.$ac_objext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 ac_header_compiler=yes
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35102 ac_header_compiler=no
35104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35106 echo "${ECHO_T}$ac_header_compiler" >&6
35108 # Is the header present?
35109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35111 cat >conftest.$ac_ext <<_ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h. */
35117 #include <$ac_header>
35119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35122 grep -v '^ *+' conftest.er1 >conftest.err
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } >/dev/null; then
35127 if test -s conftest.err; then
35128 ac_cpp_err=$ac_c_preproc_warn_flag
35129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35136 if test -z "$ac_cpp_err"; then
35137 ac_header_preproc=yes
35139 echo "$as_me: failed program was:" >&5
35140 sed 's/^/| /' conftest.$ac_ext >&5
35142 ac_header_preproc=no
35144 rm -f conftest.err conftest.$ac_ext
35145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35146 echo "${ECHO_T}$ac_header_preproc" >&6
35148 # So? What about this header?
35149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35155 ac_header_preproc=yes
35158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35172 ## --------------------------------------------- ##
35173 ## Report this to <http://www.openldap.org/its/> ##
35174 ## --------------------------------------------- ##
35177 sed "s/^/$as_me: WARNING: /" >&2
35180 echo "$as_me:$LINENO: checking for $ac_header" >&5
35181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35183 echo $ECHO_N "(cached) $ECHO_C" >&6
35185 eval "$as_ac_Header=\$ac_header_preproc"
35187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35192 cat >>confdefs.h <<_ACEOF
35193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35200 echo "$as_me:$LINENO: checking for db" >&5
35201 echo $ECHO_N "checking for db... $ECHO_C" >&6
35202 if test "${ol_cv_mdbm+set}" = set; then
35203 echo $ECHO_N "(cached) $ECHO_C" >&6
35206 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35213 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35214 echo "${ECHO_T}$ol_cv_mdbm" >&6
35215 if test $ol_cv_mdbm = yes ; then
35217 cat >>confdefs.h <<\_ACEOF
35218 #define HAVE_MDBM 1
35224 if test $ol_cv_mdbm = yes ; then
35226 ol_enable_ldbm_api=mdbm
35227 if test $ol_cv_lib_mdbm != yes ; then
35228 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35233 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35234 echo "$as_me:$LINENO: checking for GDBM library" >&5
35235 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35236 if test "${ol_cv_lib_gdbm+set}" = set; then
35237 echo $ECHO_N "(cached) $ECHO_C" >&6
35240 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35241 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35242 if test "${ac_cv_func_gdbm_open+set}" = set; then
35243 echo $ECHO_N "(cached) $ECHO_C" >&6
35245 cat >conftest.$ac_ext <<_ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h. */
35251 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35253 #define gdbm_open innocuous_gdbm_open
35255 /* System header to define __stub macros and hopefully few prototypes,
35256 which can conflict with char gdbm_open (); below.
35257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35258 <limits.h> exists even on freestanding compilers. */
35261 # include <limits.h>
35263 # include <assert.h>
35268 /* Override any gcc2 internal prototype to avoid an error. */
35273 /* We use char because int might match the return type of a gcc2
35274 builtin and then its argument prototype would still apply. */
35276 /* The GNU C library defines this for functions which it implements
35277 to always fail with ENOSYS. Some functions are actually named
35278 something starting with __ and the normal name is an alias. */
35279 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35282 char (*f) () = gdbm_open;
35291 return f != gdbm_open;
35296 rm -f conftest.$ac_objext conftest$ac_exeext
35297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35298 (eval $ac_link) 2>conftest.er1
35300 grep -v '^ *+' conftest.er1 >conftest.err
35302 cat conftest.err >&5
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); } &&
35305 { ac_try='test -z "$ac_c_werror_flag"
35306 || test ! -s conftest.err'
35307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308 (eval $ac_try) 2>&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); }; } &&
35312 { ac_try='test -s conftest$ac_exeext'
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; }; then
35318 ac_cv_func_gdbm_open=yes
35320 echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35323 ac_cv_func_gdbm_open=no
35325 rm -f conftest.err conftest.$ac_objext \
35326 conftest$ac_exeext conftest.$ac_ext
35328 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35329 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35330 if test $ac_cv_func_gdbm_open = yes; then
35334 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35335 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35336 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35337 echo $ECHO_N "(cached) $ECHO_C" >&6
35339 ac_check_lib_save_LIBS=$LIBS
35340 LIBS="-lgdbm $LIBS"
35341 cat >conftest.$ac_ext <<_ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h. */
35348 /* Override any gcc2 internal prototype to avoid an error. */
35352 /* We use char because int might match the return type of a gcc2
35353 builtin and then its argument prototype would still apply. */
35363 rm -f conftest.$ac_objext conftest$ac_exeext
35364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35365 (eval $ac_link) 2>conftest.er1
35367 grep -v '^ *+' conftest.er1 >conftest.err
35369 cat conftest.err >&5
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); } &&
35372 { ac_try='test -z "$ac_c_werror_flag"
35373 || test ! -s conftest.err'
35374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35375 (eval $ac_try) 2>&5
35377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378 (exit $ac_status); }; } &&
35379 { ac_try='test -s conftest$ac_exeext'
35380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381 (eval $ac_try) 2>&5
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); }; }; then
35385 ac_cv_lib_gdbm_gdbm_open=yes
35387 echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35390 ac_cv_lib_gdbm_gdbm_open=no
35392 rm -f conftest.err conftest.$ac_objext \
35393 conftest$ac_exeext conftest.$ac_ext
35394 LIBS=$ac_check_lib_save_LIBS
35396 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35397 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35398 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35399 ol_cv_lib_gdbm=-lgdbm
35410 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35411 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35415 for ac_header in gdbm.h
35417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35419 echo "$as_me:$LINENO: checking for $ac_header" >&5
35420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35427 # Is the header compilable?
35428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35430 cat >conftest.$ac_ext <<_ACEOF
35433 cat confdefs.h >>conftest.$ac_ext
35434 cat >>conftest.$ac_ext <<_ACEOF
35435 /* end confdefs.h. */
35436 $ac_includes_default
35437 #include <$ac_header>
35439 rm -f conftest.$ac_objext
35440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35441 (eval $ac_compile) 2>conftest.er1
35443 grep -v '^ *+' conftest.er1 >conftest.err
35445 cat conftest.err >&5
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); } &&
35448 { ac_try='test -z "$ac_c_werror_flag"
35449 || test ! -s conftest.err'
35450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451 (eval $ac_try) 2>&5
35453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454 (exit $ac_status); }; } &&
35455 { ac_try='test -s conftest.$ac_objext'
35456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35457 (eval $ac_try) 2>&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); }; }; then
35461 ac_header_compiler=yes
35463 echo "$as_me: failed program was:" >&5
35464 sed 's/^/| /' conftest.$ac_ext >&5
35466 ac_header_compiler=no
35468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35470 echo "${ECHO_T}$ac_header_compiler" >&6
35472 # Is the header present?
35473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35475 cat >conftest.$ac_ext <<_ACEOF
35478 cat confdefs.h >>conftest.$ac_ext
35479 cat >>conftest.$ac_ext <<_ACEOF
35480 /* end confdefs.h. */
35481 #include <$ac_header>
35483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35486 grep -v '^ *+' conftest.er1 >conftest.err
35488 cat conftest.err >&5
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); } >/dev/null; then
35491 if test -s conftest.err; then
35492 ac_cpp_err=$ac_c_preproc_warn_flag
35493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35500 if test -z "$ac_cpp_err"; then
35501 ac_header_preproc=yes
35503 echo "$as_me: failed program was:" >&5
35504 sed 's/^/| /' conftest.$ac_ext >&5
35506 ac_header_preproc=no
35508 rm -f conftest.err conftest.$ac_ext
35509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35510 echo "${ECHO_T}$ac_header_preproc" >&6
35512 # So? What about this header?
35513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35519 ac_header_preproc=yes
35522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35536 ## --------------------------------------------- ##
35537 ## Report this to <http://www.openldap.org/its/> ##
35538 ## --------------------------------------------- ##
35541 sed "s/^/$as_me: WARNING: /" >&2
35544 echo "$as_me:$LINENO: checking for $ac_header" >&5
35545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35547 echo $ECHO_N "(cached) $ECHO_C" >&6
35549 eval "$as_ac_Header=\$ac_header_preproc"
35551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35556 cat >>confdefs.h <<_ACEOF
35557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35564 echo "$as_me:$LINENO: checking for db" >&5
35565 echo $ECHO_N "checking for db... $ECHO_C" >&6
35566 if test "${ol_cv_gdbm+set}" = set; then
35567 echo $ECHO_N "(cached) $ECHO_C" >&6
35570 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35577 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35578 echo "${ECHO_T}$ol_cv_gdbm" >&6
35579 if test $ol_cv_gdbm = yes ; then
35581 cat >>confdefs.h <<\_ACEOF
35582 #define HAVE_GDBM 1
35588 if test $ol_cv_gdbm = yes ; then
35590 ol_enable_ldbm_api=gdbm
35592 if test $ol_cv_lib_gdbm != yes ; then
35593 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35598 if test $ol_enable_ldbm_api = ndbm ; then
35599 echo "$as_me:$LINENO: checking for NDBM library" >&5
35600 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35601 if test "${ol_cv_lib_ndbm+set}" = set; then
35602 echo $ECHO_N "(cached) $ECHO_C" >&6
35605 echo "$as_me:$LINENO: checking for dbm_open" >&5
35606 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35607 if test "${ac_cv_func_dbm_open+set}" = set; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35610 cat >conftest.$ac_ext <<_ACEOF
35613 cat confdefs.h >>conftest.$ac_ext
35614 cat >>conftest.$ac_ext <<_ACEOF
35615 /* end confdefs.h. */
35616 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35618 #define dbm_open innocuous_dbm_open
35620 /* System header to define __stub macros and hopefully few prototypes,
35621 which can conflict with char dbm_open (); below.
35622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35623 <limits.h> exists even on freestanding compilers. */
35626 # include <limits.h>
35628 # include <assert.h>
35633 /* Override any gcc2 internal prototype to avoid an error. */
35638 /* We use char because int might match the return type of a gcc2
35639 builtin and then its argument prototype would still apply. */
35641 /* The GNU C library defines this for functions which it implements
35642 to always fail with ENOSYS. Some functions are actually named
35643 something starting with __ and the normal name is an alias. */
35644 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35647 char (*f) () = dbm_open;
35656 return f != dbm_open;
35661 rm -f conftest.$ac_objext conftest$ac_exeext
35662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35663 (eval $ac_link) 2>conftest.er1
35665 grep -v '^ *+' conftest.er1 >conftest.err
35667 cat conftest.err >&5
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } &&
35670 { ac_try='test -z "$ac_c_werror_flag"
35671 || test ! -s conftest.err'
35672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35673 (eval $ac_try) 2>&5
35675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676 (exit $ac_status); }; } &&
35677 { ac_try='test -s conftest$ac_exeext'
35678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679 (eval $ac_try) 2>&5
35681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 (exit $ac_status); }; }; then
35683 ac_cv_func_dbm_open=yes
35685 echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35688 ac_cv_func_dbm_open=no
35690 rm -f conftest.err conftest.$ac_objext \
35691 conftest$ac_exeext conftest.$ac_ext
35693 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35694 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35695 if test $ac_cv_func_dbm_open = yes; then
35699 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35700 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35701 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35702 echo $ECHO_N "(cached) $ECHO_C" >&6
35704 ac_check_lib_save_LIBS=$LIBS
35705 LIBS="-lndbm $LIBS"
35706 cat >conftest.$ac_ext <<_ACEOF
35709 cat confdefs.h >>conftest.$ac_ext
35710 cat >>conftest.$ac_ext <<_ACEOF
35711 /* end confdefs.h. */
35713 /* Override any gcc2 internal prototype to avoid an error. */
35717 /* We use char because int might match the return type of a gcc2
35718 builtin and then its argument prototype would still apply. */
35728 rm -f conftest.$ac_objext conftest$ac_exeext
35729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35730 (eval $ac_link) 2>conftest.er1
35732 grep -v '^ *+' conftest.er1 >conftest.err
35734 cat conftest.err >&5
35735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736 (exit $ac_status); } &&
35737 { ac_try='test -z "$ac_c_werror_flag"
35738 || test ! -s conftest.err'
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; } &&
35744 { ac_try='test -s conftest$ac_exeext'
35745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35746 (eval $ac_try) 2>&5
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); }; }; then
35750 ac_cv_lib_ndbm_dbm_open=yes
35752 echo "$as_me: failed program was:" >&5
35753 sed 's/^/| /' conftest.$ac_ext >&5
35755 ac_cv_lib_ndbm_dbm_open=no
35757 rm -f conftest.err conftest.$ac_objext \
35758 conftest$ac_exeext conftest.$ac_ext
35759 LIBS=$ac_check_lib_save_LIBS
35761 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35762 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35763 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35764 ol_cv_lib_ndbm=-lndbm
35767 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35768 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35769 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35770 echo $ECHO_N "(cached) $ECHO_C" >&6
35772 ac_check_lib_save_LIBS=$LIBS
35774 cat >conftest.$ac_ext <<_ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h. */
35781 /* Override any gcc2 internal prototype to avoid an error. */
35785 /* We use char because int might match the return type of a gcc2
35786 builtin and then its argument prototype would still apply. */
35796 rm -f conftest.$ac_objext conftest$ac_exeext
35797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35798 (eval $ac_link) 2>conftest.er1
35800 grep -v '^ *+' conftest.er1 >conftest.err
35802 cat conftest.err >&5
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } &&
35805 { ac_try='test -z "$ac_c_werror_flag"
35806 || test ! -s conftest.err'
35807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35808 (eval $ac_try) 2>&5
35810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811 (exit $ac_status); }; } &&
35812 { ac_try='test -s conftest$ac_exeext'
35813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814 (eval $ac_try) 2>&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); }; }; then
35818 ac_cv_lib_dbm_dbm_open=yes
35820 echo "$as_me: failed program was:" >&5
35821 sed 's/^/| /' conftest.$ac_ext >&5
35823 ac_cv_lib_dbm_dbm_open=no
35825 rm -f conftest.err conftest.$ac_objext \
35826 conftest$ac_exeext conftest.$ac_ext
35827 LIBS=$ac_check_lib_save_LIBS
35829 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35830 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35831 if test $ac_cv_lib_dbm_dbm_open = yes; then
35832 ol_cv_lib_ndbm=-ldbm
35845 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35846 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35850 for ac_header in ndbm.h
35852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35854 echo "$as_me:$LINENO: checking for $ac_header" >&5
35855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35857 echo $ECHO_N "(cached) $ECHO_C" >&6
35859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35862 # Is the header compilable?
35863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35865 cat >conftest.$ac_ext <<_ACEOF
35868 cat confdefs.h >>conftest.$ac_ext
35869 cat >>conftest.$ac_ext <<_ACEOF
35870 /* end confdefs.h. */
35871 $ac_includes_default
35872 #include <$ac_header>
35874 rm -f conftest.$ac_objext
35875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35876 (eval $ac_compile) 2>conftest.er1
35878 grep -v '^ *+' conftest.er1 >conftest.err
35880 cat conftest.err >&5
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); } &&
35883 { ac_try='test -z "$ac_c_werror_flag"
35884 || test ! -s conftest.err'
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; } &&
35890 { ac_try='test -s conftest.$ac_objext'
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; }; then
35896 ac_header_compiler=yes
35898 echo "$as_me: failed program was:" >&5
35899 sed 's/^/| /' conftest.$ac_ext >&5
35901 ac_header_compiler=no
35903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35905 echo "${ECHO_T}$ac_header_compiler" >&6
35907 # Is the header present?
35908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35910 cat >conftest.$ac_ext <<_ACEOF
35913 cat confdefs.h >>conftest.$ac_ext
35914 cat >>conftest.$ac_ext <<_ACEOF
35915 /* end confdefs.h. */
35916 #include <$ac_header>
35918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35921 grep -v '^ *+' conftest.er1 >conftest.err
35923 cat conftest.err >&5
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } >/dev/null; then
35926 if test -s conftest.err; then
35927 ac_cpp_err=$ac_c_preproc_warn_flag
35928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35935 if test -z "$ac_cpp_err"; then
35936 ac_header_preproc=yes
35938 echo "$as_me: failed program was:" >&5
35939 sed 's/^/| /' conftest.$ac_ext >&5
35941 ac_header_preproc=no
35943 rm -f conftest.err conftest.$ac_ext
35944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35945 echo "${ECHO_T}$ac_header_preproc" >&6
35947 # So? What about this header?
35948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35954 ac_header_preproc=yes
35957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35971 ## --------------------------------------------- ##
35972 ## Report this to <http://www.openldap.org/its/> ##
35973 ## --------------------------------------------- ##
35976 sed "s/^/$as_me: WARNING: /" >&2
35979 echo "$as_me:$LINENO: checking for $ac_header" >&5
35980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35984 eval "$as_ac_Header=\$ac_header_preproc"
35986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35991 cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35999 echo "$as_me:$LINENO: checking for db" >&5
36000 echo $ECHO_N "checking for db... $ECHO_C" >&6
36001 if test "${ol_cv_ndbm+set}" = set; then
36002 echo $ECHO_N "(cached) $ECHO_C" >&6
36005 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36012 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36013 echo "${ECHO_T}$ol_cv_ndbm" >&6
36014 if test $ol_cv_ndbm = yes ; then
36016 cat >>confdefs.h <<\_ACEOF
36017 #define HAVE_NDBM 1
36023 if test $ol_cv_ndbm = yes ; then
36025 ol_enable_ldbm_api=ndbm
36027 if test $ol_cv_lib_ndbm != yes ; then
36028 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36033 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36034 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36035 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36036 { (exit 1); exit 1; }; }
36039 if test $ol_enable_bdb = yes ||
36040 test $ol_enable_hdb = yes ||
36041 test $ol_enable_ldbm = yes ; then
36042 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36046 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36047 BUILD_LIBS_DYNAMIC=shared
36049 cat >>confdefs.h <<\_ACEOF
36050 #define LDAP_LIBS_DYNAMIC 1
36055 BUILD_LIBS_DYNAMIC=static
36059 if test $ol_enable_wrappers != no ; then
36061 for ac_header in tcpd.h
36063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36065 echo "$as_me:$LINENO: checking for $ac_header" >&5
36066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36068 echo $ECHO_N "(cached) $ECHO_C" >&6
36070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36073 # Is the header compilable?
36074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36076 cat >conftest.$ac_ext <<_ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h. */
36082 $ac_includes_default
36083 #include <$ac_header>
36085 rm -f conftest.$ac_objext
36086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36087 (eval $ac_compile) 2>conftest.er1
36089 grep -v '^ *+' conftest.er1 >conftest.err
36091 cat conftest.err >&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); } &&
36094 { ac_try='test -z "$ac_c_werror_flag"
36095 || test ! -s conftest.err'
36096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36097 (eval $ac_try) 2>&5
36099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100 (exit $ac_status); }; } &&
36101 { ac_try='test -s conftest.$ac_objext'
36102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103 (eval $ac_try) 2>&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); }; }; then
36107 ac_header_compiler=yes
36109 echo "$as_me: failed program was:" >&5
36110 sed 's/^/| /' conftest.$ac_ext >&5
36112 ac_header_compiler=no
36114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36116 echo "${ECHO_T}$ac_header_compiler" >&6
36118 # Is the header present?
36119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36121 cat >conftest.$ac_ext <<_ACEOF
36124 cat confdefs.h >>conftest.$ac_ext
36125 cat >>conftest.$ac_ext <<_ACEOF
36126 /* end confdefs.h. */
36127 #include <$ac_header>
36129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36132 grep -v '^ *+' conftest.er1 >conftest.err
36134 cat conftest.err >&5
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); } >/dev/null; then
36137 if test -s conftest.err; then
36138 ac_cpp_err=$ac_c_preproc_warn_flag
36139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36146 if test -z "$ac_cpp_err"; then
36147 ac_header_preproc=yes
36149 echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36152 ac_header_preproc=no
36154 rm -f conftest.err conftest.$ac_ext
36155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36156 echo "${ECHO_T}$ac_header_preproc" >&6
36158 # So? What about this header?
36159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36165 ac_header_preproc=yes
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36182 ## --------------------------------------------- ##
36183 ## Report this to <http://www.openldap.org/its/> ##
36184 ## --------------------------------------------- ##
36187 sed "s/^/$as_me: WARNING: /" >&2
36190 echo "$as_me:$LINENO: checking for $ac_header" >&5
36191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36193 echo $ECHO_N "(cached) $ECHO_C" >&6
36195 eval "$as_ac_Header=\$ac_header_preproc"
36197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36202 cat >>confdefs.h <<_ACEOF
36203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36206 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36207 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36209 LIBS="$LIBS -lwrap"
36210 cat >conftest.$ac_ext <<_ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h. */
36218 int allow_severity = 0;
36219 int deny_severity = 0;
36221 struct request_info *req;
36233 rm -f conftest.$ac_objext conftest$ac_exeext
36234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36235 (eval $ac_link) 2>conftest.er1
36237 grep -v '^ *+' conftest.er1 >conftest.err
36239 cat conftest.err >&5
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } &&
36242 { ac_try='test -z "$ac_c_werror_flag"
36243 || test ! -s conftest.err'
36244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245 (eval $ac_try) 2>&5
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); }; } &&
36249 { ac_try='test -s conftest$ac_exeext'
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; }; then
36255 echo "$as_me:$LINENO: result: -lwrap" >&5
36256 echo "${ECHO_T}-lwrap" >&6
36260 echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36265 cat >conftest.$ac_ext <<_ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36273 int allow_severity = 0;
36274 int deny_severity = 0;
36276 struct request_info *req;
36288 rm -f conftest.$ac_objext conftest$ac_exeext
36289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36290 (eval $ac_link) 2>conftest.er1
36292 grep -v '^ *+' conftest.er1 >conftest.err
36294 cat conftest.err >&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); } &&
36297 { ac_try='test -z "$ac_c_werror_flag"
36298 || test ! -s conftest.err'
36299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36300 (eval $ac_try) 2>&5
36302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303 (exit $ac_status); }; } &&
36304 { ac_try='test -s conftest$ac_exeext'
36305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306 (eval $ac_try) 2>&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); }; }; then
36310 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36311 echo "${ECHO_T}-lwrap -lnsl" >&6
36313 LIBS="$save_LIBS -lnsl"
36315 echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36319 echo "$as_me:$LINENO: result: no" >&5
36320 echo "${ECHO_T}no" >&6
36324 rm -f conftest.err conftest.$ac_objext \
36325 conftest$ac_exeext conftest.$ac_ext
36327 rm -f conftest.err conftest.$ac_objext \
36328 conftest$ac_exeext conftest.$ac_ext
36336 if test $have_wrappers = yes ; then
36338 cat >>confdefs.h <<\_ACEOF
36339 #define HAVE_TCPD 1
36343 elif test $ol_enable_wrappers = yes ; then
36344 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36345 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36346 { (exit 1); exit 1; }; }
36348 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36349 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36354 if test $ol_enable_syslog != no ; then
36355 echo "$as_me:$LINENO: checking for openlog" >&5
36356 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36357 if test "${ac_cv_func_openlog+set}" = set; then
36358 echo $ECHO_N "(cached) $ECHO_C" >&6
36360 cat >conftest.$ac_ext <<_ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h. */
36366 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36368 #define openlog innocuous_openlog
36370 /* System header to define __stub macros and hopefully few prototypes,
36371 which can conflict with char openlog (); below.
36372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36373 <limits.h> exists even on freestanding compilers. */
36376 # include <limits.h>
36378 # include <assert.h>
36383 /* Override any gcc2 internal prototype to avoid an error. */
36388 /* We use char because int might match the return type of a gcc2
36389 builtin and then its argument prototype would still apply. */
36391 /* The GNU C library defines this for functions which it implements
36392 to always fail with ENOSYS. Some functions are actually named
36393 something starting with __ and the normal name is an alias. */
36394 #if defined (__stub_openlog) || defined (__stub___openlog)
36397 char (*f) () = openlog;
36406 return f != openlog;
36411 rm -f conftest.$ac_objext conftest$ac_exeext
36412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36413 (eval $ac_link) 2>conftest.er1
36415 grep -v '^ *+' conftest.er1 >conftest.err
36417 cat conftest.err >&5
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } &&
36420 { ac_try='test -z "$ac_c_werror_flag"
36421 || test ! -s conftest.err'
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; } &&
36427 { ac_try='test -s conftest$ac_exeext'
36428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429 (eval $ac_try) 2>&5
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); }; }; then
36433 ac_cv_func_openlog=yes
36435 echo "$as_me: failed program was:" >&5
36436 sed 's/^/| /' conftest.$ac_ext >&5
36438 ac_cv_func_openlog=no
36440 rm -f conftest.err conftest.$ac_objext \
36441 conftest$ac_exeext conftest.$ac_ext
36443 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36444 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36446 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36447 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36448 echo "$as_me: error: could not find syslog" >&2;}
36449 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36451 ol_enable_syslog=$ac_cv_func_openlog
36455 if test $ol_enable_sql != no ; then
36458 for ac_header in sql.h sqlext.h
36460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36462 echo "$as_me:$LINENO: checking for $ac_header" >&5
36463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36465 echo $ECHO_N "(cached) $ECHO_C" >&6
36467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36470 # Is the header compilable?
36471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36473 cat >conftest.$ac_ext <<_ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36479 $ac_includes_default
36480 #include <$ac_header>
36482 rm -f conftest.$ac_objext
36483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36484 (eval $ac_compile) 2>conftest.er1
36486 grep -v '^ *+' conftest.er1 >conftest.err
36488 cat conftest.err >&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); } &&
36491 { ac_try='test -z "$ac_c_werror_flag"
36492 || test ! -s conftest.err'
36493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36494 (eval $ac_try) 2>&5
36496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497 (exit $ac_status); }; } &&
36498 { ac_try='test -s conftest.$ac_objext'
36499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36500 (eval $ac_try) 2>&5
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); }; }; then
36504 ac_header_compiler=yes
36506 echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36509 ac_header_compiler=no
36511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36513 echo "${ECHO_T}$ac_header_compiler" >&6
36515 # Is the header present?
36516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36518 cat >conftest.$ac_ext <<_ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h. */
36524 #include <$ac_header>
36526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36529 grep -v '^ *+' conftest.er1 >conftest.err
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } >/dev/null; then
36534 if test -s conftest.err; then
36535 ac_cpp_err=$ac_c_preproc_warn_flag
36536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36543 if test -z "$ac_cpp_err"; then
36544 ac_header_preproc=yes
36546 echo "$as_me: failed program was:" >&5
36547 sed 's/^/| /' conftest.$ac_ext >&5
36549 ac_header_preproc=no
36551 rm -f conftest.err conftest.$ac_ext
36552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36553 echo "${ECHO_T}$ac_header_preproc" >&6
36555 # So? What about this header?
36556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36562 ac_header_preproc=yes
36565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36579 ## --------------------------------------------- ##
36580 ## Report this to <http://www.openldap.org/its/> ##
36581 ## --------------------------------------------- ##
36584 sed "s/^/$as_me: WARNING: /" >&2
36587 echo "$as_me:$LINENO: checking for $ac_header" >&5
36588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36590 echo $ECHO_N "(cached) $ECHO_C" >&6
36592 eval "$as_ac_Header=\$ac_header_preproc"
36594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36599 cat >>confdefs.h <<_ACEOF
36600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36605 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36606 echo "$as_me: error: could not locate SQL headers" >&2;}
36607 { (exit 1); exit 1; }; }
36615 LIBS="$LTHREAD_LIBS"
36617 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36618 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36619 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36620 echo $ECHO_N "(cached) $ECHO_C" >&6
36622 ac_check_lib_save_LIBS=$LIBS
36623 LIBS="-liodbc $LIBS"
36624 cat >conftest.$ac_ext <<_ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h. */
36631 /* Override any gcc2 internal prototype to avoid an error. */
36635 /* We use char because int might match the return type of a gcc2
36636 builtin and then its argument prototype would still apply. */
36637 char SQLDriverConnect ();
36641 SQLDriverConnect ();
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36648 (eval $ac_link) 2>conftest.er1
36650 grep -v '^ *+' conftest.er1 >conftest.err
36652 cat conftest.err >&5
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); } &&
36655 { ac_try='test -z "$ac_c_werror_flag"
36656 || test ! -s conftest.err'
36657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658 (eval $ac_try) 2>&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); }; } &&
36662 { ac_try='test -s conftest$ac_exeext'
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; }; then
36668 ac_cv_lib_iodbc_SQLDriverConnect=yes
36670 echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36673 ac_cv_lib_iodbc_SQLDriverConnect=no
36675 rm -f conftest.err conftest.$ac_objext \
36676 conftest$ac_exeext conftest.$ac_ext
36677 LIBS=$ac_check_lib_save_LIBS
36679 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36680 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36681 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36687 if test $have_iodbc = yes ; then
36688 ol_link_sql="-liodbc"
36690 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36691 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36692 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36695 ac_check_lib_save_LIBS=$LIBS
36696 LIBS="-lodbc $LIBS"
36697 cat >conftest.$ac_ext <<_ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h. */
36704 /* Override any gcc2 internal prototype to avoid an error. */
36708 /* We use char because int might match the return type of a gcc2
36709 builtin and then its argument prototype would still apply. */
36710 char SQLDriverConnect ();
36714 SQLDriverConnect ();
36719 rm -f conftest.$ac_objext conftest$ac_exeext
36720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721 (eval $ac_link) 2>conftest.er1
36723 grep -v '^ *+' conftest.er1 >conftest.err
36725 cat conftest.err >&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); } &&
36728 { ac_try='test -z "$ac_c_werror_flag"
36729 || test ! -s conftest.err'
36730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36731 (eval $ac_try) 2>&5
36733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734 (exit $ac_status); }; } &&
36735 { ac_try='test -s conftest$ac_exeext'
36736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737 (eval $ac_try) 2>&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); }; }; then
36741 ac_cv_lib_odbc_SQLDriverConnect=yes
36743 echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36746 ac_cv_lib_odbc_SQLDriverConnect=no
36748 rm -f conftest.err conftest.$ac_objext \
36749 conftest$ac_exeext conftest.$ac_ext
36750 LIBS=$ac_check_lib_save_LIBS
36752 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36753 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36754 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36760 if test $have_odbc = yes ; then
36761 ol_link_sql="-lodbc"
36767 if test $ol_link_sql != no ; then
36768 SLAPD_SQL_LIBS="$ol_link_sql"
36770 elif test $ol_enable_sql != auto ; then
36771 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36772 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36773 { (exit 1); exit 1; }; }
36779 for ac_header in unicode/utypes.h
36781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36783 echo "$as_me:$LINENO: checking for $ac_header" >&5
36784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36786 echo $ECHO_N "(cached) $ECHO_C" >&6
36788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36791 # Is the header compilable?
36792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36794 cat >conftest.$ac_ext <<_ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h. */
36800 $ac_includes_default
36801 #include <$ac_header>
36803 rm -f conftest.$ac_objext
36804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36805 (eval $ac_compile) 2>conftest.er1
36807 grep -v '^ *+' conftest.er1 >conftest.err
36809 cat conftest.err >&5
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); } &&
36812 { ac_try='test -z "$ac_c_werror_flag"
36813 || test ! -s conftest.err'
36814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36815 (eval $ac_try) 2>&5
36817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818 (exit $ac_status); }; } &&
36819 { ac_try='test -s conftest.$ac_objext'
36820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821 (eval $ac_try) 2>&5
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); }; }; then
36825 ac_header_compiler=yes
36827 echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36830 ac_header_compiler=no
36832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36834 echo "${ECHO_T}$ac_header_compiler" >&6
36836 # Is the header present?
36837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36839 cat >conftest.$ac_ext <<_ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h. */
36845 #include <$ac_header>
36847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36850 grep -v '^ *+' conftest.er1 >conftest.err
36852 cat conftest.err >&5
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); } >/dev/null; then
36855 if test -s conftest.err; then
36856 ac_cpp_err=$ac_c_preproc_warn_flag
36857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36864 if test -z "$ac_cpp_err"; then
36865 ac_header_preproc=yes
36867 echo "$as_me: failed program was:" >&5
36868 sed 's/^/| /' conftest.$ac_ext >&5
36870 ac_header_preproc=no
36872 rm -f conftest.err conftest.$ac_ext
36873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36874 echo "${ECHO_T}$ac_header_preproc" >&6
36876 # So? What about this header?
36877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36883 ac_header_preproc=yes
36886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36900 ## --------------------------------------------- ##
36901 ## Report this to <http://www.openldap.org/its/> ##
36902 ## --------------------------------------------- ##
36905 sed "s/^/$as_me: WARNING: /" >&2
36908 echo "$as_me:$LINENO: checking for $ac_header" >&5
36909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36911 echo $ECHO_N "(cached) $ECHO_C" >&6
36913 eval "$as_ac_Header=\$ac_header_preproc"
36915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36920 cat >>confdefs.h <<_ACEOF
36921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36928 if test $ac_cv_header_unicode_utypes_h = yes ; then
36929 OL_ICULIBS="-licuuc -licudata"
36931 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36932 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36933 if test "${ol_cv_lib_icu+set}" = set; then
36934 echo $ECHO_N "(cached) $ECHO_C" >&6
36938 LIBS="$OL_ICULIBS $LIBS"
36939 cat >conftest.$ac_ext <<_ACEOF
36942 cat confdefs.h >>conftest.$ac_ext
36943 cat >>conftest.$ac_ext <<_ACEOF
36944 /* end confdefs.h. */
36946 #include <unicode/utypes.h>
36952 (void) u_errorName(0);
36958 rm -f conftest.$ac_objext conftest$ac_exeext
36959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36960 (eval $ac_link) 2>conftest.er1
36962 grep -v '^ *+' conftest.er1 >conftest.err
36964 cat conftest.err >&5
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); } &&
36967 { ac_try='test -z "$ac_c_werror_flag"
36968 || test ! -s conftest.err'
36969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970 (eval $ac_try) 2>&5
36972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973 (exit $ac_status); }; } &&
36974 { ac_try='test -s conftest$ac_exeext'
36975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976 (eval $ac_try) 2>&5
36978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979 (exit $ac_status); }; }; then
36982 echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36987 rm -f conftest.err conftest.$ac_objext \
36988 conftest$ac_exeext conftest.$ac_ext
36992 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36993 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36995 if test $ol_cv_lib_icu != no ; then
36996 ol_icu="$OL_ICULIBS"
36998 cat >>confdefs.h <<\_ACEOF
37005 if test "$ol_icu" = no ; then
37006 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37007 echo "$as_me: WARNING: ICU not available" >&2;}
37014 if test $ol_with_cyrus_sasl != no ; then
37017 for ac_header in sasl/sasl.h sasl.h
37019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37021 echo "$as_me:$LINENO: checking for $ac_header" >&5
37022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37024 echo $ECHO_N "(cached) $ECHO_C" >&6
37026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37029 # Is the header compilable?
37030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37032 cat >conftest.$ac_ext <<_ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h. */
37038 $ac_includes_default
37039 #include <$ac_header>
37041 rm -f conftest.$ac_objext
37042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37043 (eval $ac_compile) 2>conftest.er1
37045 grep -v '^ *+' conftest.er1 >conftest.err
37047 cat conftest.err >&5
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); } &&
37050 { ac_try='test -z "$ac_c_werror_flag"
37051 || test ! -s conftest.err'
37052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053 (eval $ac_try) 2>&5
37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056 (exit $ac_status); }; } &&
37057 { ac_try='test -s conftest.$ac_objext'
37058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059 (eval $ac_try) 2>&5
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); }; }; then
37063 ac_header_compiler=yes
37065 echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37068 ac_header_compiler=no
37070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37072 echo "${ECHO_T}$ac_header_compiler" >&6
37074 # Is the header present?
37075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37077 cat >conftest.$ac_ext <<_ACEOF
37080 cat confdefs.h >>conftest.$ac_ext
37081 cat >>conftest.$ac_ext <<_ACEOF
37082 /* end confdefs.h. */
37083 #include <$ac_header>
37085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37088 grep -v '^ *+' conftest.er1 >conftest.err
37090 cat conftest.err >&5
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); } >/dev/null; then
37093 if test -s conftest.err; then
37094 ac_cpp_err=$ac_c_preproc_warn_flag
37095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37102 if test -z "$ac_cpp_err"; then
37103 ac_header_preproc=yes
37105 echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37108 ac_header_preproc=no
37110 rm -f conftest.err conftest.$ac_ext
37111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37112 echo "${ECHO_T}$ac_header_preproc" >&6
37114 # So? What about this header?
37115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37121 ac_header_preproc=yes
37124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37138 ## --------------------------------------------- ##
37139 ## Report this to <http://www.openldap.org/its/> ##
37140 ## --------------------------------------------- ##
37143 sed "s/^/$as_me: WARNING: /" >&2
37146 echo "$as_me:$LINENO: checking for $ac_header" >&5
37147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37149 echo $ECHO_N "(cached) $ECHO_C" >&6
37151 eval "$as_ac_Header=\$ac_header_preproc"
37153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37158 cat >>confdefs.h <<_ACEOF
37159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37167 if test $ac_cv_header_sasl_sasl_h = yes ||
37168 test $ac_cv_header_sasl_h = yes; then
37169 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37170 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37171 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37172 echo $ECHO_N "(cached) $ECHO_C" >&6
37174 ac_check_lib_save_LIBS=$LIBS
37175 LIBS="-lsasl2 $LIBS"
37176 cat >conftest.$ac_ext <<_ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h. */
37183 /* Override any gcc2 internal prototype to avoid an error. */
37187 /* We use char because int might match the return type of a gcc2
37188 builtin and then its argument prototype would still apply. */
37189 char sasl_client_init ();
37193 sasl_client_init ();
37198 rm -f conftest.$ac_objext conftest$ac_exeext
37199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37200 (eval $ac_link) 2>conftest.er1
37202 grep -v '^ *+' conftest.er1 >conftest.err
37204 cat conftest.err >&5
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
37207 { ac_try='test -z "$ac_c_werror_flag"
37208 || test ! -s conftest.err'
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; } &&
37214 { ac_try='test -s conftest$ac_exeext'
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; }; then
37220 ac_cv_lib_sasl2_sasl_client_init=yes
37222 echo "$as_me: failed program was:" >&5
37223 sed 's/^/| /' conftest.$ac_ext >&5
37225 ac_cv_lib_sasl2_sasl_client_init=no
37227 rm -f conftest.err conftest.$ac_objext \
37228 conftest$ac_exeext conftest.$ac_ext
37229 LIBS=$ac_check_lib_save_LIBS
37231 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37232 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37233 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37234 ol_link_sasl="-lsasl2"
37236 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37237 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37238 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37239 echo $ECHO_N "(cached) $ECHO_C" >&6
37241 ac_check_lib_save_LIBS=$LIBS
37242 LIBS="-lsasl $LIBS"
37243 cat >conftest.$ac_ext <<_ACEOF
37246 cat confdefs.h >>conftest.$ac_ext
37247 cat >>conftest.$ac_ext <<_ACEOF
37248 /* end confdefs.h. */
37250 /* Override any gcc2 internal prototype to avoid an error. */
37254 /* We use char because int might match the return type of a gcc2
37255 builtin and then its argument prototype would still apply. */
37256 char sasl_client_init ();
37260 sasl_client_init ();
37265 rm -f conftest.$ac_objext conftest$ac_exeext
37266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37267 (eval $ac_link) 2>conftest.er1
37269 grep -v '^ *+' conftest.er1 >conftest.err
37271 cat conftest.err >&5
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); } &&
37274 { ac_try='test -z "$ac_c_werror_flag"
37275 || test ! -s conftest.err'
37276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277 (eval $ac_try) 2>&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); }; } &&
37281 { ac_try='test -s conftest$ac_exeext'
37282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283 (eval $ac_try) 2>&5
37285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286 (exit $ac_status); }; }; then
37287 ac_cv_lib_sasl_sasl_client_init=yes
37289 echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37292 ac_cv_lib_sasl_sasl_client_init=no
37294 rm -f conftest.err conftest.$ac_objext \
37295 conftest$ac_exeext conftest.$ac_ext
37296 LIBS=$ac_check_lib_save_LIBS
37298 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37299 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37300 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37301 ol_link_sasl="-lsasl"
37308 if test $ol_link_sasl = no ; then
37309 if test $ol_with_cyrus_sasl != auto ; then
37310 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37311 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37312 { (exit 1); exit 1; }; }
37314 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37315 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37316 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37317 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37318 if test $ol_link_tls = no ; then
37319 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37320 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37324 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37325 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37326 if test "${ol_cv_sasl_compat+set}" = set; then
37327 echo $ECHO_N "(cached) $ECHO_C" >&6
37330 cat >conftest.$ac_ext <<_ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h. */
37337 #ifdef HAVE_SASL_SASL_H
37338 #include <sasl/sasl.h>
37343 /* Require 2.1.15+ */
37344 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37345 char *__sasl_compat = "2.2+ or better okay (we guess)";
37346 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37347 && SASL_VERSION_STEP >=15
37348 char *__sasl_compat = "2.1.15+ or better okay";
37352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37353 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37354 ol_cv_sasl_compat=yes
37356 ol_cv_sasl_compat=no
37361 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37362 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37364 if test $ol_cv_sasl_compat = no ; then
37366 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37367 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37368 { (exit 1); exit 1; }; }
37372 cat >>confdefs.h <<\_ACEOF
37373 #define HAVE_CYRUS_SASL 1
37376 SASL_LIBS="$ol_link_sasl"
37377 if test $ol_enable_spasswd != no ; then
37378 ol_link_spasswd=yes
37381 ac_save_LIBS="$LIBS"
37382 LIBS="$LIBS $ol_link_sasl"
37383 echo "$as_me:$LINENO: checking for sasl_version" >&5
37384 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37385 if test "${ac_cv_func_sasl_version+set}" = set; then
37386 echo $ECHO_N "(cached) $ECHO_C" >&6
37388 cat >conftest.$ac_ext <<_ACEOF
37391 cat confdefs.h >>conftest.$ac_ext
37392 cat >>conftest.$ac_ext <<_ACEOF
37393 /* end confdefs.h. */
37394 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37396 #define sasl_version innocuous_sasl_version
37398 /* System header to define __stub macros and hopefully few prototypes,
37399 which can conflict with char sasl_version (); below.
37400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37401 <limits.h> exists even on freestanding compilers. */
37404 # include <limits.h>
37406 # include <assert.h>
37409 #undef sasl_version
37411 /* Override any gcc2 internal prototype to avoid an error. */
37416 /* We use char because int might match the return type of a gcc2
37417 builtin and then its argument prototype would still apply. */
37418 char sasl_version ();
37419 /* The GNU C library defines this for functions which it implements
37420 to always fail with ENOSYS. Some functions are actually named
37421 something starting with __ and the normal name is an alias. */
37422 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37425 char (*f) () = sasl_version;
37434 return f != sasl_version;
37439 rm -f conftest.$ac_objext conftest$ac_exeext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37441 (eval $ac_link) 2>conftest.er1
37443 grep -v '^ *+' conftest.er1 >conftest.err
37445 cat conftest.err >&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); } &&
37448 { ac_try='test -z "$ac_c_werror_flag"
37449 || test ! -s conftest.err'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest$ac_exeext'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
37461 ac_cv_func_sasl_version=yes
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37466 ac_cv_func_sasl_version=no
37468 rm -f conftest.err conftest.$ac_objext \
37469 conftest$ac_exeext conftest.$ac_ext
37471 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37472 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37473 if test $ac_cv_func_sasl_version = yes; then
37475 cat >>confdefs.h <<\_ACEOF
37476 #define HAVE_SASL_VERSION 1
37481 LIBS="$ac_save_LIBS"
37487 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37488 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37489 if test $ol_link_tls = no ; then
37490 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37491 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37495 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37497 if test -r /dev/urandom ; then
37498 dev="/dev/urandom";
37499 elif test -r /idev/urandom ; then
37500 dev="/idev/urandom";
37501 elif test -r /dev/srandom ; then
37502 dev="/dev/srandom";
37503 elif test -r /dev/random ; then
37505 elif test -r /idev/random ; then
37506 dev="/idev/random";
37509 if test $dev != no ; then
37511 cat >>confdefs.h <<_ACEOF
37512 #define URANDOM_DEVICE "$dev"
37519 if test $ol_with_fetch != no ; then
37521 LIBS="-lfetch -lcom_err $LIBS"
37522 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37523 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37524 if test "${ol_cv_lib_fetch+set}" = set; then
37525 echo $ECHO_N "(cached) $ECHO_C" >&6
37528 cat >conftest.$ac_ext <<_ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h. */
37535 #include <sys/param.h>
37541 struct url *u = fetchParseURL("file:///");
37546 rm -f conftest.$ac_objext conftest$ac_exeext
37547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37548 (eval $ac_link) 2>conftest.er1
37550 grep -v '^ *+' conftest.er1 >conftest.err
37552 cat conftest.err >&5
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); } &&
37555 { ac_try='test -z "$ac_c_werror_flag"
37556 || test ! -s conftest.err'
37557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558 (eval $ac_try) 2>&5
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; } &&
37562 { ac_try='test -s conftest$ac_exeext'
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; }; then
37568 ol_cv_lib_fetch=yes
37570 echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37575 rm -f conftest.err conftest.$ac_objext \
37576 conftest$ac_exeext conftest.$ac_ext
37578 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37579 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37581 if test $ol_cv_lib_fetch != no ; then
37582 ol_link_fetch="-lfetch -lcom_err"
37584 cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_FETCH 1
37591 if test $ol_cv_lib_fetch != no ; then
37592 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37593 ol_link_fetch=freebsd
37595 elif test $ol_with_fetch != auto ; then
37596 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37597 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37598 { (exit 1); exit 1; }; }
37602 if test $ol_enable_crypt != no ; then
37604 LIBS="$TLS_LIBS $LIBS"
37606 echo "$as_me:$LINENO: checking for crypt" >&5
37607 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37608 if test "${ac_cv_func_crypt+set}" = set; then
37609 echo $ECHO_N "(cached) $ECHO_C" >&6
37611 cat >conftest.$ac_ext <<_ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h. */
37617 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37619 #define crypt innocuous_crypt
37621 /* System header to define __stub macros and hopefully few prototypes,
37622 which can conflict with char crypt (); below.
37623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37624 <limits.h> exists even on freestanding compilers. */
37627 # include <limits.h>
37629 # include <assert.h>
37634 /* Override any gcc2 internal prototype to avoid an error. */
37639 /* We use char because int might match the return type of a gcc2
37640 builtin and then its argument prototype would still apply. */
37642 /* The GNU C library defines this for functions which it implements
37643 to always fail with ENOSYS. Some functions are actually named
37644 something starting with __ and the normal name is an alias. */
37645 #if defined (__stub_crypt) || defined (__stub___crypt)
37648 char (*f) () = crypt;
37662 rm -f conftest.$ac_objext conftest$ac_exeext
37663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37664 (eval $ac_link) 2>conftest.er1
37666 grep -v '^ *+' conftest.er1 >conftest.err
37668 cat conftest.err >&5
37669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670 (exit $ac_status); } &&
37671 { ac_try='test -z "$ac_c_werror_flag"
37672 || test ! -s conftest.err'
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; } &&
37678 { ac_try='test -s conftest$ac_exeext'
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; }; then
37684 ac_cv_func_crypt=yes
37686 echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37689 ac_cv_func_crypt=no
37691 rm -f conftest.err conftest.$ac_objext \
37692 conftest$ac_exeext conftest.$ac_ext
37694 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37695 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37696 if test $ac_cv_func_crypt = yes; then
37701 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37702 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37703 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37704 echo $ECHO_N "(cached) $ECHO_C" >&6
37706 ac_check_lib_save_LIBS=$LIBS
37707 LIBS="-lcrypt $LIBS"
37708 cat >conftest.$ac_ext <<_ACEOF
37711 cat confdefs.h >>conftest.$ac_ext
37712 cat >>conftest.$ac_ext <<_ACEOF
37713 /* end confdefs.h. */
37715 /* Override any gcc2 internal prototype to avoid an error. */
37719 /* We use char because int might match the return type of a gcc2
37720 builtin and then its argument prototype would still apply. */
37730 rm -f conftest.$ac_objext conftest$ac_exeext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37732 (eval $ac_link) 2>conftest.er1
37734 grep -v '^ *+' conftest.er1 >conftest.err
37736 cat conftest.err >&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } &&
37739 { ac_try='test -z "$ac_c_werror_flag"
37740 || test ! -s conftest.err'
37741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742 (eval $ac_try) 2>&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); }; } &&
37746 { ac_try='test -s conftest$ac_exeext'
37747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37748 (eval $ac_try) 2>&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); }; }; then
37752 ac_cv_lib_crypt_crypt=yes
37754 echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37757 ac_cv_lib_crypt_crypt=no
37759 rm -f conftest.err conftest.$ac_objext \
37760 conftest$ac_exeext conftest.$ac_ext
37761 LIBS=$ac_check_lib_save_LIBS
37763 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37764 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37765 if test $ac_cv_lib_crypt_crypt = yes; then
37766 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37777 if test $have_crypt = yes ; then
37779 cat >>confdefs.h <<\_ACEOF
37780 #define HAVE_CRYPT 1
37784 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37785 echo "$as_me: WARNING: could not find crypt" >&2;}
37786 if test $ol_enable_crypt = yes ; then
37787 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37788 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37789 { (exit 1); exit 1; }; }
37792 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37793 echo "$as_me: WARNING: disabling crypt support" >&2;}
37798 if test $ol_enable_proctitle != no ; then
37799 echo "$as_me:$LINENO: checking for setproctitle" >&5
37800 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37801 if test "${ac_cv_func_setproctitle+set}" = set; then
37802 echo $ECHO_N "(cached) $ECHO_C" >&6
37804 cat >conftest.$ac_ext <<_ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h. */
37810 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37812 #define setproctitle innocuous_setproctitle
37814 /* System header to define __stub macros and hopefully few prototypes,
37815 which can conflict with char setproctitle (); below.
37816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37817 <limits.h> exists even on freestanding compilers. */
37820 # include <limits.h>
37822 # include <assert.h>
37825 #undef setproctitle
37827 /* Override any gcc2 internal prototype to avoid an error. */
37832 /* We use char because int might match the return type of a gcc2
37833 builtin and then its argument prototype would still apply. */
37834 char setproctitle ();
37835 /* The GNU C library defines this for functions which it implements
37836 to always fail with ENOSYS. Some functions are actually named
37837 something starting with __ and the normal name is an alias. */
37838 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37841 char (*f) () = setproctitle;
37850 return f != setproctitle;
37855 rm -f conftest.$ac_objext conftest$ac_exeext
37856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37857 (eval $ac_link) 2>conftest.er1
37859 grep -v '^ *+' conftest.er1 >conftest.err
37861 cat conftest.err >&5
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); } &&
37864 { ac_try='test -z "$ac_c_werror_flag"
37865 || test ! -s conftest.err'
37866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37867 (eval $ac_try) 2>&5
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); }; } &&
37871 { ac_try='test -s conftest$ac_exeext'
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; }; then
37877 ac_cv_func_setproctitle=yes
37879 echo "$as_me: failed program was:" >&5
37880 sed 's/^/| /' conftest.$ac_ext >&5
37882 ac_cv_func_setproctitle=no
37884 rm -f conftest.err conftest.$ac_objext \
37885 conftest$ac_exeext conftest.$ac_ext
37887 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37888 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37889 if test $ac_cv_func_setproctitle = yes; then
37890 have_setproctitle=yes
37893 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37894 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37895 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37896 echo $ECHO_N "(cached) $ECHO_C" >&6
37898 ac_check_lib_save_LIBS=$LIBS
37899 LIBS="-lutil $LIBS"
37900 cat >conftest.$ac_ext <<_ACEOF
37903 cat confdefs.h >>conftest.$ac_ext
37904 cat >>conftest.$ac_ext <<_ACEOF
37905 /* end confdefs.h. */
37907 /* Override any gcc2 internal prototype to avoid an error. */
37911 /* We use char because int might match the return type of a gcc2
37912 builtin and then its argument prototype would still apply. */
37913 char setproctitle ();
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37924 (eval $ac_link) 2>conftest.er1
37926 grep -v '^ *+' conftest.er1 >conftest.err
37928 cat conftest.err >&5
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); } &&
37931 { ac_try='test -z "$ac_c_werror_flag"
37932 || test ! -s conftest.err'
37933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934 (eval $ac_try) 2>&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); }; } &&
37938 { ac_try='test -s conftest$ac_exeext'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; }; then
37944 ac_cv_lib_util_setproctitle=yes
37946 echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37949 ac_cv_lib_util_setproctitle=no
37951 rm -f conftest.err conftest.$ac_objext \
37952 conftest$ac_exeext conftest.$ac_ext
37953 LIBS=$ac_check_lib_save_LIBS
37955 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37956 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37957 if test $ac_cv_lib_util_setproctitle = yes; then
37958 have_setproctitle=yes
37959 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37961 have_setproctitle=no
37963 "setproctitle.$ac_objext" | \
37964 *" setproctitle.$ac_objext" | \
37965 "setproctitle.$ac_objext "* | \
37966 *" setproctitle.$ac_objext "* ) ;;
37967 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37970 LIBSRCS="$LIBSRCS setproctitle.c"
37976 if test $have_setproctitle = yes ; then
37978 cat >>confdefs.h <<\_ACEOF
37979 #define HAVE_SETPROCTITLE 1
37985 if test $ol_enable_slp != no ; then
37987 for ac_header in slp.h
37989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37991 echo "$as_me:$LINENO: checking for $ac_header" >&5
37992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37994 echo $ECHO_N "(cached) $ECHO_C" >&6
37996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37999 # Is the header compilable?
38000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38002 cat >conftest.$ac_ext <<_ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h. */
38008 $ac_includes_default
38009 #include <$ac_header>
38011 rm -f conftest.$ac_objext
38012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38013 (eval $ac_compile) 2>conftest.er1
38015 grep -v '^ *+' conftest.er1 >conftest.err
38017 cat conftest.err >&5
38018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019 (exit $ac_status); } &&
38020 { ac_try='test -z "$ac_c_werror_flag"
38021 || test ! -s conftest.err'
38022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38023 (eval $ac_try) 2>&5
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); }; } &&
38027 { ac_try='test -s conftest.$ac_objext'
38028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029 (eval $ac_try) 2>&5
38031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032 (exit $ac_status); }; }; then
38033 ac_header_compiler=yes
38035 echo "$as_me: failed program was:" >&5
38036 sed 's/^/| /' conftest.$ac_ext >&5
38038 ac_header_compiler=no
38040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38042 echo "${ECHO_T}$ac_header_compiler" >&6
38044 # Is the header present?
38045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38047 cat >conftest.$ac_ext <<_ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h. */
38053 #include <$ac_header>
38055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38058 grep -v '^ *+' conftest.er1 >conftest.err
38060 cat conftest.err >&5
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); } >/dev/null; then
38063 if test -s conftest.err; then
38064 ac_cpp_err=$ac_c_preproc_warn_flag
38065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38072 if test -z "$ac_cpp_err"; then
38073 ac_header_preproc=yes
38075 echo "$as_me: failed program was:" >&5
38076 sed 's/^/| /' conftest.$ac_ext >&5
38078 ac_header_preproc=no
38080 rm -f conftest.err conftest.$ac_ext
38081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38082 echo "${ECHO_T}$ac_header_preproc" >&6
38084 # So? What about this header?
38085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38091 ac_header_preproc=yes
38094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38108 ## --------------------------------------------- ##
38109 ## Report this to <http://www.openldap.org/its/> ##
38110 ## --------------------------------------------- ##
38113 sed "s/^/$as_me: WARNING: /" >&2
38116 echo "$as_me:$LINENO: checking for $ac_header" >&5
38117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38121 eval "$as_ac_Header=\$ac_header_preproc"
38123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38128 cat >>confdefs.h <<_ACEOF
38129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38137 if test $ac_cv_header_slp_h = yes ; then
38138 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38139 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38140 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38141 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 ac_check_lib_save_LIBS=$LIBS
38145 cat >conftest.$ac_ext <<_ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h. */
38152 /* Override any gcc2 internal prototype to avoid an error. */
38156 /* We use char because int might match the return type of a gcc2
38157 builtin and then its argument prototype would still apply. */
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169 (eval $ac_link) 2>conftest.er1
38171 grep -v '^ *+' conftest.er1 >conftest.err
38173 cat conftest.err >&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } &&
38176 { ac_try='test -z "$ac_c_werror_flag"
38177 || test ! -s conftest.err'
38178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179 (eval $ac_try) 2>&5
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; } &&
38183 { ac_try='test -s conftest$ac_exeext'
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; }; then
38189 ac_cv_lib_slp_SLPOpen=yes
38191 echo "$as_me: failed program was:" >&5
38192 sed 's/^/| /' conftest.$ac_ext >&5
38194 ac_cv_lib_slp_SLPOpen=no
38196 rm -f conftest.err conftest.$ac_objext \
38197 conftest$ac_exeext conftest.$ac_ext
38198 LIBS=$ac_check_lib_save_LIBS
38200 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38201 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38202 if test $ac_cv_lib_slp_SLPOpen = yes; then
38208 if test $have_slp = yes ; then
38210 cat >>confdefs.h <<\_ACEOF
38214 SLAPD_SLP_LIBS=-lslp
38217 elif test $ol_enable_slp = yes ; then
38218 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38219 echo "$as_me: error: SLP not found" >&2;}
38220 { (exit 1); exit 1; }; }
38224 if test "$ol_with_multiple_precision" != "no" ; then
38230 for ac_header in openssl/bn.h bn.h
38232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38234 echo "$as_me:$LINENO: checking for $ac_header" >&5
38235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38237 echo $ECHO_N "(cached) $ECHO_C" >&6
38239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38242 # Is the header compilable?
38243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38245 cat >conftest.$ac_ext <<_ACEOF
38248 cat confdefs.h >>conftest.$ac_ext
38249 cat >>conftest.$ac_ext <<_ACEOF
38250 /* end confdefs.h. */
38251 $ac_includes_default
38252 #include <$ac_header>
38254 rm -f conftest.$ac_objext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38256 (eval $ac_compile) 2>conftest.er1
38258 grep -v '^ *+' conftest.er1 >conftest.err
38260 cat conftest.err >&5
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); } &&
38263 { ac_try='test -z "$ac_c_werror_flag"
38264 || test ! -s conftest.err'
38265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266 (eval $ac_try) 2>&5
38268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269 (exit $ac_status); }; } &&
38270 { ac_try='test -s conftest.$ac_objext'
38271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272 (eval $ac_try) 2>&5
38274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); }; }; then
38276 ac_header_compiler=yes
38278 echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38281 ac_header_compiler=no
38283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38285 echo "${ECHO_T}$ac_header_compiler" >&6
38287 # Is the header present?
38288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38290 cat >conftest.$ac_ext <<_ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h. */
38296 #include <$ac_header>
38298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38301 grep -v '^ *+' conftest.er1 >conftest.err
38303 cat conftest.err >&5
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); } >/dev/null; then
38306 if test -s conftest.err; then
38307 ac_cpp_err=$ac_c_preproc_warn_flag
38308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38315 if test -z "$ac_cpp_err"; then
38316 ac_header_preproc=yes
38318 echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38321 ac_header_preproc=no
38323 rm -f conftest.err conftest.$ac_ext
38324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38325 echo "${ECHO_T}$ac_header_preproc" >&6
38327 # So? What about this header?
38328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38334 ac_header_preproc=yes
38337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38351 ## --------------------------------------------- ##
38352 ## Report this to <http://www.openldap.org/its/> ##
38353 ## --------------------------------------------- ##
38356 sed "s/^/$as_me: WARNING: /" >&2
38359 echo "$as_me:$LINENO: checking for $ac_header" >&5
38360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38362 echo $ECHO_N "(cached) $ECHO_C" >&6
38364 eval "$as_ac_Header=\$ac_header_preproc"
38366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38371 cat >>confdefs.h <<_ACEOF
38372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38381 for ac_header in openssl/crypto.h crypto.h
38383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38385 echo "$as_me:$LINENO: checking for $ac_header" >&5
38386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38393 # Is the header compilable?
38394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38396 cat >conftest.$ac_ext <<_ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h. */
38402 $ac_includes_default
38403 #include <$ac_header>
38405 rm -f conftest.$ac_objext
38406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38407 (eval $ac_compile) 2>conftest.er1
38409 grep -v '^ *+' conftest.er1 >conftest.err
38411 cat conftest.err >&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); } &&
38414 { ac_try='test -z "$ac_c_werror_flag"
38415 || test ! -s conftest.err'
38416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417 (eval $ac_try) 2>&5
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); }; } &&
38421 { ac_try='test -s conftest.$ac_objext'
38422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423 (eval $ac_try) 2>&5
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); }; }; then
38427 ac_header_compiler=yes
38429 echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38432 ac_header_compiler=no
38434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38436 echo "${ECHO_T}$ac_header_compiler" >&6
38438 # Is the header present?
38439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38441 cat >conftest.$ac_ext <<_ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h. */
38447 #include <$ac_header>
38449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38452 grep -v '^ *+' conftest.er1 >conftest.err
38454 cat conftest.err >&5
38455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456 (exit $ac_status); } >/dev/null; then
38457 if test -s conftest.err; then
38458 ac_cpp_err=$ac_c_preproc_warn_flag
38459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38466 if test -z "$ac_cpp_err"; then
38467 ac_header_preproc=yes
38469 echo "$as_me: failed program was:" >&5
38470 sed 's/^/| /' conftest.$ac_ext >&5
38472 ac_header_preproc=no
38474 rm -f conftest.err conftest.$ac_ext
38475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38476 echo "${ECHO_T}$ac_header_preproc" >&6
38478 # So? What about this header?
38479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38485 ac_header_preproc=yes
38488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38502 ## --------------------------------------------- ##
38503 ## Report this to <http://www.openldap.org/its/> ##
38504 ## --------------------------------------------- ##
38507 sed "s/^/$as_me: WARNING: /" >&2
38510 echo "$as_me:$LINENO: checking for $ac_header" >&5
38511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38515 eval "$as_ac_Header=\$ac_header_preproc"
38517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38522 cat >>confdefs.h <<_ACEOF
38523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38531 for ac_header in gmp.h
38533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38535 echo "$as_me:$LINENO: checking for $ac_header" >&5
38536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38538 echo $ECHO_N "(cached) $ECHO_C" >&6
38540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38543 # Is the header compilable?
38544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38545 echo $ECHO_N "checking $ac_header usability... $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
38553 #include <$ac_header>
38555 rm -f conftest.$ac_objext
38556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38557 (eval $ac_compile) 2>conftest.er1
38559 grep -v '^ *+' conftest.er1 >conftest.err
38561 cat conftest.err >&5
38562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563 (exit $ac_status); } &&
38564 { ac_try='test -z "$ac_c_werror_flag"
38565 || test ! -s conftest.err'
38566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567 (eval $ac_try) 2>&5
38569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); }; } &&
38571 { ac_try='test -s conftest.$ac_objext'
38572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38573 (eval $ac_try) 2>&5
38575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576 (exit $ac_status); }; }; then
38577 ac_header_compiler=yes
38579 echo "$as_me: failed program was:" >&5
38580 sed 's/^/| /' conftest.$ac_ext >&5
38582 ac_header_compiler=no
38584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38586 echo "${ECHO_T}$ac_header_compiler" >&6
38588 # Is the header present?
38589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38591 cat >conftest.$ac_ext <<_ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h. */
38597 #include <$ac_header>
38599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38602 grep -v '^ *+' conftest.er1 >conftest.err
38604 cat conftest.err >&5
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } >/dev/null; then
38607 if test -s conftest.err; then
38608 ac_cpp_err=$ac_c_preproc_warn_flag
38609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38616 if test -z "$ac_cpp_err"; then
38617 ac_header_preproc=yes
38619 echo "$as_me: failed program was:" >&5
38620 sed 's/^/| /' conftest.$ac_ext >&5
38622 ac_header_preproc=no
38624 rm -f conftest.err conftest.$ac_ext
38625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38626 echo "${ECHO_T}$ac_header_preproc" >&6
38628 # So? What about this header?
38629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38635 ac_header_preproc=yes
38638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38652 ## --------------------------------------------- ##
38653 ## Report this to <http://www.openldap.org/its/> ##
38654 ## --------------------------------------------- ##
38657 sed "s/^/$as_me: WARNING: /" >&2
38660 echo "$as_me:$LINENO: checking for $ac_header" >&5
38661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38663 echo $ECHO_N "(cached) $ECHO_C" >&6
38665 eval "$as_ac_Header=\$ac_header_preproc"
38667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38672 cat >>confdefs.h <<_ACEOF
38673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38681 if test "$ol_with_tls" = "found" ; then
38683 ol_have_crypto_h=no
38685 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38686 test "$ac_cv_header_bn_h" = "yes" ; then
38690 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38691 test "$ac_cv_header_crypto_h" = "yes" ; then
38692 ol_have_crypto_h=yes
38695 if test "$ol_have_bn_h" = "yes" &&
38696 test "$ol_have_crypto_h" = "yes" ; then
38701 if test $ac_cv_header_gmp_h = yes ; then
38702 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38703 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38704 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38705 echo $ECHO_N "(cached) $ECHO_C" >&6
38707 ac_check_lib_save_LIBS=$LIBS
38709 cat >conftest.$ac_ext <<_ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h. */
38716 /* Override any gcc2 internal prototype to avoid an error. */
38720 /* We use char because int might match the return type of a gcc2
38721 builtin and then its argument prototype would still apply. */
38722 char __gmpz_add_ui ();
38731 rm -f conftest.$ac_objext conftest$ac_exeext
38732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38733 (eval $ac_link) 2>conftest.er1
38735 grep -v '^ *+' conftest.er1 >conftest.err
38737 cat conftest.err >&5
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); } &&
38740 { ac_try='test -z "$ac_c_werror_flag"
38741 || test ! -s conftest.err'
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } &&
38747 { ac_try='test -s conftest$ac_exeext'
38748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749 (eval $ac_try) 2>&5
38751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752 (exit $ac_status); }; }; then
38753 ac_cv_lib_gmp___gmpz_add_ui=yes
38755 echo "$as_me: failed program was:" >&5
38756 sed 's/^/| /' conftest.$ac_ext >&5
38758 ac_cv_lib_gmp___gmpz_add_ui=no
38760 rm -f conftest.err conftest.$ac_objext \
38761 conftest$ac_exeext conftest.$ac_ext
38762 LIBS=$ac_check_lib_save_LIBS
38764 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38765 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38766 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38772 if test $have_gmp = yes ; then
38777 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38778 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38780 ol_mp_support="none"
38781 case "$ol_with_multiple_precision" in
38783 if test "$ol_have_bignum" = "yes" ; then
38784 ol_mp_support="bignum"
38786 if test "$ol_have_gmp" = "yes" ; then
38787 ol_mp_support="gmp"
38792 if test "$ol_have_bignum" != "yes" ; then
38793 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38794 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38795 { (exit 1); exit 1; }; }
38797 ol_mp_support="bignum"
38800 if test "$ol_have_gmp" != "yes" ; then
38801 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38802 echo "$as_me: error: GMP not available" >&2;}
38803 { (exit 1); exit 1; }; }
38805 ol_mp_support="gmp"
38808 if test "$ol_have_bignum" = "yes" ; then
38809 ol_mp_support="bignum"
38810 elif test "$ol_have_gmp" = "yes" ; then
38811 ol_mp_support="gmp"
38813 { { echo "$as_me:$LINENO: error: not available" >&5
38814 echo "$as_me: error: not available" >&2;}
38815 { (exit 1); exit 1; }; }
38820 case "$ol_mp_support" in
38823 cat >>confdefs.h <<\_ACEOF
38824 #define HAVE_BIGNUM 1
38830 cat >>confdefs.h <<\_ACEOF
38834 SLAPD_GMP_LIBS=-lgmp
38840 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38841 echo "${ECHO_T}$ol_mp_support" >&6
38845 echo "$as_me:$LINENO: checking for mode_t" >&5
38846 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38847 if test "${ac_cv_type_mode_t+set}" = set; then
38848 echo $ECHO_N "(cached) $ECHO_C" >&6
38850 cat >conftest.$ac_ext <<_ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h. */
38856 $ac_includes_default
38862 if (sizeof (mode_t))
38868 rm -f conftest.$ac_objext
38869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38870 (eval $ac_compile) 2>conftest.er1
38872 grep -v '^ *+' conftest.er1 >conftest.err
38874 cat conftest.err >&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); } &&
38877 { ac_try='test -z "$ac_c_werror_flag"
38878 || test ! -s conftest.err'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; } &&
38884 { ac_try='test -s conftest.$ac_objext'
38885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886 (eval $ac_try) 2>&5
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); }; }; then
38890 ac_cv_type_mode_t=yes
38892 echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38895 ac_cv_type_mode_t=no
38897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38899 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38900 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38901 if test $ac_cv_type_mode_t = yes; then
38905 cat >>confdefs.h <<_ACEOF
38911 echo "$as_me:$LINENO: checking for off_t" >&5
38912 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38913 if test "${ac_cv_type_off_t+set}" = set; then
38914 echo $ECHO_N "(cached) $ECHO_C" >&6
38916 cat >conftest.$ac_ext <<_ACEOF
38919 cat confdefs.h >>conftest.$ac_ext
38920 cat >>conftest.$ac_ext <<_ACEOF
38921 /* end confdefs.h. */
38922 $ac_includes_default
38928 if (sizeof (off_t))
38934 rm -f conftest.$ac_objext
38935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38936 (eval $ac_compile) 2>conftest.er1
38938 grep -v '^ *+' conftest.er1 >conftest.err
38940 cat conftest.err >&5
38941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942 (exit $ac_status); } &&
38943 { ac_try='test -z "$ac_c_werror_flag"
38944 || test ! -s conftest.err'
38945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946 (eval $ac_try) 2>&5
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); }; } &&
38950 { ac_try='test -s conftest.$ac_objext'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; }; then
38956 ac_cv_type_off_t=yes
38958 echo "$as_me: failed program was:" >&5
38959 sed 's/^/| /' conftest.$ac_ext >&5
38961 ac_cv_type_off_t=no
38963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38965 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38966 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38967 if test $ac_cv_type_off_t = yes; then
38971 cat >>confdefs.h <<_ACEOF
38977 echo "$as_me:$LINENO: checking for pid_t" >&5
38978 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38979 if test "${ac_cv_type_pid_t+set}" = set; then
38980 echo $ECHO_N "(cached) $ECHO_C" >&6
38982 cat >conftest.$ac_ext <<_ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h. */
38988 $ac_includes_default
38994 if (sizeof (pid_t))
39000 rm -f conftest.$ac_objext
39001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39002 (eval $ac_compile) 2>conftest.er1
39004 grep -v '^ *+' conftest.er1 >conftest.err
39006 cat conftest.err >&5
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); } &&
39009 { ac_try='test -z "$ac_c_werror_flag"
39010 || test ! -s conftest.err'
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; } &&
39016 { ac_try='test -s conftest.$ac_objext'
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; }; then
39022 ac_cv_type_pid_t=yes
39024 echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39027 ac_cv_type_pid_t=no
39029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39031 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39032 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39033 if test $ac_cv_type_pid_t = yes; then
39037 cat >>confdefs.h <<_ACEOF
39043 echo "$as_me:$LINENO: checking for ssize_t" >&5
39044 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39045 if test "${ac_cv_type_ssize_t+set}" = set; then
39046 echo $ECHO_N "(cached) $ECHO_C" >&6
39048 cat >conftest.$ac_ext <<_ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h. */
39054 $ac_includes_default
39060 if (sizeof (ssize_t))
39066 rm -f conftest.$ac_objext
39067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39068 (eval $ac_compile) 2>conftest.er1
39070 grep -v '^ *+' conftest.er1 >conftest.err
39072 cat conftest.err >&5
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); } &&
39075 { ac_try='test -z "$ac_c_werror_flag"
39076 || test ! -s conftest.err'
39077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078 (eval $ac_try) 2>&5
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); }; } &&
39082 { ac_try='test -s conftest.$ac_objext'
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; }; then
39088 ac_cv_type_ssize_t=yes
39090 echo "$as_me: failed program was:" >&5
39091 sed 's/^/| /' conftest.$ac_ext >&5
39093 ac_cv_type_ssize_t=no
39095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39097 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39098 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39099 if test $ac_cv_type_ssize_t = yes; then
39103 cat >>confdefs.h <<_ACEOF
39104 #define ssize_t signed int
39109 echo "$as_me:$LINENO: checking for caddr_t" >&5
39110 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39111 if test "${ac_cv_type_caddr_t+set}" = set; then
39112 echo $ECHO_N "(cached) $ECHO_C" >&6
39114 cat >conftest.$ac_ext <<_ACEOF
39117 cat confdefs.h >>conftest.$ac_ext
39118 cat >>conftest.$ac_ext <<_ACEOF
39119 /* end confdefs.h. */
39120 $ac_includes_default
39126 if (sizeof (caddr_t))
39132 rm -f conftest.$ac_objext
39133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39134 (eval $ac_compile) 2>conftest.er1
39136 grep -v '^ *+' conftest.er1 >conftest.err
39138 cat conftest.err >&5
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); } &&
39141 { ac_try='test -z "$ac_c_werror_flag"
39142 || test ! -s conftest.err'
39143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39144 (eval $ac_try) 2>&5
39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); }; } &&
39148 { ac_try='test -s conftest.$ac_objext'
39149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150 (eval $ac_try) 2>&5
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); }; }; then
39154 ac_cv_type_caddr_t=yes
39156 echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39159 ac_cv_type_caddr_t=no
39161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39163 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39164 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39165 if test $ac_cv_type_caddr_t = yes; then
39169 cat >>confdefs.h <<_ACEOF
39170 #define caddr_t char *
39175 echo "$as_me:$LINENO: checking for size_t" >&5
39176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39177 if test "${ac_cv_type_size_t+set}" = set; then
39178 echo $ECHO_N "(cached) $ECHO_C" >&6
39180 cat >conftest.$ac_ext <<_ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h. */
39186 $ac_includes_default
39192 if (sizeof (size_t))
39198 rm -f conftest.$ac_objext
39199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39200 (eval $ac_compile) 2>conftest.er1
39202 grep -v '^ *+' conftest.er1 >conftest.err
39204 cat conftest.err >&5
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); } &&
39207 { ac_try='test -z "$ac_c_werror_flag"
39208 || test ! -s conftest.err'
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; } &&
39214 { ac_try='test -s conftest.$ac_objext'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; }; then
39220 ac_cv_type_size_t=yes
39222 echo "$as_me: failed program was:" >&5
39223 sed 's/^/| /' conftest.$ac_ext >&5
39225 ac_cv_type_size_t=no
39227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39231 if test $ac_cv_type_size_t = yes; then
39235 cat >>confdefs.h <<_ACEOF
39236 #define size_t unsigned
39242 echo "$as_me:$LINENO: checking for long long" >&5
39243 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39244 if test "${ac_cv_type_long_long+set}" = set; then
39245 echo $ECHO_N "(cached) $ECHO_C" >&6
39247 cat >conftest.$ac_ext <<_ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h. */
39253 $ac_includes_default
39257 if ((long long *) 0)
39259 if (sizeof (long long))
39265 rm -f conftest.$ac_objext
39266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39267 (eval $ac_compile) 2>conftest.er1
39269 grep -v '^ *+' conftest.er1 >conftest.err
39271 cat conftest.err >&5
39272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273 (exit $ac_status); } &&
39274 { ac_try='test -z "$ac_c_werror_flag"
39275 || test ! -s conftest.err'
39276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39277 (eval $ac_try) 2>&5
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); }; } &&
39281 { ac_try='test -s conftest.$ac_objext'
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; }; then
39287 ac_cv_type_long_long=yes
39289 echo "$as_me: failed program was:" >&5
39290 sed 's/^/| /' conftest.$ac_ext >&5
39292 ac_cv_type_long_long=no
39294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39296 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39297 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39298 if test $ac_cv_type_long_long = yes; then
39300 cat >>confdefs.h <<_ACEOF
39301 #define HAVE_LONG_LONG 1
39307 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39308 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39310 echo $ECHO_N "(cached) $ECHO_C" >&6
39312 cat >conftest.$ac_ext <<_ACEOF
39315 cat confdefs.h >>conftest.$ac_ext
39316 cat >>conftest.$ac_ext <<_ACEOF
39317 /* end confdefs.h. */
39318 $ac_includes_default
39322 if ((ptrdiff_t *) 0)
39324 if (sizeof (ptrdiff_t))
39330 rm -f conftest.$ac_objext
39331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39332 (eval $ac_compile) 2>conftest.er1
39334 grep -v '^ *+' conftest.er1 >conftest.err
39336 cat conftest.err >&5
39337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338 (exit $ac_status); } &&
39339 { ac_try='test -z "$ac_c_werror_flag"
39340 || test ! -s conftest.err'
39341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39342 (eval $ac_try) 2>&5
39344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345 (exit $ac_status); }; } &&
39346 { ac_try='test -s conftest.$ac_objext'
39347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39348 (eval $ac_try) 2>&5
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); }; }; then
39352 ac_cv_type_ptrdiff_t=yes
39354 echo "$as_me: failed program was:" >&5
39355 sed 's/^/| /' conftest.$ac_ext >&5
39357 ac_cv_type_ptrdiff_t=no
39359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39361 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39362 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39363 if test $ac_cv_type_ptrdiff_t = yes; then
39365 cat >>confdefs.h <<_ACEOF
39366 #define HAVE_PTRDIFF_T 1
39373 echo "$as_me:$LINENO: checking for socklen_t" >&5
39374 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39375 if test "${ac_cv_type_socklen_t+set}" = set; then
39376 echo $ECHO_N "(cached) $ECHO_C" >&6
39378 cat >conftest.$ac_ext <<_ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h. */
39384 $ac_includes_default
39385 #ifdef HAVE_SYS_SOCKET_H
39386 #include <sys/socket.h>
39393 if ((socklen_t *) 0)
39395 if (sizeof (socklen_t))
39401 rm -f conftest.$ac_objext
39402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39403 (eval $ac_compile) 2>conftest.er1
39405 grep -v '^ *+' conftest.er1 >conftest.err
39407 cat conftest.err >&5
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); } &&
39410 { ac_try='test -z "$ac_c_werror_flag"
39411 || test ! -s conftest.err'
39412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39413 (eval $ac_try) 2>&5
39415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416 (exit $ac_status); }; } &&
39417 { ac_try='test -s conftest.$ac_objext'
39418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39419 (eval $ac_try) 2>&5
39421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39422 (exit $ac_status); }; }; then
39423 ac_cv_type_socklen_t=yes
39425 echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39428 ac_cv_type_socklen_t=no
39430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39432 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39433 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39434 if test $ac_cv_type_socklen_t = yes; then
39438 cat >>confdefs.h <<_ACEOF
39439 #define socklen_t int
39445 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39446 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39447 if test "${ac_cv_type_signal+set}" = set; then
39448 echo $ECHO_N "(cached) $ECHO_C" >&6
39450 cat >conftest.$ac_ext <<_ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h. */
39456 #include <sys/types.h>
39457 #include <signal.h>
39462 extern "C" void (*signal (int, void (*)(int)))(int);
39464 void (*signal ()) ();
39475 rm -f conftest.$ac_objext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39477 (eval $ac_compile) 2>conftest.er1
39479 grep -v '^ *+' conftest.er1 >conftest.err
39481 cat conftest.err >&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); } &&
39484 { ac_try='test -z "$ac_c_werror_flag"
39485 || test ! -s conftest.err'
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest.$ac_objext'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497 ac_cv_type_signal=void
39499 echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39502 ac_cv_type_signal=int
39504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39506 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39507 echo "${ECHO_T}$ac_cv_type_signal" >&6
39509 cat >>confdefs.h <<_ACEOF
39510 #define RETSIGTYPE $ac_cv_type_signal
39515 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39516 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39517 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39518 echo $ECHO_N "(cached) $ECHO_C" >&6
39520 cat >conftest.$ac_ext <<_ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h. */
39526 $ac_includes_default
39527 #include <signal.h>
39533 if ((sig_atomic_t *) 0)
39535 if (sizeof (sig_atomic_t))
39541 rm -f conftest.$ac_objext
39542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39543 (eval $ac_compile) 2>conftest.er1
39545 grep -v '^ *+' conftest.er1 >conftest.err
39547 cat conftest.err >&5
39548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549 (exit $ac_status); } &&
39550 { ac_try='test -z "$ac_c_werror_flag"
39551 || test ! -s conftest.err'
39552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553 (eval $ac_try) 2>&5
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); }; } &&
39557 { ac_try='test -s conftest.$ac_objext'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 ac_cv_type_sig_atomic_t=yes
39565 echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39568 ac_cv_type_sig_atomic_t=no
39570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39572 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39573 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39574 if test $ac_cv_type_sig_atomic_t = yes; then
39578 cat >>confdefs.h <<_ACEOF
39579 #define sig_atomic_t int
39585 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39586 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39587 if test "${ac_cv_type_uid_t+set}" = set; then
39588 echo $ECHO_N "(cached) $ECHO_C" >&6
39590 cat >conftest.$ac_ext <<_ACEOF
39593 cat confdefs.h >>conftest.$ac_ext
39594 cat >>conftest.$ac_ext <<_ACEOF
39595 /* end confdefs.h. */
39596 #include <sys/types.h>
39599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39600 $EGREP "uid_t" >/dev/null 2>&1; then
39601 ac_cv_type_uid_t=yes
39603 ac_cv_type_uid_t=no
39608 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39609 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39610 if test $ac_cv_type_uid_t = no; then
39612 cat >>confdefs.h <<\_ACEOF
39617 cat >>confdefs.h <<\_ACEOF
39624 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39625 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39626 if test "${ac_cv_header_time+set}" = set; then
39627 echo $ECHO_N "(cached) $ECHO_C" >&6
39629 cat >conftest.$ac_ext <<_ACEOF
39632 cat confdefs.h >>conftest.$ac_ext
39633 cat >>conftest.$ac_ext <<_ACEOF
39634 /* end confdefs.h. */
39635 #include <sys/types.h>
39636 #include <sys/time.h>
39642 if ((struct tm *) 0)
39648 rm -f conftest.$ac_objext
39649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39650 (eval $ac_compile) 2>conftest.er1
39652 grep -v '^ *+' conftest.er1 >conftest.err
39654 cat conftest.err >&5
39655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656 (exit $ac_status); } &&
39657 { ac_try='test -z "$ac_c_werror_flag"
39658 || test ! -s conftest.err'
39659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660 (eval $ac_try) 2>&5
39662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663 (exit $ac_status); }; } &&
39664 { ac_try='test -s conftest.$ac_objext'
39665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39666 (eval $ac_try) 2>&5
39668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); }; }; then
39670 ac_cv_header_time=yes
39672 echo "$as_me: failed program was:" >&5
39673 sed 's/^/| /' conftest.$ac_ext >&5
39675 ac_cv_header_time=no
39677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39679 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39680 echo "${ECHO_T}$ac_cv_header_time" >&6
39681 if test $ac_cv_header_time = yes; then
39683 cat >>confdefs.h <<\_ACEOF
39684 #define TIME_WITH_SYS_TIME 1
39689 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39690 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39691 if test "${ac_cv_struct_tm+set}" = set; then
39692 echo $ECHO_N "(cached) $ECHO_C" >&6
39694 cat >conftest.$ac_ext <<_ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h. */
39700 #include <sys/types.h>
39706 struct tm *tp; tp->tm_sec;
39711 rm -f conftest.$ac_objext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39713 (eval $ac_compile) 2>conftest.er1
39715 grep -v '^ *+' conftest.er1 >conftest.err
39717 cat conftest.err >&5
39718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); } &&
39720 { ac_try='test -z "$ac_c_werror_flag"
39721 || test ! -s conftest.err'
39722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723 (eval $ac_try) 2>&5
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); }; } &&
39727 { ac_try='test -s conftest.$ac_objext'
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; }; then
39733 ac_cv_struct_tm=time.h
39735 echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39738 ac_cv_struct_tm=sys/time.h
39740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39742 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39743 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39744 if test $ac_cv_struct_tm = sys/time.h; then
39746 cat >>confdefs.h <<\_ACEOF
39747 #define TM_IN_SYS_TIME 1
39752 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39753 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39754 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39755 echo $ECHO_N "(cached) $ECHO_C" >&6
39757 cat >conftest.$ac_ext <<_ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h. */
39763 $ac_includes_default
39767 static struct stat ac_aggr;
39768 if (ac_aggr.st_blksize)
39774 rm -f conftest.$ac_objext
39775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39776 (eval $ac_compile) 2>conftest.er1
39778 grep -v '^ *+' conftest.er1 >conftest.err
39780 cat conftest.err >&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); } &&
39783 { ac_try='test -z "$ac_c_werror_flag"
39784 || test ! -s conftest.err'
39785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39786 (eval $ac_try) 2>&5
39788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789 (exit $ac_status); }; } &&
39790 { ac_try='test -s conftest.$ac_objext'
39791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39792 (eval $ac_try) 2>&5
39794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795 (exit $ac_status); }; }; then
39796 ac_cv_member_struct_stat_st_blksize=yes
39798 echo "$as_me: failed program was:" >&5
39799 sed 's/^/| /' conftest.$ac_ext >&5
39801 cat >conftest.$ac_ext <<_ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h. */
39807 $ac_includes_default
39811 static struct stat ac_aggr;
39812 if (sizeof ac_aggr.st_blksize)
39818 rm -f conftest.$ac_objext
39819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39820 (eval $ac_compile) 2>conftest.er1
39822 grep -v '^ *+' conftest.er1 >conftest.err
39824 cat conftest.err >&5
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); } &&
39827 { ac_try='test -z "$ac_c_werror_flag"
39828 || test ! -s conftest.err'
39829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830 (eval $ac_try) 2>&5
39832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833 (exit $ac_status); }; } &&
39834 { ac_try='test -s conftest.$ac_objext'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; }; then
39840 ac_cv_member_struct_stat_st_blksize=yes
39842 echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39845 ac_cv_member_struct_stat_st_blksize=no
39847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39852 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39853 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39855 cat >>confdefs.h <<_ACEOF
39856 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39862 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39863 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39864 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39865 echo $ECHO_N "(cached) $ECHO_C" >&6
39867 cat >conftest.$ac_ext <<_ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h. */
39873 $ac_includes_default
39879 static struct passwd ac_aggr;
39880 if (ac_aggr.pw_gecos)
39886 rm -f conftest.$ac_objext
39887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39888 (eval $ac_compile) 2>conftest.er1
39890 grep -v '^ *+' conftest.er1 >conftest.err
39892 cat conftest.err >&5
39893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894 (exit $ac_status); } &&
39895 { ac_try='test -z "$ac_c_werror_flag"
39896 || test ! -s conftest.err'
39897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39898 (eval $ac_try) 2>&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); }; } &&
39902 { ac_try='test -s conftest.$ac_objext'
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; }; then
39908 ac_cv_member_struct_passwd_pw_gecos=yes
39910 echo "$as_me: failed program was:" >&5
39911 sed 's/^/| /' conftest.$ac_ext >&5
39913 cat >conftest.$ac_ext <<_ACEOF
39916 cat confdefs.h >>conftest.$ac_ext
39917 cat >>conftest.$ac_ext <<_ACEOF
39918 /* end confdefs.h. */
39919 $ac_includes_default
39925 static struct passwd ac_aggr;
39926 if (sizeof ac_aggr.pw_gecos)
39932 rm -f conftest.$ac_objext
39933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39934 (eval $ac_compile) 2>conftest.er1
39936 grep -v '^ *+' conftest.er1 >conftest.err
39938 cat conftest.err >&5
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); } &&
39941 { ac_try='test -z "$ac_c_werror_flag"
39942 || test ! -s conftest.err'
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; } &&
39948 { ac_try='test -s conftest.$ac_objext'
39949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950 (eval $ac_try) 2>&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); }; }; then
39954 ac_cv_member_struct_passwd_pw_gecos=yes
39956 echo "$as_me: failed program was:" >&5
39957 sed 's/^/| /' conftest.$ac_ext >&5
39959 ac_cv_member_struct_passwd_pw_gecos=no
39961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39966 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39967 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39969 cat >>confdefs.h <<_ACEOF
39970 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39976 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39977 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39978 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39979 echo $ECHO_N "(cached) $ECHO_C" >&6
39981 cat >conftest.$ac_ext <<_ACEOF
39984 cat confdefs.h >>conftest.$ac_ext
39985 cat >>conftest.$ac_ext <<_ACEOF
39986 /* end confdefs.h. */
39987 $ac_includes_default
39993 static struct passwd ac_aggr;
39994 if (ac_aggr.pw_passwd)
40000 rm -f conftest.$ac_objext
40001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40002 (eval $ac_compile) 2>conftest.er1
40004 grep -v '^ *+' conftest.er1 >conftest.err
40006 cat conftest.err >&5
40007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008 (exit $ac_status); } &&
40009 { ac_try='test -z "$ac_c_werror_flag"
40010 || test ! -s conftest.err'
40011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012 (eval $ac_try) 2>&5
40014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; } &&
40016 { ac_try='test -s conftest.$ac_objext'
40017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40018 (eval $ac_try) 2>&5
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); }; }; then
40022 ac_cv_member_struct_passwd_pw_passwd=yes
40024 echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40027 cat >conftest.$ac_ext <<_ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h. */
40033 $ac_includes_default
40039 static struct passwd ac_aggr;
40040 if (sizeof ac_aggr.pw_passwd)
40046 rm -f conftest.$ac_objext
40047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40048 (eval $ac_compile) 2>conftest.er1
40050 grep -v '^ *+' conftest.er1 >conftest.err
40052 cat conftest.err >&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); } &&
40055 { ac_try='test -z "$ac_c_werror_flag"
40056 || test ! -s conftest.err'
40057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40058 (eval $ac_try) 2>&5
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); }; } &&
40062 { ac_try='test -s conftest.$ac_objext'
40063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064 (eval $ac_try) 2>&5
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); }; }; then
40068 ac_cv_member_struct_passwd_pw_passwd=yes
40070 echo "$as_me: failed program was:" >&5
40071 sed 's/^/| /' conftest.$ac_ext >&5
40073 ac_cv_member_struct_passwd_pw_passwd=no
40075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40079 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40080 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40081 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40083 cat >>confdefs.h <<_ACEOF
40084 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40091 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40092 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40093 if test "${ol_cv_c_upper_lower+set}" = set; then
40094 echo $ECHO_N "(cached) $ECHO_C" >&6
40097 if test "$cross_compiling" = yes; then
40098 ol_cv_c_upper_lower=safe
40100 cat >conftest.$ac_ext <<_ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h. */
40110 if ('C' == toupper('C'))
40116 rm -f conftest$ac_exeext
40117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40118 (eval $ac_link) 2>&5
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40123 (eval $ac_try) 2>&5
40125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126 (exit $ac_status); }; }; then
40127 ol_cv_c_upper_lower=no
40129 echo "$as_me: program exited with status $ac_status" >&5
40130 echo "$as_me: failed program was:" >&5
40131 sed 's/^/| /' conftest.$ac_ext >&5
40133 ( exit $ac_status )
40134 ol_cv_c_upper_lower=yes
40136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40139 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40140 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40141 if test $ol_cv_c_upper_lower != no ; then
40143 cat >>confdefs.h <<\_ACEOF
40144 #define C_UPPER_LOWER 1
40149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40151 if test "${ac_cv_c_const+set}" = set; then
40152 echo $ECHO_N "(cached) $ECHO_C" >&6
40154 cat >conftest.$ac_ext <<_ACEOF
40157 cat confdefs.h >>conftest.$ac_ext
40158 cat >>conftest.$ac_ext <<_ACEOF
40159 /* end confdefs.h. */
40164 /* FIXME: Include the comments suggested by Paul. */
40165 #ifndef __cplusplus
40166 /* Ultrix mips cc rejects this. */
40167 typedef int charset[2];
40169 /* SunOS 4.1.1 cc rejects this. */
40170 char const *const *ccp;
40172 /* NEC SVR4.0.2 mips cc rejects this. */
40173 struct point {int x, y;};
40174 static struct point const zero = {0,0};
40175 /* AIX XL C 1.02.0.0 rejects this.
40176 It does not let you subtract one const X* pointer from another in
40177 an arm of an if-expression whose if-part is not a constant
40179 const char *g = "string";
40180 ccp = &g + (g ? g-g : 0);
40181 /* HPUX 7.0 cc rejects these. */
40184 ccp = (char const *const *) p;
40185 { /* SCO 3.2v4 cc rejects this. */
40187 char const *s = 0 ? (char *) 0 : (char const *) 0;
40191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40192 int x[] = {25, 17};
40193 const int *foo = &x[0];
40196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40197 typedef const int *iptr;
40201 { /* AIX XL C 1.02.0.0 rejects this saying
40202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40203 struct s { int j; const int *ap[3]; };
40204 struct s *b; b->j = 5;
40206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40207 const int foo = 10;
40215 rm -f conftest.$ac_objext
40216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40217 (eval $ac_compile) 2>conftest.er1
40219 grep -v '^ *+' conftest.er1 >conftest.err
40221 cat conftest.err >&5
40222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); } &&
40224 { ac_try='test -z "$ac_c_werror_flag"
40225 || test ! -s conftest.err'
40226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40227 (eval $ac_try) 2>&5
40229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230 (exit $ac_status); }; } &&
40231 { ac_try='test -s conftest.$ac_objext'
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; }; then
40239 echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40247 echo "${ECHO_T}$ac_cv_c_const" >&6
40248 if test $ac_cv_c_const = no; then
40250 cat >>confdefs.h <<\_ACEOF
40256 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40257 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40258 if test "${ol_cv_c_volatile+set}" = set; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40261 cat >conftest.$ac_ext <<_ACEOF
40264 cat confdefs.h >>conftest.$ac_ext
40265 cat >>conftest.$ac_ext <<_ACEOF
40266 /* end confdefs.h. */
40271 volatile int a; int * volatile b = x ? &y : &z;
40272 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40278 rm -f conftest.$ac_objext
40279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40280 (eval $ac_compile) 2>conftest.er1
40282 grep -v '^ *+' conftest.er1 >conftest.err
40284 cat conftest.err >&5
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); } &&
40287 { ac_try='test -z "$ac_c_werror_flag"
40288 || test ! -s conftest.err'
40289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290 (eval $ac_try) 2>&5
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); }; } &&
40294 { ac_try='test -s conftest.$ac_objext'
40295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40296 (eval $ac_try) 2>&5
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); }; }; then
40300 ol_cv_c_volatile=yes
40302 echo "$as_me: failed program was:" >&5
40303 sed 's/^/| /' conftest.$ac_ext >&5
40305 ol_cv_c_volatile=no
40307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40309 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40310 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40311 if test $ol_cv_c_volatile = yes; then
40315 cat >>confdefs.h <<\_ACEOF
40322 if test $cross_compiling = yes ; then
40323 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40324 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40326 cat >>confdefs.h <<\_ACEOF
40327 #define CROSS_COMPILING 1
40331 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40332 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40333 if test "${ac_cv_c_bigendian+set}" = set; then
40334 echo $ECHO_N "(cached) $ECHO_C" >&6
40336 # See if sys/param.h defines the BYTE_ORDER macro.
40337 cat >conftest.$ac_ext <<_ACEOF
40340 cat confdefs.h >>conftest.$ac_ext
40341 cat >>conftest.$ac_ext <<_ACEOF
40342 /* end confdefs.h. */
40343 #include <sys/types.h>
40344 #include <sys/param.h>
40349 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40350 bogus endian macros
40357 rm -f conftest.$ac_objext
40358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40359 (eval $ac_compile) 2>conftest.er1
40361 grep -v '^ *+' conftest.er1 >conftest.err
40363 cat conftest.err >&5
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); } &&
40366 { ac_try='test -z "$ac_c_werror_flag"
40367 || test ! -s conftest.err'
40368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369 (eval $ac_try) 2>&5
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); }; } &&
40373 { ac_try='test -s conftest.$ac_objext'
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375 (eval $ac_try) 2>&5
40377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; }; then
40379 # It does; now see whether it defined to BIG_ENDIAN or not.
40380 cat >conftest.$ac_ext <<_ACEOF
40383 cat confdefs.h >>conftest.$ac_ext
40384 cat >>conftest.$ac_ext <<_ACEOF
40385 /* end confdefs.h. */
40386 #include <sys/types.h>
40387 #include <sys/param.h>
40392 #if BYTE_ORDER != BIG_ENDIAN
40400 rm -f conftest.$ac_objext
40401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40402 (eval $ac_compile) 2>conftest.er1
40404 grep -v '^ *+' conftest.er1 >conftest.err
40406 cat conftest.err >&5
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); } &&
40409 { ac_try='test -z "$ac_c_werror_flag"
40410 || test ! -s conftest.err'
40411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40412 (eval $ac_try) 2>&5
40414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415 (exit $ac_status); }; } &&
40416 { ac_try='test -s conftest.$ac_objext'
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; }; then
40422 ac_cv_c_bigendian=yes
40424 echo "$as_me: failed program was:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40427 ac_cv_c_bigendian=no
40429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40431 echo "$as_me: failed program was:" >&5
40432 sed 's/^/| /' conftest.$ac_ext >&5
40434 # It does not; compile a test program.
40435 if test "$cross_compiling" = yes; then
40436 # try to guess the endianness by grepping values into an object file
40437 ac_cv_c_bigendian=unknown
40438 cat >conftest.$ac_ext <<_ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h. */
40444 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40445 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40446 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40447 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40448 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40449 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40453 _ascii (); _ebcdic ();
40458 rm -f conftest.$ac_objext
40459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40460 (eval $ac_compile) 2>conftest.er1
40462 grep -v '^ *+' conftest.er1 >conftest.err
40464 cat conftest.err >&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } &&
40467 { ac_try='test -z "$ac_c_werror_flag"
40468 || test ! -s conftest.err'
40469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470 (eval $ac_try) 2>&5
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); }; } &&
40474 { ac_try='test -s conftest.$ac_objext'
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; }; then
40480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40481 ac_cv_c_bigendian=yes
40483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40484 if test "$ac_cv_c_bigendian" = unknown; then
40485 ac_cv_c_bigendian=no
40487 # finding both strings is unlikely to happen, but who knows?
40488 ac_cv_c_bigendian=unknown
40492 echo "$as_me: failed program was:" >&5
40493 sed 's/^/| /' conftest.$ac_ext >&5
40496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40498 cat >conftest.$ac_ext <<_ACEOF
40501 cat confdefs.h >>conftest.$ac_ext
40502 cat >>conftest.$ac_ext <<_ACEOF
40503 /* end confdefs.h. */
40507 /* Are we little or big endian? From Harbison&Steele. */
40511 char c[sizeof (long)];
40514 exit (u.c[sizeof (long) - 1] == 1);
40517 rm -f conftest$ac_exeext
40518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40519 (eval $ac_link) 2>&5
40521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524 (eval $ac_try) 2>&5
40526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527 (exit $ac_status); }; }; then
40528 ac_cv_c_bigendian=no
40530 echo "$as_me: program exited with status $ac_status" >&5
40531 echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40534 ( exit $ac_status )
40535 ac_cv_c_bigendian=yes
40537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40542 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40543 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40544 case $ac_cv_c_bigendian in
40547 cat >>confdefs.h <<\_ACEOF
40548 #define WORDS_BIGENDIAN 1
40554 { { echo "$as_me:$LINENO: error: unknown endianness
40555 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40556 echo "$as_me: error: unknown endianness
40557 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40558 { (exit 1); exit 1; }; } ;;
40563 echo "$as_me:$LINENO: checking for short" >&5
40564 echo $ECHO_N "checking for short... $ECHO_C" >&6
40565 if test "${ac_cv_type_short+set}" = set; then
40566 echo $ECHO_N "(cached) $ECHO_C" >&6
40568 cat >conftest.$ac_ext <<_ACEOF
40571 cat confdefs.h >>conftest.$ac_ext
40572 cat >>conftest.$ac_ext <<_ACEOF
40573 /* end confdefs.h. */
40574 $ac_includes_default
40580 if (sizeof (short))
40586 rm -f conftest.$ac_objext
40587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40588 (eval $ac_compile) 2>conftest.er1
40590 grep -v '^ *+' conftest.er1 >conftest.err
40592 cat conftest.err >&5
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); } &&
40595 { ac_try='test -z "$ac_c_werror_flag"
40596 || test ! -s conftest.err'
40597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40598 (eval $ac_try) 2>&5
40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601 (exit $ac_status); }; } &&
40602 { ac_try='test -s conftest.$ac_objext'
40603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40604 (eval $ac_try) 2>&5
40606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607 (exit $ac_status); }; }; then
40608 ac_cv_type_short=yes
40610 echo "$as_me: failed program was:" >&5
40611 sed 's/^/| /' conftest.$ac_ext >&5
40613 ac_cv_type_short=no
40615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40617 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40618 echo "${ECHO_T}$ac_cv_type_short" >&6
40620 echo "$as_me:$LINENO: checking size of short" >&5
40621 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40622 if test "${ac_cv_sizeof_short+set}" = set; then
40623 echo $ECHO_N "(cached) $ECHO_C" >&6
40625 if test "$ac_cv_type_short" = yes; then
40626 # The cast to unsigned long works around a bug in the HP C Compiler
40627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40629 # This bug is HP SR number 8606223364.
40630 if test "$cross_compiling" = yes; then
40631 # Depending upon the size, compute the lo and hi bounds.
40632 cat >conftest.$ac_ext <<_ACEOF
40635 cat confdefs.h >>conftest.$ac_ext
40636 cat >>conftest.$ac_ext <<_ACEOF
40637 /* end confdefs.h. */
40638 $ac_includes_default
40642 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40649 rm -f conftest.$ac_objext
40650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40651 (eval $ac_compile) 2>conftest.er1
40653 grep -v '^ *+' conftest.er1 >conftest.err
40655 cat conftest.err >&5
40656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657 (exit $ac_status); } &&
40658 { ac_try='test -z "$ac_c_werror_flag"
40659 || test ! -s conftest.err'
40660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661 (eval $ac_try) 2>&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); }; } &&
40665 { ac_try='test -s conftest.$ac_objext'
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; }; then
40673 cat >conftest.$ac_ext <<_ACEOF
40676 cat confdefs.h >>conftest.$ac_ext
40677 cat >>conftest.$ac_ext <<_ACEOF
40678 /* end confdefs.h. */
40679 $ac_includes_default
40683 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40690 rm -f conftest.$ac_objext
40691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40692 (eval $ac_compile) 2>conftest.er1
40694 grep -v '^ *+' conftest.er1 >conftest.err
40696 cat conftest.err >&5
40697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698 (exit $ac_status); } &&
40699 { ac_try='test -z "$ac_c_werror_flag"
40700 || test ! -s conftest.err'
40701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702 (eval $ac_try) 2>&5
40704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705 (exit $ac_status); }; } &&
40706 { ac_try='test -s conftest.$ac_objext'
40707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40708 (eval $ac_try) 2>&5
40710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711 (exit $ac_status); }; }; then
40712 ac_hi=$ac_mid; break
40714 echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40717 ac_lo=`expr $ac_mid + 1`
40718 if test $ac_lo -le $ac_mid; then
40722 ac_mid=`expr 2 '*' $ac_mid + 1`
40724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40727 echo "$as_me: failed program was:" >&5
40728 sed 's/^/| /' conftest.$ac_ext >&5
40730 cat >conftest.$ac_ext <<_ACEOF
40733 cat confdefs.h >>conftest.$ac_ext
40734 cat >>conftest.$ac_ext <<_ACEOF
40735 /* end confdefs.h. */
40736 $ac_includes_default
40740 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40747 rm -f conftest.$ac_objext
40748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40749 (eval $ac_compile) 2>conftest.er1
40751 grep -v '^ *+' conftest.er1 >conftest.err
40753 cat conftest.err >&5
40754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755 (exit $ac_status); } &&
40756 { ac_try='test -z "$ac_c_werror_flag"
40757 || test ! -s conftest.err'
40758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40759 (eval $ac_try) 2>&5
40761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762 (exit $ac_status); }; } &&
40763 { ac_try='test -s conftest.$ac_objext'
40764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765 (eval $ac_try) 2>&5
40767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768 (exit $ac_status); }; }; then
40771 cat >conftest.$ac_ext <<_ACEOF
40774 cat confdefs.h >>conftest.$ac_ext
40775 cat >>conftest.$ac_ext <<_ACEOF
40776 /* end confdefs.h. */
40777 $ac_includes_default
40781 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40788 rm -f conftest.$ac_objext
40789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40790 (eval $ac_compile) 2>conftest.er1
40792 grep -v '^ *+' conftest.er1 >conftest.err
40794 cat conftest.err >&5
40795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); } &&
40797 { ac_try='test -z "$ac_c_werror_flag"
40798 || test ! -s conftest.err'
40799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800 (eval $ac_try) 2>&5
40802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803 (exit $ac_status); }; } &&
40804 { ac_try='test -s conftest.$ac_objext'
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; }; then
40810 ac_lo=$ac_mid; break
40812 echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40815 ac_hi=`expr '(' $ac_mid ')' - 1`
40816 if test $ac_mid -le $ac_hi; then
40820 ac_mid=`expr 2 '*' $ac_mid`
40822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40825 echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40833 # Binary search between lo and hi bounds.
40834 while test "x$ac_lo" != "x$ac_hi"; do
40835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40836 cat >conftest.$ac_ext <<_ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h. */
40842 $ac_includes_default
40846 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40853 rm -f conftest.$ac_objext
40854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40855 (eval $ac_compile) 2>conftest.er1
40857 grep -v '^ *+' conftest.er1 >conftest.err
40859 cat conftest.err >&5
40860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861 (exit $ac_status); } &&
40862 { ac_try='test -z "$ac_c_werror_flag"
40863 || test ! -s conftest.err'
40864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865 (eval $ac_try) 2>&5
40867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868 (exit $ac_status); }; } &&
40869 { ac_try='test -s conftest.$ac_objext'
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871 (eval $ac_try) 2>&5
40873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; }; then
40877 echo "$as_me: failed program was:" >&5
40878 sed 's/^/| /' conftest.$ac_ext >&5
40880 ac_lo=`expr '(' $ac_mid ')' + 1`
40882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40885 ?*) ac_cv_sizeof_short=$ac_lo;;
40886 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40887 See \`config.log' for more details." >&5
40888 echo "$as_me: error: cannot compute sizeof (short), 77
40889 See \`config.log' for more details." >&2;}
40890 { (exit 1); exit 1; }; } ;;
40893 if test "$cross_compiling" = yes; then
40894 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40895 See \`config.log' for more details." >&5
40896 echo "$as_me: error: cannot run test program while cross compiling
40897 See \`config.log' for more details." >&2;}
40898 { (exit 1); exit 1; }; }
40900 cat >conftest.$ac_ext <<_ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h. */
40906 $ac_includes_default
40907 long longval () { return (long) (sizeof (short)); }
40908 unsigned long ulongval () { return (long) (sizeof (short)); }
40910 #include <stdlib.h>
40915 FILE *f = fopen ("conftest.val", "w");
40918 if (((long) (sizeof (short))) < 0)
40920 long i = longval ();
40921 if (i != ((long) (sizeof (short))))
40923 fprintf (f, "%ld\n", i);
40927 unsigned long i = ulongval ();
40928 if (i != ((long) (sizeof (short))))
40930 fprintf (f, "%lu\n", i);
40932 exit (ferror (f) || fclose (f) != 0);
40938 rm -f conftest$ac_exeext
40939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40940 (eval $ac_link) 2>&5
40942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945 (eval $ac_try) 2>&5
40947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; }; then
40949 ac_cv_sizeof_short=`cat conftest.val`
40951 echo "$as_me: program exited with status $ac_status" >&5
40952 echo "$as_me: failed program was:" >&5
40953 sed 's/^/| /' conftest.$ac_ext >&5
40955 ( exit $ac_status )
40956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40957 See \`config.log' for more details." >&5
40958 echo "$as_me: error: cannot compute sizeof (short), 77
40959 See \`config.log' for more details." >&2;}
40960 { (exit 1); exit 1; }; }
40962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40967 ac_cv_sizeof_short=0
40970 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40971 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40972 cat >>confdefs.h <<_ACEOF
40973 #define SIZEOF_SHORT $ac_cv_sizeof_short
40977 echo "$as_me:$LINENO: checking for int" >&5
40978 echo $ECHO_N "checking for int... $ECHO_C" >&6
40979 if test "${ac_cv_type_int+set}" = set; then
40980 echo $ECHO_N "(cached) $ECHO_C" >&6
40982 cat >conftest.$ac_ext <<_ACEOF
40985 cat confdefs.h >>conftest.$ac_ext
40986 cat >>conftest.$ac_ext <<_ACEOF
40987 /* end confdefs.h. */
40988 $ac_includes_default
41000 rm -f conftest.$ac_objext
41001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41002 (eval $ac_compile) 2>conftest.er1
41004 grep -v '^ *+' conftest.er1 >conftest.err
41006 cat conftest.err >&5
41007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41008 (exit $ac_status); } &&
41009 { ac_try='test -z "$ac_c_werror_flag"
41010 || test ! -s conftest.err'
41011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41012 (eval $ac_try) 2>&5
41014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015 (exit $ac_status); }; } &&
41016 { ac_try='test -s conftest.$ac_objext'
41017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41018 (eval $ac_try) 2>&5
41020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021 (exit $ac_status); }; }; then
41024 echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41031 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41032 echo "${ECHO_T}$ac_cv_type_int" >&6
41034 echo "$as_me:$LINENO: checking size of int" >&5
41035 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41036 if test "${ac_cv_sizeof_int+set}" = set; then
41037 echo $ECHO_N "(cached) $ECHO_C" >&6
41039 if test "$ac_cv_type_int" = yes; then
41040 # The cast to unsigned long works around a bug in the HP C Compiler
41041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41043 # This bug is HP SR number 8606223364.
41044 if test "$cross_compiling" = yes; then
41045 # Depending upon the size, compute the lo and hi bounds.
41046 cat >conftest.$ac_ext <<_ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h. */
41052 $ac_includes_default
41056 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41063 rm -f conftest.$ac_objext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41065 (eval $ac_compile) 2>conftest.er1
41067 grep -v '^ *+' conftest.er1 >conftest.err
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } &&
41072 { ac_try='test -z "$ac_c_werror_flag"
41073 || test ! -s conftest.err'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; } &&
41079 { ac_try='test -s conftest.$ac_objext'
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; }; then
41087 cat >conftest.$ac_ext <<_ACEOF
41090 cat confdefs.h >>conftest.$ac_ext
41091 cat >>conftest.$ac_ext <<_ACEOF
41092 /* end confdefs.h. */
41093 $ac_includes_default
41097 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41104 rm -f conftest.$ac_objext
41105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41106 (eval $ac_compile) 2>conftest.er1
41108 grep -v '^ *+' conftest.er1 >conftest.err
41110 cat conftest.err >&5
41111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112 (exit $ac_status); } &&
41113 { ac_try='test -z "$ac_c_werror_flag"
41114 || test ! -s conftest.err'
41115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41116 (eval $ac_try) 2>&5
41118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119 (exit $ac_status); }; } &&
41120 { ac_try='test -s conftest.$ac_objext'
41121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122 (eval $ac_try) 2>&5
41124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125 (exit $ac_status); }; }; then
41126 ac_hi=$ac_mid; break
41128 echo "$as_me: failed program was:" >&5
41129 sed 's/^/| /' conftest.$ac_ext >&5
41131 ac_lo=`expr $ac_mid + 1`
41132 if test $ac_lo -le $ac_mid; then
41136 ac_mid=`expr 2 '*' $ac_mid + 1`
41138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41141 echo "$as_me: failed program was:" >&5
41142 sed 's/^/| /' conftest.$ac_ext >&5
41144 cat >conftest.$ac_ext <<_ACEOF
41147 cat confdefs.h >>conftest.$ac_ext
41148 cat >>conftest.$ac_ext <<_ACEOF
41149 /* end confdefs.h. */
41150 $ac_includes_default
41154 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41161 rm -f conftest.$ac_objext
41162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41163 (eval $ac_compile) 2>conftest.er1
41165 grep -v '^ *+' conftest.er1 >conftest.err
41167 cat conftest.err >&5
41168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169 (exit $ac_status); } &&
41170 { ac_try='test -z "$ac_c_werror_flag"
41171 || test ! -s conftest.err'
41172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41173 (eval $ac_try) 2>&5
41175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41176 (exit $ac_status); }; } &&
41177 { ac_try='test -s conftest.$ac_objext'
41178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41179 (eval $ac_try) 2>&5
41181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182 (exit $ac_status); }; }; then
41185 cat >conftest.$ac_ext <<_ACEOF
41188 cat confdefs.h >>conftest.$ac_ext
41189 cat >>conftest.$ac_ext <<_ACEOF
41190 /* end confdefs.h. */
41191 $ac_includes_default
41195 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41202 rm -f conftest.$ac_objext
41203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41204 (eval $ac_compile) 2>conftest.er1
41206 grep -v '^ *+' conftest.er1 >conftest.err
41208 cat conftest.err >&5
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); } &&
41211 { ac_try='test -z "$ac_c_werror_flag"
41212 || test ! -s conftest.err'
41213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41214 (eval $ac_try) 2>&5
41216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41217 (exit $ac_status); }; } &&
41218 { ac_try='test -s conftest.$ac_objext'
41219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41220 (eval $ac_try) 2>&5
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); }; }; then
41224 ac_lo=$ac_mid; break
41226 echo "$as_me: failed program was:" >&5
41227 sed 's/^/| /' conftest.$ac_ext >&5
41229 ac_hi=`expr '(' $ac_mid ')' - 1`
41230 if test $ac_mid -le $ac_hi; then
41234 ac_mid=`expr 2 '*' $ac_mid`
41236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41239 echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41247 # Binary search between lo and hi bounds.
41248 while test "x$ac_lo" != "x$ac_hi"; do
41249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41250 cat >conftest.$ac_ext <<_ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h. */
41256 $ac_includes_default
41260 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41267 rm -f conftest.$ac_objext
41268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41269 (eval $ac_compile) 2>conftest.er1
41271 grep -v '^ *+' conftest.er1 >conftest.err
41273 cat conftest.err >&5
41274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275 (exit $ac_status); } &&
41276 { ac_try='test -z "$ac_c_werror_flag"
41277 || test ! -s conftest.err'
41278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41279 (eval $ac_try) 2>&5
41281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282 (exit $ac_status); }; } &&
41283 { ac_try='test -s conftest.$ac_objext'
41284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41285 (eval $ac_try) 2>&5
41287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288 (exit $ac_status); }; }; then
41291 echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41294 ac_lo=`expr '(' $ac_mid ')' + 1`
41296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41299 ?*) ac_cv_sizeof_int=$ac_lo;;
41300 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41301 See \`config.log' for more details." >&5
41302 echo "$as_me: error: cannot compute sizeof (int), 77
41303 See \`config.log' for more details." >&2;}
41304 { (exit 1); exit 1; }; } ;;
41307 if test "$cross_compiling" = yes; then
41308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41309 See \`config.log' for more details." >&5
41310 echo "$as_me: error: cannot run test program while cross compiling
41311 See \`config.log' for more details." >&2;}
41312 { (exit 1); exit 1; }; }
41314 cat >conftest.$ac_ext <<_ACEOF
41317 cat confdefs.h >>conftest.$ac_ext
41318 cat >>conftest.$ac_ext <<_ACEOF
41319 /* end confdefs.h. */
41320 $ac_includes_default
41321 long longval () { return (long) (sizeof (int)); }
41322 unsigned long ulongval () { return (long) (sizeof (int)); }
41324 #include <stdlib.h>
41329 FILE *f = fopen ("conftest.val", "w");
41332 if (((long) (sizeof (int))) < 0)
41334 long i = longval ();
41335 if (i != ((long) (sizeof (int))))
41337 fprintf (f, "%ld\n", i);
41341 unsigned long i = ulongval ();
41342 if (i != ((long) (sizeof (int))))
41344 fprintf (f, "%lu\n", i);
41346 exit (ferror (f) || fclose (f) != 0);
41352 rm -f conftest$ac_exeext
41353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41354 (eval $ac_link) 2>&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359 (eval $ac_try) 2>&5
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_sizeof_int=`cat conftest.val`
41365 echo "$as_me: program exited with status $ac_status" >&5
41366 echo "$as_me: failed program was:" >&5
41367 sed 's/^/| /' conftest.$ac_ext >&5
41369 ( exit $ac_status )
41370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41371 See \`config.log' for more details." >&5
41372 echo "$as_me: error: cannot compute sizeof (int), 77
41373 See \`config.log' for more details." >&2;}
41374 { (exit 1); exit 1; }; }
41376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41384 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41385 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41386 cat >>confdefs.h <<_ACEOF
41387 #define SIZEOF_INT $ac_cv_sizeof_int
41391 echo "$as_me:$LINENO: checking for long" >&5
41392 echo $ECHO_N "checking for long... $ECHO_C" >&6
41393 if test "${ac_cv_type_long+set}" = set; then
41394 echo $ECHO_N "(cached) $ECHO_C" >&6
41396 cat >conftest.$ac_ext <<_ACEOF
41399 cat confdefs.h >>conftest.$ac_ext
41400 cat >>conftest.$ac_ext <<_ACEOF
41401 /* end confdefs.h. */
41402 $ac_includes_default
41414 rm -f conftest.$ac_objext
41415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41416 (eval $ac_compile) 2>conftest.er1
41418 grep -v '^ *+' conftest.er1 >conftest.err
41420 cat conftest.err >&5
41421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422 (exit $ac_status); } &&
41423 { ac_try='test -z "$ac_c_werror_flag"
41424 || test ! -s conftest.err'
41425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41426 (eval $ac_try) 2>&5
41428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429 (exit $ac_status); }; } &&
41430 { ac_try='test -s conftest.$ac_objext'
41431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41432 (eval $ac_try) 2>&5
41434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); }; }; then
41436 ac_cv_type_long=yes
41438 echo "$as_me: failed program was:" >&5
41439 sed 's/^/| /' conftest.$ac_ext >&5
41443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41445 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41446 echo "${ECHO_T}$ac_cv_type_long" >&6
41448 echo "$as_me:$LINENO: checking size of long" >&5
41449 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41450 if test "${ac_cv_sizeof_long+set}" = set; then
41451 echo $ECHO_N "(cached) $ECHO_C" >&6
41453 if test "$ac_cv_type_long" = yes; then
41454 # The cast to unsigned long works around a bug in the HP C Compiler
41455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41457 # This bug is HP SR number 8606223364.
41458 if test "$cross_compiling" = yes; then
41459 # Depending upon the size, compute the lo and hi bounds.
41460 cat >conftest.$ac_ext <<_ACEOF
41463 cat confdefs.h >>conftest.$ac_ext
41464 cat >>conftest.$ac_ext <<_ACEOF
41465 /* end confdefs.h. */
41466 $ac_includes_default
41470 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41477 rm -f conftest.$ac_objext
41478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41479 (eval $ac_compile) 2>conftest.er1
41481 grep -v '^ *+' conftest.er1 >conftest.err
41483 cat conftest.err >&5
41484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); } &&
41486 { ac_try='test -z "$ac_c_werror_flag"
41487 || test ! -s conftest.err'
41488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41489 (eval $ac_try) 2>&5
41491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492 (exit $ac_status); }; } &&
41493 { ac_try='test -s conftest.$ac_objext'
41494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495 (eval $ac_try) 2>&5
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); }; }; then
41501 cat >conftest.$ac_ext <<_ACEOF
41504 cat confdefs.h >>conftest.$ac_ext
41505 cat >>conftest.$ac_ext <<_ACEOF
41506 /* end confdefs.h. */
41507 $ac_includes_default
41511 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41518 rm -f conftest.$ac_objext
41519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41520 (eval $ac_compile) 2>conftest.er1
41522 grep -v '^ *+' conftest.er1 >conftest.err
41524 cat conftest.err >&5
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); } &&
41527 { ac_try='test -z "$ac_c_werror_flag"
41528 || test ! -s conftest.err'
41529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41530 (eval $ac_try) 2>&5
41532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533 (exit $ac_status); }; } &&
41534 { ac_try='test -s conftest.$ac_objext'
41535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41536 (eval $ac_try) 2>&5
41538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); }; }; then
41540 ac_hi=$ac_mid; break
41542 echo "$as_me: failed program was:" >&5
41543 sed 's/^/| /' conftest.$ac_ext >&5
41545 ac_lo=`expr $ac_mid + 1`
41546 if test $ac_lo -le $ac_mid; then
41550 ac_mid=`expr 2 '*' $ac_mid + 1`
41552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41555 echo "$as_me: failed program was:" >&5
41556 sed 's/^/| /' conftest.$ac_ext >&5
41558 cat >conftest.$ac_ext <<_ACEOF
41561 cat confdefs.h >>conftest.$ac_ext
41562 cat >>conftest.$ac_ext <<_ACEOF
41563 /* end confdefs.h. */
41564 $ac_includes_default
41568 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41575 rm -f conftest.$ac_objext
41576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41577 (eval $ac_compile) 2>conftest.er1
41579 grep -v '^ *+' conftest.er1 >conftest.err
41581 cat conftest.err >&5
41582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41583 (exit $ac_status); } &&
41584 { ac_try='test -z "$ac_c_werror_flag"
41585 || test ! -s conftest.err'
41586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41587 (eval $ac_try) 2>&5
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); }; } &&
41591 { ac_try='test -s conftest.$ac_objext'
41592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593 (eval $ac_try) 2>&5
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); }; }; then
41599 cat >conftest.$ac_ext <<_ACEOF
41602 cat confdefs.h >>conftest.$ac_ext
41603 cat >>conftest.$ac_ext <<_ACEOF
41604 /* end confdefs.h. */
41605 $ac_includes_default
41609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41616 rm -f conftest.$ac_objext
41617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41618 (eval $ac_compile) 2>conftest.er1
41620 grep -v '^ *+' conftest.er1 >conftest.err
41622 cat conftest.err >&5
41623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41624 (exit $ac_status); } &&
41625 { ac_try='test -z "$ac_c_werror_flag"
41626 || test ! -s conftest.err'
41627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41628 (eval $ac_try) 2>&5
41630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631 (exit $ac_status); }; } &&
41632 { ac_try='test -s conftest.$ac_objext'
41633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41634 (eval $ac_try) 2>&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); }; }; then
41638 ac_lo=$ac_mid; break
41640 echo "$as_me: failed program was:" >&5
41641 sed 's/^/| /' conftest.$ac_ext >&5
41643 ac_hi=`expr '(' $ac_mid ')' - 1`
41644 if test $ac_mid -le $ac_hi; then
41648 ac_mid=`expr 2 '*' $ac_mid`
41650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41653 echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41661 # Binary search between lo and hi bounds.
41662 while test "x$ac_lo" != "x$ac_hi"; do
41663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41664 cat >conftest.$ac_ext <<_ACEOF
41667 cat confdefs.h >>conftest.$ac_ext
41668 cat >>conftest.$ac_ext <<_ACEOF
41669 /* end confdefs.h. */
41670 $ac_includes_default
41674 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41681 rm -f conftest.$ac_objext
41682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41683 (eval $ac_compile) 2>conftest.er1
41685 grep -v '^ *+' conftest.er1 >conftest.err
41687 cat conftest.err >&5
41688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689 (exit $ac_status); } &&
41690 { ac_try='test -z "$ac_c_werror_flag"
41691 || test ! -s conftest.err'
41692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693 (eval $ac_try) 2>&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); }; } &&
41697 { ac_try='test -s conftest.$ac_objext'
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; }; then
41705 echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41708 ac_lo=`expr '(' $ac_mid ')' + 1`
41710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41713 ?*) ac_cv_sizeof_long=$ac_lo;;
41714 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41715 See \`config.log' for more details." >&5
41716 echo "$as_me: error: cannot compute sizeof (long), 77
41717 See \`config.log' for more details." >&2;}
41718 { (exit 1); exit 1; }; } ;;
41721 if test "$cross_compiling" = yes; then
41722 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41723 See \`config.log' for more details." >&5
41724 echo "$as_me: error: cannot run test program while cross compiling
41725 See \`config.log' for more details." >&2;}
41726 { (exit 1); exit 1; }; }
41728 cat >conftest.$ac_ext <<_ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h. */
41734 $ac_includes_default
41735 long longval () { return (long) (sizeof (long)); }
41736 unsigned long ulongval () { return (long) (sizeof (long)); }
41738 #include <stdlib.h>
41743 FILE *f = fopen ("conftest.val", "w");
41746 if (((long) (sizeof (long))) < 0)
41748 long i = longval ();
41749 if (i != ((long) (sizeof (long))))
41751 fprintf (f, "%ld\n", i);
41755 unsigned long i = ulongval ();
41756 if (i != ((long) (sizeof (long))))
41758 fprintf (f, "%lu\n", i);
41760 exit (ferror (f) || fclose (f) != 0);
41766 rm -f conftest$ac_exeext
41767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41768 (eval $ac_link) 2>&5
41770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773 (eval $ac_try) 2>&5
41775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776 (exit $ac_status); }; }; then
41777 ac_cv_sizeof_long=`cat conftest.val`
41779 echo "$as_me: program exited with status $ac_status" >&5
41780 echo "$as_me: failed program was:" >&5
41781 sed 's/^/| /' conftest.$ac_ext >&5
41783 ( exit $ac_status )
41784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41785 See \`config.log' for more details." >&5
41786 echo "$as_me: error: cannot compute sizeof (long), 77
41787 See \`config.log' for more details." >&2;}
41788 { (exit 1); exit 1; }; }
41790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41795 ac_cv_sizeof_long=0
41798 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41799 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41800 cat >>confdefs.h <<_ACEOF
41801 #define SIZEOF_LONG $ac_cv_sizeof_long
41805 echo "$as_me:$LINENO: checking for wchar_t" >&5
41806 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41807 if test "${ac_cv_type_wchar_t+set}" = set; then
41808 echo $ECHO_N "(cached) $ECHO_C" >&6
41810 cat >conftest.$ac_ext <<_ACEOF
41813 cat confdefs.h >>conftest.$ac_ext
41814 cat >>conftest.$ac_ext <<_ACEOF
41815 /* end confdefs.h. */
41816 $ac_includes_default
41822 if (sizeof (wchar_t))
41828 rm -f conftest.$ac_objext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41830 (eval $ac_compile) 2>conftest.er1
41832 grep -v '^ *+' conftest.er1 >conftest.err
41834 cat conftest.err >&5
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); } &&
41837 { ac_try='test -z "$ac_c_werror_flag"
41838 || test ! -s conftest.err'
41839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840 (eval $ac_try) 2>&5
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); }; } &&
41844 { ac_try='test -s conftest.$ac_objext'
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; }; then
41850 ac_cv_type_wchar_t=yes
41852 echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41855 ac_cv_type_wchar_t=no
41857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41859 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41860 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41862 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41863 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41864 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41865 echo $ECHO_N "(cached) $ECHO_C" >&6
41867 if test "$ac_cv_type_wchar_t" = yes; then
41868 # The cast to unsigned long works around a bug in the HP C Compiler
41869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41871 # This bug is HP SR number 8606223364.
41872 if test "$cross_compiling" = yes; then
41873 # Depending upon the size, compute the lo and hi bounds.
41874 cat >conftest.$ac_ext <<_ACEOF
41877 cat confdefs.h >>conftest.$ac_ext
41878 cat >>conftest.$ac_ext <<_ACEOF
41879 /* end confdefs.h. */
41880 $ac_includes_default
41884 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41891 rm -f conftest.$ac_objext
41892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41893 (eval $ac_compile) 2>conftest.er1
41895 grep -v '^ *+' conftest.er1 >conftest.err
41897 cat conftest.err >&5
41898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899 (exit $ac_status); } &&
41900 { ac_try='test -z "$ac_c_werror_flag"
41901 || test ! -s conftest.err'
41902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41903 (eval $ac_try) 2>&5
41905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41906 (exit $ac_status); }; } &&
41907 { ac_try='test -s conftest.$ac_objext'
41908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41909 (eval $ac_try) 2>&5
41911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912 (exit $ac_status); }; }; then
41915 cat >conftest.$ac_ext <<_ACEOF
41918 cat confdefs.h >>conftest.$ac_ext
41919 cat >>conftest.$ac_ext <<_ACEOF
41920 /* end confdefs.h. */
41921 $ac_includes_default
41925 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41932 rm -f conftest.$ac_objext
41933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41934 (eval $ac_compile) 2>conftest.er1
41936 grep -v '^ *+' conftest.er1 >conftest.err
41938 cat conftest.err >&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); } &&
41941 { ac_try='test -z "$ac_c_werror_flag"
41942 || test ! -s conftest.err'
41943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41944 (eval $ac_try) 2>&5
41946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947 (exit $ac_status); }; } &&
41948 { ac_try='test -s conftest.$ac_objext'
41949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950 (eval $ac_try) 2>&5
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); }; }; then
41954 ac_hi=$ac_mid; break
41956 echo "$as_me: failed program was:" >&5
41957 sed 's/^/| /' conftest.$ac_ext >&5
41959 ac_lo=`expr $ac_mid + 1`
41960 if test $ac_lo -le $ac_mid; then
41964 ac_mid=`expr 2 '*' $ac_mid + 1`
41966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41969 echo "$as_me: failed program was:" >&5
41970 sed 's/^/| /' conftest.$ac_ext >&5
41972 cat >conftest.$ac_ext <<_ACEOF
41975 cat confdefs.h >>conftest.$ac_ext
41976 cat >>conftest.$ac_ext <<_ACEOF
41977 /* end confdefs.h. */
41978 $ac_includes_default
41982 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41989 rm -f conftest.$ac_objext
41990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41991 (eval $ac_compile) 2>conftest.er1
41993 grep -v '^ *+' conftest.er1 >conftest.err
41995 cat conftest.err >&5
41996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997 (exit $ac_status); } &&
41998 { ac_try='test -z "$ac_c_werror_flag"
41999 || test ! -s conftest.err'
42000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42001 (eval $ac_try) 2>&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); }; } &&
42005 { ac_try='test -s conftest.$ac_objext'
42006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007 (eval $ac_try) 2>&5
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); }; }; then
42013 cat >conftest.$ac_ext <<_ACEOF
42016 cat confdefs.h >>conftest.$ac_ext
42017 cat >>conftest.$ac_ext <<_ACEOF
42018 /* end confdefs.h. */
42019 $ac_includes_default
42023 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42030 rm -f conftest.$ac_objext
42031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42032 (eval $ac_compile) 2>conftest.er1
42034 grep -v '^ *+' conftest.er1 >conftest.err
42036 cat conftest.err >&5
42037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038 (exit $ac_status); } &&
42039 { ac_try='test -z "$ac_c_werror_flag"
42040 || test ! -s conftest.err'
42041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42042 (eval $ac_try) 2>&5
42044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045 (exit $ac_status); }; } &&
42046 { ac_try='test -s conftest.$ac_objext'
42047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048 (eval $ac_try) 2>&5
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); }; }; then
42052 ac_lo=$ac_mid; break
42054 echo "$as_me: failed program was:" >&5
42055 sed 's/^/| /' conftest.$ac_ext >&5
42057 ac_hi=`expr '(' $ac_mid ')' - 1`
42058 if test $ac_mid -le $ac_hi; then
42062 ac_mid=`expr 2 '*' $ac_mid`
42064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42067 echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42075 # Binary search between lo and hi bounds.
42076 while test "x$ac_lo" != "x$ac_hi"; do
42077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42078 cat >conftest.$ac_ext <<_ACEOF
42081 cat confdefs.h >>conftest.$ac_ext
42082 cat >>conftest.$ac_ext <<_ACEOF
42083 /* end confdefs.h. */
42084 $ac_includes_default
42088 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42095 rm -f conftest.$ac_objext
42096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42097 (eval $ac_compile) 2>conftest.er1
42099 grep -v '^ *+' conftest.er1 >conftest.err
42101 cat conftest.err >&5
42102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103 (exit $ac_status); } &&
42104 { ac_try='test -z "$ac_c_werror_flag"
42105 || test ! -s conftest.err'
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; } &&
42111 { ac_try='test -s conftest.$ac_objext'
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; }; then
42119 echo "$as_me: failed program was:" >&5
42120 sed 's/^/| /' conftest.$ac_ext >&5
42122 ac_lo=`expr '(' $ac_mid ')' + 1`
42124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42127 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42128 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42129 See \`config.log' for more details." >&5
42130 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42131 See \`config.log' for more details." >&2;}
42132 { (exit 1); exit 1; }; } ;;
42135 if test "$cross_compiling" = yes; then
42136 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42137 See \`config.log' for more details." >&5
42138 echo "$as_me: error: cannot run test program while cross compiling
42139 See \`config.log' for more details." >&2;}
42140 { (exit 1); exit 1; }; }
42142 cat >conftest.$ac_ext <<_ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h. */
42148 $ac_includes_default
42149 long longval () { return (long) (sizeof (wchar_t)); }
42150 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42152 #include <stdlib.h>
42157 FILE *f = fopen ("conftest.val", "w");
42160 if (((long) (sizeof (wchar_t))) < 0)
42162 long i = longval ();
42163 if (i != ((long) (sizeof (wchar_t))))
42165 fprintf (f, "%ld\n", i);
42169 unsigned long i = ulongval ();
42170 if (i != ((long) (sizeof (wchar_t))))
42172 fprintf (f, "%lu\n", i);
42174 exit (ferror (f) || fclose (f) != 0);
42180 rm -f conftest$ac_exeext
42181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42182 (eval $ac_link) 2>&5
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42187 (eval $ac_try) 2>&5
42189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42190 (exit $ac_status); }; }; then
42191 ac_cv_sizeof_wchar_t=`cat conftest.val`
42193 echo "$as_me: program exited with status $ac_status" >&5
42194 echo "$as_me: failed program was:" >&5
42195 sed 's/^/| /' conftest.$ac_ext >&5
42197 ( exit $ac_status )
42198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42199 See \`config.log' for more details." >&5
42200 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42201 See \`config.log' for more details." >&2;}
42202 { (exit 1); exit 1; }; }
42204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42209 ac_cv_sizeof_wchar_t=0
42212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42213 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42214 cat >>confdefs.h <<_ACEOF
42215 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42220 if test "$ac_cv_sizeof_int" -lt 4 ; then
42221 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42222 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42225 cat >>confdefs.h <<\_ACEOF
42226 #define LBER_INT_T long
42231 cat >>confdefs.h <<\_ACEOF
42232 #define LBER_INT_T int
42238 cat >>confdefs.h <<\_ACEOF
42239 #define LBER_LEN_T long
42243 cat >>confdefs.h <<\_ACEOF
42244 #define LBER_SOCKET_T int
42248 cat >>confdefs.h <<\_ACEOF
42249 #define LBER_TAG_T long
42253 echo "$as_me:$LINENO: checking for working memcmp" >&5
42254 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42255 if test "${ac_cv_func_memcmp_working+set}" = set; then
42256 echo $ECHO_N "(cached) $ECHO_C" >&6
42258 if test "$cross_compiling" = yes; then
42259 ac_cv_func_memcmp_working=no
42261 cat >conftest.$ac_ext <<_ACEOF
42264 cat confdefs.h >>conftest.$ac_ext
42265 cat >>conftest.$ac_ext <<_ACEOF
42266 /* end confdefs.h. */
42267 $ac_includes_default
42272 /* Some versions of memcmp are not 8-bit clean. */
42273 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42274 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42277 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42278 or more and with at least one buffer not starting on a 4-byte boundary.
42279 William Lewis provided this test program. */
42284 for (i = 0; i < 4; i++)
42288 strcpy (a, "--------01111111");
42289 strcpy (b, "--------10000000");
42290 if (memcmp (a, b, 16) >= 0)
42300 rm -f conftest$ac_exeext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42302 (eval $ac_link) 2>&5
42304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42307 (eval $ac_try) 2>&5
42309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310 (exit $ac_status); }; }; then
42311 ac_cv_func_memcmp_working=yes
42313 echo "$as_me: program exited with status $ac_status" >&5
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42317 ( exit $ac_status )
42318 ac_cv_func_memcmp_working=no
42320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42323 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42324 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42325 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42326 "memcmp.$ac_objext" | \
42327 *" memcmp.$ac_objext" | \
42328 "memcmp.$ac_objext "* | \
42329 *" memcmp.$ac_objext "* ) ;;
42330 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42335 if test $ac_cv_func_memcmp_working = no ; then
42337 cat >>confdefs.h <<\_ACEOF
42338 #define NEED_MEMCMP_REPLACEMENT 1
42344 for ac_func in strftime
42346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42347 echo "$as_me:$LINENO: checking for $ac_func" >&5
42348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42349 if eval "test \"\${$as_ac_var+set}\" = set"; then
42350 echo $ECHO_N "(cached) $ECHO_C" >&6
42352 cat >conftest.$ac_ext <<_ACEOF
42355 cat confdefs.h >>conftest.$ac_ext
42356 cat >>conftest.$ac_ext <<_ACEOF
42357 /* end confdefs.h. */
42358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42360 #define $ac_func innocuous_$ac_func
42362 /* System header to define __stub macros and hopefully few prototypes,
42363 which can conflict with char $ac_func (); below.
42364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42365 <limits.h> exists even on freestanding compilers. */
42368 # include <limits.h>
42370 # include <assert.h>
42375 /* Override any gcc2 internal prototype to avoid an error. */
42380 /* We use char because int might match the return type of a gcc2
42381 builtin and then its argument prototype would still apply. */
42383 /* The GNU C library defines this for functions which it implements
42384 to always fail with ENOSYS. Some functions are actually named
42385 something starting with __ and the normal name is an alias. */
42386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42389 char (*f) () = $ac_func;
42398 return f != $ac_func;
42403 rm -f conftest.$ac_objext conftest$ac_exeext
42404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42405 (eval $ac_link) 2>conftest.er1
42407 grep -v '^ *+' conftest.er1 >conftest.err
42409 cat conftest.err >&5
42410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411 (exit $ac_status); } &&
42412 { ac_try='test -z "$ac_c_werror_flag"
42413 || test ! -s conftest.err'
42414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42415 (eval $ac_try) 2>&5
42417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42418 (exit $ac_status); }; } &&
42419 { ac_try='test -s conftest$ac_exeext'
42420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42421 (eval $ac_try) 2>&5
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); }; }; then
42425 eval "$as_ac_var=yes"
42427 echo "$as_me: failed program was:" >&5
42428 sed 's/^/| /' conftest.$ac_ext >&5
42430 eval "$as_ac_var=no"
42432 rm -f conftest.err conftest.$ac_objext \
42433 conftest$ac_exeext conftest.$ac_ext
42435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42437 if test `eval echo '${'$as_ac_var'}'` = yes; then
42438 cat >>confdefs.h <<_ACEOF
42439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42443 # strftime is in -lintl on SCO UNIX.
42444 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42445 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42446 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42447 echo $ECHO_N "(cached) $ECHO_C" >&6
42449 ac_check_lib_save_LIBS=$LIBS
42450 LIBS="-lintl $LIBS"
42451 cat >conftest.$ac_ext <<_ACEOF
42454 cat confdefs.h >>conftest.$ac_ext
42455 cat >>conftest.$ac_ext <<_ACEOF
42456 /* end confdefs.h. */
42458 /* Override any gcc2 internal prototype to avoid an error. */
42462 /* We use char because int might match the return type of a gcc2
42463 builtin and then its argument prototype would still apply. */
42473 rm -f conftest.$ac_objext conftest$ac_exeext
42474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42475 (eval $ac_link) 2>conftest.er1
42477 grep -v '^ *+' conftest.er1 >conftest.err
42479 cat conftest.err >&5
42480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481 (exit $ac_status); } &&
42482 { ac_try='test -z "$ac_c_werror_flag"
42483 || test ! -s conftest.err'
42484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42485 (eval $ac_try) 2>&5
42487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488 (exit $ac_status); }; } &&
42489 { ac_try='test -s conftest$ac_exeext'
42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491 (eval $ac_try) 2>&5
42493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; }; then
42495 ac_cv_lib_intl_strftime=yes
42497 echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42500 ac_cv_lib_intl_strftime=no
42502 rm -f conftest.err conftest.$ac_objext \
42503 conftest$ac_exeext conftest.$ac_ext
42504 LIBS=$ac_check_lib_save_LIBS
42506 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42507 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42508 if test $ac_cv_lib_intl_strftime = yes; then
42509 cat >>confdefs.h <<\_ACEOF
42510 #define HAVE_STRFTIME 1
42513 LIBS="-lintl $LIBS"
42520 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42521 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42522 if test "${ol_cv_func_inet_aton+set}" = set; then
42523 echo $ECHO_N "(cached) $ECHO_C" >&6
42525 cat >conftest.$ac_ext <<_ACEOF
42528 cat confdefs.h >>conftest.$ac_ext
42529 cat >>conftest.$ac_ext <<_ACEOF
42530 /* end confdefs.h. */
42532 #ifdef HAVE_SYS_TYPES_H
42533 # include <sys/types.h>
42535 #ifdef HAVE_SYS_SOCKET_H
42536 # include <sys/socket.h>
42537 # ifdef HAVE_SYS_SELECT_H
42538 # include <sys/select.h>
42540 # include <netinet/in.h>
42541 # ifdef HAVE_ARPA_INET_H
42542 # include <arpa/inet.h>
42550 int rc = inet_aton( "255.255.255.255", &in );
42555 rm -f conftest.$ac_objext conftest$ac_exeext
42556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42557 (eval $ac_link) 2>conftest.er1
42559 grep -v '^ *+' conftest.er1 >conftest.err
42561 cat conftest.err >&5
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } &&
42564 { ac_try='test -z "$ac_c_werror_flag"
42565 || test ! -s conftest.err'
42566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567 (eval $ac_try) 2>&5
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; } &&
42571 { ac_try='test -s conftest$ac_exeext'
42572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573 (eval $ac_try) 2>&5
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); }; }; then
42577 ol_cv_func_inet_aton=yes
42579 echo "$as_me: failed program was:" >&5
42580 sed 's/^/| /' conftest.$ac_ext >&5
42582 ol_cv_func_inet_aton=no
42584 rm -f conftest.err conftest.$ac_objext \
42585 conftest$ac_exeext conftest.$ac_ext
42587 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42588 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42589 if test $ol_cv_func_inet_aton != no; then
42591 cat >>confdefs.h <<\_ACEOF
42592 #define HAVE_INET_ATON 1
42598 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42599 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42600 if test "${ac_cv_func__spawnlp+set}" = set; then
42601 echo $ECHO_N "(cached) $ECHO_C" >&6
42603 cat >conftest.$ac_ext <<_ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h. */
42609 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42611 #define _spawnlp innocuous__spawnlp
42613 /* System header to define __stub macros and hopefully few prototypes,
42614 which can conflict with char _spawnlp (); below.
42615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42616 <limits.h> exists even on freestanding compilers. */
42619 # include <limits.h>
42621 # include <assert.h>
42626 /* Override any gcc2 internal prototype to avoid an error. */
42631 /* We use char because int might match the return type of a gcc2
42632 builtin and then its argument prototype would still apply. */
42634 /* The GNU C library defines this for functions which it implements
42635 to always fail with ENOSYS. Some functions are actually named
42636 something starting with __ and the normal name is an alias. */
42637 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42640 char (*f) () = _spawnlp;
42649 return f != _spawnlp;
42654 rm -f conftest.$ac_objext conftest$ac_exeext
42655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42656 (eval $ac_link) 2>conftest.er1
42658 grep -v '^ *+' conftest.er1 >conftest.err
42660 cat conftest.err >&5
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); } &&
42663 { ac_try='test -z "$ac_c_werror_flag"
42664 || test ! -s conftest.err'
42665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42666 (eval $ac_try) 2>&5
42668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669 (exit $ac_status); }; } &&
42670 { ac_try='test -s conftest$ac_exeext'
42671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42672 (eval $ac_try) 2>&5
42674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675 (exit $ac_status); }; }; then
42676 ac_cv_func__spawnlp=yes
42678 echo "$as_me: failed program was:" >&5
42679 sed 's/^/| /' conftest.$ac_ext >&5
42681 ac_cv_func__spawnlp=no
42683 rm -f conftest.err conftest.$ac_objext \
42684 conftest$ac_exeext conftest.$ac_ext
42686 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42687 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42688 if test $ac_cv_func__spawnlp = yes; then
42690 cat >>confdefs.h <<\_ACEOF
42691 #define HAVE_SPAWNLP 1
42697 echo "$as_me:$LINENO: checking for _snprintf" >&5
42698 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42699 if test "${ac_cv_func__snprintf+set}" = set; then
42700 echo $ECHO_N "(cached) $ECHO_C" >&6
42702 cat >conftest.$ac_ext <<_ACEOF
42705 cat confdefs.h >>conftest.$ac_ext
42706 cat >>conftest.$ac_ext <<_ACEOF
42707 /* end confdefs.h. */
42708 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42710 #define _snprintf innocuous__snprintf
42712 /* System header to define __stub macros and hopefully few prototypes,
42713 which can conflict with char _snprintf (); below.
42714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42715 <limits.h> exists even on freestanding compilers. */
42718 # include <limits.h>
42720 # include <assert.h>
42725 /* Override any gcc2 internal prototype to avoid an error. */
42730 /* We use char because int might match the return type of a gcc2
42731 builtin and then its argument prototype would still apply. */
42733 /* The GNU C library defines this for functions which it implements
42734 to always fail with ENOSYS. Some functions are actually named
42735 something starting with __ and the normal name is an alias. */
42736 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42739 char (*f) () = _snprintf;
42748 return f != _snprintf;
42753 rm -f conftest.$ac_objext conftest$ac_exeext
42754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42755 (eval $ac_link) 2>conftest.er1
42757 grep -v '^ *+' conftest.er1 >conftest.err
42759 cat conftest.err >&5
42760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761 (exit $ac_status); } &&
42762 { ac_try='test -z "$ac_c_werror_flag"
42763 || test ! -s conftest.err'
42764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42765 (eval $ac_try) 2>&5
42767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768 (exit $ac_status); }; } &&
42769 { ac_try='test -s conftest$ac_exeext'
42770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771 (eval $ac_try) 2>&5
42773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774 (exit $ac_status); }; }; then
42775 ac_cv_func__snprintf=yes
42777 echo "$as_me: failed program was:" >&5
42778 sed 's/^/| /' conftest.$ac_ext >&5
42780 ac_cv_func__snprintf=no
42782 rm -f conftest.err conftest.$ac_objext \
42783 conftest$ac_exeext conftest.$ac_ext
42785 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42786 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42787 if test $ac_cv_func__snprintf = yes; then
42788 ac_cv_func_snprintf=yes
42790 cat >>confdefs.h <<\_ACEOF
42791 #define snprintf _snprintf
42798 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42799 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42800 if test "${ac_cv_func__vsnprintf+set}" = set; then
42801 echo $ECHO_N "(cached) $ECHO_C" >&6
42803 cat >conftest.$ac_ext <<_ACEOF
42806 cat confdefs.h >>conftest.$ac_ext
42807 cat >>conftest.$ac_ext <<_ACEOF
42808 /* end confdefs.h. */
42809 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42811 #define _vsnprintf innocuous__vsnprintf
42813 /* System header to define __stub macros and hopefully few prototypes,
42814 which can conflict with char _vsnprintf (); below.
42815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42816 <limits.h> exists even on freestanding compilers. */
42819 # include <limits.h>
42821 # include <assert.h>
42826 /* Override any gcc2 internal prototype to avoid an error. */
42831 /* We use char because int might match the return type of a gcc2
42832 builtin and then its argument prototype would still apply. */
42833 char _vsnprintf ();
42834 /* The GNU C library defines this for functions which it implements
42835 to always fail with ENOSYS. Some functions are actually named
42836 something starting with __ and the normal name is an alias. */
42837 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42840 char (*f) () = _vsnprintf;
42849 return f != _vsnprintf;
42854 rm -f conftest.$ac_objext conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856 (eval $ac_link) 2>conftest.er1
42858 grep -v '^ *+' conftest.er1 >conftest.err
42860 cat conftest.err >&5
42861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862 (exit $ac_status); } &&
42863 { ac_try='test -z "$ac_c_werror_flag"
42864 || test ! -s conftest.err'
42865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866 (eval $ac_try) 2>&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); }; } &&
42870 { ac_try='test -s conftest$ac_exeext'
42871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872 (eval $ac_try) 2>&5
42874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875 (exit $ac_status); }; }; then
42876 ac_cv_func__vsnprintf=yes
42878 echo "$as_me: failed program was:" >&5
42879 sed 's/^/| /' conftest.$ac_ext >&5
42881 ac_cv_func__vsnprintf=no
42883 rm -f conftest.err conftest.$ac_objext \
42884 conftest$ac_exeext conftest.$ac_ext
42886 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42887 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42888 if test $ac_cv_func__vsnprintf = yes; then
42889 ac_cv_func_vsnprintf=yes
42891 cat >>confdefs.h <<\_ACEOF
42892 #define vsnprintf _vsnprintf
42900 for ac_func in vprintf
42902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42903 echo "$as_me:$LINENO: checking for $ac_func" >&5
42904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42905 if eval "test \"\${$as_ac_var+set}\" = set"; then
42906 echo $ECHO_N "(cached) $ECHO_C" >&6
42908 cat >conftest.$ac_ext <<_ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h. */
42914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42916 #define $ac_func innocuous_$ac_func
42918 /* System header to define __stub macros and hopefully few prototypes,
42919 which can conflict with char $ac_func (); below.
42920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42921 <limits.h> exists even on freestanding compilers. */
42924 # include <limits.h>
42926 # include <assert.h>
42931 /* Override any gcc2 internal prototype to avoid an error. */
42936 /* We use char because int might match the return type of a gcc2
42937 builtin and then its argument prototype would still apply. */
42939 /* The GNU C library defines this for functions which it implements
42940 to always fail with ENOSYS. Some functions are actually named
42941 something starting with __ and the normal name is an alias. */
42942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42945 char (*f) () = $ac_func;
42954 return f != $ac_func;
42959 rm -f conftest.$ac_objext conftest$ac_exeext
42960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42961 (eval $ac_link) 2>conftest.er1
42963 grep -v '^ *+' conftest.er1 >conftest.err
42965 cat conftest.err >&5
42966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); } &&
42968 { ac_try='test -z "$ac_c_werror_flag"
42969 || test ! -s conftest.err'
42970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42971 (eval $ac_try) 2>&5
42973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42974 (exit $ac_status); }; } &&
42975 { ac_try='test -s conftest$ac_exeext'
42976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42977 (eval $ac_try) 2>&5
42979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980 (exit $ac_status); }; }; then
42981 eval "$as_ac_var=yes"
42983 echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42986 eval "$as_ac_var=no"
42988 rm -f conftest.err conftest.$ac_objext \
42989 conftest$ac_exeext conftest.$ac_ext
42991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42993 if test `eval echo '${'$as_ac_var'}'` = yes; then
42994 cat >>confdefs.h <<_ACEOF
42995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42998 echo "$as_me:$LINENO: checking for _doprnt" >&5
42999 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43000 if test "${ac_cv_func__doprnt+set}" = set; then
43001 echo $ECHO_N "(cached) $ECHO_C" >&6
43003 cat >conftest.$ac_ext <<_ACEOF
43006 cat confdefs.h >>conftest.$ac_ext
43007 cat >>conftest.$ac_ext <<_ACEOF
43008 /* end confdefs.h. */
43009 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43011 #define _doprnt innocuous__doprnt
43013 /* System header to define __stub macros and hopefully few prototypes,
43014 which can conflict with char _doprnt (); below.
43015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43016 <limits.h> exists even on freestanding compilers. */
43019 # include <limits.h>
43021 # include <assert.h>
43026 /* Override any gcc2 internal prototype to avoid an error. */
43031 /* We use char because int might match the return type of a gcc2
43032 builtin and then its argument prototype would still apply. */
43034 /* The GNU C library defines this for functions which it implements
43035 to always fail with ENOSYS. Some functions are actually named
43036 something starting with __ and the normal name is an alias. */
43037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43040 char (*f) () = _doprnt;
43049 return f != _doprnt;
43054 rm -f conftest.$ac_objext conftest$ac_exeext
43055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43056 (eval $ac_link) 2>conftest.er1
43058 grep -v '^ *+' conftest.er1 >conftest.err
43060 cat conftest.err >&5
43061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062 (exit $ac_status); } &&
43063 { ac_try='test -z "$ac_c_werror_flag"
43064 || test ! -s conftest.err'
43065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066 (eval $ac_try) 2>&5
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); }; } &&
43070 { ac_try='test -s conftest$ac_exeext'
43071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43072 (eval $ac_try) 2>&5
43074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); }; }; then
43076 ac_cv_func__doprnt=yes
43078 echo "$as_me: failed program was:" >&5
43079 sed 's/^/| /' conftest.$ac_ext >&5
43081 ac_cv_func__doprnt=no
43083 rm -f conftest.err conftest.$ac_objext \
43084 conftest$ac_exeext conftest.$ac_ext
43086 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43087 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43088 if test $ac_cv_func__doprnt = yes; then
43090 cat >>confdefs.h <<\_ACEOF
43091 #define HAVE_DOPRNT 1
43101 if test $ac_cv_func_vprintf = yes ; then
43104 for ac_func in snprintf vsnprintf
43106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43107 echo "$as_me:$LINENO: checking for $ac_func" >&5
43108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43109 if eval "test \"\${$as_ac_var+set}\" = set"; then
43110 echo $ECHO_N "(cached) $ECHO_C" >&6
43112 cat >conftest.$ac_ext <<_ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h. */
43118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43120 #define $ac_func innocuous_$ac_func
43122 /* System header to define __stub macros and hopefully few prototypes,
43123 which can conflict with char $ac_func (); below.
43124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43125 <limits.h> exists even on freestanding compilers. */
43128 # include <limits.h>
43130 # include <assert.h>
43135 /* Override any gcc2 internal prototype to avoid an error. */
43140 /* We use char because int might match the return type of a gcc2
43141 builtin and then its argument prototype would still apply. */
43143 /* The GNU C library defines this for functions which it implements
43144 to always fail with ENOSYS. Some functions are actually named
43145 something starting with __ and the normal name is an alias. */
43146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43149 char (*f) () = $ac_func;
43158 return f != $ac_func;
43163 rm -f conftest.$ac_objext conftest$ac_exeext
43164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43165 (eval $ac_link) 2>conftest.er1
43167 grep -v '^ *+' conftest.er1 >conftest.err
43169 cat conftest.err >&5
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); } &&
43172 { ac_try='test -z "$ac_c_werror_flag"
43173 || test ! -s conftest.err'
43174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175 (eval $ac_try) 2>&5
43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178 (exit $ac_status); }; } &&
43179 { ac_try='test -s conftest$ac_exeext'
43180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43181 (eval $ac_try) 2>&5
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); }; }; then
43185 eval "$as_ac_var=yes"
43187 echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43190 eval "$as_ac_var=no"
43192 rm -f conftest.err conftest.$ac_objext \
43193 conftest$ac_exeext conftest.$ac_ext
43195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43197 if test `eval echo '${'$as_ac_var'}'` = yes; then
43198 cat >>confdefs.h <<_ACEOF
43199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43319 echo "$as_me:$LINENO: checking for $ac_func" >&5
43320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43321 if eval "test \"\${$as_ac_var+set}\" = set"; then
43322 echo $ECHO_N "(cached) $ECHO_C" >&6
43324 cat >conftest.$ac_ext <<_ACEOF
43327 cat confdefs.h >>conftest.$ac_ext
43328 cat >>conftest.$ac_ext <<_ACEOF
43329 /* end confdefs.h. */
43330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43332 #define $ac_func innocuous_$ac_func
43334 /* System header to define __stub macros and hopefully few prototypes,
43335 which can conflict with char $ac_func (); below.
43336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43337 <limits.h> exists even on freestanding compilers. */
43340 # include <limits.h>
43342 # include <assert.h>
43347 /* Override any gcc2 internal prototype to avoid an error. */
43352 /* We use char because int might match the return type of a gcc2
43353 builtin and then its argument prototype would still apply. */
43355 /* The GNU C library defines this for functions which it implements
43356 to always fail with ENOSYS. Some functions are actually named
43357 something starting with __ and the normal name is an alias. */
43358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43361 char (*f) () = $ac_func;
43370 return f != $ac_func;
43375 rm -f conftest.$ac_objext conftest$ac_exeext
43376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43377 (eval $ac_link) 2>conftest.er1
43379 grep -v '^ *+' conftest.er1 >conftest.err
43381 cat conftest.err >&5
43382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43383 (exit $ac_status); } &&
43384 { ac_try='test -z "$ac_c_werror_flag"
43385 || test ! -s conftest.err'
43386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43387 (eval $ac_try) 2>&5
43389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390 (exit $ac_status); }; } &&
43391 { ac_try='test -s conftest$ac_exeext'
43392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43393 (eval $ac_try) 2>&5
43395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43396 (exit $ac_status); }; }; then
43397 eval "$as_ac_var=yes"
43399 echo "$as_me: failed program was:" >&5
43400 sed 's/^/| /' conftest.$ac_ext >&5
43402 eval "$as_ac_var=no"
43404 rm -f conftest.err conftest.$ac_objext \
43405 conftest$ac_exeext conftest.$ac_ext
43407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43409 if test `eval echo '${'$as_ac_var'}'` = yes; then
43410 cat >>confdefs.h <<_ACEOF
43411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43420 for ac_func in getopt getpeereid
43422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43423 echo "$as_me:$LINENO: checking for $ac_func" >&5
43424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43425 if eval "test \"\${$as_ac_var+set}\" = set"; then
43426 echo $ECHO_N "(cached) $ECHO_C" >&6
43428 cat >conftest.$ac_ext <<_ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h. */
43434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43436 #define $ac_func innocuous_$ac_func
43438 /* System header to define __stub macros and hopefully few prototypes,
43439 which can conflict with char $ac_func (); below.
43440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43441 <limits.h> exists even on freestanding compilers. */
43444 # include <limits.h>
43446 # include <assert.h>
43451 /* Override any gcc2 internal prototype to avoid an error. */
43456 /* We use char because int might match the return type of a gcc2
43457 builtin and then its argument prototype would still apply. */
43459 /* The GNU C library defines this for functions which it implements
43460 to always fail with ENOSYS. Some functions are actually named
43461 something starting with __ and the normal name is an alias. */
43462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43465 char (*f) () = $ac_func;
43474 return f != $ac_func;
43479 rm -f conftest.$ac_objext conftest$ac_exeext
43480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43481 (eval $ac_link) 2>conftest.er1
43483 grep -v '^ *+' conftest.er1 >conftest.err
43485 cat conftest.err >&5
43486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487 (exit $ac_status); } &&
43488 { ac_try='test -z "$ac_c_werror_flag"
43489 || test ! -s conftest.err'
43490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43491 (eval $ac_try) 2>&5
43493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43494 (exit $ac_status); }; } &&
43495 { ac_try='test -s conftest$ac_exeext'
43496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43497 (eval $ac_try) 2>&5
43499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500 (exit $ac_status); }; }; then
43501 eval "$as_ac_var=yes"
43503 echo "$as_me: failed program was:" >&5
43504 sed 's/^/| /' conftest.$ac_ext >&5
43506 eval "$as_ac_var=no"
43508 rm -f conftest.err conftest.$ac_objext \
43509 conftest$ac_exeext conftest.$ac_ext
43511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43513 if test `eval echo '${'$as_ac_var'}'` = yes; then
43514 cat >>confdefs.h <<_ACEOF
43515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43520 "$ac_func.$ac_objext" | \
43521 *" $ac_func.$ac_objext" | \
43522 "$ac_func.$ac_objext "* | \
43523 *" $ac_func.$ac_objext "* ) ;;
43524 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43532 if test "$ac_cv_func_getopt" != yes; then
43533 LIBSRCS="$LIBSRCS getopt.c"
43536 if test "$ac_cv_func_getpeereid" != yes; then
43538 for ac_func in getpeerucred
43540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43541 echo "$as_me:$LINENO: checking for $ac_func" >&5
43542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43543 if eval "test \"\${$as_ac_var+set}\" = set"; then
43544 echo $ECHO_N "(cached) $ECHO_C" >&6
43546 cat >conftest.$ac_ext <<_ACEOF
43549 cat confdefs.h >>conftest.$ac_ext
43550 cat >>conftest.$ac_ext <<_ACEOF
43551 /* end confdefs.h. */
43552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43554 #define $ac_func innocuous_$ac_func
43556 /* System header to define __stub macros and hopefully few prototypes,
43557 which can conflict with char $ac_func (); below.
43558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43559 <limits.h> exists even on freestanding compilers. */
43562 # include <limits.h>
43564 # include <assert.h>
43569 /* Override any gcc2 internal prototype to avoid an error. */
43574 /* We use char because int might match the return type of a gcc2
43575 builtin and then its argument prototype would still apply. */
43577 /* The GNU C library defines this for functions which it implements
43578 to always fail with ENOSYS. Some functions are actually named
43579 something starting with __ and the normal name is an alias. */
43580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43583 char (*f) () = $ac_func;
43592 return f != $ac_func;
43597 rm -f conftest.$ac_objext conftest$ac_exeext
43598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43599 (eval $ac_link) 2>conftest.er1
43601 grep -v '^ *+' conftest.er1 >conftest.err
43603 cat conftest.err >&5
43604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605 (exit $ac_status); } &&
43606 { ac_try='test -z "$ac_c_werror_flag"
43607 || test ! -s conftest.err'
43608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609 (eval $ac_try) 2>&5
43611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612 (exit $ac_status); }; } &&
43613 { ac_try='test -s conftest$ac_exeext'
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; }; then
43619 eval "$as_ac_var=yes"
43621 echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43624 eval "$as_ac_var=no"
43626 rm -f conftest.err conftest.$ac_objext \
43627 conftest$ac_exeext conftest.$ac_ext
43629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43631 if test `eval echo '${'$as_ac_var'}'` = yes; then
43632 cat >>confdefs.h <<_ACEOF
43633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43639 if test "$ac_cv_func_getpeerucred" != yes ; then
43640 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43641 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43642 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43643 echo $ECHO_N "(cached) $ECHO_C" >&6
43645 cat >conftest.$ac_ext <<_ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h. */
43651 $ac_includes_default
43652 #ifdef HAVE_SYS_SOCKET_H
43653 #include <sys/socket.h>
43659 static struct msghdr ac_aggr;
43660 if (ac_aggr.msg_accrightslen)
43666 rm -f conftest.$ac_objext
43667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43668 (eval $ac_compile) 2>conftest.er1
43670 grep -v '^ *+' conftest.er1 >conftest.err
43672 cat conftest.err >&5
43673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674 (exit $ac_status); } &&
43675 { ac_try='test -z "$ac_c_werror_flag"
43676 || test ! -s conftest.err'
43677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678 (eval $ac_try) 2>&5
43680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681 (exit $ac_status); }; } &&
43682 { ac_try='test -s conftest.$ac_objext'
43683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684 (eval $ac_try) 2>&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; }; then
43688 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43690 echo "$as_me: failed program was:" >&5
43691 sed 's/^/| /' conftest.$ac_ext >&5
43693 cat >conftest.$ac_ext <<_ACEOF
43696 cat confdefs.h >>conftest.$ac_ext
43697 cat >>conftest.$ac_ext <<_ACEOF
43698 /* end confdefs.h. */
43699 $ac_includes_default
43700 #ifdef HAVE_SYS_SOCKET_H
43701 #include <sys/socket.h>
43707 static struct msghdr ac_aggr;
43708 if (sizeof ac_aggr.msg_accrightslen)
43714 rm -f conftest.$ac_objext
43715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43716 (eval $ac_compile) 2>conftest.er1
43718 grep -v '^ *+' conftest.er1 >conftest.err
43720 cat conftest.err >&5
43721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43722 (exit $ac_status); } &&
43723 { ac_try='test -z "$ac_c_werror_flag"
43724 || test ! -s conftest.err'
43725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726 (eval $ac_try) 2>&5
43728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729 (exit $ac_status); }; } &&
43730 { ac_try='test -s conftest.$ac_objext'
43731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43732 (eval $ac_try) 2>&5
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); }; }; then
43736 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43738 echo "$as_me: failed program was:" >&5
43739 sed 's/^/| /' conftest.$ac_ext >&5
43741 ac_cv_member_struct_msghdr_msg_accrightslen=no
43743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43748 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43749 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43751 cat >>confdefs.h <<_ACEOF
43752 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43758 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43759 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43760 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43761 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43762 echo $ECHO_N "(cached) $ECHO_C" >&6
43764 cat >conftest.$ac_ext <<_ACEOF
43767 cat confdefs.h >>conftest.$ac_ext
43768 cat >>conftest.$ac_ext <<_ACEOF
43769 /* end confdefs.h. */
43770 $ac_includes_default
43771 #ifdef HAVE_SYS_SOCKET_H
43772 #include <sys/socket.h>
43778 static struct msghdr ac_aggr;
43779 if (ac_aggr.msg_control)
43785 rm -f conftest.$ac_objext
43786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43787 (eval $ac_compile) 2>conftest.er1
43789 grep -v '^ *+' conftest.er1 >conftest.err
43791 cat conftest.err >&5
43792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793 (exit $ac_status); } &&
43794 { ac_try='test -z "$ac_c_werror_flag"
43795 || test ! -s conftest.err'
43796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43797 (eval $ac_try) 2>&5
43799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800 (exit $ac_status); }; } &&
43801 { ac_try='test -s conftest.$ac_objext'
43802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803 (eval $ac_try) 2>&5
43805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806 (exit $ac_status); }; }; then
43807 ac_cv_member_struct_msghdr_msg_control=yes
43809 echo "$as_me: failed program was:" >&5
43810 sed 's/^/| /' conftest.$ac_ext >&5
43812 cat >conftest.$ac_ext <<_ACEOF
43815 cat confdefs.h >>conftest.$ac_ext
43816 cat >>conftest.$ac_ext <<_ACEOF
43817 /* end confdefs.h. */
43818 $ac_includes_default
43819 #ifdef HAVE_SYS_SOCKET_H
43820 #include <sys/socket.h>
43826 static struct msghdr ac_aggr;
43827 if (sizeof ac_aggr.msg_control)
43833 rm -f conftest.$ac_objext
43834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43835 (eval $ac_compile) 2>conftest.er1
43837 grep -v '^ *+' conftest.er1 >conftest.err
43839 cat conftest.err >&5
43840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841 (exit $ac_status); } &&
43842 { ac_try='test -z "$ac_c_werror_flag"
43843 || test ! -s conftest.err'
43844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43845 (eval $ac_try) 2>&5
43847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43848 (exit $ac_status); }; } &&
43849 { ac_try='test -s conftest.$ac_objext'
43850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43851 (eval $ac_try) 2>&5
43853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854 (exit $ac_status); }; }; then
43855 ac_cv_member_struct_msghdr_msg_control=yes
43857 echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43860 ac_cv_member_struct_msghdr_msg_control=no
43862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43867 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43868 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43870 cat >>confdefs.h <<_ACEOF
43871 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43879 LIBSRCS="$LIBSRCS getpeereid.c"
43882 if test "$ac_cv_func_snprintf" != yes ||
43883 test "$ac_cv_func_vsnprintf" != yes; then
43884 if test "$ac_cv_func_snprintf" != yes; then
43886 cat >>confdefs.h <<\_ACEOF
43887 #define snprintf ber_pvt_snprintf
43891 if test "$ac_cv_func_vsnprintf" != yes; then
43893 cat >>confdefs.h <<\_ACEOF
43894 #define vsnprintf ber_pvt_vsnprintf
43901 if test "$ol_enable_slapi" != no ; then
43903 for ac_header in ltdl.h
43905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43907 echo "$as_me:$LINENO: checking for $ac_header" >&5
43908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43910 echo $ECHO_N "(cached) $ECHO_C" >&6
43912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43915 # Is the header compilable?
43916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43918 cat >conftest.$ac_ext <<_ACEOF
43921 cat confdefs.h >>conftest.$ac_ext
43922 cat >>conftest.$ac_ext <<_ACEOF
43923 /* end confdefs.h. */
43924 $ac_includes_default
43925 #include <$ac_header>
43927 rm -f conftest.$ac_objext
43928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43929 (eval $ac_compile) 2>conftest.er1
43931 grep -v '^ *+' conftest.er1 >conftest.err
43933 cat conftest.err >&5
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); } &&
43936 { ac_try='test -z "$ac_c_werror_flag"
43937 || test ! -s conftest.err'
43938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43939 (eval $ac_try) 2>&5
43941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); }; } &&
43943 { ac_try='test -s conftest.$ac_objext'
43944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945 (eval $ac_try) 2>&5
43947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948 (exit $ac_status); }; }; then
43949 ac_header_compiler=yes
43951 echo "$as_me: failed program was:" >&5
43952 sed 's/^/| /' conftest.$ac_ext >&5
43954 ac_header_compiler=no
43956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43958 echo "${ECHO_T}$ac_header_compiler" >&6
43960 # Is the header present?
43961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43963 cat >conftest.$ac_ext <<_ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h. */
43969 #include <$ac_header>
43971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43974 grep -v '^ *+' conftest.er1 >conftest.err
43976 cat conftest.err >&5
43977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978 (exit $ac_status); } >/dev/null; then
43979 if test -s conftest.err; then
43980 ac_cpp_err=$ac_c_preproc_warn_flag
43981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43988 if test -z "$ac_cpp_err"; then
43989 ac_header_preproc=yes
43991 echo "$as_me: failed program was:" >&5
43992 sed 's/^/| /' conftest.$ac_ext >&5
43994 ac_header_preproc=no
43996 rm -f conftest.err conftest.$ac_ext
43997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43998 echo "${ECHO_T}$ac_header_preproc" >&6
44000 # So? What about this header?
44001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44007 ac_header_preproc=yes
44010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44024 ## --------------------------------------------- ##
44025 ## Report this to <http://www.openldap.org/its/> ##
44026 ## --------------------------------------------- ##
44029 sed "s/^/$as_me: WARNING: /" >&2
44032 echo "$as_me:$LINENO: checking for $ac_header" >&5
44033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44035 echo $ECHO_N "(cached) $ECHO_C" >&6
44037 eval "$as_ac_Header=\$ac_header_preproc"
44039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44044 cat >>confdefs.h <<_ACEOF
44045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44053 if test $ac_cv_header_ltdl_h != yes ; then
44054 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44055 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44056 { (exit 1); exit 1; }; }
44058 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44059 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44060 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44061 echo $ECHO_N "(cached) $ECHO_C" >&6
44063 ac_check_lib_save_LIBS=$LIBS
44064 LIBS="-lltdl $LIBS"
44065 cat >conftest.$ac_ext <<_ACEOF
44068 cat confdefs.h >>conftest.$ac_ext
44069 cat >>conftest.$ac_ext <<_ACEOF
44070 /* end confdefs.h. */
44072 /* Override any gcc2 internal prototype to avoid an error. */
44076 /* We use char because int might match the return type of a gcc2
44077 builtin and then its argument prototype would still apply. */
44087 rm -f conftest.$ac_objext conftest$ac_exeext
44088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44089 (eval $ac_link) 2>conftest.er1
44091 grep -v '^ *+' conftest.er1 >conftest.err
44093 cat conftest.err >&5
44094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095 (exit $ac_status); } &&
44096 { ac_try='test -z "$ac_c_werror_flag"
44097 || test ! -s conftest.err'
44098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44099 (eval $ac_try) 2>&5
44101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44102 (exit $ac_status); }; } &&
44103 { ac_try='test -s conftest$ac_exeext'
44104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105 (eval $ac_try) 2>&5
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); }; }; then
44109 ac_cv_lib_ltdl_lt_dlinit=yes
44111 echo "$as_me: failed program was:" >&5
44112 sed 's/^/| /' conftest.$ac_ext >&5
44114 ac_cv_lib_ltdl_lt_dlinit=no
44116 rm -f conftest.err conftest.$ac_objext \
44117 conftest$ac_exeext conftest.$ac_ext
44118 LIBS=$ac_check_lib_save_LIBS
44120 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44121 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44122 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44125 LIBSLAPI=libslapi.a
44126 LIBSLAPITOOLS=../libslapi.a
44128 cat >>confdefs.h <<\_ACEOF
44129 #define HAVE_LIBLTDL 1
44134 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44135 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44136 { (exit 1); exit 1; }; }
44141 cat >>confdefs.h <<\_ACEOF
44142 #define LDAP_SLAPI 1
44147 if test "$ol_enable_debug" != no ; then
44148 if test "$ol_enable_debug" = traditional; then
44150 cat >>confdefs.h <<\_ACEOF
44151 #define OLD_DEBUG 1
44156 cat >>confdefs.h <<\_ACEOF
44157 #define LDAP_DEBUG 1
44161 if test "$ol_enable_syslog" = yes ; then
44163 cat >>confdefs.h <<\_ACEOF
44164 #define LDAP_SYSLOG 1
44168 if test "$ol_link_kbind" != no ; then
44170 cat >>confdefs.h <<\_ACEOF
44171 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44175 if test "$ol_enable_proctitle" != no ; then
44177 cat >>confdefs.h <<\_ACEOF
44178 #define LDAP_PROCTITLE 1
44182 if test "$ol_enable_referrals" != no ; then
44184 cat >>confdefs.h <<\_ACEOF
44185 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44189 if test "$ol_enable_local" != no; then
44191 cat >>confdefs.h <<\_ACEOF
44192 #define LDAP_PF_LOCAL 1
44196 if test "$ol_link_ipv6" != no; then
44198 cat >>confdefs.h <<\_ACEOF
44199 #define LDAP_PF_INET6 1
44203 if test "$ol_enable_cleartext" != no ; then
44205 cat >>confdefs.h <<\_ACEOF
44206 #define SLAPD_CLEARTEXT 1
44210 if test "$ol_enable_crypt" != no ; then
44212 cat >>confdefs.h <<\_ACEOF
44213 #define SLAPD_CRYPT 1
44217 if test "$ol_link_spasswd" != no ; then
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_SPASSWD 1
44224 if test "$ol_enable_rlookups" != no ; then
44226 cat >>confdefs.h <<\_ACEOF
44227 #define SLAPD_RLOOKUPS 1
44231 if test "$ol_enable_aci" != no ; then
44232 if test $ol_enable_dynacl = no ; then
44233 ol_enable_dynacl=yes
44234 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44235 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44237 if test "$ol_enable_aci" = mod ; then
44238 MFLAG=SLAPD_MOD_DYNAMIC
44239 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44240 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44241 { (exit 1); exit 1; }; }
44243 MFLAG=SLAPD_MOD_STATIC
44245 WITH_ACI_ENABLED=$ol_enable_aci
44247 cat >>confdefs.h <<_ACEOF
44248 #define SLAPD_ACI_ENABLED $MFLAG
44252 WITH_ACI_ENABLED=no
44254 if test "$ol_enable_dynacl" != no ; then
44256 cat >>confdefs.h <<\_ACEOF
44257 #define SLAP_DYNACL 1
44262 if test "$ol_link_modules" != no ; then
44264 cat >>confdefs.h <<\_ACEOF
44265 #define SLAPD_MODULES 1
44269 SLAPD_MODULES_LDFLAGS="-dlopen self"
44273 cat >>confdefs.h <<\_ACEOF
44274 #define SLAPD_MOD_STATIC 1
44278 cat >>confdefs.h <<\_ACEOF
44279 #define SLAPD_MOD_DYNAMIC 2
44283 if test "$ol_enable_bdb" != no ; then
44285 BUILD_BDB=$ol_enable_bdb
44286 if test "$ol_enable_bdb" = mod ; then
44287 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44288 MFLAG=SLAPD_MOD_DYNAMIC
44290 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44291 MFLAG=SLAPD_MOD_STATIC
44294 cat >>confdefs.h <<_ACEOF
44295 #define SLAPD_BDB $MFLAG
44300 if test "$ol_enable_dnssrv" != no ; then
44302 BUILD_DNSSRV=$ol_enable_dnssrv
44303 if test "$ol_enable_dnssrv" = mod ; then
44304 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44305 MFLAG=SLAPD_MOD_DYNAMIC
44307 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44308 MFLAG=SLAPD_MOD_STATIC
44311 cat >>confdefs.h <<_ACEOF
44312 #define SLAPD_DNSSRV $MFLAG
44317 if test "$ol_enable_hdb" != no ; then
44319 BUILD_HDB=$ol_enable_hdb
44320 if test "$ol_enable_hdb" = mod ; then
44321 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44322 MFLAG=SLAPD_MOD_DYNAMIC
44324 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44325 MFLAG=SLAPD_MOD_STATIC
44328 cat >>confdefs.h <<_ACEOF
44329 #define SLAPD_HDB $MFLAG
44334 if test "$ol_enable_ldap" != no ; then
44336 BUILD_LDAP=$ol_enable_ldap
44337 if test "$ol_enable_ldap" = mod ; then
44338 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44339 MFLAG=SLAPD_MOD_DYNAMIC
44341 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44342 MFLAG=SLAPD_MOD_STATIC
44345 cat >>confdefs.h <<_ACEOF
44346 #define SLAPD_LDAP $MFLAG
44351 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44353 BUILD_LDBM=$ol_enable_ldbm
44354 if test "$ol_enable_ldbm" = mod ; then
44355 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44356 MFLAG=SLAPD_MOD_DYNAMIC
44358 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44359 MFLAG=SLAPD_MOD_STATIC
44362 cat >>confdefs.h <<_ACEOF
44363 #define SLAPD_LDBM $MFLAG
44368 if test "$ol_enable_meta" != no ; then
44370 BUILD_META=$ol_enable_meta
44372 if test "$ol_enable_meta" = mod ; then
44373 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44374 MFLAG=SLAPD_MOD_DYNAMIC
44376 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44377 MFLAG=SLAPD_MOD_STATIC
44380 cat >>confdefs.h <<_ACEOF
44381 #define SLAPD_META $MFLAG
44386 if test "$ol_enable_monitor" != no ; then
44388 BUILD_MONITOR=$ol_enable_monitor
44389 if test "$ol_enable_monitor" = mod ; then
44390 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44391 MFLAG=SLAPD_MOD_DYNAMIC
44393 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44394 MFLAG=SLAPD_MOD_STATIC
44397 cat >>confdefs.h <<_ACEOF
44398 #define SLAPD_MONITOR $MFLAG
44403 if test "$ol_enable_null" != no ; then
44405 BUILD_NULL=$ol_enable_null
44406 if test "$ol_enable_null" = mod ; then
44407 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44408 MFLAG=SLAPD_MOD_DYNAMIC
44410 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44411 MFLAG=SLAPD_MOD_STATIC
44414 cat >>confdefs.h <<_ACEOF
44415 #define SLAPD_NULL $MFLAG
44420 if test "$ol_enable_passwd" != no ; then
44422 BUILD_PASSWD=$ol_enable_passwd
44423 if test "$ol_enable_passwd" = mod ; then
44424 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44425 MFLAG=SLAPD_MOD_DYNAMIC
44427 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44428 MFLAG=SLAPD_MOD_STATIC
44431 cat >>confdefs.h <<_ACEOF
44432 #define SLAPD_PASSWD $MFLAG
44437 if test "$ol_link_perl" != no ; then
44439 BUILD_PERL=$ol_enable_perl
44440 if test "$ol_enable_perl" = mod ; then
44441 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44442 MFLAG=SLAPD_MOD_DYNAMIC
44444 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44445 MFLAG=SLAPD_MOD_STATIC
44448 cat >>confdefs.h <<_ACEOF
44449 #define SLAPD_PERL $MFLAG
44454 if test "$ol_enable_relay" != no ; then
44456 BUILD_RELAY=$ol_enable_relay
44457 if test "$ol_enable_relay" = mod ; then
44458 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44459 MFLAG=SLAPD_MOD_DYNAMIC
44461 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44462 MFLAG=SLAPD_MOD_STATIC
44465 cat >>confdefs.h <<_ACEOF
44466 #define SLAPD_RELAY $MFLAG
44471 if test "$ol_enable_shell" != no ; then
44472 if test "$ol_link_threads" != no ; then
44473 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44474 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44477 BUILD_SHELL=$ol_enable_shell
44478 if test "$ol_enable_shell" = mod ; then
44479 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44480 MFLAG=SLAPD_MOD_DYNAMIC
44482 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44483 MFLAG=SLAPD_MOD_STATIC
44486 cat >>confdefs.h <<_ACEOF
44487 #define SLAPD_SHELL $MFLAG
44492 if test "$ol_link_sql" != no ; then
44494 BUILD_SQL=$ol_enable_sql
44495 if test "$ol_enable_sql" = mod; then
44496 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44497 MFLAG=SLAPD_MOD_DYNAMIC
44499 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44500 MFLAG=SLAPD_MOD_STATIC
44503 cat >>confdefs.h <<_ACEOF
44504 #define SLAPD_SQL $MFLAG
44509 if test "$ol_enable_accesslog" != no ; then
44510 BUILD_ACCESSLOG=$ol_enable_accesslog
44511 if test "$ol_enable_accesslog" = mod ; then
44512 MFLAG=SLAPD_MOD_DYNAMIC
44513 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44515 MFLAG=SLAPD_MOD_STATIC
44516 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44519 cat >>confdefs.h <<_ACEOF
44520 #define SLAPD_OVER_ACCESSLOG $MFLAG
44525 if test "$ol_enable_dds" != no ; then
44526 BUILD_DDS=$ol_enable_dds
44527 if test "$ol_enable_dds" = mod ; then
44528 MFLAG=SLAPD_MOD_DYNAMIC
44529 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44531 MFLAG=SLAPD_MOD_STATIC
44532 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44535 cat >>confdefs.h <<_ACEOF
44536 #define SLAPD_OVER_DDS $MFLAG
44541 if test "$ol_enable_denyop" != no ; then
44542 BUILD_DENYOP=$ol_enable_denyop
44543 if test "$ol_enable_denyop" = mod ; then
44544 MFLAG=SLAPD_MOD_DYNAMIC
44545 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44547 MFLAG=SLAPD_MOD_STATIC
44548 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44551 cat >>confdefs.h <<_ACEOF
44552 #define SLAPD_OVER_DENYOP $MFLAG
44557 if test "$ol_enable_dyngroup" != no ; then
44558 BUILD_DYNGROUP=$ol_enable_dyngroup
44559 if test "$ol_enable_dyngroup" = mod ; then
44560 MFLAG=SLAPD_MOD_DYNAMIC
44561 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44563 MFLAG=SLAPD_MOD_STATIC
44564 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44567 cat >>confdefs.h <<_ACEOF
44568 #define SLAPD_OVER_DYNGROUP $MFLAG
44573 if test "$ol_enable_dynlist" != no ; then
44574 BUILD_DYNLIST=$ol_enable_dynlist
44575 if test "$ol_enable_dynlist" = mod ; then
44576 MFLAG=SLAPD_MOD_DYNAMIC
44577 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44579 MFLAG=SLAPD_MOD_STATIC
44580 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44583 cat >>confdefs.h <<_ACEOF
44584 #define SLAPD_OVER_DYNLIST $MFLAG
44589 if test "$ol_enable_lastmod" != no ; then
44590 BUILD_LASTMOD=$ol_enable_lastmod
44591 if test "$ol_enable_lastmod" = mod ; then
44592 MFLAG=SLAPD_MOD_DYNAMIC
44593 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44595 MFLAG=SLAPD_MOD_STATIC
44596 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44599 cat >>confdefs.h <<_ACEOF
44600 #define SLAPD_OVER_LASTMOD $MFLAG
44605 if test "$ol_enable_ppolicy" != no ; then
44606 BUILD_PPOLICY=$ol_enable_ppolicy
44607 if test "$ol_enable_ppolicy" = mod ; then
44608 MFLAG=SLAPD_MOD_DYNAMIC
44609 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44611 MFLAG=SLAPD_MOD_STATIC
44612 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44615 cat >>confdefs.h <<_ACEOF
44616 #define SLAPD_OVER_PPOLICY $MFLAG
44621 if test "$ol_enable_proxycache" != no ; then
44622 BUILD_PROXYCACHE=$ol_enable_proxycache
44623 if test "$ol_enable_proxycache" = mod ; then
44624 MFLAG=SLAPD_MOD_DYNAMIC
44625 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44627 MFLAG=SLAPD_MOD_STATIC
44628 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44631 cat >>confdefs.h <<_ACEOF
44632 #define SLAPD_OVER_PROXYCACHE $MFLAG
44637 if test "$ol_enable_refint" != no ; then
44638 BUILD_REFINT=$ol_enable_refint
44639 if test "$ol_enable_refint" = mod ; then
44640 MFLAG=SLAPD_MOD_DYNAMIC
44641 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44643 MFLAG=SLAPD_MOD_STATIC
44644 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44647 cat >>confdefs.h <<_ACEOF
44648 #define SLAPD_OVER_REFINT $MFLAG
44653 if test "$ol_enable_retcode" != no ; then
44654 BUILD_RETCODE=$ol_enable_retcode
44655 if test "$ol_enable_retcode" = mod ; then
44656 MFLAG=SLAPD_MOD_DYNAMIC
44657 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44659 MFLAG=SLAPD_MOD_STATIC
44660 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44663 cat >>confdefs.h <<_ACEOF
44664 #define SLAPD_OVER_RETCODE $MFLAG
44669 if test "$ol_enable_rwm" != no ; then
44671 BUILD_RWM=$ol_enable_rwm
44672 if test "$ol_enable_rwm" = mod ; then
44673 MFLAG=SLAPD_MOD_DYNAMIC
44674 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44676 MFLAG=SLAPD_MOD_STATIC
44677 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44680 cat >>confdefs.h <<_ACEOF
44681 #define SLAPD_OVER_RWM $MFLAG
44686 if test "$ol_enable_syncprov" != no ; then
44687 BUILD_SYNCPROV=$ol_enable_syncprov
44688 if test "$ol_enable_syncprov" = mod ; then
44689 MFLAG=SLAPD_MOD_DYNAMIC
44690 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44692 MFLAG=SLAPD_MOD_STATIC
44693 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44696 cat >>confdefs.h <<_ACEOF
44697 #define SLAPD_OVER_SYNCPROV $MFLAG
44702 if test "$ol_enable_translucent" != no ; then
44703 BUILD_TRANSLUCENT=$ol_enable_translucent
44704 if test "$ol_enable_translucent" = mod ; then
44705 MFLAG=SLAPD_MOD_DYNAMIC
44706 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44708 MFLAG=SLAPD_MOD_STATIC
44709 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44712 cat >>confdefs.h <<_ACEOF
44713 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44718 if test "$ol_enable_unique" != no ; then
44719 BUILD_UNIQUE=$ol_enable_unique
44720 if test "$ol_enable_unique" = mod ; then
44721 MFLAG=SLAPD_MOD_DYNAMIC
44722 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44724 MFLAG=SLAPD_MOD_STATIC
44725 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44728 cat >>confdefs.h <<_ACEOF
44729 #define SLAPD_OVER_UNIQUE $MFLAG
44734 if test "$ol_enable_valsort" != no ; then
44735 BUILD_VALSORT=$ol_enable_valsort
44736 if test "$ol_enable_valsort" = mod ; then
44737 MFLAG=SLAPD_MOD_DYNAMIC
44738 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44740 MFLAG=SLAPD_MOD_STATIC
44741 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44744 cat >>confdefs.h <<_ACEOF
44745 #define SLAPD_OVER_VALSORT $MFLAG
44750 if test "$ol_enable_slurpd" != no &&
44751 test "$ol_link_threads" != no &&
44752 test $BUILD_SLAPD = yes ; then
44756 if test "$ol_enable_rewrite" != no ; then
44758 cat >>confdefs.h <<\_ACEOF
44759 #define ENABLE_REWRITE 1
44765 if test "$ol_enable_slapi" != no ; then
44767 cat >>confdefs.h <<\_ACEOF
44768 #define ENABLE_SLAPI 1
44772 SLAPD_SLAPI_DEPEND=libslapi.a
44777 if test "$ac_cv_mingw32" = yes ; then
44779 SLAPD_MODULES_LDFLAGS=
44866 # Check whether --with-xxinstall or --without-xxinstall was given.
44867 if test "${with_xxinstall+set}" = set; then
44868 withval="$with_xxinstall"
44873 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"
44876 ac_config_commands="$ac_config_commands default"
44880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44881 # Let make expand exec_prefix.
44882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44886 # trailing colons and then remove the whole line if VPATH becomes empty
44887 # (actually we leave an empty line to preserve line numbers).
44888 if test "x$srcdir" = x.; then
44889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44890 s/:*\$(srcdir):*/:/;
44891 s/:*\${srcdir}:*/:/;
44893 s/^\([^=]*=[ ]*\):*/\1/;
44899 DEFS=-DHAVE_CONFIG_H
44903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44904 # 1. Remove the extension, and $U if already installed.
44905 ac_i=`echo "$ac_i" |
44906 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44908 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44909 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44911 LIBOBJS=$ac_libobjs
44913 LTLIBOBJS=$ac_ltlibobjs
44916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44917 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44918 Usually this means the macro was only invoked conditionally." >&5
44919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44920 Usually this means the macro was only invoked conditionally." >&2;}
44921 { (exit 1); exit 1; }; }
44923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44925 Usually this means the macro was only invoked conditionally." >&5
44926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44927 Usually this means the macro was only invoked conditionally." >&2;}
44928 { (exit 1); exit 1; }; }
44930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44932 Usually this means the macro was only invoked conditionally." >&5
44933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44934 Usually this means the macro was only invoked conditionally." >&2;}
44935 { (exit 1); exit 1; }; }
44938 : ${CONFIG_STATUS=./config.status}
44939 ac_clean_files_save=$ac_clean_files
44940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44943 cat >$CONFIG_STATUS <<_ACEOF
44945 # Generated by $as_me.
44946 # Run this file to recreate the current configuration.
44947 # Compiler output produced by configure, useful for debugging
44948 # configure, is in config.log if it exists.
44951 ac_cs_recheck=false
44953 SHELL=\${CONFIG_SHELL-$SHELL}
44956 cat >>$CONFIG_STATUS <<\_ACEOF
44957 ## --------------------- ##
44958 ## M4sh Initialization. ##
44959 ## --------------------- ##
44961 # Be Bourne compatible
44962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44966 # is contrary to our usage. Disable this feature.
44967 alias -g '${1+"$@"}'='"$@"'
44968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44971 DUALCASE=1; export DUALCASE # for MKS sh
44973 # Support unset when possible.
44974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44981 # Work around bugs in pre-3.0 UWIN ksh.
44982 $as_unset ENV MAIL MAILPATH
44989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44991 LC_TELEPHONE LC_TIME
44993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44994 eval $as_var=C; export $as_var
45000 # Required to use basename.
45001 if expr a : '\(a\)' >/dev/null 2>&1; then
45007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45008 as_basename=basename
45014 # Name of the executable.
45015 as_me=`$as_basename "$0" ||
45016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45017 X"$0" : 'X\(//\)$' \| \
45018 X"$0" : 'X\(/\)$' \| \
45019 . : '\(.\)' 2>/dev/null ||
45021 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45022 /^X\/\(\/\/\)$/{ s//\1/; q; }
45023 /^X\/\(\/\).*/{ s//\1/; q; }
45027 # PATH needs CR, and LINENO needs CR and PATH.
45028 # Avoid depending upon Character Ranges.
45029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45032 as_cr_digits='0123456789'
45033 as_cr_alnum=$as_cr_Letters$as_cr_digits
45035 # The user is always right.
45036 if test "${PATH_SEPARATOR+set}" != set; then
45037 echo "#! /bin/sh" >conf$$.sh
45038 echo "exit 0" >>conf$$.sh
45040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45049 as_lineno_1=$LINENO
45050 as_lineno_2=$LINENO
45051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45052 test "x$as_lineno_1" != "x$as_lineno_2" &&
45053 test "x$as_lineno_3" = "x$as_lineno_2" || {
45054 # Find who we are. Look in the path if we contain no path at all
45057 *[\\/]* ) as_myself=$0 ;;
45058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45059 for as_dir in $PATH
45062 test -z "$as_dir" && as_dir=.
45063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45068 # We did not find ourselves, most probably we were run as `sh COMMAND'
45069 # in which case we are not to be found in the path.
45070 if test "x$as_myself" = x; then
45073 if test ! -f "$as_myself"; then
45074 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45076 { (exit 1); exit 1; }; }
45078 case $CONFIG_SHELL in
45080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45084 test -z "$as_dir" && as_dir=.
45085 for as_base in sh bash ksh sh5; do
45088 if ("$as_dir/$as_base" -c '
45089 as_lineno_1=$LINENO
45090 as_lineno_2=$LINENO
45091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45092 test "x$as_lineno_1" != "x$as_lineno_2" &&
45093 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45094 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45095 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45096 CONFIG_SHELL=$as_dir/$as_base
45097 export CONFIG_SHELL
45098 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45107 # uniformly replaced by the line number. The first 'sed' inserts a
45108 # line-number line before each line; the second 'sed' does the real
45109 # work. The second script uses 'N' to pair each line-number line
45110 # with the numbered line, and appends trailing '-' during
45111 # substitution so that $LINENO is not a special case at line end.
45112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45113 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45114 sed '=' <$as_myself |
45119 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45122 s,^['$as_cr_digits']*\n,,
45123 ' >$as_me.lineno &&
45124 chmod +x $as_me.lineno ||
45125 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45127 { (exit 1); exit 1; }; }
45129 # Don't try to exec as it changes $[0], causing all sort of problems
45130 # (the dirname of $[0] is not the place where we might find the
45131 # original and so on. Autoconf is especially sensible to this).
45133 # Exit status is that of the last command.
45138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45139 *c*,-n*) ECHO_N= ECHO_C='
45141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45145 if expr a : '\(a\)' >/dev/null 2>&1; then
45151 rm -f conf$$ conf$$.exe conf$$.file
45153 if ln -s conf$$.file conf$$ 2>/dev/null; then
45154 # We could just check for DJGPP; but this test a) works b) is more generic
45155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45156 if test -f conf$$.exe; then
45157 # Don't use ln at all; we don't have any links
45162 elif ln conf$$.file conf$$ 2>/dev/null; then
45167 rm -f conf$$ conf$$.exe conf$$.file
45169 if mkdir -p . 2>/dev/null; then
45172 test -d ./-p && rmdir ./-p
45176 as_executable_p="test -f"
45178 # Sed expression to map a string onto a valid CPP name.
45179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45181 # Sed expression to map a string onto a valid variable name.
45182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45186 # We need space, tab and new line, in precisely that order.
45196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45197 # report actual input values of CONFIG_FILES etc. instead of their
45198 # values after options handling. Logging --version etc. is OK.
45202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45203 ## Running $as_me. ##
45208 This file was extended by $as_me, which was
45209 generated by GNU Autoconf 2.59. Invocation command line was
45211 CONFIG_FILES = $CONFIG_FILES
45212 CONFIG_HEADERS = $CONFIG_HEADERS
45213 CONFIG_LINKS = $CONFIG_LINKS
45214 CONFIG_COMMANDS = $CONFIG_COMMANDS
45218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45222 # Files that config.status was made for.
45223 if test -n "$ac_config_files"; then
45224 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45227 if test -n "$ac_config_headers"; then
45228 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45231 if test -n "$ac_config_links"; then
45232 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45235 if test -n "$ac_config_commands"; then
45236 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45239 cat >>$CONFIG_STATUS <<\_ACEOF
45242 \`$as_me' instantiates files from templates according to the
45243 current configuration.
45245 Usage: $0 [OPTIONS] [FILE]...
45247 -h, --help print this help, then exit
45248 -V, --version print version number, then exit
45249 -q, --quiet do not print progress messages
45250 -d, --debug don't remove temporary files
45251 --recheck update $as_me by reconfiguring in the same conditions
45252 --file=FILE[:TEMPLATE]
45253 instantiate the configuration file FILE
45254 --header=FILE[:TEMPLATE]
45255 instantiate the configuration header FILE
45257 Configuration files:
45260 Configuration headers:
45263 Configuration commands:
45266 Report bugs to <bug-autoconf@gnu.org>."
45269 cat >>$CONFIG_STATUS <<_ACEOF
45272 configured by $0, generated by GNU Autoconf 2.59,
45273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45275 Copyright (C) 2003 Free Software Foundation, Inc.
45276 This config.status script is free software; the Free Software Foundation
45277 gives unlimited permission to copy, distribute and modify it."
45282 cat >>$CONFIG_STATUS <<\_ACEOF
45283 # If no file are specified by the user, then we need to provide default
45284 # value. By we need to know if files were specified by the user.
45290 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45291 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45299 *) # This is not an option, so the user has probably given explicit
45302 ac_need_defaults=false;;
45306 # Handling of the options.
45308 cat >>$CONFIG_STATUS <<\_ACEOF
45309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45311 --version | --vers* | -V )
45312 echo "$ac_cs_version"; exit 0 ;;
45314 # Conflict between --help and --header
45315 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45316 Try \`$0 --help' for more information." >&5
45317 echo "$as_me: error: ambiguous option: $1
45318 Try \`$0 --help' for more information." >&2;}
45319 { (exit 1); exit 1; }; };;
45320 --help | --hel | -h )
45321 echo "$ac_cs_usage"; exit 0 ;;
45322 --debug | --d* | -d )
45324 --file | --fil | --fi | --f )
45326 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45327 ac_need_defaults=false;;
45328 --header | --heade | --head | --hea )
45330 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45331 ac_need_defaults=false;;
45332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45336 # This is an error.
45337 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45338 Try \`$0 --help' for more information." >&5
45339 echo "$as_me: error: unrecognized option: $1
45340 Try \`$0 --help' for more information." >&2;}
45341 { (exit 1); exit 1; }; } ;;
45343 *) ac_config_targets="$ac_config_targets $1" ;;
45349 ac_configure_extra_args=
45351 if $ac_cs_silent; then
45353 ac_configure_extra_args="$ac_configure_extra_args --silent"
45357 cat >>$CONFIG_STATUS <<_ACEOF
45358 if \$ac_cs_recheck; then
45359 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45360 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45365 cat >>$CONFIG_STATUS <<_ACEOF
45367 # INIT-COMMANDS section.
45370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45372 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45373 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45380 cat >>$CONFIG_STATUS <<\_ACEOF
45381 for ac_config_target in $ac_config_targets
45383 case "$ac_config_target" in
45384 # Handling of arguments.
45385 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45386 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45387 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45388 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45389 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45390 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45391 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45392 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45393 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45394 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45395 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45396 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45397 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45398 "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" ;;
45399 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45400 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45401 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45402 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45403 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45404 "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" ;;
45405 "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" ;;
45406 "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" ;;
45407 "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" ;;
45408 "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" ;;
45409 "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" ;;
45410 "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" ;;
45411 "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" ;;
45412 "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" ;;
45413 "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" ;;
45414 "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" ;;
45415 "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" ;;
45416 "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" ;;
45417 "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" ;;
45418 "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" ;;
45419 "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" ;;
45420 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45421 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45422 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45423 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45424 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45425 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45426 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45427 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45428 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45429 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45430 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45431 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45432 { (exit 1); exit 1; }; };;
45436 # If the user did not use the arguments to specify the items to instantiate,
45437 # then the envvar interface is used. Set only those that are not.
45438 # We use the long form for the default assignment because of an extremely
45439 # bizarre bug on SunOS 4.1.3.
45440 if $ac_need_defaults; then
45441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45446 # Have a temporary directory for convenience. Make it in the build tree
45447 # simply because there is no reason to put it here, and in addition,
45448 # creating and moving files from /tmp can sometimes cause problems.
45449 # Create a temporary directory, and hook for its removal unless debugging.
45452 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45453 trap '{ (exit 1); exit 1; }' 1 2 13 15
45456 # Create a (secure) tmp directory for tmp files.
45459 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45460 test -n "$tmp" && test -d "$tmp"
45463 tmp=./confstat$$-$RANDOM
45464 (umask 077 && mkdir $tmp)
45467 echo "$me: cannot create a temporary directory in ." >&2
45468 { (exit 1); exit 1; }
45473 cat >>$CONFIG_STATUS <<_ACEOF
45476 # CONFIG_FILES section.
45479 # No need to generate the scripts if there are no CONFIG_FILES.
45480 # This happens for instance when ./config.status config.h
45481 if test -n "\$CONFIG_FILES"; then
45482 # Protect against being on the right side of a sed subst in config.status.
45483 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45484 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45485 s,@SHELL@,$SHELL,;t t
45486 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45487 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45488 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45489 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45490 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45491 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45492 s,@exec_prefix@,$exec_prefix,;t t
45493 s,@prefix@,$prefix,;t t
45494 s,@program_transform_name@,$program_transform_name,;t t
45495 s,@bindir@,$bindir,;t t
45496 s,@sbindir@,$sbindir,;t t
45497 s,@libexecdir@,$libexecdir,;t t
45498 s,@datadir@,$datadir,;t t
45499 s,@sysconfdir@,$sysconfdir,;t t
45500 s,@sharedstatedir@,$sharedstatedir,;t t
45501 s,@localstatedir@,$localstatedir,;t t
45502 s,@libdir@,$libdir,;t t
45503 s,@includedir@,$includedir,;t t
45504 s,@oldincludedir@,$oldincludedir,;t t
45505 s,@infodir@,$infodir,;t t
45506 s,@mandir@,$mandir,;t t
45507 s,@build_alias@,$build_alias,;t t
45508 s,@host_alias@,$host_alias,;t t
45509 s,@target_alias@,$target_alias,;t t
45510 s,@DEFS@,$DEFS,;t t
45511 s,@ECHO_C@,$ECHO_C,;t t
45512 s,@ECHO_N@,$ECHO_N,;t t
45513 s,@ECHO_T@,$ECHO_T,;t t
45514 s,@LIBS@,$LIBS,;t t
45515 s,@build@,$build,;t t
45516 s,@build_cpu@,$build_cpu,;t t
45517 s,@build_vendor@,$build_vendor,;t t
45518 s,@build_os@,$build_os,;t t
45519 s,@host@,$host,;t t
45520 s,@host_cpu@,$host_cpu,;t t
45521 s,@host_vendor@,$host_vendor,;t t
45522 s,@host_os@,$host_os,;t t
45523 s,@target@,$target,;t t
45524 s,@target_cpu@,$target_cpu,;t t
45525 s,@target_vendor@,$target_vendor,;t t
45526 s,@target_os@,$target_os,;t t
45527 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45528 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45529 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45530 s,@CYGPATH_W@,$CYGPATH_W,;t t
45531 s,@PACKAGE@,$PACKAGE,;t t
45532 s,@VERSION@,$VERSION,;t t
45533 s,@ACLOCAL@,$ACLOCAL,;t t
45534 s,@AUTOCONF@,$AUTOCONF,;t t
45535 s,@AUTOMAKE@,$AUTOMAKE,;t t
45536 s,@AUTOHEADER@,$AUTOHEADER,;t t
45537 s,@MAKEINFO@,$MAKEINFO,;t t
45538 s,@install_sh@,$install_sh,;t t
45539 s,@STRIP@,$STRIP,;t t
45540 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45541 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45542 s,@mkdir_p@,$mkdir_p,;t t
45544 s,@SET_MAKE@,$SET_MAKE,;t t
45545 s,@am__leading_dot@,$am__leading_dot,;t t
45546 s,@AMTAR@,$AMTAR,;t t
45547 s,@am__tar@,$am__tar,;t t
45548 s,@am__untar@,$am__untar,;t t
45549 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45550 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45551 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45552 s,@top_builddir@,$top_builddir,;t t
45553 s,@ldap_subdir@,$ldap_subdir,;t t
45556 s,@CFLAGS@,$CFLAGS,;t t
45557 s,@LDFLAGS@,$LDFLAGS,;t t
45558 s,@CPPFLAGS@,$CPPFLAGS,;t t
45559 s,@ac_ct_CC@,$ac_ct_CC,;t t
45560 s,@EXEEXT@,$EXEEXT,;t t
45561 s,@OBJEXT@,$OBJEXT,;t t
45562 s,@DEPDIR@,$DEPDIR,;t t
45563 s,@am__include@,$am__include,;t t
45564 s,@am__quote@,$am__quote,;t t
45565 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45566 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45567 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45568 s,@CCDEPMODE@,$CCDEPMODE,;t t
45569 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45570 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45571 s,@EGREP@,$EGREP,;t t
45572 s,@LN_S@,$LN_S,;t t
45573 s,@ECHO@,$ECHO,;t t
45574 s,@ac_ct_AR@,$ac_ct_AR,;t t
45575 s,@RANLIB@,$RANLIB,;t t
45576 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45577 s,@DLLTOOL@,$DLLTOOL,;t t
45578 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45580 s,@ac_ct_AS@,$ac_ct_AS,;t t
45581 s,@OBJDUMP@,$OBJDUMP,;t t
45582 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45584 s,@LIBTOOL@,$LIBTOOL,;t t
45585 s,@PERLBIN@,$PERLBIN,;t t
45586 s,@OL_MKDEP@,$OL_MKDEP,;t t
45587 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45588 s,@LTSTATIC@,$LTSTATIC,;t t
45589 s,@LIBOBJS@,$LIBOBJS,;t t
45590 s,@LIBSRCS@,$LIBSRCS,;t t
45591 s,@PLAT@,$PLAT,;t t
45592 s,@WITH_SASL@,$WITH_SASL,;t t
45593 s,@WITH_TLS@,$WITH_TLS,;t t
45594 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45595 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45596 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45597 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45598 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45599 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45600 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45601 s,@BUILD_BDB@,$BUILD_BDB,;t t
45602 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45603 s,@BUILD_HDB@,$BUILD_HDB,;t t
45604 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45605 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45606 s,@BUILD_META@,$BUILD_META,;t t
45607 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45608 s,@BUILD_NULL@,$BUILD_NULL,;t t
45609 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45610 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45611 s,@BUILD_PERL@,$BUILD_PERL,;t t
45612 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45613 s,@BUILD_SQL@,$BUILD_SQL,;t t
45614 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45615 s,@BUILD_DDS@,$BUILD_DDS,;t t
45616 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45617 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45618 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45619 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45620 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45621 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45622 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45623 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45624 s,@BUILD_RWM@,$BUILD_RWM,;t t
45625 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45626 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45627 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45628 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45629 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45630 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45631 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45632 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45633 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45634 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45635 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45636 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45637 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45638 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45639 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45640 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45641 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45642 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45643 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45644 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45645 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45646 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45647 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45648 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45649 s,@SASL_LIBS@,$SASL_LIBS,;t t
45650 s,@TLS_LIBS@,$TLS_LIBS,;t t
45651 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45652 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45653 s,@LIBSLAPI@,$LIBSLAPI,;t t
45654 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45655 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45656 s,@ICU_LIBS@,$ICU_LIBS,;t t
45657 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45658 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45659 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45660 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45661 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45662 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45667 cat >>$CONFIG_STATUS <<\_ACEOF
45668 # Split the substitutions into bite-sized pieces for seds with
45669 # small command number limits, like on Digital OSF/1 and HP-UX.
45670 ac_max_sed_lines=48
45671 ac_sed_frag=1 # Number of current file.
45672 ac_beg=1 # First line for current file.
45673 ac_end=$ac_max_sed_lines # Line after last line for current file.
45676 while $ac_more_lines; do
45677 if test $ac_beg -gt 1; then
45678 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45680 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45682 if test ! -s $tmp/subs.frag; then
45683 ac_more_lines=false
45685 # The purpose of the label and of the branching condition is to
45686 # speed up the sed processing (if there are no `@' at all, there
45687 # is no need to browse any of the substitutions).
45688 # These are the two extra sed commands mentioned above.
45690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45691 if test -z "$ac_sed_cmds"; then
45692 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45694 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45696 ac_sed_frag=`expr $ac_sed_frag + 1`
45698 ac_end=`expr $ac_end + $ac_max_sed_lines`
45701 if test -z "$ac_sed_cmds"; then
45704 fi # test -n "$CONFIG_FILES"
45707 cat >>$CONFIG_STATUS <<\_ACEOF
45708 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45711 - | *:- | *:-:* ) # input from stdin
45713 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45715 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45717 * ) ac_file_in=$ac_file.in ;;
45720 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45723 X"$ac_file" : 'X\(//\)[^/]' \| \
45724 X"$ac_file" : 'X\(//\)$' \| \
45725 X"$ac_file" : 'X\(/\)' \| \
45726 . : '\(.\)' 2>/dev/null ||
45728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45730 /^X\(\/\/\)$/{ s//\1/; q; }
45731 /^X\(\/\).*/{ s//\1/; q; }
45733 { if $as_mkdir_p; then
45738 while test ! -d "$as_dir"; do
45739 as_dirs="$as_dir $as_dirs"
45740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45742 X"$as_dir" : 'X\(//\)[^/]' \| \
45743 X"$as_dir" : 'X\(//\)$' \| \
45744 X"$as_dir" : 'X\(/\)' \| \
45745 . : '\(.\)' 2>/dev/null ||
45747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45749 /^X\(\/\/\)$/{ s//\1/; q; }
45750 /^X\(\/\).*/{ s//\1/; q; }
45753 test ! -n "$as_dirs" || mkdir $as_dirs
45754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45756 { (exit 1); exit 1; }; }; }
45760 if test "$ac_dir" != .; then
45761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45762 # A "../" for each directory in $ac_dir_suffix.
45763 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45765 ac_dir_suffix= ac_top_builddir=
45769 .) # No --srcdir option. We are building in place.
45771 if test -z "$ac_top_builddir"; then
45774 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45776 [\\/]* | ?:[\\/]* ) # Absolute path.
45777 ac_srcdir=$srcdir$ac_dir_suffix;
45778 ac_top_srcdir=$srcdir ;;
45779 *) # Relative path.
45780 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45781 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45784 # Do not use `cd foo && pwd` to compute absolute paths, because
45785 # the directories may not exist.
45787 .) ac_abs_builddir="$ac_dir";;
45790 .) ac_abs_builddir=`pwd`;;
45791 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45792 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45795 case $ac_abs_builddir in
45796 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45798 case ${ac_top_builddir}. in
45799 .) ac_abs_top_builddir=$ac_abs_builddir;;
45800 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45801 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45804 case $ac_abs_builddir in
45805 .) ac_abs_srcdir=$ac_srcdir;;
45808 .) ac_abs_srcdir=$ac_abs_builddir;;
45809 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45810 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45813 case $ac_abs_builddir in
45814 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45816 case $ac_top_srcdir in
45817 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45818 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45819 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45826 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45829 if test x"$ac_file" != x-; then
45830 { echo "$as_me:$LINENO: creating $ac_file" >&5
45831 echo "$as_me: creating $ac_file" >&6;}
45834 # Let's still pretend it is `configure' which instantiates (i.e., don't
45835 # use $as_me), people would be surprised to read:
45836 # /* config.h. Generated by config.status. */
45837 if test x"$ac_file" = x-; then
45840 configure_input="$ac_file. "
45842 configure_input=$configure_input"Generated from `echo $ac_file_in |
45843 sed 's,.*/,,'` by configure."
45845 # First look for the input files in the build tree, otherwise in the
45847 ac_file_inputs=`IFS=:
45848 for f in $ac_file_in; do
45850 -) echo $tmp/stdin ;;
45852 # Absolute (can't be DOS-style, as IFS=:)
45853 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45854 echo "$as_me: error: cannot find input file: $f" >&2;}
45855 { (exit 1); exit 1; }; }
45858 if test -f "$f"; then
45861 elif test -f "$srcdir/$f"; then
45866 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45867 echo "$as_me: error: cannot find input file: $f" >&2;}
45868 { (exit 1); exit 1; }; }
45871 done` || { (exit 1); exit 1; }
45873 cat >>$CONFIG_STATUS <<_ACEOF
45877 cat >>$CONFIG_STATUS <<\_ACEOF
45879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45880 s,@configure_input@,$configure_input,;t t
45881 s,@srcdir@,$ac_srcdir,;t t
45882 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45883 s,@top_srcdir@,$ac_top_srcdir,;t t
45884 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45885 s,@builddir@,$ac_builddir,;t t
45886 s,@abs_builddir@,$ac_abs_builddir,;t t
45887 s,@top_builddir@,$ac_top_builddir,;t t
45888 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45889 s,@INSTALL@,$ac_INSTALL,;t t
45890 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45892 if test x"$ac_file" != x-; then
45893 mv $tmp/out $ac_file
45901 cat >>$CONFIG_STATUS <<\_ACEOF
45904 # CONFIG_HEADER section.
45907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45910 # ac_d sets the value in "#define NAME VALUE" lines.
45911 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45912 ac_dB='[ ].*$,\1#\2'
45915 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45916 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45917 ac_uB='$,\1#\2define\3'
45921 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45924 - | *:- | *:-:* ) # input from stdin
45926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45930 * ) ac_file_in=$ac_file.in ;;
45933 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45934 echo "$as_me: creating $ac_file" >&6;}
45936 # First look for the input files in the build tree, otherwise in the
45938 ac_file_inputs=`IFS=:
45939 for f in $ac_file_in; do
45941 -) echo $tmp/stdin ;;
45943 # Absolute (can't be DOS-style, as IFS=:)
45944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45945 echo "$as_me: error: cannot find input file: $f" >&2;}
45946 { (exit 1); exit 1; }; }
45947 # Do quote $f, to prevent DOS paths from being IFS'd.
45950 if test -f "$f"; then
45953 elif test -f "$srcdir/$f"; then
45958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45959 echo "$as_me: error: cannot find input file: $f" >&2;}
45960 { (exit 1); exit 1; }; }
45963 done` || { (exit 1); exit 1; }
45964 # Remove the trailing spaces.
45965 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45970 # `conftest.undefs', that substitutes the proper values into
45971 # config.h.in to produce config.h. The first handles `#define'
45972 # templates, and the second `#undef' templates.
45973 # And first: Protect against being on the right side of a sed subst in
45974 # config.status. Protect against being in an unquoted here document
45975 # in config.status.
45976 rm -f conftest.defines conftest.undefs
45977 # Using a here document instead of a string reduces the quoting nightmare.
45978 # Putting comments in sed scripts is not portable.
45980 # `end' is used to avoid that the second main sed command (meant for
45981 # 0-ary CPP macros) applies to n-ary macro definitions.
45982 # See the Autoconf documentation for `clear'.
45983 cat >confdef2sed.sed <<\_ACEOF
45988 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45990 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45993 # If some macros were called several times there might be several times
45994 # the same #defines, which is useless. Nevertheless, we may not want to
45995 # sort them, since we want the *last* AC-DEFINE to be honored.
45996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45998 rm -f confdef2sed.sed
46000 # This sed command replaces #undef with comments. This is necessary, for
46001 # example, in the case of _POSIX_SOURCE, which is predefined and required
46002 # on some systems where configure will not decide to define it.
46003 cat >>conftest.undefs <<\_ACEOF
46004 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46007 # Break up conftest.defines because some shells have a limit on the size
46008 # of here documents, and old seds have small limits too (100 cmds).
46009 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46010 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46011 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46012 echo ' :' >>$CONFIG_STATUS
46013 rm -f conftest.tail
46014 while grep . conftest.defines >/dev/null
46016 # Write a limited-size here document to $tmp/defines.sed.
46017 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46018 # Speed up: don't consider the non `#define' lines.
46019 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46020 # Work around the forget-to-reset-the-flag bug.
46021 echo 't clr' >>$CONFIG_STATUS
46022 echo ': clr' >>$CONFIG_STATUS
46023 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46025 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46027 mv $tmp/out $tmp/in
46029 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46030 rm -f conftest.defines
46031 mv conftest.tail conftest.defines
46033 rm -f conftest.defines
46034 echo ' fi # grep' >>$CONFIG_STATUS
46035 echo >>$CONFIG_STATUS
46037 # Break up conftest.undefs because some shells have a limit on the size
46038 # of here documents, and old seds have small limits too (100 cmds).
46039 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46040 rm -f conftest.tail
46041 while grep . conftest.undefs >/dev/null
46043 # Write a limited-size here document to $tmp/undefs.sed.
46044 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46045 # Speed up: don't consider the non `#undef'
46046 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46047 # Work around the forget-to-reset-the-flag bug.
46048 echo 't clr' >>$CONFIG_STATUS
46049 echo ': clr' >>$CONFIG_STATUS
46050 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46052 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46054 mv $tmp/out $tmp/in
46056 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46057 rm -f conftest.undefs
46058 mv conftest.tail conftest.undefs
46060 rm -f conftest.undefs
46062 cat >>$CONFIG_STATUS <<\_ACEOF
46063 # Let's still pretend it is `configure' which instantiates (i.e., don't
46064 # use $as_me), people would be surprised to read:
46065 # /* config.h. Generated by config.status. */
46066 if test x"$ac_file" = x-; then
46067 echo "/* Generated by configure. */" >$tmp/config.h
46069 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46071 cat $tmp/in >>$tmp/config.h
46073 if test x"$ac_file" != x-; then
46074 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46076 echo "$as_me: $ac_file is unchanged" >&6;}
46078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46080 X"$ac_file" : 'X\(//\)[^/]' \| \
46081 X"$ac_file" : 'X\(//\)$' \| \
46082 X"$ac_file" : 'X\(/\)' \| \
46083 . : '\(.\)' 2>/dev/null ||
46085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46087 /^X\(\/\/\)$/{ s//\1/; q; }
46088 /^X\(\/\).*/{ s//\1/; q; }
46090 { if $as_mkdir_p; then
46095 while test ! -d "$as_dir"; do
46096 as_dirs="$as_dir $as_dirs"
46097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46099 X"$as_dir" : 'X\(//\)[^/]' \| \
46100 X"$as_dir" : 'X\(//\)$' \| \
46101 X"$as_dir" : 'X\(/\)' \| \
46102 . : '\(.\)' 2>/dev/null ||
46104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46106 /^X\(\/\/\)$/{ s//\1/; q; }
46107 /^X\(\/\).*/{ s//\1/; q; }
46110 test ! -n "$as_dirs" || mkdir $as_dirs
46111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46113 { (exit 1); exit 1; }; }; }
46116 mv $tmp/config.h $ac_file
46120 rm -f $tmp/config.h
46122 # Compute $ac_file's index in $config_headers.
46124 for _am_header in $config_headers :; do
46125 case $_am_header in
46126 $ac_file | $ac_file:* )
46129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46132 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46133 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46134 X$ac_file : 'X\(//\)[^/]' \| \
46135 X$ac_file : 'X\(//\)$' \| \
46136 X$ac_file : 'X\(/\)' \| \
46137 . : '\(.\)' 2>/dev/null ||
46139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46141 /^X\(\/\/\)$/{ s//\1/; q; }
46142 /^X\(\/\).*/{ s//\1/; q; }
46143 s/.*/./; q'`/stamp-h$_am_stamp_count
46146 cat >>$CONFIG_STATUS <<\_ACEOF
46149 # CONFIG_COMMANDS section.
46151 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46152 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46153 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46154 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46155 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46156 X"$ac_dest" : 'X\(//\)[^/]' \| \
46157 X"$ac_dest" : 'X\(//\)$' \| \
46158 X"$ac_dest" : 'X\(/\)' \| \
46159 . : '\(.\)' 2>/dev/null ||
46161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46163 /^X\(\/\/\)$/{ s//\1/; q; }
46164 /^X\(\/\).*/{ s//\1/; q; }
46166 { if $as_mkdir_p; then
46171 while test ! -d "$as_dir"; do
46172 as_dirs="$as_dir $as_dirs"
46173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46175 X"$as_dir" : 'X\(//\)[^/]' \| \
46176 X"$as_dir" : 'X\(//\)$' \| \
46177 X"$as_dir" : 'X\(/\)' \| \
46178 . : '\(.\)' 2>/dev/null ||
46180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46182 /^X\(\/\/\)$/{ s//\1/; q; }
46183 /^X\(\/\).*/{ s//\1/; q; }
46186 test ! -n "$as_dirs" || mkdir $as_dirs
46187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46189 { (exit 1); exit 1; }; }; }
46193 if test "$ac_dir" != .; then
46194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46195 # A "../" for each directory in $ac_dir_suffix.
46196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46198 ac_dir_suffix= ac_top_builddir=
46202 .) # No --srcdir option. We are building in place.
46204 if test -z "$ac_top_builddir"; then
46207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46209 [\\/]* | ?:[\\/]* ) # Absolute path.
46210 ac_srcdir=$srcdir$ac_dir_suffix;
46211 ac_top_srcdir=$srcdir ;;
46212 *) # Relative path.
46213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46214 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46217 # Do not use `cd foo && pwd` to compute absolute paths, because
46218 # the directories may not exist.
46220 .) ac_abs_builddir="$ac_dir";;
46223 .) ac_abs_builddir=`pwd`;;
46224 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46225 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46228 case $ac_abs_builddir in
46229 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46231 case ${ac_top_builddir}. in
46232 .) ac_abs_top_builddir=$ac_abs_builddir;;
46233 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46234 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46237 case $ac_abs_builddir in
46238 .) ac_abs_srcdir=$ac_srcdir;;
46241 .) ac_abs_srcdir=$ac_abs_builddir;;
46242 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46243 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46246 case $ac_abs_builddir in
46247 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46249 case $ac_top_srcdir in
46250 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46251 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46252 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46257 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46258 echo "$as_me: executing $ac_dest commands" >&6;}
46260 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46261 # Strip MF so we end up with the name of the file.
46262 mf=`echo "$mf" | sed -e 's/:.*$//'`
46263 # Check whether this is an Automake generated Makefile or not.
46264 # We used to match only the files named `Makefile.in', but
46265 # some people rename them; so instead we look at the file content.
46266 # Grep'ing the first line is not enough: some people post-process
46267 # each Makefile.in and add a new line on top of each file to say so.
46268 # So let's grep whole file.
46269 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46270 dirpart=`(dirname "$mf") 2>/dev/null ||
46271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46272 X"$mf" : 'X\(//\)[^/]' \| \
46273 X"$mf" : 'X\(//\)$' \| \
46274 X"$mf" : 'X\(/\)' \| \
46275 . : '\(.\)' 2>/dev/null ||
46277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46279 /^X\(\/\/\)$/{ s//\1/; q; }
46280 /^X\(\/\).*/{ s//\1/; q; }
46285 # Extract the definition of DEPDIR, am__include, and am__quote
46286 # from the Makefile without running `make'.
46287 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46288 test -z "$DEPDIR" && continue
46289 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46290 test -z "am__include" && continue
46291 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46292 # When using ansi2knr, U may be empty or an underscore; expand it
46293 U=`sed -n 's/^U = //p' < "$mf"`
46294 # Find all dependency output files, they are included files with
46295 # $(DEPDIR) in their names. We invoke sed twice because it is the
46296 # simplest approach to changing $(DEPDIR) to its actual value in the
46298 for file in `sed -n "
46299 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46300 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46301 # Make sure the directory exists.
46302 test -f "$dirpart/$file" && continue
46303 fdir=`(dirname "$file") 2>/dev/null ||
46304 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46305 X"$file" : 'X\(//\)[^/]' \| \
46306 X"$file" : 'X\(//\)$' \| \
46307 X"$file" : 'X\(/\)' \| \
46308 . : '\(.\)' 2>/dev/null ||
46310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46312 /^X\(\/\/\)$/{ s//\1/; q; }
46313 /^X\(\/\).*/{ s//\1/; q; }
46315 { if $as_mkdir_p; then
46316 mkdir -p $dirpart/$fdir
46318 as_dir=$dirpart/$fdir
46320 while test ! -d "$as_dir"; do
46321 as_dirs="$as_dir $as_dirs"
46322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46324 X"$as_dir" : 'X\(//\)[^/]' \| \
46325 X"$as_dir" : 'X\(//\)$' \| \
46326 X"$as_dir" : 'X\(/\)' \| \
46327 . : '\(.\)' 2>/dev/null ||
46329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46331 /^X\(\/\/\)$/{ s//\1/; q; }
46332 /^X\(\/\).*/{ s//\1/; q; }
46335 test ! -n "$as_dirs" || mkdir $as_dirs
46336 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46337 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46338 { (exit 1); exit 1; }; }; }
46340 # echo "creating $dirpart/$file"
46341 echo '# dummy' > "$dirpart/$file"
46348 BACKENDSC="servers/slapd/backends.c"
46349 echo "Making $BACKENDSC"
46351 cat > $BACKENDSC << ENDX
46352 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46354 * Copyright 1998-2006 The OpenLDAP Foundation.
46355 * All rights reserved.
46357 * Redistribution and use in source and binary forms, with or without
46358 * modification, are permitted only as authorized by the OpenLDAP
46361 * A copy of this license is available in the file LICENSE in the
46362 * top-level directory of the distribution or, alternatively, at
46363 * <http://www.OpenLDAP.org/license.html>.
46365 /* This file is automatically generated by configure; please do not edit. */
46367 #include "portable.h"
46371 if test "${STATIC_BACKENDS}"; then
46372 for b in config ${STATIC_BACKENDS}; do
46373 bb=`echo "${b}" | sed -e 's/back-//'`
46374 cat >> $BACKENDSC << ENDX
46375 extern BI_init ${bb}_back_initialize;
46379 cat >> $BACKENDSC << ENDX
46381 BackendInfo slap_binfo[] = {
46384 for b in config ${STATIC_BACKENDS}; do
46385 bb=`echo "${b}" | sed -e 's/back-//'`
46386 echo " Add ${bb} ..."
46387 cat >> $BACKENDSC << ENDX
46388 { "${bb}", ${bb}_back_initialize },
46392 cat >> $BACKENDSC << ENDX
46396 /* end of generated file */
46399 OVERLAYSC="servers/slapd/overlays/statover.c"
46400 echo "Making $OVERLAYSC"
46402 cat > $OVERLAYSC << ENDX
46403 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46405 * Copyright 1998-2006 The OpenLDAP Foundation.
46406 * All rights reserved.
46408 * Redistribution and use in source and binary forms, with or without
46409 * modification, are permitted only as authorized by the OpenLDAP
46412 * A copy of this license is available in the file LICENSE in the
46413 * top-level directory of the distribution or, alternatively, at
46414 * <http://www.OpenLDAP.org/license.html>.
46416 /* This file is automatically generated by configure; please do not edit. */
46418 #include "portable.h"
46422 if test "${STATIC_OVERLAYS}"; then
46423 for o in ${STATIC_OVERLAYS}; do
46424 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46425 cat >> $OVERLAYSC << ENDX
46426 extern OV_init ${oo}_initialize;
46431 cat >> $OVERLAYSC << ENDX
46433 OverlayInit slap_oinfo[] = {
46436 if test "${STATIC_OVERLAYS}"; then
46437 for o in ${STATIC_OVERLAYS}; do
46438 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46439 echo " Add ${oo} ..."
46440 cat >> $OVERLAYSC << ENDX
46441 { "${oo}", ${oo}_initialize },
46446 cat >> $OVERLAYSC << ENDX
46450 /* end of generated file */
46453 echo Please run \"make depend\" to build dependencies
46459 cat >>$CONFIG_STATUS <<\_ACEOF
46461 { (exit 0); exit 0; }
46463 chmod +x $CONFIG_STATUS
46464 ac_clean_files=$ac_clean_files_save
46467 # configure is writing to config.log, and then calls config.status.
46468 # config.status does its own redirection, appending to config.log.
46469 # Unfortunately, on DOS this fails, as config.log is still kept open
46470 # by configure, so config.status won't be able to write to it; its
46471 # output is simply discarded. So we exec the FD to /dev/null,
46472 # effectively closing config.log, so it can be properly (re)opened and
46473 # appended to by config.status. When coming back to configure, we
46474 # need to make the FD available again.
46475 if test "$no_create" != yes; then
46477 ac_config_status_args=
46478 test "$silent" = yes &&
46479 ac_config_status_args="$ac_config_status_args --quiet"
46481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46484 # would make configure fail if this is the last instruction.
46485 $ac_cs_success || { (exit 1); exit 1; }