2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.26 2006/02/13 17:35:52 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_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 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 [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-aci enable per-object ACIs (experimental) [no]
1019 --enable-cleartext enable cleartext passwords [yes]
1020 --enable-crypt enable crypt(3) passwords [no]
1021 --enable-lmpasswd enable LAN Manager passwords [no]
1022 --enable-spasswd enable (Cyrus) SASL password verification [no]
1023 --enable-modules enable dynamic module support [no]
1024 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1025 --enable-rlookups enable reverse lookups of client hostnames [no]
1026 --enable-slapi enable SLAPI support (experimental) [no]
1027 --enable-slp enable SLPv2 support [no]
1028 --enable-wrappers enable tcp wrapper support [no]
1030 SLAPD Backend Options:
1031 --enable-backends enable all available backends no|yes|mod
1032 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1033 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1034 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1035 --enable-ldap enable ldap backend no|yes|mod [no]
1036 --enable-ldbm enable ldbm backend no|yes|mod [no]
1037 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1039 --enable-meta enable metadirectory backend no|yes|mod [no]
1040 --enable-monitor enable monitor backend no|yes|mod [yes]
1041 --enable-null enable null backend no|yes|mod [no]
1042 --enable-passwd enable passwd backend no|yes|mod [no]
1043 --enable-perl enable perl backend no|yes|mod [no]
1044 --enable-relay enable relay backend no|yes|mod [yes]
1045 --enable-shell enable shell backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 SLURPD (Replication Daemon) Options:
1066 --enable-slurpd enable building slurpd [auto]
1068 Library Generation & Linking Options
1069 --enable-static[=PKGS]
1070 build static libraries [default=yes]
1071 --enable-shared[=PKGS]
1072 build shared libraries [default=yes]
1073 --enable-fast-install[=PKGS]
1074 optimize for fast installation [default=yes]
1075 --disable-dependency-tracking speeds up one-time build
1076 --enable-dependency-tracking do not reject slow dependency extractors
1077 --disable-libtool-lock avoid locking (might break parallel builds)
1080 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1081 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1082 --with-subdir=DIR change default subdirectory used for installs
1083 --with-cyrus-sasl with Cyrus SASL support [auto]
1084 --with-fetch with fetch(3) URL support [auto]
1085 --with-threads with threads [auto]
1086 --with-tls with TLS/SSL support [auto]
1087 --with-yielding-select with implicitly yielding select [auto]
1088 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1091 --with-pic try to use only PIC/non-PIC objects [default=use
1094 include additional configurations [automatic]
1096 See INSTALL file for further details.
1098 Some influential environment variables:
1099 CC C compiler command
1100 CFLAGS C compiler flags
1101 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1102 nonstandard directory <lib dir>
1103 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104 headers in a nonstandard directory <include dir>
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1210 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59. Invocation command line was
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_must_keep_next=false
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
1298 ac_must_keep_next=false # Got value, back to normal.
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 -* ) ac_must_keep_next=true ;;
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log. We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1338 # The following way of writing the cache mishandles newlines in values,
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1361 for ac_var in $ac_subst_vars
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1368 if test -n "$ac_subst_files"; then
1375 for ac_var in $ac_subst_files
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1383 if test -s confdefs.h; then
1390 sed "/^$/d" confdefs.h | sort
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1397 rm -f core *.core &&
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in auto yes no ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363 withval="$with_threads"
2366 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2367 if test "$withval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374 { (exit 1); exit 1; }; }
2376 ol_with_threads="$ol_arg"
2379 ol_with_threads="auto"
2380 fi; # end --with-threads
2382 # OpenLDAP --with-tls
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2389 for ol_val in auto openssl yes no ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397 { (exit 1); exit 1; }; }
2399 ol_with_tls="$ol_arg"
2403 fi; # end --with-tls
2405 # OpenLDAP --with-yielding_select
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409 withval="$with_yielding_select"
2412 for ol_val in auto yes no manual ; do
2413 if test "$withval" = "$ol_val" ; then
2417 if test "$ol_arg" = "invalid" ; then
2418 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420 { (exit 1); exit 1; }; }
2422 ol_with_yielding_select="$ol_arg"
2425 ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2428 # OpenLDAP --with-mp
2430 # Check whether --with-mp or --without-mp was given.
2431 if test "${with_mp+set}" = set; then
2435 for ol_val in auto longlong long bignum gmp yes no ; do
2436 if test "$withval" = "$ol_val" ; then
2440 if test "$ol_arg" = "invalid" ; then
2441 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2442 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2443 { (exit 1); exit 1; }; }
2445 ol_with_mp="$ol_arg"
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455 enableval="$enable_xxslapdoptions"
2458 # OpenLDAP --enable-slapd
2460 # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462 enableval="$enable_slapd"
2465 for ol_val in auto yes no ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_enable_slapd="$ol_arg"
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2483 # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485 enableval="$enable_aci"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_aci="$ol_arg"
2504 # OpenLDAP --enable-cleartext
2506 # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508 enableval="$enable_cleartext"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_cleartext="$ol_arg"
2524 ol_enable_cleartext=yes
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2529 # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531 enableval="$enable_crypt"
2534 for ol_val in auto yes no ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_crypt="$ol_arg"
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2552 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554 enableval="$enable_lmpasswd"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_lmpasswd="$ol_arg"
2570 ol_enable_lmpasswd=no
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2575 # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577 enableval="$enable_spasswd"
2580 for ol_val in auto yes no ; do
2581 if test "$enableval" = "$ol_val" ; then
2585 if test "$ol_arg" = "invalid" ; then
2586 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_spasswd="$ol_arg"
2593 ol_enable_spasswd=no
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2598 # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600 enableval="$enable_modules"
2603 for ol_val in auto yes no ; do
2604 if test "$enableval" = "$ol_val" ; then
2608 if test "$ol_arg" = "invalid" ; then
2609 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_modules="$ol_arg"
2616 ol_enable_modules=no
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2622 # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624 enableval="$enable_rewrite"
2627 for ol_val in auto yes no ; do
2628 if test "$enableval" = "$ol_val" ; then
2632 if test "$ol_arg" = "invalid" ; then
2633 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635 { (exit 1); exit 1; }; }
2637 ol_enable_rewrite="$ol_arg"
2640 ol_enable_rewrite=auto
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2645 # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647 enableval="$enable_rlookups"
2650 for ol_val in auto yes no ; do
2651 if test "$enableval" = "$ol_val" ; then
2655 if test "$ol_arg" = "invalid" ; then
2656 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658 { (exit 1); exit 1; }; }
2660 ol_enable_rlookups="$ol_arg"
2663 ol_enable_rlookups=no
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2668 # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670 enableval="$enable_slapi"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_slapi="$ol_arg"
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2691 # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693 enableval="$enable_slp"
2696 for ol_val in auto yes no ; do
2697 if test "$enableval" = "$ol_val" ; then
2701 if test "$ol_arg" = "invalid" ; then
2702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704 { (exit 1); exit 1; }; }
2706 ol_enable_slp="$ol_arg"
2712 # OpenLDAP --enable-wrappers
2714 # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716 enableval="$enable_wrappers"
2719 for ol_val in auto yes no ; do
2720 if test "$enableval" = "$ol_val" ; then
2724 if test "$ol_arg" = "invalid" ; then
2725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727 { (exit 1); exit 1; }; }
2729 ol_enable_wrappers="$ol_arg"
2732 ol_enable_wrappers=no
2734 # end --enable-wrappers
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752 enableval="$enable_xxslapbackends"
2756 # OpenLDAP --enable-backends
2758 # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760 enableval="$enable_backends"
2763 for ol_val in no yes mod ; do
2764 if test "$enableval" = "$ol_val" ; then
2768 if test "$ol_arg" = "invalid" ; then
2769 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771 { (exit 1); exit 1; }; }
2773 ol_enable_backends="$ol_arg"
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2779 # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781 enableval="$enable_bdb"
2784 for ol_val in no yes mod ; do
2785 if test "$enableval" = "$ol_val" ; then
2789 if test "$ol_arg" = "invalid" ; then
2790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792 { (exit 1); exit 1; }; }
2794 ol_enable_bdb="$ol_arg"
2797 ol_enable_bdb=${ol_enable_backends:-yes}
2800 # OpenLDAP --enable-dnssrv
2802 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804 enableval="$enable_dnssrv"
2807 for ol_val in no yes mod ; do
2808 if test "$enableval" = "$ol_val" ; then
2812 if test "$ol_arg" = "invalid" ; then
2813 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_dnssrv="$ol_arg"
2820 ol_enable_dnssrv=${ol_enable_backends:-no}
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2825 # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827 enableval="$enable_hdb"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_hdb="$ol_arg"
2843 ol_enable_hdb=${ol_enable_backends:-yes}
2846 # OpenLDAP --enable-ldap
2848 # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850 enableval="$enable_ldap"
2853 for ol_val in no yes mod ; do
2854 if test "$enableval" = "$ol_val" ; then
2858 if test "$ol_arg" = "invalid" ; then
2859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861 { (exit 1); exit 1; }; }
2863 ol_enable_ldap="$ol_arg"
2866 ol_enable_ldap=${ol_enable_backends:-no}
2869 # OpenLDAP --enable-ldbm
2871 # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873 enableval="$enable_ldbm"
2876 for ol_val in no yes mod ; do
2877 if test "$enableval" = "$ol_val" ; then
2881 if test "$ol_arg" = "invalid" ; then
2882 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884 { (exit 1); exit 1; }; }
2886 ol_enable_ldbm="$ol_arg"
2889 ol_enable_ldbm=${ol_enable_backends:-no}
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895 withval="$with_ldbm_api"
2897 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899 enable_ldbm_api="$with_ldbm_api"
2901 # OpenLDAP --enable-ldbm_api
2903 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905 enableval="$enable_ldbm_api"
2908 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909 if test "$enableval" = "$ol_val" ; then
2913 if test "$ol_arg" = "invalid" ; then
2914 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916 { (exit 1); exit 1; }; }
2918 ol_enable_ldbm_api="$ol_arg"
2921 ol_enable_ldbm_api=auto
2923 # end --enable-ldbm_api
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928 withval="$with_ldbm_type"
2930 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932 enable_ldbm_type="$with_ldbm_type"
2934 # OpenLDAP --enable-ldbm_type
2936 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938 enableval="$enable_ldbm_type"
2941 for ol_val in auto btree hash ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_ldbm_type="$ol_arg"
2954 ol_enable_ldbm_type=auto
2956 # end --enable-ldbm_type
2958 # OpenLDAP --enable-meta
2960 # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962 enableval="$enable_meta"
2965 for ol_val in no yes mod ; do
2966 if test "$enableval" = "$ol_val" ; then
2970 if test "$ol_arg" = "invalid" ; then
2971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973 { (exit 1); exit 1; }; }
2975 ol_enable_meta="$ol_arg"
2978 ol_enable_meta=${ol_enable_backends:-no}
2981 # OpenLDAP --enable-monitor
2983 # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985 enableval="$enable_monitor"
2988 for ol_val in no yes mod ; do
2989 if test "$enableval" = "$ol_val" ; then
2993 if test "$ol_arg" = "invalid" ; then
2994 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996 { (exit 1); exit 1; }; }
2998 ol_enable_monitor="$ol_arg"
3001 ol_enable_monitor=${ol_enable_backends:-yes}
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3006 # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008 enableval="$enable_null"
3011 for ol_val in no yes mod ; do
3012 if test "$enableval" = "$ol_val" ; then
3016 if test "$ol_arg" = "invalid" ; then
3017 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019 { (exit 1); exit 1; }; }
3021 ol_enable_null="$ol_arg"
3024 ol_enable_null=${ol_enable_backends:-no}
3027 # OpenLDAP --enable-passwd
3029 # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031 enableval="$enable_passwd"
3034 for ol_val in no yes mod ; do
3035 if test "$enableval" = "$ol_val" ; then
3039 if test "$ol_arg" = "invalid" ; then
3040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042 { (exit 1); exit 1; }; }
3044 ol_enable_passwd="$ol_arg"
3047 ol_enable_passwd=${ol_enable_backends:-no}
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3052 # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054 enableval="$enable_perl"
3057 for ol_val in no yes mod ; do
3058 if test "$enableval" = "$ol_val" ; then
3062 if test "$ol_arg" = "invalid" ; then
3063 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065 { (exit 1); exit 1; }; }
3067 ol_enable_perl="$ol_arg"
3070 ol_enable_perl=${ol_enable_backends:-no}
3073 # OpenLDAP --enable-relay
3075 # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077 enableval="$enable_relay"
3080 for ol_val in no yes mod ; do
3081 if test "$enableval" = "$ol_val" ; then
3085 if test "$ol_arg" = "invalid" ; then
3086 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088 { (exit 1); exit 1; }; }
3090 ol_enable_relay="$ol_arg"
3093 ol_enable_relay=${ol_enable_backends:-yes}
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3098 # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100 enableval="$enable_shell"
3103 for ol_val in no yes mod ; do
3104 if test "$enableval" = "$ol_val" ; then
3108 if test "$ol_arg" = "invalid" ; then
3109 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111 { (exit 1); exit 1; }; }
3113 ol_enable_shell="$ol_arg"
3116 ol_enable_shell=${ol_enable_backends:-no}
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3121 # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123 enableval="$enable_sql"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_sql="$ol_arg"
3139 ol_enable_sql=${ol_enable_backends:-no}
3143 Overlays="accesslog \
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160 enableval="$enable_xxslapoverlays"
3164 # OpenLDAP --enable-overlays
3166 # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168 enableval="$enable_overlays"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_overlays="$ol_arg"
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3187 # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189 enableval="$enable_accesslog"
3192 for ol_val in no yes mod ; do
3193 if test "$enableval" = "$ol_val" ; then
3197 if test "$ol_arg" = "invalid" ; then
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200 { (exit 1); exit 1; }; }
3202 ol_enable_accesslog="$ol_arg"
3205 ol_enable_accesslog=${ol_enable_overlays:-no}
3207 # end --enable-accesslog
3209 # OpenLDAP --enable-denyop
3211 # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213 enableval="$enable_denyop"
3216 for ol_val in no yes mod ; do
3217 if test "$enableval" = "$ol_val" ; then
3221 if test "$ol_arg" = "invalid" ; then
3222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ol_enable_denyop="$ol_arg"
3229 ol_enable_denyop=${ol_enable_overlays:-no}
3231 # end --enable-denyop
3233 # OpenLDAP --enable-dyngroup
3235 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237 enableval="$enable_dyngroup"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_dyngroup="$ol_arg"
3253 ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 # end --enable-dyngroup
3257 # OpenLDAP --enable-dynlist
3259 # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261 enableval="$enable_dynlist"
3264 for ol_val in no yes mod ; do
3265 if test "$enableval" = "$ol_val" ; then
3269 if test "$ol_arg" = "invalid" ; then
3270 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272 { (exit 1); exit 1; }; }
3274 ol_enable_dynlist="$ol_arg"
3277 ol_enable_dynlist=${ol_enable_overlays:-no}
3279 # end --enable-dynlist
3281 # OpenLDAP --enable-lastmod
3283 # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285 enableval="$enable_lastmod"
3288 for ol_val in no yes mod ; do
3289 if test "$enableval" = "$ol_val" ; then
3293 if test "$ol_arg" = "invalid" ; then
3294 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296 { (exit 1); exit 1; }; }
3298 ol_enable_lastmod="$ol_arg"
3301 ol_enable_lastmod=${ol_enable_overlays:-no}
3303 # end --enable-lastmod
3305 # OpenLDAP --enable-ppolicy
3307 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309 enableval="$enable_ppolicy"
3312 for ol_val in no yes mod ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_ppolicy="$ol_arg"
3325 ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 # end --enable-ppolicy
3329 # OpenLDAP --enable-proxycache
3331 # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333 enableval="$enable_proxycache"
3336 for ol_val in no yes mod ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_proxycache="$ol_arg"
3349 ol_enable_proxycache=${ol_enable_overlays:-no}
3351 # end --enable-proxycache
3353 # OpenLDAP --enable-refint
3355 # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357 enableval="$enable_refint"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_refint="$ol_arg"
3373 ol_enable_refint=${ol_enable_overlays:-no}
3375 # end --enable-refint
3377 # OpenLDAP --enable-retcode
3379 # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381 enableval="$enable_retcode"
3384 for ol_val in no yes mod ; do
3385 if test "$enableval" = "$ol_val" ; then
3389 if test "$ol_arg" = "invalid" ; then
3390 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392 { (exit 1); exit 1; }; }
3394 ol_enable_retcode="$ol_arg"
3397 ol_enable_retcode=${ol_enable_overlays:-no}
3399 # end --enable-retcode
3401 # OpenLDAP --enable-rwm
3403 # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405 enableval="$enable_rwm"
3408 for ol_val in no yes mod ; do
3409 if test "$enableval" = "$ol_val" ; then
3413 if test "$ol_arg" = "invalid" ; then
3414 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416 { (exit 1); exit 1; }; }
3418 ol_enable_rwm="$ol_arg"
3421 ol_enable_rwm=${ol_enable_overlays:-no}
3425 # OpenLDAP --enable-syncprov
3427 # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429 enableval="$enable_syncprov"
3432 for ol_val in no yes mod ; do
3433 if test "$enableval" = "$ol_val" ; then
3437 if test "$ol_arg" = "invalid" ; then
3438 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440 { (exit 1); exit 1; }; }
3442 ol_enable_syncprov="$ol_arg"
3445 ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 # end --enable-syncprov
3449 # OpenLDAP --enable-translucent
3451 # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453 enableval="$enable_translucent"
3456 for ol_val in no yes mod ; do
3457 if test "$enableval" = "$ol_val" ; then
3461 if test "$ol_arg" = "invalid" ; then
3462 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464 { (exit 1); exit 1; }; }
3466 ol_enable_translucent="$ol_arg"
3469 ol_enable_translucent=${ol_enable_overlays:-no}
3471 # end --enable-translucent
3473 # OpenLDAP --enable-unique
3475 # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477 enableval="$enable_unique"
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_unique="$ol_arg"
3493 ol_enable_unique=${ol_enable_overlays:-no}
3495 # end --enable-unique
3497 # OpenLDAP --enable-valsort
3499 # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501 enableval="$enable_valsort"
3504 for ol_val in no yes mod ; do
3505 if test "$enableval" = "$ol_val" ; then
3509 if test "$ol_arg" = "invalid" ; then
3510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512 { (exit 1); exit 1; }; }
3514 ol_enable_valsort="$ol_arg"
3517 ol_enable_valsort=${ol_enable_overlays:-no}
3519 # end --enable-valsort
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524 enableval="$enable_xxslurpdoptions"
3527 # OpenLDAP --enable-slurpd
3529 # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531 enableval="$enable_slurpd"
3534 for ol_val in auto yes no ; do
3535 if test "$enableval" = "$ol_val" ; then
3539 if test "$ol_arg" = "invalid" ; then
3540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542 { (exit 1); exit 1; }; }
3544 ol_enable_slurpd="$ol_arg"
3547 ol_enable_slurpd=auto
3549 # end --enable-slurpd
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553 enableval="$enable_xxliboptions"
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558 enableval="$enable_static"
3559 p=${PACKAGE-default}
3561 yes) enable_static=yes ;;
3562 no) enable_static=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582 enableval="$enable_shared"
3583 p=${PACKAGE-default}
3585 yes) enable_shared=yes ;;
3586 no) enable_shared=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3607 if test $ol_enable_slapd = no ; then
3608 if test $ol_enable_slapi = yes ; then
3609 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612 case "$ol_enable_backends" in yes | mod)
3613 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616 for i in $Backends; do
3617 eval "ol_tmp=\$ol_enable_$i"
3618 if test $ol_tmp != no ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621 eval "ol_enable_$i=no"
3624 if test $ol_enable_modules = yes ; then
3625 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628 if test $ol_enable_multimaster = yes ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632 if test $ol_enable_wrappers = yes ; then
3633 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636 if test $ol_enable_rlookups = yes ; then
3637 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640 if test $ol_enable_aci = yes ; then
3641 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644 if test $ol_enable_ldbm_api != auto ; then
3645 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648 if test $ol_enable_ldbm_type != auto ; then
3649 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652 if test $ol_enable_slurpd = yes ; then
3653 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655 { (exit 1); exit 1; }; }
3657 if test $ol_enable_rewrite = yes ; then
3658 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661 case "$ol_enable_overlays" in yes | mod)
3662 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665 for i in $Overlays; do
3666 eval "ol_tmp=\$ol_enable_$i"
3667 if test $ol_tmp != no ; then
3668 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670 eval "ol_enable_$i=no"
3674 # force settings to no
3679 ol_enable_modules=no
3680 ol_enable_multimaster=no
3681 ol_enable_rlookups=no
3683 ol_enable_wrappers=no
3685 ol_enable_ldbm_api=no
3686 ol_enable_ldbm_type=no
3690 ol_enable_rewrite=no
3692 elif test $ol_enable_ldbm = no ; then
3694 if test $ol_enable_ldbm_api != auto ; then
3695 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3699 if test $ol_enable_ldbm_type != auto ; then
3700 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3704 if test $ol_enable_modules != yes &&
3705 test $ol_enable_bdb = no &&
3706 test $ol_enable_dnssrv = no &&
3707 test $ol_enable_hdb = no &&
3708 test $ol_enable_ldap = no &&
3709 test $ol_enable_meta = no &&
3710 test $ol_enable_monitor = no &&
3711 test $ol_enable_null = no &&
3712 test $ol_enable_passwd = no &&
3713 test $ol_enable_perl = no &&
3714 test $ol_enable_relay = no &&
3715 test $ol_enable_shell = no &&
3716 test $ol_enable_sql = no ; then
3718 if test $ol_enable_slapd = yes ; then
3719 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3729 ol_enable_ldbm_api=no
3730 ol_enable_ldbm_type=no
3732 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733 ol_enable_ldbm_api=berkeley
3737 if test $ol_enable_ldbm_api = gdbm &&
3738 test $ol_enable_ldbm_type = btree ; then
3739 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741 { (exit 1); exit 1; }; }
3743 if test $ol_enable_ldbm_api = mdbm &&
3744 test $ol_enable_ldbm_type = btree ; then
3745 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747 { (exit 1); exit 1; }; }
3749 if test $ol_enable_ldbm_api = ndbm &&
3750 test $ol_enable_ldbm_type = btree ; then
3751 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753 { (exit 1); exit 1; }; }
3756 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757 if test $ol_enable_ldbm_api = auto ; then
3758 ol_enable_ldbm_api=berkeley
3759 elif test $ol_enable_ldbm_api != berkeley ; then
3760 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762 { (exit 1); exit 1; }; }
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770 { (exit 1); exit 1; }; }
3773 if test $ol_enable_slurpd = yes ; then
3774 if test $ol_with_threads = no ; then
3775 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777 { (exit 1); exit 1; }; }
3781 if test $ol_enable_lmpasswd = yes ; then
3782 if test $ol_with_tls = no ; then
3783 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785 { (exit 1); exit 1; }; }
3789 if test $ol_enable_kbind = yes ; then
3790 if test $ol_with_kerberos = no ; then
3791 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793 { (exit 1); exit 1; }; }
3794 elif test $ol_with_kerberos = auto ; then
3795 ol_with_kerberos=yes
3798 elif test $ol_enable_kbind = no ; then
3799 if test $ol_with_kerberos = auto ; then
3801 elif test $ol_with_kerberos != no ; then
3802 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3808 if test $ol_enable_spasswd = yes ; then
3809 if test $ol_with_cyrus_sasl = no ; then
3810 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812 { (exit 1); exit 1; }; }
3814 ol_with_cyrus_sasl=yes
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3861 BUILD_TRANSLUCENT=no
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3906 *-*-aix*) if test -z "$CC" ; then
3907 case "$ol_with_threads" in
3908 auto | yes | posix) ol_aix_threads=yes ;;
3914 if test $ol_aix_threads = yes ; then
3915 if test -z "${CC}" ; then
3916 for ac_prog in cc_r xlc_r cc
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_CC="$ac_prog"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$CC"; then
3946 echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 test -n "$CC" && break
3957 if test "$CC" = cc ; then
3958 if test $ol_with_threads != auto ; then
3959 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961 { (exit 1); exit 1; }; }
3963 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3970 case ${CC} in cc_r | xlc_r)
3971 ol_with_threads=posix
3972 ol_cv_pthread_create=yes
3977 if test -z "${CC}"; then
3978 for ac_prog in cc gcc
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="$ac_prog"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4015 test -n "$CC" && break
4017 test -n "$CC" || CC="missing"
4020 if test "${CC}" = "missing" ; then
4021 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4023 { (exit 1); exit 1; }; }
4027 if test -z "${AR}"; then
4028 for ac_prog in ar gar
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$AR"; then
4038 ac_cv_prog_AR="$AR" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_AR="$ac_prog"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$AR"; then
4058 echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 test -n "$AR" && break
4067 test -n "$AR" || AR="missing"
4070 if test "${AR}" = "missing" ; then
4071 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4073 { (exit 1); exit 1; }; }
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083 enableval="$enable_fast_install"
4084 p=${PACKAGE-default}
4086 yes) enable_fast_install=yes ;;
4087 no) enable_fast_install=no ;;
4089 enable_fast_install=no
4090 # Look at the argument we got. We use all the common list separators.
4091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092 for pkg in $enableval; do
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4102 enable_fast_install=yes
4105 DEPDIR="${am__leading_dot}deps"
4107 ac_config_commands="$ac_config_commands depfiles"
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136 echo '.include "confinc"' > confmf
4137 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138 am__include=.include
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151 enableval="$enable_dependency_tracking"
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4160 if test "x$enable_dependency_tracking" != xno; then
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4212 if test -z "$ac_cv_prog_CC"; then
4214 # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$ac_ct_CC"; then
4222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_CC="gcc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$CC"; then
4284 echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CC"; then
4421 echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$CC" && break
4431 if test -z "$CC"; then
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$ac_ct_CC" && break
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487 "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490 (eval $ac_compiler --version </dev/null >&5) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495 (eval $ac_compiler -v </dev/null >&5) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500 (eval $ac_compiler -V </dev/null >&5) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529 (eval $ac_link_default) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 # Find the output, starting from the most likely. This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4543 test -f "$ac_file" || continue
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4548 # This is the source file.
4551 # We found the default executable, but exeext='' is most
4555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # FIXME: I believe we export ac_cv_exeext for Libtool,
4557 # but it would be cool to find out if it's true. Does anybody
4558 # maintain Libtool? --akim.
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573 { (exit 77); exit 77; }; }
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4580 # Check the compiler produces executables we can run. If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587 if { ac_try='./$ac_file'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 if test "$cross_compiling" = maybe; then
4598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run. If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4631 for ac_file in conftest.exe conftest conftest.*; do
4632 test -f "$ac_file" || continue
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4642 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822 CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824 if test "$GCC" = yes; then
4830 if test "$GCC" = yes; then
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_cv_prog_cc_stdc=no
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4867 s = g (p, va_arg (v,int));
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873 function prototypes and stuff, but not '\xHH' hex character constants.
4874 These don't provoke an error unfortunately, instead are silently treated
4875 as 'x'. The following induces an error, until -std1 is added to get
4876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877 array size at least. It's necessary to write '\x00'==0 to get something
4878 that's true only with -std1. */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX -qlanglvl=ansi
4898 # Ultrix and OSF/1 -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions -Aa -D_HPUX_SOURCE
4901 # SVR4 -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904 CC="$ac_save_CC $ac_arg"
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_prog_cc_stdc=$ac_arg
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f conftest.err conftest.$ac_objext
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4941 case "x$ac_cv_prog_cc_stdc" in
4943 echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948 CC="$CC $ac_cv_prog_cc_stdc" ;;
4951 # Some people use a C++ compiler to compile C. Since we use `exit',
4952 # in C++ we need to declare it. In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 if test -n "$ac_declaration"; then
5083 echo '#ifdef __cplusplus' >>confdefs.h
5084 echo $ac_declaration >>confdefs.h
5085 echo '#endif' >>confdefs.h
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 depcc="$CC" am_compiler_list=
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108 # We make a subdir and do the tests there. Otherwise we can end up
5109 # making bogus files that we don't know about and never remove. For
5110 # instance it was reported that on HP-UX the gcc test will end up
5111 # making a dummy file named `D' -- because `-MD' means `put the output
5114 # Copy depcomp to subdir because otherwise we won't find it if we're
5115 # using a relative directory.
5116 cp "$am_depcomp" conftest.dir
5118 # We will build objects and dependencies in a subdirectory because
5119 # it helps to detect inapplicable dependency modes. For instance
5120 # both Tru64's cc and ICC support -MD to output dependencies as a
5121 # side effect of compilation, but ICC will put the dependencies in
5122 # the current directory while Tru64 will put them in the object
5126 am_cv_CC_dependencies_compiler_type=none
5127 if test "$am_compiler_list" = ""; then
5128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149 # after this tag, mechanisms are not by side-effect, so they'll
5150 # only be used when explicitly requested
5151 if test "x$enable_dependency_tracking" = xyes; then
5159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160 # mode. It turns out that the SunPro C++ compiler does not properly
5161 # handle `-M -o', and we need to detect this.
5162 if depmode=$depmode \
5163 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166 >/dev/null 2>conftest.err &&
5167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170 # icc doesn't choke on unknown options, it will just issue warnings
5171 # or remarks (even with -Werror). So we grep stderr for any message
5172 # that says an option was ignored or not supported.
5173 # When given -MP, icc 7.0 and 7.1 complain thusly:
5174 # icc: Command line warning: ignoring option '-M'; no argument required
5175 # The diagnosis changed in icc 8.0:
5176 # icc: Command line remark: option '-MP' not supported
5177 if (grep 'ignoring option' conftest.err ||
5178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179 am_cv_CC_dependencies_compiler_type=$depmode
5188 am_cv_CC_dependencies_compiler_type=none
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_FALSE='#'
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for lt_ac_prog in sed gsed; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234 test ! -f $lt_ac_sed && continue
5235 cat /dev/null > conftest.in
5237 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238 # Check for GNU sed and select it if it is found.
5239 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240 lt_cv_path_SED=$lt_ac_sed
5244 cat conftest.in conftest.in >conftest.tmp
5245 mv conftest.tmp conftest.in
5246 cp conftest.in conftest.nl
5248 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249 cmp -s conftest.out conftest.nl || break
5250 # 10000 chars as input seems more than enough
5251 test $lt_ac_count -gt 10 && break
5252 lt_ac_count=`expr $lt_ac_count + 1`
5253 if test $lt_ac_count -gt $lt_ac_max; then
5254 lt_ac_max=$lt_ac_count
5255 lt_cv_path_SED=$lt_ac_sed
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272 then ac_cv_prog_egrep='grep -E'
5273 else ac_cv_prog_egrep='egrep'
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278 EGREP=$ac_cv_prog_egrep
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284 withval="$with_gnu_ld"
5285 test "$withval" = no || with_gnu_ld=yes
5290 if test "$GCC" = yes; then
5291 # Check if gcc -print-prog-name=ld gives a path.
5292 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5296 # gcc leaves a trailing carriage return which upsets mingw
5297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302 # Accept absolute paths.
5304 re_direlt='/[^/][^/]*/\.\./'
5305 # Canonicalize the pathname of ld
5306 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5310 test -z "$LD" && LD="$ac_prog"
5313 # If it fails, then pretend we aren't using GCC.
5317 # If it is relative, then search for the first ld in PATH.
5321 elif test "$with_gnu_ld" = yes; then
5322 echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5325 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5328 if test "${lt_cv_path_LD+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -z "$LD"; then
5332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD="$ac_dir/$ac_prog"
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some variants of GNU ld only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test "$with_gnu_ld" != no && break
5346 test "$with_gnu_ld" != yes && break
5353 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5358 if test -n "$LD"; then
5359 echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5362 echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367 { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376 lt_cv_prog_gnu_ld=yes
5379 lt_cv_prog_gnu_ld=no
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 lt_cv_ld_reload_flag='-r'
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5400 *) reload_flag=" $reload_flag" ;;
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5405 if test "$GCC" = yes; then
5406 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 if test -n "$NM"; then
5419 # Let the user override the test.
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440 lt_cv_path_NM="$tmp_nm -p"
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5462 if test "$LN_S" = "ln -s"; then
5463 echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5491 lt_cv_deplibs_check_method=pass_all
5495 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500 lt_cv_file_magic_cmd='/usr/bin/file -L'
5501 lt_cv_file_magic_test_file=/shlib/libc.so
5505 # func_win32_libid is a shell function defined in ltmain.sh
5506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507 lt_cv_file_magic_cmd='func_win32_libid'
5511 # Base MSYS/MinGW do not provide the 'file' command needed by
5512 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5517 darwin* | rhapsody*)
5518 lt_cv_deplibs_check_method=pass_all
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5525 # Not sure whether the presence of OpenBSD here was a mistake.
5526 # Let's accept both of them until this is cleared up.
5527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5533 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5541 hpux10.20* | hpux11*)
5542 lt_cv_file_magic_cmd=/usr/bin/file
5545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5549 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]'
5550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5559 irix5* | irix6* | nonstopux*)
5561 *-32|*"-32 ") libmagic=32-bit;;
5562 *-n32|*"-n32 ") libmagic=N32;;
5563 *-64|*"-64 ") libmagic=64-bit;;
5564 *) libmagic=never-match;;
5566 lt_cv_deplibs_check_method=pass_all
5569 # This must be Linux ELF.
5571 lt_cv_deplibs_check_method=pass_all
5575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5589 lt_cv_deplibs_check_method=unknown
5593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 osf3* | osf4* | osf5*)
5601 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_deplibs_check_method=pass_all
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613 case $host_vendor in
5615 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]'
5616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_file_magic_cmd='/bin/file'
5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5626 lt_cv_file_magic_cmd='/bin/file'
5627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628 lt_cv_file_magic_test_file=/lib/libc.so
5631 lt_cv_deplibs_check_method=pass_all
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637 lt_cv_deplibs_check_method=pass_all
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651 # If no C compiler was specified, use CC.
5654 # Allow CC to be a program name with arguments.
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660 enableval="$enable_libtool_lock"
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665 # Some flags need to be propagated to the compiler or linker for good
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; then
5676 case `/usr/bin/file conftest.$ac_objext` in
5688 # Find out which ABI we are using.
5689 echo '#line 5689 "configure"' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 if test "$lt_cv_prog_gnu_ld" = yes; then
5696 case `/usr/bin/file conftest.$ac_objext` in
5698 LD="${LD-ld} -melf32bsmip"
5701 LD="${LD-ld} -melf32bmipn32"
5704 LD="${LD-ld} -melf64bmip"
5708 case `/usr/bin/file conftest.$ac_objext` in
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725 # Find out which ABI we are using.
5726 echo 'int i;' > conftest.$ac_ext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then
5732 case `/usr/bin/file conftest.o` in
5736 LD="${LD-ld} -m elf_i386"
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5742 LD="${LD-ld} -m elf_s390"
5745 LD="${LD-ld} -m elf32_sparc"
5752 LD="${LD-ld} -m elf_x86_64"
5754 ppc*-*linux*|powerpc*-*linux*)
5755 LD="${LD-ld} -m elf64ppc"
5758 LD="${LD-ld} -m elf64_s390"
5761 LD="${LD-ld} -m elf64_sparc"
5771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772 SAVE_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -belf"
5774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 lt_cv_cc_needs_belf=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 lt_cv_cc_needs_belf=no
5829 rm -f conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842 CFLAGS="$SAVE_CFLAGS"
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$DLLTOOL"; then
5855 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884 ac_ct_DLLTOOL=$DLLTOOL
5885 # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$ac_ct_DLLTOOL"; then
5893 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5921 DLLTOOL=$ac_ct_DLLTOOL
5923 DLLTOOL="$ac_cv_prog_DLLTOOL"
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$AS"; then
5935 ac_cv_prog_AS="$AS" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_AS="${ac_tool_prefix}as"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 if test -n "$AS"; then
5955 echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5963 if test -z "$ac_cv_prog_AS"; then
5965 # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$ac_ct_AS"; then
5973 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_AS="as"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$OBJDUMP"; then
6015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6077 echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6081 OBJDUMP=$ac_ct_OBJDUMP
6083 OBJDUMP="$ac_cv_prog_OBJDUMP"
6090 need_locks="$enable_libtool_lock"
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6104 if test -z "$CPP"; then
6105 if test "${ac_cv_prog_CPP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 # Double quotes because CPP needs to be expanded
6109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6112 for ac_c_preproc_warn_flag in '' yes
6114 # Use a header file that comes with gcc, so configuring glibc
6115 # with a fresh cross-compiler works.
6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117 # <limits.h> exists even on freestanding compilers.
6118 # On the NeXT, cc -E runs the code through the compiler's parser,
6119 # not just through cpp. "Syntax error" is here to catch this case.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 # include <limits.h>
6129 # include <assert.h>
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null; then
6141 if test -s conftest.err; then
6142 ac_cpp_err=$ac_c_preproc_warn_flag
6143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6150 if test -z "$ac_cpp_err"; then
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 # Broken: fails on valid input.
6159 rm -f conftest.err conftest.$ac_ext
6161 # OK, works on sane cases. Now check whether non-existent headers
6162 # can be detected and how.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ac_nonexistent.h>
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } >/dev/null; then
6179 if test -s conftest.err; then
6180 ac_cpp_err=$ac_c_preproc_warn_flag
6181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6188 if test -z "$ac_cpp_err"; then
6189 # Broken: success on invalid input.
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 # Passes both tests.
6199 rm -f conftest.err conftest.$ac_ext
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6219 for ac_c_preproc_warn_flag in '' yes
6221 # Use a header file that comes with gcc, so configuring glibc
6222 # with a fresh cross-compiler works.
6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224 # <limits.h> exists even on freestanding compilers.
6225 # On the NeXT, cc -E runs the code through the compiler's parser,
6226 # not just through cpp. "Syntax error" is here to catch this case.
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 # include <limits.h>
6236 # include <assert.h>
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257 if test -z "$ac_cpp_err"; then
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 # Broken: fails on valid input.
6266 rm -f conftest.err conftest.$ac_ext
6268 # OK, works on sane cases. Now check whether non-existent headers
6269 # can be detected and how.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <ac_nonexistent.h>
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } >/dev/null; then
6286 if test -s conftest.err; then
6287 ac_cpp_err=$ac_c_preproc_warn_flag
6288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6295 if test -z "$ac_cpp_err"; then
6296 # Broken: success on invalid input.
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 # Passes both tests.
6306 rm -f conftest.err conftest.$ac_ext
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318 { (exit 1); exit 1; }; }
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag"
6362 || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest.$ac_objext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_header_stdc=yes
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_header_stdc=no
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 if test $ac_cv_header_stdc = yes; then
6384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "memchr" >/dev/null 2>&1; then
6398 ac_cv_header_stdc=no
6404 if test $ac_cv_header_stdc = yes; then
6405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416 $EGREP "free" >/dev/null 2>&1; then
6419 ac_cv_header_stdc=no
6425 if test $ac_cv_header_stdc = yes; then
6426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427 if test "$cross_compiling" = yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 # define ISLOWER(c) \
6442 (('a' <= (c) && (c) <= 'i') \
6443 || ('j' <= (c) && (c) <= 'r') \
6444 || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6453 for (i = 0; i < 256; i++)
6454 if (XOR (islower (i), ISLOWER (i))
6455 || toupper (i) != TOUPPER (i))
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6473 echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_header_stdc=no
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505 inttypes.h stdint.h unistd.h
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6521 #include <$ac_header>
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 (eval $ac_compile) 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest.$ac_objext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 eval "$as_ac_Header=yes"
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 eval "$as_ac_Header=no"
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 for ac_header in dlfcn.h
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571 echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579 # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6589 #include <$ac_header>
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_header_compiler=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_header_compiler=no
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <$ac_header>
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev/null; then
6643 if test -s conftest.err; then
6644 ac_cpp_err=$ac_c_preproc_warn_flag
6645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6652 if test -z "$ac_cpp_err"; then
6653 ac_header_preproc=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_header_preproc=no
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6664 # So? What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671 ac_header_preproc=yes
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688 ## --------------------------------------------- ##
6689 ## Report this to <http://www.openldap.org/its/> ##
6690 ## --------------------------------------------- ##
6693 sed "s/^/$as_me: WARNING: /" >&2
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 eval "$as_ac_Header=\$ac_header_preproc"
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 # On DJGPP, this test can blow up pretty badly due to problems in libc
6731 # (any single argument exceeding 2000 bytes causes a buffer overrun
6732 # during glob expansion). Even if it were fixed, the result of this
6733 # check would be larger than it should be.
6734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6738 # Under GNU Hurd, this test is not required because there is
6739 # no limit to the length of command line arguments.
6740 # Libtool will interpret -1 as no limit whatsoever
6741 lt_cv_sys_max_cmd_len=-1;
6745 # On Win9x/ME, this test blows up -- it succeeds, but takes
6746 # about 5 minutes as the teststring grows exponentially.
6747 # Worse, since 9x/ME are not pre-emptively multitasking,
6748 # you end up with a "frozen" computer, even though with patience
6749 # the test eventually succeeds (with a max line length of 256k).
6750 # Instead, let's just punt: use the minimum linelength reported by
6751 # all of the supported platforms: 8192 (on NT/2K/XP).
6752 lt_cv_sys_max_cmd_len=8192;
6756 # On AmigaOS with pdksh, this test takes hours, literally.
6757 # So we just punt and use a minimum line length of 8192.
6758 lt_cv_sys_max_cmd_len=8192;
6761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762 # This has been around since 386BSD, at least. Likely further.
6763 if test -x /sbin/sysctl; then
6764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765 elif test -x /usr/sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6770 # And add a safety zone
6771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777 # nice to cause kernel panics so lets avoid the loop below.
6778 # First set a reasonable default.
6779 lt_cv_sys_max_cmd_len=16384
6781 if test -x /sbin/sysconfig; then
6782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6788 # If test is not a shell built-in, we'll probably end up computing a
6789 # maximum length that is only half of the actual maximum length, but
6791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793 = "XX$teststring") >/dev/null 2>&1 &&
6794 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795 lt_cv_sys_max_cmd_len=$new_result &&
6796 test $i != 17 # 1/2 MB should be enough
6799 teststring=$teststring$teststring
6802 # Add a significant safety factor because C++ compilers can tack on massive
6803 # amounts of additional arguments before passing them to the linker.
6804 # It appears as though 1/2 is a usable value.
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6815 echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6844 # Define system-specific variables.
6849 cygwin* | mingw* | pw32*)
6850 symcode='[ABCDGISTW]'
6852 hpux*) # Its linker distinguishes data from code symbols
6853 if test "$host_cpu" = ia64; then
6854 symcode='[ABCDEGRST]'
6856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857 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'"
6860 if test "$host_cpu" = ia64; then
6861 symcode='[ABCDGIRSTW]'
6862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863 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'"
6867 symcode='[BCDEGRST]'
6870 symcode='[BCDEGQRST]'
6880 # Handle CRLF in mingw tool chain
6884 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891 symcode='[ABCDGIRSTW]' ;;
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898 symxfrm="\\1 $ac_symprfx\\2 \\2"
6900 # Write the raw and C identifiers.
6901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6903 # Check to see that the pipe works correctly.
6907 cat > conftest.$ac_ext <<EOF
6912 void nm_test_func(){}
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; then
6924 # Now try to grab the symbols.
6926 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && test -s "$nlist"; then
6931 # Try sorting and uniquifying the output.
6932 if sort "$nlist" | uniq > "$nlist"T; then
6933 mv -f "$nlist"T "$nlist"
6938 # Make sure that we snagged all the symbols we need.
6939 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941 cat <<EOF > conftest.$ac_ext
6947 # Now generate the symbol file.
6948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6950 cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6954 # define lt_ptr_t char *
6958 /* The mapping between symbol names and symbols. */
6963 lt_preloaded_symbols[] =
6966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967 cat <<\EOF >> conftest.$ac_ext
6975 # Now try linking the two files.
6976 mv conftest.$ac_objext conftstm.$ac_objext
6977 lt_save_LIBS="$LIBS"
6978 lt_save_CFLAGS="$CFLAGS"
6979 LIBS="conftstm.$ac_objext"
6980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6988 LIBS="$lt_save_LIBS"
6989 CFLAGS="$lt_save_CFLAGS"
6991 echo "cannot find nm_test_func in $nlist" >&5
6994 echo "cannot find nm_test_var in $nlist" >&5
6997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000 echo "$progname: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 rm -f conftest* conftst*
7005 # Do not use the global_symbol_pipe unless it works.
7006 if test "$pipe_works" = yes; then
7009 lt_cv_sys_global_symbol_pipe=
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016 lt_cv_sys_global_symbol_to_cdecl=
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019 echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7022 echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7036 # MS-DOS does not allow filenames that begin with a dot.
7039 rmdir .libs 2>/dev/null
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7051 # AIX sometimes has problems with the GCC collect2 program. For some
7052 # reason, if we set the COLLECT_NAMES environment variable, the problems
7053 # vanish in a puff of smoke.
7054 if test "X${COLLECT_NAMES+set}" != Xset; then
7056 export COLLECT_NAMES
7061 # Sed substitution that helps us do robust quoting. It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7080 default_ofile=libtool
7081 can_build_shared=yes
7083 # All known linkers require a `.a' archive for static linking (except MSVC,
7084 # which needs '.lib').
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AR="${ac_tool_prefix}ar"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 if test -n "$AR"; then
7119 echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7127 if test -z "$ac_cv_prog_AR"; then
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 if test -n "$RANLIB"; then
7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199 echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208 ac_ct_RANLIB=$RANLIB
7209 # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 if test -n "$ac_ct_RANLIB"; then
7217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_RANLIB="ranlib"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7241 echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7245 RANLIB=$ac_ct_RANLIB
7247 RANLIB="$ac_cv_prog_RANLIB"
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 if test -n "$STRIP"; then
7259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279 echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7287 if test -z "$ac_cv_prog_STRIP"; then
7289 # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 if test -n "$ac_ct_STRIP"; then
7297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_STRIP="strip"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7327 STRIP="$ac_cv_prog_STRIP"
7332 old_CFLAGS="$CFLAGS"
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7356 if test -n "$RANLIB"; then
7359 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7362 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7368 for cc_temp in $compiler""; do
7370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7382 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/${ac_tool_prefix}file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such. This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem. Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444 if test -n "$ac_tool_prefix"; then
7445 echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7455 lt_save_MAGIC_CMD="$MAGIC_CMD"
7456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458 for ac_dir in $ac_dummy; do
7460 test -z "$ac_dir" && ac_dir=.
7461 if test -f $ac_dir/file; then
7462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463 if test -n "$file_magic_test_file"; then
7464 case $deplibs_check_method in
7466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469 $EGREP "$file_magic_regex" > /dev/null; then
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such. This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem. Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7491 MAGIC_CMD="$lt_save_MAGIC_CMD"
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7515 enable_win32_dll=yes
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519 enableval="$enable_libtool_lock"
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7532 test -z "$pic_mode" && pic_mode=default
7534 # Use C for the default configuration in the libtool script
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 # Source file extension for C test sources.
7547 # Object file extension for compiled C test sources.
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7558 # If no C compiler was specified, use CC.
7561 # Allow CC to be a program name with arguments.
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7580 # Check for any special shared library compilation flags.
7583 if test "$GCC" = no; then
7586 lt_prog_cc_shlib='-belf'
7590 if test -n "$lt_prog_cc_shlib"; then
7591 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7595 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597 lt_cv_prog_cc_can_build_shared=no
7603 # Check to make sure the static flag actually works.
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 lt_prog_compiler_static_works=no
7611 save_LDFLAGS="$LDFLAGS"
7612 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615 # The linker can only warn and ignore the option if not recognized
7616 # So say no if there are warnings
7617 if test -s conftest.err; then
7618 # Append any errors to the config.log.
7619 cat conftest.err 1>&5
7620 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621 $SED '/^$/d' conftest.err >conftest.er2
7622 if diff conftest.exp conftest.er2 >/dev/null; then
7623 lt_prog_compiler_static_works=yes
7626 lt_prog_compiler_static_works=yes
7630 LDFLAGS="$save_LDFLAGS"
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7639 lt_prog_compiler_static=
7645 lt_prog_compiler_no_builtin_flag=
7647 if test "$GCC" = yes; then
7648 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 lt_cv_prog_compiler_rtti_exceptions=no
7657 ac_outfile=conftest.$ac_objext
7658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659 lt_compiler_flag="-fno-rtti -fno-exceptions"
7660 # Insert the option either (1) after the last *FLAGS variable, or
7661 # (2) before a word containing "conftest.", or (3) at the end.
7662 # Note that $ac_compile itself does not contain backslashes and begins
7663 # with a dollar sign (not a hyphen), so the echo should work correctly.
7664 # The option is referenced via a variable to avoid confusing sed.
7665 lt_compile=`echo "$ac_compile" | $SED \
7666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668 -e 's:$: $lt_compiler_flag:'`
7669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670 (eval "$lt_compile" 2>conftest.err)
7672 cat conftest.err >&5
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 if (exit $ac_status) && test -s "$ac_outfile"; then
7675 # The compiler can only warn and ignore the option if not recognized
7676 # So say no if there are warnings other than the usual output.
7677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678 $SED '/^$/d' conftest.err >conftest.er2
7679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680 lt_cv_prog_compiler_rtti_exceptions=yes
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7704 if test "$GCC" = yes; then
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_static='-static'
7710 # All AIX code is PIC.
7711 if test "$host_cpu" = ia64; then
7712 # AIX 5 now supports IA64 processor
7713 lt_prog_compiler_static='-Bstatic'
7718 # FIXME: we need at least 68020 code to build shared libraries, but
7719 # adding the `-m68020' flag to GCC prevents building anything better,
7721 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725 # PIC is the default for these OSes.
7728 mingw* | pw32* | os2*)
7729 # This hack is so that the source file can tell whether it is being
7730 # built for inclusion in a dll (and should export symbols for example).
7731 lt_prog_compiler_pic='-DDLL_EXPORT'
7734 darwin* | rhapsody*)
7735 # PIC is the default on this platform
7736 # Common symbols not allowed in MH_DYLIB files
7737 lt_prog_compiler_pic='-fno-common'
7741 # Just because we use GCC doesn't mean we suddenly get shared libraries
7742 # on systems that don't support them.
7743 lt_prog_compiler_can_build_shared=no
7748 if test -d /usr/nec; then
7749 lt_prog_compiler_pic=-Kconform_pic
7754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761 lt_prog_compiler_pic='-fPIC'
7767 lt_prog_compiler_pic='-fPIC'
7771 # PORTME Check for flag to pass linker flags through the system compiler.
7774 lt_prog_compiler_wl='-Wl,'
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 now supports IA64 processor
7777 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7783 # PIC is the default on this platform
7784 # Common symbols not allowed in MH_DYLIB files
7785 case $cc_basename in
7787 lt_prog_compiler_pic='-qnocommon'
7788 lt_prog_compiler_wl='-Wl,'
7793 mingw* | pw32* | os2*)
7794 # This hack is so that the source file can tell whether it is being
7795 # built for inclusion in a dll (and should export symbols for example).
7796 lt_prog_compiler_pic='-DDLL_EXPORT'
7799 hpux9* | hpux10* | hpux11*)
7800 lt_prog_compiler_wl='-Wl,'
7801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 lt_prog_compiler_pic='+Z'
7811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812 lt_prog_compiler_static='${wl}-a ${wl}archive'
7815 irix5* | irix6* | nonstopux*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # PIC (with -KPIC) is the default.
7818 lt_prog_compiler_static='-non_shared'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7827 case $cc_basename in
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-static'
7833 pgcc* | pgf77* | pgf90* | pgf95*)
7834 # Portland Group compilers (*not* the Pentium gcc compiler,
7835 # which looks to be a dead project)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-fpic'
7838 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_wl='-Wl,'
7842 # All Alpha code is PIC.
7843 lt_prog_compiler_static='-non_shared'
7848 osf3* | osf4* | osf5*)
7849 lt_prog_compiler_wl='-Wl,'
7850 # All OSF/1 code is PIC.
7851 lt_prog_compiler_static='-non_shared'
7855 lt_prog_compiler_pic='-Kpic'
7856 lt_prog_compiler_static='-dn'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 case $cc_basename in
7864 lt_prog_compiler_wl='-Qoption ld ';;
7866 lt_prog_compiler_wl='-Wl,';;
7871 lt_prog_compiler_wl='-Qoption ld '
7872 lt_prog_compiler_pic='-PIC'
7873 lt_prog_compiler_static='-Bstatic'
7876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7883 if test -d /usr/nec ;then
7884 lt_prog_compiler_pic='-Kconform_pic'
7885 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_can_build_shared=no
7895 lt_prog_compiler_pic='-pic'
7896 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_can_build_shared=no
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7909 # Check to make sure the PIC flag actually works.
7911 if test -n "$lt_prog_compiler_pic"; then
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 lt_prog_compiler_pic_works=no
7919 ac_outfile=conftest.$ac_objext
7920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 # The option is referenced via a variable to avoid confusing sed.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>conftest.err)
7934 cat conftest.err >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s "$ac_outfile"; then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings other than the usual output.
7939 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940 $SED '/^$/d' conftest.err >conftest.er2
7941 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942 lt_prog_compiler_pic_works=yes
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952 case $lt_prog_compiler_pic in
7954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7957 lt_prog_compiler_pic=
7958 lt_prog_compiler_can_build_shared=no
7963 # For platforms which do not support PIC, -DPIC is meaningless:
7965 lt_prog_compiler_pic=
7968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_cv_prog_compiler_c_o=no
7978 $rm -r conftest 2>/dev/null
7982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7984 lt_compiler_flag="-o out/conftest2.$ac_objext"
7985 # Insert the option either (1) after the last *FLAGS variable, or
7986 # (2) before a word containing "conftest.", or (3) at the end.
7987 # Note that $ac_compile itself does not contain backslashes and begins
7988 # with a dollar sign (not a hyphen), so the echo should work correctly.
7989 lt_compile=`echo "$ac_compile" | $SED \
7990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992 -e 's:$: $lt_compiler_flag:'`
7993 (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994 (eval "$lt_compile" 2>out/conftest.err)
7996 cat out/conftest.err >&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8000 # The compiler can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003 $SED '/^$/d' out/conftest.err >out/conftest.er2
8004 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_c_o=yes
8010 # SGI C++ compiler will create directory out/ii_files/ for
8011 # template instantiation
8012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013 $rm out/* && rmdir out
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025 # do not overwrite the value of need_locks provided by the user
8026 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8032 ln conftest.a conftest.b 2>&5 || hard_links=no
8033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034 echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036 if test "$hard_links" = no; then
8037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8049 allow_undefined_flag=
8050 enable_shared_with_static_runtimes=no
8052 archive_expsym_cmds=
8053 old_archive_From_new_cmds=
8054 old_archive_from_expsyms_cmds=
8055 export_dynamic_flag_spec=
8056 whole_archive_flag_spec=
8057 thread_safe_flag_spec=
8058 hardcode_libdir_flag_spec=
8059 hardcode_libdir_flag_spec_ld=
8060 hardcode_libdir_separator=
8063 hardcode_shlibpath_var=unsupported
8064 link_all_deplibs=unknown
8065 hardcode_automatic=no
8068 always_export_symbols=no
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070 # include_expsyms should be a list of space-separated symbols to be *always*
8071 # included in the symbol list
8073 # exclude_expsyms can be an extended regexp of symbols to exclude
8074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076 # as well as any symbol that contains `d'.
8077 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079 # platforms (ab)use it in PIC code, but their linkers get confused if
8080 # the symbol is explicitly referenced. Since portable code cannot
8081 # rely on this symbol name, it's probably fine to never include it in
8082 # preloaded symbol tables.
8083 extract_expsyms_cmds=
8084 # Just being paranoid about ensuring that cc_basename is set.
8085 for cc_temp in $compiler""; do
8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8096 cygwin* | mingw* | pw32*)
8097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098 # When not using gcc, we currently assume that we are using
8099 # Microsoft Visual C++.
8100 if test "$GCC" != yes; then
8110 if test "$with_gnu_ld" = yes; then
8111 # If archive_cmds runs LD, not CC, wlarc should be empty
8114 # Set some defaults for GNU ld with shared library support. These
8115 # are reset later if shared libraries are not supported. Putting them
8116 # here allows them to be overridden if necessary.
8117 runpath_var=LD_RUN_PATH
8118 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119 export_dynamic_flag_spec='${wl}--export-dynamic'
8120 # ancient GNU ld didn't support --whole-archive et. al.
8121 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124 whole_archive_flag_spec=
8126 supports_anon_versioning=no
8127 case `$LD -v 2>/dev/null` in
8128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131 *\ 2.11.*) ;; # other 2.11 versions
8132 *) supports_anon_versioning=yes ;;
8135 # See if GNU ld supports shared libraries.
8137 aix3* | aix4* | aix5*)
8138 # On AIX/PPC, the GNU linker is very broken
8139 if test "$host_cpu" != ia64; then
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support. If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8154 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)'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_minus_L=yes
8158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159 # that the semantics of dynamic libraries on AmigaOS, at least up
8160 # to version 4, is to share data among multiple programs linked
8161 # with the same dynamic library. Since this doesn't match the
8162 # behavior of shared libraries on other platforms, we can't use
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 allow_undefined_flag=unsupported
8170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171 # support --undefined. This deserves some investigation. FIXME
8172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 cygwin* | mingw* | pw32*)
8179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180 # as there is no search path for DLLs.
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 allow_undefined_flag=unsupported
8183 always_export_symbols=no
8184 enable_shared_with_static_runtimes=yes
8185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189 # If the export-symbols file already is a .def file (1st line
8190 # is EXPORTS), use it as is; otherwise, prepend...
8191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192 cp $export_symbols $output_objdir/$soname.def;
8194 echo EXPORTS > $output_objdir/$soname.def;
8195 cat $export_symbols >> $output_objdir/$soname.def;
8197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 case $cc_basename,$host_cpu in
8207 pgcc*) # Portland Group C compiler
8208 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'
8209 tmp_addflag=' $pic_flag'
8211 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8212 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'
8213 tmp_addflag=' $pic_flag -Mnomain' ;;
8214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8215 tmp_addflag=' -i_dynamic' ;;
8216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8217 tmp_addflag=' -i_dynamic -nofor_main' ;;
8218 ifc* | ifort*) # Intel Fortran compiler
8219 tmp_addflag=' -nofor_main' ;;
8221 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 if test $supports_anon_versioning = yes; then
8224 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226 $echo "local: *; };" >> $output_objdir/$libname.ver~
8227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems. Therefore, libtool
8251 *** is disabling shared libraries support. We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer. Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8269 hardcode_shlibpath_var=no
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282 if test "$ld_shlibs" = no; then
8284 hardcode_libdir_flag_spec=
8285 export_dynamic_flag_spec=
8286 whole_archive_flag_spec=
8289 # PORTME fill in a description of your system's linker (not GNU ld)
8292 allow_undefined_flag=unsupported
8293 always_export_symbols=yes
8294 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'
8295 # Note: this linker hardcodes the directories in LIBPATH if there
8296 # are no directories specified by -L.
8297 hardcode_minus_L=yes
8298 if test "$GCC" = yes && test -z "$link_static_flag"; then
8299 # Neither direct hardcoding nor static linking is supported with a
8301 hardcode_direct=unsupported
8306 if test "$host_cpu" = ia64; then
8307 # On IA64, the linker does run time linking by default, so we don't
8308 # have to do anything special.
8309 aix_use_runtimelinking=no
8310 exp_sym_flag='-Bexport'
8313 # If we're using GNU nm, then we don't want the "-C" option.
8314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316 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'
8318 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'
8320 aix_use_runtimelinking=no
8322 # Test if we are trying to use run time linking or normal
8323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324 # need to do runtime linking.
8325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326 for ld_flag in $LDFLAGS; do
8327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328 aix_use_runtimelinking=yes
8334 exp_sym_flag='-bexport'
8335 no_entry_flag='-bnoentry'
8338 # When large executables or shared objects are built, AIX ld can
8339 # have problems creating the table of contents. If linking a library
8340 # or program results in "error TOC overflow" add -mminimal-toc to
8341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8346 hardcode_libdir_separator=':'
8347 link_all_deplibs=yes
8349 if test "$GCC" = yes; then
8350 case $host_os in aix4.[012]|aix4.[012].*)
8351 # We only want to do this on AIX 4.2 and lower, the check
8352 # below for broken collect2 doesn't work under 4.3+
8353 collect2name=`${CC} -print-prog-name=collect2`
8354 if test -f "$collect2name" && \
8355 strings "$collect2name" | grep resolve_lib_name >/dev/null
8357 # We have reworked collect2
8360 # We have old collect2
8361 hardcode_direct=unsupported
8362 # It fails to find uninstalled libraries when the uninstalled
8363 # path is not listed in the libpath. Setting hardcode_minus_L
8364 # to unsupported forces relinking
8365 hardcode_minus_L=yes
8366 hardcode_libdir_flag_spec='-L$libdir'
8367 hardcode_libdir_separator=
8370 shared_flag='-shared'
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag="$shared_flag "'${wl}-G'
8376 if test "$host_cpu" = ia64; then
8377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378 # chokes on -Wl,-G. The following line is correct:
8381 if test "$aix_use_runtimelinking" = yes; then
8382 shared_flag='${wl}-G'
8384 shared_flag='${wl}-bM:SRE'
8389 # It seems that -bexpall does not export symbols beginning with
8390 # underscore (_), so it is better to generate a list of symbols to export.
8391 always_export_symbols=yes
8392 if test "$aix_use_runtimelinking" = yes; then
8393 # Warning - without using the other runtime loading flags (-brtl),
8394 # -berok will link without error, but may produce a broken library.
8395 allow_undefined_flag='-berok'
8396 # Determine the default libpath from the value encoded in an empty executable.
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450 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"
8452 if test "$host_cpu" = ia64; then
8453 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454 allow_undefined_flag="-z nodefs"
8455 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"
8457 # Determine the default libpath from the value encoded in an empty executable.
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8506 rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511 # Warning - without using the other run time loading flags,
8512 # -berok will link without error, but may produce a broken library.
8513 no_undefined_flag=' ${wl}-bernotok'
8514 allow_undefined_flag=' ${wl}-berok'
8515 # -bexpall does not export symbols beginning with underscore (_)
8516 always_export_symbols=yes
8517 # Exported symbols can be pulled into shared objects from archives
8518 whole_archive_flag_spec=' '
8519 archive_cmds_need_lc=yes
8520 # This is similar to how AIX traditionally builds its shared libraries.
8521 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'
8527 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)'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_minus_L=yes
8530 # see comment about different semantics on the GNU ld section
8535 export_dynamic_flag_spec=-rdynamic
8538 cygwin* | mingw* | pw32*)
8539 # When not using gcc, we currently assume that we are using
8540 # Microsoft Visual C++.
8541 # hardcode_libdir_flag_spec is actually meaningless, as there is
8542 # no search path for DLLs.
8543 hardcode_libdir_flag_spec=' '
8544 allow_undefined_flag=unsupported
8545 # Tell ltmain to make .lib files, not .a files.
8547 # Tell ltmain to make .dll files, not .so files.
8549 # FIXME: Setting linknames here is a bad hack.
8550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551 # The linker will automatically build a .lib file if we build a DLL.
8552 old_archive_From_new_cmds='true'
8553 # FIXME: Should let the user specify the lib program.
8554 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555 fix_srcfile_path='`cygpath -w "$srcfile"`'
8556 enable_shared_with_static_runtimes=yes
8559 darwin* | rhapsody*)
8561 rhapsody* | darwin1.[012])
8562 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8565 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568 case ${MACOSX_DEPLOYMENT_TARGET} in
8570 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8573 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8579 archive_cmds_need_lc=no
8581 hardcode_automatic=yes
8582 hardcode_shlibpath_var=unsupported
8583 whole_archive_flag_spec=''
8584 link_all_deplibs=yes
8585 if test "$GCC" = yes ; then
8586 output_verbose_link_cmd='echo'
8587 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8590 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}'
8591 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}'
8593 case $cc_basename in
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599 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}'
8600 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}'
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_shlibpath_var=no
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | kfreebsd*-gnu | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8643 hardcode_shlibpath_var=no
8647 if test "$GCC" = yes; then
8648 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'
8650 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'
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8682 if test "$with_gnu_ld" = no; then
8685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_flag_spec_ld='+b $libdir'
8687 hardcode_libdir_separator=:
8689 hardcode_shlibpath_var=no
8692 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_shlibpath_var=no
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_separator=:
8704 export_dynamic_flag_spec='${wl}-E'
8706 # hardcode_minus_L: Not really in the search PATH,
8707 # but as the default location of the library.
8708 hardcode_minus_L=yes
8714 irix5* | irix6* | nonstopux*)
8715 if test "$GCC" = yes; then
8716 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'
8718 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'
8719 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 link_all_deplibs=yes
8727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8732 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_shlibpath_var=no
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 hardcode_libdir_separator=:
8742 hardcode_shlibpath_var=no
8747 hardcode_shlibpath_var=no
8748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752 export_dynamic_flag_spec='${wl}-E'
8755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_libdir_flag_spec='-R$libdir'
8760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_minus_L=yes
8770 allow_undefined_flag=unsupported
8771 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'
8772 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8776 if test "$GCC" = yes; then
8777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778 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'
8780 allow_undefined_flag=' -expect_unresolved \*'
8781 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'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8787 osf4* | osf5*) # as osf3* with the addition of -msym flag
8788 if test "$GCC" = yes; then
8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790 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'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 allow_undefined_flag=' -expect_unresolved \*'
8794 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'
8795 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796 $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'
8798 # Both c and cxx compiler support -rpath directly
8799 hardcode_libdir_flag_spec='-rpath $libdir'
8801 hardcode_libdir_separator=:
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_shlibpath_var=no
8807 export_dynamic_flag_spec='${wl}-Bexport'
8808 runpath_var=LD_RUN_PATH
8809 hardcode_runpath_var=yes
8813 no_undefined_flag=' -z text'
8814 if test "$GCC" = yes; then
8816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825 hardcode_libdir_flag_spec='-R$libdir'
8826 hardcode_shlibpath_var=no
8828 solaris2.[0-5] | solaris2.[0-5].*) ;;
8830 # The compiler driver will combine linker options so we
8831 # cannot just pass the convience library names through
8832 # without $wl, iff we do not link with $LD.
8833 # Luckily, gcc supports the same syntax we need for Sun Studio.
8834 # Supported since Solaris 2.6 (maybe 2.5.1?)
8837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839 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' ;;
8842 link_all_deplibs=yes
8846 if test "x$host_vendor" = xsequent; then
8847 # Use $CC to link under sequent, because it throws in some extra .o
8848 # files that make .init and .fini sections work.
8849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_minus_L=yes
8856 hardcode_shlibpath_var=no
8860 case $host_vendor in
8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_direct=yes # is this really true???
8866 ## LD is ld it makes a PLAMLIB
8867 ## CC just makes a GrossModule.
8868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869 reload_cmds='$CC -r -o $output$reload_objs'
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8877 runpath_var='LD_RUN_PATH'
8878 hardcode_shlibpath_var=no
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_shlibpath_var=no
8884 export_dynamic_flag_spec='-Bexport'
8888 if test -d /usr/nec; then
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_shlibpath_var=no
8891 runpath_var=LD_RUN_PATH
8892 hardcode_runpath_var=yes
8898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8902 hardcode_runpath_var=yes
8903 runpath_var=LD_RUN_PATH
8906 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8907 no_undefined_flag='${wl}-z ${wl}text'
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 runpath_var='LD_RUN_PATH'
8914 hardcode_shlibpath_var=no
8918 no_undefined_flag=' -z text'
8919 # $CC -shared without GNU ld will not create a library from C++
8920 # object files and a static libstdc++, better avoid it by now
8921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924 hardcode_libdir_flag_spec=
8925 hardcode_shlibpath_var=no
8926 runpath_var='LD_RUN_PATH'
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_shlibpath_var=no
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8951 # Do we need to explicitly link libc?
8953 case "x$archive_cmds_need_lc" in
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8961 # FIXME: we may have to deal with multi-command sequences.
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
8967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } 2>conftest.err; then
8979 libobjs=conftest.$ac_objext
8981 wl=$lt_prog_compiler_wl
8987 lt_save_allow_undefined_flag=$allow_undefined_flag
8988 allow_undefined_flag=
8989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }
8995 archive_cmds_need_lc=no
8997 archive_cmds_need_lc=yes
8999 allow_undefined_flag=$lt_save_allow_undefined_flag
9001 cat conftest.err 1>&5
9004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9015 libname_spec='lib$name'
9023 shlibpath_overrides_runpath=unknown
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030 # if the path contains ";" then we assume it to be the separator
9031 # otherwise default to the standard path separator (i.e. ":") - it is
9032 # assumed that no part of a normal pathname contains ";" but that should
9033 # okay in the real world where ";" in dirpaths is itself problematic.
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052 shlibpath_var=LIBPATH
9054 # AIX 3 has no versioning support, so we append a major version to the name.
9055 soname_spec='${libname}${release}${shared_ext}$major'
9062 hardcode_into_libs=yes
9063 if test "$host_cpu" = ia64; then
9064 # AIX 5 supports IA64
9065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9068 # With GCC up to 2.95.x, collect2 would create an import file
9069 # for dependence libraries. The import file would start with
9070 # the line `#! .'. This would cause the generated library to
9071 # depend on `.', always an invalid library. This was fixed in
9072 # development snapshots of GCC prior to 3.0.
9074 aix4 | aix4.[01] | aix4.[01].*)
9075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085 # soname into executable. Probably we can add versioning support to
9086 # collect2, so additional links can be useful in future.
9087 if test "$aix_use_runtimelinking" = yes; then
9088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089 # instead of lib<name>.a to let people know that these are not
9090 # typical AIX shared libraries.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 # We preserve .a as extension for shared libraries through AIX4.2
9094 # and later when we are not doing run time linking.
9095 library_names_spec='${libname}${release}.a $libname.a'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LIBPATH
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 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'
9109 library_names_spec='${libname}${shared_ext}'
9110 dynamic_linker="$host_os ld.so"
9111 shlibpath_var=LIBRARY_PATH
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123 # the default ld.so.conf also contains /usr/contrib/lib and
9124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125 # libtool to hard-code these into programs
9128 cygwin* | mingw* | pw32*)
9129 version_type=windows
9134 case $GCC,$host_os in
9135 yes,cygwin* | yes,mingw* | yes,pw32*)
9136 library_names_spec='$libname.dll.a'
9137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138 postinstall_cmds='base_file=`basename \${file}`~
9139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140 dldir=$destdir/`dirname \$dlpath`~
9141 test -d \$dldir || mkdir -p \$dldir~
9142 $install_prog $dir/$dlname \$dldir/$dlname~
9143 chmod a+x \$dldir/$dlname'
9144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9145 dlpath=$dir/\$dldll~
9147 shlibpath_overrides_runpath=yes
9151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9156 # MinGW DLLs use traditional 'lib' prefix
9157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9160 # It is most probably a Windows format PATH printed by
9161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9162 # path with ; separators, and with drive letters. We can handle the
9163 # drive letters (cygwin fileutils understands them), so leave them,
9164 # especially as we might pass files found there to a mingw objdump,
9165 # which wouldn't understand a cygwinified path. Ahh.
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 # pw32 DLLs use 'pw' prefix rather than 'lib'
9173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9182 dynamic_linker='Win32 ld.exe'
9183 # FIXME: first we should search . and the directory the executable is in
9187 darwin* | rhapsody*)
9188 dynamic_linker="$host_os dyld"
9192 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9193 soname_spec='${libname}${release}${major}$shared_ext'
9194 shlibpath_overrides_runpath=yes
9195 shlibpath_var=DYLD_LIBRARY_PATH
9196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9197 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9198 if test "$GCC" = yes; then
9199 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"`
9201 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9228 dynamic_linker='GNU ld.so'
9231 freebsd* | dragonfly*)
9232 # DragonFly does not have aout. When/if they implement a new
9233 # versioning mechanism, adjust this.
9234 if test -x /usr/bin/objformat; then
9235 objformat=`/usr/bin/objformat`
9238 freebsd[123]*) objformat=aout ;;
9242 version_type=freebsd-$objformat
9243 case $version_type in
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9254 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9259 freebsd3.[01]* | freebsdelf3.[01]*)
9260 shlibpath_overrides_runpath=yes
9261 hardcode_into_libs=yes
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 hardcode_into_libs=yes
9280 hpux9* | hpux10* | hpux11*)
9281 # Give a soname corresponding to the major version so that dld.sl refuses to
9282 # link against other versions.
9289 hardcode_into_libs=yes
9290 dynamic_linker="$host_os dld.so"
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 if test "X$HPUX_IA64_MODE" = X32; then
9296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.sl"
9306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9315 dynamic_linker="$host_os dld.sl"
9316 shlibpath_var=SHLIB_PATH
9317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323 postinstall_cmds='chmod 555 $lib'
9326 irix5* | irix6* | nonstopux*)
9328 nonstopux*) version_type=nonstopux ;;
9330 if test "$lt_cv_prog_gnu_ld" = yes; then
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9341 irix5* | nonstopux*)
9345 case $LD in # libtool.m4 will add one of these switches to LD
9346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9347 libsuff= shlibsuff= libmagic=32-bit;;
9348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9349 libsuff=32 shlibsuff=N32 libmagic=N32;;
9350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9352 *) libsuff= shlibsuff= libmagic=never-match;;
9356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9357 shlibpath_overrides_runpath=no
9358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9360 hardcode_into_libs=yes
9363 # No shared lib support for Linux oldld, aout, or coff.
9364 linux*oldld* | linux*aout* | linux*coff*)
9368 # This must be Linux ELF.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=no
9378 # This implies no fast_install, which is unacceptable.
9379 # Some rework will be needed to allow for fast_install
9380 # before this can be enabled.
9381 hardcode_into_libs=yes
9383 # Append ld.so.conf contents to the search path
9384 if test -f /etc/ld.so.conf; then
9385 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' ' '`
9386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9389 # We used to test for /lib/ld.so.1 and disable shared libraries on
9390 # powerpc, because MkLinux only supported shared libraries with the
9391 # GNU dynamic linker. Since this was broken with cross compilers,
9392 # most powerpc-linux boxes support dynamic linking these days and
9393 # people can always --disable-shared, the test was removed, and we
9394 # assume the GNU/Linux dynamic linker is in use.
9395 dynamic_linker='GNU/Linux ld.so'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9407 dynamic_linker='GNU ld.so'
9414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417 dynamic_linker='NetBSD (a.out) ld.so'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 dynamic_linker='NetBSD ld.elf_so'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451 *) need_version=no ;;
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9458 openbsd2.[89] | openbsd2.[89].*)
9459 shlibpath_overrides_runpath=no
9462 shlibpath_overrides_runpath=yes
9466 shlibpath_overrides_runpath=yes
9471 libname_spec='$name'
9474 library_names_spec='$libname${shared_ext} $libname.a'
9475 dynamic_linker='OS/2 ld.exe'
9476 shlibpath_var=LIBPATH
9479 osf3* | osf4* | osf5*)
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 shlibpath_var=LD_LIBRARY_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath=yes
9505 hardcode_into_libs=yes
9506 # ldd complains unless libraries are executable
9507 postinstall_cmds='chmod +x $lib'
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 shlibpath_overrides_runpath=yes
9516 if test "$with_gnu_ld" = yes; then
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 case $host_vendor in
9529 shlibpath_overrides_runpath=no
9531 export_dynamic_flag_spec='${wl}-Blargedynsym'
9532 runpath_var=LD_RUN_PATH
9540 shlibpath_overrides_runpath=no
9541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9547 if test -d /usr/nec ;then
9549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9550 soname_spec='$libname${shared_ext}.$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9567 echo "${ECHO_T}$dynamic_linker" >&6
9568 test "$dynamic_linker" = no && can_build_shared=no
9570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9573 if test -n "$hardcode_libdir_flag_spec" || \
9574 test -n "$runpath_var" || \
9575 test "X$hardcode_automatic" = "Xyes" ; then
9577 # We can hardcode non-existant directories.
9578 if test "$hardcode_direct" != no &&
9579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580 # have to relink, otherwise we might link with an installed library
9581 # when we should be linking with a yet-to-be-installed one
9582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583 test "$hardcode_minus_L" != no; then
9584 # Linking always hardcodes the temporary library directory.
9585 hardcode_action=relink
9587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588 hardcode_action=immediate
9591 # We cannot hardcode anything, or else we can only hardcode existing
9593 hardcode_action=unsupported
9595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596 echo "${ECHO_T}$hardcode_action" >&6
9598 if test "$hardcode_action" = relink; then
9599 # Fast installation is not supported
9600 enable_fast_install=no
9601 elif test "$shlibpath_overrides_runpath" = yes ||
9602 test "$enable_shared" = no; then
9603 # Fast installation is not necessary
9604 enable_fast_install=needless
9609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614 echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9617 # FIXME - insert some real tests, host_os isn't really good enough
9620 if test -n "$STRIP" ; then
9621 striplib="$STRIP -x"
9622 echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9630 echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9636 if test "x$enable_dlopen" != xyes; then
9637 enable_dlopen=unknown
9638 enable_dlopen_self=unknown
9639 enable_dlopen_self_static=unknown
9646 lt_cv_dlopen="load_add_on"
9648 lt_cv_dlopen_self=yes
9652 lt_cv_dlopen="LoadLibrary"
9657 lt_cv_dlopen="dlopen"
9662 # if libdl is installed we need to link against it
9663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_dl_dlopen=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_dl_dlopen=no
9721 rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9727 if test $ac_cv_lib_dl_dlopen = yes; then
9728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733 lt_cv_dlopen_self=yes
9740 echo "$as_me:$LINENO: checking for shl_load" >&5
9741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9742 if test "${ac_cv_func_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9753 #define shl_load innocuous_shl_load
9755 /* System header to define __stub macros and hopefully few prototypes,
9756 which can conflict with char shl_load (); below.
9757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 <limits.h> exists even on freestanding compilers. */
9761 # include <limits.h>
9763 # include <assert.h>
9768 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9776 /* The GNU C library defines this for functions which it implements
9777 to always fail with ENOSYS. Some functions are actually named
9778 something starting with __ and the normal name is an alias. */
9779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9782 char (*f) () = shl_load;
9791 return f != shl_load;
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_func_shl_load=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_func_shl_load=no
9825 rm -f conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9830 if test $ac_cv_func_shl_load = yes; then
9831 lt_cv_dlopen="shl_load"
9833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_lib_dld_shl_load=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_cv_lib_dld_shl_load=no
9891 rm -f conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9897 if test $ac_cv_lib_dld_shl_load = yes; then
9898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9900 echo "$as_me:$LINENO: checking for dlopen" >&5
9901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9902 if test "${ac_cv_func_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define dlopen innocuous_dlopen
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char dlopen (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9928 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9942 char (*f) () = dlopen;
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_func_dlopen=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_dlopen=no
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9990 if test $ac_cv_func_dlopen = yes; then
9991 lt_cv_dlopen="dlopen"
9993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_check_lib_save_LIBS=$LIBS
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_lib_dl_dlopen=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_dl_dlopen=no
10051 rm -f conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lsvld $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10074 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_svld_dlopen=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_svld_dlopen=no
10118 rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 ac_check_lib_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10141 /* Override any gcc2 internal prototype to avoid an error. */
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_dld_dld_link=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_dld_dld_link=no
10185 rm -f conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10191 if test $ac_cv_lib_dld_dld_link = yes; then
10192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10213 if test "x$lt_cv_dlopen" != xno; then
10219 case $lt_cv_dlopen in
10221 save_CPPFLAGS="$CPPFLAGS"
10222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224 save_LDFLAGS="$LDFLAGS"
10225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10228 LIBS="$lt_cv_dlopen_libs $LIBS"
10230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10232 if test "${lt_cv_dlopen_self+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 if test "$cross_compiling" = yes; then :
10236 lt_cv_dlopen_self=cross
10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239 lt_status=$lt_dlunknown
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10251 # define LT_DLGLOBAL RTLD_GLOBAL
10254 # define LT_DLGLOBAL DL_GLOBAL
10256 # define LT_DLGLOBAL 0
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261 find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10267 # define LT_DLLAZY_OR_NOW DL_LAZY
10270 # define LT_DLLAZY_OR_NOW RTLD_NOW
10273 # define LT_DLLAZY_OR_NOW DL_NOW
10275 # define LT_DLLAZY_OR_NOW 0
10283 extern "C" void exit (int);
10286 void fnord() { int i=42;}
10289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290 int status = $lt_dlunknown;
10294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10296 /* dlclose (self); */
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307 (./conftest; exit; ) >&5 2>/dev/null
10309 case x$lt_status in
10310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10315 # compilation failed
10316 lt_cv_dlopen_self=no
10323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326 if test "x$lt_cv_dlopen_self" = xyes; then
10327 LDFLAGS="$LDFLAGS $link_static_flag"
10328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10330 if test "${lt_cv_dlopen_self_static+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 if test "$cross_compiling" = yes; then :
10334 lt_cv_dlopen_self_static=cross
10336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337 lt_status=$lt_dlunknown
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10349 # define LT_DLGLOBAL RTLD_GLOBAL
10352 # define LT_DLGLOBAL DL_GLOBAL
10354 # define LT_DLGLOBAL 0
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359 find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10365 # define LT_DLLAZY_OR_NOW DL_LAZY
10368 # define LT_DLLAZY_OR_NOW RTLD_NOW
10371 # define LT_DLLAZY_OR_NOW DL_NOW
10373 # define LT_DLLAZY_OR_NOW 0
10381 extern "C" void exit (int);
10384 void fnord() { int i=42;}
10387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10388 int status = $lt_dlunknown;
10392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10394 /* dlclose (self); */
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405 (./conftest; exit; ) >&5 2>/dev/null
10407 case x$lt_status in
10408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10413 # compilation failed
10414 lt_cv_dlopen_self_static=no
10421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10425 CPPFLAGS="$save_CPPFLAGS"
10426 LDFLAGS="$save_LDFLAGS"
10431 case $lt_cv_dlopen_self in
10432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10433 *) enable_dlopen_self=unknown ;;
10436 case $lt_cv_dlopen_self_static in
10437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10438 *) enable_dlopen_self_static=unknown ;;
10443 # Report which librarie types wil actually be built
10444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10447 echo "${ECHO_T}$can_build_shared" >&6
10449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10451 test "$can_build_shared" = "no" && enable_shared=no
10453 # On AIX, shared libraries and static libraries use the same namespace, and
10454 # are all built from PIC.
10457 test "$enable_shared" = yes && enable_static=no
10458 if test -n "$RANLIB"; then
10459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10460 postinstall_cmds='$RANLIB $lib'
10465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10466 test "$enable_shared" = yes && enable_static=no
10470 echo "$as_me:$LINENO: result: $enable_shared" >&5
10471 echo "${ECHO_T}$enable_shared" >&6
10473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10475 # Make sure either enable_shared or enable_static is yes.
10476 test "$enable_shared" = yes || enable_static=yes
10477 echo "$as_me:$LINENO: result: $enable_static" >&5
10478 echo "${ECHO_T}$enable_static" >&6
10480 # The else clause should only fire when bootstrapping the
10481 # libtool distribution, otherwise you forgot to ship ltmain.sh
10482 # with your package, and you will get complaints that there are
10483 # no rules to generate ltmain.sh.
10484 if test -f "$ltmain"; then
10485 # See if we are running on zsh, and set the options which allow our commands through
10486 # without removal of \ escapes.
10487 if test -n "${ZSH_VERSION+set}" ; then
10488 setopt NO_GLOB_SUBST
10490 # Now quote all the things that may contain metacharacters while being
10491 # careful not to overquote the AC_SUBSTed values. We take copies of the
10492 # variables and quote the copies for generation of the libtool script.
10493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10497 deplibs_check_method reload_flag reload_cmds need_locks \
10498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10499 lt_cv_sys_global_symbol_to_c_name_address \
10500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10501 old_postinstall_cmds old_postuninstall_cmds \
10505 lt_prog_compiler_wl \
10506 lt_prog_compiler_pic \
10507 lt_prog_compiler_static \
10508 lt_prog_compiler_no_builtin_flag \
10509 export_dynamic_flag_spec \
10510 thread_safe_flag_spec \
10511 whole_archive_flag_spec \
10512 enable_shared_with_static_runtimes \
10514 old_archive_from_new_cmds \
10519 compiler_lib_search_path \
10521 archive_expsym_cmds \
10523 postuninstall_cmds \
10524 old_archive_from_expsyms_cmds \
10525 allow_undefined_flag \
10526 no_undefined_flag \
10527 export_symbols_cmds \
10528 hardcode_libdir_flag_spec \
10529 hardcode_libdir_flag_spec_ld \
10530 hardcode_libdir_separator \
10531 hardcode_automatic \
10533 module_expsym_cmds \
10534 lt_cv_prog_compiler_c_o \
10536 include_expsyms; do
10539 old_archive_cmds | \
10540 old_archive_from_new_cmds | \
10542 archive_expsym_cmds | \
10544 module_expsym_cmds | \
10545 old_archive_from_expsyms_cmds | \
10546 export_symbols_cmds | \
10547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10548 postinstall_cmds | postuninstall_cmds | \
10549 old_postinstall_cmds | old_postuninstall_cmds | \
10550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10551 # Double-quote double-evaled strings.
10552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10561 *'\$0 --fallback-echo"')
10562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10566 cfgfile="${ofile}T"
10567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10569 { echo "$as_me:$LINENO: creating $ofile" >&5
10570 echo "$as_me: creating $ofile" >&6;}
10572 cat <<__EOF__ >> "$cfgfile"
10575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10580 # Free Software Foundation, Inc.
10582 # This file is part of GNU Libtool:
10583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10585 # This program is free software; you can redistribute it and/or modify
10586 # it under the terms of the GNU General Public License as published by
10587 # the Free Software Foundation; either version 2 of the License, or
10588 # (at your option) any later version.
10590 # This program is distributed in the hope that it will be useful, but
10591 # WITHOUT ANY WARRANTY; without even the implied warranty of
10592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10593 # General Public License for more details.
10595 # You should have received a copy of the GNU General Public License
10596 # along with this program; if not, write to the Free Software
10597 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10599 # As a special exception to the GNU General Public License, if you
10600 # distribute this file as part of a program that contains a
10601 # configuration script generated by Autoconf, you may include it under
10602 # the same distribution terms that you use for the rest of that program.
10604 # A sed program that does not truncate output.
10607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10608 Xsed="$SED -e 1s/^X//"
10610 # The HP-UX ksh and POSIX shell print the target directory to stdout
10611 # if CDPATH is set.
10612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10614 # The names of the tagged configurations supported by this script.
10617 # ### BEGIN LIBTOOL CONFIG
10619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10621 # Shell to use when invoking shell scripts.
10624 # Whether or not to build shared libraries.
10625 build_libtool_libs=$enable_shared
10627 # Whether or not to build static libraries.
10628 build_old_libs=$enable_static
10630 # Whether or not to add -lc for building shared libraries.
10631 build_libtool_need_lc=$archive_cmds_need_lc
10633 # Whether or not to disallow shared libs when runtime libs are static
10634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10636 # Whether or not to optimize for fast installation.
10637 fast_install=$enable_fast_install
10640 host_alias=$host_alias
10644 # The build system.
10645 build_alias=$build_alias
10649 # An echo program that does not interpret backslashes.
10654 AR_FLAGS=$lt_AR_FLAGS
10659 # A language-specific compiler.
10662 # Is the compiler the GNU C compiler?
10668 # The linker used to build libraries.
10671 # Whether we need hard or soft links.
10674 # A BSD-compatible nm program.
10677 # A symbol stripping program
10680 # Used to examine libraries when file_magic_cmd begins "file"
10681 MAGIC_CMD=$MAGIC_CMD
10683 # Used on cygwin: DLL creation program.
10686 # Used on cygwin: object dumper.
10689 # Used on cygwin: assembler.
10692 # The name of the directory that contains temporary libtool files.
10695 # How to create reloadable object files.
10696 reload_flag=$lt_reload_flag
10697 reload_cmds=$lt_reload_cmds
10699 # How to pass a linker flag through the compiler.
10700 wl=$lt_lt_prog_compiler_wl
10702 # Object file suffix (normally "o").
10703 objext="$ac_objext"
10705 # Old archive suffix (normally "a").
10708 # Shared library suffix (normally ".so").
10709 shrext_cmds='$shrext_cmds'
10711 # Executable file suffix (normally "").
10714 # Additional compiler flags for building library objects.
10715 pic_flag=$lt_lt_prog_compiler_pic
10718 # What is the maximum length of a command?
10719 max_cmd_len=$lt_cv_sys_max_cmd_len
10721 # Does compiler simultaneously support -c and -o options?
10722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10724 # Must we lock files when doing compilation?
10725 need_locks=$lt_need_locks
10727 # Do we need the lib prefix for modules?
10728 need_lib_prefix=$need_lib_prefix
10730 # Do we need a version for libraries?
10731 need_version=$need_version
10733 # Whether dlopen is supported.
10734 dlopen_support=$enable_dlopen
10736 # Whether dlopen of programs is supported.
10737 dlopen_self=$enable_dlopen_self
10739 # Whether dlopen of statically linked programs is supported.
10740 dlopen_self_static=$enable_dlopen_self_static
10742 # Compiler flag to prevent dynamic linking.
10743 link_static_flag=$lt_lt_prog_compiler_static
10745 # Compiler flag to turn off builtin functions.
10746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10748 # Compiler flag to allow reflexive dlopens.
10749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10751 # Compiler flag to generate shared objects directly from archives.
10752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10754 # Compiler flag to generate thread-safe objects.
10755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10757 # Library versioning type.
10758 version_type=$version_type
10760 # Format of library name prefix.
10761 libname_spec=$lt_libname_spec
10763 # List of archive names. First name is the real one, the rest are links.
10764 # The last name is the one that the linker finds with -lNAME.
10765 library_names_spec=$lt_library_names_spec
10767 # The coded name of the library, if different from the real name.
10768 soname_spec=$lt_soname_spec
10770 # Commands used to build and install an old-style archive.
10772 old_archive_cmds=$lt_old_archive_cmds
10773 old_postinstall_cmds=$lt_old_postinstall_cmds
10774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10776 # Create an old-style archive from a shared archive.
10777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10779 # Create a temporary old-style archive to link instead of a shared archive.
10780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10782 # Commands used to build and install a shared archive.
10783 archive_cmds=$lt_archive_cmds
10784 archive_expsym_cmds=$lt_archive_expsym_cmds
10785 postinstall_cmds=$lt_postinstall_cmds
10786 postuninstall_cmds=$lt_postuninstall_cmds
10788 # Commands used to build a loadable module (assumed same as above if empty)
10789 module_cmds=$lt_module_cmds
10790 module_expsym_cmds=$lt_module_expsym_cmds
10792 # Commands to strip libraries.
10793 old_striplib=$lt_old_striplib
10794 striplib=$lt_striplib
10796 # Dependencies to place before the objects being linked to create a
10798 predep_objects=$lt_predep_objects
10800 # Dependencies to place after the objects being linked to create a
10802 postdep_objects=$lt_postdep_objects
10804 # Dependencies to place before the objects being linked to create a
10806 predeps=$lt_predeps
10808 # Dependencies to place after the objects being linked to create a
10810 postdeps=$lt_postdeps
10812 # The library search path used internally by the compiler when linking
10813 # a shared library.
10814 compiler_lib_search_path=$lt_compiler_lib_search_path
10816 # Method to check whether dependent libraries are shared objects.
10817 deplibs_check_method=$lt_deplibs_check_method
10819 # Command to use when deplibs_check_method == file_magic.
10820 file_magic_cmd=$lt_file_magic_cmd
10822 # Flag that allows shared libraries with undefined symbols to be built.
10823 allow_undefined_flag=$lt_allow_undefined_flag
10825 # Flag that forces no undefined symbols.
10826 no_undefined_flag=$lt_no_undefined_flag
10828 # Commands used to finish a libtool library installation in a directory.
10829 finish_cmds=$lt_finish_cmds
10831 # Same as above, but a single script fragment to be evaled but not shown.
10832 finish_eval=$lt_finish_eval
10834 # Take the output of nm and produce a listing of raw symbols and C names.
10835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10837 # Transform the output of nm in a proper C declaration
10838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10840 # Transform the output of nm in a C name address pair
10841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10843 # This is the shared library runtime path variable.
10844 runpath_var=$runpath_var
10846 # This is the shared library path variable.
10847 shlibpath_var=$shlibpath_var
10849 # Is shlibpath searched before the hard-coded library search path?
10850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10852 # How to hardcode a shared library path into an executable.
10853 hardcode_action=$hardcode_action
10855 # Whether we should hardcode library paths into libraries.
10856 hardcode_into_libs=$hardcode_into_libs
10858 # Flag to hardcode \$libdir into a binary during linking.
10859 # This must work even if \$libdir does not exist.
10860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10862 # If ld is used when linking, flag to hardcode \$libdir into
10863 # a binary during linking. This must work even if \$libdir does
10865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10867 # Whether we need a single -rpath flag with a separated argument.
10868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10871 # resulting binary.
10872 hardcode_direct=$hardcode_direct
10874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10875 # resulting binary.
10876 hardcode_minus_L=$hardcode_minus_L
10878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10879 # the resulting binary.
10880 hardcode_shlibpath_var=$hardcode_shlibpath_var
10882 # Set to yes if building a shared library automatically hardcodes DIR into the library
10883 # and all subsequent libraries and executables linked against it.
10884 hardcode_automatic=$hardcode_automatic
10886 # Variables whose values should be saved in libtool wrapper scripts and
10887 # restored at relink time.
10888 variables_saved_for_relink="$variables_saved_for_relink"
10890 # Whether libtool must link a program against all its dependency libraries.
10891 link_all_deplibs=$link_all_deplibs
10893 # Compile-time system search path for libraries
10894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10896 # Run-time system search path for libraries
10897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10899 # Fix the shell variable \$srcfile for the compiler.
10900 fix_srcfile_path="$fix_srcfile_path"
10902 # Set to yes if exported symbols are required.
10903 always_export_symbols=$always_export_symbols
10905 # The commands to list exported symbols.
10906 export_symbols_cmds=$lt_export_symbols_cmds
10908 # The commands to extract the exported symbol list from a shared archive.
10909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10911 # Symbols that should not be listed in the preloaded symbols.
10912 exclude_expsyms=$lt_exclude_expsyms
10914 # Symbols that must always be exported.
10915 include_expsyms=$lt_include_expsyms
10917 # ### END LIBTOOL CONFIG
10924 cat <<\EOF >> "$cfgfile"
10926 # AIX sometimes has problems with the GCC collect2 program. For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10931 export COLLECT_NAMES
10937 # We use sed instead of cat because bash on DJGPP gets confused if
10938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10939 # text mode, it properly converts lines to CR/LF. This bash problem
10940 # is reportedly fixed, but why not run on old versions too?
10941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10943 mv -f "$cfgfile" "$ofile" || \
10944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10948 # If there is no Makefile yet, we rely on a make rule to execute
10949 # `config.status --recheck' to rerun these tests and create the
10950 # libtool script then.
10951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10952 if test -f "$ltmain_in"; then
10953 test -f Makefile && make "$ltmain"
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10967 # Check whether --with-tags or --without-tags was given.
10968 if test "${with_tags+set}" = set; then
10969 withval="$with_tags"
10970 tagnames="$withval"
10973 if test -f "$ltmain" && test -n "$tagnames"; then
10974 if test ! -f "${ofile}"; then
10975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10979 if test -z "$LTCC"; then
10980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10981 if test -z "$LTCC"; then
10982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10990 # Extract list of available tagged configurations in $ofile.
10991 # Note that this assumes the entire list is on one line.
10992 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10995 for tagname in $tagnames; do
10997 # Check whether tagname contains only valid characters
10998 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11000 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11001 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11002 { (exit 1); exit 1; }; }
11006 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11008 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11009 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11010 { (exit 1); exit 1; }; }
11013 # Update the list of available tags.
11014 if test -n "$tagname"; then
11015 echo appending configuration tag \"$tagname\" to $ofile
11019 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11020 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11021 (test "X$CXX" != "Xg++"))) ; then
11029 if test -n "$F77" && test "X$F77" != "Xno"; then
11037 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11048 # Source file extension for RC test sources.
11051 # Object file extension for compiled RC test sources.
11055 # Code to be used in simple compile tests
11056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11058 # Code to be used in simple link tests
11059 lt_simple_link_test_code="$lt_simple_compile_test_code"
11061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11063 # If no C compiler was specified, use CC.
11066 # Allow CC to be a program name with arguments.
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11084 # Allow CC to be a program name with arguments.
11089 for cc_temp in $compiler""; do
11091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099 lt_cv_prog_compiler_c_o_RC=yes
11101 # The else clause should only fire when bootstrapping the
11102 # libtool distribution, otherwise you forgot to ship ltmain.sh
11103 # with your package, and you will get complaints that there are
11104 # no rules to generate ltmain.sh.
11105 if test -f "$ltmain"; then
11106 # See if we are running on zsh, and set the options which allow our commands through
11107 # without removal of \ escapes.
11108 if test -n "${ZSH_VERSION+set}" ; then
11109 setopt NO_GLOB_SUBST
11111 # Now quote all the things that may contain metacharacters while being
11112 # careful not to overquote the AC_SUBSTed values. We take copies of the
11113 # variables and quote the copies for generation of the libtool script.
11114 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11118 deplibs_check_method reload_flag reload_cmds need_locks \
11119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11120 lt_cv_sys_global_symbol_to_c_name_address \
11121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11122 old_postinstall_cmds old_postuninstall_cmds \
11126 lt_prog_compiler_wl_RC \
11127 lt_prog_compiler_pic_RC \
11128 lt_prog_compiler_static_RC \
11129 lt_prog_compiler_no_builtin_flag_RC \
11130 export_dynamic_flag_spec_RC \
11131 thread_safe_flag_spec_RC \
11132 whole_archive_flag_spec_RC \
11133 enable_shared_with_static_runtimes_RC \
11134 old_archive_cmds_RC \
11135 old_archive_from_new_cmds_RC \
11136 predep_objects_RC \
11137 postdep_objects_RC \
11140 compiler_lib_search_path_RC \
11142 archive_expsym_cmds_RC \
11143 postinstall_cmds_RC \
11144 postuninstall_cmds_RC \
11145 old_archive_from_expsyms_cmds_RC \
11146 allow_undefined_flag_RC \
11147 no_undefined_flag_RC \
11148 export_symbols_cmds_RC \
11149 hardcode_libdir_flag_spec_RC \
11150 hardcode_libdir_flag_spec_ld_RC \
11151 hardcode_libdir_separator_RC \
11152 hardcode_automatic_RC \
11154 module_expsym_cmds_RC \
11155 lt_cv_prog_compiler_c_o_RC \
11156 exclude_expsyms_RC \
11157 include_expsyms_RC; do
11160 old_archive_cmds_RC | \
11161 old_archive_from_new_cmds_RC | \
11162 archive_cmds_RC | \
11163 archive_expsym_cmds_RC | \
11165 module_expsym_cmds_RC | \
11166 old_archive_from_expsyms_cmds_RC | \
11167 export_symbols_cmds_RC | \
11168 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11169 postinstall_cmds | postuninstall_cmds | \
11170 old_postinstall_cmds | old_postuninstall_cmds | \
11171 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11172 # Double-quote double-evaled strings.
11173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11182 *'\$0 --fallback-echo"')
11183 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11189 cat <<__EOF__ >> "$cfgfile"
11190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11194 # Shell to use when invoking shell scripts.
11197 # Whether or not to build shared libraries.
11198 build_libtool_libs=$enable_shared
11200 # Whether or not to build static libraries.
11201 build_old_libs=$enable_static
11203 # Whether or not to add -lc for building shared libraries.
11204 build_libtool_need_lc=$archive_cmds_need_lc_RC
11206 # Whether or not to disallow shared libs when runtime libs are static
11207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11209 # Whether or not to optimize for fast installation.
11210 fast_install=$enable_fast_install
11213 host_alias=$host_alias
11217 # The build system.
11218 build_alias=$build_alias
11222 # An echo program that does not interpret backslashes.
11227 AR_FLAGS=$lt_AR_FLAGS
11232 # A language-specific compiler.
11235 # Is the compiler the GNU C compiler?
11241 # The linker used to build libraries.
11244 # Whether we need hard or soft links.
11247 # A BSD-compatible nm program.
11250 # A symbol stripping program
11253 # Used to examine libraries when file_magic_cmd begins "file"
11254 MAGIC_CMD=$MAGIC_CMD
11256 # Used on cygwin: DLL creation program.
11259 # Used on cygwin: object dumper.
11262 # Used on cygwin: assembler.
11265 # The name of the directory that contains temporary libtool files.
11268 # How to create reloadable object files.
11269 reload_flag=$lt_reload_flag
11270 reload_cmds=$lt_reload_cmds
11272 # How to pass a linker flag through the compiler.
11273 wl=$lt_lt_prog_compiler_wl_RC
11275 # Object file suffix (normally "o").
11276 objext="$ac_objext"
11278 # Old archive suffix (normally "a").
11281 # Shared library suffix (normally ".so").
11282 shrext_cmds='$shrext_cmds'
11284 # Executable file suffix (normally "").
11287 # Additional compiler flags for building library objects.
11288 pic_flag=$lt_lt_prog_compiler_pic_RC
11291 # What is the maximum length of a command?
11292 max_cmd_len=$lt_cv_sys_max_cmd_len
11294 # Does compiler simultaneously support -c and -o options?
11295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11297 # Must we lock files when doing compilation?
11298 need_locks=$lt_need_locks
11300 # Do we need the lib prefix for modules?
11301 need_lib_prefix=$need_lib_prefix
11303 # Do we need a version for libraries?
11304 need_version=$need_version
11306 # Whether dlopen is supported.
11307 dlopen_support=$enable_dlopen
11309 # Whether dlopen of programs is supported.
11310 dlopen_self=$enable_dlopen_self
11312 # Whether dlopen of statically linked programs is supported.
11313 dlopen_self_static=$enable_dlopen_self_static
11315 # Compiler flag to prevent dynamic linking.
11316 link_static_flag=$lt_lt_prog_compiler_static_RC
11318 # Compiler flag to turn off builtin functions.
11319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11321 # Compiler flag to allow reflexive dlopens.
11322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11324 # Compiler flag to generate shared objects directly from archives.
11325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11327 # Compiler flag to generate thread-safe objects.
11328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11330 # Library versioning type.
11331 version_type=$version_type
11333 # Format of library name prefix.
11334 libname_spec=$lt_libname_spec
11336 # List of archive names. First name is the real one, the rest are links.
11337 # The last name is the one that the linker finds with -lNAME.
11338 library_names_spec=$lt_library_names_spec
11340 # The coded name of the library, if different from the real name.
11341 soname_spec=$lt_soname_spec
11343 # Commands used to build and install an old-style archive.
11345 old_archive_cmds=$lt_old_archive_cmds_RC
11346 old_postinstall_cmds=$lt_old_postinstall_cmds
11347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11349 # Create an old-style archive from a shared archive.
11350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11352 # Create a temporary old-style archive to link instead of a shared archive.
11353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11355 # Commands used to build and install a shared archive.
11356 archive_cmds=$lt_archive_cmds_RC
11357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11358 postinstall_cmds=$lt_postinstall_cmds
11359 postuninstall_cmds=$lt_postuninstall_cmds
11361 # Commands used to build a loadable module (assumed same as above if empty)
11362 module_cmds=$lt_module_cmds_RC
11363 module_expsym_cmds=$lt_module_expsym_cmds_RC
11365 # Commands to strip libraries.
11366 old_striplib=$lt_old_striplib
11367 striplib=$lt_striplib
11369 # Dependencies to place before the objects being linked to create a
11371 predep_objects=$lt_predep_objects_RC
11373 # Dependencies to place after the objects being linked to create a
11375 postdep_objects=$lt_postdep_objects_RC
11377 # Dependencies to place before the objects being linked to create a
11379 predeps=$lt_predeps_RC
11381 # Dependencies to place after the objects being linked to create a
11383 postdeps=$lt_postdeps_RC
11385 # The library search path used internally by the compiler when linking
11386 # a shared library.
11387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11389 # Method to check whether dependent libraries are shared objects.
11390 deplibs_check_method=$lt_deplibs_check_method
11392 # Command to use when deplibs_check_method == file_magic.
11393 file_magic_cmd=$lt_file_magic_cmd
11395 # Flag that allows shared libraries with undefined symbols to be built.
11396 allow_undefined_flag=$lt_allow_undefined_flag_RC
11398 # Flag that forces no undefined symbols.
11399 no_undefined_flag=$lt_no_undefined_flag_RC
11401 # Commands used to finish a libtool library installation in a directory.
11402 finish_cmds=$lt_finish_cmds
11404 # Same as above, but a single script fragment to be evaled but not shown.
11405 finish_eval=$lt_finish_eval
11407 # Take the output of nm and produce a listing of raw symbols and C names.
11408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11410 # Transform the output of nm in a proper C declaration
11411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11413 # Transform the output of nm in a C name address pair
11414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11416 # This is the shared library runtime path variable.
11417 runpath_var=$runpath_var
11419 # This is the shared library path variable.
11420 shlibpath_var=$shlibpath_var
11422 # Is shlibpath searched before the hard-coded library search path?
11423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11425 # How to hardcode a shared library path into an executable.
11426 hardcode_action=$hardcode_action_RC
11428 # Whether we should hardcode library paths into libraries.
11429 hardcode_into_libs=$hardcode_into_libs
11431 # Flag to hardcode \$libdir into a binary during linking.
11432 # This must work even if \$libdir does not exist.
11433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11435 # If ld is used when linking, flag to hardcode \$libdir into
11436 # a binary during linking. This must work even if \$libdir does
11438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11440 # Whether we need a single -rpath flag with a separated argument.
11441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11444 # resulting binary.
11445 hardcode_direct=$hardcode_direct_RC
11447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11448 # resulting binary.
11449 hardcode_minus_L=$hardcode_minus_L_RC
11451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11452 # the resulting binary.
11453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11455 # Set to yes if building a shared library automatically hardcodes DIR into the library
11456 # and all subsequent libraries and executables linked against it.
11457 hardcode_automatic=$hardcode_automatic_RC
11459 # Variables whose values should be saved in libtool wrapper scripts and
11460 # restored at relink time.
11461 variables_saved_for_relink="$variables_saved_for_relink"
11463 # Whether libtool must link a program against all its dependency libraries.
11464 link_all_deplibs=$link_all_deplibs_RC
11466 # Compile-time system search path for libraries
11467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11469 # Run-time system search path for libraries
11470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11472 # Fix the shell variable \$srcfile for the compiler.
11473 fix_srcfile_path="$fix_srcfile_path_RC"
11475 # Set to yes if exported symbols are required.
11476 always_export_symbols=$always_export_symbols_RC
11478 # The commands to list exported symbols.
11479 export_symbols_cmds=$lt_export_symbols_cmds_RC
11481 # The commands to extract the exported symbol list from a shared archive.
11482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11484 # Symbols that should not be listed in the preloaded symbols.
11485 exclude_expsyms=$lt_exclude_expsyms_RC
11487 # Symbols that must always be exported.
11488 include_expsyms=$lt_include_expsyms_RC
11490 # ### END LIBTOOL TAG CONFIG: $tagname
11496 # If there is no Makefile yet, we rely on a make rule to execute
11497 # `config.status --recheck' to rerun these tests and create the
11498 # libtool script then.
11499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500 if test -f "$ltmain_in"; then
11501 test -f Makefile && make "$ltmain"
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11519 { (exit 1); exit 1; }; }
11523 # Append the new tag name to the list of available tags.
11524 if test -n "$tagname" ; then
11525 available_tags="$available_tags $tagname"
11531 # Now substitute the updated list of available tags.
11532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11533 mv "${ofile}T" "$ofile"
11537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11539 { (exit 1); exit 1; }; }
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11551 # Prevent multiple expansion
11563 if test $ol_enable_perl != no ; then
11564 # Extract the first word of "perl", so it can be a program name with args.
11565 set dummy perl; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_path_PERLBIN+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11594 PERLBIN=$ac_cv_path_PERLBIN
11596 if test -n "$PERLBIN"; then
11597 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11598 echo "${ECHO_T}$PERLBIN" >&6
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11605 if test "no$PERLBIN" = "no" ; then
11606 if test $ol_enable_perl = yes ; then
11607 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11608 echo "$as_me: error: could not locate perl" >&2;}
11609 { (exit 1); exit 1; }; }
11613 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11614 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11616 if test x"$ol_enable_perl" = "xyes" ; then
11617 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11619 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11632 # On Suns, sometimes $CPP names a directory.
11633 if test -n "$CPP" && test -d "$CPP"; then
11636 if test -z "$CPP"; then
11637 if test "${ac_cv_prog_CPP+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 # Double quotes because CPP needs to be expanded
11641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11643 ac_preproc_ok=false
11644 for ac_c_preproc_warn_flag in '' yes
11646 # Use a header file that comes with gcc, so configuring glibc
11647 # with a fresh cross-compiler works.
11648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 # <limits.h> exists even on freestanding compilers.
11650 # On the NeXT, cc -E runs the code through the compiler's parser,
11651 # not just through cpp. "Syntax error" is here to catch this case.
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 # include <limits.h>
11661 # include <assert.h>
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 if test -z "$ac_cpp_err"; then
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 # Broken: fails on valid input.
11691 rm -f conftest.err conftest.$ac_ext
11693 # OK, works on sane cases. Now check whether non-existent headers
11694 # can be detected and how.
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <ac_nonexistent.h>
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11720 if test -z "$ac_cpp_err"; then
11721 # Broken: success on invalid input.
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 # Passes both tests.
11731 rm -f conftest.err conftest.$ac_ext
11734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11735 rm -f conftest.err conftest.$ac_ext
11736 if $ac_preproc_ok; then
11741 ac_cv_prog_CPP=$CPP
11744 CPP=$ac_cv_prog_CPP
11746 ac_cv_prog_CPP=$CPP
11748 echo "$as_me:$LINENO: result: $CPP" >&5
11749 echo "${ECHO_T}$CPP" >&6
11750 ac_preproc_ok=false
11751 for ac_c_preproc_warn_flag in '' yes
11753 # Use a header file that comes with gcc, so configuring glibc
11754 # with a fresh cross-compiler works.
11755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 # <limits.h> exists even on freestanding compilers.
11757 # On the NeXT, cc -E runs the code through the compiler's parser,
11758 # not just through cpp. "Syntax error" is here to catch this case.
11759 cat >conftest.$ac_ext <<_ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 # include <limits.h>
11768 # include <assert.h>
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } >/dev/null; then
11780 if test -s conftest.err; then
11781 ac_cpp_err=$ac_c_preproc_warn_flag
11782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11789 if test -z "$ac_cpp_err"; then
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 # Broken: fails on valid input.
11798 rm -f conftest.err conftest.$ac_ext
11800 # OK, works on sane cases. Now check whether non-existent headers
11801 # can be detected and how.
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <ac_nonexistent.h>
11810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } >/dev/null; then
11818 if test -s conftest.err; then
11819 ac_cpp_err=$ac_c_preproc_warn_flag
11820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11827 if test -z "$ac_cpp_err"; then
11828 # Broken: success on invalid input.
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 # Passes both tests.
11838 rm -f conftest.err conftest.$ac_ext
11841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11842 rm -f conftest.err conftest.$ac_ext
11843 if $ac_preproc_ok; then
11846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11847 See \`config.log' for more details." >&5
11848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&2;}
11850 { (exit 1); exit 1; }; }
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861 *mingw32* ) ac_cv_mingw32=yes ;;
11862 *cygwin* ) ac_cv_cygwin=yes ;;
11868 cat >>confdefs.h <<_ACEOF
11869 #define EXEEXT "${EXEEXT}"
11873 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11874 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11875 if test "${ac_cv_lib_be_be_app+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lbe -lroot -lnet $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_be_be_app=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_be_be_app=no
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11936 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11937 if test $ac_cv_lib_be_be_app = yes; then
11938 LIBS="$LIBS -lbe -lroot -lnet"
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 if test -n "$ac_tool_prefix"; then
11950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11952 echo "$as_me:$LINENO: checking for $ac_word" >&5
11953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954 if test "${ac_cv_prog_CC+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 if test -n "$CC"; then
11958 ac_cv_prog_CC="$CC" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 if test -n "$CC"; then
11978 echo "$as_me:$LINENO: result: $CC" >&5
11979 echo "${ECHO_T}$CC" >&6
11981 echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11986 if test -z "$ac_cv_prog_CC"; then
11988 # Extract the first word of "gcc", so it can be a program name with args.
11989 set dummy gcc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test -n "$ac_ct_CC"; then
11996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_ac_ct_CC="gcc"
12006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12015 if test -n "$ac_ct_CC"; then
12016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12017 echo "${ECHO_T}$ac_ct_CC" >&6
12019 echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12025 CC="$ac_cv_prog_CC"
12028 if test -z "$CC"; then
12029 if test -n "$ac_tool_prefix"; then
12030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}cc; ac_word=$2
12032 echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034 if test "${ac_cv_prog_CC+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 if test -n "$CC"; then
12038 ac_cv_prog_CC="$CC" # Let the user override the test.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_CC="${ac_tool_prefix}cc"
12048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 if test -n "$CC"; then
12058 echo "$as_me:$LINENO: result: $CC" >&5
12059 echo "${ECHO_T}$CC" >&6
12061 echo "$as_me:$LINENO: result: no" >&5
12062 echo "${ECHO_T}no" >&6
12066 if test -z "$ac_cv_prog_CC"; then
12068 # Extract the first word of "cc", so it can be a program name with args.
12069 set dummy cc; ac_word=$2
12070 echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 if test -n "$ac_ct_CC"; then
12076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085 ac_cv_prog_ac_ct_CC="cc"
12086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097 echo "${ECHO_T}$ac_ct_CC" >&6
12099 echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6
12105 CC="$ac_cv_prog_CC"
12109 if test -z "$CC"; then
12110 # Extract the first word of "cc", so it can be a program name with args.
12111 set dummy cc; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_prog_CC+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 if test -n "$CC"; then
12118 ac_cv_prog_CC="$CC" # Let the user override the test.
12120 ac_prog_rejected=no
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12129 ac_prog_rejected=yes
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 if test $ac_prog_rejected = yes; then
12140 # We found a bogon in the path, so make sure we never use it.
12141 set dummy $ac_cv_prog_CC
12143 if test $# != 0; then
12144 # We chose a different compiler from the bogus one.
12145 # However, it has the same basename, so the bogon will be chosen
12146 # first if we set CC to just the basename; use the full file name.
12148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12154 if test -n "$CC"; then
12155 echo "$as_me:$LINENO: result: $CC" >&5
12156 echo "${ECHO_T}$CC" >&6
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12163 if test -z "$CC"; then
12164 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_prog_CC+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 if test -n "$CC"; then
12175 ac_cv_prog_CC="$CC" # Let the user override the test.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 if test -n "$CC"; then
12195 echo "$as_me:$LINENO: result: $CC" >&5
12196 echo "${ECHO_T}$CC" >&6
12198 echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12202 test -n "$CC" && break
12205 if test -z "$CC"; then
12209 # Extract the first word of "$ac_prog", so it can be a program name with args.
12210 set dummy $ac_prog; ac_word=$2
12211 echo "$as_me:$LINENO: checking for $ac_word" >&5
12212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 if test -n "$ac_ct_CC"; then
12217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_prog_ac_ct_CC="$ac_prog"
12227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12236 if test -n "$ac_ct_CC"; then
12237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12238 echo "${ECHO_T}$ac_ct_CC" >&6
12240 echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12244 test -n "$ac_ct_CC" && break
12253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&2;}
12257 { (exit 1); exit 1; }; }
12259 # Provide some information about the compiler.
12260 echo "$as_me:$LINENO:" \
12261 "checking for C compiler version" >&5
12262 ac_compiler=`set X $ac_compile; echo $2`
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12264 (eval $ac_compiler --version </dev/null >&5) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }
12268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12269 (eval $ac_compiler -v </dev/null >&5) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }
12273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12274 (eval $ac_compiler -V </dev/null >&5) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }
12279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_compiler_gnu=yes
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12335 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12336 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12337 GCC=`test $ac_compiler_gnu = yes && echo yes`
12338 ac_test_CFLAGS=${CFLAGS+set}
12339 ac_save_CFLAGS=$CFLAGS
12341 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12343 if test "${ac_cv_prog_cc_g+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_prog_cc_g=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12394 if test "$ac_test_CFLAGS" = set; then
12395 CFLAGS=$ac_save_CFLAGS
12396 elif test $ac_cv_prog_cc_g = yes; then
12397 if test "$GCC" = yes; then
12403 if test "$GCC" = yes; then
12409 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12410 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12411 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 ac_cv_prog_cc_stdc=no
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <stdarg.h>
12424 #include <sys/types.h>
12425 #include <sys/stat.h>
12426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12427 struct buf { int x; };
12428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12429 static char *e (p, i)
12435 static char *f (char * (*g) (char **, int), char **p, ...)
12440 s = g (p, va_arg (v,int));
12445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12446 function prototypes and stuff, but not '\xHH' hex character constants.
12447 These don't provoke an error unfortunately, instead are silently treated
12448 as 'x'. The following induces an error, until -std1 is added to get
12449 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12450 array size at least. It's necessary to write '\x00'==0 to get something
12451 that's true only with -std1. */
12452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12454 int test (int i, double x);
12455 struct s1 {int (*f) (int a);};
12456 struct s2 {int (*f) (double a);};
12457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12468 # Don't try gcc -ansi; that turns off useful extensions and
12469 # breaks some systems' header files.
12470 # AIX -qlanglvl=ansi
12471 # Ultrix and OSF/1 -std1
12472 # HP-UX 10.20 and later -Ae
12473 # HP-UX older versions -Aa -D_HPUX_SOURCE
12474 # SVR4 -Xc -D__EXTENSIONS__
12475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12477 CC="$ac_save_CC $ac_arg"
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest.$ac_objext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_prog_cc_stdc=$ac_arg
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12507 rm -f conftest.err conftest.$ac_objext
12509 rm -f conftest.$ac_ext conftest.$ac_objext
12514 case "x$ac_cv_prog_cc_stdc" in
12516 echo "$as_me:$LINENO: result: none needed" >&5
12517 echo "${ECHO_T}none needed" >&6 ;;
12519 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12521 CC="$CC $ac_cv_prog_cc_stdc" ;;
12524 # Some people use a C++ compiler to compile C. Since we use `exit',
12525 # in C++ we need to declare it. In case someone uses the same compiler
12526 # for both compiling C and C++ we need to have the C++ compiler decide
12527 # the declaration of exit, since it's the most demanding environment.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #ifndef __cplusplus
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 for ac_declaration in \
12557 'extern "C" void std::exit (int) throw (); using std::exit;' \
12558 'extern "C" void std::exit (int); using std::exit;' \
12559 'extern "C" void exit (int) throw ();' \
12560 'extern "C" void exit (int);' \
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 #include <stdlib.h>
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag"
12589 || test ! -s conftest.err'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 if test -n "$ac_declaration"; then
12656 echo '#ifdef __cplusplus' >>confdefs.h
12657 echo $ac_declaration >>confdefs.h
12658 echo '#endif' >>confdefs.h
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673 depcc="$CC" am_compiler_list=
12675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12681 # We make a subdir and do the tests there. Otherwise we can end up
12682 # making bogus files that we don't know about and never remove. For
12683 # instance it was reported that on HP-UX the gcc test will end up
12684 # making a dummy file named `D' -- because `-MD' means `put the output
12687 # Copy depcomp to subdir because otherwise we won't find it if we're
12688 # using a relative directory.
12689 cp "$am_depcomp" conftest.dir
12691 # We will build objects and dependencies in a subdirectory because
12692 # it helps to detect inapplicable dependency modes. For instance
12693 # both Tru64's cc and ICC support -MD to output dependencies as a
12694 # side effect of compilation, but ICC will put the dependencies in
12695 # the current directory while Tru64 will put them in the object
12699 am_cv_CC_dependencies_compiler_type=none
12700 if test "$am_compiler_list" = ""; then
12701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12703 for depmode in $am_compiler_list; do
12704 # Setup a source with many dependencies, because some compilers
12705 # like to wrap large dependency lists on column 80 (with \), and
12706 # we should not choose a depcomp mode which is confused by this.
12708 # We need to recreate these files for each test, as the compiler may
12709 # overwrite some of them when testing with obscure command lines.
12710 # This happens at least with the AIX C compiler.
12712 for i in 1 2 3 4 5 6; do
12713 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12714 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12715 # Solaris 8's {/usr,}/bin/sh.
12716 touch sub/conftst$i.h
12718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12722 # after this tag, mechanisms are not by side-effect, so they'll
12723 # only be used when explicitly requested
12724 if test "x$enable_dependency_tracking" = xyes; then
12732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12733 # mode. It turns out that the SunPro C++ compiler does not properly
12734 # handle `-M -o', and we need to detect this.
12735 if depmode=$depmode \
12736 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12738 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12739 >/dev/null 2>conftest.err &&
12740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743 # icc doesn't choke on unknown options, it will just issue warnings
12744 # or remarks (even with -Werror). So we grep stderr for any message
12745 # that says an option was ignored or not supported.
12746 # When given -MP, icc 7.0 and 7.1 complain thusly:
12747 # icc: Command line warning: ignoring option '-M'; no argument required
12748 # The diagnosis changed in icc 8.0:
12749 # icc: Command line remark: option '-MP' not supported
12750 if (grep 'ignoring option' conftest.err ||
12751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752 am_cv_CC_dependencies_compiler_type=$depmode
12759 rm -rf conftest.dir
12761 am_cv_CC_dependencies_compiler_type=none
12765 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12766 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12772 test "x$enable_dependency_tracking" != xno \
12773 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12774 am__fastdepCC_TRUE=
12775 am__fastdepCC_FALSE='#'
12777 am__fastdepCC_TRUE='#'
12778 am__fastdepCC_FALSE=
12782 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12783 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12784 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12785 { (exit 1); exit 1; }; }
12788 # test for make depend flag
12791 if test -z "${MKDEP}"; then
12792 OL_MKDEP="${CC-cc}"
12793 if test -z "${MKDEP_FLAGS}"; then
12794 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12795 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12796 if test "${ol_cv_mkdep+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 for flag in "-M" "-xM"; do
12802 cat > conftest.c <<EOF
12805 if { ac_try='$OL_MKDEP $flag conftest.c'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } \
12811 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12813 if test ! -f conftest."${ac_object}" ; then
12815 OL_MKDEP_FLAGS="$flag"
12823 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12824 echo "${ECHO_T}$ol_cv_mkdep" >&6
12827 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12831 OL_MKDEP="${MKDEP}"
12832 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12837 if test "${ol_cv_mkdep}" = no ; then
12838 # this will soon become an error
12839 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12840 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12843 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12844 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12845 if test "${ac_cv_lib_s_afopen+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_s_afopen=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_s_afopen=no
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12906 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12907 if test $ac_cv_lib_s_afopen = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_AIX_SECURITY 1
12921 ac_cv_func_getopt=no
12923 cat >>confdefs.h <<\_ACEOF
12924 #define BOTH_STRINGS_H 1
12931 WITH_MODULES_ENABLED=no
12932 if test $ol_enable_modules != no ; then
12934 for ac_header in ltdl.h
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 $ac_includes_default
12956 #include <$ac_header>
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag"
12968 || test ! -s conftest.err'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest.$ac_objext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 ac_header_compiler=yes
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 ac_header_compiler=no
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12989 echo "${ECHO_T}$ac_header_compiler" >&6
12991 # Is the header present?
12992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 #include <$ac_header>
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_c_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13019 if test -z "$ac_cpp_err"; then
13020 ac_header_preproc=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_header_preproc=no
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13031 # So? What about this header?
13032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13038 ac_header_preproc=yes
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13055 ## --------------------------------------------- ##
13056 ## Report this to <http://www.openldap.org/its/> ##
13057 ## --------------------------------------------- ##
13060 sed "s/^/$as_me: WARNING: /" >&2
13063 echo "$as_me:$LINENO: checking for $ac_header" >&5
13064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 eval "$as_ac_Header=\$ac_header_preproc"
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084 if test $ac_cv_header_ltdl_h = no ; then
13085 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13086 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13087 { (exit 1); exit 1; }; }
13090 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13091 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13092 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lltdl $LIBS"
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 /* Override any gcc2 internal prototype to avoid an error. */
13108 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag"
13129 || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_cv_lib_ltdl_lt_dlinit=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_cv_lib_ltdl_lt_dlinit=no
13148 rm -f conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13153 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13154 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13156 MODULES_LIBS=-lltdl
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_LIBLTDL 1
13166 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13167 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13169 { (exit 1); exit 1; }; }
13171 ol_link_modules=yes
13172 WITH_MODULES_ENABLED=yes
13175 for i in $Backends; do
13176 eval "ol_tmp=\$ol_enable_$i"
13177 if test $ol_tmp = mod ; then
13178 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13179 echo "$as_me: WARNING: building static $i backend" >&2;}
13180 eval "ol_enable_$i=yes"
13183 for i in $Overlays; do
13184 eval "ol_tmp=\$ol_enable_$i"
13185 if test $ol_tmp = mod ; then
13186 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13187 echo "$as_me: WARNING: building static $i overlay" >&2;}
13188 eval "ol_enable_$i=yes"
13194 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13195 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13196 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13208 #include <__ASCII__/generate_error.h>
13212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } >/dev/null; then
13220 if test -s conftest.err; then
13221 ac_cpp_err=$ac_c_preproc_warn_flag
13222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13229 if test -z "$ac_cpp_err"; then
13230 ol_cv_cpp_ebcdic=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ol_cv_cpp_ebcdic=no
13237 rm -f conftest.err conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13240 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13241 if test $ol_cv_cpp_ebcdic = yes ; then
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_EBCDIC 1
13249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13251 if test "${ol_cv_header_stdc+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <stdlib.h>
13261 #include <stdarg.h>
13262 #include <string.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_header_stdc=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ol_cv_header_stdc=no
13290 rm -f conftest.err conftest.$ac_ext
13292 if test $ol_cv_header_stdc = yes; then
13293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <string.h>
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304 $EGREP "memchr" >/dev/null 2>&1; then
13307 ol_cv_header_stdc=no
13313 if test $ol_cv_header_stdc = yes; then
13314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <stdlib.h>
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "free" >/dev/null 2>&1; then
13328 ol_cv_header_stdc=no
13334 if test $ol_cv_header_stdc = yes; then
13335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13346 #ifndef HAVE_EBCDIC
13347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13350 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13351 || ('j' <= (c) && (c) <= 'r') \
13352 || ('s' <= (c) && (c) <= 'z'))
13353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 int main () { int i; for (i = 0; i < 256; i++)
13357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13374 echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ( exit $ac_status )
13379 ol_cv_header_stdc=no
13381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13386 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13387 if test $ol_cv_header_stdc = yes; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13393 ac_cv_header_stdc=disable
13396 if test $ol_cv_header_stdc != yes; then
13397 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13398 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13406 ac_header_dirent=no
13407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13408 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <sys/types.h>
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 eval "$as_ac_Header=yes"
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 eval "$as_ac_Header=no"
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13470 ac_header_dirent=$ac_hdr; break
13474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13475 if test $ac_header_dirent = dirent.h; then
13476 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13478 if test "${ac_cv_search_opendir+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 ac_func_search_save_LIBS=$LIBS
13482 ac_cv_search_opendir=no
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_search_opendir="none required"
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13533 rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 if test "$ac_cv_search_opendir" = no; then
13536 for ac_lib in dir; do
13537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_search_opendir="-l$ac_lib"
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13589 rm -f conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_func_search_save_LIBS
13595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13597 if test "$ac_cv_search_opendir" != no; then
13598 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13603 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13605 if test "${ac_cv_search_opendir+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_func_search_save_LIBS=$LIBS
13609 ac_cv_search_opendir=no
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 /* Override any gcc2 internal prototype to avoid an error. */
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_opendir="none required"
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13660 rm -f conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 if test "$ac_cv_search_opendir" = no; then
13663 for ac_lib in x; do
13664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689 (eval $ac_link) 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_search_opendir="-l$ac_lib"
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13716 rm -f conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_func_search_save_LIBS
13722 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13723 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13724 if test "$ac_cv_search_opendir" != no; then
13725 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include <sys/types.h>
13743 #include <sys/wait.h>
13744 #ifndef WEXITSTATUS
13745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13756 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_header_sys_wait_h=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_header_sys_wait_h=no
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13794 if test $ac_cv_header_sys_wait_h = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_SYS_WAIT_H 1
13802 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13803 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13804 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <sys/types.h>
13814 #include <termios.h>
13820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13821 $EGREP "yes" >/dev/null 2>&1; then
13822 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13824 ac_cv_sys_tiocgwinsz_in_termios_h=no
13829 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13830 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13832 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13833 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13834 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13835 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <sys/types.h>
13845 #include <sys/ioctl.h>
13851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13852 $EGREP "yes" >/dev/null 2>&1; then
13853 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13855 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13860 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13861 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13863 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define GWINSZ_IN_SYS_IOCTL 1
13968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13970 echo "$as_me:$LINENO: checking for $ac_header" >&5
13971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13978 # Is the header compilable?
13979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 $ac_includes_default
13988 #include <$ac_header>
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_header_compiler=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 ac_header_compiler=no
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14021 echo "${ECHO_T}$ac_header_compiler" >&6
14023 # Is the header present?
14024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 #include <$ac_header>
14034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14037 grep -v '^ *+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } >/dev/null; then
14042 if test -s conftest.err; then
14043 ac_cpp_err=$ac_c_preproc_warn_flag
14044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14051 if test -z "$ac_cpp_err"; then
14052 ac_header_preproc=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_header_preproc=no
14059 rm -f conftest.err conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14061 echo "${ECHO_T}$ac_header_preproc" >&6
14063 # So? What about this header?
14064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14070 ac_header_preproc=yes
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14087 ## --------------------------------------------- ##
14088 ## Report this to <http://www.openldap.org/its/> ##
14089 ## --------------------------------------------- ##
14092 sed "s/^/$as_me: WARNING: /" >&2
14095 echo "$as_me:$LINENO: checking for $ac_header" >&5
14096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 eval "$as_ac_Header=\$ac_header_preproc"
14102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14117 for ac_header in resolv.h
14119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14120 echo "$as_me:$LINENO: checking for $ac_header" >&5
14121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 $ac_includes_default
14132 #include <netinet/in.h>
14135 #include <$ac_header>
14137 rm -f conftest.$ac_objext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14139 (eval $ac_compile) 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest.$ac_objext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 eval "$as_ac_Header=yes"
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 eval "$as_ac_Header=no"
14166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14171 cat >>confdefs.h <<_ACEOF
14172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14181 for ac_header in netinet/tcp.h
14183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14184 echo "$as_me:$LINENO: checking for $ac_header" >&5
14185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 cat >conftest.$ac_ext <<_ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 $ac_includes_default
14196 #include <netinet/in.h>
14199 #include <$ac_header>
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>conftest.er1
14205 grep -v '^ *+' conftest.er1 >conftest.err
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 eval "$as_ac_Header=yes"
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 eval "$as_ac_Header=no"
14230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 for ac_header in sys/ucred.h
14247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248 echo "$as_me:$LINENO: checking for $ac_header" >&5
14249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 #ifdef HAVE_SYS_PARAM_H
14261 #include <sys/param.h>
14265 #include <$ac_header>
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 eval "$as_ac_Header=yes"
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 eval "$as_ac_Header=no"
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14301 cat >>confdefs.h <<_ACEOF
14302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14313 for ac_func in sigaction sigset
14315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316 echo "$as_me:$LINENO: checking for $ac_func" >&5
14317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_var+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14329 #define $ac_func innocuous_$ac_func
14331 /* System header to define __stub macros and hopefully few prototypes,
14332 which can conflict with char $ac_func (); below.
14333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14334 <limits.h> exists even on freestanding compilers. */
14337 # include <limits.h>
14339 # include <assert.h>
14344 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14352 /* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358 char (*f) () = $ac_func;
14367 return f != $ac_func;
14372 rm -f conftest.$ac_objext conftest$ac_exeext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374 (eval $ac_link) 2>conftest.er1
14376 grep -v '^ *+' conftest.er1 >conftest.err
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 eval "$as_ac_var=yes"
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 eval "$as_ac_var=no"
14401 rm -f conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14406 if test `eval echo '${'$as_ac_var'}'` = yes; then
14407 cat >>confdefs.h <<_ACEOF
14408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14415 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14417 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14418 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14419 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 ac_check_lib_save_LIBS=$LIBS
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14431 /* Override any gcc2 internal prototype to avoid an error. */
14435 /* We use char because int might match the return type of a gcc2
14436 builtin and then its argument prototype would still apply. */
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14448 (eval $ac_link) 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -z "$ac_c_werror_flag"
14456 || test ! -s conftest.err'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest$ac_exeext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_lib_V3_sigset=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_lib_V3_sigset=no
14475 rm -f conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14477 LIBS=$ac_check_lib_save_LIBS
14479 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14480 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14481 if test $ac_cv_lib_V3_sigset = yes; then
14482 cat >>confdefs.h <<_ACEOF
14483 #define HAVE_LIBV3 1
14492 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14493 echo "$as_me:$LINENO: checking for winsock" >&5
14494 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14495 if test "${ol_cv_winsock+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 for curlib in ws2_32 wsock32; do
14500 LIBS="$LIBS -l$curlib"
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <winsock.h>
14514 select(0,NULL,NULL,NULL,NULL);
14516 gethostname(NULL,0);
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag"
14532 || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14551 rm -f conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14554 if test $ol_cv_winsock = yes; then
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_WINSOCK 1
14560 ac_cv_func_socket=yes
14561 ac_cv_func_select=yes
14562 ac_cv_func_closesocket=yes
14563 ac_cv_func_gethostname=yes
14564 if test $curlib = ws2_32; then
14565 ol_cv_winsock=winsock2
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_WINSOCK2 1
14577 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14578 echo "${ECHO_T}$ol_cv_winsock" >&6
14582 echo "$as_me:$LINENO: checking for socket" >&5
14583 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14584 if test "${ac_cv_func_socket+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14595 #define socket innocuous_socket
14597 /* System header to define __stub macros and hopefully few prototypes,
14598 which can conflict with char socket (); below.
14599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14600 <limits.h> exists even on freestanding compilers. */
14603 # include <limits.h>
14605 # include <assert.h>
14610 /* Override any gcc2 internal prototype to avoid an error. */
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14618 /* The GNU C library defines this for functions which it implements
14619 to always fail with ENOSYS. Some functions are actually named
14620 something starting with __ and the normal name is an alias. */
14621 #if defined (__stub_socket) || defined (__stub___socket)
14624 char (*f) () = socket;
14633 return f != socket;
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try='test -z "$ac_c_werror_flag"
14648 || test ! -s conftest.err'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; } &&
14654 { ac_try='test -s conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_func_socket=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_cv_func_socket=no
14667 rm -f conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
14670 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14671 echo "${ECHO_T}$ac_cv_func_socket" >&6
14672 if test $ac_cv_func_socket = yes; then
14677 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14678 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14679 if test "${ac_cv_lib_socket_main+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 ac_check_lib_save_LIBS=$LIBS
14683 LIBS="-lsocket $LIBS"
14684 cat >conftest.$ac_ext <<_ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14704 grep -v '^ *+' conftest.er1 >conftest.err
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_lib_socket_main=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_cv_lib_socket_main=no
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14734 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14735 if test $ac_cv_lib_socket_main = yes; then
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_LIBSOCKET 1
14740 LIBS="-lsocket $LIBS"
14745 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14746 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14747 if test "${ac_cv_lib_net_main+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 ac_check_lib_save_LIBS=$LIBS
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_cv_lib_net_main=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_lib_net_main=no
14797 rm -f conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14799 LIBS=$ac_check_lib_save_LIBS
14801 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14802 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14803 if test $ac_cv_lib_net_main = yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_LIBNET 1
14813 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14814 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14815 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-lnsl_s $LIBS"
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -z "$ac_c_werror_flag"
14846 || test ! -s conftest.err'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest$ac_exeext'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; }; then
14858 ac_cv_lib_nsl_s_main=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_lib_nsl_s_main=no
14865 rm -f conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 LIBS=$ac_check_lib_save_LIBS
14869 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14870 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14871 if test $ac_cv_lib_nsl_s_main = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_LIBNSL_S 1
14876 LIBS="-lnsl_s $LIBS"
14881 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14882 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14883 if test "${ac_cv_lib_nsl_main+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 ac_check_lib_save_LIBS=$LIBS
14888 cat >conftest.$ac_ext <<_ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>conftest.er1
14908 grep -v '^ *+' conftest.er1 >conftest.err
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag"
14914 || test ! -s conftest.err'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest$ac_exeext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_cv_lib_nsl_main=yes
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_cv_lib_nsl_main=no
14933 rm -f conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
14935 LIBS=$ac_check_lib_save_LIBS
14937 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14938 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14939 if test $ac_cv_lib_nsl_main = yes; then
14940 cat >>confdefs.h <<_ACEOF
14941 #define HAVE_LIBNSL 1
14949 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14950 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14951 if test "${ac_cv_lib_inet_socket+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 ac_check_lib_save_LIBS=$LIBS
14955 LIBS="-linet $LIBS"
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14963 /* Override any gcc2 internal prototype to avoid an error. */
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag"
14988 || test ! -s conftest.err'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; } &&
14994 { ac_try='test -s conftest$ac_exeext'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 ac_cv_lib_inet_socket=yes
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_cv_lib_inet_socket=no
15007 rm -f conftest.err conftest.$ac_objext \
15008 conftest$ac_exeext conftest.$ac_ext
15009 LIBS=$ac_check_lib_save_LIBS
15011 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15012 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15013 if test $ac_cv_lib_inet_socket = yes; then
15014 cat >>confdefs.h <<_ACEOF
15015 #define HAVE_LIBINET 1
15018 LIBS="-linet $LIBS"
15023 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15024 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15025 if test "${ac_cv_lib_gen_main+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 ac_check_lib_save_LIBS=$LIBS
15030 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15048 (eval $ac_link) 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -z "$ac_c_werror_flag"
15056 || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest$ac_exeext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_cv_lib_gen_main=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_cv_lib_gen_main=no
15075 rm -f conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15079 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15080 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15081 if test $ac_cv_lib_gen_main = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_LIBGEN 1
15094 echo "$as_me:$LINENO: checking for select" >&5
15095 echo $ECHO_N "checking for select... $ECHO_C" >&6
15096 if test "${ac_cv_func_select+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 /* Define select to an innocuous variant, in case <limits.h> declares select.
15106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15107 #define select innocuous_select
15109 /* System header to define __stub macros and hopefully few prototypes,
15110 which can conflict with char select (); below.
15111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15112 <limits.h> exists even on freestanding compilers. */
15115 # include <limits.h>
15117 # include <assert.h>
15122 /* Override any gcc2 internal prototype to avoid an error. */
15127 /* We use char because int might match the return type of a gcc2
15128 builtin and then its argument prototype would still apply. */
15130 /* The GNU C library defines this for functions which it implements
15131 to always fail with ENOSYS. Some functions are actually named
15132 something starting with __ and the normal name is an alias. */
15133 #if defined (__stub_select) || defined (__stub___select)
15136 char (*f) () = select;
15145 return f != select;
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152 (eval $ac_link) 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag"
15160 || test ! -s conftest.err'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest$ac_exeext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_func_select=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_func_select=no
15179 rm -f conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15182 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15183 echo "${ECHO_T}$ac_cv_func_select" >&6
15184 if test $ac_cv_func_select = yes; then
15187 { { echo "$as_me:$LINENO: error: select() required." >&5
15188 echo "$as_me: error: select() required." >&2;}
15189 { (exit 1); exit 1; }; }
15193 if test "${ac_cv_header_winsock_h}" != yes; then
15196 for ac_header in sys/select.h sys/socket.h
15198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15200 echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208 # Is the header compilable?
15209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <$ac_header>
15220 rm -f conftest.$ac_objext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222 (eval $ac_compile) 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag"
15230 || test ! -s conftest.err'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_header_compiler=no
15249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251 echo "${ECHO_T}$ac_header_compiler" >&6
15253 # Is the header present?
15254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15256 cat >conftest.$ac_ext <<_ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include <$ac_header>
15264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15267 grep -v '^ *+' conftest.er1 >conftest.err
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null; then
15272 if test -s conftest.err; then
15273 ac_cpp_err=$ac_c_preproc_warn_flag
15274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15281 if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_header_preproc=no
15289 rm -f conftest.err conftest.$ac_ext
15290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291 echo "${ECHO_T}$ac_header_preproc" >&6
15293 # So? What about this header?
15294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15317 ## --------------------------------------------- ##
15318 ## Report this to <http://www.openldap.org/its/> ##
15319 ## --------------------------------------------- ##
15322 sed "s/^/$as_me: WARNING: /" >&2
15325 echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 eval "$as_ac_Header=\$ac_header_preproc"
15332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15337 cat >>confdefs.h <<_ACEOF
15338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15345 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15346 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15347 if test "${ac_cv_func_select_args+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15351 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15352 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 $ac_includes_default
15360 #if HAVE_SYS_SELECT_H
15361 # include <sys/select.h>
15363 #if HAVE_SYS_SOCKET_H
15364 # include <sys/socket.h>
15370 extern int select ($ac_arg1,
15371 $ac_arg234, $ac_arg234, $ac_arg234,
15377 rm -f conftest.$ac_objext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15379 (eval $ac_compile) 2>conftest.er1
15381 grep -v '^ *+' conftest.er1 >conftest.err
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag"
15387 || test ! -s conftest.err'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15409 # Provide a safe default value.
15410 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15413 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15414 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15415 ac_save_IFS=$IFS; IFS=','
15416 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15420 cat >>confdefs.h <<_ACEOF
15421 #define SELECT_TYPE_ARG1 $1
15425 cat >>confdefs.h <<_ACEOF
15426 #define SELECT_TYPE_ARG234 ($2)
15430 cat >>confdefs.h <<_ACEOF
15431 #define SELECT_TYPE_ARG5 ($3)
15440 for ac_func in poll
15442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15443 echo "$as_me:$LINENO: checking for $ac_func" >&5
15444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15445 if eval "test \"\${$as_ac_var+set}\" = set"; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define $ac_func innocuous_$ac_func
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char $ac_func (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15471 /* Override any gcc2 internal prototype to avoid an error. */
15476 /* We use char because int might match the return type of a gcc2
15477 builtin and then its argument prototype would still apply. */
15479 /* The GNU C library defines this for functions which it implements
15480 to always fail with ENOSYS. Some functions are actually named
15481 something starting with __ and the normal name is an alias. */
15482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15485 char (*f) () = $ac_func;
15494 return f != $ac_func;
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15501 (eval $ac_link) 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag"
15509 || test ! -s conftest.err'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; } &&
15515 { ac_try='test -s conftest$ac_exeext'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 eval "$as_ac_var=yes"
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 eval "$as_ac_var=no"
15528 rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15533 if test `eval echo '${'$as_ac_var'}'` = yes; then
15534 cat >>confdefs.h <<_ACEOF
15535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15542 for ac_header in poll.h
15544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15546 echo "$as_me:$LINENO: checking for $ac_header" >&5
15547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15554 # Is the header compilable?
15555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15557 cat >conftest.$ac_ext <<_ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15563 $ac_includes_default
15564 #include <$ac_header>
15566 rm -f conftest.$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568 (eval $ac_compile) 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag"
15576 || test ! -s conftest.err'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try='test -s conftest.$ac_objext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_header_compiler=yes
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_header_compiler=no
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15597 echo "${ECHO_T}$ac_header_compiler" >&6
15599 # Is the header present?
15600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 #include <$ac_header>
15610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } >/dev/null; then
15618 if test -s conftest.err; then
15619 ac_cpp_err=$ac_c_preproc_warn_flag
15620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15627 if test -z "$ac_cpp_err"; then
15628 ac_header_preproc=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_header_preproc=no
15635 rm -f conftest.err conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15637 echo "${ECHO_T}$ac_header_preproc" >&6
15639 # So? What about this header?
15640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15646 ac_header_preproc=yes
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15663 ## --------------------------------------------- ##
15664 ## Report this to <http://www.openldap.org/its/> ##
15665 ## --------------------------------------------- ##
15668 sed "s/^/$as_me: WARNING: /" >&2
15671 echo "$as_me:$LINENO: checking for $ac_header" >&5
15672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 eval "$as_ac_Header=\$ac_header_preproc"
15678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15693 for ac_header in sys/epoll.h
15695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15697 echo "$as_me:$LINENO: checking for $ac_header" >&5
15698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15705 # Is the header compilable?
15706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 #include <$ac_header>
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719 (eval $ac_compile) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_header_compiler=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_header_compiler=no
15746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15748 echo "${ECHO_T}$ac_header_compiler" >&6
15750 # Is the header present?
15751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 #include <$ac_header>
15761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15764 grep -v '^ *+' conftest.er1 >conftest.err
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } >/dev/null; then
15769 if test -s conftest.err; then
15770 ac_cpp_err=$ac_c_preproc_warn_flag
15771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15778 if test -z "$ac_cpp_err"; then
15779 ac_header_preproc=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_header_preproc=no
15786 rm -f conftest.err conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15788 echo "${ECHO_T}$ac_header_preproc" >&6
15790 # So? What about this header?
15791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15797 ac_header_preproc=yes
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15814 ## --------------------------------------------- ##
15815 ## Report this to <http://www.openldap.org/its/> ##
15816 ## --------------------------------------------- ##
15819 sed "s/^/$as_me: WARNING: /" >&2
15822 echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 eval "$as_ac_Header=\$ac_header_preproc"
15829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15834 cat >>confdefs.h <<_ACEOF
15835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15842 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15843 echo "$as_me:$LINENO: checking for epoll system call" >&5
15844 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15845 if test "$cross_compiling" = yes; then
15846 echo "$as_me:$LINENO: result: no" >&5
15847 echo "${ECHO_T}no" >&6
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 int main(int argc, char *argv)
15857 int epfd = epoll_create(256);
15858 exit (epfd == -1 ? 1 : 0);
15861 rm -f conftest$ac_exeext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15863 (eval $ac_link) 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 echo "$as_me:$LINENO: result: yes" >&5
15873 echo "${ECHO_T}yes" >&6
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_EPOLL 1
15880 echo "$as_me: program exited with status $ac_status" >&5
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ( exit $ac_status )
15885 echo "$as_me:$LINENO: result: no" >&5
15886 echo "${ECHO_T}no" >&6
15888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15894 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15895 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15907 #include <sys/types.h>
15910 #include <stdlib.h>
15915 char *c = (char *) *sys_errlist
15920 rm -f conftest.$ac_objext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15922 (eval $ac_compile) 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -z "$ac_c_werror_flag"
15930 || test ! -s conftest.err'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest.$ac_objext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 ol_cv_dcl_sys_errlist=yes
15943 ol_cv_have_sys_errlist=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ol_cv_dcl_sys_errlist=no
15950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15953 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15955 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15956 if test $ol_cv_dcl_sys_errlist = no ; then
15958 cat >>confdefs.h <<\_ACEOF
15959 #define DECL_SYS_ERRLIST 1
15963 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15964 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15965 if test "${ol_cv_have_sys_errlist+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 cat >conftest.$ac_ext <<_ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15979 char *c = (char *) *sys_errlist
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest$ac_exeext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ol_cv_have_sys_errlist=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ol_cv_have_sys_errlist=no
16013 rm -f conftest.err conftest.$ac_objext \
16014 conftest$ac_exeext conftest.$ac_ext
16016 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16017 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16019 if test $ol_cv_have_sys_errlist = yes ; then
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_SYS_ERRLIST 1
16028 for ac_func in strerror strerror_r
16030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16031 echo "$as_me:$LINENO: checking for $ac_func" >&5
16032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16033 if eval "test \"\${$as_ac_var+set}\" = set"; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16044 #define $ac_func innocuous_$ac_func
16046 /* System header to define __stub macros and hopefully few prototypes,
16047 which can conflict with char $ac_func (); below.
16048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16049 <limits.h> exists even on freestanding compilers. */
16052 # include <limits.h>
16054 # include <assert.h>
16059 /* Override any gcc2 internal prototype to avoid an error. */
16064 /* We use char because int might match the return type of a gcc2
16065 builtin and then its argument prototype would still apply. */
16067 /* The GNU C library defines this for functions which it implements
16068 to always fail with ENOSYS. Some functions are actually named
16069 something starting with __ and the normal name is an alias. */
16070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16073 char (*f) () = $ac_func;
16082 return f != $ac_func;
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 eval "$as_ac_var=yes"
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 eval "$as_ac_var=no"
16116 rm -f conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16121 if test `eval echo '${'$as_ac_var'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16129 ol_cv_func_strerror_r=no
16130 if test "${ac_cv_func_strerror_r}" = yes ; then
16131 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16132 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16133 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 cat >conftest.$ac_ext <<_ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 #include <string.h>
16145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16146 $EGREP "strerror_r" >/dev/null 2>&1; then
16147 ol_decl_strerror_r=yes
16149 ol_decl_strerror_r=no
16153 if test $ol_decl_strerror_r = yes ; then
16154 cat >conftest.$ac_ext <<_ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 #include <string.h>
16164 /* from autoconf 2.59 */
16166 char x = *strerror_r (0, buf, sizeof buf);
16167 char *p = strerror_r (0, buf, sizeof buf);
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>conftest.er1
16177 grep -v '^ *+' conftest.er1 >conftest.err
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ol_cv_nonposix_strerror_r=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ol_cv_nonposix_strerror_r=no
16202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 if test "$cross_compiling" = yes; then
16205 ol_cv_nonposix_strerror=no
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16217 strerror_r( 1, buf, sizeof buf );
16218 exit( buf[0] == 0 );
16222 rm -f conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ol_cv_nonposix_strerror_r=yes
16235 echo "$as_me: program exited with status $ac_status" >&5
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ( exit $ac_status )
16240 ol_cv_nonposix_strerror=no
16242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16247 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16248 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16249 if test $ol_cv_nonposix_strerror_r = yes ; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_NONPOSIX_STRERROR_R 1
16257 elif test "${ac_cv_func_strerror}" = no ; then
16258 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16259 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16260 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16272 #include <sys/types.h>
16275 #include <stdlib.h>
16280 char *c = (char *) *sys_errlist
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ol_cv_dcl_sys_errlist=yes
16308 ol_cv_have_sys_errlist=yes
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16313 ol_cv_dcl_sys_errlist=no
16315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16317 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16318 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16320 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16321 if test $ol_cv_dcl_sys_errlist = no ; then
16323 cat >>confdefs.h <<\_ACEOF
16324 #define DECL_SYS_ERRLIST 1
16328 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16329 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16330 if test "${ol_cv_have_sys_errlist+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16344 char *c = (char *) *sys_errlist
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351 (eval $ac_link) 2>conftest.er1
16353 grep -v '^ *+' conftest.er1 >conftest.err
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag"
16359 || test ! -s conftest.err'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ol_cv_have_sys_errlist=yes
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ol_cv_have_sys_errlist=no
16378 rm -f conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16381 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16382 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16384 if test $ol_cv_have_sys_errlist = yes ; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_SYS_ERRLIST 1
16396 for ac_header in regex.h
16398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16400 echo "$as_me:$LINENO: checking for $ac_header" >&5
16401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16408 # Is the header compilable?
16409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 $ac_includes_default
16418 #include <$ac_header>
16420 rm -f conftest.$ac_objext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_c_werror_flag"
16430 || test ! -s conftest.err'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_header_compiler=yes
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_header_compiler=no
16449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16451 echo "${ECHO_T}$ac_header_compiler" >&6
16453 # Is the header present?
16454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <$ac_header>
16464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16467 grep -v '^ *+' conftest.er1 >conftest.err
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null; then
16472 if test -s conftest.err; then
16473 ac_cpp_err=$ac_c_preproc_warn_flag
16474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16481 if test -z "$ac_cpp_err"; then
16482 ac_header_preproc=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_header_preproc=no
16489 rm -f conftest.err conftest.$ac_ext
16490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 echo "${ECHO_T}$ac_header_preproc" >&6
16493 # So? What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16517 ## --------------------------------------------- ##
16518 ## Report this to <http://www.openldap.org/its/> ##
16519 ## --------------------------------------------- ##
16522 sed "s/^/$as_me: WARNING: /" >&2
16525 echo "$as_me:$LINENO: checking for $ac_header" >&5
16526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 eval "$as_ac_Header=\$ac_header_preproc"
16532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537 cat >>confdefs.h <<_ACEOF
16538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16545 if test "$ac_cv_header_regex_h" != yes ; then
16546 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16547 echo "$as_me: error: POSIX regex.h required." >&2;}
16548 { (exit 1); exit 1; }; }
16550 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16551 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16552 if test "${ac_cv_search_regfree+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_func_search_save_LIBS=$LIBS
16556 ac_cv_search_regfree=no
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 /* Override any gcc2 internal prototype to avoid an error. */
16568 /* We use char because int might match the return type of a gcc2
16569 builtin and then its argument prototype would still apply. */
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16581 (eval $ac_link) 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag"
16589 || test ! -s conftest.err'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_search_regfree="none required"
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16607 rm -f conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 if test "$ac_cv_search_regfree" = no; then
16610 for ac_lib in regex gnuregex; do
16611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16619 /* Override any gcc2 internal prototype to avoid an error. */
16623 /* We use char because int might match the return type of a gcc2
16624 builtin and then its argument prototype would still apply. */
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16636 (eval $ac_link) 2>conftest.er1
16638 grep -v '^ *+' conftest.er1 >conftest.err
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag"
16644 || test ! -s conftest.err'
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } &&
16650 { ac_try='test -s conftest$ac_exeext'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_search_regfree="-l$ac_lib"
16659 echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16663 rm -f conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16667 LIBS=$ac_func_search_save_LIBS
16669 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16670 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16671 if test "$ac_cv_search_regfree" != no; then
16672 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16675 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16676 echo "$as_me: error: POSIX regex required." >&2;}
16677 { (exit 1); exit 1; }; }
16682 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16683 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16684 if test "${ol_cv_c_posix_regex+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 if test "$cross_compiling" = yes; then
16689 ol_cv_c_posix_regex=cross
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16698 #include <sys/types.h>
16700 static char *pattern, *string;
16708 if(regcomp(&re, pattern, 0)) {
16712 string = "ALL MATCH";
16714 rc = regexec(&re, string, 0, (void*)0, 0);
16721 rm -f conftest$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723 (eval $ac_link) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ol_cv_c_posix_regex=yes
16734 echo "$as_me: program exited with status $ac_status" >&5
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ( exit $ac_status )
16739 ol_cv_c_posix_regex=no
16741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16744 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16745 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16747 if test "$ol_cv_c_posix_regex" = no ; then
16748 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16749 echo "$as_me: error: broken POSIX regex!" >&2;}
16750 { (exit 1); exit 1; }; }
16756 for ac_header in sys/uuid.h
16758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16760 echo "$as_me:$LINENO: checking for $ac_header" >&5
16761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16768 # Is the header compilable?
16769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 $ac_includes_default
16778 #include <$ac_header>
16780 rm -f conftest.$ac_objext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag"
16790 || test ! -s conftest.err'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest.$ac_objext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_header_compiler=yes
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_header_compiler=no
16809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16811 echo "${ECHO_T}$ac_header_compiler" >&6
16813 # Is the header present?
16814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 #include <$ac_header>
16824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } >/dev/null; then
16832 if test -s conftest.err; then
16833 ac_cpp_err=$ac_c_preproc_warn_flag
16834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16841 if test -z "$ac_cpp_err"; then
16842 ac_header_preproc=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_header_preproc=no
16849 rm -f conftest.err conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6
16853 # So? What about this header?
16854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16860 ac_header_preproc=yes
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16877 ## --------------------------------------------- ##
16878 ## Report this to <http://www.openldap.org/its/> ##
16879 ## --------------------------------------------- ##
16882 sed "s/^/$as_me: WARNING: /" >&2
16885 echo "$as_me:$LINENO: checking for $ac_header" >&5
16886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 eval "$as_ac_Header=\$ac_header_preproc"
16892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16905 if test $ac_cv_header_sys_uuid_h = yes ; then
16907 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16908 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16909 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 ac_func_search_save_LIBS=$LIBS
16913 ac_cv_search_uuid_to_str=no
16914 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16921 /* Override any gcc2 internal prototype to avoid an error. */
16925 /* We use char because int might match the return type of a gcc2
16926 builtin and then its argument prototype would still apply. */
16927 char uuid_to_str ();
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_cv_search_uuid_to_str="none required"
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16964 rm -f conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16966 if test "$ac_cv_search_uuid_to_str" = no; then
16967 for ac_lib in uuid; do
16968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16976 /* Override any gcc2 internal prototype to avoid an error. */
16980 /* We use char because int might match the return type of a gcc2
16981 builtin and then its argument prototype would still apply. */
16982 char uuid_to_str ();
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16993 (eval $ac_link) 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -z "$ac_c_werror_flag"
17001 || test ! -s conftest.err'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest$ac_exeext'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_cv_search_uuid_to_str="-l$ac_lib"
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17020 rm -f conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17024 LIBS=$ac_func_search_save_LIBS
17026 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17027 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17028 if test "$ac_cv_search_uuid_to_str" != no; then
17029 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17037 if test have_uuid = yes ; then
17039 cat >>confdefs.h <<\_ACEOF
17040 #define HAVE_UUID_TO_STR 1
17044 test "$ac_cv_search_uuid_to_str" = "none required" || \
17045 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17049 if test $have_uuid = no ; then
17050 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17051 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17053 LIBS="$LIBS -lrpcrt4"
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17061 int __stdcall UuidCreate(void *);
17062 int __stdcall UuidToStringA(void *,void **);
17069 UuidToStringA(0,0);
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17077 (eval $ac_link) 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17104 rm -f conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 if test $need_rpcrt = yes; then
17107 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17110 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17111 echo "${ECHO_T}$need_rpcrt" >&6
17114 ol_cv_lib_resolver=no
17115 if test $ol_cv_lib_resolver = no ; then
17116 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17117 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17118 if test "${ol_cv_resolver_none+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 LIBS="$ol_RESOLVER_LIB $LIBS"
17126 cat >conftest.$ac_ext <<_ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17133 #ifdef HAVE_SYS_TYPES_H
17134 # include <sys/types.h>
17136 #include <netinet/in.h>
17137 #ifdef HAVE_ARPA_NAMESER_H
17138 # include <arpa/nameser.h>
17140 #ifdef HAVE_RESOLV_H
17141 # include <resolv.h>
17149 char *request = NULL;
17150 unsigned char reply[64*1024];
17151 unsigned char host[64*1024];
17155 /* Bind 8/9 interface */
17156 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17158 /* Bind 4 interface */
17162 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17166 /* Bind 8/9 interface */
17168 #elif defined(HFIXEDSZ)
17169 /* Bind 4 interface w/ HFIXEDSZ */
17172 /* Bind 4 interface w/o HFIXEDSZ */
17173 p += sizeof(HEADER);
17175 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17183 (eval $ac_link) 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ol_cv_resolver_none=yes
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ol_cv_resolver_none=no
17210 rm -f conftest.err conftest.$ac_objext \
17211 conftest$ac_exeext conftest.$ac_ext
17216 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17217 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17219 if test $ol_cv_resolver_none = yes ; then
17220 ol_cv_lib_resolver=yes
17224 if test $ol_cv_lib_resolver = no ; then
17225 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17226 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17227 if test "${ol_cv_resolver_resolv+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ol_RESOLVER_LIB=-lresolv
17233 LIBS="$ol_RESOLVER_LIB $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17242 #ifdef HAVE_SYS_TYPES_H
17243 # include <sys/types.h>
17245 #include <netinet/in.h>
17246 #ifdef HAVE_ARPA_NAMESER_H
17247 # include <arpa/nameser.h>
17249 #ifdef HAVE_RESOLV_H
17250 # include <resolv.h>
17258 char *request = NULL;
17259 unsigned char reply[64*1024];
17260 unsigned char host[64*1024];
17264 /* Bind 8/9 interface */
17265 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17267 /* Bind 4 interface */
17271 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17275 /* Bind 8/9 interface */
17277 #elif defined(HFIXEDSZ)
17278 /* Bind 4 interface w/ HFIXEDSZ */
17281 /* Bind 4 interface w/o HFIXEDSZ */
17282 p += sizeof(HEADER);
17284 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest$ac_exeext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ol_cv_resolver_resolv=yes
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17317 ol_cv_resolver_resolv=no
17319 rm -f conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17325 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17326 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17328 if test $ol_cv_resolver_resolv = yes ; then
17329 ol_cv_lib_resolver=-lresolv
17333 if test $ol_cv_lib_resolver = no ; then
17334 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17335 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17336 if test "${ol_cv_resolver_bind+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 ol_RESOLVER_LIB=-lbind
17342 LIBS="$ol_RESOLVER_LIB $LIBS"
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17351 #ifdef HAVE_SYS_TYPES_H
17352 # include <sys/types.h>
17354 #include <netinet/in.h>
17355 #ifdef HAVE_ARPA_NAMESER_H
17356 # include <arpa/nameser.h>
17358 #ifdef HAVE_RESOLV_H
17359 # include <resolv.h>
17367 char *request = NULL;
17368 unsigned char reply[64*1024];
17369 unsigned char host[64*1024];
17373 /* Bind 8/9 interface */
17374 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17376 /* Bind 4 interface */
17380 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17384 /* Bind 8/9 interface */
17386 #elif defined(HFIXEDSZ)
17387 /* Bind 4 interface w/ HFIXEDSZ */
17390 /* Bind 4 interface w/o HFIXEDSZ */
17391 p += sizeof(HEADER);
17393 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>conftest.er1
17403 grep -v '^ *+' conftest.er1 >conftest.err
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ol_cv_resolver_bind=yes
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ol_cv_resolver_bind=no
17428 rm -f conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17434 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17435 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17437 if test $ol_cv_resolver_bind = yes ; then
17438 ol_cv_lib_resolver=-lbind
17445 if test "$ol_cv_lib_resolver" != no ; then
17447 cat >>confdefs.h <<\_ACEOF
17448 #define HAVE_RES_QUERY 1
17452 if test "$ol_enable_dnssrv" != no ; then
17456 if test "$ol_cv_lib_resolver" != yes ; then
17457 LIBS="$ol_cv_lib_resolver $LIBS"
17461 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17462 if test "$ol_link_dnssrv" = no ; then
17463 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17464 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17465 { (exit 1); exit 1; }; }
17468 ol_enable_dnssrv=no
17472 for ac_func in hstrerror
17474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475 echo "$as_me:$LINENO: checking for $ac_func" >&5
17476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17477 if eval "test \"\${$as_ac_var+set}\" = set"; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17488 #define $ac_func innocuous_$ac_func
17490 /* System header to define __stub macros and hopefully few prototypes,
17491 which can conflict with char $ac_func (); below.
17492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493 <limits.h> exists even on freestanding compilers. */
17496 # include <limits.h>
17498 # include <assert.h>
17503 /* Override any gcc2 internal prototype to avoid an error. */
17508 /* We use char because int might match the return type of a gcc2
17509 builtin and then its argument prototype would still apply. */
17511 /* The GNU C library defines this for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17517 char (*f) () = $ac_func;
17526 return f != $ac_func;
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17533 (eval $ac_link) 2>conftest.er1
17535 grep -v '^ *+' conftest.er1 >conftest.err
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try='test -z "$ac_c_werror_flag"
17541 || test ! -s conftest.err'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try='test -s conftest$ac_exeext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 eval "$as_ac_var=yes"
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 eval "$as_ac_var=no"
17560 rm -f conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17565 if test `eval echo '${'$as_ac_var'}'` = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17583 if eval "test \"\${$as_ac_var+set}\" = set"; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define $ac_func innocuous_$ac_func
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17609 /* Override any gcc2 internal prototype to avoid an error. */
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17623 char (*f) () = $ac_func;
17632 return f != $ac_func;
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 eval "$as_ac_var=yes"
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 eval "$as_ac_var=no"
17666 rm -f conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17671 if test `eval echo '${'$as_ac_var'}'` = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17681 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17682 if test $ol_enable_ipv6 = yes ; then
17683 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17684 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17685 { (exit 1); exit 1; }; }
17687 elif test $ol_enable_ipv6 != no ; then
17688 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17689 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17690 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17701 # include <netinet/in.h>
17702 # ifdef INET6_ADDRSTRLEN
17703 __has_inet6_addrstrlen__;
17707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17708 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17709 ol_cv_inet6_addrstrlen=yes
17711 ol_cv_inet6_addrstrlen=no
17716 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17717 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17720 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17721 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17722 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17733 #include <sys/types.h>
17734 #include <sys/socket.h>
17740 struct sockaddr_storage ss;
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ol_cv_struct_sockaddr_storage=yes
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ol_cv_struct_sockaddr_storage=no
17775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17778 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17780 if test $ol_cv_inet6_addrstrlen = yes &&
17781 test $ol_cv_struct_sockaddr_storage = yes ; then
17783 elif test $ol_enable_ipv6 = yes &&
17784 test $ol_cv_inet6_addrstrlen = no ; then
17785 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17786 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17787 { (exit 1); exit 1; }; }
17788 elif test $ol_enable_ipv6 = yes &&
17789 test $ol_cv_struct_sockaddr_storage = no ; then
17790 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17791 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17792 { (exit 1); exit 1; }; }
17796 if test $ol_enable_local != no ; then
17798 for ac_header in sys/un.h
17800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17802 echo "$as_me:$LINENO: checking for $ac_header" >&5
17803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17810 # Is the header compilable?
17811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 $ac_includes_default
17820 #include <$ac_header>
17822 rm -f conftest.$ac_objext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17824 (eval $ac_compile) 2>conftest.er1
17826 grep -v '^ *+' conftest.er1 >conftest.err
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_header_compiler=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 ac_header_compiler=no
17851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17853 echo "${ECHO_T}$ac_header_compiler" >&6
17855 # Is the header present?
17856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 #include <$ac_header>
17866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } >/dev/null; then
17874 if test -s conftest.err; then
17875 ac_cpp_err=$ac_c_preproc_warn_flag
17876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17883 if test -z "$ac_cpp_err"; then
17884 ac_header_preproc=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_header_preproc=no
17891 rm -f conftest.err conftest.$ac_ext
17892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17893 echo "${ECHO_T}$ac_header_preproc" >&6
17895 # So? What about this header?
17896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17902 ac_header_preproc=yes
17905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17919 ## --------------------------------------------- ##
17920 ## Report this to <http://www.openldap.org/its/> ##
17921 ## --------------------------------------------- ##
17924 sed "s/^/$as_me: WARNING: /" >&2
17927 echo "$as_me:$LINENO: checking for $ac_header" >&5
17928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 eval "$as_ac_Header=\$ac_header_preproc"
17934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17948 if test $ol_enable_local = auto ; then
17949 ol_enable_local=$ac_cv_header_sys_un_h
17950 elif test $ac_cv_header_sys_un_h = no ; then
17951 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17952 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17953 { (exit 1); exit 1; }; }
17961 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17964 for ac_header in krb5.h
17966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17968 echo "$as_me:$LINENO: checking for $ac_header" >&5
17969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17976 # Is the header compilable?
17977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 $ac_includes_default
17986 #include <$ac_header>
17988 rm -f conftest.$ac_objext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990 (eval $ac_compile) 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag"
17998 || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest.$ac_objext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_header_compiler=yes
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 ac_header_compiler=no
18017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18019 echo "${ECHO_T}$ac_header_compiler" >&6
18021 # Is the header present?
18022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 #include <$ac_header>
18032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } >/dev/null; then
18040 if test -s conftest.err; then
18041 ac_cpp_err=$ac_c_preproc_warn_flag
18042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18049 if test -z "$ac_cpp_err"; then
18050 ac_header_preproc=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_header_preproc=no
18057 rm -f conftest.err conftest.$ac_ext
18058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18059 echo "${ECHO_T}$ac_header_preproc" >&6
18061 # So? What about this header?
18062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18068 ac_header_preproc=yes
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18085 ## --------------------------------------------- ##
18086 ## Report this to <http://www.openldap.org/its/> ##
18087 ## --------------------------------------------- ##
18090 sed "s/^/$as_me: WARNING: /" >&2
18093 echo "$as_me:$LINENO: checking for $ac_header" >&5
18094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 eval "$as_ac_Header=\$ac_header_preproc"
18100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18114 if test $ac_cv_header_krb5_h = yes ; then
18116 for ac_header in heim_err.h
18118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18120 echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18128 # Is the header compilable?
18129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 $ac_includes_default
18138 #include <$ac_header>
18140 rm -f conftest.$ac_objext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18142 (eval $ac_compile) 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag"
18150 || test ! -s conftest.err'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest.$ac_objext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_header_compiler=yes
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ac_header_compiler=no
18169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18171 echo "${ECHO_T}$ac_header_compiler" >&6
18173 # Is the header present?
18174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182 #include <$ac_header>
18184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18187 grep -v '^ *+' conftest.er1 >conftest.err
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } >/dev/null; then
18192 if test -s conftest.err; then
18193 ac_cpp_err=$ac_c_preproc_warn_flag
18194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18201 if test -z "$ac_cpp_err"; then
18202 ac_header_preproc=yes
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 ac_header_preproc=no
18209 rm -f conftest.err conftest.$ac_ext
18210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18211 echo "${ECHO_T}$ac_header_preproc" >&6
18213 # So? What about this header?
18214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18220 ac_header_preproc=yes
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18237 ## --------------------------------------------- ##
18238 ## Report this to <http://www.openldap.org/its/> ##
18239 ## --------------------------------------------- ##
18242 sed "s/^/$as_me: WARNING: /" >&2
18245 echo "$as_me:$LINENO: checking for $ac_header" >&5
18246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 eval "$as_ac_Header=\$ac_header_preproc"
18252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18265 if test $ac_cv_header_heim_err_h = yes ; then
18271 if test $krb5_impl = mit; then
18272 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18273 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18274 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lk5crypto $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 ac_cv_lib_k5crypto_main=yes
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 ac_cv_lib_k5crypto_main=no
18324 rm -f conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18326 LIBS=$ac_check_lib_save_LIBS
18328 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18329 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18330 if test $ac_cv_lib_k5crypto_main = yes; then
18331 krb5crypto=k5crypto
18337 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18338 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18339 if test "${ac_cv_lib_krb5_main+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18344 cat >conftest.$ac_ext <<_ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_lib_krb5_main=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_lib_krb5_main=no
18389 rm -f conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18394 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18395 if test $ac_cv_lib_krb5_main = yes; then
18397 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18403 elif test $krb5_impl = heimdal; then
18404 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18405 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18406 if test "${ac_cv_lib_des_main+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_check_lib_save_LIBS=$LIBS
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_cv_lib_des_main=yes
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_cv_lib_des_main=no
18456 rm -f conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18461 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18462 if test $ac_cv_lib_des_main = yes; then
18469 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18470 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18471 if test "${ac_cv_lib_krb5_main+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 ac_check_lib_save_LIBS=$LIBS
18475 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18492 rm -f conftest.$ac_objext conftest$ac_exeext
18493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494 (eval $ac_link) 2>conftest.er1
18496 grep -v '^ *+' conftest.er1 >conftest.err
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try='test -z "$ac_c_werror_flag"
18502 || test ! -s conftest.err'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_lib_krb5_main=yes
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 ac_cv_lib_krb5_main=no
18521 rm -f conftest.err conftest.$ac_objext \
18522 conftest$ac_exeext conftest.$ac_ext
18523 LIBS=$ac_check_lib_save_LIBS
18525 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18526 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18527 if test $ac_cv_lib_krb5_main = yes; then
18529 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE_HEIMDAL_KERBEROS 1
18543 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18544 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18547 if test $have_krb5 = yes ; then
18551 cat >>confdefs.h <<\_ACEOF
18552 #define HAVE_KRB5 1
18556 if test $ol_with_kerberos = k5only ; then
18557 ol_with_kerberos=found
18560 elif test $ol_with_kerberos != auto ; then
18561 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18562 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18563 { (exit 1); exit 1; }; }
18570 if test $ol_link_krb5 = yes &&
18571 { test $ol_with_kerberos = yes ||
18572 test $ol_with_kerberos = auto ||
18573 test $ol_with_kerberos = k425; }; then
18577 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18581 echo "$as_me:$LINENO: checking for $ac_header" >&5
18582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18589 # Is the header compilable?
18590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 $ac_includes_default
18599 #include <$ac_header>
18601 rm -f conftest.$ac_objext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603 (eval $ac_compile) 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_header_compiler=yes
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 ac_header_compiler=no
18630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18632 echo "${ECHO_T}$ac_header_compiler" >&6
18634 # Is the header present?
18635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 #include <$ac_header>
18645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18648 grep -v '^ *+' conftest.er1 >conftest.err
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } >/dev/null; then
18653 if test -s conftest.err; then
18654 ac_cpp_err=$ac_c_preproc_warn_flag
18655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18662 if test -z "$ac_cpp_err"; then
18663 ac_header_preproc=yes
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18668 ac_header_preproc=no
18670 rm -f conftest.err conftest.$ac_ext
18671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18672 echo "${ECHO_T}$ac_header_preproc" >&6
18674 # So? What about this header?
18675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18681 ac_header_preproc=yes
18684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18698 ## --------------------------------------------- ##
18699 ## Report this to <http://www.openldap.org/its/> ##
18700 ## --------------------------------------------- ##
18703 sed "s/^/$as_me: WARNING: /" >&2
18706 echo "$as_me:$LINENO: checking for $ac_header" >&5
18707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 eval "$as_ac_Header=\$ac_header_preproc"
18713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18718 cat >>confdefs.h <<_ACEOF
18719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18727 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18728 if test $krb5_impl = mit; then
18729 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18730 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18731 if test "${ac_cv_lib_krb4_main+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 ac_check_lib_save_LIBS=$LIBS
18735 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>conftest.er1
18756 grep -v '^ *+' conftest.er1 >conftest.err
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag"
18762 || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest$ac_exeext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_cv_lib_krb4_main=yes
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_cv_lib_krb4_main=no
18781 rm -f conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18783 LIBS=$ac_check_lib_save_LIBS
18785 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18786 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18787 if test $ac_cv_lib_krb4_main = yes; then
18789 KRB4_LIBS="-lkrb4 -ldes425"
18795 elif test $krb5_impl = heimdal; then
18796 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18797 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18798 if test "${ac_cv_lib_krb4_main+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18821 (eval $ac_link) 2>conftest.er1
18823 grep -v '^ *+' conftest.er1 >conftest.err
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_c_werror_flag"
18829 || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_lib_krb4_main=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_lib_krb4_main=no
18848 rm -f conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18850 LIBS=$ac_check_lib_save_LIBS
18852 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18853 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18854 if test $ac_cv_lib_krb4_main = yes; then
18864 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18865 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18868 if test $have_k425 = yes ; then
18869 ol_with_kerberos=found
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE_KRB425 1
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_KRB4 1
18883 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18884 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18885 if test "${ol_cv_var_des_debug+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 #include <kerberosIV/krb.h>
18899 #include <kerberosIV/des.h>
18900 extern int des_debug;
18912 rm -f conftest.$ac_objext conftest$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914 (eval $ac_link) 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag"
18922 || test ! -s conftest.err'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest$ac_exeext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ol_cv_var_des_debug=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ol_cv_var_des_debug=no
18941 rm -f conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18946 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18947 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18949 if test $ol_cv_var_des_debug = yes ; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define HAVE_DES_DEBUG 1
18962 if test $ol_link_krb5 = yes ; then
18963 ol_with_kerberos=found
18966 case $ol_with_kerberos in yes | auto | k4 | kth)
18971 for ac_header in krb.h des.h krb-archaeology.h
18973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18975 echo "$as_me:$LINENO: checking for $ac_header" >&5
18976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18983 # Is the header compilable?
18984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18993 #include <$ac_header>
18995 rm -f conftest.$ac_objext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18997 (eval $ac_compile) 2>conftest.er1
18999 grep -v '^ *+' conftest.er1 >conftest.err
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag"
19005 || test ! -s conftest.err'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_header_compiler=yes
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_header_compiler=no
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19026 echo "${ECHO_T}$ac_header_compiler" >&6
19028 # Is the header present?
19029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <$ac_header>
19039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null; then
19047 if test -s conftest.err; then
19048 ac_cpp_err=$ac_c_preproc_warn_flag
19049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19056 if test -z "$ac_cpp_err"; then
19057 ac_header_preproc=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_header_preproc=no
19064 rm -f conftest.err conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19066 echo "${ECHO_T}$ac_header_preproc" >&6
19068 # So? What about this header?
19069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19075 ac_header_preproc=yes
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19092 ## --------------------------------------------- ##
19093 ## Report this to <http://www.openldap.org/its/> ##
19094 ## --------------------------------------------- ##
19097 sed "s/^/$as_me: WARNING: /" >&2
19100 echo "$as_me:$LINENO: checking for $ac_header" >&5
19101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 eval "$as_ac_Header=\$ac_header_preproc"
19107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19121 if test $ac_cv_header_krb_h = yes ; then
19122 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19123 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19124 if test "${ac_cv_lib_krb_main+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lkrb -ldes $LIBS"
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_lib_krb_main=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_lib_krb_main=no
19174 rm -f conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19179 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19180 if test $ac_cv_lib_krb_main = yes; then
19187 if test $have_k4 = yes ; then
19188 ol_with_kerberos=found
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_KRB4 1
19197 KRB4_LIBS="-lkrb -ldes"
19199 if test $ac_cv_header_krb_archaeology_h = yes ; then
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_KTH_KERBEROS 1
19211 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19214 elif test $ol_enable_kbind = yes ; then
19215 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19216 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19217 { (exit 1); exit 1; }; }
19220 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19222 cat >>confdefs.h <<\_ACEOF
19223 #define HAVE_KERBEROS 1
19227 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19228 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19229 echo "$as_me: error: Kerberos detection failed" >&2;}
19230 { (exit 1); exit 1; }; }
19235 if test $ol_with_tls != no ; then
19237 for ac_header in openssl/ssl.h
19239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19241 echo "$as_me:$LINENO: checking for $ac_header" >&5
19242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19249 # Is the header compilable?
19250 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 $ac_includes_default
19259 #include <$ac_header>
19261 rm -f conftest.$ac_objext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19263 (eval $ac_compile) 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_c_werror_flag"
19271 || test ! -s conftest.err'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_header_compiler=yes
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_header_compiler=no
19290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19292 echo "${ECHO_T}$ac_header_compiler" >&6
19294 # Is the header present?
19295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <$ac_header>
19305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } >/dev/null; then
19313 if test -s conftest.err; then
19314 ac_cpp_err=$ac_c_preproc_warn_flag
19315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19322 if test -z "$ac_cpp_err"; then
19323 ac_header_preproc=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_header_preproc=no
19330 rm -f conftest.err conftest.$ac_ext
19331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19332 echo "${ECHO_T}$ac_header_preproc" >&6
19334 # So? What about this header?
19335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19341 ac_header_preproc=yes
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19358 ## --------------------------------------------- ##
19359 ## Report this to <http://www.openldap.org/its/> ##
19360 ## --------------------------------------------- ##
19363 sed "s/^/$as_me: WARNING: /" >&2
19366 echo "$as_me:$LINENO: checking for $ac_header" >&5
19367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 eval "$as_ac_Header=\$ac_header_preproc"
19373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19378 cat >>confdefs.h <<_ACEOF
19379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19387 if test $ac_cv_header_openssl_ssl_h = yes ; then
19388 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19389 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19390 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 ac_check_lib_save_LIBS=$LIBS
19394 LIBS="-lssl -lcrypto $LIBS"
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19402 /* Override any gcc2 internal prototype to avoid an error. */
19406 /* We use char because int might match the return type of a gcc2
19407 builtin and then its argument prototype would still apply. */
19408 char SSL_library_init ();
19412 SSL_library_init ();
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19419 (eval $ac_link) 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_c_werror_flag"
19427 || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_lib_ssl_SSL_library_init=yes
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_cv_lib_ssl_SSL_library_init=no
19446 rm -f conftest.err conftest.$ac_objext \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19450 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19451 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19452 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19460 if test $have_openssl = no ; then
19461 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19462 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19463 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 ac_check_lib_save_LIBS=$LIBS
19467 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19475 /* Override any gcc2 internal prototype to avoid an error. */
19479 /* We use char because int might match the return type of a gcc2
19480 builtin and then its argument prototype would still apply. */
19481 char ssl3_accept ();
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19492 (eval $ac_link) 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest$ac_exeext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_cv_lib_ssl_ssl3_accept=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_lib_ssl_ssl3_accept=no
19519 rm -f conftest.err conftest.$ac_objext \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19523 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19524 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19525 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19534 if test $have_openssl = yes ; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_OPENSSL 1
19544 if test $need_rsaref = yes; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_RSAREF 1
19551 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19553 TLS_LIBS="-lssl -lcrypto"
19556 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19557 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19558 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19569 #ifdef HAVE_OPENSSL_SSL_H
19570 #include <openssl/ssl.h>
19575 /* Require 0.9.7d+ */
19576 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19577 char *__ssl_compat = "0.9.7d";
19581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19582 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19583 ol_cv_ssl_crl_compat=yes
19585 ol_cv_ssl_crl_compat=no
19590 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19591 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19593 if test $ol_cv_ssl_crl_compat = no ; then
19597 cat >>confdefs.h <<\_ACEOF
19598 #define HAVE_OPENSSL_CRL 1
19605 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19606 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19610 if test $ol_link_tls = yes ; then
19612 cat >>confdefs.h <<\_ACEOF
19618 elif test $ol_with_tls = auto ; then
19619 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19620 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19622 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19624 elif test $ol_with_tls != no ; then
19625 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19626 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19627 { (exit 1); exit 1; }; }
19630 if test $ol_enable_lmpasswd != no; then
19631 if test $ol_link_tls != yes ; then
19632 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19633 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19634 { (exit 1); exit 1; }; }
19638 cat >>confdefs.h <<\_ACEOF
19639 #define SLAPD_LMHASH 1
19646 case $ol_with_threads in auto | yes | nt)
19649 echo "$as_me:$LINENO: checking for _beginthread" >&5
19650 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19651 if test "${ac_cv_func__beginthread+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19662 #define _beginthread innocuous__beginthread
19664 /* System header to define __stub macros and hopefully few prototypes,
19665 which can conflict with char _beginthread (); below.
19666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19667 <limits.h> exists even on freestanding compilers. */
19670 # include <limits.h>
19672 # include <assert.h>
19675 #undef _beginthread
19677 /* Override any gcc2 internal prototype to avoid an error. */
19682 /* We use char because int might match the return type of a gcc2
19683 builtin and then its argument prototype would still apply. */
19684 char _beginthread ();
19685 /* The GNU C library defines this for functions which it implements
19686 to always fail with ENOSYS. Some functions are actually named
19687 something starting with __ and the normal name is an alias. */
19688 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19691 char (*f) () = _beginthread;
19700 return f != _beginthread;
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>conftest.er1
19709 grep -v '^ *+' conftest.er1 >conftest.err
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest$ac_exeext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_func__beginthread=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_func__beginthread=no
19734 rm -f conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19737 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19738 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19741 if test $ac_cv_func__beginthread = yes ; then
19743 cat >>confdefs.h <<\_ACEOF
19744 #define HAVE_NT_THREADS 1
19747 ol_cv_nt_threads=yes
19751 if test "$ol_cv_nt_threads" = yes ; then
19753 ol_with_threads=found
19754 ol_with_yielding_select=yes
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_NT_SERVICE_MANAGER 1
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_NT_EVENT_LOG 1
19768 if test $ol_with_threads = nt ; then
19769 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19770 echo "$as_me: error: could not locate NT Threads" >&2;}
19771 { (exit 1); exit 1; }; }
19776 case $ol_with_threads in auto | yes | posix)
19779 for ac_header in pthread.h
19781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19783 echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19791 # Is the header compilable?
19792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_header_compiler=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_header_compiler=no
19832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834 echo "${ECHO_T}$ac_header_compiler" >&6
19836 # Is the header present?
19837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <$ac_header>
19847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null; then
19855 if test -s conftest.err; then
19856 ac_cpp_err=$ac_c_preproc_warn_flag
19857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19864 if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_preproc=no
19872 rm -f conftest.err conftest.$ac_ext
19873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874 echo "${ECHO_T}$ac_header_preproc" >&6
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19883 ac_header_preproc=yes
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19900 ## --------------------------------------------- ##
19901 ## Report this to <http://www.openldap.org/its/> ##
19902 ## --------------------------------------------- ##
19905 sed "s/^/$as_me: WARNING: /" >&2
19908 echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 eval "$as_ac_Header=\$ac_header_preproc"
19915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19929 if test $ac_cv_header_pthread_h = yes ; then
19930 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19931 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19932 if test "${ol_cv_pthread_version+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19943 # include <pthread.h>
19949 int i = PTHREAD_CREATE_JOINABLE;
19955 rm -f conftest.$ac_objext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19959 grep -v '^ *+' conftest.er1 >conftest.err
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 #include <pthread.h>
19987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19988 $EGREP "pthread_detach" >/dev/null 2>&1; then
19989 ol_cv_pthread_version=10
19991 ol_cv_pthread_version=8
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20007 # include <pthread.h>
20008 # ifdef PTHREAD_CREATE_UNDETACHED
20013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20014 $EGREP "draft7" >/dev/null 2>&1; then
20015 ol_cv_pthread_version=7
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <pthread.h>
20027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20028 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20029 ol_cv_pthread_version=6
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 # include <pthread.h>
20040 #ifdef PTHREAD_MUTEX_INITIALIZER
20045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20046 $EGREP "draft5" >/dev/null 2>&1; then
20047 ol_cv_pthread_version=5
20049 ol_cv_pthread_version=4
20060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20064 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20067 if test $ol_cv_pthread_version != 0 ; then
20069 cat >>confdefs.h <<_ACEOF
20070 #define HAVE_PTHREADS $ol_cv_pthread_version
20074 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20075 echo "$as_me: error: unknown pthread version" >&2;}
20076 { (exit 1); exit 1; }; }
20079 # consider threads found
20080 ol_with_threads=found
20083 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20084 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20085 if test "${ol_cv_header_linux_threads+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <pthread.h>
20096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20097 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20098 ol_cv_header_linux_threads=yes
20100 ol_cv_header_linux_threads=no
20106 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20107 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20108 if test $ol_cv_header_linux_threads = yes; then
20110 cat >>confdefs.h <<\_ACEOF
20111 #define HAVE_LINUX_THREADS 1
20117 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20118 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20119 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 #include <pthread.h>
20129 #ifdef _POSIX_THREAD_IS_GNU_PTH
20134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20135 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20136 ol_cv_header_gnu_pth_pthread_h=yes
20138 ol_cv_header_gnu_pth_pthread_h=no
20144 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20145 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20148 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20150 for ac_header in sched.h
20152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20154 echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20162 # Is the header compilable?
20163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20165 cat >conftest.$ac_ext <<_ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20171 $ac_includes_default
20172 #include <$ac_header>
20174 rm -f conftest.$ac_objext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176 (eval $ac_compile) 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -z "$ac_c_werror_flag"
20184 || test ! -s conftest.err'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; } &&
20190 { ac_try='test -s conftest.$ac_objext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_header_compiler=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_header_compiler=no
20203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20205 echo "${ECHO_T}$ac_header_compiler" >&6
20207 # Is the header present?
20208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <$ac_header>
20218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } >/dev/null; then
20226 if test -s conftest.err; then
20227 ac_cpp_err=$ac_c_preproc_warn_flag
20228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20235 if test -z "$ac_cpp_err"; then
20236 ac_header_preproc=yes
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_header_preproc=no
20243 rm -f conftest.err conftest.$ac_ext
20244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20245 echo "${ECHO_T}$ac_header_preproc" >&6
20247 # So? What about this header?
20248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20254 ac_header_preproc=yes
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20271 ## --------------------------------------------- ##
20272 ## Report this to <http://www.openldap.org/its/> ##
20273 ## --------------------------------------------- ##
20276 sed "s/^/$as_me: WARNING: /" >&2
20279 echo "$as_me:$LINENO: checking for $ac_header" >&5
20280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 eval "$as_ac_Header=\$ac_header_preproc"
20286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20302 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20303 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20304 if test "${ol_cv_pthread_create+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 if test "$cross_compiling" = yes; then
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20316 /* pthread test headers */
20317 #include <pthread.h>
20318 #if HAVE_PTHREADS < 7
20322 #define NULL (void*)0
20325 static void *task(p)
20328 return (void *) (p == NULL);
20335 /* pthread test function */
20336 #ifndef PTHREAD_CREATE_DETACHED
20337 #define PTHREAD_CREATE_DETACHED 1
20341 int detach = PTHREAD_CREATE_DETACHED;
20343 #if HAVE_PTHREADS > 4
20344 /* Final pthreads */
20345 pthread_attr_t attr;
20347 status = pthread_attr_init(&attr);
20348 if( status ) return status;
20350 #if HAVE_PTHREADS < 7
20351 status = pthread_attr_setdetachstate(&attr, &detach);
20352 if( status < 0 ) status = errno;
20354 status = pthread_attr_setdetachstate(&attr, detach);
20356 if( status ) return status;
20357 status = pthread_create( &t, &attr, task, NULL );
20358 #if HAVE_PTHREADS < 7
20359 if( status < 0 ) status = errno;
20361 if( status ) return status;
20363 /* Draft 4 pthreads */
20364 status = pthread_create( &t, pthread_attr_default, task, NULL );
20365 if( status ) return errno;
20367 /* give thread a chance to complete */
20368 /* it should remain joinable and hence detachable */
20371 status = pthread_detach( &t );
20372 if( status ) return errno;
20375 #ifdef HAVE_LINUX_THREADS
20376 pthread_kill_other_threads_np();
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20387 (eval $ac_link) 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag"
20395 || test ! -s conftest.err'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest$ac_exeext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 ol_cv_pthread_create=yes
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ol_cv_pthread_create=no
20414 rm -f conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20424 /* pthread test headers */
20425 #include <pthread.h>
20426 #if HAVE_PTHREADS < 7
20430 #define NULL (void*)0
20433 static void *task(p)
20436 return (void *) (p == NULL);
20440 int main(argc, argv)
20445 /* pthread test function */
20446 #ifndef PTHREAD_CREATE_DETACHED
20447 #define PTHREAD_CREATE_DETACHED 1
20451 int detach = PTHREAD_CREATE_DETACHED;
20453 #if HAVE_PTHREADS > 4
20454 /* Final pthreads */
20455 pthread_attr_t attr;
20457 status = pthread_attr_init(&attr);
20458 if( status ) return status;
20460 #if HAVE_PTHREADS < 7
20461 status = pthread_attr_setdetachstate(&attr, &detach);
20462 if( status < 0 ) status = errno;
20464 status = pthread_attr_setdetachstate(&attr, detach);
20466 if( status ) return status;
20467 status = pthread_create( &t, &attr, task, NULL );
20468 #if HAVE_PTHREADS < 7
20469 if( status < 0 ) status = errno;
20471 if( status ) return status;
20473 /* Draft 4 pthreads */
20474 status = pthread_create( &t, pthread_attr_default, task, NULL );
20475 if( status ) return errno;
20477 /* give thread a chance to complete */
20478 /* it should remain joinable and hence detachable */
20481 status = pthread_detach( &t );
20482 if( status ) return errno;
20485 #ifdef HAVE_LINUX_THREADS
20486 pthread_kill_other_threads_np();
20494 rm -f conftest$ac_exeext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20496 (eval $ac_link) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ol_cv_pthread_create=yes
20507 echo "$as_me: program exited with status $ac_status" >&5
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ( exit $ac_status )
20512 ol_cv_pthread_create=no
20514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20517 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20518 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20520 if test $ol_cv_pthread_create != no ; then
20521 ol_link_threads=posix
20522 ol_link_pthreads=""
20525 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20526 if test "$ol_link_threads" = no ; then
20528 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20529 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20530 if test "${ol_cv_pthread_kthread+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 LIBS="-kthread $LIBS"
20538 if test "$cross_compiling" = yes; then
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20546 /* pthread test headers */
20547 #include <pthread.h>
20548 #if HAVE_PTHREADS < 7
20552 #define NULL (void*)0
20555 static void *task(p)
20558 return (void *) (p == NULL);
20565 /* pthread test function */
20566 #ifndef PTHREAD_CREATE_DETACHED
20567 #define PTHREAD_CREATE_DETACHED 1
20571 int detach = PTHREAD_CREATE_DETACHED;
20573 #if HAVE_PTHREADS > 4
20574 /* Final pthreads */
20575 pthread_attr_t attr;
20577 status = pthread_attr_init(&attr);
20578 if( status ) return status;
20580 #if HAVE_PTHREADS < 7
20581 status = pthread_attr_setdetachstate(&attr, &detach);
20582 if( status < 0 ) status = errno;
20584 status = pthread_attr_setdetachstate(&attr, detach);
20586 if( status ) return status;
20587 status = pthread_create( &t, &attr, task, NULL );
20588 #if HAVE_PTHREADS < 7
20589 if( status < 0 ) status = errno;
20591 if( status ) return status;
20593 /* Draft 4 pthreads */
20594 status = pthread_create( &t, pthread_attr_default, task, NULL );
20595 if( status ) return errno;
20597 /* give thread a chance to complete */
20598 /* it should remain joinable and hence detachable */
20601 status = pthread_detach( &t );
20602 if( status ) return errno;
20605 #ifdef HAVE_LINUX_THREADS
20606 pthread_kill_other_threads_np();
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20617 (eval $ac_link) 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest$ac_exeext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 ol_cv_pthread_kthread=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ol_cv_pthread_kthread=no
20644 rm -f conftest.err conftest.$ac_objext \
20645 conftest$ac_exeext conftest.$ac_ext
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20654 /* pthread test headers */
20655 #include <pthread.h>
20656 #if HAVE_PTHREADS < 7
20660 #define NULL (void*)0
20663 static void *task(p)
20666 return (void *) (p == NULL);
20670 int main(argc, argv)
20675 /* pthread test function */
20676 #ifndef PTHREAD_CREATE_DETACHED
20677 #define PTHREAD_CREATE_DETACHED 1
20681 int detach = PTHREAD_CREATE_DETACHED;
20683 #if HAVE_PTHREADS > 4
20684 /* Final pthreads */
20685 pthread_attr_t attr;
20687 status = pthread_attr_init(&attr);
20688 if( status ) return status;
20690 #if HAVE_PTHREADS < 7
20691 status = pthread_attr_setdetachstate(&attr, &detach);
20692 if( status < 0 ) status = errno;
20694 status = pthread_attr_setdetachstate(&attr, detach);
20696 if( status ) return status;
20697 status = pthread_create( &t, &attr, task, NULL );
20698 #if HAVE_PTHREADS < 7
20699 if( status < 0 ) status = errno;
20701 if( status ) return status;
20703 /* Draft 4 pthreads */
20704 status = pthread_create( &t, pthread_attr_default, task, NULL );
20705 if( status ) return errno;
20707 /* give thread a chance to complete */
20708 /* it should remain joinable and hence detachable */
20711 status = pthread_detach( &t );
20712 if( status ) return errno;
20715 #ifdef HAVE_LINUX_THREADS
20716 pthread_kill_other_threads_np();
20724 rm -f conftest$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726 (eval $ac_link) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 ol_cv_pthread_kthread=yes
20737 echo "$as_me: program exited with status $ac_status" >&5
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ( exit $ac_status )
20742 ol_cv_pthread_kthread=no
20744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20751 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20752 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20754 if test $ol_cv_pthread_kthread = yes ; then
20755 ol_link_pthreads="-kthread"
20756 ol_link_threads=posix
20760 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20761 if test "$ol_link_threads" = no ; then
20763 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20764 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20765 if test "${ol_cv_pthread_pthread+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 LIBS="-pthread $LIBS"
20773 if test "$cross_compiling" = yes; then
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20781 /* pthread test headers */
20782 #include <pthread.h>
20783 #if HAVE_PTHREADS < 7
20787 #define NULL (void*)0
20790 static void *task(p)
20793 return (void *) (p == NULL);
20800 /* pthread test function */
20801 #ifndef PTHREAD_CREATE_DETACHED
20802 #define PTHREAD_CREATE_DETACHED 1
20806 int detach = PTHREAD_CREATE_DETACHED;
20808 #if HAVE_PTHREADS > 4
20809 /* Final pthreads */
20810 pthread_attr_t attr;
20812 status = pthread_attr_init(&attr);
20813 if( status ) return status;
20815 #if HAVE_PTHREADS < 7
20816 status = pthread_attr_setdetachstate(&attr, &detach);
20817 if( status < 0 ) status = errno;
20819 status = pthread_attr_setdetachstate(&attr, detach);
20821 if( status ) return status;
20822 status = pthread_create( &t, &attr, task, NULL );
20823 #if HAVE_PTHREADS < 7
20824 if( status < 0 ) status = errno;
20826 if( status ) return status;
20828 /* Draft 4 pthreads */
20829 status = pthread_create( &t, pthread_attr_default, task, NULL );
20830 if( status ) return errno;
20832 /* give thread a chance to complete */
20833 /* it should remain joinable and hence detachable */
20836 status = pthread_detach( &t );
20837 if( status ) return errno;
20840 #ifdef HAVE_LINUX_THREADS
20841 pthread_kill_other_threads_np();
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20852 (eval $ac_link) 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_c_werror_flag"
20860 || test ! -s conftest.err'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest$ac_exeext'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 ol_cv_pthread_pthread=yes
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20877 ol_cv_pthread_pthread=no
20879 rm -f conftest.err conftest.$ac_objext \
20880 conftest$ac_exeext conftest.$ac_ext
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20889 /* pthread test headers */
20890 #include <pthread.h>
20891 #if HAVE_PTHREADS < 7
20895 #define NULL (void*)0
20898 static void *task(p)
20901 return (void *) (p == NULL);
20905 int main(argc, argv)
20910 /* pthread test function */
20911 #ifndef PTHREAD_CREATE_DETACHED
20912 #define PTHREAD_CREATE_DETACHED 1
20916 int detach = PTHREAD_CREATE_DETACHED;
20918 #if HAVE_PTHREADS > 4
20919 /* Final pthreads */
20920 pthread_attr_t attr;
20922 status = pthread_attr_init(&attr);
20923 if( status ) return status;
20925 #if HAVE_PTHREADS < 7
20926 status = pthread_attr_setdetachstate(&attr, &detach);
20927 if( status < 0 ) status = errno;
20929 status = pthread_attr_setdetachstate(&attr, detach);
20931 if( status ) return status;
20932 status = pthread_create( &t, &attr, task, NULL );
20933 #if HAVE_PTHREADS < 7
20934 if( status < 0 ) status = errno;
20936 if( status ) return status;
20938 /* Draft 4 pthreads */
20939 status = pthread_create( &t, pthread_attr_default, task, NULL );
20940 if( status ) return errno;
20942 /* give thread a chance to complete */
20943 /* it should remain joinable and hence detachable */
20946 status = pthread_detach( &t );
20947 if( status ) return errno;
20950 #ifdef HAVE_LINUX_THREADS
20951 pthread_kill_other_threads_np();
20959 rm -f conftest$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ol_cv_pthread_pthread=yes
20972 echo "$as_me: program exited with status $ac_status" >&5
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ( exit $ac_status )
20977 ol_cv_pthread_pthread=no
20979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20986 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20987 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20989 if test $ol_cv_pthread_pthread = yes ; then
20990 ol_link_pthreads="-pthread"
20991 ol_link_threads=posix
20995 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20996 if test "$ol_link_threads" = no ; then
20998 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20999 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21000 if test "${ol_cv_pthread_pthreads+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 LIBS="-pthreads $LIBS"
21008 if test "$cross_compiling" = yes; then
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21016 /* pthread test headers */
21017 #include <pthread.h>
21018 #if HAVE_PTHREADS < 7
21022 #define NULL (void*)0
21025 static void *task(p)
21028 return (void *) (p == NULL);
21035 /* pthread test function */
21036 #ifndef PTHREAD_CREATE_DETACHED
21037 #define PTHREAD_CREATE_DETACHED 1
21041 int detach = PTHREAD_CREATE_DETACHED;
21043 #if HAVE_PTHREADS > 4
21044 /* Final pthreads */
21045 pthread_attr_t attr;
21047 status = pthread_attr_init(&attr);
21048 if( status ) return status;
21050 #if HAVE_PTHREADS < 7
21051 status = pthread_attr_setdetachstate(&attr, &detach);
21052 if( status < 0 ) status = errno;
21054 status = pthread_attr_setdetachstate(&attr, detach);
21056 if( status ) return status;
21057 status = pthread_create( &t, &attr, task, NULL );
21058 #if HAVE_PTHREADS < 7
21059 if( status < 0 ) status = errno;
21061 if( status ) return status;
21063 /* Draft 4 pthreads */
21064 status = pthread_create( &t, pthread_attr_default, task, NULL );
21065 if( status ) return errno;
21067 /* give thread a chance to complete */
21068 /* it should remain joinable and hence detachable */
21071 status = pthread_detach( &t );
21072 if( status ) return errno;
21075 #ifdef HAVE_LINUX_THREADS
21076 pthread_kill_other_threads_np();
21085 rm -f conftest.$ac_objext conftest$ac_exeext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087 (eval $ac_link) 2>conftest.er1
21089 grep -v '^ *+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ol_cv_pthread_pthreads=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ol_cv_pthread_pthreads=no
21114 rm -f conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21124 /* pthread test headers */
21125 #include <pthread.h>
21126 #if HAVE_PTHREADS < 7
21130 #define NULL (void*)0
21133 static void *task(p)
21136 return (void *) (p == NULL);
21140 int main(argc, argv)
21145 /* pthread test function */
21146 #ifndef PTHREAD_CREATE_DETACHED
21147 #define PTHREAD_CREATE_DETACHED 1
21151 int detach = PTHREAD_CREATE_DETACHED;
21153 #if HAVE_PTHREADS > 4
21154 /* Final pthreads */
21155 pthread_attr_t attr;
21157 status = pthread_attr_init(&attr);
21158 if( status ) return status;
21160 #if HAVE_PTHREADS < 7
21161 status = pthread_attr_setdetachstate(&attr, &detach);
21162 if( status < 0 ) status = errno;
21164 status = pthread_attr_setdetachstate(&attr, detach);
21166 if( status ) return status;
21167 status = pthread_create( &t, &attr, task, NULL );
21168 #if HAVE_PTHREADS < 7
21169 if( status < 0 ) status = errno;
21171 if( status ) return status;
21173 /* Draft 4 pthreads */
21174 status = pthread_create( &t, pthread_attr_default, task, NULL );
21175 if( status ) return errno;
21177 /* give thread a chance to complete */
21178 /* it should remain joinable and hence detachable */
21181 status = pthread_detach( &t );
21182 if( status ) return errno;
21185 #ifdef HAVE_LINUX_THREADS
21186 pthread_kill_other_threads_np();
21194 rm -f conftest$ac_exeext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21196 (eval $ac_link) 2>&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 ol_cv_pthread_pthreads=yes
21207 echo "$as_me: program exited with status $ac_status" >&5
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ( exit $ac_status )
21212 ol_cv_pthread_pthreads=no
21214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21221 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21222 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21224 if test $ol_cv_pthread_pthreads = yes ; then
21225 ol_link_pthreads="-pthreads"
21226 ol_link_threads=posix
21230 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21231 if test "$ol_link_threads" = no ; then
21233 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21234 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21235 if test "${ol_cv_pthread_mthreads+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 LIBS="-mthreads $LIBS"
21243 if test "$cross_compiling" = yes; then
21244 cat >conftest.$ac_ext <<_ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21251 /* pthread test headers */
21252 #include <pthread.h>
21253 #if HAVE_PTHREADS < 7
21257 #define NULL (void*)0
21260 static void *task(p)
21263 return (void *) (p == NULL);
21270 /* pthread test function */
21271 #ifndef PTHREAD_CREATE_DETACHED
21272 #define PTHREAD_CREATE_DETACHED 1
21276 int detach = PTHREAD_CREATE_DETACHED;
21278 #if HAVE_PTHREADS > 4
21279 /* Final pthreads */
21280 pthread_attr_t attr;
21282 status = pthread_attr_init(&attr);
21283 if( status ) return status;
21285 #if HAVE_PTHREADS < 7
21286 status = pthread_attr_setdetachstate(&attr, &detach);
21287 if( status < 0 ) status = errno;
21289 status = pthread_attr_setdetachstate(&attr, detach);
21291 if( status ) return status;
21292 status = pthread_create( &t, &attr, task, NULL );
21293 #if HAVE_PTHREADS < 7
21294 if( status < 0 ) status = errno;
21296 if( status ) return status;
21298 /* Draft 4 pthreads */
21299 status = pthread_create( &t, pthread_attr_default, task, NULL );
21300 if( status ) return errno;
21302 /* give thread a chance to complete */
21303 /* it should remain joinable and hence detachable */
21306 status = pthread_detach( &t );
21307 if( status ) return errno;
21310 #ifdef HAVE_LINUX_THREADS
21311 pthread_kill_other_threads_np();
21320 rm -f conftest.$ac_objext conftest$ac_exeext
21321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21322 (eval $ac_link) 2>conftest.er1
21324 grep -v '^ *+' conftest.er1 >conftest.err
21326 cat conftest.err >&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } &&
21329 { ac_try='test -z "$ac_c_werror_flag"
21330 || test ! -s conftest.err'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest$ac_exeext'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21342 ol_cv_pthread_mthreads=yes
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ol_cv_pthread_mthreads=no
21349 rm -f conftest.err conftest.$ac_objext \
21350 conftest$ac_exeext conftest.$ac_ext
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 /* pthread test headers */
21360 #include <pthread.h>
21361 #if HAVE_PTHREADS < 7
21365 #define NULL (void*)0
21368 static void *task(p)
21371 return (void *) (p == NULL);
21375 int main(argc, argv)
21380 /* pthread test function */
21381 #ifndef PTHREAD_CREATE_DETACHED
21382 #define PTHREAD_CREATE_DETACHED 1
21386 int detach = PTHREAD_CREATE_DETACHED;
21388 #if HAVE_PTHREADS > 4
21389 /* Final pthreads */
21390 pthread_attr_t attr;
21392 status = pthread_attr_init(&attr);
21393 if( status ) return status;
21395 #if HAVE_PTHREADS < 7
21396 status = pthread_attr_setdetachstate(&attr, &detach);
21397 if( status < 0 ) status = errno;
21399 status = pthread_attr_setdetachstate(&attr, detach);
21401 if( status ) return status;
21402 status = pthread_create( &t, &attr, task, NULL );
21403 #if HAVE_PTHREADS < 7
21404 if( status < 0 ) status = errno;
21406 if( status ) return status;
21408 /* Draft 4 pthreads */
21409 status = pthread_create( &t, pthread_attr_default, task, NULL );
21410 if( status ) return errno;
21412 /* give thread a chance to complete */
21413 /* it should remain joinable and hence detachable */
21416 status = pthread_detach( &t );
21417 if( status ) return errno;
21420 #ifdef HAVE_LINUX_THREADS
21421 pthread_kill_other_threads_np();
21429 rm -f conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ol_cv_pthread_mthreads=yes
21442 echo "$as_me: program exited with status $ac_status" >&5
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ( exit $ac_status )
21447 ol_cv_pthread_mthreads=no
21449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21457 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21459 if test $ol_cv_pthread_mthreads = yes ; then
21460 ol_link_pthreads="-mthreads"
21461 ol_link_threads=posix
21465 # Pthread try link: -thread (ol_cv_pthread_thread)
21466 if test "$ol_link_threads" = no ; then
21468 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21469 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21470 if test "${ol_cv_pthread_thread+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 LIBS="-thread $LIBS"
21478 if test "$cross_compiling" = yes; then
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 /* pthread test headers */
21487 #include <pthread.h>
21488 #if HAVE_PTHREADS < 7
21492 #define NULL (void*)0
21495 static void *task(p)
21498 return (void *) (p == NULL);
21505 /* pthread test function */
21506 #ifndef PTHREAD_CREATE_DETACHED
21507 #define PTHREAD_CREATE_DETACHED 1
21511 int detach = PTHREAD_CREATE_DETACHED;
21513 #if HAVE_PTHREADS > 4
21514 /* Final pthreads */
21515 pthread_attr_t attr;
21517 status = pthread_attr_init(&attr);
21518 if( status ) return status;
21520 #if HAVE_PTHREADS < 7
21521 status = pthread_attr_setdetachstate(&attr, &detach);
21522 if( status < 0 ) status = errno;
21524 status = pthread_attr_setdetachstate(&attr, detach);
21526 if( status ) return status;
21527 status = pthread_create( &t, &attr, task, NULL );
21528 #if HAVE_PTHREADS < 7
21529 if( status < 0 ) status = errno;
21531 if( status ) return status;
21533 /* Draft 4 pthreads */
21534 status = pthread_create( &t, pthread_attr_default, task, NULL );
21535 if( status ) return errno;
21537 /* give thread a chance to complete */
21538 /* it should remain joinable and hence detachable */
21541 status = pthread_detach( &t );
21542 if( status ) return errno;
21545 #ifdef HAVE_LINUX_THREADS
21546 pthread_kill_other_threads_np();
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21557 (eval $ac_link) 2>conftest.er1
21559 grep -v '^ *+' conftest.er1 >conftest.err
21561 cat conftest.err >&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } &&
21564 { ac_try='test -z "$ac_c_werror_flag"
21565 || test ! -s conftest.err'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest$ac_exeext'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ol_cv_pthread_thread=yes
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ol_cv_pthread_thread=no
21584 rm -f conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 /* pthread test headers */
21595 #include <pthread.h>
21596 #if HAVE_PTHREADS < 7
21600 #define NULL (void*)0
21603 static void *task(p)
21606 return (void *) (p == NULL);
21610 int main(argc, argv)
21615 /* pthread test function */
21616 #ifndef PTHREAD_CREATE_DETACHED
21617 #define PTHREAD_CREATE_DETACHED 1
21621 int detach = PTHREAD_CREATE_DETACHED;
21623 #if HAVE_PTHREADS > 4
21624 /* Final pthreads */
21625 pthread_attr_t attr;
21627 status = pthread_attr_init(&attr);
21628 if( status ) return status;
21630 #if HAVE_PTHREADS < 7
21631 status = pthread_attr_setdetachstate(&attr, &detach);
21632 if( status < 0 ) status = errno;
21634 status = pthread_attr_setdetachstate(&attr, detach);
21636 if( status ) return status;
21637 status = pthread_create( &t, &attr, task, NULL );
21638 #if HAVE_PTHREADS < 7
21639 if( status < 0 ) status = errno;
21641 if( status ) return status;
21643 /* Draft 4 pthreads */
21644 status = pthread_create( &t, pthread_attr_default, task, NULL );
21645 if( status ) return errno;
21647 /* give thread a chance to complete */
21648 /* it should remain joinable and hence detachable */
21651 status = pthread_detach( &t );
21652 if( status ) return errno;
21655 #ifdef HAVE_LINUX_THREADS
21656 pthread_kill_other_threads_np();
21664 rm -f conftest$ac_exeext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21666 (eval $ac_link) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 ol_cv_pthread_thread=yes
21677 echo "$as_me: program exited with status $ac_status" >&5
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ( exit $ac_status )
21682 ol_cv_pthread_thread=no
21684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21692 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21694 if test $ol_cv_pthread_thread = yes ; then
21695 ol_link_pthreads="-thread"
21696 ol_link_threads=posix
21701 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21702 if test "$ol_link_threads" = no ; then
21703 # try -lpthread -lmach -lexc -lc_r
21704 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21705 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21706 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21714 if test "$cross_compiling" = yes; then
21715 cat >conftest.$ac_ext <<_ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21722 /* pthread test headers */
21723 #include <pthread.h>
21724 #if HAVE_PTHREADS < 7
21728 #define NULL (void*)0
21731 static void *task(p)
21734 return (void *) (p == NULL);
21741 /* pthread test function */
21742 #ifndef PTHREAD_CREATE_DETACHED
21743 #define PTHREAD_CREATE_DETACHED 1
21747 int detach = PTHREAD_CREATE_DETACHED;
21749 #if HAVE_PTHREADS > 4
21750 /* Final pthreads */
21751 pthread_attr_t attr;
21753 status = pthread_attr_init(&attr);
21754 if( status ) return status;
21756 #if HAVE_PTHREADS < 7
21757 status = pthread_attr_setdetachstate(&attr, &detach);
21758 if( status < 0 ) status = errno;
21760 status = pthread_attr_setdetachstate(&attr, detach);
21762 if( status ) return status;
21763 status = pthread_create( &t, &attr, task, NULL );
21764 #if HAVE_PTHREADS < 7
21765 if( status < 0 ) status = errno;
21767 if( status ) return status;
21769 /* Draft 4 pthreads */
21770 status = pthread_create( &t, pthread_attr_default, task, NULL );
21771 if( status ) return errno;
21773 /* give thread a chance to complete */
21774 /* it should remain joinable and hence detachable */
21777 status = pthread_detach( &t );
21778 if( status ) return errno;
21781 #ifdef HAVE_LINUX_THREADS
21782 pthread_kill_other_threads_np();
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -z "$ac_c_werror_flag"
21801 || test ! -s conftest.err'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21820 rm -f conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21830 /* pthread test headers */
21831 #include <pthread.h>
21832 #if HAVE_PTHREADS < 7
21836 #define NULL (void*)0
21839 static void *task(p)
21842 return (void *) (p == NULL);
21846 int main(argc, argv)
21851 /* pthread test function */
21852 #ifndef PTHREAD_CREATE_DETACHED
21853 #define PTHREAD_CREATE_DETACHED 1
21857 int detach = PTHREAD_CREATE_DETACHED;
21859 #if HAVE_PTHREADS > 4
21860 /* Final pthreads */
21861 pthread_attr_t attr;
21863 status = pthread_attr_init(&attr);
21864 if( status ) return status;
21866 #if HAVE_PTHREADS < 7
21867 status = pthread_attr_setdetachstate(&attr, &detach);
21868 if( status < 0 ) status = errno;
21870 status = pthread_attr_setdetachstate(&attr, detach);
21872 if( status ) return status;
21873 status = pthread_create( &t, &attr, task, NULL );
21874 #if HAVE_PTHREADS < 7
21875 if( status < 0 ) status = errno;
21877 if( status ) return status;
21879 /* Draft 4 pthreads */
21880 status = pthread_create( &t, pthread_attr_default, task, NULL );
21881 if( status ) return errno;
21883 /* give thread a chance to complete */
21884 /* it should remain joinable and hence detachable */
21887 status = pthread_detach( &t );
21888 if( status ) return errno;
21891 #ifdef HAVE_LINUX_THREADS
21892 pthread_kill_other_threads_np();
21900 rm -f conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902 (eval $ac_link) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ( exit $ac_status )
21918 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21928 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21930 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21931 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21932 ol_link_threads=posix
21936 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21937 if test "$ol_link_threads" = no ; then
21938 # try -lpthread -lmach -lexc
21939 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21940 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21941 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 LIBS="-lpthread -lmach -lexc $LIBS"
21949 if test "$cross_compiling" = yes; then
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21957 /* pthread test headers */
21958 #include <pthread.h>
21959 #if HAVE_PTHREADS < 7
21963 #define NULL (void*)0
21966 static void *task(p)
21969 return (void *) (p == NULL);
21976 /* pthread test function */
21977 #ifndef PTHREAD_CREATE_DETACHED
21978 #define PTHREAD_CREATE_DETACHED 1
21982 int detach = PTHREAD_CREATE_DETACHED;
21984 #if HAVE_PTHREADS > 4
21985 /* Final pthreads */
21986 pthread_attr_t attr;
21988 status = pthread_attr_init(&attr);
21989 if( status ) return status;
21991 #if HAVE_PTHREADS < 7
21992 status = pthread_attr_setdetachstate(&attr, &detach);
21993 if( status < 0 ) status = errno;
21995 status = pthread_attr_setdetachstate(&attr, detach);
21997 if( status ) return status;
21998 status = pthread_create( &t, &attr, task, NULL );
21999 #if HAVE_PTHREADS < 7
22000 if( status < 0 ) status = errno;
22002 if( status ) return status;
22004 /* Draft 4 pthreads */
22005 status = pthread_create( &t, pthread_attr_default, task, NULL );
22006 if( status ) return errno;
22008 /* give thread a chance to complete */
22009 /* it should remain joinable and hence detachable */
22012 status = pthread_detach( &t );
22013 if( status ) return errno;
22016 #ifdef HAVE_LINUX_THREADS
22017 pthread_kill_other_threads_np();
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028 (eval $ac_link) 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest$ac_exeext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 ol_cv_pthread_lpthread_lmach_lexc=yes
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 ol_cv_pthread_lpthread_lmach_lexc=no
22055 rm -f conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 /* pthread test headers */
22066 #include <pthread.h>
22067 #if HAVE_PTHREADS < 7
22071 #define NULL (void*)0
22074 static void *task(p)
22077 return (void *) (p == NULL);
22081 int main(argc, argv)
22086 /* pthread test function */
22087 #ifndef PTHREAD_CREATE_DETACHED
22088 #define PTHREAD_CREATE_DETACHED 1
22092 int detach = PTHREAD_CREATE_DETACHED;
22094 #if HAVE_PTHREADS > 4
22095 /* Final pthreads */
22096 pthread_attr_t attr;
22098 status = pthread_attr_init(&attr);
22099 if( status ) return status;
22101 #if HAVE_PTHREADS < 7
22102 status = pthread_attr_setdetachstate(&attr, &detach);
22103 if( status < 0 ) status = errno;
22105 status = pthread_attr_setdetachstate(&attr, detach);
22107 if( status ) return status;
22108 status = pthread_create( &t, &attr, task, NULL );
22109 #if HAVE_PTHREADS < 7
22110 if( status < 0 ) status = errno;
22112 if( status ) return status;
22114 /* Draft 4 pthreads */
22115 status = pthread_create( &t, pthread_attr_default, task, NULL );
22116 if( status ) return errno;
22118 /* give thread a chance to complete */
22119 /* it should remain joinable and hence detachable */
22122 status = pthread_detach( &t );
22123 if( status ) return errno;
22126 #ifdef HAVE_LINUX_THREADS
22127 pthread_kill_other_threads_np();
22135 rm -f conftest$ac_exeext
22136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22137 (eval $ac_link) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 ol_cv_pthread_lpthread_lmach_lexc=yes
22148 echo "$as_me: program exited with status $ac_status" >&5
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ( exit $ac_status )
22153 ol_cv_pthread_lpthread_lmach_lexc=no
22155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22162 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22163 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22165 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22166 ol_link_pthreads="-lpthread -lmach -lexc"
22167 ol_link_threads=posix
22172 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22173 if test "$ol_link_threads" = no ; then
22174 # try -lpthread -Wl,-woff,85
22175 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22176 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22177 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22185 if test "$cross_compiling" = yes; then
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22193 /* pthread test headers */
22194 #include <pthread.h>
22195 #if HAVE_PTHREADS < 7
22199 #define NULL (void*)0
22202 static void *task(p)
22205 return (void *) (p == NULL);
22212 /* pthread test function */
22213 #ifndef PTHREAD_CREATE_DETACHED
22214 #define PTHREAD_CREATE_DETACHED 1
22218 int detach = PTHREAD_CREATE_DETACHED;
22220 #if HAVE_PTHREADS > 4
22221 /* Final pthreads */
22222 pthread_attr_t attr;
22224 status = pthread_attr_init(&attr);
22225 if( status ) return status;
22227 #if HAVE_PTHREADS < 7
22228 status = pthread_attr_setdetachstate(&attr, &detach);
22229 if( status < 0 ) status = errno;
22231 status = pthread_attr_setdetachstate(&attr, detach);
22233 if( status ) return status;
22234 status = pthread_create( &t, &attr, task, NULL );
22235 #if HAVE_PTHREADS < 7
22236 if( status < 0 ) status = errno;
22238 if( status ) return status;
22240 /* Draft 4 pthreads */
22241 status = pthread_create( &t, pthread_attr_default, task, NULL );
22242 if( status ) return errno;
22244 /* give thread a chance to complete */
22245 /* it should remain joinable and hence detachable */
22248 status = pthread_detach( &t );
22249 if( status ) return errno;
22252 #ifdef HAVE_LINUX_THREADS
22253 pthread_kill_other_threads_np();
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264 (eval $ac_link) 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
22271 { ac_try='test -z "$ac_c_werror_flag"
22272 || test ! -s conftest.err'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 ol_cv_pthread_lib_lpthread_woff=yes
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22289 ol_cv_pthread_lib_lpthread_woff=no
22291 rm -f conftest.err conftest.$ac_objext \
22292 conftest$ac_exeext conftest.$ac_ext
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22301 /* pthread test headers */
22302 #include <pthread.h>
22303 #if HAVE_PTHREADS < 7
22307 #define NULL (void*)0
22310 static void *task(p)
22313 return (void *) (p == NULL);
22317 int main(argc, argv)
22322 /* pthread test function */
22323 #ifndef PTHREAD_CREATE_DETACHED
22324 #define PTHREAD_CREATE_DETACHED 1
22328 int detach = PTHREAD_CREATE_DETACHED;
22330 #if HAVE_PTHREADS > 4
22331 /* Final pthreads */
22332 pthread_attr_t attr;
22334 status = pthread_attr_init(&attr);
22335 if( status ) return status;
22337 #if HAVE_PTHREADS < 7
22338 status = pthread_attr_setdetachstate(&attr, &detach);
22339 if( status < 0 ) status = errno;
22341 status = pthread_attr_setdetachstate(&attr, detach);
22343 if( status ) return status;
22344 status = pthread_create( &t, &attr, task, NULL );
22345 #if HAVE_PTHREADS < 7
22346 if( status < 0 ) status = errno;
22348 if( status ) return status;
22350 /* Draft 4 pthreads */
22351 status = pthread_create( &t, pthread_attr_default, task, NULL );
22352 if( status ) return errno;
22354 /* give thread a chance to complete */
22355 /* it should remain joinable and hence detachable */
22358 status = pthread_detach( &t );
22359 if( status ) return errno;
22362 #ifdef HAVE_LINUX_THREADS
22363 pthread_kill_other_threads_np();
22371 rm -f conftest$ac_exeext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22373 (eval $ac_link) 2>&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 ol_cv_pthread_lib_lpthread_woff=yes
22384 echo "$as_me: program exited with status $ac_status" >&5
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22388 ( exit $ac_status )
22389 ol_cv_pthread_lib_lpthread_woff=no
22391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22398 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22399 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22401 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22402 ol_link_pthreads="-lpthread -Wl,-woff,85"
22403 ol_link_threads=posix
22408 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22409 if test "$ol_link_threads" = no ; then
22411 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22412 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22413 if test "${ol_cv_pthread_lpthread+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 LIBS="-lpthread $LIBS"
22421 if test "$cross_compiling" = yes; then
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 /* pthread test headers */
22430 #include <pthread.h>
22431 #if HAVE_PTHREADS < 7
22435 #define NULL (void*)0
22438 static void *task(p)
22441 return (void *) (p == NULL);
22448 /* pthread test function */
22449 #ifndef PTHREAD_CREATE_DETACHED
22450 #define PTHREAD_CREATE_DETACHED 1
22454 int detach = PTHREAD_CREATE_DETACHED;
22456 #if HAVE_PTHREADS > 4
22457 /* Final pthreads */
22458 pthread_attr_t attr;
22460 status = pthread_attr_init(&attr);
22461 if( status ) return status;
22463 #if HAVE_PTHREADS < 7
22464 status = pthread_attr_setdetachstate(&attr, &detach);
22465 if( status < 0 ) status = errno;
22467 status = pthread_attr_setdetachstate(&attr, detach);
22469 if( status ) return status;
22470 status = pthread_create( &t, &attr, task, NULL );
22471 #if HAVE_PTHREADS < 7
22472 if( status < 0 ) status = errno;
22474 if( status ) return status;
22476 /* Draft 4 pthreads */
22477 status = pthread_create( &t, pthread_attr_default, task, NULL );
22478 if( status ) return errno;
22480 /* give thread a chance to complete */
22481 /* it should remain joinable and hence detachable */
22484 status = pthread_detach( &t );
22485 if( status ) return errno;
22488 #ifdef HAVE_LINUX_THREADS
22489 pthread_kill_other_threads_np();
22498 rm -f conftest.$ac_objext conftest$ac_exeext
22499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22500 (eval $ac_link) 2>conftest.er1
22502 grep -v '^ *+' conftest.er1 >conftest.err
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } &&
22507 { ac_try='test -z "$ac_c_werror_flag"
22508 || test ! -s conftest.err'
22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; } &&
22514 { ac_try='test -s conftest$ac_exeext'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; }; then
22520 ol_cv_pthread_lpthread=yes
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ol_cv_pthread_lpthread=no
22527 rm -f conftest.err conftest.$ac_objext \
22528 conftest$ac_exeext conftest.$ac_ext
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22537 /* pthread test headers */
22538 #include <pthread.h>
22539 #if HAVE_PTHREADS < 7
22543 #define NULL (void*)0
22546 static void *task(p)
22549 return (void *) (p == NULL);
22553 int main(argc, argv)
22558 /* pthread test function */
22559 #ifndef PTHREAD_CREATE_DETACHED
22560 #define PTHREAD_CREATE_DETACHED 1
22564 int detach = PTHREAD_CREATE_DETACHED;
22566 #if HAVE_PTHREADS > 4
22567 /* Final pthreads */
22568 pthread_attr_t attr;
22570 status = pthread_attr_init(&attr);
22571 if( status ) return status;
22573 #if HAVE_PTHREADS < 7
22574 status = pthread_attr_setdetachstate(&attr, &detach);
22575 if( status < 0 ) status = errno;
22577 status = pthread_attr_setdetachstate(&attr, detach);
22579 if( status ) return status;
22580 status = pthread_create( &t, &attr, task, NULL );
22581 #if HAVE_PTHREADS < 7
22582 if( status < 0 ) status = errno;
22584 if( status ) return status;
22586 /* Draft 4 pthreads */
22587 status = pthread_create( &t, pthread_attr_default, task, NULL );
22588 if( status ) return errno;
22590 /* give thread a chance to complete */
22591 /* it should remain joinable and hence detachable */
22594 status = pthread_detach( &t );
22595 if( status ) return errno;
22598 #ifdef HAVE_LINUX_THREADS
22599 pthread_kill_other_threads_np();
22607 rm -f conftest$ac_exeext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22609 (eval $ac_link) 2>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ol_cv_pthread_lpthread=yes
22620 echo "$as_me: program exited with status $ac_status" >&5
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 ( exit $ac_status )
22625 ol_cv_pthread_lpthread=no
22627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22634 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22635 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22637 if test $ol_cv_pthread_lpthread = yes ; then
22638 ol_link_pthreads="-lpthread"
22639 ol_link_threads=posix
22643 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22644 if test "$ol_link_threads" = no ; then
22646 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22647 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22648 if test "${ol_cv_pthread_lc_r+set}" = set; then
22649 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 if test "$cross_compiling" = yes; then
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22664 /* pthread test headers */
22665 #include <pthread.h>
22666 #if HAVE_PTHREADS < 7
22670 #define NULL (void*)0
22673 static void *task(p)
22676 return (void *) (p == NULL);
22683 /* pthread test function */
22684 #ifndef PTHREAD_CREATE_DETACHED
22685 #define PTHREAD_CREATE_DETACHED 1
22689 int detach = PTHREAD_CREATE_DETACHED;
22691 #if HAVE_PTHREADS > 4
22692 /* Final pthreads */
22693 pthread_attr_t attr;
22695 status = pthread_attr_init(&attr);
22696 if( status ) return status;
22698 #if HAVE_PTHREADS < 7
22699 status = pthread_attr_setdetachstate(&attr, &detach);
22700 if( status < 0 ) status = errno;
22702 status = pthread_attr_setdetachstate(&attr, detach);
22704 if( status ) return status;
22705 status = pthread_create( &t, &attr, task, NULL );
22706 #if HAVE_PTHREADS < 7
22707 if( status < 0 ) status = errno;
22709 if( status ) return status;
22711 /* Draft 4 pthreads */
22712 status = pthread_create( &t, pthread_attr_default, task, NULL );
22713 if( status ) return errno;
22715 /* give thread a chance to complete */
22716 /* it should remain joinable and hence detachable */
22719 status = pthread_detach( &t );
22720 if( status ) return errno;
22723 #ifdef HAVE_LINUX_THREADS
22724 pthread_kill_other_threads_np();
22733 rm -f conftest.$ac_objext conftest$ac_exeext
22734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22735 (eval $ac_link) 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } &&
22742 { ac_try='test -z "$ac_c_werror_flag"
22743 || test ! -s conftest.err'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; } &&
22749 { ac_try='test -s conftest$ac_exeext'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ol_cv_pthread_lc_r=yes
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ol_cv_pthread_lc_r=no
22762 rm -f conftest.err conftest.$ac_objext \
22763 conftest$ac_exeext conftest.$ac_ext
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22772 /* pthread test headers */
22773 #include <pthread.h>
22774 #if HAVE_PTHREADS < 7
22778 #define NULL (void*)0
22781 static void *task(p)
22784 return (void *) (p == NULL);
22788 int main(argc, argv)
22793 /* pthread test function */
22794 #ifndef PTHREAD_CREATE_DETACHED
22795 #define PTHREAD_CREATE_DETACHED 1
22799 int detach = PTHREAD_CREATE_DETACHED;
22801 #if HAVE_PTHREADS > 4
22802 /* Final pthreads */
22803 pthread_attr_t attr;
22805 status = pthread_attr_init(&attr);
22806 if( status ) return status;
22808 #if HAVE_PTHREADS < 7
22809 status = pthread_attr_setdetachstate(&attr, &detach);
22810 if( status < 0 ) status = errno;
22812 status = pthread_attr_setdetachstate(&attr, detach);
22814 if( status ) return status;
22815 status = pthread_create( &t, &attr, task, NULL );
22816 #if HAVE_PTHREADS < 7
22817 if( status < 0 ) status = errno;
22819 if( status ) return status;
22821 /* Draft 4 pthreads */
22822 status = pthread_create( &t, pthread_attr_default, task, NULL );
22823 if( status ) return errno;
22825 /* give thread a chance to complete */
22826 /* it should remain joinable and hence detachable */
22829 status = pthread_detach( &t );
22830 if( status ) return errno;
22833 #ifdef HAVE_LINUX_THREADS
22834 pthread_kill_other_threads_np();
22842 rm -f conftest$ac_exeext
22843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22844 (eval $ac_link) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 ol_cv_pthread_lc_r=yes
22855 echo "$as_me: program exited with status $ac_status" >&5
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ( exit $ac_status )
22860 ol_cv_pthread_lc_r=no
22862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22869 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22870 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22872 if test $ol_cv_pthread_lc_r = yes ; then
22873 ol_link_pthreads="-lc_r"
22874 ol_link_threads=posix
22879 # Pthread try link: -threads (ol_cv_pthread_threads)
22880 if test "$ol_link_threads" = no ; then
22882 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22883 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22884 if test "${ol_cv_pthread_threads+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 LIBS="-threads $LIBS"
22892 if test "$cross_compiling" = yes; then
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22900 /* pthread test headers */
22901 #include <pthread.h>
22902 #if HAVE_PTHREADS < 7
22906 #define NULL (void*)0
22909 static void *task(p)
22912 return (void *) (p == NULL);
22919 /* pthread test function */
22920 #ifndef PTHREAD_CREATE_DETACHED
22921 #define PTHREAD_CREATE_DETACHED 1
22925 int detach = PTHREAD_CREATE_DETACHED;
22927 #if HAVE_PTHREADS > 4
22928 /* Final pthreads */
22929 pthread_attr_t attr;
22931 status = pthread_attr_init(&attr);
22932 if( status ) return status;
22934 #if HAVE_PTHREADS < 7
22935 status = pthread_attr_setdetachstate(&attr, &detach);
22936 if( status < 0 ) status = errno;
22938 status = pthread_attr_setdetachstate(&attr, detach);
22940 if( status ) return status;
22941 status = pthread_create( &t, &attr, task, NULL );
22942 #if HAVE_PTHREADS < 7
22943 if( status < 0 ) status = errno;
22945 if( status ) return status;
22947 /* Draft 4 pthreads */
22948 status = pthread_create( &t, pthread_attr_default, task, NULL );
22949 if( status ) return errno;
22951 /* give thread a chance to complete */
22952 /* it should remain joinable and hence detachable */
22955 status = pthread_detach( &t );
22956 if( status ) return errno;
22959 #ifdef HAVE_LINUX_THREADS
22960 pthread_kill_other_threads_np();
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971 (eval $ac_link) 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
22978 { ac_try='test -z "$ac_c_werror_flag"
22979 || test ! -s conftest.err'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest$ac_exeext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ol_cv_pthread_threads=yes
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ol_cv_pthread_threads=no
22998 rm -f conftest.err conftest.$ac_objext \
22999 conftest$ac_exeext conftest.$ac_ext
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23008 /* pthread test headers */
23009 #include <pthread.h>
23010 #if HAVE_PTHREADS < 7
23014 #define NULL (void*)0
23017 static void *task(p)
23020 return (void *) (p == NULL);
23024 int main(argc, argv)
23029 /* pthread test function */
23030 #ifndef PTHREAD_CREATE_DETACHED
23031 #define PTHREAD_CREATE_DETACHED 1
23035 int detach = PTHREAD_CREATE_DETACHED;
23037 #if HAVE_PTHREADS > 4
23038 /* Final pthreads */
23039 pthread_attr_t attr;
23041 status = pthread_attr_init(&attr);
23042 if( status ) return status;
23044 #if HAVE_PTHREADS < 7
23045 status = pthread_attr_setdetachstate(&attr, &detach);
23046 if( status < 0 ) status = errno;
23048 status = pthread_attr_setdetachstate(&attr, detach);
23050 if( status ) return status;
23051 status = pthread_create( &t, &attr, task, NULL );
23052 #if HAVE_PTHREADS < 7
23053 if( status < 0 ) status = errno;
23055 if( status ) return status;
23057 /* Draft 4 pthreads */
23058 status = pthread_create( &t, pthread_attr_default, task, NULL );
23059 if( status ) return errno;
23061 /* give thread a chance to complete */
23062 /* it should remain joinable and hence detachable */
23065 status = pthread_detach( &t );
23066 if( status ) return errno;
23069 #ifdef HAVE_LINUX_THREADS
23070 pthread_kill_other_threads_np();
23078 rm -f conftest$ac_exeext
23079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23080 (eval $ac_link) 2>&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; }; then
23089 ol_cv_pthread_threads=yes
23091 echo "$as_me: program exited with status $ac_status" >&5
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 ( exit $ac_status )
23096 ol_cv_pthread_threads=no
23098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23105 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23106 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23108 if test $ol_cv_pthread_threads = yes ; then
23109 ol_link_pthreads="-threads"
23110 ol_link_threads=posix
23115 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23116 if test "$ol_link_threads" = no ; then
23117 # try -lpthreads -lmach -lexc -lc_r
23118 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23119 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23120 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23128 if test "$cross_compiling" = yes; then
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23136 /* pthread test headers */
23137 #include <pthread.h>
23138 #if HAVE_PTHREADS < 7
23142 #define NULL (void*)0
23145 static void *task(p)
23148 return (void *) (p == NULL);
23155 /* pthread test function */
23156 #ifndef PTHREAD_CREATE_DETACHED
23157 #define PTHREAD_CREATE_DETACHED 1
23161 int detach = PTHREAD_CREATE_DETACHED;
23163 #if HAVE_PTHREADS > 4
23164 /* Final pthreads */
23165 pthread_attr_t attr;
23167 status = pthread_attr_init(&attr);
23168 if( status ) return status;
23170 #if HAVE_PTHREADS < 7
23171 status = pthread_attr_setdetachstate(&attr, &detach);
23172 if( status < 0 ) status = errno;
23174 status = pthread_attr_setdetachstate(&attr, detach);
23176 if( status ) return status;
23177 status = pthread_create( &t, &attr, task, NULL );
23178 #if HAVE_PTHREADS < 7
23179 if( status < 0 ) status = errno;
23181 if( status ) return status;
23183 /* Draft 4 pthreads */
23184 status = pthread_create( &t, pthread_attr_default, task, NULL );
23185 if( status ) return errno;
23187 /* give thread a chance to complete */
23188 /* it should remain joinable and hence detachable */
23191 status = pthread_detach( &t );
23192 if( status ) return errno;
23195 #ifdef HAVE_LINUX_THREADS
23196 pthread_kill_other_threads_np();
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23207 (eval $ac_link) 2>conftest.er1
23209 grep -v '^ *+' conftest.er1 >conftest.err
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } &&
23214 { ac_try='test -z "$ac_c_werror_flag"
23215 || test ! -s conftest.err'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; } &&
23221 { ac_try='test -s conftest$ac_exeext'
23222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; }; then
23227 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23234 rm -f conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* pthread test headers */
23245 #include <pthread.h>
23246 #if HAVE_PTHREADS < 7
23250 #define NULL (void*)0
23253 static void *task(p)
23256 return (void *) (p == NULL);
23260 int main(argc, argv)
23265 /* pthread test function */
23266 #ifndef PTHREAD_CREATE_DETACHED
23267 #define PTHREAD_CREATE_DETACHED 1
23271 int detach = PTHREAD_CREATE_DETACHED;
23273 #if HAVE_PTHREADS > 4
23274 /* Final pthreads */
23275 pthread_attr_t attr;
23277 status = pthread_attr_init(&attr);
23278 if( status ) return status;
23280 #if HAVE_PTHREADS < 7
23281 status = pthread_attr_setdetachstate(&attr, &detach);
23282 if( status < 0 ) status = errno;
23284 status = pthread_attr_setdetachstate(&attr, detach);
23286 if( status ) return status;
23287 status = pthread_create( &t, &attr, task, NULL );
23288 #if HAVE_PTHREADS < 7
23289 if( status < 0 ) status = errno;
23291 if( status ) return status;
23293 /* Draft 4 pthreads */
23294 status = pthread_create( &t, pthread_attr_default, task, NULL );
23295 if( status ) return errno;
23297 /* give thread a chance to complete */
23298 /* it should remain joinable and hence detachable */
23301 status = pthread_detach( &t );
23302 if( status ) return errno;
23305 #ifdef HAVE_LINUX_THREADS
23306 pthread_kill_other_threads_np();
23314 rm -f conftest$ac_exeext
23315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23316 (eval $ac_link) 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23327 echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ( exit $ac_status )
23332 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23342 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23344 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23345 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23346 ol_link_threads=posix
23350 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23351 if test "$ol_link_threads" = no ; then
23352 # try -lpthreads -lmach -lexc
23353 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23354 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23355 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 LIBS="-lpthreads -lmach -lexc $LIBS"
23363 if test "$cross_compiling" = yes; then
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23371 /* pthread test headers */
23372 #include <pthread.h>
23373 #if HAVE_PTHREADS < 7
23377 #define NULL (void*)0
23380 static void *task(p)
23383 return (void *) (p == NULL);
23390 /* pthread test function */
23391 #ifndef PTHREAD_CREATE_DETACHED
23392 #define PTHREAD_CREATE_DETACHED 1
23396 int detach = PTHREAD_CREATE_DETACHED;
23398 #if HAVE_PTHREADS > 4
23399 /* Final pthreads */
23400 pthread_attr_t attr;
23402 status = pthread_attr_init(&attr);
23403 if( status ) return status;
23405 #if HAVE_PTHREADS < 7
23406 status = pthread_attr_setdetachstate(&attr, &detach);
23407 if( status < 0 ) status = errno;
23409 status = pthread_attr_setdetachstate(&attr, detach);
23411 if( status ) return status;
23412 status = pthread_create( &t, &attr, task, NULL );
23413 #if HAVE_PTHREADS < 7
23414 if( status < 0 ) status = errno;
23416 if( status ) return status;
23418 /* Draft 4 pthreads */
23419 status = pthread_create( &t, pthread_attr_default, task, NULL );
23420 if( status ) return errno;
23422 /* give thread a chance to complete */
23423 /* it should remain joinable and hence detachable */
23426 status = pthread_detach( &t );
23427 if( status ) return errno;
23430 #ifdef HAVE_LINUX_THREADS
23431 pthread_kill_other_threads_np();
23440 rm -f conftest.$ac_objext conftest$ac_exeext
23441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23442 (eval $ac_link) 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
23449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest$ac_exeext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ol_cv_pthread_lpthreads_lmach_lexc=yes
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 ol_cv_pthread_lpthreads_lmach_lexc=no
23469 rm -f conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 /* pthread test headers */
23480 #include <pthread.h>
23481 #if HAVE_PTHREADS < 7
23485 #define NULL (void*)0
23488 static void *task(p)
23491 return (void *) (p == NULL);
23495 int main(argc, argv)
23500 /* pthread test function */
23501 #ifndef PTHREAD_CREATE_DETACHED
23502 #define PTHREAD_CREATE_DETACHED 1
23506 int detach = PTHREAD_CREATE_DETACHED;
23508 #if HAVE_PTHREADS > 4
23509 /* Final pthreads */
23510 pthread_attr_t attr;
23512 status = pthread_attr_init(&attr);
23513 if( status ) return status;
23515 #if HAVE_PTHREADS < 7
23516 status = pthread_attr_setdetachstate(&attr, &detach);
23517 if( status < 0 ) status = errno;
23519 status = pthread_attr_setdetachstate(&attr, detach);
23521 if( status ) return status;
23522 status = pthread_create( &t, &attr, task, NULL );
23523 #if HAVE_PTHREADS < 7
23524 if( status < 0 ) status = errno;
23526 if( status ) return status;
23528 /* Draft 4 pthreads */
23529 status = pthread_create( &t, pthread_attr_default, task, NULL );
23530 if( status ) return errno;
23532 /* give thread a chance to complete */
23533 /* it should remain joinable and hence detachable */
23536 status = pthread_detach( &t );
23537 if( status ) return errno;
23540 #ifdef HAVE_LINUX_THREADS
23541 pthread_kill_other_threads_np();
23549 rm -f conftest$ac_exeext
23550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23551 (eval $ac_link) 2>&5
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; }; then
23560 ol_cv_pthread_lpthreads_lmach_lexc=yes
23562 echo "$as_me: program exited with status $ac_status" >&5
23563 echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566 ( exit $ac_status )
23567 ol_cv_pthread_lpthreads_lmach_lexc=no
23569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23576 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23577 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23579 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23580 ol_link_pthreads="-lpthreads -lmach -lexc"
23581 ol_link_threads=posix
23585 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23586 if test "$ol_link_threads" = no ; then
23587 # try -lpthreads -lexc
23588 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23589 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23590 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23591 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 LIBS="-lpthreads -lexc $LIBS"
23598 if test "$cross_compiling" = yes; then
23599 cat >conftest.$ac_ext <<_ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23606 /* pthread test headers */
23607 #include <pthread.h>
23608 #if HAVE_PTHREADS < 7
23612 #define NULL (void*)0
23615 static void *task(p)
23618 return (void *) (p == NULL);
23625 /* pthread test function */
23626 #ifndef PTHREAD_CREATE_DETACHED
23627 #define PTHREAD_CREATE_DETACHED 1
23631 int detach = PTHREAD_CREATE_DETACHED;
23633 #if HAVE_PTHREADS > 4
23634 /* Final pthreads */
23635 pthread_attr_t attr;
23637 status = pthread_attr_init(&attr);
23638 if( status ) return status;
23640 #if HAVE_PTHREADS < 7
23641 status = pthread_attr_setdetachstate(&attr, &detach);
23642 if( status < 0 ) status = errno;
23644 status = pthread_attr_setdetachstate(&attr, detach);
23646 if( status ) return status;
23647 status = pthread_create( &t, &attr, task, NULL );
23648 #if HAVE_PTHREADS < 7
23649 if( status < 0 ) status = errno;
23651 if( status ) return status;
23653 /* Draft 4 pthreads */
23654 status = pthread_create( &t, pthread_attr_default, task, NULL );
23655 if( status ) return errno;
23657 /* give thread a chance to complete */
23658 /* it should remain joinable and hence detachable */
23661 status = pthread_detach( &t );
23662 if( status ) return errno;
23665 #ifdef HAVE_LINUX_THREADS
23666 pthread_kill_other_threads_np();
23675 rm -f conftest.$ac_objext conftest$ac_exeext
23676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23677 (eval $ac_link) 2>conftest.er1
23679 grep -v '^ *+' conftest.er1 >conftest.err
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } &&
23684 { ac_try='test -z "$ac_c_werror_flag"
23685 || test ! -s conftest.err'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; } &&
23691 { ac_try='test -s conftest$ac_exeext'
23692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; }; then
23697 ol_cv_pthread_lpthreads_lexc=yes
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 ol_cv_pthread_lpthreads_lexc=no
23704 rm -f conftest.err conftest.$ac_objext \
23705 conftest$ac_exeext conftest.$ac_ext
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23714 /* pthread test headers */
23715 #include <pthread.h>
23716 #if HAVE_PTHREADS < 7
23720 #define NULL (void*)0
23723 static void *task(p)
23726 return (void *) (p == NULL);
23730 int main(argc, argv)
23735 /* pthread test function */
23736 #ifndef PTHREAD_CREATE_DETACHED
23737 #define PTHREAD_CREATE_DETACHED 1
23741 int detach = PTHREAD_CREATE_DETACHED;
23743 #if HAVE_PTHREADS > 4
23744 /* Final pthreads */
23745 pthread_attr_t attr;
23747 status = pthread_attr_init(&attr);
23748 if( status ) return status;
23750 #if HAVE_PTHREADS < 7
23751 status = pthread_attr_setdetachstate(&attr, &detach);
23752 if( status < 0 ) status = errno;
23754 status = pthread_attr_setdetachstate(&attr, detach);
23756 if( status ) return status;
23757 status = pthread_create( &t, &attr, task, NULL );
23758 #if HAVE_PTHREADS < 7
23759 if( status < 0 ) status = errno;
23761 if( status ) return status;
23763 /* Draft 4 pthreads */
23764 status = pthread_create( &t, pthread_attr_default, task, NULL );
23765 if( status ) return errno;
23767 /* give thread a chance to complete */
23768 /* it should remain joinable and hence detachable */
23771 status = pthread_detach( &t );
23772 if( status ) return errno;
23775 #ifdef HAVE_LINUX_THREADS
23776 pthread_kill_other_threads_np();
23784 rm -f conftest$ac_exeext
23785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23786 (eval $ac_link) 2>&5
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ol_cv_pthread_lpthreads_lexc=yes
23797 echo "$as_me: program exited with status $ac_status" >&5
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 ( exit $ac_status )
23802 ol_cv_pthread_lpthreads_lexc=no
23804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23811 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23812 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23814 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23815 ol_link_pthreads="-lpthreads -lexc"
23816 ol_link_threads=posix
23821 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23822 if test "$ol_link_threads" = no ; then
23824 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23825 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23826 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 LIBS="-lpthreads $LIBS"
23834 if test "$cross_compiling" = yes; then
23835 cat >conftest.$ac_ext <<_ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23842 /* pthread test headers */
23843 #include <pthread.h>
23844 #if HAVE_PTHREADS < 7
23848 #define NULL (void*)0
23851 static void *task(p)
23854 return (void *) (p == NULL);
23861 /* pthread test function */
23862 #ifndef PTHREAD_CREATE_DETACHED
23863 #define PTHREAD_CREATE_DETACHED 1
23867 int detach = PTHREAD_CREATE_DETACHED;
23869 #if HAVE_PTHREADS > 4
23870 /* Final pthreads */
23871 pthread_attr_t attr;
23873 status = pthread_attr_init(&attr);
23874 if( status ) return status;
23876 #if HAVE_PTHREADS < 7
23877 status = pthread_attr_setdetachstate(&attr, &detach);
23878 if( status < 0 ) status = errno;
23880 status = pthread_attr_setdetachstate(&attr, detach);
23882 if( status ) return status;
23883 status = pthread_create( &t, &attr, task, NULL );
23884 #if HAVE_PTHREADS < 7
23885 if( status < 0 ) status = errno;
23887 if( status ) return status;
23889 /* Draft 4 pthreads */
23890 status = pthread_create( &t, pthread_attr_default, task, NULL );
23891 if( status ) return errno;
23893 /* give thread a chance to complete */
23894 /* it should remain joinable and hence detachable */
23897 status = pthread_detach( &t );
23898 if( status ) return errno;
23901 #ifdef HAVE_LINUX_THREADS
23902 pthread_kill_other_threads_np();
23911 rm -f conftest.$ac_objext conftest$ac_exeext
23912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23913 (eval $ac_link) 2>conftest.er1
23915 grep -v '^ *+' conftest.er1 >conftest.err
23917 cat conftest.err >&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); } &&
23920 { ac_try='test -z "$ac_c_werror_flag"
23921 || test ! -s conftest.err'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; } &&
23927 { ac_try='test -s conftest$ac_exeext'
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 ol_cv_pthread_lib_lpthreads=yes
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 ol_cv_pthread_lib_lpthreads=no
23940 rm -f conftest.err conftest.$ac_objext \
23941 conftest$ac_exeext conftest.$ac_ext
23943 cat >conftest.$ac_ext <<_ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23950 /* pthread test headers */
23951 #include <pthread.h>
23952 #if HAVE_PTHREADS < 7
23956 #define NULL (void*)0
23959 static void *task(p)
23962 return (void *) (p == NULL);
23966 int main(argc, argv)
23971 /* pthread test function */
23972 #ifndef PTHREAD_CREATE_DETACHED
23973 #define PTHREAD_CREATE_DETACHED 1
23977 int detach = PTHREAD_CREATE_DETACHED;
23979 #if HAVE_PTHREADS > 4
23980 /* Final pthreads */
23981 pthread_attr_t attr;
23983 status = pthread_attr_init(&attr);
23984 if( status ) return status;
23986 #if HAVE_PTHREADS < 7
23987 status = pthread_attr_setdetachstate(&attr, &detach);
23988 if( status < 0 ) status = errno;
23990 status = pthread_attr_setdetachstate(&attr, detach);
23992 if( status ) return status;
23993 status = pthread_create( &t, &attr, task, NULL );
23994 #if HAVE_PTHREADS < 7
23995 if( status < 0 ) status = errno;
23997 if( status ) return status;
23999 /* Draft 4 pthreads */
24000 status = pthread_create( &t, pthread_attr_default, task, NULL );
24001 if( status ) return errno;
24003 /* give thread a chance to complete */
24004 /* it should remain joinable and hence detachable */
24007 status = pthread_detach( &t );
24008 if( status ) return errno;
24011 #ifdef HAVE_LINUX_THREADS
24012 pthread_kill_other_threads_np();
24020 rm -f conftest$ac_exeext
24021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24022 (eval $ac_link) 2>&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031 ol_cv_pthread_lib_lpthreads=yes
24033 echo "$as_me: program exited with status $ac_status" >&5
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24037 ( exit $ac_status )
24038 ol_cv_pthread_lib_lpthreads=no
24040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24048 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24050 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24051 ol_link_pthreads="-lpthreads"
24052 ol_link_threads=posix
24057 if test $ol_link_threads != no ; then
24058 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24060 save_CPPFLAGS="$CPPFLAGS"
24062 LIBS="$LTHREAD_LIBS $LIBS"
24067 for ac_func in sched_yield pthread_yield thr_yield
24069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24070 echo "$as_me:$LINENO: checking for $ac_func" >&5
24071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24072 if eval "test \"\${$as_ac_var+set}\" = set"; then
24073 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 cat >conftest.$ac_ext <<_ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24083 #define $ac_func innocuous_$ac_func
24085 /* System header to define __stub macros and hopefully few prototypes,
24086 which can conflict with char $ac_func (); below.
24087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24088 <limits.h> exists even on freestanding compilers. */
24091 # include <limits.h>
24093 # include <assert.h>
24098 /* Override any gcc2 internal prototype to avoid an error. */
24103 /* We use char because int might match the return type of a gcc2
24104 builtin and then its argument prototype would still apply. */
24106 /* The GNU C library defines this for functions which it implements
24107 to always fail with ENOSYS. Some functions are actually named
24108 something starting with __ and the normal name is an alias. */
24109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24112 char (*f) () = $ac_func;
24121 return f != $ac_func;
24126 rm -f conftest.$ac_objext conftest$ac_exeext
24127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128 (eval $ac_link) 2>conftest.er1
24130 grep -v '^ *+' conftest.er1 >conftest.err
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } &&
24135 { ac_try='test -z "$ac_c_werror_flag"
24136 || test ! -s conftest.err'
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; } &&
24142 { ac_try='test -s conftest$ac_exeext'
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; }; then
24148 eval "$as_ac_var=yes"
24150 echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24153 eval "$as_ac_var=no"
24155 rm -f conftest.err conftest.$ac_objext \
24156 conftest$ac_exeext conftest.$ac_ext
24158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24160 if test `eval echo '${'$as_ac_var'}'` = yes; then
24161 cat >>confdefs.h <<_ACEOF
24162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24169 if test $ac_cv_func_sched_yield = no &&
24170 test $ac_cv_func_pthread_yield = no &&
24171 test $ac_cv_func_thr_yield = no ; then
24172 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24173 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24174 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24175 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 ac_check_lib_save_LIBS=$LIBS
24179 cat >conftest.$ac_ext <<_ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24186 /* Override any gcc2 internal prototype to avoid an error. */
24190 /* We use char because int might match the return type of a gcc2
24191 builtin and then its argument prototype would still apply. */
24192 char sched_yield ();
24201 rm -f conftest.$ac_objext conftest$ac_exeext
24202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24203 (eval $ac_link) 2>conftest.er1
24205 grep -v '^ *+' conftest.er1 >conftest.err
24207 cat conftest.err >&5
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); } &&
24210 { ac_try='test -z "$ac_c_werror_flag"
24211 || test ! -s conftest.err'
24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213 (eval $ac_try) 2>&5
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; } &&
24217 { ac_try='test -s conftest$ac_exeext'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; }; then
24223 ac_cv_lib_rt_sched_yield=yes
24225 echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 ac_cv_lib_rt_sched_yield=no
24230 rm -f conftest.err conftest.$ac_objext \
24231 conftest$ac_exeext conftest.$ac_ext
24232 LIBS=$ac_check_lib_save_LIBS
24234 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24235 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24236 if test $ac_cv_lib_rt_sched_yield = yes; then
24237 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24239 cat >>confdefs.h <<\_ACEOF
24240 #define HAVE_SCHED_YIELD 1
24243 ac_cv_func_sched_yield=yes
24245 ac_cv_func_sched_yield=no
24249 if test $ac_cv_func_sched_yield = no &&
24250 test $ac_cv_func_pthread_yield = no &&
24251 test "$ac_cv_func_thr_yield" = no ; then
24252 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24253 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24258 for ac_func in pthread_kill pthread_rwlock_destroy
24260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24261 echo "$as_me:$LINENO: checking for $ac_func" >&5
24262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24263 if eval "test \"\${$as_ac_var+set}\" = set"; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24274 #define $ac_func innocuous_$ac_func
24276 /* System header to define __stub macros and hopefully few prototypes,
24277 which can conflict with char $ac_func (); below.
24278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24279 <limits.h> exists even on freestanding compilers. */
24282 # include <limits.h>
24284 # include <assert.h>
24289 /* Override any gcc2 internal prototype to avoid an error. */
24294 /* We use char because int might match the return type of a gcc2
24295 builtin and then its argument prototype would still apply. */
24297 /* The GNU C library defines this for functions which it implements
24298 to always fail with ENOSYS. Some functions are actually named
24299 something starting with __ and the normal name is an alias. */
24300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24303 char (*f) () = $ac_func;
24312 return f != $ac_func;
24317 rm -f conftest.$ac_objext conftest$ac_exeext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24319 (eval $ac_link) 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
24326 { ac_try='test -z "$ac_c_werror_flag"
24327 || test ! -s conftest.err'
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; } &&
24333 { ac_try='test -s conftest$ac_exeext'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; }; then
24339 eval "$as_ac_var=yes"
24341 echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 eval "$as_ac_var=no"
24346 rm -f conftest.err conftest.$ac_objext \
24347 conftest$ac_exeext conftest.$ac_ext
24349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24351 if test `eval echo '${'$as_ac_var'}'` = yes; then
24352 cat >>confdefs.h <<_ACEOF
24353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24360 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24361 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24362 if test "${ol_cv_func_pthread_detach+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 cat >conftest.$ac_ext <<_ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24373 #include <pthread.h>
24375 #define NULL (void*)0
24381 pthread_detach(NULL);
24386 rm -f conftest.$ac_objext conftest$ac_exeext
24387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24388 (eval $ac_link) 2>conftest.er1
24390 grep -v '^ *+' conftest.er1 >conftest.err
24392 cat conftest.err >&5
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } &&
24395 { ac_try='test -z "$ac_c_werror_flag"
24396 || test ! -s conftest.err'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest$ac_exeext'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24408 ol_cv_func_pthread_detach=yes
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 ol_cv_func_pthread_detach=no
24415 rm -f conftest.err conftest.$ac_objext \
24416 conftest$ac_exeext conftest.$ac_ext
24419 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24420 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24422 if test $ol_cv_func_pthread_detach = no ; then
24423 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24424 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24425 { (exit 1); exit 1; }; }
24429 cat >>confdefs.h <<\_ACEOF
24430 #define HAVE_PTHREAD_DETACH 1
24439 pthread_setconcurrency \
24440 pthread_getconcurrency \
24441 thr_setconcurrency \
24442 thr_getconcurrency \
24445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24446 echo "$as_me:$LINENO: checking for $ac_func" >&5
24447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24448 if eval "test \"\${$as_ac_var+set}\" = set"; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24459 #define $ac_func innocuous_$ac_func
24461 /* System header to define __stub macros and hopefully few prototypes,
24462 which can conflict with char $ac_func (); below.
24463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24464 <limits.h> exists even on freestanding compilers. */
24467 # include <limits.h>
24469 # include <assert.h>
24474 /* Override any gcc2 internal prototype to avoid an error. */
24479 /* We use char because int might match the return type of a gcc2
24480 builtin and then its argument prototype would still apply. */
24482 /* The GNU C library defines this for functions which it implements
24483 to always fail with ENOSYS. Some functions are actually named
24484 something starting with __ and the normal name is an alias. */
24485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24488 char (*f) () = $ac_func;
24497 return f != $ac_func;
24502 rm -f conftest.$ac_objext conftest$ac_exeext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24504 (eval $ac_link) 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } &&
24511 { ac_try='test -z "$ac_c_werror_flag"
24512 || test ! -s conftest.err'
24513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514 (eval $ac_try) 2>&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); }; } &&
24518 { ac_try='test -s conftest$ac_exeext'
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 eval "$as_ac_var=yes"
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 eval "$as_ac_var=no"
24531 rm -f conftest.err conftest.$ac_objext \
24532 conftest$ac_exeext conftest.$ac_ext
24534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24536 if test `eval echo '${'$as_ac_var'}'` = yes; then
24537 cat >>confdefs.h <<_ACEOF
24538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24547 for ac_func in pthread_kill_other_threads_np
24549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24550 echo "$as_me:$LINENO: checking for $ac_func" >&5
24551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24552 if eval "test \"\${$as_ac_var+set}\" = set"; then
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24555 cat >conftest.$ac_ext <<_ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h. */
24561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24563 #define $ac_func innocuous_$ac_func
24565 /* System header to define __stub macros and hopefully few prototypes,
24566 which can conflict with char $ac_func (); below.
24567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24568 <limits.h> exists even on freestanding compilers. */
24571 # include <limits.h>
24573 # include <assert.h>
24578 /* Override any gcc2 internal prototype to avoid an error. */
24583 /* We use char because int might match the return type of a gcc2
24584 builtin and then its argument prototype would still apply. */
24586 /* The GNU C library defines this for functions which it implements
24587 to always fail with ENOSYS. Some functions are actually named
24588 something starting with __ and the normal name is an alias. */
24589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24592 char (*f) () = $ac_func;
24601 return f != $ac_func;
24606 rm -f conftest.$ac_objext conftest$ac_exeext
24607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24608 (eval $ac_link) 2>conftest.er1
24610 grep -v '^ *+' conftest.er1 >conftest.err
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } &&
24615 { ac_try='test -z "$ac_c_werror_flag"
24616 || test ! -s conftest.err'
24617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618 (eval $ac_try) 2>&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); }; } &&
24622 { ac_try='test -s conftest$ac_exeext'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 eval "$as_ac_var=yes"
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 eval "$as_ac_var=no"
24635 rm -f conftest.err conftest.$ac_objext \
24636 conftest$ac_exeext conftest.$ac_ext
24638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24640 if test `eval echo '${'$as_ac_var'}'` = yes; then
24641 cat >>confdefs.h <<_ACEOF
24642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24648 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24649 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24650 if test "${ol_cv_sys_linux_threads+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24655 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24656 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24661 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24662 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24663 if test "${ol_cv_linux_threads+set}" = set; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24667 if test $ol_cv_header_linux_threads = yes &&
24668 test $ol_cv_sys_linux_threads = yes; then
24669 ol_cv_linux_threads=yes
24670 elif test $ol_cv_header_linux_threads = no &&
24671 test $ol_cv_sys_linux_threads = no; then
24672 ol_cv_linux_threads=no
24674 ol_cv_linux_threads=error
24678 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24679 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24682 if test $ol_cv_linux_threads = error; then
24683 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24684 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24685 { (exit 1); exit 1; }; };
24688 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24689 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24690 if test "${ol_cv_pthread_create_works+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 if test "$cross_compiling" = yes; then
24695 ol_cv_pthread_create_works=yes
24697 cat >conftest.$ac_ext <<_ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24704 /* pthread test headers */
24705 #include <pthread.h>
24706 #if HAVE_PTHREADS < 7
24710 #define NULL (void*)0
24713 static void *task(p)
24716 return (void *) (p == NULL);
24720 int main(argc, argv)
24725 /* pthread test function */
24726 #ifndef PTHREAD_CREATE_DETACHED
24727 #define PTHREAD_CREATE_DETACHED 1
24731 int detach = PTHREAD_CREATE_DETACHED;
24733 #if HAVE_PTHREADS > 4
24734 /* Final pthreads */
24735 pthread_attr_t attr;
24737 status = pthread_attr_init(&attr);
24738 if( status ) return status;
24740 #if HAVE_PTHREADS < 7
24741 status = pthread_attr_setdetachstate(&attr, &detach);
24742 if( status < 0 ) status = errno;
24744 status = pthread_attr_setdetachstate(&attr, detach);
24746 if( status ) return status;
24747 status = pthread_create( &t, &attr, task, NULL );
24748 #if HAVE_PTHREADS < 7
24749 if( status < 0 ) status = errno;
24751 if( status ) return status;
24753 /* Draft 4 pthreads */
24754 status = pthread_create( &t, pthread_attr_default, task, NULL );
24755 if( status ) return errno;
24757 /* give thread a chance to complete */
24758 /* it should remain joinable and hence detachable */
24761 status = pthread_detach( &t );
24762 if( status ) return errno;
24765 #ifdef HAVE_LINUX_THREADS
24766 pthread_kill_other_threads_np();
24774 rm -f conftest$ac_exeext
24775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24776 (eval $ac_link) 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ol_cv_pthread_create_works=yes
24787 echo "$as_me: program exited with status $ac_status" >&5
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ( exit $ac_status )
24792 ol_cv_pthread_create_works=no
24794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24797 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24798 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24800 if test $ol_cv_pthread_create_works = no ; then
24801 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24802 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24803 { (exit 1); exit 1; }; }
24806 ol_replace_broken_yield=no
24808 if test $ol_replace_broken_yield = yes ; then
24810 cat >>confdefs.h <<\_ACEOF
24811 #define REPLACE_BROKEN_YIELD 1
24816 if test $ol_with_yielding_select = auto ; then
24817 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24818 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24819 if test "${ol_cv_pthread_select_yields+set}" = set; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 if test "$cross_compiling" = yes; then
24824 ol_cv_pthread_select_yields=cross
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24833 #include <sys/types.h>
24834 #include <sys/time.h>
24835 #include <unistd.h>
24836 #include <pthread.h>
24838 #define NULL (void*) 0
24841 static int fildes[2];
24843 static void *task(p)
24855 FD_SET(fildes[0], &rfds);
24857 /* we're not interested in any fds */
24858 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24865 exit(0); /* if we exit here, the select blocked the whole process */
24868 int main(argc, argv)
24874 /* create a pipe to select */
24875 if(pipe(&fildes[0])) {
24880 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24881 (void) pthread_setconcurrency(2);
24883 #ifdef HAVE_THR_SETCONCURRENCY
24884 /* Set Solaris LWP concurrency to 2 */
24885 thr_setconcurrency(2);
24889 #if HAVE_PTHREADS < 6
24890 pthread_create(&t, pthread_attr_default, task, NULL);
24892 pthread_create(&t, NULL, task, NULL);
24895 /* make sure task runs first */
24898 #elif defined( HAVE_SCHED_YIELD )
24900 #elif defined( HAVE_PTHREAD_YIELD )
24907 rm -f conftest$ac_exeext
24908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24909 (eval $ac_link) 2>&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; }; then
24918 ol_cv_pthread_select_yields=no
24920 echo "$as_me: program exited with status $ac_status" >&5
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24924 ( exit $ac_status )
24925 ol_cv_pthread_select_yields=yes
24927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24930 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24931 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24933 if test $ol_cv_pthread_select_yields = cross ; then
24934 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24935 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24936 { (exit 1); exit 1; }; }
24939 if test $ol_cv_pthread_select_yields = yes ; then
24940 ol_with_yielding_select=yes
24944 CPPFLAGS="$save_CPPFLAGS"
24947 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24948 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24949 { (exit 1); exit 1; }; }
24953 if test $ol_with_threads = posix ; then
24954 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24955 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24956 { (exit 1); exit 1; }; }
24961 case $ol_with_threads in auto | yes | mach)
24965 for ac_header in mach/cthreads.h cthreads.h
24967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24969 echo "$as_me:$LINENO: checking for $ac_header" >&5
24970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24977 # Is the header compilable?
24978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 #include <$ac_header>
24989 rm -f conftest.$ac_objext
24990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24991 (eval $ac_compile) 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } &&
24998 { ac_try='test -z "$ac_c_werror_flag"
24999 || test ! -s conftest.err'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest.$ac_objext'
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 ac_header_compiler=yes
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_header_compiler=no
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25020 echo "${ECHO_T}$ac_header_compiler" >&6
25022 # Is the header present?
25023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 #include <$ac_header>
25033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } >/dev/null; then
25041 if test -s conftest.err; then
25042 ac_cpp_err=$ac_c_preproc_warn_flag
25043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25050 if test -z "$ac_cpp_err"; then
25051 ac_header_preproc=yes
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_header_preproc=no
25058 rm -f conftest.err conftest.$ac_ext
25059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060 echo "${ECHO_T}$ac_header_preproc" >&6
25062 # So? What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25069 ac_header_preproc=yes
25072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25086 ## --------------------------------------------- ##
25087 ## Report this to <http://www.openldap.org/its/> ##
25088 ## --------------------------------------------- ##
25091 sed "s/^/$as_me: WARNING: /" >&2
25094 echo "$as_me:$LINENO: checking for $ac_header" >&5
25095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 eval "$as_ac_Header=\$ac_header_preproc"
25101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25106 cat >>confdefs.h <<_ACEOF
25107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25114 if test $ac_cv_header_mach_cthreads_h = yes ; then
25115 ol_with_threads=found
25117 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25118 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25119 if test "${ac_cv_func_cthread_fork+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 cat >conftest.$ac_ext <<_ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h. */
25128 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25130 #define cthread_fork innocuous_cthread_fork
25132 /* System header to define __stub macros and hopefully few prototypes,
25133 which can conflict with char cthread_fork (); below.
25134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25135 <limits.h> exists even on freestanding compilers. */
25138 # include <limits.h>
25140 # include <assert.h>
25143 #undef cthread_fork
25145 /* Override any gcc2 internal prototype to avoid an error. */
25150 /* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152 char cthread_fork ();
25153 /* The GNU C library defines this for functions which it implements
25154 to always fail with ENOSYS. Some functions are actually named
25155 something starting with __ and the normal name is an alias. */
25156 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25159 char (*f) () = cthread_fork;
25168 return f != cthread_fork;
25173 rm -f conftest.$ac_objext conftest$ac_exeext
25174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25175 (eval $ac_link) 2>conftest.er1
25177 grep -v '^ *+' conftest.er1 >conftest.err
25179 cat conftest.err >&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
25182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest$ac_exeext'
25190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_cv_func_cthread_fork=yes
25197 echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25200 ac_cv_func_cthread_fork=no
25202 rm -f conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
25205 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25206 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25207 if test $ac_cv_func_cthread_fork = yes; then
25208 ol_link_threads=yes
25212 if test $ol_link_threads = no ; then
25213 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25214 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25215 if test "${ol_cv_cthread_all_load+set}" = set; then
25216 echo $ECHO_N "(cached) $ECHO_C" >&6
25220 LIBS="-all_load $LIBS"
25221 cat >conftest.$ac_ext <<_ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h. */
25227 #include <mach/cthreads.h>
25232 cthread_fork((void *)0, (void *)0);
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240 (eval $ac_link) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
25247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ol_cv_cthread_all_load=yes
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ol_cv_cthread_all_load=no
25267 rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
25272 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25273 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25275 if test $ol_cv_cthread_all_load = yes ; then
25276 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25277 ol_link_threads=mach
25278 ol_with_threads=found
25282 elif test $ac_cv_header_cthreads_h = yes ; then
25284 ol_with_threads=found
25287 LIBS="$LIBS -lthreads"
25288 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25289 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25290 if test "${ac_cv_func_cthread_fork+set}" = set; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25299 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25301 #define cthread_fork innocuous_cthread_fork
25303 /* System header to define __stub macros and hopefully few prototypes,
25304 which can conflict with char cthread_fork (); below.
25305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25306 <limits.h> exists even on freestanding compilers. */
25309 # include <limits.h>
25311 # include <assert.h>
25314 #undef cthread_fork
25316 /* Override any gcc2 internal prototype to avoid an error. */
25321 /* We use char because int might match the return type of a gcc2
25322 builtin and then its argument prototype would still apply. */
25323 char cthread_fork ();
25324 /* The GNU C library defines this for functions which it implements
25325 to always fail with ENOSYS. Some functions are actually named
25326 something starting with __ and the normal name is an alias. */
25327 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25330 char (*f) () = cthread_fork;
25339 return f != cthread_fork;
25344 rm -f conftest.$ac_objext conftest$ac_exeext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25346 (eval $ac_link) 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_c_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest$ac_exeext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_func_cthread_fork=yes
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_cv_func_cthread_fork=no
25373 rm -f conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
25376 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25377 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25378 if test $ac_cv_func_cthread_fork = yes; then
25379 ol_link_threads=yes
25384 if test $ol_link_threads = yes ; then
25385 LTHREAD_LIBS="-lthreads"
25386 ol_link_threads=mach
25387 ol_with_threads=found
25389 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25390 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25391 { (exit 1); exit 1; }; }
25394 elif test $ol_with_threads = mach ; then
25395 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25396 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25397 { (exit 1); exit 1; }; }
25400 if test $ol_link_threads = mach ; then
25402 cat >>confdefs.h <<\_ACEOF
25403 #define HAVE_MACH_CTHREADS 1
25406 elif test $ol_with_threads = found ; then
25407 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25408 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25409 { (exit 1); exit 1; }; }
25414 case $ol_with_threads in auto | yes | pth)
25417 for ac_header in pth.h
25419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25421 echo "$as_me:$LINENO: checking for $ac_header" >&5
25422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25429 # Is the header compilable?
25430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <$ac_header>
25441 rm -f conftest.$ac_objext
25442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25443 (eval $ac_compile) 2>conftest.er1
25445 grep -v '^ *+' conftest.er1 >conftest.err
25447 cat conftest.err >&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); } &&
25450 { ac_try='test -z "$ac_c_werror_flag"
25451 || test ! -s conftest.err'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; } &&
25457 { ac_try='test -s conftest.$ac_objext'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_header_compiler=yes
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ac_header_compiler=no
25470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472 echo "${ECHO_T}$ac_header_compiler" >&6
25474 # Is the header present?
25475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 #include <$ac_header>
25485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } >/dev/null; then
25493 if test -s conftest.err; then
25494 ac_cpp_err=$ac_c_preproc_warn_flag
25495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25502 if test -z "$ac_cpp_err"; then
25503 ac_header_preproc=yes
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 ac_header_preproc=no
25510 rm -f conftest.err conftest.$ac_ext
25511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6
25514 # So? What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25521 ac_header_preproc=yes
25524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25538 ## --------------------------------------------- ##
25539 ## Report this to <http://www.openldap.org/its/> ##
25540 ## --------------------------------------------- ##
25543 sed "s/^/$as_me: WARNING: /" >&2
25546 echo "$as_me:$LINENO: checking for $ac_header" >&5
25547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 eval "$as_ac_Header=\$ac_header_preproc"
25553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25558 cat >>confdefs.h <<_ACEOF
25559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25567 if test $ac_cv_header_pth_h = yes ; then
25568 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25569 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25570 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25573 ac_check_lib_save_LIBS=$LIBS
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25582 /* Override any gcc2 internal prototype to avoid an error. */
25586 /* We use char because int might match the return type of a gcc2
25587 builtin and then its argument prototype would still apply. */
25588 char pth_version ();
25597 rm -f conftest.$ac_objext conftest$ac_exeext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599 (eval $ac_link) 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } &&
25606 { ac_try='test -z "$ac_c_werror_flag"
25607 || test ! -s conftest.err'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; } &&
25613 { ac_try='test -s conftest$ac_exeext'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 ac_cv_lib_pth_pth_version=yes
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25624 ac_cv_lib_pth_pth_version=no
25626 rm -f conftest.err conftest.$ac_objext \
25627 conftest$ac_exeext conftest.$ac_ext
25628 LIBS=$ac_check_lib_save_LIBS
25630 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25631 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25632 if test $ac_cv_lib_pth_pth_version = yes; then
25639 if test $have_pth = yes ; then
25641 cat >>confdefs.h <<\_ACEOF
25642 #define HAVE_GNU_PTH 1
25645 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25646 ol_link_threads=pth
25647 ol_with_threads=found
25649 if test $ol_with_yielding_select = auto ; then
25650 ol_with_yielding_select=yes
25657 case $ol_with_threads in auto | yes | lwp)
25661 for ac_header in thread.h synch.h
25663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25665 echo "$as_me:$LINENO: checking for $ac_header" >&5
25666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25673 # Is the header compilable?
25674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 $ac_includes_default
25683 #include <$ac_header>
25685 rm -f conftest.$ac_objext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687 (eval $ac_compile) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } &&
25694 { ac_try='test -z "$ac_c_werror_flag"
25695 || test ! -s conftest.err'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest.$ac_objext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 ac_header_compiler=yes
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 ac_header_compiler=no
25714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25716 echo "${ECHO_T}$ac_header_compiler" >&6
25718 # Is the header present?
25719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25721 cat >conftest.$ac_ext <<_ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h. */
25727 #include <$ac_header>
25729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } >/dev/null; then
25737 if test -s conftest.err; then
25738 ac_cpp_err=$ac_c_preproc_warn_flag
25739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25746 if test -z "$ac_cpp_err"; then
25747 ac_header_preproc=yes
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 ac_header_preproc=no
25754 rm -f conftest.err conftest.$ac_ext
25755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25756 echo "${ECHO_T}$ac_header_preproc" >&6
25758 # So? What about this header?
25759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25765 ac_header_preproc=yes
25768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25782 ## --------------------------------------------- ##
25783 ## Report this to <http://www.openldap.org/its/> ##
25784 ## --------------------------------------------- ##
25787 sed "s/^/$as_me: WARNING: /" >&2
25790 echo "$as_me:$LINENO: checking for $ac_header" >&5
25791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25793 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 eval "$as_ac_Header=\$ac_header_preproc"
25797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25802 cat >>confdefs.h <<_ACEOF
25803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25810 if test $ac_cv_header_thread_h = yes &&
25811 test $ac_cv_header_synch_h = yes ; then
25812 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25813 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25814 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25817 ac_check_lib_save_LIBS=$LIBS
25818 LIBS="-lthread $LIBS"
25819 cat >conftest.$ac_ext <<_ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h. */
25826 /* Override any gcc2 internal prototype to avoid an error. */
25830 /* We use char because int might match the return type of a gcc2
25831 builtin and then its argument prototype would still apply. */
25832 char thr_create ();
25841 rm -f conftest.$ac_objext conftest$ac_exeext
25842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25843 (eval $ac_link) 2>conftest.er1
25845 grep -v '^ *+' conftest.er1 >conftest.err
25847 cat conftest.err >&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } &&
25850 { ac_try='test -z "$ac_c_werror_flag"
25851 || test ! -s conftest.err'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; } &&
25857 { ac_try='test -s conftest$ac_exeext'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; }; then
25863 ac_cv_lib_thread_thr_create=yes
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 ac_cv_lib_thread_thr_create=no
25870 rm -f conftest.err conftest.$ac_objext \
25871 conftest$ac_exeext conftest.$ac_ext
25872 LIBS=$ac_check_lib_save_LIBS
25874 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25875 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25876 if test $ac_cv_lib_thread_thr_create = yes; then
25883 if test $have_thr = yes ; then
25885 cat >>confdefs.h <<\_ACEOF
25889 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25890 ol_link_threads=thr
25892 if test $ol_with_yielding_select = auto ; then
25893 ol_with_yielding_select=yes
25899 thr_setconcurrency \
25900 thr_getconcurrency \
25903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25904 echo "$as_me:$LINENO: checking for $ac_func" >&5
25905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25906 if eval "test \"\${$as_ac_var+set}\" = set"; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25909 cat >conftest.$ac_ext <<_ACEOF
25912 cat confdefs.h >>conftest.$ac_ext
25913 cat >>conftest.$ac_ext <<_ACEOF
25914 /* end confdefs.h. */
25915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25917 #define $ac_func innocuous_$ac_func
25919 /* System header to define __stub macros and hopefully few prototypes,
25920 which can conflict with char $ac_func (); below.
25921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25922 <limits.h> exists even on freestanding compilers. */
25925 # include <limits.h>
25927 # include <assert.h>
25932 /* Override any gcc2 internal prototype to avoid an error. */
25937 /* We use char because int might match the return type of a gcc2
25938 builtin and then its argument prototype would still apply. */
25940 /* The GNU C library defines this for functions which it implements
25941 to always fail with ENOSYS. Some functions are actually named
25942 something starting with __ and the normal name is an alias. */
25943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25946 char (*f) () = $ac_func;
25955 return f != $ac_func;
25960 rm -f conftest.$ac_objext conftest$ac_exeext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25962 (eval $ac_link) 2>conftest.er1
25964 grep -v '^ *+' conftest.er1 >conftest.err
25966 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 eval "$as_ac_var=yes"
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25987 eval "$as_ac_var=no"
25989 rm -f conftest.err conftest.$ac_objext \
25990 conftest$ac_exeext conftest.$ac_ext
25992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25994 if test `eval echo '${'$as_ac_var'}'` = yes; then
25995 cat >>confdefs.h <<_ACEOF
25996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26006 for ac_header in lwp/lwp.h
26008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010 echo "$as_me:$LINENO: checking for $ac_header" >&5
26011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26013 echo $ECHO_N "(cached) $ECHO_C" >&6
26015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26018 # Is the header compilable?
26019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 $ac_includes_default
26028 #include <$ac_header>
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 ac_header_compiler=yes
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26057 ac_header_compiler=no
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26061 echo "${ECHO_T}$ac_header_compiler" >&6
26063 # Is the header present?
26064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26066 cat >conftest.$ac_ext <<_ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26072 #include <$ac_header>
26074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26077 grep -v '^ *+' conftest.er1 >conftest.err
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } >/dev/null; then
26082 if test -s conftest.err; then
26083 ac_cpp_err=$ac_c_preproc_warn_flag
26084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26091 if test -z "$ac_cpp_err"; then
26092 ac_header_preproc=yes
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26097 ac_header_preproc=no
26099 rm -f conftest.err conftest.$ac_ext
26100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26101 echo "${ECHO_T}$ac_header_preproc" >&6
26103 # So? What about this header?
26104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26110 ac_header_preproc=yes
26113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26127 ## --------------------------------------------- ##
26128 ## Report this to <http://www.openldap.org/its/> ##
26129 ## --------------------------------------------- ##
26132 sed "s/^/$as_me: WARNING: /" >&2
26135 echo "$as_me:$LINENO: checking for $ac_header" >&5
26136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 eval "$as_ac_Header=\$ac_header_preproc"
26142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26147 cat >>confdefs.h <<_ACEOF
26148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26155 if test $ac_cv_header_lwp_lwp_h = yes ; then
26156 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26157 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26158 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26161 ac_check_lib_save_LIBS=$LIBS
26163 cat >conftest.$ac_ext <<_ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26170 /* Override any gcc2 internal prototype to avoid an error. */
26174 /* We use char because int might match the return type of a gcc2
26175 builtin and then its argument prototype would still apply. */
26176 char lwp_create ();
26185 rm -f conftest.$ac_objext conftest$ac_exeext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26187 (eval $ac_link) 2>conftest.er1
26189 grep -v '^ *+' conftest.er1 >conftest.err
26191 cat conftest.err >&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try='test -z "$ac_c_werror_flag"
26195 || test ! -s conftest.err'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; } &&
26201 { ac_try='test -s conftest$ac_exeext'
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; }; then
26207 ac_cv_lib_lwp_lwp_create=yes
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26212 ac_cv_lib_lwp_lwp_create=no
26214 rm -f conftest.err conftest.$ac_objext \
26215 conftest$ac_exeext conftest.$ac_ext
26216 LIBS=$ac_check_lib_save_LIBS
26218 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26219 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26220 if test $ac_cv_lib_lwp_lwp_create = yes; then
26227 if test $have_lwp = yes ; then
26229 cat >>confdefs.h <<\_ACEOF
26233 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26234 ol_link_threads=lwp
26236 if test $ol_with_yielding_select = auto ; then
26237 ol_with_yielding_select=no
26244 if test $ol_with_yielding_select = yes ; then
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_YIELDING_SELECT 1
26252 if test $ol_with_threads = manual ; then
26253 ol_link_threads=yes
26255 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26256 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26260 for ac_header in pthread.h sched.h
26262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264 echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26272 # Is the header compilable?
26273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 $ac_includes_default
26282 #include <$ac_header>
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286 (eval $ac_compile) 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } &&
26293 { ac_try='test -z "$ac_c_werror_flag"
26294 || test ! -s conftest.err'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; } &&
26300 { ac_try='test -s conftest.$ac_objext'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; }; then
26306 ac_header_compiler=yes
26308 echo "$as_me: failed program was:" >&5
26309 sed 's/^/| /' conftest.$ac_ext >&5
26311 ac_header_compiler=no
26313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26315 echo "${ECHO_T}$ac_header_compiler" >&6
26317 # Is the header present?
26318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26320 cat >conftest.$ac_ext <<_ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26326 #include <$ac_header>
26328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26331 grep -v '^ *+' conftest.er1 >conftest.err
26333 cat conftest.err >&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } >/dev/null; then
26336 if test -s conftest.err; then
26337 ac_cpp_err=$ac_c_preproc_warn_flag
26338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26345 if test -z "$ac_cpp_err"; then
26346 ac_header_preproc=yes
26348 echo "$as_me: failed program was:" >&5
26349 sed 's/^/| /' conftest.$ac_ext >&5
26351 ac_header_preproc=no
26353 rm -f conftest.err conftest.$ac_ext
26354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26355 echo "${ECHO_T}$ac_header_preproc" >&6
26357 # So? What about this header?
26358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26364 ac_header_preproc=yes
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26381 ## --------------------------------------------- ##
26382 ## Report this to <http://www.openldap.org/its/> ##
26383 ## --------------------------------------------- ##
26386 sed "s/^/$as_me: WARNING: /" >&2
26389 echo "$as_me:$LINENO: checking for $ac_header" >&5
26390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26394 eval "$as_ac_Header=\$ac_header_preproc"
26396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26401 cat >>confdefs.h <<_ACEOF
26402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26411 for ac_func in sched_yield pthread_yield
26413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26414 echo "$as_me:$LINENO: checking for $ac_func" >&5
26415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26416 if eval "test \"\${$as_ac_var+set}\" = set"; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26427 #define $ac_func innocuous_$ac_func
26429 /* System header to define __stub macros and hopefully few prototypes,
26430 which can conflict with char $ac_func (); below.
26431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26432 <limits.h> exists even on freestanding compilers. */
26435 # include <limits.h>
26437 # include <assert.h>
26442 /* Override any gcc2 internal prototype to avoid an error. */
26447 /* We use char because int might match the return type of a gcc2
26448 builtin and then its argument prototype would still apply. */
26450 /* The GNU C library defines this for functions which it implements
26451 to always fail with ENOSYS. Some functions are actually named
26452 something starting with __ and the normal name is an alias. */
26453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26456 char (*f) () = $ac_func;
26465 return f != $ac_func;
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26472 (eval $ac_link) 2>conftest.er1
26474 grep -v '^ *+' conftest.er1 >conftest.err
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } &&
26479 { ac_try='test -z "$ac_c_werror_flag"
26480 || test ! -s conftest.err'
26481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); }; } &&
26486 { ac_try='test -s conftest$ac_exeext'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; }; then
26492 eval "$as_ac_var=yes"
26494 echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 eval "$as_ac_var=no"
26499 rm -f conftest.err conftest.$ac_objext \
26500 conftest$ac_exeext conftest.$ac_ext
26502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26504 if test `eval echo '${'$as_ac_var'}'` = yes; then
26505 cat >>confdefs.h <<_ACEOF
26506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26513 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26514 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26515 if test "${ol_cv_header_linux_threads+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 cat >conftest.$ac_ext <<_ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 #include <pthread.h>
26526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26527 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26528 ol_cv_header_linux_threads=yes
26530 ol_cv_header_linux_threads=no
26536 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26537 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26538 if test $ol_cv_header_linux_threads = yes; then
26540 cat >>confdefs.h <<\_ACEOF
26541 #define HAVE_LINUX_THREADS 1
26548 for ac_header in mach/cthreads.h
26550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26552 echo "$as_me:$LINENO: checking for $ac_header" >&5
26553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26560 # Is the header compilable?
26561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 $ac_includes_default
26570 #include <$ac_header>
26572 rm -f conftest.$ac_objext
26573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26574 (eval $ac_compile) 2>conftest.er1
26576 grep -v '^ *+' conftest.er1 >conftest.err
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } &&
26581 { ac_try='test -z "$ac_c_werror_flag"
26582 || test ! -s conftest.err'
26583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26584 (eval $ac_try) 2>&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); }; } &&
26588 { ac_try='test -s conftest.$ac_objext'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
26594 ac_header_compiler=yes
26596 echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26599 ac_header_compiler=no
26601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26603 echo "${ECHO_T}$ac_header_compiler" >&6
26605 # Is the header present?
26606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26608 cat >conftest.$ac_ext <<_ACEOF
26611 cat confdefs.h >>conftest.$ac_ext
26612 cat >>conftest.$ac_ext <<_ACEOF
26613 /* end confdefs.h. */
26614 #include <$ac_header>
26616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26619 grep -v '^ *+' conftest.er1 >conftest.err
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } >/dev/null; then
26624 if test -s conftest.err; then
26625 ac_cpp_err=$ac_c_preproc_warn_flag
26626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26633 if test -z "$ac_cpp_err"; then
26634 ac_header_preproc=yes
26636 echo "$as_me: failed program was:" >&5
26637 sed 's/^/| /' conftest.$ac_ext >&5
26639 ac_header_preproc=no
26641 rm -f conftest.err conftest.$ac_ext
26642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26643 echo "${ECHO_T}$ac_header_preproc" >&6
26645 # So? What about this header?
26646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26652 ac_header_preproc=yes
26655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26669 ## --------------------------------------------- ##
26670 ## Report this to <http://www.openldap.org/its/> ##
26671 ## --------------------------------------------- ##
26674 sed "s/^/$as_me: WARNING: /" >&2
26677 echo "$as_me:$LINENO: checking for $ac_header" >&5
26678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26682 eval "$as_ac_Header=\$ac_header_preproc"
26684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26689 cat >>confdefs.h <<_ACEOF
26690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26698 for ac_header in lwp/lwp.h
26700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26702 echo "$as_me:$LINENO: checking for $ac_header" >&5
26703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26710 # Is the header compilable?
26711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26713 cat >conftest.$ac_ext <<_ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h. */
26719 $ac_includes_default
26720 #include <$ac_header>
26722 rm -f conftest.$ac_objext
26723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26724 (eval $ac_compile) 2>conftest.er1
26726 grep -v '^ *+' conftest.er1 >conftest.err
26728 cat conftest.err >&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } &&
26731 { ac_try='test -z "$ac_c_werror_flag"
26732 || test ! -s conftest.err'
26733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26734 (eval $ac_try) 2>&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); }; } &&
26738 { ac_try='test -s conftest.$ac_objext'
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; }; then
26744 ac_header_compiler=yes
26746 echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26749 ac_header_compiler=no
26751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26753 echo "${ECHO_T}$ac_header_compiler" >&6
26755 # Is the header present?
26756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26758 cat >conftest.$ac_ext <<_ACEOF
26761 cat confdefs.h >>conftest.$ac_ext
26762 cat >>conftest.$ac_ext <<_ACEOF
26763 /* end confdefs.h. */
26764 #include <$ac_header>
26766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26769 grep -v '^ *+' conftest.er1 >conftest.err
26771 cat conftest.err >&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } >/dev/null; then
26774 if test -s conftest.err; then
26775 ac_cpp_err=$ac_c_preproc_warn_flag
26776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26783 if test -z "$ac_cpp_err"; then
26784 ac_header_preproc=yes
26786 echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26789 ac_header_preproc=no
26791 rm -f conftest.err conftest.$ac_ext
26792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26793 echo "${ECHO_T}$ac_header_preproc" >&6
26795 # So? What about this header?
26796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26802 ac_header_preproc=yes
26805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26819 ## --------------------------------------------- ##
26820 ## Report this to <http://www.openldap.org/its/> ##
26821 ## --------------------------------------------- ##
26824 sed "s/^/$as_me: WARNING: /" >&2
26827 echo "$as_me:$LINENO: checking for $ac_header" >&5
26828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26830 echo $ECHO_N "(cached) $ECHO_C" >&6
26832 eval "$as_ac_Header=\$ac_header_preproc"
26834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26839 cat >>confdefs.h <<_ACEOF
26840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26849 for ac_header in thread.h synch.h
26851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26853 echo "$as_me:$LINENO: checking for $ac_header" >&5
26854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26861 # Is the header compilable?
26862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26864 cat >conftest.$ac_ext <<_ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h. */
26870 $ac_includes_default
26871 #include <$ac_header>
26873 rm -f conftest.$ac_objext
26874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26875 (eval $ac_compile) 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } &&
26882 { ac_try='test -z "$ac_c_werror_flag"
26883 || test ! -s conftest.err'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } &&
26889 { ac_try='test -s conftest.$ac_objext'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 ac_header_compiler=yes
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ac_header_compiler=no
26902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26904 echo "${ECHO_T}$ac_header_compiler" >&6
26906 # Is the header present?
26907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 #include <$ac_header>
26917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26920 grep -v '^ *+' conftest.er1 >conftest.err
26922 cat conftest.err >&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } >/dev/null; then
26925 if test -s conftest.err; then
26926 ac_cpp_err=$ac_c_preproc_warn_flag
26927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26934 if test -z "$ac_cpp_err"; then
26935 ac_header_preproc=yes
26937 echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26940 ac_header_preproc=no
26942 rm -f conftest.err conftest.$ac_ext
26943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26944 echo "${ECHO_T}$ac_header_preproc" >&6
26946 # So? What about this header?
26947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26953 ac_header_preproc=yes
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26970 ## --------------------------------------------- ##
26971 ## Report this to <http://www.openldap.org/its/> ##
26972 ## --------------------------------------------- ##
26975 sed "s/^/$as_me: WARNING: /" >&2
26978 echo "$as_me:$LINENO: checking for $ac_header" >&5
26979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 eval "$as_ac_Header=\$ac_header_preproc"
26985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26990 cat >>confdefs.h <<_ACEOF
26991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27000 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27001 cat >>confdefs.h <<\_ACEOF
27002 #define REENTRANT 1
27005 cat >>confdefs.h <<\_ACEOF
27006 #define _REENTRANT 1
27009 cat >>confdefs.h <<\_ACEOF
27010 #define THREAD_SAFE 1
27013 cat >>confdefs.h <<\_ACEOF
27014 #define _THREAD_SAFE 1
27017 cat >>confdefs.h <<\_ACEOF
27018 #define THREADSAFE 1
27021 cat >>confdefs.h <<\_ACEOF
27022 #define _THREADSAFE 1
27025 cat >>confdefs.h <<\_ACEOF
27026 #define _SGI_MP_SOURCE 1
27030 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27031 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27032 if test "${ol_cv_errno_thread_specific+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 cat >conftest.$ac_ext <<_ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h. */
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053 (eval $ac_link) 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } &&
27060 { ac_try='test -z "$ac_c_werror_flag"
27061 || test ! -s conftest.err'
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest$ac_exeext'
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
27073 ol_cv_errno_thread_specific=yes
27075 echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27078 ol_cv_errno_thread_specific=no
27080 rm -f conftest.err conftest.$ac_objext \
27081 conftest$ac_exeext conftest.$ac_ext
27084 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27085 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27087 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27088 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27089 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27108 rm -f conftest.$ac_objext conftest$ac_exeext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>conftest.er1
27112 grep -v '^ *+' conftest.er1 >conftest.err
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } &&
27117 { ac_try='test -z "$ac_c_werror_flag"
27118 || test ! -s conftest.err'
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27130 ol_cv_h_errno_thread_specific=yes
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27135 ol_cv_h_errno_thread_specific=no
27137 rm -f conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27141 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27142 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27144 if test $ol_cv_errno_thread_specific != yes ||
27145 test $ol_cv_h_errno_thread_specific != yes ; then
27146 LIBS="$LTHREAD_LIBS $LIBS"
27152 if test $ol_link_threads = no ; then
27153 if test $ol_with_threads = yes ; then
27154 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27155 echo "$as_me: error: no suitable thread support" >&2;}
27156 { (exit 1); exit 1; }; }
27159 if test $ol_with_threads = auto ; then
27160 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27161 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27166 cat >>confdefs.h <<\_ACEOF
27167 #define NO_THREADS 1
27176 if test $ol_link_threads != no ; then
27178 cat >>confdefs.h <<\_ACEOF
27179 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27189 gethostbyname_r gethostbyaddr_r \
27192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27193 echo "$as_me:$LINENO: checking for $ac_func" >&5
27194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_var+set}\" = set"; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27206 #define $ac_func innocuous_$ac_func
27208 /* System header to define __stub macros and hopefully few prototypes,
27209 which can conflict with char $ac_func (); below.
27210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27211 <limits.h> exists even on freestanding compilers. */
27214 # include <limits.h>
27216 # include <assert.h>
27221 /* Override any gcc2 internal prototype to avoid an error. */
27226 /* We use char because int might match the return type of a gcc2
27227 builtin and then its argument prototype would still apply. */
27229 /* The GNU C library defines this for functions which it implements
27230 to always fail with ENOSYS. Some functions are actually named
27231 something starting with __ and the normal name is an alias. */
27232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27235 char (*f) () = $ac_func;
27244 return f != $ac_func;
27249 rm -f conftest.$ac_objext conftest$ac_exeext
27250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27251 (eval $ac_link) 2>conftest.er1
27253 grep -v '^ *+' conftest.er1 >conftest.err
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } &&
27258 { ac_try='test -z "$ac_c_werror_flag"
27259 || test ! -s conftest.err'
27260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261 (eval $ac_try) 2>&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); }; } &&
27265 { ac_try='test -s conftest$ac_exeext'
27266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267 (eval $ac_try) 2>&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; }; then
27271 eval "$as_ac_var=yes"
27273 echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27276 eval "$as_ac_var=no"
27278 rm -f conftest.err conftest.$ac_objext \
27279 conftest$ac_exeext conftest.$ac_ext
27281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27283 if test `eval echo '${'$as_ac_var'}'` = yes; then
27284 cat >>confdefs.h <<_ACEOF
27285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27292 if test "$ac_cv_func_ctime_r" = no ; then
27293 ol_cv_func_ctime_r_nargs=0
27295 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27296 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27297 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 cat >conftest.$ac_ext <<_ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h. */
27310 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27315 rm -f conftest.$ac_objext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27317 (eval $ac_compile) 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 ol_cv_func_ctime_r_nargs3=yes
27339 echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27342 ol_cv_func_ctime_r_nargs3=no
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346 cat >conftest.$ac_ext <<_ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h. */
27356 time_t ti; char *buffer; ctime_r(&ti,buffer);
27361 rm -f conftest.$ac_objext
27362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27363 (eval $ac_compile) 2>conftest.er1
27365 grep -v '^ *+' conftest.er1 >conftest.err
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } &&
27370 { ac_try='test -z "$ac_c_werror_flag"
27371 || test ! -s conftest.err'
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest.$ac_objext'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 ol_cv_func_ctime_r_nargs2=yes
27385 echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27388 ol_cv_func_ctime_r_nargs2=no
27390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27392 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27393 test $ol_cv_func_ctime_r_nargs2 = no ; then
27395 ol_cv_func_ctime_r_nargs=3
27397 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27398 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27400 ol_cv_func_ctime_r_nargs=2
27403 ol_cv_func_ctime_r_nargs=0
27407 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27408 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27410 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27412 cat >>confdefs.h <<_ACEOF
27413 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27420 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27421 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27422 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27423 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27432 #include <sys/types.h>
27433 #include <sys/socket.h>
27434 #include <netinet/in.h>
27436 #define BUFSIZE (sizeof(struct hostent)+10)
27440 struct hostent hent; char buffer[BUFSIZE];
27441 int bufsize=BUFSIZE;int h_errno;
27442 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27443 buffer, bufsize, &h_errno);
27448 rm -f conftest.$ac_objext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450 (eval $ac_compile) 2>conftest.er1
27452 grep -v '^ *+' conftest.er1 >conftest.err
27454 cat conftest.err >&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
27457 { ac_try='test -z "$ac_c_werror_flag"
27458 || test ! -s conftest.err'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; } &&
27464 { ac_try='test -s conftest.$ac_objext'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
27470 ol_cv_func_gethostbyname_r_nargs5=yes
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 ol_cv_func_gethostbyname_r_nargs5=no
27477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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;struct hostent *rhent;
27494 char buffer[BUFSIZE];
27495 int bufsize=BUFSIZE;int h_errno;
27496 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27502 rm -f conftest.$ac_objext
27503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27504 (eval $ac_compile) 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag"
27512 || test ! -s conftest.err'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest.$ac_objext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ol_cv_func_gethostbyname_r_nargs6=yes
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27529 ol_cv_func_gethostbyname_r_nargs6=no
27531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27533 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27534 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27536 ol_cv_func_gethostbyname_r_nargs=5
27538 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27539 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27541 ol_cv_func_gethostbyname_r_nargs=6
27544 ol_cv_func_gethostbyname_r_nargs=0
27548 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27549 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27550 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27552 cat >>confdefs.h <<_ACEOF
27553 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27559 ol_cv_func_gethostbyname_r_nargs=0
27562 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27563 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27564 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27565 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27566 echo $ECHO_N "(cached) $ECHO_C" >&6
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 #include <sys/types.h>
27575 #include <sys/socket.h>
27576 #include <netinet/in.h>
27578 #define BUFSIZE (sizeof(struct hostent)+10)
27582 struct hostent hent; char buffer[BUFSIZE];
27583 struct in_addr add;
27584 size_t alen=sizeof(struct in_addr);
27585 int bufsize=BUFSIZE;int h_errno;
27586 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27587 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27592 rm -f conftest.$ac_objext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27594 (eval $ac_compile) 2>conftest.er1
27596 grep -v '^ *+' conftest.er1 >conftest.err
27598 cat conftest.err >&5
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } &&
27601 { ac_try='test -z "$ac_c_werror_flag"
27602 || test ! -s conftest.err'
27603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604 (eval $ac_try) 2>&5
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; } &&
27608 { ac_try='test -s conftest.$ac_objext'
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; }; then
27614 ol_cv_func_gethostbyaddr_r_nargs7=yes
27616 echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 ol_cv_func_gethostbyaddr_r_nargs7=no
27621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27623 cat >conftest.$ac_ext <<_ACEOF
27626 cat confdefs.h >>conftest.$ac_ext
27627 cat >>conftest.$ac_ext <<_ACEOF
27628 /* end confdefs.h. */
27629 #include <sys/types.h>
27630 #include <sys/socket.h>
27631 #include <netinet/in.h>
27633 #define BUFSIZE (sizeof(struct hostent)+10)
27637 struct hostent hent;
27638 struct hostent *rhent; char buffer[BUFSIZE];
27639 struct in_addr add;
27640 size_t alen=sizeof(struct in_addr);
27641 int bufsize=BUFSIZE;int h_errno;
27642 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27643 alen, AF_INET, &hent, buffer, bufsize,
27649 rm -f conftest.$ac_objext
27650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651 (eval $ac_compile) 2>conftest.er1
27653 grep -v '^ *+' conftest.er1 >conftest.err
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest.$ac_objext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ol_cv_func_gethostbyaddr_r_nargs8=yes
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 ol_cv_func_gethostbyaddr_r_nargs8=no
27678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27680 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27681 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27683 ol_cv_func_gethostbyaddr_r_nargs=7
27685 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27686 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27688 ol_cv_func_gethostbyaddr_r_nargs=8
27691 ol_cv_func_gethostbyaddr_r_nargs=0
27695 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27696 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27697 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27699 cat >>confdefs.h <<_ACEOF
27700 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27706 ol_cv_func_gethostbyaddr_r_nargs=0
27711 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27713 if test $ol_enable_ldbm_api = bcompat; then \
27716 for ac_header in db_185.h db.h
27718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27720 echo "$as_me:$LINENO: checking for $ac_header" >&5
27721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27728 # Is the header compilable?
27729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27731 cat >conftest.$ac_ext <<_ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27737 $ac_includes_default
27738 #include <$ac_header>
27740 rm -f conftest.$ac_objext
27741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27742 (eval $ac_compile) 2>conftest.er1
27744 grep -v '^ *+' conftest.er1 >conftest.err
27746 cat conftest.err >&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } &&
27749 { ac_try='test -z "$ac_c_werror_flag"
27750 || test ! -s conftest.err'
27751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27752 (eval $ac_try) 2>&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; } &&
27756 { ac_try='test -s conftest.$ac_objext'
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762 ac_header_compiler=yes
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27767 ac_header_compiler=no
27769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27771 echo "${ECHO_T}$ac_header_compiler" >&6
27773 # Is the header present?
27774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27776 cat >conftest.$ac_ext <<_ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h. */
27782 #include <$ac_header>
27784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } >/dev/null; then
27792 if test -s conftest.err; then
27793 ac_cpp_err=$ac_c_preproc_warn_flag
27794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27801 if test -z "$ac_cpp_err"; then
27802 ac_header_preproc=yes
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 ac_header_preproc=no
27809 rm -f conftest.err conftest.$ac_ext
27810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27811 echo "${ECHO_T}$ac_header_preproc" >&6
27813 # So? What about this header?
27814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27820 ac_header_preproc=yes
27823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27837 ## --------------------------------------------- ##
27838 ## Report this to <http://www.openldap.org/its/> ##
27839 ## --------------------------------------------- ##
27842 sed "s/^/$as_me: WARNING: /" >&2
27845 echo "$as_me:$LINENO: checking for $ac_header" >&5
27846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27850 eval "$as_ac_Header=\$ac_header_preproc"
27852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27857 cat >>confdefs.h <<_ACEOF
27858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27865 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27866 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27867 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27868 if test "${ol_cv_header_db1+set}" = set; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27872 cat >conftest.$ac_ext <<_ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h. */
27880 # include <db_185.h>
27885 /* this check could be improved */
27886 #ifndef DB_VERSION_MAJOR
27887 # define DB_VERSION_MAJOR 1
27890 #if DB_VERSION_MAJOR == 1
27895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27896 $EGREP "__db_version_1" >/dev/null 2>&1; then
27897 ol_cv_header_db1=yes
27899 ol_cv_header_db1=no
27904 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27905 echo "${ECHO_T}$ol_cv_header_db1" >&6
27907 if test $ol_cv_header_db1 = yes ; then
27910 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27911 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27912 if test "${ol_cv_bdb_major+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27917 if test $ol_cv_bdb_major = 0 ; then
27918 cat >conftest.$ac_ext <<_ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27926 #ifndef DB_VERSION_MAJOR
27927 # define DB_VERSION_MAJOR 1
27929 #if DB_VERSION_MAJOR == 4
27934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27935 $EGREP "__db_version" >/dev/null 2>&1; then
27943 if test $ol_cv_bdb_major = 0 ; then
27944 cat >conftest.$ac_ext <<_ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h. */
27952 #ifndef DB_VERSION_MAJOR
27953 # define DB_VERSION_MAJOR 1
27955 #if DB_VERSION_MAJOR == 3
27960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27961 $EGREP "__db_version" >/dev/null 2>&1; then
27969 if test $ol_cv_bdb_major = 0 ; then
27970 cat >conftest.$ac_ext <<_ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h. */
27978 #ifndef DB_VERSION_MAJOR
27979 # define DB_VERSION_MAJOR 1
27981 #if DB_VERSION_MAJOR == 2
27986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27987 $EGREP "__db_version" >/dev/null 2>&1; then
27995 if test $ol_cv_bdb_major = 0 ; then
27996 cat >conftest.$ac_ext <<_ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h. */
28004 #ifndef DB_VERSION_MAJOR
28005 # define DB_VERSION_MAJOR 1
28007 #if DB_VERSION_MAJOR == 1
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013 $EGREP "__db_version" >/dev/null 2>&1; then
28022 if test $ol_cv_bdb_major = 0 ; then
28023 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28024 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28025 { (exit 1); exit 1; }; }
28029 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28030 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28032 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28033 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28034 if test "${ol_cv_bdb_minor+set}" = set; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28039 if test $ol_cv_bdb_minor = 0 ; then
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28048 #ifndef DB_VERSION_MINOR
28049 # define DB_VERSION_MINOR 0
28051 #if DB_VERSION_MINOR == 9
28056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28057 $EGREP "__db_version" >/dev/null 2>&1; then
28065 if test $ol_cv_bdb_minor = 0 ; then
28066 cat >conftest.$ac_ext <<_ACEOF
28069 cat confdefs.h >>conftest.$ac_ext
28070 cat >>conftest.$ac_ext <<_ACEOF
28071 /* end confdefs.h. */
28074 #ifndef DB_VERSION_MINOR
28075 # define DB_VERSION_MINOR 0
28077 #if DB_VERSION_MINOR == 8
28082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28083 $EGREP "__db_version" >/dev/null 2>&1; then
28091 if test $ol_cv_bdb_minor = 0 ; then
28092 cat >conftest.$ac_ext <<_ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28100 #ifndef DB_VERSION_MINOR
28101 # define DB_VERSION_MINOR 0
28103 #if DB_VERSION_MINOR == 7
28108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28109 $EGREP "__db_version" >/dev/null 2>&1; then
28117 if test $ol_cv_bdb_minor = 0 ; then
28118 cat >conftest.$ac_ext <<_ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28126 #ifndef DB_VERSION_MINOR
28127 # define DB_VERSION_MINOR 0
28129 #if DB_VERSION_MINOR == 6
28134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28135 $EGREP "__db_version" >/dev/null 2>&1; then
28143 if test $ol_cv_bdb_minor = 0 ; then
28144 cat >conftest.$ac_ext <<_ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h. */
28152 #ifndef DB_VERSION_MINOR
28153 # define DB_VERSION_MINOR 0
28155 #if DB_VERSION_MINOR == 5
28160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28161 $EGREP "__db_version" >/dev/null 2>&1; then
28169 if test $ol_cv_bdb_minor = 0 ; then
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28178 #ifndef DB_VERSION_MINOR
28179 # define DB_VERSION_MINOR 0
28181 #if DB_VERSION_MINOR == 4
28186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28187 $EGREP "__db_version" >/dev/null 2>&1; then
28195 if test $ol_cv_bdb_minor = 0 ; then
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28204 #ifndef DB_VERSION_MINOR
28205 # define DB_VERSION_MINOR 0
28207 #if DB_VERSION_MINOR == 3
28212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28213 $EGREP "__db_version" >/dev/null 2>&1; then
28221 if test $ol_cv_bdb_minor = 0 ; then
28222 cat >conftest.$ac_ext <<_ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h. */
28230 #ifndef DB_VERSION_MINOR
28231 # define DB_VERSION_MINOR 0
28233 #if DB_VERSION_MINOR == 2
28238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28239 $EGREP "__db_version" >/dev/null 2>&1; then
28247 if test $ol_cv_bdb_minor = 0 ; then
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28256 #ifndef DB_VERSION_MINOR
28257 # define DB_VERSION_MINOR 0
28259 #if DB_VERSION_MINOR == 1
28264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28265 $EGREP "__db_version" >/dev/null 2>&1; then
28275 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28276 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28278 if test $ol_cv_bdb_major = 4 ; then
28279 if test $ol_cv_bdb_minor = 4 ; then
28280 if test $ol_cv_lib_db = no ; then
28281 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28282 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28283 if test "${ol_cv_db_db44+set}" = set; then
28284 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28298 #ifdef HAVE_DB_185_H
28299 # include <db_185.h>
28304 #ifndef DB_VERSION_MAJOR
28305 # define DB_VERSION_MAJOR 1
28309 #define NULL ((void*)0)
28316 #if DB_VERSION_MAJOR > 1
28319 int major, minor, patch;
28321 version = db_version( &major, &minor, &patch );
28323 if( major != DB_VERSION_MAJOR ||
28324 minor < DB_VERSION_MINOR )
28326 printf("Berkeley DB version mismatch\n"
28327 "\theader: %s\n\tlibrary: %s\n",
28328 DB_VERSION_STRING, version);
28334 #if DB_VERSION_MAJOR > 2
28335 db_env_create( NULL, 0 );
28336 #elif DB_VERSION_MAJOR > 1
28337 db_appexit( NULL );
28339 (void) dbopen( NULL, 0, 0, 0, NULL);
28346 rm -f conftest.$ac_objext conftest$ac_exeext
28347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28348 (eval $ac_link) 2>conftest.er1
28350 grep -v '^ *+' conftest.er1 >conftest.err
28352 cat conftest.err >&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try='test -z "$ac_c_werror_flag"
28356 || test ! -s conftest.err'
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; } &&
28362 { ac_try='test -s conftest$ac_exeext'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28370 echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28375 rm -f conftest.err conftest.$ac_objext \
28376 conftest$ac_exeext conftest.$ac_ext
28381 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28382 echo "${ECHO_T}$ol_cv_db_db44" >&6
28384 if test $ol_cv_db_db44 = yes ; then
28385 ol_cv_lib_db=-ldb44
28389 if test $ol_cv_lib_db = no ; then
28390 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28391 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28392 if test "${ol_cv_db_db_44+set}" = set; then
28393 echo $ECHO_N "(cached) $ECHO_C" >&6
28398 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28407 #ifdef HAVE_DB_185_H
28408 # include <db_185.h>
28413 #ifndef DB_VERSION_MAJOR
28414 # define DB_VERSION_MAJOR 1
28418 #define NULL ((void*)0)
28425 #if DB_VERSION_MAJOR > 1
28428 int major, minor, patch;
28430 version = db_version( &major, &minor, &patch );
28432 if( major != DB_VERSION_MAJOR ||
28433 minor < DB_VERSION_MINOR )
28435 printf("Berkeley DB version mismatch\n"
28436 "\theader: %s\n\tlibrary: %s\n",
28437 DB_VERSION_STRING, version);
28443 #if DB_VERSION_MAJOR > 2
28444 db_env_create( NULL, 0 );
28445 #elif DB_VERSION_MAJOR > 1
28446 db_appexit( NULL );
28448 (void) dbopen( NULL, 0, 0, 0, NULL);
28455 rm -f conftest.$ac_objext conftest$ac_exeext
28456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28457 (eval $ac_link) 2>conftest.er1
28459 grep -v '^ *+' conftest.er1 >conftest.err
28461 cat conftest.err >&5
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); } &&
28464 { ac_try='test -z "$ac_c_werror_flag"
28465 || test ! -s conftest.err'
28466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467 (eval $ac_try) 2>&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); }; } &&
28471 { ac_try='test -s conftest$ac_exeext'
28472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473 (eval $ac_try) 2>&5
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; }; then
28479 echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28484 rm -f conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
28490 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28491 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28493 if test $ol_cv_db_db_44 = yes ; then
28494 ol_cv_lib_db=-ldb-44
28498 if test $ol_cv_lib_db = no ; then
28499 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28500 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28501 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28507 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28516 #ifdef HAVE_DB_185_H
28517 # include <db_185.h>
28522 #ifndef DB_VERSION_MAJOR
28523 # define DB_VERSION_MAJOR 1
28527 #define NULL ((void*)0)
28534 #if DB_VERSION_MAJOR > 1
28537 int major, minor, patch;
28539 version = db_version( &major, &minor, &patch );
28541 if( major != DB_VERSION_MAJOR ||
28542 minor < DB_VERSION_MINOR )
28544 printf("Berkeley DB version mismatch\n"
28545 "\theader: %s\n\tlibrary: %s\n",
28546 DB_VERSION_STRING, version);
28552 #if DB_VERSION_MAJOR > 2
28553 db_env_create( NULL, 0 );
28554 #elif DB_VERSION_MAJOR > 1
28555 db_appexit( NULL );
28557 (void) dbopen( NULL, 0, 0, 0, NULL);
28564 rm -f conftest.$ac_objext conftest$ac_exeext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28566 (eval $ac_link) 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag"
28574 || test ! -s conftest.err'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest$ac_exeext'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28586 ol_cv_db_db_4_dot_4=yes
28588 echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ol_cv_db_db_4_dot_4=no
28593 rm -f conftest.err conftest.$ac_objext \
28594 conftest$ac_exeext conftest.$ac_ext
28599 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28600 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28602 if test $ol_cv_db_db_4_dot_4 = yes ; then
28603 ol_cv_lib_db=-ldb-4.4
28607 if test $ol_cv_lib_db = no ; then
28608 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28609 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28610 if test "${ol_cv_db_db_4_4+set}" = set; then
28611 echo $ECHO_N "(cached) $ECHO_C" >&6
28616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28618 cat >conftest.$ac_ext <<_ACEOF
28621 cat confdefs.h >>conftest.$ac_ext
28622 cat >>conftest.$ac_ext <<_ACEOF
28623 /* end confdefs.h. */
28625 #ifdef HAVE_DB_185_H
28626 # include <db_185.h>
28631 #ifndef DB_VERSION_MAJOR
28632 # define DB_VERSION_MAJOR 1
28636 #define NULL ((void*)0)
28643 #if DB_VERSION_MAJOR > 1
28646 int major, minor, patch;
28648 version = db_version( &major, &minor, &patch );
28650 if( major != DB_VERSION_MAJOR ||
28651 minor < DB_VERSION_MINOR )
28653 printf("Berkeley DB version mismatch\n"
28654 "\theader: %s\n\tlibrary: %s\n",
28655 DB_VERSION_STRING, version);
28661 #if DB_VERSION_MAJOR > 2
28662 db_env_create( NULL, 0 );
28663 #elif DB_VERSION_MAJOR > 1
28664 db_appexit( NULL );
28666 (void) dbopen( NULL, 0, 0, 0, NULL);
28673 rm -f conftest.$ac_objext conftest$ac_exeext
28674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28675 (eval $ac_link) 2>conftest.er1
28677 grep -v '^ *+' conftest.er1 >conftest.err
28679 cat conftest.err >&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); } &&
28682 { ac_try='test -z "$ac_c_werror_flag"
28683 || test ! -s conftest.err'
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest$ac_exeext'
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; }; then
28695 ol_cv_db_db_4_4=yes
28697 echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28702 rm -f conftest.err conftest.$ac_objext \
28703 conftest$ac_exeext conftest.$ac_ext
28708 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28709 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28711 if test $ol_cv_db_db_4_4 = yes ; then
28712 ol_cv_lib_db=-ldb-4-4
28716 elif test $ol_cv_bdb_minor = 3 ; then
28717 if test $ol_cv_lib_db = no ; then
28718 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28719 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28720 if test "${ol_cv_db_db43+set}" = set; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28726 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28728 cat >conftest.$ac_ext <<_ACEOF
28731 cat confdefs.h >>conftest.$ac_ext
28732 cat >>conftest.$ac_ext <<_ACEOF
28733 /* end confdefs.h. */
28735 #ifdef HAVE_DB_185_H
28736 # include <db_185.h>
28741 #ifndef DB_VERSION_MAJOR
28742 # define DB_VERSION_MAJOR 1
28746 #define NULL ((void*)0)
28753 #if DB_VERSION_MAJOR > 1
28756 int major, minor, patch;
28758 version = db_version( &major, &minor, &patch );
28760 if( major != DB_VERSION_MAJOR ||
28761 minor < DB_VERSION_MINOR )
28763 printf("Berkeley DB version mismatch\n"
28764 "\theader: %s\n\tlibrary: %s\n",
28765 DB_VERSION_STRING, version);
28771 #if DB_VERSION_MAJOR > 2
28772 db_env_create( NULL, 0 );
28773 #elif DB_VERSION_MAJOR > 1
28774 db_appexit( NULL );
28776 (void) dbopen( NULL, 0, 0, 0, NULL);
28783 rm -f conftest.$ac_objext conftest$ac_exeext
28784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28785 (eval $ac_link) 2>conftest.er1
28787 grep -v '^ *+' conftest.er1 >conftest.err
28789 cat conftest.err >&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } &&
28792 { ac_try='test -z "$ac_c_werror_flag"
28793 || test ! -s conftest.err'
28794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795 (eval $ac_try) 2>&5
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; } &&
28799 { ac_try='test -s conftest$ac_exeext'
28800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801 (eval $ac_try) 2>&5
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); }; }; then
28807 echo "$as_me: failed program was:" >&5
28808 sed 's/^/| /' conftest.$ac_ext >&5
28812 rm -f conftest.err conftest.$ac_objext \
28813 conftest$ac_exeext conftest.$ac_ext
28818 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28819 echo "${ECHO_T}$ol_cv_db_db43" >&6
28821 if test $ol_cv_db_db43 = yes ; then
28822 ol_cv_lib_db=-ldb43
28826 if test $ol_cv_lib_db = no ; then
28827 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28828 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28829 if test "${ol_cv_db_db_43+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28835 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28837 cat >conftest.$ac_ext <<_ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28844 #ifdef HAVE_DB_185_H
28845 # include <db_185.h>
28850 #ifndef DB_VERSION_MAJOR
28851 # define DB_VERSION_MAJOR 1
28855 #define NULL ((void*)0)
28862 #if DB_VERSION_MAJOR > 1
28865 int major, minor, patch;
28867 version = db_version( &major, &minor, &patch );
28869 if( major != DB_VERSION_MAJOR ||
28870 minor < DB_VERSION_MINOR )
28872 printf("Berkeley DB version mismatch\n"
28873 "\theader: %s\n\tlibrary: %s\n",
28874 DB_VERSION_STRING, version);
28880 #if DB_VERSION_MAJOR > 2
28881 db_env_create( NULL, 0 );
28882 #elif DB_VERSION_MAJOR > 1
28883 db_appexit( NULL );
28885 (void) dbopen( NULL, 0, 0, 0, NULL);
28892 rm -f conftest.$ac_objext conftest$ac_exeext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894 (eval $ac_link) 2>conftest.er1
28896 grep -v '^ *+' conftest.er1 >conftest.err
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } &&
28901 { ac_try='test -z "$ac_c_werror_flag"
28902 || test ! -s conftest.err'
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest$ac_exeext'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28921 rm -f conftest.err conftest.$ac_objext \
28922 conftest$ac_exeext conftest.$ac_ext
28927 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28928 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28930 if test $ol_cv_db_db_43 = yes ; then
28931 ol_cv_lib_db=-ldb-43
28935 if test $ol_cv_lib_db = no ; then
28936 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28937 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28938 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28939 echo $ECHO_N "(cached) $ECHO_C" >&6
28944 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28946 cat >conftest.$ac_ext <<_ACEOF
28949 cat confdefs.h >>conftest.$ac_ext
28950 cat >>conftest.$ac_ext <<_ACEOF
28951 /* end confdefs.h. */
28953 #ifdef HAVE_DB_185_H
28954 # include <db_185.h>
28959 #ifndef DB_VERSION_MAJOR
28960 # define DB_VERSION_MAJOR 1
28964 #define NULL ((void*)0)
28971 #if DB_VERSION_MAJOR > 1
28974 int major, minor, patch;
28976 version = db_version( &major, &minor, &patch );
28978 if( major != DB_VERSION_MAJOR ||
28979 minor < DB_VERSION_MINOR )
28981 printf("Berkeley DB version mismatch\n"
28982 "\theader: %s\n\tlibrary: %s\n",
28983 DB_VERSION_STRING, version);
28989 #if DB_VERSION_MAJOR > 2
28990 db_env_create( NULL, 0 );
28991 #elif DB_VERSION_MAJOR > 1
28992 db_appexit( NULL );
28994 (void) dbopen( NULL, 0, 0, 0, NULL);
29001 rm -f conftest.$ac_objext conftest$ac_exeext
29002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29003 (eval $ac_link) 2>conftest.er1
29005 grep -v '^ *+' conftest.er1 >conftest.err
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
29010 { ac_try='test -z "$ac_c_werror_flag"
29011 || test ! -s conftest.err'
29012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29013 (eval $ac_try) 2>&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest$ac_exeext'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
29023 ol_cv_db_db_4_dot_3=yes
29025 echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29028 ol_cv_db_db_4_dot_3=no
29030 rm -f conftest.err conftest.$ac_objext \
29031 conftest$ac_exeext conftest.$ac_ext
29036 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29037 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29039 if test $ol_cv_db_db_4_dot_3 = yes ; then
29040 ol_cv_lib_db=-ldb-4.3
29044 if test $ol_cv_lib_db = no ; then
29045 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29046 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29047 if test "${ol_cv_db_db_4_3+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29055 cat >conftest.$ac_ext <<_ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29062 #ifdef HAVE_DB_185_H
29063 # include <db_185.h>
29068 #ifndef DB_VERSION_MAJOR
29069 # define DB_VERSION_MAJOR 1
29073 #define NULL ((void*)0)
29080 #if DB_VERSION_MAJOR > 1
29083 int major, minor, patch;
29085 version = db_version( &major, &minor, &patch );
29087 if( major != DB_VERSION_MAJOR ||
29088 minor < DB_VERSION_MINOR )
29090 printf("Berkeley DB version mismatch\n"
29091 "\theader: %s\n\tlibrary: %s\n",
29092 DB_VERSION_STRING, version);
29098 #if DB_VERSION_MAJOR > 2
29099 db_env_create( NULL, 0 );
29100 #elif DB_VERSION_MAJOR > 1
29101 db_appexit( NULL );
29103 (void) dbopen( NULL, 0, 0, 0, NULL);
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29112 (eval $ac_link) 2>conftest.er1
29114 grep -v '^ *+' conftest.er1 >conftest.err
29116 cat conftest.err >&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } &&
29119 { ac_try='test -z "$ac_c_werror_flag"
29120 || test ! -s conftest.err'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; } &&
29126 { ac_try='test -s conftest$ac_exeext'
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; }; then
29132 ol_cv_db_db_4_3=yes
29134 echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29139 rm -f conftest.err conftest.$ac_objext \
29140 conftest$ac_exeext conftest.$ac_ext
29145 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29146 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29148 if test $ol_cv_db_db_4_3 = yes ; then
29149 ol_cv_lib_db=-ldb-4-3
29153 elif test $ol_cv_bdb_minor = 2 ; then
29154 if test $ol_cv_lib_db = no ; then
29155 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29156 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29157 if test "${ol_cv_db_db42+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29163 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29165 cat >conftest.$ac_ext <<_ACEOF
29168 cat confdefs.h >>conftest.$ac_ext
29169 cat >>conftest.$ac_ext <<_ACEOF
29170 /* end confdefs.h. */
29172 #ifdef HAVE_DB_185_H
29173 # include <db_185.h>
29178 #ifndef DB_VERSION_MAJOR
29179 # define DB_VERSION_MAJOR 1
29183 #define NULL ((void*)0)
29190 #if DB_VERSION_MAJOR > 1
29193 int major, minor, patch;
29195 version = db_version( &major, &minor, &patch );
29197 if( major != DB_VERSION_MAJOR ||
29198 minor < DB_VERSION_MINOR )
29200 printf("Berkeley DB version mismatch\n"
29201 "\theader: %s\n\tlibrary: %s\n",
29202 DB_VERSION_STRING, version);
29208 #if DB_VERSION_MAJOR > 2
29209 db_env_create( NULL, 0 );
29210 #elif DB_VERSION_MAJOR > 1
29211 db_appexit( NULL );
29213 (void) dbopen( NULL, 0, 0, 0, NULL);
29220 rm -f conftest.$ac_objext conftest$ac_exeext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29222 (eval $ac_link) 2>conftest.er1
29224 grep -v '^ *+' conftest.er1 >conftest.err
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
29229 { ac_try='test -z "$ac_c_werror_flag"
29230 || test ! -s conftest.err'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; } &&
29236 { ac_try='test -s conftest$ac_exeext'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29249 rm -f conftest.err conftest.$ac_objext \
29250 conftest$ac_exeext conftest.$ac_ext
29255 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29256 echo "${ECHO_T}$ol_cv_db_db42" >&6
29258 if test $ol_cv_db_db42 = yes ; then
29259 ol_cv_lib_db=-ldb42
29263 if test $ol_cv_lib_db = no ; then
29264 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29265 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29266 if test "${ol_cv_db_db_42+set}" = set; then
29267 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29274 cat >conftest.$ac_ext <<_ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h. */
29281 #ifdef HAVE_DB_185_H
29282 # include <db_185.h>
29287 #ifndef DB_VERSION_MAJOR
29288 # define DB_VERSION_MAJOR 1
29292 #define NULL ((void*)0)
29299 #if DB_VERSION_MAJOR > 1
29302 int major, minor, patch;
29304 version = db_version( &major, &minor, &patch );
29306 if( major != DB_VERSION_MAJOR ||
29307 minor < DB_VERSION_MINOR )
29309 printf("Berkeley DB version mismatch\n"
29310 "\theader: %s\n\tlibrary: %s\n",
29311 DB_VERSION_STRING, version);
29317 #if DB_VERSION_MAJOR > 2
29318 db_env_create( NULL, 0 );
29319 #elif DB_VERSION_MAJOR > 1
29320 db_appexit( NULL );
29322 (void) dbopen( NULL, 0, 0, 0, NULL);
29329 rm -f conftest.$ac_objext conftest$ac_exeext
29330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29331 (eval $ac_link) 2>conftest.er1
29333 grep -v '^ *+' conftest.er1 >conftest.err
29335 cat conftest.err >&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); } &&
29338 { ac_try='test -z "$ac_c_werror_flag"
29339 || test ! -s conftest.err'
29340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; } &&
29345 { ac_try='test -s conftest$ac_exeext'
29346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29347 (eval $ac_try) 2>&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; }; then
29353 echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29358 rm -f conftest.err conftest.$ac_objext \
29359 conftest$ac_exeext conftest.$ac_ext
29364 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29365 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29367 if test $ol_cv_db_db_42 = yes ; then
29368 ol_cv_lib_db=-ldb-42
29372 if test $ol_cv_lib_db = no ; then
29373 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29374 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29375 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29381 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29383 cat >conftest.$ac_ext <<_ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29390 #ifdef HAVE_DB_185_H
29391 # include <db_185.h>
29396 #ifndef DB_VERSION_MAJOR
29397 # define DB_VERSION_MAJOR 1
29401 #define NULL ((void*)0)
29408 #if DB_VERSION_MAJOR > 1
29411 int major, minor, patch;
29413 version = db_version( &major, &minor, &patch );
29415 if( major != DB_VERSION_MAJOR ||
29416 minor < DB_VERSION_MINOR )
29418 printf("Berkeley DB version mismatch\n"
29419 "\theader: %s\n\tlibrary: %s\n",
29420 DB_VERSION_STRING, version);
29426 #if DB_VERSION_MAJOR > 2
29427 db_env_create( NULL, 0 );
29428 #elif DB_VERSION_MAJOR > 1
29429 db_appexit( NULL );
29431 (void) dbopen( NULL, 0, 0, 0, NULL);
29438 rm -f conftest.$ac_objext conftest$ac_exeext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29440 (eval $ac_link) 2>conftest.er1
29442 grep -v '^ *+' conftest.er1 >conftest.err
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
29447 { ac_try='test -z "$ac_c_werror_flag"
29448 || test ! -s conftest.err'
29449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450 (eval $ac_try) 2>&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; } &&
29454 { ac_try='test -s conftest$ac_exeext'
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 ol_cv_db_db_4_dot_2=yes
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 ol_cv_db_db_4_dot_2=no
29467 rm -f conftest.err conftest.$ac_objext \
29468 conftest$ac_exeext conftest.$ac_ext
29473 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29474 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29476 if test $ol_cv_db_db_4_dot_2 = yes ; then
29477 ol_cv_lib_db=-ldb-4.2
29481 if test $ol_cv_lib_db = no ; then
29482 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29483 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29484 if test "${ol_cv_db_db_4_2+set}" = set; then
29485 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29499 #ifdef HAVE_DB_185_H
29500 # include <db_185.h>
29505 #ifndef DB_VERSION_MAJOR
29506 # define DB_VERSION_MAJOR 1
29510 #define NULL ((void*)0)
29517 #if DB_VERSION_MAJOR > 1
29520 int major, minor, patch;
29522 version = db_version( &major, &minor, &patch );
29524 if( major != DB_VERSION_MAJOR ||
29525 minor < DB_VERSION_MINOR )
29527 printf("Berkeley DB version mismatch\n"
29528 "\theader: %s\n\tlibrary: %s\n",
29529 DB_VERSION_STRING, version);
29535 #if DB_VERSION_MAJOR > 2
29536 db_env_create( NULL, 0 );
29537 #elif DB_VERSION_MAJOR > 1
29538 db_appexit( NULL );
29540 (void) dbopen( NULL, 0, 0, 0, NULL);
29547 rm -f conftest.$ac_objext conftest$ac_exeext
29548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29549 (eval $ac_link) 2>conftest.er1
29551 grep -v '^ *+' conftest.er1 >conftest.err
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_c_werror_flag"
29557 || test ! -s conftest.err'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest$ac_exeext'
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
29569 ol_cv_db_db_4_2=yes
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29576 rm -f conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
29582 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29583 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29585 if test $ol_cv_db_db_4_2 = yes ; then
29586 ol_cv_lib_db=-ldb-4-2
29590 elif test $ol_cv_bdb_minor = 1 ; then
29591 if test $ol_cv_lib_db = no ; then
29592 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29593 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29594 if test "${ol_cv_db_db41+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29602 cat >conftest.$ac_ext <<_ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h. */
29609 #ifdef HAVE_DB_185_H
29610 # include <db_185.h>
29615 #ifndef DB_VERSION_MAJOR
29616 # define DB_VERSION_MAJOR 1
29620 #define NULL ((void*)0)
29627 #if DB_VERSION_MAJOR > 1
29630 int major, minor, patch;
29632 version = db_version( &major, &minor, &patch );
29634 if( major != DB_VERSION_MAJOR ||
29635 minor < DB_VERSION_MINOR )
29637 printf("Berkeley DB version mismatch\n"
29638 "\theader: %s\n\tlibrary: %s\n",
29639 DB_VERSION_STRING, version);
29645 #if DB_VERSION_MAJOR > 2
29646 db_env_create( NULL, 0 );
29647 #elif DB_VERSION_MAJOR > 1
29648 db_appexit( NULL );
29650 (void) dbopen( NULL, 0, 0, 0, NULL);
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29659 (eval $ac_link) 2>conftest.er1
29661 grep -v '^ *+' conftest.er1 >conftest.err
29663 cat conftest.err >&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); } &&
29666 { ac_try='test -z "$ac_c_werror_flag"
29667 || test ! -s conftest.err'
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; } &&
29673 { ac_try='test -s conftest$ac_exeext'
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29681 echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29686 rm -f conftest.err conftest.$ac_objext \
29687 conftest$ac_exeext conftest.$ac_ext
29692 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29693 echo "${ECHO_T}$ol_cv_db_db41" >&6
29695 if test $ol_cv_db_db41 = yes ; then
29696 ol_cv_lib_db=-ldb41
29700 if test $ol_cv_lib_db = no ; then
29701 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29702 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29703 if test "${ol_cv_db_db_41+set}" = set; then
29704 echo $ECHO_N "(cached) $ECHO_C" >&6
29709 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29711 cat >conftest.$ac_ext <<_ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29718 #ifdef HAVE_DB_185_H
29719 # include <db_185.h>
29724 #ifndef DB_VERSION_MAJOR
29725 # define DB_VERSION_MAJOR 1
29729 #define NULL ((void*)0)
29736 #if DB_VERSION_MAJOR > 1
29739 int major, minor, patch;
29741 version = db_version( &major, &minor, &patch );
29743 if( major != DB_VERSION_MAJOR ||
29744 minor < DB_VERSION_MINOR )
29746 printf("Berkeley DB version mismatch\n"
29747 "\theader: %s\n\tlibrary: %s\n",
29748 DB_VERSION_STRING, version);
29754 #if DB_VERSION_MAJOR > 2
29755 db_env_create( NULL, 0 );
29756 #elif DB_VERSION_MAJOR > 1
29757 db_appexit( NULL );
29759 (void) dbopen( NULL, 0, 0, 0, NULL);
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29768 (eval $ac_link) 2>conftest.er1
29770 grep -v '^ *+' conftest.er1 >conftest.err
29772 cat conftest.err >&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } &&
29775 { ac_try='test -z "$ac_c_werror_flag"
29776 || test ! -s conftest.err'
29777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778 (eval $ac_try) 2>&5
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; } &&
29782 { ac_try='test -s conftest$ac_exeext'
29783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784 (eval $ac_try) 2>&5
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; }; then
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29795 rm -f conftest.err conftest.$ac_objext \
29796 conftest$ac_exeext conftest.$ac_ext
29801 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29802 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29804 if test $ol_cv_db_db_41 = yes ; then
29805 ol_cv_lib_db=-ldb-41
29809 if test $ol_cv_lib_db = no ; then
29810 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29811 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29812 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29818 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29820 cat >conftest.$ac_ext <<_ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29827 #ifdef HAVE_DB_185_H
29828 # include <db_185.h>
29833 #ifndef DB_VERSION_MAJOR
29834 # define DB_VERSION_MAJOR 1
29838 #define NULL ((void*)0)
29845 #if DB_VERSION_MAJOR > 1
29848 int major, minor, patch;
29850 version = db_version( &major, &minor, &patch );
29852 if( major != DB_VERSION_MAJOR ||
29853 minor < DB_VERSION_MINOR )
29855 printf("Berkeley DB version mismatch\n"
29856 "\theader: %s\n\tlibrary: %s\n",
29857 DB_VERSION_STRING, version);
29863 #if DB_VERSION_MAJOR > 2
29864 db_env_create( NULL, 0 );
29865 #elif DB_VERSION_MAJOR > 1
29866 db_appexit( NULL );
29868 (void) dbopen( NULL, 0, 0, 0, NULL);
29875 rm -f conftest.$ac_objext conftest$ac_exeext
29876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29877 (eval $ac_link) 2>conftest.er1
29879 grep -v '^ *+' conftest.er1 >conftest.err
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } &&
29884 { ac_try='test -z "$ac_c_werror_flag"
29885 || test ! -s conftest.err'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest$ac_exeext'
29892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 (eval $ac_try) 2>&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; }; then
29897 ol_cv_db_db_4_dot_1=yes
29899 echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29902 ol_cv_db_db_4_dot_1=no
29904 rm -f conftest.err conftest.$ac_objext \
29905 conftest$ac_exeext conftest.$ac_ext
29910 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29911 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29913 if test $ol_cv_db_db_4_dot_1 = yes ; then
29914 ol_cv_lib_db=-ldb-4.1
29918 if test $ol_cv_lib_db = no ; then
29919 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29920 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29921 if test "${ol_cv_db_db_4_1+set}" = set; then
29922 echo $ECHO_N "(cached) $ECHO_C" >&6
29927 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29929 cat >conftest.$ac_ext <<_ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h. */
29936 #ifdef HAVE_DB_185_H
29937 # include <db_185.h>
29942 #ifndef DB_VERSION_MAJOR
29943 # define DB_VERSION_MAJOR 1
29947 #define NULL ((void*)0)
29954 #if DB_VERSION_MAJOR > 1
29957 int major, minor, patch;
29959 version = db_version( &major, &minor, &patch );
29961 if( major != DB_VERSION_MAJOR ||
29962 minor < DB_VERSION_MINOR )
29964 printf("Berkeley DB version mismatch\n"
29965 "\theader: %s\n\tlibrary: %s\n",
29966 DB_VERSION_STRING, version);
29972 #if DB_VERSION_MAJOR > 2
29973 db_env_create( NULL, 0 );
29974 #elif DB_VERSION_MAJOR > 1
29975 db_appexit( NULL );
29977 (void) dbopen( NULL, 0, 0, 0, NULL);
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986 (eval $ac_link) 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag"
29994 || test ! -s conftest.err'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest$ac_exeext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006 ol_cv_db_db_4_1=yes
30008 echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30013 rm -f conftest.err conftest.$ac_objext \
30014 conftest$ac_exeext conftest.$ac_ext
30019 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30020 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30022 if test $ol_cv_db_db_4_1 = yes ; then
30023 ol_cv_lib_db=-ldb-4-1
30028 if test $ol_cv_lib_db = no ; then
30029 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30030 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30031 if test "${ol_cv_db_db_4+set}" = set; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30037 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30039 cat >conftest.$ac_ext <<_ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h. */
30046 #ifdef HAVE_DB_185_H
30047 # include <db_185.h>
30052 #ifndef DB_VERSION_MAJOR
30053 # define DB_VERSION_MAJOR 1
30057 #define NULL ((void*)0)
30064 #if DB_VERSION_MAJOR > 1
30067 int major, minor, patch;
30069 version = db_version( &major, &minor, &patch );
30071 if( major != DB_VERSION_MAJOR ||
30072 minor < DB_VERSION_MINOR )
30074 printf("Berkeley DB version mismatch\n"
30075 "\theader: %s\n\tlibrary: %s\n",
30076 DB_VERSION_STRING, version);
30082 #if DB_VERSION_MAJOR > 2
30083 db_env_create( NULL, 0 );
30084 #elif DB_VERSION_MAJOR > 1
30085 db_appexit( NULL );
30087 (void) dbopen( NULL, 0, 0, 0, NULL);
30094 rm -f conftest.$ac_objext conftest$ac_exeext
30095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30096 (eval $ac_link) 2>conftest.er1
30098 grep -v '^ *+' conftest.er1 >conftest.err
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } &&
30103 { ac_try='test -z "$ac_c_werror_flag"
30104 || test ! -s conftest.err'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; } &&
30110 { ac_try='test -s conftest$ac_exeext'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; }; then
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30123 rm -f conftest.err conftest.$ac_objext \
30124 conftest$ac_exeext conftest.$ac_ext
30129 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30130 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30132 if test $ol_cv_db_db_4 = yes ; then
30133 ol_cv_lib_db=-ldb-4
30137 if test $ol_cv_lib_db = no ; then
30138 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30139 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30140 if test "${ol_cv_db_db4+set}" = set; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
30146 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30148 cat >conftest.$ac_ext <<_ACEOF
30151 cat confdefs.h >>conftest.$ac_ext
30152 cat >>conftest.$ac_ext <<_ACEOF
30153 /* end confdefs.h. */
30155 #ifdef HAVE_DB_185_H
30156 # include <db_185.h>
30161 #ifndef DB_VERSION_MAJOR
30162 # define DB_VERSION_MAJOR 1
30166 #define NULL ((void*)0)
30173 #if DB_VERSION_MAJOR > 1
30176 int major, minor, patch;
30178 version = db_version( &major, &minor, &patch );
30180 if( major != DB_VERSION_MAJOR ||
30181 minor < DB_VERSION_MINOR )
30183 printf("Berkeley DB version mismatch\n"
30184 "\theader: %s\n\tlibrary: %s\n",
30185 DB_VERSION_STRING, version);
30191 #if DB_VERSION_MAJOR > 2
30192 db_env_create( NULL, 0 );
30193 #elif DB_VERSION_MAJOR > 1
30194 db_appexit( NULL );
30196 (void) dbopen( NULL, 0, 0, 0, NULL);
30203 rm -f conftest.$ac_objext conftest$ac_exeext
30204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30205 (eval $ac_link) 2>conftest.er1
30207 grep -v '^ *+' conftest.er1 >conftest.err
30209 cat conftest.err >&5
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); } &&
30212 { ac_try='test -z "$ac_c_werror_flag"
30213 || test ! -s conftest.err'
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; } &&
30219 { ac_try='test -s conftest$ac_exeext'
30220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221 (eval $ac_try) 2>&5
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); }; }; then
30227 echo "$as_me: failed program was:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30232 rm -f conftest.err conftest.$ac_objext \
30233 conftest$ac_exeext conftest.$ac_ext
30238 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30239 echo "${ECHO_T}$ol_cv_db_db4" >&6
30241 if test $ol_cv_db_db4 = yes ; then
30246 if test $ol_cv_lib_db = no ; then
30247 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30248 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30249 if test "${ol_cv_db_db+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30255 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30257 cat >conftest.$ac_ext <<_ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30264 #ifdef HAVE_DB_185_H
30265 # include <db_185.h>
30270 #ifndef DB_VERSION_MAJOR
30271 # define DB_VERSION_MAJOR 1
30275 #define NULL ((void*)0)
30282 #if DB_VERSION_MAJOR > 1
30285 int major, minor, patch;
30287 version = db_version( &major, &minor, &patch );
30289 if( major != DB_VERSION_MAJOR ||
30290 minor < DB_VERSION_MINOR )
30292 printf("Berkeley DB version mismatch\n"
30293 "\theader: %s\n\tlibrary: %s\n",
30294 DB_VERSION_STRING, version);
30300 #if DB_VERSION_MAJOR > 2
30301 db_env_create( NULL, 0 );
30302 #elif DB_VERSION_MAJOR > 1
30303 db_appexit( NULL );
30305 (void) dbopen( NULL, 0, 0, 0, NULL);
30312 rm -f conftest.$ac_objext conftest$ac_exeext
30313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30314 (eval $ac_link) 2>conftest.er1
30316 grep -v '^ *+' conftest.er1 >conftest.err
30318 cat conftest.err >&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } &&
30321 { ac_try='test -z "$ac_c_werror_flag"
30322 || test ! -s conftest.err'
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; } &&
30328 { ac_try='test -s conftest$ac_exeext'
30329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30330 (eval $ac_try) 2>&5
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); }; }; then
30336 echo "$as_me: failed program was:" >&5
30337 sed 's/^/| /' conftest.$ac_ext >&5
30341 rm -f conftest.err conftest.$ac_objext \
30342 conftest$ac_exeext conftest.$ac_ext
30347 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30348 echo "${ECHO_T}$ol_cv_db_db" >&6
30350 if test $ol_cv_db_db = yes ; then
30356 elif test $ol_cv_bdb_major = 3 ; then
30357 if test $ol_cv_lib_db = no ; then
30358 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30359 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30360 if test "${ol_cv_db_db3+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30368 cat >conftest.$ac_ext <<_ACEOF
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h. */
30375 #ifdef HAVE_DB_185_H
30376 # include <db_185.h>
30381 #ifndef DB_VERSION_MAJOR
30382 # define DB_VERSION_MAJOR 1
30386 #define NULL ((void*)0)
30393 #if DB_VERSION_MAJOR > 1
30396 int major, minor, patch;
30398 version = db_version( &major, &minor, &patch );
30400 if( major != DB_VERSION_MAJOR ||
30401 minor < DB_VERSION_MINOR )
30403 printf("Berkeley DB version mismatch\n"
30404 "\theader: %s\n\tlibrary: %s\n",
30405 DB_VERSION_STRING, version);
30411 #if DB_VERSION_MAJOR > 2
30412 db_env_create( NULL, 0 );
30413 #elif DB_VERSION_MAJOR > 1
30414 db_appexit( NULL );
30416 (void) dbopen( NULL, 0, 0, 0, NULL);
30423 rm -f conftest.$ac_objext conftest$ac_exeext
30424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30425 (eval $ac_link) 2>conftest.er1
30427 grep -v '^ *+' conftest.er1 >conftest.err
30429 cat conftest.err >&5
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); } &&
30432 { ac_try='test -z "$ac_c_werror_flag"
30433 || test ! -s conftest.err'
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; } &&
30439 { ac_try='test -s conftest$ac_exeext'
30440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441 (eval $ac_try) 2>&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
30447 echo "$as_me: failed program was:" >&5
30448 sed 's/^/| /' conftest.$ac_ext >&5
30452 rm -f conftest.err conftest.$ac_objext \
30453 conftest$ac_exeext conftest.$ac_ext
30458 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30459 echo "${ECHO_T}$ol_cv_db_db3" >&6
30461 if test $ol_cv_db_db3 = yes ; then
30466 if test $ol_cv_lib_db = no ; then
30467 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30468 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30469 if test "${ol_cv_db_db_3+set}" = set; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30475 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30477 cat >conftest.$ac_ext <<_ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30484 #ifdef HAVE_DB_185_H
30485 # include <db_185.h>
30490 #ifndef DB_VERSION_MAJOR
30491 # define DB_VERSION_MAJOR 1
30495 #define NULL ((void*)0)
30502 #if DB_VERSION_MAJOR > 1
30505 int major, minor, patch;
30507 version = db_version( &major, &minor, &patch );
30509 if( major != DB_VERSION_MAJOR ||
30510 minor < DB_VERSION_MINOR )
30512 printf("Berkeley DB version mismatch\n"
30513 "\theader: %s\n\tlibrary: %s\n",
30514 DB_VERSION_STRING, version);
30520 #if DB_VERSION_MAJOR > 2
30521 db_env_create( NULL, 0 );
30522 #elif DB_VERSION_MAJOR > 1
30523 db_appexit( NULL );
30525 (void) dbopen( NULL, 0, 0, 0, NULL);
30532 rm -f conftest.$ac_objext conftest$ac_exeext
30533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30534 (eval $ac_link) 2>conftest.er1
30536 grep -v '^ *+' conftest.er1 >conftest.err
30538 cat conftest.err >&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } &&
30541 { ac_try='test -z "$ac_c_werror_flag"
30542 || test ! -s conftest.err'
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; } &&
30548 { ac_try='test -s conftest$ac_exeext'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; }; then
30556 echo "$as_me: failed program was:" >&5
30557 sed 's/^/| /' conftest.$ac_ext >&5
30561 rm -f conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
30567 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30568 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30570 if test $ol_cv_db_db_3 = yes ; then
30571 ol_cv_lib_db=-ldb-3
30576 elif test $ol_cv_bdb_major = 2 ; then
30577 if test $ol_cv_lib_db = no ; then
30578 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30579 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30580 if test "${ol_cv_db_db2+set}" = set; then
30581 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30591 cat confdefs.h >>conftest.$ac_ext
30592 cat >>conftest.$ac_ext <<_ACEOF
30593 /* end confdefs.h. */
30595 #ifdef HAVE_DB_185_H
30596 # include <db_185.h>
30601 #ifndef DB_VERSION_MAJOR
30602 # define DB_VERSION_MAJOR 1
30606 #define NULL ((void*)0)
30613 #if DB_VERSION_MAJOR > 1
30616 int major, minor, patch;
30618 version = db_version( &major, &minor, &patch );
30620 if( major != DB_VERSION_MAJOR ||
30621 minor < DB_VERSION_MINOR )
30623 printf("Berkeley DB version mismatch\n"
30624 "\theader: %s\n\tlibrary: %s\n",
30625 DB_VERSION_STRING, version);
30631 #if DB_VERSION_MAJOR > 2
30632 db_env_create( NULL, 0 );
30633 #elif DB_VERSION_MAJOR > 1
30634 db_appexit( NULL );
30636 (void) dbopen( NULL, 0, 0, 0, NULL);
30643 rm -f conftest.$ac_objext conftest$ac_exeext
30644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30645 (eval $ac_link) 2>conftest.er1
30647 grep -v '^ *+' conftest.er1 >conftest.err
30649 cat conftest.err >&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
30652 { ac_try='test -z "$ac_c_werror_flag"
30653 || test ! -s conftest.err'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest$ac_exeext'
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30667 echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30672 rm -f conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
30678 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30679 echo "${ECHO_T}$ol_cv_db_db2" >&6
30681 if test $ol_cv_db_db2 = yes ; then
30686 if test $ol_cv_lib_db = no ; then
30687 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30688 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30689 if test "${ol_cv_db_db_2+set}" = set; then
30690 echo $ECHO_N "(cached) $ECHO_C" >&6
30695 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30697 cat >conftest.$ac_ext <<_ACEOF
30700 cat confdefs.h >>conftest.$ac_ext
30701 cat >>conftest.$ac_ext <<_ACEOF
30702 /* end confdefs.h. */
30704 #ifdef HAVE_DB_185_H
30705 # include <db_185.h>
30710 #ifndef DB_VERSION_MAJOR
30711 # define DB_VERSION_MAJOR 1
30715 #define NULL ((void*)0)
30722 #if DB_VERSION_MAJOR > 1
30725 int major, minor, patch;
30727 version = db_version( &major, &minor, &patch );
30729 if( major != DB_VERSION_MAJOR ||
30730 minor < DB_VERSION_MINOR )
30732 printf("Berkeley DB version mismatch\n"
30733 "\theader: %s\n\tlibrary: %s\n",
30734 DB_VERSION_STRING, version);
30740 #if DB_VERSION_MAJOR > 2
30741 db_env_create( NULL, 0 );
30742 #elif DB_VERSION_MAJOR > 1
30743 db_appexit( NULL );
30745 (void) dbopen( NULL, 0, 0, 0, NULL);
30752 rm -f conftest.$ac_objext conftest$ac_exeext
30753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30754 (eval $ac_link) 2>conftest.er1
30756 grep -v '^ *+' conftest.er1 >conftest.err
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } &&
30761 { ac_try='test -z "$ac_c_werror_flag"
30762 || test ! -s conftest.err'
30763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30764 (eval $ac_try) 2>&5
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; } &&
30768 { ac_try='test -s conftest$ac_exeext'
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; }; then
30776 echo "$as_me: failed program was:" >&5
30777 sed 's/^/| /' conftest.$ac_ext >&5
30781 rm -f conftest.err conftest.$ac_objext \
30782 conftest$ac_exeext conftest.$ac_ext
30787 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30788 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30790 if test $ol_cv_db_db_2 = yes ; then
30791 ol_cv_lib_db=-ldb-2
30796 elif test $ol_cv_bdb_major = 1 ; then
30797 if test $ol_cv_lib_db = no ; then
30798 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30799 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30800 if test "${ol_cv_db_db1+set}" = set; then
30801 echo $ECHO_N "(cached) $ECHO_C" >&6
30806 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30808 cat >conftest.$ac_ext <<_ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h. */
30815 #ifdef HAVE_DB_185_H
30816 # include <db_185.h>
30821 #ifndef DB_VERSION_MAJOR
30822 # define DB_VERSION_MAJOR 1
30826 #define NULL ((void*)0)
30833 #if DB_VERSION_MAJOR > 1
30836 int major, minor, patch;
30838 version = db_version( &major, &minor, &patch );
30840 if( major != DB_VERSION_MAJOR ||
30841 minor < DB_VERSION_MINOR )
30843 printf("Berkeley DB version mismatch\n"
30844 "\theader: %s\n\tlibrary: %s\n",
30845 DB_VERSION_STRING, version);
30851 #if DB_VERSION_MAJOR > 2
30852 db_env_create( NULL, 0 );
30853 #elif DB_VERSION_MAJOR > 1
30854 db_appexit( NULL );
30856 (void) dbopen( NULL, 0, 0, 0, NULL);
30863 rm -f conftest.$ac_objext conftest$ac_exeext
30864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30865 (eval $ac_link) 2>conftest.er1
30867 grep -v '^ *+' conftest.er1 >conftest.err
30869 cat conftest.err >&5
30870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); } &&
30872 { ac_try='test -z "$ac_c_werror_flag"
30873 || test ! -s conftest.err'
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; }; then
30887 echo "$as_me: failed program was:" >&5
30888 sed 's/^/| /' conftest.$ac_ext >&5
30892 rm -f conftest.err conftest.$ac_objext \
30893 conftest$ac_exeext conftest.$ac_ext
30898 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30899 echo "${ECHO_T}$ol_cv_db_db1" >&6
30901 if test $ol_cv_db_db1 = yes ; then
30906 if test $ol_cv_lib_db = no ; then
30907 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30908 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30909 if test "${ol_cv_db_db_1+set}" = set; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30915 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30917 cat >conftest.$ac_ext <<_ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h. */
30924 #ifdef HAVE_DB_185_H
30925 # include <db_185.h>
30930 #ifndef DB_VERSION_MAJOR
30931 # define DB_VERSION_MAJOR 1
30935 #define NULL ((void*)0)
30942 #if DB_VERSION_MAJOR > 1
30945 int major, minor, patch;
30947 version = db_version( &major, &minor, &patch );
30949 if( major != DB_VERSION_MAJOR ||
30950 minor < DB_VERSION_MINOR )
30952 printf("Berkeley DB version mismatch\n"
30953 "\theader: %s\n\tlibrary: %s\n",
30954 DB_VERSION_STRING, version);
30960 #if DB_VERSION_MAJOR > 2
30961 db_env_create( NULL, 0 );
30962 #elif DB_VERSION_MAJOR > 1
30963 db_appexit( NULL );
30965 (void) dbopen( NULL, 0, 0, 0, NULL);
30972 rm -f conftest.$ac_objext conftest$ac_exeext
30973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30974 (eval $ac_link) 2>conftest.er1
30976 grep -v '^ *+' conftest.er1 >conftest.err
30978 cat conftest.err >&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } &&
30981 { ac_try='test -z "$ac_c_werror_flag"
30982 || test ! -s conftest.err'
30983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30984 (eval $ac_try) 2>&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; } &&
30988 { ac_try='test -s conftest$ac_exeext'
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; }; then
30996 echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
31001 rm -f conftest.err conftest.$ac_objext \
31002 conftest$ac_exeext conftest.$ac_ext
31007 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31008 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31010 if test $ol_cv_db_db_1 = yes ; then
31011 ol_cv_lib_db=-ldb-1
31016 if test $ol_cv_lib_db = no ; then
31017 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31018 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31019 if test "${ol_cv_db_none+set}" = set; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31025 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31027 cat >conftest.$ac_ext <<_ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h. */
31034 #ifdef HAVE_DB_185_H
31035 # include <db_185.h>
31040 #ifndef DB_VERSION_MAJOR
31041 # define DB_VERSION_MAJOR 1
31045 #define NULL ((void*)0)
31052 #if DB_VERSION_MAJOR > 1
31055 int major, minor, patch;
31057 version = db_version( &major, &minor, &patch );
31059 if( major != DB_VERSION_MAJOR ||
31060 minor < DB_VERSION_MINOR )
31062 printf("Berkeley DB version mismatch\n"
31063 "\theader: %s\n\tlibrary: %s\n",
31064 DB_VERSION_STRING, version);
31070 #if DB_VERSION_MAJOR > 2
31071 db_env_create( NULL, 0 );
31072 #elif DB_VERSION_MAJOR > 1
31073 db_appexit( NULL );
31075 (void) dbopen( NULL, 0, 0, 0, NULL);
31082 rm -f conftest.$ac_objext conftest$ac_exeext
31083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31084 (eval $ac_link) 2>conftest.er1
31086 grep -v '^ *+' conftest.er1 >conftest.err
31088 cat conftest.err >&5
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); } &&
31091 { ac_try='test -z "$ac_c_werror_flag"
31092 || test ! -s conftest.err'
31093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31094 (eval $ac_try) 2>&5
31096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097 (exit $ac_status); }; } &&
31098 { ac_try='test -s conftest$ac_exeext'
31099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100 (eval $ac_try) 2>&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); }; }; then
31106 echo "$as_me: failed program was:" >&5
31107 sed 's/^/| /' conftest.$ac_ext >&5
31111 rm -f conftest.err conftest.$ac_objext \
31112 conftest$ac_exeext conftest.$ac_ext
31117 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31118 echo "${ECHO_T}$ol_cv_db_none" >&6
31120 if test $ol_cv_db_none = yes ; then
31126 if test "$ol_cv_lib_db" != no ; then
31127 ol_cv_berkeley_db=yes
31133 ol_cv_berkeley_db=no
31135 for ac_header in db.h
31137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31139 echo "$as_me:$LINENO: checking for $ac_header" >&5
31140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31142 echo $ECHO_N "(cached) $ECHO_C" >&6
31144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31147 # Is the header compilable?
31148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31150 cat >conftest.$ac_ext <<_ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31156 $ac_includes_default
31157 #include <$ac_header>
31159 rm -f conftest.$ac_objext
31160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31161 (eval $ac_compile) 2>conftest.er1
31163 grep -v '^ *+' conftest.er1 >conftest.err
31165 cat conftest.err >&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } &&
31168 { ac_try='test -z "$ac_c_werror_flag"
31169 || test ! -s conftest.err'
31170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31171 (eval $ac_try) 2>&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try='test -s conftest.$ac_objext'
31176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177 (eval $ac_try) 2>&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
31181 ac_header_compiler=yes
31183 echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 ac_header_compiler=no
31188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31190 echo "${ECHO_T}$ac_header_compiler" >&6
31192 # Is the header present?
31193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31195 cat >conftest.$ac_ext <<_ACEOF
31198 cat confdefs.h >>conftest.$ac_ext
31199 cat >>conftest.$ac_ext <<_ACEOF
31200 /* end confdefs.h. */
31201 #include <$ac_header>
31203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31206 grep -v '^ *+' conftest.er1 >conftest.err
31208 cat conftest.err >&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } >/dev/null; then
31211 if test -s conftest.err; then
31212 ac_cpp_err=$ac_c_preproc_warn_flag
31213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31220 if test -z "$ac_cpp_err"; then
31221 ac_header_preproc=yes
31223 echo "$as_me: failed program was:" >&5
31224 sed 's/^/| /' conftest.$ac_ext >&5
31226 ac_header_preproc=no
31228 rm -f conftest.err conftest.$ac_ext
31229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31230 echo "${ECHO_T}$ac_header_preproc" >&6
31232 # So? What about this header?
31233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31239 ac_header_preproc=yes
31242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31256 ## --------------------------------------------- ##
31257 ## Report this to <http://www.openldap.org/its/> ##
31258 ## --------------------------------------------- ##
31261 sed "s/^/$as_me: WARNING: /" >&2
31264 echo "$as_me:$LINENO: checking for $ac_header" >&5
31265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31269 eval "$as_ac_Header=\$ac_header_preproc"
31271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31276 cat >>confdefs.h <<_ACEOF
31277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31284 if test $ac_cv_header_db_h = yes; then
31287 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31288 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31289 if test "${ol_cv_bdb_major+set}" = set; then
31290 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 if test $ol_cv_bdb_major = 0 ; then
31295 cat >conftest.$ac_ext <<_ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h. */
31303 #ifndef DB_VERSION_MAJOR
31304 # define DB_VERSION_MAJOR 1
31306 #if DB_VERSION_MAJOR == 4
31311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31312 $EGREP "__db_version" >/dev/null 2>&1; then
31320 if test $ol_cv_bdb_major = 0 ; then
31321 cat >conftest.$ac_ext <<_ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h. */
31329 #ifndef DB_VERSION_MAJOR
31330 # define DB_VERSION_MAJOR 1
31332 #if DB_VERSION_MAJOR == 3
31337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31338 $EGREP "__db_version" >/dev/null 2>&1; then
31346 if test $ol_cv_bdb_major = 0 ; then
31347 cat >conftest.$ac_ext <<_ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31355 #ifndef DB_VERSION_MAJOR
31356 # define DB_VERSION_MAJOR 1
31358 #if DB_VERSION_MAJOR == 2
31363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31364 $EGREP "__db_version" >/dev/null 2>&1; then
31372 if test $ol_cv_bdb_major = 0 ; then
31373 cat >conftest.$ac_ext <<_ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h. */
31381 #ifndef DB_VERSION_MAJOR
31382 # define DB_VERSION_MAJOR 1
31384 #if DB_VERSION_MAJOR == 1
31389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31390 $EGREP "__db_version" >/dev/null 2>&1; then
31399 if test $ol_cv_bdb_major = 0 ; then
31400 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31401 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31402 { (exit 1); exit 1; }; }
31406 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31407 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31409 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31410 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31411 if test "${ol_cv_bdb_minor+set}" = set; then
31412 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 if test $ol_cv_bdb_minor = 0 ; then
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31425 #ifndef DB_VERSION_MINOR
31426 # define DB_VERSION_MINOR 0
31428 #if DB_VERSION_MINOR == 9
31433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31434 $EGREP "__db_version" >/dev/null 2>&1; then
31442 if test $ol_cv_bdb_minor = 0 ; then
31443 cat >conftest.$ac_ext <<_ACEOF
31446 cat confdefs.h >>conftest.$ac_ext
31447 cat >>conftest.$ac_ext <<_ACEOF
31448 /* end confdefs.h. */
31451 #ifndef DB_VERSION_MINOR
31452 # define DB_VERSION_MINOR 0
31454 #if DB_VERSION_MINOR == 8
31459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31460 $EGREP "__db_version" >/dev/null 2>&1; then
31468 if test $ol_cv_bdb_minor = 0 ; then
31469 cat >conftest.$ac_ext <<_ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h. */
31477 #ifndef DB_VERSION_MINOR
31478 # define DB_VERSION_MINOR 0
31480 #if DB_VERSION_MINOR == 7
31485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31486 $EGREP "__db_version" >/dev/null 2>&1; then
31494 if test $ol_cv_bdb_minor = 0 ; then
31495 cat >conftest.$ac_ext <<_ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31503 #ifndef DB_VERSION_MINOR
31504 # define DB_VERSION_MINOR 0
31506 #if DB_VERSION_MINOR == 6
31511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31512 $EGREP "__db_version" >/dev/null 2>&1; then
31520 if test $ol_cv_bdb_minor = 0 ; then
31521 cat >conftest.$ac_ext <<_ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h. */
31529 #ifndef DB_VERSION_MINOR
31530 # define DB_VERSION_MINOR 0
31532 #if DB_VERSION_MINOR == 5
31537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31538 $EGREP "__db_version" >/dev/null 2>&1; then
31546 if test $ol_cv_bdb_minor = 0 ; then
31547 cat >conftest.$ac_ext <<_ACEOF
31550 cat confdefs.h >>conftest.$ac_ext
31551 cat >>conftest.$ac_ext <<_ACEOF
31552 /* end confdefs.h. */
31555 #ifndef DB_VERSION_MINOR
31556 # define DB_VERSION_MINOR 0
31558 #if DB_VERSION_MINOR == 4
31563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31564 $EGREP "__db_version" >/dev/null 2>&1; then
31572 if test $ol_cv_bdb_minor = 0 ; then
31573 cat >conftest.$ac_ext <<_ACEOF
31576 cat confdefs.h >>conftest.$ac_ext
31577 cat >>conftest.$ac_ext <<_ACEOF
31578 /* end confdefs.h. */
31581 #ifndef DB_VERSION_MINOR
31582 # define DB_VERSION_MINOR 0
31584 #if DB_VERSION_MINOR == 3
31589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31590 $EGREP "__db_version" >/dev/null 2>&1; then
31598 if test $ol_cv_bdb_minor = 0 ; then
31599 cat >conftest.$ac_ext <<_ACEOF
31602 cat confdefs.h >>conftest.$ac_ext
31603 cat >>conftest.$ac_ext <<_ACEOF
31604 /* end confdefs.h. */
31607 #ifndef DB_VERSION_MINOR
31608 # define DB_VERSION_MINOR 0
31610 #if DB_VERSION_MINOR == 2
31615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31616 $EGREP "__db_version" >/dev/null 2>&1; then
31624 if test $ol_cv_bdb_minor = 0 ; then
31625 cat >conftest.$ac_ext <<_ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h. */
31633 #ifndef DB_VERSION_MINOR
31634 # define DB_VERSION_MINOR 0
31636 #if DB_VERSION_MINOR == 1
31641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31642 $EGREP "__db_version" >/dev/null 2>&1; then
31652 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31653 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31655 if test $ol_cv_bdb_major = 4 ; then
31656 if test $ol_cv_bdb_minor = 4 ; then
31657 if test $ol_cv_lib_db = no ; then
31658 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31659 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31660 if test "${ol_cv_db_db44+set}" = set; then
31661 echo $ECHO_N "(cached) $ECHO_C" >&6
31666 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31668 cat >conftest.$ac_ext <<_ACEOF
31671 cat confdefs.h >>conftest.$ac_ext
31672 cat >>conftest.$ac_ext <<_ACEOF
31673 /* end confdefs.h. */
31675 #ifdef HAVE_DB_185_H
31676 # include <db_185.h>
31681 #ifndef DB_VERSION_MAJOR
31682 # define DB_VERSION_MAJOR 1
31686 #define NULL ((void*)0)
31693 #if DB_VERSION_MAJOR > 1
31696 int major, minor, patch;
31698 version = db_version( &major, &minor, &patch );
31700 if( major != DB_VERSION_MAJOR ||
31701 minor < DB_VERSION_MINOR )
31703 printf("Berkeley DB version mismatch\n"
31704 "\theader: %s\n\tlibrary: %s\n",
31705 DB_VERSION_STRING, version);
31711 #if DB_VERSION_MAJOR > 2
31712 db_env_create( NULL, 0 );
31713 #elif DB_VERSION_MAJOR > 1
31714 db_appexit( NULL );
31716 (void) dbopen( NULL, 0, 0, 0, NULL);
31723 rm -f conftest.$ac_objext conftest$ac_exeext
31724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31725 (eval $ac_link) 2>conftest.er1
31727 grep -v '^ *+' conftest.er1 >conftest.err
31729 cat conftest.err >&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); } &&
31732 { ac_try='test -z "$ac_c_werror_flag"
31733 || test ! -s conftest.err'
31734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31735 (eval $ac_try) 2>&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; } &&
31739 { ac_try='test -s conftest$ac_exeext'
31740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741 (eval $ac_try) 2>&5
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; }; then
31747 echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31752 rm -f conftest.err conftest.$ac_objext \
31753 conftest$ac_exeext conftest.$ac_ext
31758 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31759 echo "${ECHO_T}$ol_cv_db_db44" >&6
31761 if test $ol_cv_db_db44 = yes ; then
31762 ol_cv_lib_db=-ldb44
31766 if test $ol_cv_lib_db = no ; then
31767 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31768 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31769 if test "${ol_cv_db_db_44+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31775 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31777 cat >conftest.$ac_ext <<_ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h. */
31784 #ifdef HAVE_DB_185_H
31785 # include <db_185.h>
31790 #ifndef DB_VERSION_MAJOR
31791 # define DB_VERSION_MAJOR 1
31795 #define NULL ((void*)0)
31802 #if DB_VERSION_MAJOR > 1
31805 int major, minor, patch;
31807 version = db_version( &major, &minor, &patch );
31809 if( major != DB_VERSION_MAJOR ||
31810 minor < DB_VERSION_MINOR )
31812 printf("Berkeley DB version mismatch\n"
31813 "\theader: %s\n\tlibrary: %s\n",
31814 DB_VERSION_STRING, version);
31820 #if DB_VERSION_MAJOR > 2
31821 db_env_create( NULL, 0 );
31822 #elif DB_VERSION_MAJOR > 1
31823 db_appexit( NULL );
31825 (void) dbopen( NULL, 0, 0, 0, NULL);
31832 rm -f conftest.$ac_objext conftest$ac_exeext
31833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31834 (eval $ac_link) 2>conftest.er1
31836 grep -v '^ *+' conftest.er1 >conftest.err
31838 cat conftest.err >&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } &&
31841 { ac_try='test -z "$ac_c_werror_flag"
31842 || test ! -s conftest.err'
31843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31844 (eval $ac_try) 2>&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest$ac_exeext'
31849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31850 (eval $ac_try) 2>&5
31852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853 (exit $ac_status); }; }; then
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31861 rm -f conftest.err conftest.$ac_objext \
31862 conftest$ac_exeext conftest.$ac_ext
31867 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31868 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31870 if test $ol_cv_db_db_44 = yes ; then
31871 ol_cv_lib_db=-ldb-44
31875 if test $ol_cv_lib_db = no ; then
31876 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31877 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31878 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31884 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31886 cat >conftest.$ac_ext <<_ACEOF
31889 cat confdefs.h >>conftest.$ac_ext
31890 cat >>conftest.$ac_ext <<_ACEOF
31891 /* end confdefs.h. */
31893 #ifdef HAVE_DB_185_H
31894 # include <db_185.h>
31899 #ifndef DB_VERSION_MAJOR
31900 # define DB_VERSION_MAJOR 1
31904 #define NULL ((void*)0)
31911 #if DB_VERSION_MAJOR > 1
31914 int major, minor, patch;
31916 version = db_version( &major, &minor, &patch );
31918 if( major != DB_VERSION_MAJOR ||
31919 minor < DB_VERSION_MINOR )
31921 printf("Berkeley DB version mismatch\n"
31922 "\theader: %s\n\tlibrary: %s\n",
31923 DB_VERSION_STRING, version);
31929 #if DB_VERSION_MAJOR > 2
31930 db_env_create( NULL, 0 );
31931 #elif DB_VERSION_MAJOR > 1
31932 db_appexit( NULL );
31934 (void) dbopen( NULL, 0, 0, 0, NULL);
31941 rm -f conftest.$ac_objext conftest$ac_exeext
31942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31943 (eval $ac_link) 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } &&
31950 { ac_try='test -z "$ac_c_werror_flag"
31951 || test ! -s conftest.err'
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try='test -s conftest$ac_exeext'
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
31963 ol_cv_db_db_4_dot_4=yes
31965 echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31968 ol_cv_db_db_4_dot_4=no
31970 rm -f conftest.err conftest.$ac_objext \
31971 conftest$ac_exeext conftest.$ac_ext
31976 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31977 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31979 if test $ol_cv_db_db_4_dot_4 = yes ; then
31980 ol_cv_lib_db=-ldb-4.4
31984 if test $ol_cv_lib_db = no ; then
31985 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31986 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31987 if test "${ol_cv_db_db_4_4+set}" = set; then
31988 echo $ECHO_N "(cached) $ECHO_C" >&6
31993 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32002 #ifdef HAVE_DB_185_H
32003 # include <db_185.h>
32008 #ifndef DB_VERSION_MAJOR
32009 # define DB_VERSION_MAJOR 1
32013 #define NULL ((void*)0)
32020 #if DB_VERSION_MAJOR > 1
32023 int major, minor, patch;
32025 version = db_version( &major, &minor, &patch );
32027 if( major != DB_VERSION_MAJOR ||
32028 minor < DB_VERSION_MINOR )
32030 printf("Berkeley DB version mismatch\n"
32031 "\theader: %s\n\tlibrary: %s\n",
32032 DB_VERSION_STRING, version);
32038 #if DB_VERSION_MAJOR > 2
32039 db_env_create( NULL, 0 );
32040 #elif DB_VERSION_MAJOR > 1
32041 db_appexit( NULL );
32043 (void) dbopen( NULL, 0, 0, 0, NULL);
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32052 (eval $ac_link) 2>conftest.er1
32054 grep -v '^ *+' conftest.er1 >conftest.err
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag"
32060 || test ! -s conftest.err'
32061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062 (eval $ac_try) 2>&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; } &&
32066 { ac_try='test -s conftest$ac_exeext'
32067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32068 (eval $ac_try) 2>&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 ol_cv_db_db_4_4=yes
32074 echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32079 rm -f conftest.err conftest.$ac_objext \
32080 conftest$ac_exeext conftest.$ac_ext
32085 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32086 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32088 if test $ol_cv_db_db_4_4 = yes ; then
32089 ol_cv_lib_db=-ldb-4-4
32093 elif test $ol_cv_bdb_minor = 3 ; then
32094 if test $ol_cv_lib_db = no ; then
32095 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32096 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32097 if test "${ol_cv_db_db43+set}" = set; then
32098 echo $ECHO_N "(cached) $ECHO_C" >&6
32103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32105 cat >conftest.$ac_ext <<_ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32112 #ifdef HAVE_DB_185_H
32113 # include <db_185.h>
32118 #ifndef DB_VERSION_MAJOR
32119 # define DB_VERSION_MAJOR 1
32123 #define NULL ((void*)0)
32130 #if DB_VERSION_MAJOR > 1
32133 int major, minor, patch;
32135 version = db_version( &major, &minor, &patch );
32137 if( major != DB_VERSION_MAJOR ||
32138 minor < DB_VERSION_MINOR )
32140 printf("Berkeley DB version mismatch\n"
32141 "\theader: %s\n\tlibrary: %s\n",
32142 DB_VERSION_STRING, version);
32148 #if DB_VERSION_MAJOR > 2
32149 db_env_create( NULL, 0 );
32150 #elif DB_VERSION_MAJOR > 1
32151 db_appexit( NULL );
32153 (void) dbopen( NULL, 0, 0, 0, NULL);
32160 rm -f conftest.$ac_objext conftest$ac_exeext
32161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32162 (eval $ac_link) 2>conftest.er1
32164 grep -v '^ *+' conftest.er1 >conftest.err
32166 cat conftest.err >&5
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); } &&
32169 { ac_try='test -z "$ac_c_werror_flag"
32170 || test ! -s conftest.err'
32171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32172 (eval $ac_try) 2>&5
32174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175 (exit $ac_status); }; } &&
32176 { ac_try='test -s conftest$ac_exeext'
32177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32178 (eval $ac_try) 2>&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); }; }; then
32184 echo "$as_me: failed program was:" >&5
32185 sed 's/^/| /' conftest.$ac_ext >&5
32189 rm -f conftest.err conftest.$ac_objext \
32190 conftest$ac_exeext conftest.$ac_ext
32195 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32196 echo "${ECHO_T}$ol_cv_db_db43" >&6
32198 if test $ol_cv_db_db43 = yes ; then
32199 ol_cv_lib_db=-ldb43
32203 if test $ol_cv_lib_db = no ; then
32204 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32205 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32206 if test "${ol_cv_db_db_43+set}" = set; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32212 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32214 cat >conftest.$ac_ext <<_ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h. */
32221 #ifdef HAVE_DB_185_H
32222 # include <db_185.h>
32227 #ifndef DB_VERSION_MAJOR
32228 # define DB_VERSION_MAJOR 1
32232 #define NULL ((void*)0)
32239 #if DB_VERSION_MAJOR > 1
32242 int major, minor, patch;
32244 version = db_version( &major, &minor, &patch );
32246 if( major != DB_VERSION_MAJOR ||
32247 minor < DB_VERSION_MINOR )
32249 printf("Berkeley DB version mismatch\n"
32250 "\theader: %s\n\tlibrary: %s\n",
32251 DB_VERSION_STRING, version);
32257 #if DB_VERSION_MAJOR > 2
32258 db_env_create( NULL, 0 );
32259 #elif DB_VERSION_MAJOR > 1
32260 db_appexit( NULL );
32262 (void) dbopen( NULL, 0, 0, 0, NULL);
32269 rm -f conftest.$ac_objext conftest$ac_exeext
32270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32271 (eval $ac_link) 2>conftest.er1
32273 grep -v '^ *+' conftest.er1 >conftest.err
32275 cat conftest.err >&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); } &&
32278 { ac_try='test -z "$ac_c_werror_flag"
32279 || test ! -s conftest.err'
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; } &&
32285 { ac_try='test -s conftest$ac_exeext'
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; }; then
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32298 rm -f conftest.err conftest.$ac_objext \
32299 conftest$ac_exeext conftest.$ac_ext
32304 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32305 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32307 if test $ol_cv_db_db_43 = yes ; then
32308 ol_cv_lib_db=-ldb-43
32312 if test $ol_cv_lib_db = no ; then
32313 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32314 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32315 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32316 echo $ECHO_N "(cached) $ECHO_C" >&6
32321 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32323 cat >conftest.$ac_ext <<_ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h. */
32330 #ifdef HAVE_DB_185_H
32331 # include <db_185.h>
32336 #ifndef DB_VERSION_MAJOR
32337 # define DB_VERSION_MAJOR 1
32341 #define NULL ((void*)0)
32348 #if DB_VERSION_MAJOR > 1
32351 int major, minor, patch;
32353 version = db_version( &major, &minor, &patch );
32355 if( major != DB_VERSION_MAJOR ||
32356 minor < DB_VERSION_MINOR )
32358 printf("Berkeley DB version mismatch\n"
32359 "\theader: %s\n\tlibrary: %s\n",
32360 DB_VERSION_STRING, version);
32366 #if DB_VERSION_MAJOR > 2
32367 db_env_create( NULL, 0 );
32368 #elif DB_VERSION_MAJOR > 1
32369 db_appexit( NULL );
32371 (void) dbopen( NULL, 0, 0, 0, NULL);
32378 rm -f conftest.$ac_objext conftest$ac_exeext
32379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32380 (eval $ac_link) 2>conftest.er1
32382 grep -v '^ *+' conftest.er1 >conftest.err
32384 cat conftest.err >&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); } &&
32387 { ac_try='test -z "$ac_c_werror_flag"
32388 || test ! -s conftest.err'
32389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390 (eval $ac_try) 2>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; } &&
32394 { ac_try='test -s conftest$ac_exeext'
32395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32396 (eval $ac_try) 2>&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
32400 ol_cv_db_db_4_dot_3=yes
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 ol_cv_db_db_4_dot_3=no
32407 rm -f conftest.err conftest.$ac_objext \
32408 conftest$ac_exeext conftest.$ac_ext
32413 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32414 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32416 if test $ol_cv_db_db_4_dot_3 = yes ; then
32417 ol_cv_lib_db=-ldb-4.3
32421 if test $ol_cv_lib_db = no ; then
32422 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32423 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32424 if test "${ol_cv_db_db_4_3+set}" = set; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32432 cat >conftest.$ac_ext <<_ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32439 #ifdef HAVE_DB_185_H
32440 # include <db_185.h>
32445 #ifndef DB_VERSION_MAJOR
32446 # define DB_VERSION_MAJOR 1
32450 #define NULL ((void*)0)
32457 #if DB_VERSION_MAJOR > 1
32460 int major, minor, patch;
32462 version = db_version( &major, &minor, &patch );
32464 if( major != DB_VERSION_MAJOR ||
32465 minor < DB_VERSION_MINOR )
32467 printf("Berkeley DB version mismatch\n"
32468 "\theader: %s\n\tlibrary: %s\n",
32469 DB_VERSION_STRING, version);
32475 #if DB_VERSION_MAJOR > 2
32476 db_env_create( NULL, 0 );
32477 #elif DB_VERSION_MAJOR > 1
32478 db_appexit( NULL );
32480 (void) dbopen( NULL, 0, 0, 0, NULL);
32487 rm -f conftest.$ac_objext conftest$ac_exeext
32488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32489 (eval $ac_link) 2>conftest.er1
32491 grep -v '^ *+' conftest.er1 >conftest.err
32493 cat conftest.err >&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); } &&
32496 { ac_try='test -z "$ac_c_werror_flag"
32497 || test ! -s conftest.err'
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } &&
32503 { ac_try='test -s conftest$ac_exeext'
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 ol_cv_db_db_4_3=yes
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32516 rm -f conftest.err conftest.$ac_objext \
32517 conftest$ac_exeext conftest.$ac_ext
32522 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32523 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32525 if test $ol_cv_db_db_4_3 = yes ; then
32526 ol_cv_lib_db=-ldb-4-3
32530 elif test $ol_cv_bdb_minor = 2 ; then
32531 if test $ol_cv_lib_db = no ; then
32532 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32533 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32534 if test "${ol_cv_db_db42+set}" = set; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32540 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32542 cat >conftest.$ac_ext <<_ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h. */
32549 #ifdef HAVE_DB_185_H
32550 # include <db_185.h>
32555 #ifndef DB_VERSION_MAJOR
32556 # define DB_VERSION_MAJOR 1
32560 #define NULL ((void*)0)
32567 #if DB_VERSION_MAJOR > 1
32570 int major, minor, patch;
32572 version = db_version( &major, &minor, &patch );
32574 if( major != DB_VERSION_MAJOR ||
32575 minor < DB_VERSION_MINOR )
32577 printf("Berkeley DB version mismatch\n"
32578 "\theader: %s\n\tlibrary: %s\n",
32579 DB_VERSION_STRING, version);
32585 #if DB_VERSION_MAJOR > 2
32586 db_env_create( NULL, 0 );
32587 #elif DB_VERSION_MAJOR > 1
32588 db_appexit( NULL );
32590 (void) dbopen( NULL, 0, 0, 0, NULL);
32597 rm -f conftest.$ac_objext conftest$ac_exeext
32598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32599 (eval $ac_link) 2>conftest.er1
32601 grep -v '^ *+' conftest.er1 >conftest.err
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); } &&
32606 { ac_try='test -z "$ac_c_werror_flag"
32607 || test ! -s conftest.err'
32608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609 (eval $ac_try) 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; } &&
32613 { ac_try='test -s conftest$ac_exeext'
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32621 echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32626 rm -f conftest.err conftest.$ac_objext \
32627 conftest$ac_exeext conftest.$ac_ext
32632 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32633 echo "${ECHO_T}$ol_cv_db_db42" >&6
32635 if test $ol_cv_db_db42 = yes ; then
32636 ol_cv_lib_db=-ldb42
32640 if test $ol_cv_lib_db = no ; then
32641 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32642 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32643 if test "${ol_cv_db_db_42+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32649 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32651 cat >conftest.$ac_ext <<_ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32658 #ifdef HAVE_DB_185_H
32659 # include <db_185.h>
32664 #ifndef DB_VERSION_MAJOR
32665 # define DB_VERSION_MAJOR 1
32669 #define NULL ((void*)0)
32676 #if DB_VERSION_MAJOR > 1
32679 int major, minor, patch;
32681 version = db_version( &major, &minor, &patch );
32683 if( major != DB_VERSION_MAJOR ||
32684 minor < DB_VERSION_MINOR )
32686 printf("Berkeley DB version mismatch\n"
32687 "\theader: %s\n\tlibrary: %s\n",
32688 DB_VERSION_STRING, version);
32694 #if DB_VERSION_MAJOR > 2
32695 db_env_create( NULL, 0 );
32696 #elif DB_VERSION_MAJOR > 1
32697 db_appexit( NULL );
32699 (void) dbopen( NULL, 0, 0, 0, NULL);
32706 rm -f conftest.$ac_objext conftest$ac_exeext
32707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32708 (eval $ac_link) 2>conftest.er1
32710 grep -v '^ *+' conftest.er1 >conftest.err
32712 cat conftest.err >&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } &&
32715 { ac_try='test -z "$ac_c_werror_flag"
32716 || test ! -s conftest.err'
32717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32718 (eval $ac_try) 2>&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; } &&
32722 { ac_try='test -s conftest$ac_exeext'
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; }; then
32730 echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32735 rm -f conftest.err conftest.$ac_objext \
32736 conftest$ac_exeext conftest.$ac_ext
32741 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32742 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32744 if test $ol_cv_db_db_42 = yes ; then
32745 ol_cv_lib_db=-ldb-42
32749 if test $ol_cv_lib_db = no ; then
32750 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32751 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32752 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32753 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32760 cat >conftest.$ac_ext <<_ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h. */
32767 #ifdef HAVE_DB_185_H
32768 # include <db_185.h>
32773 #ifndef DB_VERSION_MAJOR
32774 # define DB_VERSION_MAJOR 1
32778 #define NULL ((void*)0)
32785 #if DB_VERSION_MAJOR > 1
32788 int major, minor, patch;
32790 version = db_version( &major, &minor, &patch );
32792 if( major != DB_VERSION_MAJOR ||
32793 minor < DB_VERSION_MINOR )
32795 printf("Berkeley DB version mismatch\n"
32796 "\theader: %s\n\tlibrary: %s\n",
32797 DB_VERSION_STRING, version);
32803 #if DB_VERSION_MAJOR > 2
32804 db_env_create( NULL, 0 );
32805 #elif DB_VERSION_MAJOR > 1
32806 db_appexit( NULL );
32808 (void) dbopen( NULL, 0, 0, 0, NULL);
32815 rm -f conftest.$ac_objext conftest$ac_exeext
32816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817 (eval $ac_link) 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
32824 { ac_try='test -z "$ac_c_werror_flag"
32825 || test ! -s conftest.err'
32826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32827 (eval $ac_try) 2>&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); }; } &&
32831 { ac_try='test -s conftest$ac_exeext'
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; }; then
32837 ol_cv_db_db_4_dot_2=yes
32839 echo "$as_me: failed program was:" >&5
32840 sed 's/^/| /' conftest.$ac_ext >&5
32842 ol_cv_db_db_4_dot_2=no
32844 rm -f conftest.err conftest.$ac_objext \
32845 conftest$ac_exeext conftest.$ac_ext
32850 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32851 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32853 if test $ol_cv_db_db_4_dot_2 = yes ; then
32854 ol_cv_lib_db=-ldb-4.2
32858 if test $ol_cv_lib_db = no ; then
32859 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32860 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32861 if test "${ol_cv_db_db_4_2+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32867 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32869 cat >conftest.$ac_ext <<_ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h. */
32876 #ifdef HAVE_DB_185_H
32877 # include <db_185.h>
32882 #ifndef DB_VERSION_MAJOR
32883 # define DB_VERSION_MAJOR 1
32887 #define NULL ((void*)0)
32894 #if DB_VERSION_MAJOR > 1
32897 int major, minor, patch;
32899 version = db_version( &major, &minor, &patch );
32901 if( major != DB_VERSION_MAJOR ||
32902 minor < DB_VERSION_MINOR )
32904 printf("Berkeley DB version mismatch\n"
32905 "\theader: %s\n\tlibrary: %s\n",
32906 DB_VERSION_STRING, version);
32912 #if DB_VERSION_MAJOR > 2
32913 db_env_create( NULL, 0 );
32914 #elif DB_VERSION_MAJOR > 1
32915 db_appexit( NULL );
32917 (void) dbopen( NULL, 0, 0, 0, NULL);
32924 rm -f conftest.$ac_objext conftest$ac_exeext
32925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32926 (eval $ac_link) 2>conftest.er1
32928 grep -v '^ *+' conftest.er1 >conftest.err
32930 cat conftest.err >&5
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); } &&
32933 { ac_try='test -z "$ac_c_werror_flag"
32934 || test ! -s conftest.err'
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; } &&
32940 { ac_try='test -s conftest$ac_exeext'
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 ol_cv_db_db_4_2=yes
32948 echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32953 rm -f conftest.err conftest.$ac_objext \
32954 conftest$ac_exeext conftest.$ac_ext
32959 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32960 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32962 if test $ol_cv_db_db_4_2 = yes ; then
32963 ol_cv_lib_db=-ldb-4-2
32967 elif test $ol_cv_bdb_minor = 1 ; then
32968 if test $ol_cv_lib_db = no ; then
32969 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32970 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32971 if test "${ol_cv_db_db41+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32977 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32979 cat >conftest.$ac_ext <<_ACEOF
32982 cat confdefs.h >>conftest.$ac_ext
32983 cat >>conftest.$ac_ext <<_ACEOF
32984 /* end confdefs.h. */
32986 #ifdef HAVE_DB_185_H
32987 # include <db_185.h>
32992 #ifndef DB_VERSION_MAJOR
32993 # define DB_VERSION_MAJOR 1
32997 #define NULL ((void*)0)
33004 #if DB_VERSION_MAJOR > 1
33007 int major, minor, patch;
33009 version = db_version( &major, &minor, &patch );
33011 if( major != DB_VERSION_MAJOR ||
33012 minor < DB_VERSION_MINOR )
33014 printf("Berkeley DB version mismatch\n"
33015 "\theader: %s\n\tlibrary: %s\n",
33016 DB_VERSION_STRING, version);
33022 #if DB_VERSION_MAJOR > 2
33023 db_env_create( NULL, 0 );
33024 #elif DB_VERSION_MAJOR > 1
33025 db_appexit( NULL );
33027 (void) dbopen( NULL, 0, 0, 0, NULL);
33034 rm -f conftest.$ac_objext conftest$ac_exeext
33035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33036 (eval $ac_link) 2>conftest.er1
33038 grep -v '^ *+' conftest.er1 >conftest.err
33040 cat conftest.err >&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } &&
33043 { ac_try='test -z "$ac_c_werror_flag"
33044 || test ! -s conftest.err'
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest$ac_exeext'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33058 echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33063 rm -f conftest.err conftest.$ac_objext \
33064 conftest$ac_exeext conftest.$ac_ext
33069 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33070 echo "${ECHO_T}$ol_cv_db_db41" >&6
33072 if test $ol_cv_db_db41 = yes ; then
33073 ol_cv_lib_db=-ldb41
33077 if test $ol_cv_lib_db = no ; then
33078 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33079 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33080 if test "${ol_cv_db_db_41+set}" = set; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33086 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33088 cat >conftest.$ac_ext <<_ACEOF
33091 cat confdefs.h >>conftest.$ac_ext
33092 cat >>conftest.$ac_ext <<_ACEOF
33093 /* end confdefs.h. */
33095 #ifdef HAVE_DB_185_H
33096 # include <db_185.h>
33101 #ifndef DB_VERSION_MAJOR
33102 # define DB_VERSION_MAJOR 1
33106 #define NULL ((void*)0)
33113 #if DB_VERSION_MAJOR > 1
33116 int major, minor, patch;
33118 version = db_version( &major, &minor, &patch );
33120 if( major != DB_VERSION_MAJOR ||
33121 minor < DB_VERSION_MINOR )
33123 printf("Berkeley DB version mismatch\n"
33124 "\theader: %s\n\tlibrary: %s\n",
33125 DB_VERSION_STRING, version);
33131 #if DB_VERSION_MAJOR > 2
33132 db_env_create( NULL, 0 );
33133 #elif DB_VERSION_MAJOR > 1
33134 db_appexit( NULL );
33136 (void) dbopen( NULL, 0, 0, 0, NULL);
33143 rm -f conftest.$ac_objext conftest$ac_exeext
33144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33145 (eval $ac_link) 2>conftest.er1
33147 grep -v '^ *+' conftest.er1 >conftest.err
33149 cat conftest.err >&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); } &&
33152 { ac_try='test -z "$ac_c_werror_flag"
33153 || test ! -s conftest.err'
33154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33155 (eval $ac_try) 2>&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; } &&
33159 { ac_try='test -s conftest$ac_exeext'
33160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33161 (eval $ac_try) 2>&5
33163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); }; }; then
33167 echo "$as_me: failed program was:" >&5
33168 sed 's/^/| /' conftest.$ac_ext >&5
33172 rm -f conftest.err conftest.$ac_objext \
33173 conftest$ac_exeext conftest.$ac_ext
33178 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33179 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33181 if test $ol_cv_db_db_41 = yes ; then
33182 ol_cv_lib_db=-ldb-41
33186 if test $ol_cv_lib_db = no ; then
33187 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33188 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33189 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33195 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33197 cat >conftest.$ac_ext <<_ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h. */
33204 #ifdef HAVE_DB_185_H
33205 # include <db_185.h>
33210 #ifndef DB_VERSION_MAJOR
33211 # define DB_VERSION_MAJOR 1
33215 #define NULL ((void*)0)
33222 #if DB_VERSION_MAJOR > 1
33225 int major, minor, patch;
33227 version = db_version( &major, &minor, &patch );
33229 if( major != DB_VERSION_MAJOR ||
33230 minor < DB_VERSION_MINOR )
33232 printf("Berkeley DB version mismatch\n"
33233 "\theader: %s\n\tlibrary: %s\n",
33234 DB_VERSION_STRING, version);
33240 #if DB_VERSION_MAJOR > 2
33241 db_env_create( NULL, 0 );
33242 #elif DB_VERSION_MAJOR > 1
33243 db_appexit( NULL );
33245 (void) dbopen( NULL, 0, 0, 0, NULL);
33252 rm -f conftest.$ac_objext conftest$ac_exeext
33253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33254 (eval $ac_link) 2>conftest.er1
33256 grep -v '^ *+' conftest.er1 >conftest.err
33258 cat conftest.err >&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
33261 { ac_try='test -z "$ac_c_werror_flag"
33262 || test ! -s conftest.err'
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest$ac_exeext'
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274 ol_cv_db_db_4_dot_1=yes
33276 echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33279 ol_cv_db_db_4_dot_1=no
33281 rm -f conftest.err conftest.$ac_objext \
33282 conftest$ac_exeext conftest.$ac_ext
33287 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33288 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33290 if test $ol_cv_db_db_4_dot_1 = yes ; then
33291 ol_cv_lib_db=-ldb-4.1
33295 if test $ol_cv_lib_db = no ; then
33296 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33297 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33298 if test "${ol_cv_db_db_4_1+set}" = set; then
33299 echo $ECHO_N "(cached) $ECHO_C" >&6
33304 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33306 cat >conftest.$ac_ext <<_ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h. */
33313 #ifdef HAVE_DB_185_H
33314 # include <db_185.h>
33319 #ifndef DB_VERSION_MAJOR
33320 # define DB_VERSION_MAJOR 1
33324 #define NULL ((void*)0)
33331 #if DB_VERSION_MAJOR > 1
33334 int major, minor, patch;
33336 version = db_version( &major, &minor, &patch );
33338 if( major != DB_VERSION_MAJOR ||
33339 minor < DB_VERSION_MINOR )
33341 printf("Berkeley DB version mismatch\n"
33342 "\theader: %s\n\tlibrary: %s\n",
33343 DB_VERSION_STRING, version);
33349 #if DB_VERSION_MAJOR > 2
33350 db_env_create( NULL, 0 );
33351 #elif DB_VERSION_MAJOR > 1
33352 db_appexit( NULL );
33354 (void) dbopen( NULL, 0, 0, 0, NULL);
33361 rm -f conftest.$ac_objext conftest$ac_exeext
33362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33363 (eval $ac_link) 2>conftest.er1
33365 grep -v '^ *+' conftest.er1 >conftest.err
33367 cat conftest.err >&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); } &&
33370 { ac_try='test -z "$ac_c_werror_flag"
33371 || test ! -s conftest.err'
33372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33373 (eval $ac_try) 2>&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; } &&
33377 { ac_try='test -s conftest$ac_exeext'
33378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33379 (eval $ac_try) 2>&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; }; then
33383 ol_cv_db_db_4_1=yes
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33390 rm -f conftest.err conftest.$ac_objext \
33391 conftest$ac_exeext conftest.$ac_ext
33396 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33397 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33399 if test $ol_cv_db_db_4_1 = yes ; then
33400 ol_cv_lib_db=-ldb-4-1
33405 if test $ol_cv_lib_db = no ; then
33406 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33407 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33408 if test "${ol_cv_db_db_4+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33414 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33416 cat >conftest.$ac_ext <<_ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h. */
33423 #ifdef HAVE_DB_185_H
33424 # include <db_185.h>
33429 #ifndef DB_VERSION_MAJOR
33430 # define DB_VERSION_MAJOR 1
33434 #define NULL ((void*)0)
33441 #if DB_VERSION_MAJOR > 1
33444 int major, minor, patch;
33446 version = db_version( &major, &minor, &patch );
33448 if( major != DB_VERSION_MAJOR ||
33449 minor < DB_VERSION_MINOR )
33451 printf("Berkeley DB version mismatch\n"
33452 "\theader: %s\n\tlibrary: %s\n",
33453 DB_VERSION_STRING, version);
33459 #if DB_VERSION_MAJOR > 2
33460 db_env_create( NULL, 0 );
33461 #elif DB_VERSION_MAJOR > 1
33462 db_appexit( NULL );
33464 (void) dbopen( NULL, 0, 0, 0, NULL);
33471 rm -f conftest.$ac_objext conftest$ac_exeext
33472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33473 (eval $ac_link) 2>conftest.er1
33475 grep -v '^ *+' conftest.er1 >conftest.err
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } &&
33480 { ac_try='test -z "$ac_c_werror_flag"
33481 || test ! -s conftest.err'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; } &&
33487 { ac_try='test -s conftest$ac_exeext'
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; }; then
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33500 rm -f conftest.err conftest.$ac_objext \
33501 conftest$ac_exeext conftest.$ac_ext
33506 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33507 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33509 if test $ol_cv_db_db_4 = yes ; then
33510 ol_cv_lib_db=-ldb-4
33514 if test $ol_cv_lib_db = no ; then
33515 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33516 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33517 if test "${ol_cv_db_db4+set}" = set; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33523 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33525 cat >conftest.$ac_ext <<_ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h. */
33532 #ifdef HAVE_DB_185_H
33533 # include <db_185.h>
33538 #ifndef DB_VERSION_MAJOR
33539 # define DB_VERSION_MAJOR 1
33543 #define NULL ((void*)0)
33550 #if DB_VERSION_MAJOR > 1
33553 int major, minor, patch;
33555 version = db_version( &major, &minor, &patch );
33557 if( major != DB_VERSION_MAJOR ||
33558 minor < DB_VERSION_MINOR )
33560 printf("Berkeley DB version mismatch\n"
33561 "\theader: %s\n\tlibrary: %s\n",
33562 DB_VERSION_STRING, version);
33568 #if DB_VERSION_MAJOR > 2
33569 db_env_create( NULL, 0 );
33570 #elif DB_VERSION_MAJOR > 1
33571 db_appexit( NULL );
33573 (void) dbopen( NULL, 0, 0, 0, NULL);
33580 rm -f conftest.$ac_objext conftest$ac_exeext
33581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33582 (eval $ac_link) 2>conftest.er1
33584 grep -v '^ *+' conftest.er1 >conftest.err
33586 cat conftest.err >&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } &&
33589 { ac_try='test -z "$ac_c_werror_flag"
33590 || test ! -s conftest.err'
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; } &&
33596 { ac_try='test -s conftest$ac_exeext'
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; }; then
33604 echo "$as_me: failed program was:" >&5
33605 sed 's/^/| /' conftest.$ac_ext >&5
33609 rm -f conftest.err conftest.$ac_objext \
33610 conftest$ac_exeext conftest.$ac_ext
33615 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33616 echo "${ECHO_T}$ol_cv_db_db4" >&6
33618 if test $ol_cv_db_db4 = yes ; then
33623 if test $ol_cv_lib_db = no ; then
33624 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33625 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33626 if test "${ol_cv_db_db+set}" = set; then
33627 echo $ECHO_N "(cached) $ECHO_C" >&6
33632 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33634 cat >conftest.$ac_ext <<_ACEOF
33637 cat confdefs.h >>conftest.$ac_ext
33638 cat >>conftest.$ac_ext <<_ACEOF
33639 /* end confdefs.h. */
33641 #ifdef HAVE_DB_185_H
33642 # include <db_185.h>
33647 #ifndef DB_VERSION_MAJOR
33648 # define DB_VERSION_MAJOR 1
33652 #define NULL ((void*)0)
33659 #if DB_VERSION_MAJOR > 1
33662 int major, minor, patch;
33664 version = db_version( &major, &minor, &patch );
33666 if( major != DB_VERSION_MAJOR ||
33667 minor < DB_VERSION_MINOR )
33669 printf("Berkeley DB version mismatch\n"
33670 "\theader: %s\n\tlibrary: %s\n",
33671 DB_VERSION_STRING, version);
33677 #if DB_VERSION_MAJOR > 2
33678 db_env_create( NULL, 0 );
33679 #elif DB_VERSION_MAJOR > 1
33680 db_appexit( NULL );
33682 (void) dbopen( NULL, 0, 0, 0, NULL);
33689 rm -f conftest.$ac_objext conftest$ac_exeext
33690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33691 (eval $ac_link) 2>conftest.er1
33693 grep -v '^ *+' conftest.er1 >conftest.err
33695 cat conftest.err >&5
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); } &&
33698 { ac_try='test -z "$ac_c_werror_flag"
33699 || test ! -s conftest.err'
33700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33701 (eval $ac_try) 2>&5
33703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33704 (exit $ac_status); }; } &&
33705 { ac_try='test -s conftest$ac_exeext'
33706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33707 (eval $ac_try) 2>&5
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; }; then
33713 echo "$as_me: failed program was:" >&5
33714 sed 's/^/| /' conftest.$ac_ext >&5
33718 rm -f conftest.err conftest.$ac_objext \
33719 conftest$ac_exeext conftest.$ac_ext
33724 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33725 echo "${ECHO_T}$ol_cv_db_db" >&6
33727 if test $ol_cv_db_db = yes ; then
33733 elif test $ol_cv_bdb_major = 3 ; then
33734 if test $ol_cv_lib_db = no ; then
33735 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33736 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33737 if test "${ol_cv_db_db3+set}" = set; then
33738 echo $ECHO_N "(cached) $ECHO_C" >&6
33743 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33745 cat >conftest.$ac_ext <<_ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h. */
33752 #ifdef HAVE_DB_185_H
33753 # include <db_185.h>
33758 #ifndef DB_VERSION_MAJOR
33759 # define DB_VERSION_MAJOR 1
33763 #define NULL ((void*)0)
33770 #if DB_VERSION_MAJOR > 1
33773 int major, minor, patch;
33775 version = db_version( &major, &minor, &patch );
33777 if( major != DB_VERSION_MAJOR ||
33778 minor < DB_VERSION_MINOR )
33780 printf("Berkeley DB version mismatch\n"
33781 "\theader: %s\n\tlibrary: %s\n",
33782 DB_VERSION_STRING, version);
33788 #if DB_VERSION_MAJOR > 2
33789 db_env_create( NULL, 0 );
33790 #elif DB_VERSION_MAJOR > 1
33791 db_appexit( NULL );
33793 (void) dbopen( NULL, 0, 0, 0, NULL);
33800 rm -f conftest.$ac_objext conftest$ac_exeext
33801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33802 (eval $ac_link) 2>conftest.er1
33804 grep -v '^ *+' conftest.er1 >conftest.err
33806 cat conftest.err >&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } &&
33809 { ac_try='test -z "$ac_c_werror_flag"
33810 || test ! -s conftest.err'
33811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33812 (eval $ac_try) 2>&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; } &&
33816 { ac_try='test -s conftest$ac_exeext'
33817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818 (eval $ac_try) 2>&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33824 echo "$as_me: failed program was:" >&5
33825 sed 's/^/| /' conftest.$ac_ext >&5
33829 rm -f conftest.err conftest.$ac_objext \
33830 conftest$ac_exeext conftest.$ac_ext
33835 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33836 echo "${ECHO_T}$ol_cv_db_db3" >&6
33838 if test $ol_cv_db_db3 = yes ; then
33843 if test $ol_cv_lib_db = no ; then
33844 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33845 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33846 if test "${ol_cv_db_db_3+set}" = set; then
33847 echo $ECHO_N "(cached) $ECHO_C" >&6
33852 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33854 cat >conftest.$ac_ext <<_ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h. */
33861 #ifdef HAVE_DB_185_H
33862 # include <db_185.h>
33867 #ifndef DB_VERSION_MAJOR
33868 # define DB_VERSION_MAJOR 1
33872 #define NULL ((void*)0)
33879 #if DB_VERSION_MAJOR > 1
33882 int major, minor, patch;
33884 version = db_version( &major, &minor, &patch );
33886 if( major != DB_VERSION_MAJOR ||
33887 minor < DB_VERSION_MINOR )
33889 printf("Berkeley DB version mismatch\n"
33890 "\theader: %s\n\tlibrary: %s\n",
33891 DB_VERSION_STRING, version);
33897 #if DB_VERSION_MAJOR > 2
33898 db_env_create( NULL, 0 );
33899 #elif DB_VERSION_MAJOR > 1
33900 db_appexit( NULL );
33902 (void) dbopen( NULL, 0, 0, 0, NULL);
33909 rm -f conftest.$ac_objext conftest$ac_exeext
33910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33911 (eval $ac_link) 2>conftest.er1
33913 grep -v '^ *+' conftest.er1 >conftest.err
33915 cat conftest.err >&5
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); } &&
33918 { ac_try='test -z "$ac_c_werror_flag"
33919 || test ! -s conftest.err'
33920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33921 (eval $ac_try) 2>&5
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); }; } &&
33925 { ac_try='test -s conftest$ac_exeext'
33926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33927 (eval $ac_try) 2>&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); }; }; then
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33938 rm -f conftest.err conftest.$ac_objext \
33939 conftest$ac_exeext conftest.$ac_ext
33944 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33945 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33947 if test $ol_cv_db_db_3 = yes ; then
33948 ol_cv_lib_db=-ldb-3
33953 elif test $ol_cv_bdb_major = 2 ; then
33954 if test $ol_cv_lib_db = no ; then
33955 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33956 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33957 if test "${ol_cv_db_db2+set}" = set; then
33958 echo $ECHO_N "(cached) $ECHO_C" >&6
33963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33965 cat >conftest.$ac_ext <<_ACEOF
33968 cat confdefs.h >>conftest.$ac_ext
33969 cat >>conftest.$ac_ext <<_ACEOF
33970 /* end confdefs.h. */
33972 #ifdef HAVE_DB_185_H
33973 # include <db_185.h>
33978 #ifndef DB_VERSION_MAJOR
33979 # define DB_VERSION_MAJOR 1
33983 #define NULL ((void*)0)
33990 #if DB_VERSION_MAJOR > 1
33993 int major, minor, patch;
33995 version = db_version( &major, &minor, &patch );
33997 if( major != DB_VERSION_MAJOR ||
33998 minor < DB_VERSION_MINOR )
34000 printf("Berkeley DB version mismatch\n"
34001 "\theader: %s\n\tlibrary: %s\n",
34002 DB_VERSION_STRING, version);
34008 #if DB_VERSION_MAJOR > 2
34009 db_env_create( NULL, 0 );
34010 #elif DB_VERSION_MAJOR > 1
34011 db_appexit( NULL );
34013 (void) dbopen( NULL, 0, 0, 0, NULL);
34020 rm -f conftest.$ac_objext conftest$ac_exeext
34021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34022 (eval $ac_link) 2>conftest.er1
34024 grep -v '^ *+' conftest.er1 >conftest.err
34026 cat conftest.err >&5
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); } &&
34029 { ac_try='test -z "$ac_c_werror_flag"
34030 || test ! -s conftest.err'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; } &&
34036 { ac_try='test -s conftest$ac_exeext'
34037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34038 (eval $ac_try) 2>&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); }; }; then
34044 echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.$ac_ext >&5
34049 rm -f conftest.err conftest.$ac_objext \
34050 conftest$ac_exeext conftest.$ac_ext
34055 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34056 echo "${ECHO_T}$ol_cv_db_db2" >&6
34058 if test $ol_cv_db_db2 = yes ; then
34063 if test $ol_cv_lib_db = no ; then
34064 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34065 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34066 if test "${ol_cv_db_db_2+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
34072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34074 cat >conftest.$ac_ext <<_ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h. */
34081 #ifdef HAVE_DB_185_H
34082 # include <db_185.h>
34087 #ifndef DB_VERSION_MAJOR
34088 # define DB_VERSION_MAJOR 1
34092 #define NULL ((void*)0)
34099 #if DB_VERSION_MAJOR > 1
34102 int major, minor, patch;
34104 version = db_version( &major, &minor, &patch );
34106 if( major != DB_VERSION_MAJOR ||
34107 minor < DB_VERSION_MINOR )
34109 printf("Berkeley DB version mismatch\n"
34110 "\theader: %s\n\tlibrary: %s\n",
34111 DB_VERSION_STRING, version);
34117 #if DB_VERSION_MAJOR > 2
34118 db_env_create( NULL, 0 );
34119 #elif DB_VERSION_MAJOR > 1
34120 db_appexit( NULL );
34122 (void) dbopen( NULL, 0, 0, 0, NULL);
34129 rm -f conftest.$ac_objext conftest$ac_exeext
34130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34131 (eval $ac_link) 2>conftest.er1
34133 grep -v '^ *+' conftest.er1 >conftest.err
34135 cat conftest.err >&5
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); } &&
34138 { ac_try='test -z "$ac_c_werror_flag"
34139 || test ! -s conftest.err'
34140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141 (eval $ac_try) 2>&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); }; } &&
34145 { ac_try='test -s conftest$ac_exeext'
34146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34147 (eval $ac_try) 2>&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); }; }; then
34153 echo "$as_me: failed program was:" >&5
34154 sed 's/^/| /' conftest.$ac_ext >&5
34158 rm -f conftest.err conftest.$ac_objext \
34159 conftest$ac_exeext conftest.$ac_ext
34164 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34165 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34167 if test $ol_cv_db_db_2 = yes ; then
34168 ol_cv_lib_db=-ldb-2
34173 elif test $ol_cv_bdb_major = 1 ; then
34174 if test $ol_cv_lib_db = no ; then
34175 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34176 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34177 if test "${ol_cv_db_db1+set}" = set; then
34178 echo $ECHO_N "(cached) $ECHO_C" >&6
34183 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34185 cat >conftest.$ac_ext <<_ACEOF
34188 cat confdefs.h >>conftest.$ac_ext
34189 cat >>conftest.$ac_ext <<_ACEOF
34190 /* end confdefs.h. */
34192 #ifdef HAVE_DB_185_H
34193 # include <db_185.h>
34198 #ifndef DB_VERSION_MAJOR
34199 # define DB_VERSION_MAJOR 1
34203 #define NULL ((void*)0)
34210 #if DB_VERSION_MAJOR > 1
34213 int major, minor, patch;
34215 version = db_version( &major, &minor, &patch );
34217 if( major != DB_VERSION_MAJOR ||
34218 minor < DB_VERSION_MINOR )
34220 printf("Berkeley DB version mismatch\n"
34221 "\theader: %s\n\tlibrary: %s\n",
34222 DB_VERSION_STRING, version);
34228 #if DB_VERSION_MAJOR > 2
34229 db_env_create( NULL, 0 );
34230 #elif DB_VERSION_MAJOR > 1
34231 db_appexit( NULL );
34233 (void) dbopen( NULL, 0, 0, 0, NULL);
34240 rm -f conftest.$ac_objext conftest$ac_exeext
34241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34242 (eval $ac_link) 2>conftest.er1
34244 grep -v '^ *+' conftest.er1 >conftest.err
34246 cat conftest.err >&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } &&
34249 { ac_try='test -z "$ac_c_werror_flag"
34250 || test ! -s conftest.err'
34251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34252 (eval $ac_try) 2>&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); }; } &&
34256 { ac_try='test -s conftest$ac_exeext'
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; }; then
34264 echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34269 rm -f conftest.err conftest.$ac_objext \
34270 conftest$ac_exeext conftest.$ac_ext
34275 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34276 echo "${ECHO_T}$ol_cv_db_db1" >&6
34278 if test $ol_cv_db_db1 = yes ; then
34283 if test $ol_cv_lib_db = no ; then
34284 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34285 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34286 if test "${ol_cv_db_db_1+set}" = set; then
34287 echo $ECHO_N "(cached) $ECHO_C" >&6
34292 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34294 cat >conftest.$ac_ext <<_ACEOF
34297 cat confdefs.h >>conftest.$ac_ext
34298 cat >>conftest.$ac_ext <<_ACEOF
34299 /* end confdefs.h. */
34301 #ifdef HAVE_DB_185_H
34302 # include <db_185.h>
34307 #ifndef DB_VERSION_MAJOR
34308 # define DB_VERSION_MAJOR 1
34312 #define NULL ((void*)0)
34319 #if DB_VERSION_MAJOR > 1
34322 int major, minor, patch;
34324 version = db_version( &major, &minor, &patch );
34326 if( major != DB_VERSION_MAJOR ||
34327 minor < DB_VERSION_MINOR )
34329 printf("Berkeley DB version mismatch\n"
34330 "\theader: %s\n\tlibrary: %s\n",
34331 DB_VERSION_STRING, version);
34337 #if DB_VERSION_MAJOR > 2
34338 db_env_create( NULL, 0 );
34339 #elif DB_VERSION_MAJOR > 1
34340 db_appexit( NULL );
34342 (void) dbopen( NULL, 0, 0, 0, NULL);
34349 rm -f conftest.$ac_objext conftest$ac_exeext
34350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34351 (eval $ac_link) 2>conftest.er1
34353 grep -v '^ *+' conftest.er1 >conftest.err
34355 cat conftest.err >&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } &&
34358 { ac_try='test -z "$ac_c_werror_flag"
34359 || test ! -s conftest.err'
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; } &&
34365 { ac_try='test -s conftest$ac_exeext'
34366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34367 (eval $ac_try) 2>&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); }; }; then
34373 echo "$as_me: failed program was:" >&5
34374 sed 's/^/| /' conftest.$ac_ext >&5
34378 rm -f conftest.err conftest.$ac_objext \
34379 conftest$ac_exeext conftest.$ac_ext
34384 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34385 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34387 if test $ol_cv_db_db_1 = yes ; then
34388 ol_cv_lib_db=-ldb-1
34393 if test $ol_cv_lib_db = no ; then
34394 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34395 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34396 if test "${ol_cv_db_none+set}" = set; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34402 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34404 cat >conftest.$ac_ext <<_ACEOF
34407 cat confdefs.h >>conftest.$ac_ext
34408 cat >>conftest.$ac_ext <<_ACEOF
34409 /* end confdefs.h. */
34411 #ifdef HAVE_DB_185_H
34412 # include <db_185.h>
34417 #ifndef DB_VERSION_MAJOR
34418 # define DB_VERSION_MAJOR 1
34422 #define NULL ((void*)0)
34429 #if DB_VERSION_MAJOR > 1
34432 int major, minor, patch;
34434 version = db_version( &major, &minor, &patch );
34436 if( major != DB_VERSION_MAJOR ||
34437 minor < DB_VERSION_MINOR )
34439 printf("Berkeley DB version mismatch\n"
34440 "\theader: %s\n\tlibrary: %s\n",
34441 DB_VERSION_STRING, version);
34447 #if DB_VERSION_MAJOR > 2
34448 db_env_create( NULL, 0 );
34449 #elif DB_VERSION_MAJOR > 1
34450 db_appexit( NULL );
34452 (void) dbopen( NULL, 0, 0, 0, NULL);
34459 rm -f conftest.$ac_objext conftest$ac_exeext
34460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34461 (eval $ac_link) 2>conftest.er1
34463 grep -v '^ *+' conftest.er1 >conftest.err
34465 cat conftest.err >&5
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); } &&
34468 { ac_try='test -z "$ac_c_werror_flag"
34469 || test ! -s conftest.err'
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; } &&
34475 { ac_try='test -s conftest$ac_exeext'
34476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34477 (eval $ac_try) 2>&5
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); }; }; then
34483 echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34488 rm -f conftest.err conftest.$ac_objext \
34489 conftest$ac_exeext conftest.$ac_ext
34494 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34495 echo "${ECHO_T}$ol_cv_db_none" >&6
34497 if test $ol_cv_db_none = yes ; then
34503 if test "$ol_cv_lib_db" != no ; then
34504 ol_cv_berkeley_db=yes
34505 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34506 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34507 if test "${ol_cv_berkeley_db_version+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34512 LIBS="$LTHREAD_LIBS $LIBS"
34513 if test $ol_cv_lib_db != yes ; then
34514 LIBS="$ol_cv_lib_db $LIBS"
34517 if test "$cross_compiling" = yes; then
34518 ol_cv_berkeley_db_version=cross
34520 cat >conftest.$ac_ext <<_ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h. */
34527 #ifdef HAVE_DB_185_H
34532 #ifndef DB_VERSION_MAJOR
34533 # define DB_VERSION_MAJOR 1
34536 #define NULL ((void *)0)
34540 #if DB_VERSION_MAJOR > 1
34542 int major, minor, patch;
34544 version = db_version( &major, &minor, &patch );
34546 if( major != DB_VERSION_MAJOR ||
34547 minor != DB_VERSION_MINOR ||
34548 patch != DB_VERSION_PATCH )
34550 printf("Berkeley DB version mismatch\n"
34551 "\theader: %s\n\tlibrary: %s\n",
34552 DB_VERSION_STRING, version);
34560 rm -f conftest$ac_exeext
34561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34562 (eval $ac_link) 2>&5
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34571 ol_cv_berkeley_db_version=yes
34573 echo "$as_me: program exited with status $ac_status" >&5
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34577 ( exit $ac_status )
34578 ol_cv_berkeley_db_version=no
34580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34586 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34587 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34589 if test $ol_cv_berkeley_db_version = no ; then
34590 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34591 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34592 { (exit 1); exit 1; }; }
34595 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34596 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34597 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34598 echo $ECHO_N "(cached) $ECHO_C" >&6
34602 LIBS="$LTHREAD_LIBS $LIBS"
34603 if test $ol_cv_lib_db != yes ; then
34604 LIBS="$ol_cv_lib_db $LIBS"
34607 if test "$cross_compiling" = yes; then
34608 ol_cv_berkeley_db_thread=cross
34610 cat >conftest.$ac_ext <<_ACEOF
34613 cat confdefs.h >>conftest.$ac_ext
34614 cat >>conftest.$ac_ext <<_ACEOF
34615 /* end confdefs.h. */
34617 #ifdef HAVE_DB_185_H
34623 #define NULL ((void *)0)
34628 u_int32_t flags = DB_CREATE |
34634 #if DB_VERSION_MAJOR > 2
34635 DB_ENV *env = NULL;
34637 rc = db_env_create( &env, 0 );
34639 flags |= DB_INIT_MPOOL;
34640 #ifdef DB_MPOOL_PRIVATE
34641 flags |= DB_MPOOL_PRIVATE;
34645 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34649 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34650 rc = env->open( env, NULL, flags, 0 );
34652 rc = env->open( env, NULL, NULL, flags, 0 );
34656 rc = env->close( env, 0 );
34660 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34666 memset( &env, '\0', sizeof(env) );
34668 rc = db_appinit( NULL, NULL, &env, flags );
34671 db_appexit( &env );
34674 unlink("__db_mpool.share");
34675 unlink("__db_lock.share");
34681 rm -f conftest$ac_exeext
34682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34683 (eval $ac_link) 2>&5
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; }; then
34692 ol_cv_berkeley_db_thread=yes
34694 echo "$as_me: program exited with status $ac_status" >&5
34695 echo "$as_me: failed program was:" >&5
34696 sed 's/^/| /' conftest.$ac_ext >&5
34698 ( exit $ac_status )
34699 ol_cv_berkeley_db_thread=no
34701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34707 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34708 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34710 if test $ol_cv_berkeley_db_thread != no ; then
34712 cat >>confdefs.h <<\_ACEOF
34713 #define HAVE_BERKELEY_DB_THREAD 1
34723 if test $ol_cv_berkeley_db != no ; then
34725 cat >>confdefs.h <<\_ACEOF
34726 #define HAVE_BERKELEY_DB 1
34730 ol_link_ldbm=berkeley
34731 ol_enable_ldbm_api=berkeley
34733 if test $ol_enable_ldbm_type = hash ; then
34735 cat >>confdefs.h <<\_ACEOF
34736 #define LDBM_USE_DBHASH 1
34741 cat >>confdefs.h <<\_ACEOF
34742 #define LDBM_USE_DBBTREE 1
34747 if test $ol_cv_lib_db != yes ; then
34748 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34754 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34755 if test $ol_link_ldbm != berkeley ; then
34756 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34757 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34758 { (exit 1); exit 1; }; }
34760 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34761 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34762 if test "${ol_cv_bdb_compat+set}" = set; then
34763 echo $ECHO_N "(cached) $ECHO_C" >&6
34766 cat >conftest.$ac_ext <<_ACEOF
34769 cat confdefs.h >>conftest.$ac_ext
34770 cat >>conftest.$ac_ext <<_ACEOF
34771 /* end confdefs.h. */
34775 /* this check could be improved */
34776 #ifndef DB_VERSION_MAJOR
34777 # define DB_VERSION_MAJOR 1
34779 #ifndef DB_VERSION_MINOR
34780 # define DB_VERSION_MINOR 0
34783 /* require 4.2 or later */
34784 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34785 __db_version_compat
34789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34790 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34791 ol_cv_bdb_compat=yes
34793 ol_cv_bdb_compat=no
34798 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34799 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34802 if test $ol_cv_bdb_compat != yes ; then
34803 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34804 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34805 { (exit 1); exit 1; }; }
34810 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34811 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34812 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34813 ol_enable_ldbm_api=none
34816 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34817 echo "$as_me:$LINENO: checking for MDBM library" >&5
34818 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34819 if test "${ol_cv_lib_mdbm+set}" = set; then
34820 echo $ECHO_N "(cached) $ECHO_C" >&6
34823 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34824 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34825 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34826 echo $ECHO_N "(cached) $ECHO_C" >&6
34828 cat >conftest.$ac_ext <<_ACEOF
34831 cat confdefs.h >>conftest.$ac_ext
34832 cat >>conftest.$ac_ext <<_ACEOF
34833 /* end confdefs.h. */
34834 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34836 #define mdbm_set_chain innocuous_mdbm_set_chain
34838 /* System header to define __stub macros and hopefully few prototypes,
34839 which can conflict with char mdbm_set_chain (); below.
34840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34841 <limits.h> exists even on freestanding compilers. */
34844 # include <limits.h>
34846 # include <assert.h>
34849 #undef mdbm_set_chain
34851 /* Override any gcc2 internal prototype to avoid an error. */
34856 /* We use char because int might match the return type of a gcc2
34857 builtin and then its argument prototype would still apply. */
34858 char mdbm_set_chain ();
34859 /* The GNU C library defines this for functions which it implements
34860 to always fail with ENOSYS. Some functions are actually named
34861 something starting with __ and the normal name is an alias. */
34862 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34865 char (*f) () = mdbm_set_chain;
34874 return f != mdbm_set_chain;
34879 rm -f conftest.$ac_objext conftest$ac_exeext
34880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34881 (eval $ac_link) 2>conftest.er1
34883 grep -v '^ *+' conftest.er1 >conftest.err
34885 cat conftest.err >&5
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); } &&
34888 { ac_try='test -z "$ac_c_werror_flag"
34889 || test ! -s conftest.err'
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; } &&
34895 { ac_try='test -s conftest$ac_exeext'
34896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34897 (eval $ac_try) 2>&5
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; }; then
34901 ac_cv_func_mdbm_set_chain=yes
34903 echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34906 ac_cv_func_mdbm_set_chain=no
34908 rm -f conftest.err conftest.$ac_objext \
34909 conftest$ac_exeext conftest.$ac_ext
34911 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34912 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34913 if test $ac_cv_func_mdbm_set_chain = yes; then
34917 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34918 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34919 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34920 echo $ECHO_N "(cached) $ECHO_C" >&6
34922 ac_check_lib_save_LIBS=$LIBS
34923 LIBS="-lmdbm $LIBS"
34924 cat >conftest.$ac_ext <<_ACEOF
34927 cat confdefs.h >>conftest.$ac_ext
34928 cat >>conftest.$ac_ext <<_ACEOF
34929 /* end confdefs.h. */
34931 /* Override any gcc2 internal prototype to avoid an error. */
34935 /* We use char because int might match the return type of a gcc2
34936 builtin and then its argument prototype would still apply. */
34937 char mdbm_set_chain ();
34946 rm -f conftest.$ac_objext conftest$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 (eval $ac_link) 2>conftest.er1
34950 grep -v '^ *+' conftest.er1 >conftest.err
34952 cat conftest.err >&5
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); } &&
34955 { ac_try='test -z "$ac_c_werror_flag"
34956 || test ! -s conftest.err'
34957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958 (eval $ac_try) 2>&5
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); }; } &&
34962 { ac_try='test -s conftest$ac_exeext'
34963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964 (eval $ac_try) 2>&5
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); }; }; then
34968 ac_cv_lib_mdbm_mdbm_set_chain=yes
34970 echo "$as_me: failed program was:" >&5
34971 sed 's/^/| /' conftest.$ac_ext >&5
34973 ac_cv_lib_mdbm_mdbm_set_chain=no
34975 rm -f conftest.err conftest.$ac_objext \
34976 conftest$ac_exeext conftest.$ac_ext
34977 LIBS=$ac_check_lib_save_LIBS
34979 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34980 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34981 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34982 ol_cv_lib_mdbm=-lmdbm
34993 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34994 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34998 for ac_header in mdbm.h
35000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35002 echo "$as_me:$LINENO: checking for $ac_header" >&5
35003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35005 echo $ECHO_N "(cached) $ECHO_C" >&6
35007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35010 # Is the header compilable?
35011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35013 cat >conftest.$ac_ext <<_ACEOF
35016 cat confdefs.h >>conftest.$ac_ext
35017 cat >>conftest.$ac_ext <<_ACEOF
35018 /* end confdefs.h. */
35019 $ac_includes_default
35020 #include <$ac_header>
35022 rm -f conftest.$ac_objext
35023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35024 (eval $ac_compile) 2>conftest.er1
35026 grep -v '^ *+' conftest.er1 >conftest.err
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
35031 { ac_try='test -z "$ac_c_werror_flag"
35032 || test ! -s conftest.err'
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; } &&
35038 { ac_try='test -s conftest.$ac_objext'
35039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040 (eval $ac_try) 2>&5
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); }; }; then
35044 ac_header_compiler=yes
35046 echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35049 ac_header_compiler=no
35051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35053 echo "${ECHO_T}$ac_header_compiler" >&6
35055 # Is the header present?
35056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35058 cat >conftest.$ac_ext <<_ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h. */
35064 #include <$ac_header>
35066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35069 grep -v '^ *+' conftest.er1 >conftest.err
35071 cat conftest.err >&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); } >/dev/null; then
35074 if test -s conftest.err; then
35075 ac_cpp_err=$ac_c_preproc_warn_flag
35076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35083 if test -z "$ac_cpp_err"; then
35084 ac_header_preproc=yes
35086 echo "$as_me: failed program was:" >&5
35087 sed 's/^/| /' conftest.$ac_ext >&5
35089 ac_header_preproc=no
35091 rm -f conftest.err conftest.$ac_ext
35092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35093 echo "${ECHO_T}$ac_header_preproc" >&6
35095 # So? What about this header?
35096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35102 ac_header_preproc=yes
35105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35119 ## --------------------------------------------- ##
35120 ## Report this to <http://www.openldap.org/its/> ##
35121 ## --------------------------------------------- ##
35124 sed "s/^/$as_me: WARNING: /" >&2
35127 echo "$as_me:$LINENO: checking for $ac_header" >&5
35128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35130 echo $ECHO_N "(cached) $ECHO_C" >&6
35132 eval "$as_ac_Header=\$ac_header_preproc"
35134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35139 cat >>confdefs.h <<_ACEOF
35140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35147 echo "$as_me:$LINENO: checking for db" >&5
35148 echo $ECHO_N "checking for db... $ECHO_C" >&6
35149 if test "${ol_cv_mdbm+set}" = set; then
35150 echo $ECHO_N "(cached) $ECHO_C" >&6
35153 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35160 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35161 echo "${ECHO_T}$ol_cv_mdbm" >&6
35162 if test $ol_cv_mdbm = yes ; then
35164 cat >>confdefs.h <<\_ACEOF
35165 #define HAVE_MDBM 1
35171 if test $ol_cv_mdbm = yes ; then
35173 ol_enable_ldbm_api=mdbm
35174 if test $ol_cv_lib_mdbm != yes ; then
35175 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35180 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35181 echo "$as_me:$LINENO: checking for GDBM library" >&5
35182 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35183 if test "${ol_cv_lib_gdbm+set}" = set; then
35184 echo $ECHO_N "(cached) $ECHO_C" >&6
35187 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35188 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35189 if test "${ac_cv_func_gdbm_open+set}" = set; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35192 cat >conftest.$ac_ext <<_ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h. */
35198 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35200 #define gdbm_open innocuous_gdbm_open
35202 /* System header to define __stub macros and hopefully few prototypes,
35203 which can conflict with char gdbm_open (); below.
35204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35205 <limits.h> exists even on freestanding compilers. */
35208 # include <limits.h>
35210 # include <assert.h>
35215 /* Override any gcc2 internal prototype to avoid an error. */
35220 /* We use char because int might match the return type of a gcc2
35221 builtin and then its argument prototype would still apply. */
35223 /* The GNU C library defines this for functions which it implements
35224 to always fail with ENOSYS. Some functions are actually named
35225 something starting with __ and the normal name is an alias. */
35226 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35229 char (*f) () = gdbm_open;
35238 return f != gdbm_open;
35243 rm -f conftest.$ac_objext conftest$ac_exeext
35244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35245 (eval $ac_link) 2>conftest.er1
35247 grep -v '^ *+' conftest.er1 >conftest.err
35249 cat conftest.err >&5
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); } &&
35252 { ac_try='test -z "$ac_c_werror_flag"
35253 || test ! -s conftest.err'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; } &&
35259 { ac_try='test -s conftest$ac_exeext'
35260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35261 (eval $ac_try) 2>&5
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); }; }; then
35265 ac_cv_func_gdbm_open=yes
35267 echo "$as_me: failed program was:" >&5
35268 sed 's/^/| /' conftest.$ac_ext >&5
35270 ac_cv_func_gdbm_open=no
35272 rm -f conftest.err conftest.$ac_objext \
35273 conftest$ac_exeext conftest.$ac_ext
35275 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35276 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35277 if test $ac_cv_func_gdbm_open = yes; then
35281 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35282 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35283 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35284 echo $ECHO_N "(cached) $ECHO_C" >&6
35286 ac_check_lib_save_LIBS=$LIBS
35287 LIBS="-lgdbm $LIBS"
35288 cat >conftest.$ac_ext <<_ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h. */
35295 /* Override any gcc2 internal prototype to avoid an error. */
35299 /* We use char because int might match the return type of a gcc2
35300 builtin and then its argument prototype would still apply. */
35310 rm -f conftest.$ac_objext conftest$ac_exeext
35311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35312 (eval $ac_link) 2>conftest.er1
35314 grep -v '^ *+' conftest.er1 >conftest.err
35316 cat conftest.err >&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } &&
35319 { ac_try='test -z "$ac_c_werror_flag"
35320 || test ! -s conftest.err'
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; } &&
35326 { ac_try='test -s conftest$ac_exeext'
35327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328 (eval $ac_try) 2>&5
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
35332 ac_cv_lib_gdbm_gdbm_open=yes
35334 echo "$as_me: failed program was:" >&5
35335 sed 's/^/| /' conftest.$ac_ext >&5
35337 ac_cv_lib_gdbm_gdbm_open=no
35339 rm -f conftest.err conftest.$ac_objext \
35340 conftest$ac_exeext conftest.$ac_ext
35341 LIBS=$ac_check_lib_save_LIBS
35343 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35344 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35345 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35346 ol_cv_lib_gdbm=-lgdbm
35357 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35358 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35362 for ac_header in gdbm.h
35364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35366 echo "$as_me:$LINENO: checking for $ac_header" >&5
35367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35369 echo $ECHO_N "(cached) $ECHO_C" >&6
35371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35374 # Is the header compilable?
35375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35377 cat >conftest.$ac_ext <<_ACEOF
35380 cat confdefs.h >>conftest.$ac_ext
35381 cat >>conftest.$ac_ext <<_ACEOF
35382 /* end confdefs.h. */
35383 $ac_includes_default
35384 #include <$ac_header>
35386 rm -f conftest.$ac_objext
35387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35388 (eval $ac_compile) 2>conftest.er1
35390 grep -v '^ *+' conftest.er1 >conftest.err
35392 cat conftest.err >&5
35393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394 (exit $ac_status); } &&
35395 { ac_try='test -z "$ac_c_werror_flag"
35396 || test ! -s conftest.err'
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; } &&
35402 { ac_try='test -s conftest.$ac_objext'
35403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404 (eval $ac_try) 2>&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); }; }; then
35408 ac_header_compiler=yes
35410 echo "$as_me: failed program was:" >&5
35411 sed 's/^/| /' conftest.$ac_ext >&5
35413 ac_header_compiler=no
35415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35417 echo "${ECHO_T}$ac_header_compiler" >&6
35419 # Is the header present?
35420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35422 cat >conftest.$ac_ext <<_ACEOF
35425 cat confdefs.h >>conftest.$ac_ext
35426 cat >>conftest.$ac_ext <<_ACEOF
35427 /* end confdefs.h. */
35428 #include <$ac_header>
35430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35433 grep -v '^ *+' conftest.er1 >conftest.err
35435 cat conftest.err >&5
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } >/dev/null; then
35438 if test -s conftest.err; then
35439 ac_cpp_err=$ac_c_preproc_warn_flag
35440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35447 if test -z "$ac_cpp_err"; then
35448 ac_header_preproc=yes
35450 echo "$as_me: failed program was:" >&5
35451 sed 's/^/| /' conftest.$ac_ext >&5
35453 ac_header_preproc=no
35455 rm -f conftest.err conftest.$ac_ext
35456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35457 echo "${ECHO_T}$ac_header_preproc" >&6
35459 # So? What about this header?
35460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35466 ac_header_preproc=yes
35469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35483 ## --------------------------------------------- ##
35484 ## Report this to <http://www.openldap.org/its/> ##
35485 ## --------------------------------------------- ##
35488 sed "s/^/$as_me: WARNING: /" >&2
35491 echo "$as_me:$LINENO: checking for $ac_header" >&5
35492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35494 echo $ECHO_N "(cached) $ECHO_C" >&6
35496 eval "$as_ac_Header=\$ac_header_preproc"
35498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35503 cat >>confdefs.h <<_ACEOF
35504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35511 echo "$as_me:$LINENO: checking for db" >&5
35512 echo $ECHO_N "checking for db... $ECHO_C" >&6
35513 if test "${ol_cv_gdbm+set}" = set; then
35514 echo $ECHO_N "(cached) $ECHO_C" >&6
35517 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35524 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35525 echo "${ECHO_T}$ol_cv_gdbm" >&6
35526 if test $ol_cv_gdbm = yes ; then
35528 cat >>confdefs.h <<\_ACEOF
35529 #define HAVE_GDBM 1
35535 if test $ol_cv_gdbm = yes ; then
35537 ol_enable_ldbm_api=gdbm
35539 if test $ol_cv_lib_gdbm != yes ; then
35540 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35545 if test $ol_enable_ldbm_api = ndbm ; then
35546 echo "$as_me:$LINENO: checking for NDBM library" >&5
35547 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35548 if test "${ol_cv_lib_ndbm+set}" = set; then
35549 echo $ECHO_N "(cached) $ECHO_C" >&6
35552 echo "$as_me:$LINENO: checking for dbm_open" >&5
35553 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35554 if test "${ac_cv_func_dbm_open+set}" = set; then
35555 echo $ECHO_N "(cached) $ECHO_C" >&6
35557 cat >conftest.$ac_ext <<_ACEOF
35560 cat confdefs.h >>conftest.$ac_ext
35561 cat >>conftest.$ac_ext <<_ACEOF
35562 /* end confdefs.h. */
35563 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35565 #define dbm_open innocuous_dbm_open
35567 /* System header to define __stub macros and hopefully few prototypes,
35568 which can conflict with char dbm_open (); below.
35569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35570 <limits.h> exists even on freestanding compilers. */
35573 # include <limits.h>
35575 # include <assert.h>
35580 /* Override any gcc2 internal prototype to avoid an error. */
35585 /* We use char because int might match the return type of a gcc2
35586 builtin and then its argument prototype would still apply. */
35588 /* The GNU C library defines this for functions which it implements
35589 to always fail with ENOSYS. Some functions are actually named
35590 something starting with __ and the normal name is an alias. */
35591 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35594 char (*f) () = dbm_open;
35603 return f != dbm_open;
35608 rm -f conftest.$ac_objext conftest$ac_exeext
35609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35610 (eval $ac_link) 2>conftest.er1
35612 grep -v '^ *+' conftest.er1 >conftest.err
35614 cat conftest.err >&5
35615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); } &&
35617 { ac_try='test -z "$ac_c_werror_flag"
35618 || test ! -s conftest.err'
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; } &&
35624 { ac_try='test -s conftest$ac_exeext'
35625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626 (eval $ac_try) 2>&5
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; }; then
35630 ac_cv_func_dbm_open=yes
35632 echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35635 ac_cv_func_dbm_open=no
35637 rm -f conftest.err conftest.$ac_objext \
35638 conftest$ac_exeext conftest.$ac_ext
35640 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35641 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35642 if test $ac_cv_func_dbm_open = yes; then
35646 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35647 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35648 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35649 echo $ECHO_N "(cached) $ECHO_C" >&6
35651 ac_check_lib_save_LIBS=$LIBS
35652 LIBS="-lndbm $LIBS"
35653 cat >conftest.$ac_ext <<_ACEOF
35656 cat confdefs.h >>conftest.$ac_ext
35657 cat >>conftest.$ac_ext <<_ACEOF
35658 /* end confdefs.h. */
35660 /* Override any gcc2 internal prototype to avoid an error. */
35664 /* We use char because int might match the return type of a gcc2
35665 builtin and then its argument prototype would still apply. */
35675 rm -f conftest.$ac_objext conftest$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677 (eval $ac_link) 2>conftest.er1
35679 grep -v '^ *+' conftest.er1 >conftest.err
35681 cat conftest.err >&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); } &&
35684 { ac_try='test -z "$ac_c_werror_flag"
35685 || test ! -s conftest.err'
35686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687 (eval $ac_try) 2>&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); }; } &&
35691 { ac_try='test -s conftest$ac_exeext'
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; }; then
35697 ac_cv_lib_ndbm_dbm_open=yes
35699 echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35702 ac_cv_lib_ndbm_dbm_open=no
35704 rm -f conftest.err conftest.$ac_objext \
35705 conftest$ac_exeext conftest.$ac_ext
35706 LIBS=$ac_check_lib_save_LIBS
35708 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35709 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35710 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35711 ol_cv_lib_ndbm=-lndbm
35714 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35715 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35716 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35717 echo $ECHO_N "(cached) $ECHO_C" >&6
35719 ac_check_lib_save_LIBS=$LIBS
35721 cat >conftest.$ac_ext <<_ACEOF
35724 cat confdefs.h >>conftest.$ac_ext
35725 cat >>conftest.$ac_ext <<_ACEOF
35726 /* end confdefs.h. */
35728 /* Override any gcc2 internal prototype to avoid an error. */
35732 /* We use char because int might match the return type of a gcc2
35733 builtin and then its argument prototype would still apply. */
35743 rm -f conftest.$ac_objext conftest$ac_exeext
35744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35745 (eval $ac_link) 2>conftest.er1
35747 grep -v '^ *+' conftest.er1 >conftest.err
35749 cat conftest.err >&5
35750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751 (exit $ac_status); } &&
35752 { ac_try='test -z "$ac_c_werror_flag"
35753 || test ! -s conftest.err'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; } &&
35759 { ac_try='test -s conftest$ac_exeext'
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; }; then
35765 ac_cv_lib_dbm_dbm_open=yes
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35770 ac_cv_lib_dbm_dbm_open=no
35772 rm -f conftest.err conftest.$ac_objext \
35773 conftest$ac_exeext conftest.$ac_ext
35774 LIBS=$ac_check_lib_save_LIBS
35776 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35777 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35778 if test $ac_cv_lib_dbm_dbm_open = yes; then
35779 ol_cv_lib_ndbm=-ldbm
35792 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35793 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35797 for ac_header in ndbm.h
35799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35801 echo "$as_me:$LINENO: checking for $ac_header" >&5
35802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35809 # Is the header compilable?
35810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35812 cat >conftest.$ac_ext <<_ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h. */
35818 $ac_includes_default
35819 #include <$ac_header>
35821 rm -f conftest.$ac_objext
35822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35823 (eval $ac_compile) 2>conftest.er1
35825 grep -v '^ *+' conftest.er1 >conftest.err
35827 cat conftest.err >&5
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } &&
35830 { ac_try='test -z "$ac_c_werror_flag"
35831 || test ! -s conftest.err'
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; } &&
35837 { ac_try='test -s conftest.$ac_objext'
35838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839 (eval $ac_try) 2>&5
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); }; }; then
35843 ac_header_compiler=yes
35845 echo "$as_me: failed program was:" >&5
35846 sed 's/^/| /' conftest.$ac_ext >&5
35848 ac_header_compiler=no
35850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35852 echo "${ECHO_T}$ac_header_compiler" >&6
35854 # Is the header present?
35855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35857 cat >conftest.$ac_ext <<_ACEOF
35860 cat confdefs.h >>conftest.$ac_ext
35861 cat >>conftest.$ac_ext <<_ACEOF
35862 /* end confdefs.h. */
35863 #include <$ac_header>
35865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35868 grep -v '^ *+' conftest.er1 >conftest.err
35870 cat conftest.err >&5
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); } >/dev/null; then
35873 if test -s conftest.err; then
35874 ac_cpp_err=$ac_c_preproc_warn_flag
35875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35882 if test -z "$ac_cpp_err"; then
35883 ac_header_preproc=yes
35885 echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 ac_header_preproc=no
35890 rm -f conftest.err conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35892 echo "${ECHO_T}$ac_header_preproc" >&6
35894 # So? What about this header?
35895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35901 ac_header_preproc=yes
35904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35918 ## --------------------------------------------- ##
35919 ## Report this to <http://www.openldap.org/its/> ##
35920 ## --------------------------------------------- ##
35923 sed "s/^/$as_me: WARNING: /" >&2
35926 echo "$as_me:$LINENO: checking for $ac_header" >&5
35927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35929 echo $ECHO_N "(cached) $ECHO_C" >&6
35931 eval "$as_ac_Header=\$ac_header_preproc"
35933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35938 cat >>confdefs.h <<_ACEOF
35939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35946 echo "$as_me:$LINENO: checking for db" >&5
35947 echo $ECHO_N "checking for db... $ECHO_C" >&6
35948 if test "${ol_cv_ndbm+set}" = set; then
35949 echo $ECHO_N "(cached) $ECHO_C" >&6
35952 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35959 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35960 echo "${ECHO_T}$ol_cv_ndbm" >&6
35961 if test $ol_cv_ndbm = yes ; then
35963 cat >>confdefs.h <<\_ACEOF
35964 #define HAVE_NDBM 1
35970 if test $ol_cv_ndbm = yes ; then
35972 ol_enable_ldbm_api=ndbm
35974 if test $ol_cv_lib_ndbm != yes ; then
35975 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35980 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35981 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35982 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35983 { (exit 1); exit 1; }; }
35986 if test $ol_enable_bdb = yes ||
35987 test $ol_enable_hdb = yes ||
35988 test $ol_enable_ldbm = yes ; then
35989 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35993 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35994 BUILD_LIBS_DYNAMIC=shared
35996 cat >>confdefs.h <<\_ACEOF
35997 #define LDAP_LIBS_DYNAMIC 1
36002 BUILD_LIBS_DYNAMIC=static
36006 if test $ol_enable_wrappers != no ; then
36008 for ac_header in tcpd.h
36010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36012 echo "$as_me:$LINENO: checking for $ac_header" >&5
36013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36015 echo $ECHO_N "(cached) $ECHO_C" >&6
36017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36020 # Is the header compilable?
36021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36023 cat >conftest.$ac_ext <<_ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h. */
36029 $ac_includes_default
36030 #include <$ac_header>
36032 rm -f conftest.$ac_objext
36033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36034 (eval $ac_compile) 2>conftest.er1
36036 grep -v '^ *+' conftest.er1 >conftest.err
36038 cat conftest.err >&5
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } &&
36041 { ac_try='test -z "$ac_c_werror_flag"
36042 || test ! -s conftest.err'
36043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044 (eval $ac_try) 2>&5
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); }; } &&
36048 { ac_try='test -s conftest.$ac_objext'
36049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050 (eval $ac_try) 2>&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); }; }; then
36054 ac_header_compiler=yes
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 ac_header_compiler=no
36061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36063 echo "${ECHO_T}$ac_header_compiler" >&6
36065 # Is the header present?
36066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36068 cat >conftest.$ac_ext <<_ACEOF
36071 cat confdefs.h >>conftest.$ac_ext
36072 cat >>conftest.$ac_ext <<_ACEOF
36073 /* end confdefs.h. */
36074 #include <$ac_header>
36076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36079 grep -v '^ *+' conftest.er1 >conftest.err
36081 cat conftest.err >&5
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } >/dev/null; then
36084 if test -s conftest.err; then
36085 ac_cpp_err=$ac_c_preproc_warn_flag
36086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36093 if test -z "$ac_cpp_err"; then
36094 ac_header_preproc=yes
36096 echo "$as_me: failed program was:" >&5
36097 sed 's/^/| /' conftest.$ac_ext >&5
36099 ac_header_preproc=no
36101 rm -f conftest.err conftest.$ac_ext
36102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36103 echo "${ECHO_T}$ac_header_preproc" >&6
36105 # So? What about this header?
36106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36112 ac_header_preproc=yes
36115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36129 ## --------------------------------------------- ##
36130 ## Report this to <http://www.openldap.org/its/> ##
36131 ## --------------------------------------------- ##
36134 sed "s/^/$as_me: WARNING: /" >&2
36137 echo "$as_me:$LINENO: checking for $ac_header" >&5
36138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36140 echo $ECHO_N "(cached) $ECHO_C" >&6
36142 eval "$as_ac_Header=\$ac_header_preproc"
36144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36149 cat >>confdefs.h <<_ACEOF
36150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36153 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36154 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36156 LIBS="$LIBS -lwrap"
36157 cat >conftest.$ac_ext <<_ACEOF
36160 cat confdefs.h >>conftest.$ac_ext
36161 cat >>conftest.$ac_ext <<_ACEOF
36162 /* end confdefs.h. */
36165 int allow_severity = 0;
36166 int deny_severity = 0;
36168 struct request_info *req;
36180 rm -f conftest.$ac_objext conftest$ac_exeext
36181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36182 (eval $ac_link) 2>conftest.er1
36184 grep -v '^ *+' conftest.er1 >conftest.err
36186 cat conftest.err >&5
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); } &&
36189 { ac_try='test -z "$ac_c_werror_flag"
36190 || test ! -s conftest.err'
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; } &&
36196 { ac_try='test -s conftest$ac_exeext'
36197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36198 (eval $ac_try) 2>&5
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); }; }; then
36202 echo "$as_me:$LINENO: result: -lwrap" >&5
36203 echo "${ECHO_T}-lwrap" >&6
36207 echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36212 cat >conftest.$ac_ext <<_ACEOF
36215 cat confdefs.h >>conftest.$ac_ext
36216 cat >>conftest.$ac_ext <<_ACEOF
36217 /* end confdefs.h. */
36220 int allow_severity = 0;
36221 int deny_severity = 0;
36223 struct request_info *req;
36235 rm -f conftest.$ac_objext conftest$ac_exeext
36236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36237 (eval $ac_link) 2>conftest.er1
36239 grep -v '^ *+' conftest.er1 >conftest.err
36241 cat conftest.err >&5
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); } &&
36244 { ac_try='test -z "$ac_c_werror_flag"
36245 || test ! -s conftest.err'
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; } &&
36251 { ac_try='test -s conftest$ac_exeext'
36252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253 (eval $ac_try) 2>&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; }; then
36257 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36258 echo "${ECHO_T}-lwrap -lnsl" >&6
36260 LIBS="$save_LIBS -lnsl"
36262 echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36266 echo "$as_me:$LINENO: result: no" >&5
36267 echo "${ECHO_T}no" >&6
36271 rm -f conftest.err conftest.$ac_objext \
36272 conftest$ac_exeext conftest.$ac_ext
36274 rm -f conftest.err conftest.$ac_objext \
36275 conftest$ac_exeext conftest.$ac_ext
36283 if test $have_wrappers = yes ; then
36285 cat >>confdefs.h <<\_ACEOF
36286 #define HAVE_TCPD 1
36290 elif test $ol_enable_wrappers = yes ; then
36291 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36292 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36293 { (exit 1); exit 1; }; }
36295 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36296 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36301 if test $ol_enable_syslog != no ; then
36302 echo "$as_me:$LINENO: checking for openlog" >&5
36303 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36304 if test "${ac_cv_func_openlog+set}" = set; then
36305 echo $ECHO_N "(cached) $ECHO_C" >&6
36307 cat >conftest.$ac_ext <<_ACEOF
36310 cat confdefs.h >>conftest.$ac_ext
36311 cat >>conftest.$ac_ext <<_ACEOF
36312 /* end confdefs.h. */
36313 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36315 #define openlog innocuous_openlog
36317 /* System header to define __stub macros and hopefully few prototypes,
36318 which can conflict with char openlog (); below.
36319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36320 <limits.h> exists even on freestanding compilers. */
36323 # include <limits.h>
36325 # include <assert.h>
36330 /* Override any gcc2 internal prototype to avoid an error. */
36335 /* We use char because int might match the return type of a gcc2
36336 builtin and then its argument prototype would still apply. */
36338 /* The GNU C library defines this for functions which it implements
36339 to always fail with ENOSYS. Some functions are actually named
36340 something starting with __ and the normal name is an alias. */
36341 #if defined (__stub_openlog) || defined (__stub___openlog)
36344 char (*f) () = openlog;
36353 return f != openlog;
36358 rm -f conftest.$ac_objext conftest$ac_exeext
36359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36360 (eval $ac_link) 2>conftest.er1
36362 grep -v '^ *+' conftest.er1 >conftest.err
36364 cat conftest.err >&5
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); } &&
36367 { ac_try='test -z "$ac_c_werror_flag"
36368 || test ! -s conftest.err'
36369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36370 (eval $ac_try) 2>&5
36372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36373 (exit $ac_status); }; } &&
36374 { ac_try='test -s conftest$ac_exeext'
36375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36376 (eval $ac_try) 2>&5
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); }; }; then
36380 ac_cv_func_openlog=yes
36382 echo "$as_me: failed program was:" >&5
36383 sed 's/^/| /' conftest.$ac_ext >&5
36385 ac_cv_func_openlog=no
36387 rm -f conftest.err conftest.$ac_objext \
36388 conftest$ac_exeext conftest.$ac_ext
36390 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36391 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36393 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36394 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36395 echo "$as_me: error: could not find syslog" >&2;}
36396 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36398 ol_enable_syslog=$ac_cv_func_openlog
36402 if test $ol_enable_sql != no ; then
36405 for ac_header in sql.h sqlext.h
36407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36409 echo "$as_me:$LINENO: checking for $ac_header" >&5
36410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36412 echo $ECHO_N "(cached) $ECHO_C" >&6
36414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36417 # Is the header compilable?
36418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36420 cat >conftest.$ac_ext <<_ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h. */
36426 $ac_includes_default
36427 #include <$ac_header>
36429 rm -f conftest.$ac_objext
36430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36431 (eval $ac_compile) 2>conftest.er1
36433 grep -v '^ *+' conftest.er1 >conftest.err
36435 cat conftest.err >&5
36436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437 (exit $ac_status); } &&
36438 { ac_try='test -z "$ac_c_werror_flag"
36439 || test ! -s conftest.err'
36440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36441 (eval $ac_try) 2>&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); }; } &&
36445 { ac_try='test -s conftest.$ac_objext'
36446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447 (eval $ac_try) 2>&5
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); }; }; then
36451 ac_header_compiler=yes
36453 echo "$as_me: failed program was:" >&5
36454 sed 's/^/| /' conftest.$ac_ext >&5
36456 ac_header_compiler=no
36458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36460 echo "${ECHO_T}$ac_header_compiler" >&6
36462 # Is the header present?
36463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36465 cat >conftest.$ac_ext <<_ACEOF
36468 cat confdefs.h >>conftest.$ac_ext
36469 cat >>conftest.$ac_ext <<_ACEOF
36470 /* end confdefs.h. */
36471 #include <$ac_header>
36473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36476 grep -v '^ *+' conftest.er1 >conftest.err
36478 cat conftest.err >&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); } >/dev/null; then
36481 if test -s conftest.err; then
36482 ac_cpp_err=$ac_c_preproc_warn_flag
36483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36490 if test -z "$ac_cpp_err"; then
36491 ac_header_preproc=yes
36493 echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36496 ac_header_preproc=no
36498 rm -f conftest.err conftest.$ac_ext
36499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36500 echo "${ECHO_T}$ac_header_preproc" >&6
36502 # So? What about this header?
36503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36509 ac_header_preproc=yes
36512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36526 ## --------------------------------------------- ##
36527 ## Report this to <http://www.openldap.org/its/> ##
36528 ## --------------------------------------------- ##
36531 sed "s/^/$as_me: WARNING: /" >&2
36534 echo "$as_me:$LINENO: checking for $ac_header" >&5
36535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36537 echo $ECHO_N "(cached) $ECHO_C" >&6
36539 eval "$as_ac_Header=\$ac_header_preproc"
36541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36546 cat >>confdefs.h <<_ACEOF
36547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36552 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36553 echo "$as_me: error: could not locate SQL headers" >&2;}
36554 { (exit 1); exit 1; }; }
36562 LIBS="$LTHREAD_LIBS"
36564 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36565 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36566 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36569 ac_check_lib_save_LIBS=$LIBS
36570 LIBS="-liodbc $LIBS"
36571 cat >conftest.$ac_ext <<_ACEOF
36574 cat confdefs.h >>conftest.$ac_ext
36575 cat >>conftest.$ac_ext <<_ACEOF
36576 /* end confdefs.h. */
36578 /* Override any gcc2 internal prototype to avoid an error. */
36582 /* We use char because int might match the return type of a gcc2
36583 builtin and then its argument prototype would still apply. */
36584 char SQLDriverConnect ();
36588 SQLDriverConnect ();
36593 rm -f conftest.$ac_objext conftest$ac_exeext
36594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36595 (eval $ac_link) 2>conftest.er1
36597 grep -v '^ *+' conftest.er1 >conftest.err
36599 cat conftest.err >&5
36600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); } &&
36602 { ac_try='test -z "$ac_c_werror_flag"
36603 || test ! -s conftest.err'
36604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36605 (eval $ac_try) 2>&5
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); }; } &&
36609 { ac_try='test -s conftest$ac_exeext'
36610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36611 (eval $ac_try) 2>&5
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); }; }; then
36615 ac_cv_lib_iodbc_SQLDriverConnect=yes
36617 echo "$as_me: failed program was:" >&5
36618 sed 's/^/| /' conftest.$ac_ext >&5
36620 ac_cv_lib_iodbc_SQLDriverConnect=no
36622 rm -f conftest.err conftest.$ac_objext \
36623 conftest$ac_exeext conftest.$ac_ext
36624 LIBS=$ac_check_lib_save_LIBS
36626 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36627 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36628 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36634 if test $have_iodbc = yes ; then
36635 ol_link_sql="-liodbc"
36637 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36638 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36639 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36640 echo $ECHO_N "(cached) $ECHO_C" >&6
36642 ac_check_lib_save_LIBS=$LIBS
36643 LIBS="-lodbc $LIBS"
36644 cat >conftest.$ac_ext <<_ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h. */
36651 /* Override any gcc2 internal prototype to avoid an error. */
36655 /* We use char because int might match the return type of a gcc2
36656 builtin and then its argument prototype would still apply. */
36657 char SQLDriverConnect ();
36661 SQLDriverConnect ();
36666 rm -f conftest.$ac_objext conftest$ac_exeext
36667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36668 (eval $ac_link) 2>conftest.er1
36670 grep -v '^ *+' conftest.er1 >conftest.err
36672 cat conftest.err >&5
36673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); } &&
36675 { ac_try='test -z "$ac_c_werror_flag"
36676 || test ! -s conftest.err'
36677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678 (eval $ac_try) 2>&5
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); }; } &&
36682 { ac_try='test -s conftest$ac_exeext'
36683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684 (eval $ac_try) 2>&5
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; }; then
36688 ac_cv_lib_odbc_SQLDriverConnect=yes
36690 echo "$as_me: failed program was:" >&5
36691 sed 's/^/| /' conftest.$ac_ext >&5
36693 ac_cv_lib_odbc_SQLDriverConnect=no
36695 rm -f conftest.err conftest.$ac_objext \
36696 conftest$ac_exeext conftest.$ac_ext
36697 LIBS=$ac_check_lib_save_LIBS
36699 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36700 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36701 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36707 if test $have_odbc = yes ; then
36708 ol_link_sql="-lodbc"
36714 if test $ol_link_sql != no ; then
36715 SLAPD_SQL_LIBS="$ol_link_sql"
36717 elif test $ol_enable_sql != auto ; then
36718 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36719 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36720 { (exit 1); exit 1; }; }
36727 if test $ol_with_cyrus_sasl != no ; then
36730 for ac_header in sasl/sasl.h sasl.h
36732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36734 echo "$as_me:$LINENO: checking for $ac_header" >&5
36735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36737 echo $ECHO_N "(cached) $ECHO_C" >&6
36739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36742 # Is the header compilable?
36743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36745 cat >conftest.$ac_ext <<_ACEOF
36748 cat confdefs.h >>conftest.$ac_ext
36749 cat >>conftest.$ac_ext <<_ACEOF
36750 /* end confdefs.h. */
36751 $ac_includes_default
36752 #include <$ac_header>
36754 rm -f conftest.$ac_objext
36755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36756 (eval $ac_compile) 2>conftest.er1
36758 grep -v '^ *+' conftest.er1 >conftest.err
36760 cat conftest.err >&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); } &&
36763 { ac_try='test -z "$ac_c_werror_flag"
36764 || test ! -s conftest.err'
36765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766 (eval $ac_try) 2>&5
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); }; } &&
36770 { ac_try='test -s conftest.$ac_objext'
36771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36772 (eval $ac_try) 2>&5
36774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); }; }; then
36776 ac_header_compiler=yes
36778 echo "$as_me: failed program was:" >&5
36779 sed 's/^/| /' conftest.$ac_ext >&5
36781 ac_header_compiler=no
36783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36785 echo "${ECHO_T}$ac_header_compiler" >&6
36787 # Is the header present?
36788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36790 cat >conftest.$ac_ext <<_ACEOF
36793 cat confdefs.h >>conftest.$ac_ext
36794 cat >>conftest.$ac_ext <<_ACEOF
36795 /* end confdefs.h. */
36796 #include <$ac_header>
36798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36801 grep -v '^ *+' conftest.er1 >conftest.err
36803 cat conftest.err >&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); } >/dev/null; then
36806 if test -s conftest.err; then
36807 ac_cpp_err=$ac_c_preproc_warn_flag
36808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36815 if test -z "$ac_cpp_err"; then
36816 ac_header_preproc=yes
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36821 ac_header_preproc=no
36823 rm -f conftest.err conftest.$ac_ext
36824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36825 echo "${ECHO_T}$ac_header_preproc" >&6
36827 # So? What about this header?
36828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36834 ac_header_preproc=yes
36837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36851 ## --------------------------------------------- ##
36852 ## Report this to <http://www.openldap.org/its/> ##
36853 ## --------------------------------------------- ##
36856 sed "s/^/$as_me: WARNING: /" >&2
36859 echo "$as_me:$LINENO: checking for $ac_header" >&5
36860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36862 echo $ECHO_N "(cached) $ECHO_C" >&6
36864 eval "$as_ac_Header=\$ac_header_preproc"
36866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36871 cat >>confdefs.h <<_ACEOF
36872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36880 if test $ac_cv_header_sasl_sasl_h = yes ||
36881 test $ac_cv_header_sasl_h = yes; then
36882 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
36883 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
36884 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
36885 echo $ECHO_N "(cached) $ECHO_C" >&6
36887 ac_check_lib_save_LIBS=$LIBS
36888 LIBS="-lsasl2 $LIBS"
36889 cat >conftest.$ac_ext <<_ACEOF
36892 cat confdefs.h >>conftest.$ac_ext
36893 cat >>conftest.$ac_ext <<_ACEOF
36894 /* end confdefs.h. */
36896 /* Override any gcc2 internal prototype to avoid an error. */
36900 /* We use char because int might match the return type of a gcc2
36901 builtin and then its argument prototype would still apply. */
36902 char sasl_client_init ();
36906 sasl_client_init ();
36911 rm -f conftest.$ac_objext conftest$ac_exeext
36912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36913 (eval $ac_link) 2>conftest.er1
36915 grep -v '^ *+' conftest.er1 >conftest.err
36917 cat conftest.err >&5
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); } &&
36920 { ac_try='test -z "$ac_c_werror_flag"
36921 || test ! -s conftest.err'
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; } &&
36927 { ac_try='test -s conftest$ac_exeext'
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; }; then
36933 ac_cv_lib_sasl2_sasl_client_init=yes
36935 echo "$as_me: failed program was:" >&5
36936 sed 's/^/| /' conftest.$ac_ext >&5
36938 ac_cv_lib_sasl2_sasl_client_init=no
36940 rm -f conftest.err conftest.$ac_objext \
36941 conftest$ac_exeext conftest.$ac_ext
36942 LIBS=$ac_check_lib_save_LIBS
36944 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
36945 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
36946 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
36947 ol_link_sasl="-lsasl2"
36949 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
36950 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
36951 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
36952 echo $ECHO_N "(cached) $ECHO_C" >&6
36954 ac_check_lib_save_LIBS=$LIBS
36955 LIBS="-lsasl $LIBS"
36956 cat >conftest.$ac_ext <<_ACEOF
36959 cat confdefs.h >>conftest.$ac_ext
36960 cat >>conftest.$ac_ext <<_ACEOF
36961 /* end confdefs.h. */
36963 /* Override any gcc2 internal prototype to avoid an error. */
36967 /* We use char because int might match the return type of a gcc2
36968 builtin and then its argument prototype would still apply. */
36969 char sasl_client_init ();
36973 sasl_client_init ();
36978 rm -f conftest.$ac_objext conftest$ac_exeext
36979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36980 (eval $ac_link) 2>conftest.er1
36982 grep -v '^ *+' conftest.er1 >conftest.err
36984 cat conftest.err >&5
36985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36986 (exit $ac_status); } &&
36987 { ac_try='test -z "$ac_c_werror_flag"
36988 || test ! -s conftest.err'
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; } &&
36994 { ac_try='test -s conftest$ac_exeext'
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; }; then
37000 ac_cv_lib_sasl_sasl_client_init=yes
37002 echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37005 ac_cv_lib_sasl_sasl_client_init=no
37007 rm -f conftest.err conftest.$ac_objext \
37008 conftest$ac_exeext conftest.$ac_ext
37009 LIBS=$ac_check_lib_save_LIBS
37011 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37012 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37013 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37014 ol_link_sasl="-lsasl"
37021 if test $ol_link_sasl = no ; then
37022 if test $ol_with_cyrus_sasl != auto ; then
37023 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37024 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37025 { (exit 1); exit 1; }; }
37027 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37028 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37029 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37030 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37031 if test $ol_link_tls = no ; then
37032 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37033 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37037 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37038 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37039 if test "${ol_cv_sasl_compat+set}" = set; then
37040 echo $ECHO_N "(cached) $ECHO_C" >&6
37043 cat >conftest.$ac_ext <<_ACEOF
37046 cat confdefs.h >>conftest.$ac_ext
37047 cat >>conftest.$ac_ext <<_ACEOF
37048 /* end confdefs.h. */
37050 #ifdef HAVE_SASL_SASL_H
37051 #include <sasl/sasl.h>
37056 /* Require 2.1.15+ */
37057 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37058 char *__sasl_compat = "2.2+ or better okay (we guess)";
37059 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37060 && SASL_VERSION_STEP >=15
37061 char *__sasl_compat = "2.1.15+ or better okay";
37065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37066 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37067 ol_cv_sasl_compat=yes
37069 ol_cv_sasl_compat=no
37074 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37075 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37077 if test $ol_cv_sasl_compat = no ; then
37079 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37080 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37081 { (exit 1); exit 1; }; }
37085 cat >>confdefs.h <<\_ACEOF
37086 #define HAVE_CYRUS_SASL 1
37089 SASL_LIBS="$ol_link_sasl"
37090 if test $ol_enable_spasswd != no ; then
37091 ol_link_spasswd=yes
37094 ac_save_LIBS="$LIBS"
37095 LIBS="$LIBS $ol_link_sasl"
37096 echo "$as_me:$LINENO: checking for sasl_version" >&5
37097 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37098 if test "${ac_cv_func_sasl_version+set}" = set; then
37099 echo $ECHO_N "(cached) $ECHO_C" >&6
37101 cat >conftest.$ac_ext <<_ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h. */
37107 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37109 #define sasl_version innocuous_sasl_version
37111 /* System header to define __stub macros and hopefully few prototypes,
37112 which can conflict with char sasl_version (); below.
37113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37114 <limits.h> exists even on freestanding compilers. */
37117 # include <limits.h>
37119 # include <assert.h>
37122 #undef sasl_version
37124 /* Override any gcc2 internal prototype to avoid an error. */
37129 /* We use char because int might match the return type of a gcc2
37130 builtin and then its argument prototype would still apply. */
37131 char sasl_version ();
37132 /* The GNU C library defines this for functions which it implements
37133 to always fail with ENOSYS. Some functions are actually named
37134 something starting with __ and the normal name is an alias. */
37135 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37138 char (*f) () = sasl_version;
37147 return f != sasl_version;
37152 rm -f conftest.$ac_objext conftest$ac_exeext
37153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37154 (eval $ac_link) 2>conftest.er1
37156 grep -v '^ *+' conftest.er1 >conftest.err
37158 cat conftest.err >&5
37159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160 (exit $ac_status); } &&
37161 { ac_try='test -z "$ac_c_werror_flag"
37162 || test ! -s conftest.err'
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; } &&
37168 { ac_try='test -s conftest$ac_exeext'
37169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 (eval $ac_try) 2>&5
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; }; then
37174 ac_cv_func_sasl_version=yes
37176 echo "$as_me: failed program was:" >&5
37177 sed 's/^/| /' conftest.$ac_ext >&5
37179 ac_cv_func_sasl_version=no
37181 rm -f conftest.err conftest.$ac_objext \
37182 conftest$ac_exeext conftest.$ac_ext
37184 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37185 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37186 if test $ac_cv_func_sasl_version = yes; then
37188 cat >>confdefs.h <<\_ACEOF
37189 #define HAVE_SASL_VERSION 1
37194 LIBS="$ac_save_LIBS"
37200 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37201 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37202 if test $ol_link_tls = no ; then
37203 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37204 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37208 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37210 if test -r /dev/urandom ; then
37211 dev="/dev/urandom";
37212 elif test -r /idev/urandom ; then
37213 dev="/idev/urandom";
37214 elif test -r /dev/srandom ; then
37215 dev="/dev/srandom";
37216 elif test -r /dev/random ; then
37218 elif test -r /idev/random ; then
37219 dev="/idev/random";
37222 if test $dev != no ; then
37224 cat >>confdefs.h <<_ACEOF
37225 #define URANDOM_DEVICE "$dev"
37232 if test $ol_with_fetch != no ; then
37234 LIBS="-lfetch -lcom_err $LIBS"
37235 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37236 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37237 if test "${ol_cv_lib_fetch+set}" = set; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37241 cat >conftest.$ac_ext <<_ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h. */
37248 #include <sys/param.h>
37254 struct url *u = fetchParseURL("file:///");
37259 rm -f conftest.$ac_objext conftest$ac_exeext
37260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37261 (eval $ac_link) 2>conftest.er1
37263 grep -v '^ *+' conftest.er1 >conftest.err
37265 cat conftest.err >&5
37266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267 (exit $ac_status); } &&
37268 { ac_try='test -z "$ac_c_werror_flag"
37269 || test ! -s conftest.err'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; } &&
37275 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37281 ol_cv_lib_fetch=yes
37283 echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37288 rm -f conftest.err conftest.$ac_objext \
37289 conftest$ac_exeext conftest.$ac_ext
37291 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37292 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37294 if test $ol_cv_lib_fetch != no ; then
37295 ol_link_fetch="-lfetch -lcom_err"
37297 cat >>confdefs.h <<\_ACEOF
37298 #define HAVE_FETCH 1
37304 if test $ol_cv_lib_fetch != no ; then
37305 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37306 ol_link_fetch=freebsd
37308 elif test $ol_with_fetch != auto ; then
37309 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37310 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37311 { (exit 1); exit 1; }; }
37315 if test $ol_enable_crypt != no ; then
37317 LIBS="$TLS_LIBS $LIBS"
37319 echo "$as_me:$LINENO: checking for crypt" >&5
37320 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37321 if test "${ac_cv_func_crypt+set}" = set; then
37322 echo $ECHO_N "(cached) $ECHO_C" >&6
37324 cat >conftest.$ac_ext <<_ACEOF
37327 cat confdefs.h >>conftest.$ac_ext
37328 cat >>conftest.$ac_ext <<_ACEOF
37329 /* end confdefs.h. */
37330 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37332 #define crypt innocuous_crypt
37334 /* System header to define __stub macros and hopefully few prototypes,
37335 which can conflict with char crypt (); below.
37336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37337 <limits.h> exists even on freestanding compilers. */
37340 # include <limits.h>
37342 # include <assert.h>
37347 /* Override any gcc2 internal prototype to avoid an error. */
37352 /* We use char because int might match the return type of a gcc2
37353 builtin and then its argument prototype would still apply. */
37355 /* The GNU C library defines this for functions which it implements
37356 to always fail with ENOSYS. Some functions are actually named
37357 something starting with __ and the normal name is an alias. */
37358 #if defined (__stub_crypt) || defined (__stub___crypt)
37361 char (*f) () = crypt;
37375 rm -f conftest.$ac_objext conftest$ac_exeext
37376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37377 (eval $ac_link) 2>conftest.er1
37379 grep -v '^ *+' conftest.er1 >conftest.err
37381 cat conftest.err >&5
37382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37383 (exit $ac_status); } &&
37384 { ac_try='test -z "$ac_c_werror_flag"
37385 || test ! -s conftest.err'
37386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37387 (eval $ac_try) 2>&5
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); }; } &&
37391 { ac_try='test -s conftest$ac_exeext'
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; }; then
37397 ac_cv_func_crypt=yes
37399 echo "$as_me: failed program was:" >&5
37400 sed 's/^/| /' conftest.$ac_ext >&5
37402 ac_cv_func_crypt=no
37404 rm -f conftest.err conftest.$ac_objext \
37405 conftest$ac_exeext conftest.$ac_ext
37407 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37408 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37409 if test $ac_cv_func_crypt = yes; then
37414 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37415 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37416 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37417 echo $ECHO_N "(cached) $ECHO_C" >&6
37419 ac_check_lib_save_LIBS=$LIBS
37420 LIBS="-lcrypt $LIBS"
37421 cat >conftest.$ac_ext <<_ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h. */
37428 /* Override any gcc2 internal prototype to avoid an error. */
37432 /* We use char because int might match the return type of a gcc2
37433 builtin and then its argument prototype would still apply. */
37443 rm -f conftest.$ac_objext conftest$ac_exeext
37444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37445 (eval $ac_link) 2>conftest.er1
37447 grep -v '^ *+' conftest.er1 >conftest.err
37449 cat conftest.err >&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); } &&
37452 { ac_try='test -z "$ac_c_werror_flag"
37453 || test ! -s conftest.err'
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; } &&
37459 { ac_try='test -s conftest$ac_exeext'
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; }; then
37465 ac_cv_lib_crypt_crypt=yes
37467 echo "$as_me: failed program was:" >&5
37468 sed 's/^/| /' conftest.$ac_ext >&5
37470 ac_cv_lib_crypt_crypt=no
37472 rm -f conftest.err conftest.$ac_objext \
37473 conftest$ac_exeext conftest.$ac_ext
37474 LIBS=$ac_check_lib_save_LIBS
37476 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37477 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37478 if test $ac_cv_lib_crypt_crypt = yes; then
37479 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37490 if test $have_crypt = yes ; then
37492 cat >>confdefs.h <<\_ACEOF
37493 #define HAVE_CRYPT 1
37497 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37498 echo "$as_me: WARNING: could not find crypt" >&2;}
37499 if test $ol_enable_crypt = yes ; then
37500 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37501 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37502 { (exit 1); exit 1; }; }
37505 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37506 echo "$as_me: WARNING: disabling crypt support" >&2;}
37511 if test $ol_enable_proctitle != no ; then
37512 echo "$as_me:$LINENO: checking for setproctitle" >&5
37513 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37514 if test "${ac_cv_func_setproctitle+set}" = set; then
37515 echo $ECHO_N "(cached) $ECHO_C" >&6
37517 cat >conftest.$ac_ext <<_ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37523 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37525 #define setproctitle innocuous_setproctitle
37527 /* System header to define __stub macros and hopefully few prototypes,
37528 which can conflict with char setproctitle (); below.
37529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37530 <limits.h> exists even on freestanding compilers. */
37533 # include <limits.h>
37535 # include <assert.h>
37538 #undef setproctitle
37540 /* Override any gcc2 internal prototype to avoid an error. */
37545 /* We use char because int might match the return type of a gcc2
37546 builtin and then its argument prototype would still apply. */
37547 char setproctitle ();
37548 /* The GNU C library defines this for functions which it implements
37549 to always fail with ENOSYS. Some functions are actually named
37550 something starting with __ and the normal name is an alias. */
37551 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37554 char (*f) () = setproctitle;
37563 return f != setproctitle;
37568 rm -f conftest.$ac_objext conftest$ac_exeext
37569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37570 (eval $ac_link) 2>conftest.er1
37572 grep -v '^ *+' conftest.er1 >conftest.err
37574 cat conftest.err >&5
37575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576 (exit $ac_status); } &&
37577 { ac_try='test -z "$ac_c_werror_flag"
37578 || test ! -s conftest.err'
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; } &&
37584 { ac_try='test -s conftest$ac_exeext'
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; }; then
37590 ac_cv_func_setproctitle=yes
37592 echo "$as_me: failed program was:" >&5
37593 sed 's/^/| /' conftest.$ac_ext >&5
37595 ac_cv_func_setproctitle=no
37597 rm -f conftest.err conftest.$ac_objext \
37598 conftest$ac_exeext conftest.$ac_ext
37600 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37601 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37602 if test $ac_cv_func_setproctitle = yes; then
37603 have_setproctitle=yes
37606 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37607 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37608 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37609 echo $ECHO_N "(cached) $ECHO_C" >&6
37611 ac_check_lib_save_LIBS=$LIBS
37612 LIBS="-lutil $LIBS"
37613 cat >conftest.$ac_ext <<_ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h. */
37620 /* Override any gcc2 internal prototype to avoid an error. */
37624 /* We use char because int might match the return type of a gcc2
37625 builtin and then its argument prototype would still apply. */
37626 char setproctitle ();
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37637 (eval $ac_link) 2>conftest.er1
37639 grep -v '^ *+' conftest.er1 >conftest.err
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } &&
37644 { ac_try='test -z "$ac_c_werror_flag"
37645 || test ! -s conftest.err'
37646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647 (eval $ac_try) 2>&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); }; } &&
37651 { ac_try='test -s conftest$ac_exeext'
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; }; then
37657 ac_cv_lib_util_setproctitle=yes
37659 echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37662 ac_cv_lib_util_setproctitle=no
37664 rm -f conftest.err conftest.$ac_objext \
37665 conftest$ac_exeext conftest.$ac_ext
37666 LIBS=$ac_check_lib_save_LIBS
37668 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37669 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37670 if test $ac_cv_lib_util_setproctitle = yes; then
37671 have_setproctitle=yes
37672 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37674 have_setproctitle=no
37676 "setproctitle.$ac_objext" | \
37677 *" setproctitle.$ac_objext" | \
37678 "setproctitle.$ac_objext "* | \
37679 *" setproctitle.$ac_objext "* ) ;;
37680 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37683 LIBSRCS="$LIBSRCS setproctitle.c"
37689 if test $have_setproctitle = yes ; then
37691 cat >>confdefs.h <<\_ACEOF
37692 #define HAVE_SETPROCTITLE 1
37698 if test $ol_enable_slp != no ; then
37700 for ac_header in slp.h
37702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37704 echo "$as_me:$LINENO: checking for $ac_header" >&5
37705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37707 echo $ECHO_N "(cached) $ECHO_C" >&6
37709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37712 # Is the header compilable?
37713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37715 cat >conftest.$ac_ext <<_ACEOF
37718 cat confdefs.h >>conftest.$ac_ext
37719 cat >>conftest.$ac_ext <<_ACEOF
37720 /* end confdefs.h. */
37721 $ac_includes_default
37722 #include <$ac_header>
37724 rm -f conftest.$ac_objext
37725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37726 (eval $ac_compile) 2>conftest.er1
37728 grep -v '^ *+' conftest.er1 >conftest.err
37730 cat conftest.err >&5
37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732 (exit $ac_status); } &&
37733 { ac_try='test -z "$ac_c_werror_flag"
37734 || test ! -s conftest.err'
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; } &&
37740 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37746 ac_header_compiler=yes
37748 echo "$as_me: failed program was:" >&5
37749 sed 's/^/| /' conftest.$ac_ext >&5
37751 ac_header_compiler=no
37753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37755 echo "${ECHO_T}$ac_header_compiler" >&6
37757 # Is the header present?
37758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37760 cat >conftest.$ac_ext <<_ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37766 #include <$ac_header>
37768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37771 grep -v '^ *+' conftest.er1 >conftest.err
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } >/dev/null; then
37776 if test -s conftest.err; then
37777 ac_cpp_err=$ac_c_preproc_warn_flag
37778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37785 if test -z "$ac_cpp_err"; then
37786 ac_header_preproc=yes
37788 echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37791 ac_header_preproc=no
37793 rm -f conftest.err conftest.$ac_ext
37794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37795 echo "${ECHO_T}$ac_header_preproc" >&6
37797 # So? What about this header?
37798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37804 ac_header_preproc=yes
37807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37821 ## --------------------------------------------- ##
37822 ## Report this to <http://www.openldap.org/its/> ##
37823 ## --------------------------------------------- ##
37826 sed "s/^/$as_me: WARNING: /" >&2
37829 echo "$as_me:$LINENO: checking for $ac_header" >&5
37830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37834 eval "$as_ac_Header=\$ac_header_preproc"
37836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37841 cat >>confdefs.h <<_ACEOF
37842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37850 if test $ac_cv_header_slp_h = yes ; then
37851 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
37852 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
37853 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
37854 echo $ECHO_N "(cached) $ECHO_C" >&6
37856 ac_check_lib_save_LIBS=$LIBS
37858 cat >conftest.$ac_ext <<_ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h. */
37865 /* Override any gcc2 internal prototype to avoid an error. */
37869 /* We use char because int might match the return type of a gcc2
37870 builtin and then its argument prototype would still apply. */
37880 rm -f conftest.$ac_objext conftest$ac_exeext
37881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37882 (eval $ac_link) 2>conftest.er1
37884 grep -v '^ *+' conftest.er1 >conftest.err
37886 cat conftest.err >&5
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); } &&
37889 { ac_try='test -z "$ac_c_werror_flag"
37890 || test ! -s conftest.err'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } &&
37896 { ac_try='test -s conftest$ac_exeext'
37897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37898 (eval $ac_try) 2>&5
37900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37901 (exit $ac_status); }; }; then
37902 ac_cv_lib_slp_SLPOpen=yes
37904 echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37907 ac_cv_lib_slp_SLPOpen=no
37909 rm -f conftest.err conftest.$ac_objext \
37910 conftest$ac_exeext conftest.$ac_ext
37911 LIBS=$ac_check_lib_save_LIBS
37913 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
37914 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
37915 if test $ac_cv_lib_slp_SLPOpen = yes; then
37921 if test $have_slp = yes ; then
37923 cat >>confdefs.h <<\_ACEOF
37927 SLAPD_SLP_LIBS=-lslp
37930 elif test $ol_enable_slp = yes ; then
37931 { { echo "$as_me:$LINENO: error: SLP not found" >&5
37932 echo "$as_me: error: SLP not found" >&2;}
37933 { (exit 1); exit 1; }; }
37938 echo "$as_me:$LINENO: checking for mode_t" >&5
37939 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
37940 if test "${ac_cv_type_mode_t+set}" = set; then
37941 echo $ECHO_N "(cached) $ECHO_C" >&6
37943 cat >conftest.$ac_ext <<_ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h. */
37949 $ac_includes_default
37955 if (sizeof (mode_t))
37961 rm -f conftest.$ac_objext
37962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37963 (eval $ac_compile) 2>conftest.er1
37965 grep -v '^ *+' conftest.er1 >conftest.err
37967 cat conftest.err >&5
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); } &&
37970 { ac_try='test -z "$ac_c_werror_flag"
37971 || test ! -s conftest.err'
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; } &&
37977 { ac_try='test -s conftest.$ac_objext'
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; }; then
37983 ac_cv_type_mode_t=yes
37985 echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37988 ac_cv_type_mode_t=no
37990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37992 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
37993 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
37994 if test $ac_cv_type_mode_t = yes; then
37998 cat >>confdefs.h <<_ACEOF
38004 echo "$as_me:$LINENO: checking for off_t" >&5
38005 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38006 if test "${ac_cv_type_off_t+set}" = set; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38009 cat >conftest.$ac_ext <<_ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h. */
38015 $ac_includes_default
38021 if (sizeof (off_t))
38027 rm -f conftest.$ac_objext
38028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38029 (eval $ac_compile) 2>conftest.er1
38031 grep -v '^ *+' conftest.er1 >conftest.err
38033 cat conftest.err >&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); } &&
38036 { ac_try='test -z "$ac_c_werror_flag"
38037 || test ! -s conftest.err'
38038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039 (eval $ac_try) 2>&5
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); }; } &&
38043 { ac_try='test -s conftest.$ac_objext'
38044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 (eval $ac_try) 2>&5
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); }; }; then
38049 ac_cv_type_off_t=yes
38051 echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38054 ac_cv_type_off_t=no
38056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38058 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38059 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38060 if test $ac_cv_type_off_t = yes; then
38064 cat >>confdefs.h <<_ACEOF
38070 echo "$as_me:$LINENO: checking for pid_t" >&5
38071 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38072 if test "${ac_cv_type_pid_t+set}" = set; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38075 cat >conftest.$ac_ext <<_ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h. */
38081 $ac_includes_default
38087 if (sizeof (pid_t))
38093 rm -f conftest.$ac_objext
38094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38095 (eval $ac_compile) 2>conftest.er1
38097 grep -v '^ *+' conftest.er1 >conftest.err
38099 cat conftest.err >&5
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); } &&
38102 { ac_try='test -z "$ac_c_werror_flag"
38103 || test ! -s conftest.err'
38104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105 (eval $ac_try) 2>&5
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); }; } &&
38109 { ac_try='test -s conftest.$ac_objext'
38110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38111 (eval $ac_try) 2>&5
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); }; }; then
38115 ac_cv_type_pid_t=yes
38117 echo "$as_me: failed program was:" >&5
38118 sed 's/^/| /' conftest.$ac_ext >&5
38120 ac_cv_type_pid_t=no
38122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38124 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38125 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38126 if test $ac_cv_type_pid_t = yes; then
38130 cat >>confdefs.h <<_ACEOF
38136 echo "$as_me:$LINENO: checking for ssize_t" >&5
38137 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38138 if test "${ac_cv_type_ssize_t+set}" = set; then
38139 echo $ECHO_N "(cached) $ECHO_C" >&6
38141 cat >conftest.$ac_ext <<_ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h. */
38147 $ac_includes_default
38153 if (sizeof (ssize_t))
38159 rm -f conftest.$ac_objext
38160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38161 (eval $ac_compile) 2>conftest.er1
38163 grep -v '^ *+' conftest.er1 >conftest.err
38165 cat conftest.err >&5
38166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 (exit $ac_status); } &&
38168 { ac_try='test -z "$ac_c_werror_flag"
38169 || test ! -s conftest.err'
38170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171 (eval $ac_try) 2>&5
38173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174 (exit $ac_status); }; } &&
38175 { ac_try='test -s conftest.$ac_objext'
38176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177 (eval $ac_try) 2>&5
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); }; }; then
38181 ac_cv_type_ssize_t=yes
38183 echo "$as_me: failed program was:" >&5
38184 sed 's/^/| /' conftest.$ac_ext >&5
38186 ac_cv_type_ssize_t=no
38188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38190 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38191 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38192 if test $ac_cv_type_ssize_t = yes; then
38196 cat >>confdefs.h <<_ACEOF
38197 #define ssize_t signed int
38202 echo "$as_me:$LINENO: checking for caddr_t" >&5
38203 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38204 if test "${ac_cv_type_caddr_t+set}" = set; then
38205 echo $ECHO_N "(cached) $ECHO_C" >&6
38207 cat >conftest.$ac_ext <<_ACEOF
38210 cat confdefs.h >>conftest.$ac_ext
38211 cat >>conftest.$ac_ext <<_ACEOF
38212 /* end confdefs.h. */
38213 $ac_includes_default
38219 if (sizeof (caddr_t))
38225 rm -f conftest.$ac_objext
38226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38227 (eval $ac_compile) 2>conftest.er1
38229 grep -v '^ *+' conftest.er1 >conftest.err
38231 cat conftest.err >&5
38232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); } &&
38234 { ac_try='test -z "$ac_c_werror_flag"
38235 || test ! -s conftest.err'
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; } &&
38241 { ac_try='test -s conftest.$ac_objext'
38242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38243 (eval $ac_try) 2>&5
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); }; }; then
38247 ac_cv_type_caddr_t=yes
38249 echo "$as_me: failed program was:" >&5
38250 sed 's/^/| /' conftest.$ac_ext >&5
38252 ac_cv_type_caddr_t=no
38254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38256 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38257 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38258 if test $ac_cv_type_caddr_t = yes; then
38262 cat >>confdefs.h <<_ACEOF
38263 #define caddr_t char *
38268 echo "$as_me:$LINENO: checking for size_t" >&5
38269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38270 if test "${ac_cv_type_size_t+set}" = set; then
38271 echo $ECHO_N "(cached) $ECHO_C" >&6
38273 cat >conftest.$ac_ext <<_ACEOF
38276 cat confdefs.h >>conftest.$ac_ext
38277 cat >>conftest.$ac_ext <<_ACEOF
38278 /* end confdefs.h. */
38279 $ac_includes_default
38285 if (sizeof (size_t))
38291 rm -f conftest.$ac_objext
38292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38293 (eval $ac_compile) 2>conftest.er1
38295 grep -v '^ *+' conftest.er1 >conftest.err
38297 cat conftest.err >&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } &&
38300 { ac_try='test -z "$ac_c_werror_flag"
38301 || test ! -s conftest.err'
38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303 (eval $ac_try) 2>&5
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); }; } &&
38307 { ac_try='test -s conftest.$ac_objext'
38308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38309 (eval $ac_try) 2>&5
38311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312 (exit $ac_status); }; }; then
38313 ac_cv_type_size_t=yes
38315 echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38318 ac_cv_type_size_t=no
38320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38322 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38323 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38324 if test $ac_cv_type_size_t = yes; then
38328 cat >>confdefs.h <<_ACEOF
38329 #define size_t unsigned
38335 echo "$as_me:$LINENO: checking for long long" >&5
38336 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38337 if test "${ac_cv_type_long_long+set}" = set; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38340 cat >conftest.$ac_ext <<_ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h. */
38346 $ac_includes_default
38350 if ((long long *) 0)
38352 if (sizeof (long long))
38358 rm -f conftest.$ac_objext
38359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38360 (eval $ac_compile) 2>conftest.er1
38362 grep -v '^ *+' conftest.er1 >conftest.err
38364 cat conftest.err >&5
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); } &&
38367 { ac_try='test -z "$ac_c_werror_flag"
38368 || test ! -s conftest.err'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; } &&
38374 { ac_try='test -s conftest.$ac_objext'
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; }; then
38380 ac_cv_type_long_long=yes
38382 echo "$as_me: failed program was:" >&5
38383 sed 's/^/| /' conftest.$ac_ext >&5
38385 ac_cv_type_long_long=no
38387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38389 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38390 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38391 if test $ac_cv_type_long_long = yes; then
38393 cat >>confdefs.h <<_ACEOF
38394 #define HAVE_LONG_LONG 1
38400 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38401 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38402 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38403 echo $ECHO_N "(cached) $ECHO_C" >&6
38405 cat >conftest.$ac_ext <<_ACEOF
38408 cat confdefs.h >>conftest.$ac_ext
38409 cat >>conftest.$ac_ext <<_ACEOF
38410 /* end confdefs.h. */
38411 $ac_includes_default
38415 if ((ptrdiff_t *) 0)
38417 if (sizeof (ptrdiff_t))
38423 rm -f conftest.$ac_objext
38424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38425 (eval $ac_compile) 2>conftest.er1
38427 grep -v '^ *+' conftest.er1 >conftest.err
38429 cat conftest.err >&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); } &&
38432 { ac_try='test -z "$ac_c_werror_flag"
38433 || test ! -s conftest.err'
38434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435 (eval $ac_try) 2>&5
38437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438 (exit $ac_status); }; } &&
38439 { ac_try='test -s conftest.$ac_objext'
38440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441 (eval $ac_try) 2>&5
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); }; }; then
38445 ac_cv_type_ptrdiff_t=yes
38447 echo "$as_me: failed program was:" >&5
38448 sed 's/^/| /' conftest.$ac_ext >&5
38450 ac_cv_type_ptrdiff_t=no
38452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38454 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
38455 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
38456 if test $ac_cv_type_ptrdiff_t = yes; then
38458 cat >>confdefs.h <<_ACEOF
38459 #define HAVE_PTRDIFF_T 1
38466 echo "$as_me:$LINENO: checking for socklen_t" >&5
38467 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
38468 if test "${ac_cv_type_socklen_t+set}" = set; then
38469 echo $ECHO_N "(cached) $ECHO_C" >&6
38471 cat >conftest.$ac_ext <<_ACEOF
38474 cat confdefs.h >>conftest.$ac_ext
38475 cat >>conftest.$ac_ext <<_ACEOF
38476 /* end confdefs.h. */
38477 $ac_includes_default
38478 #ifdef HAVE_SYS_SOCKET_H
38479 #include <sys/socket.h>
38486 if ((socklen_t *) 0)
38488 if (sizeof (socklen_t))
38494 rm -f conftest.$ac_objext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38496 (eval $ac_compile) 2>conftest.er1
38498 grep -v '^ *+' conftest.er1 >conftest.err
38500 cat conftest.err >&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); } &&
38503 { ac_try='test -z "$ac_c_werror_flag"
38504 || test ! -s conftest.err'
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } &&
38510 { ac_try='test -s conftest.$ac_objext'
38511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512 (eval $ac_try) 2>&5
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); }; }; then
38516 ac_cv_type_socklen_t=yes
38518 echo "$as_me: failed program was:" >&5
38519 sed 's/^/| /' conftest.$ac_ext >&5
38521 ac_cv_type_socklen_t=no
38523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38525 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38526 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
38527 if test $ac_cv_type_socklen_t = yes; then
38531 cat >>confdefs.h <<_ACEOF
38532 #define socklen_t int
38538 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38539 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
38540 if test "${ac_cv_type_signal+set}" = set; then
38541 echo $ECHO_N "(cached) $ECHO_C" >&6
38543 cat >conftest.$ac_ext <<_ACEOF
38546 cat confdefs.h >>conftest.$ac_ext
38547 cat >>conftest.$ac_ext <<_ACEOF
38548 /* end confdefs.h. */
38549 #include <sys/types.h>
38550 #include <signal.h>
38555 extern "C" void (*signal (int, void (*)(int)))(int);
38557 void (*signal ()) ();
38568 rm -f conftest.$ac_objext
38569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38570 (eval $ac_compile) 2>conftest.er1
38572 grep -v '^ *+' conftest.er1 >conftest.err
38574 cat conftest.err >&5
38575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576 (exit $ac_status); } &&
38577 { ac_try='test -z "$ac_c_werror_flag"
38578 || test ! -s conftest.err'
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; } &&
38584 { ac_try='test -s conftest.$ac_objext'
38585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586 (eval $ac_try) 2>&5
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); }; }; then
38590 ac_cv_type_signal=void
38592 echo "$as_me: failed program was:" >&5
38593 sed 's/^/| /' conftest.$ac_ext >&5
38595 ac_cv_type_signal=int
38597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38599 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38600 echo "${ECHO_T}$ac_cv_type_signal" >&6
38602 cat >>confdefs.h <<_ACEOF
38603 #define RETSIGTYPE $ac_cv_type_signal
38608 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38609 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
38610 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38611 echo $ECHO_N "(cached) $ECHO_C" >&6
38613 cat >conftest.$ac_ext <<_ACEOF
38616 cat confdefs.h >>conftest.$ac_ext
38617 cat >>conftest.$ac_ext <<_ACEOF
38618 /* end confdefs.h. */
38619 $ac_includes_default
38620 #include <signal.h>
38626 if ((sig_atomic_t *) 0)
38628 if (sizeof (sig_atomic_t))
38634 rm -f conftest.$ac_objext
38635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38636 (eval $ac_compile) 2>conftest.er1
38638 grep -v '^ *+' conftest.er1 >conftest.err
38640 cat conftest.err >&5
38641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38642 (exit $ac_status); } &&
38643 { ac_try='test -z "$ac_c_werror_flag"
38644 || test ! -s conftest.err'
38645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 (eval $ac_try) 2>&5
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); }; } &&
38650 { ac_try='test -s conftest.$ac_objext'
38651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 (eval $ac_try) 2>&5
38654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); }; }; then
38656 ac_cv_type_sig_atomic_t=yes
38658 echo "$as_me: failed program was:" >&5
38659 sed 's/^/| /' conftest.$ac_ext >&5
38661 ac_cv_type_sig_atomic_t=no
38663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38665 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38666 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
38667 if test $ac_cv_type_sig_atomic_t = yes; then
38671 cat >>confdefs.h <<_ACEOF
38672 #define sig_atomic_t int
38678 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
38679 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
38680 if test "${ac_cv_type_uid_t+set}" = set; then
38681 echo $ECHO_N "(cached) $ECHO_C" >&6
38683 cat >conftest.$ac_ext <<_ACEOF
38686 cat confdefs.h >>conftest.$ac_ext
38687 cat >>conftest.$ac_ext <<_ACEOF
38688 /* end confdefs.h. */
38689 #include <sys/types.h>
38692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693 $EGREP "uid_t" >/dev/null 2>&1; then
38694 ac_cv_type_uid_t=yes
38696 ac_cv_type_uid_t=no
38701 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
38702 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
38703 if test $ac_cv_type_uid_t = no; then
38705 cat >>confdefs.h <<\_ACEOF
38710 cat >>confdefs.h <<\_ACEOF
38717 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
38718 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
38719 if test "${ac_cv_header_time+set}" = set; then
38720 echo $ECHO_N "(cached) $ECHO_C" >&6
38722 cat >conftest.$ac_ext <<_ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h. */
38728 #include <sys/types.h>
38729 #include <sys/time.h>
38735 if ((struct tm *) 0)
38741 rm -f conftest.$ac_objext
38742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38743 (eval $ac_compile) 2>conftest.er1
38745 grep -v '^ *+' conftest.er1 >conftest.err
38747 cat conftest.err >&5
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); } &&
38750 { ac_try='test -z "$ac_c_werror_flag"
38751 || test ! -s conftest.err'
38752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38753 (eval $ac_try) 2>&5
38755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756 (exit $ac_status); }; } &&
38757 { ac_try='test -s conftest.$ac_objext'
38758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759 (eval $ac_try) 2>&5
38761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); }; }; then
38763 ac_cv_header_time=yes
38765 echo "$as_me: failed program was:" >&5
38766 sed 's/^/| /' conftest.$ac_ext >&5
38768 ac_cv_header_time=no
38770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38772 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
38773 echo "${ECHO_T}$ac_cv_header_time" >&6
38774 if test $ac_cv_header_time = yes; then
38776 cat >>confdefs.h <<\_ACEOF
38777 #define TIME_WITH_SYS_TIME 1
38782 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
38783 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
38784 if test "${ac_cv_struct_tm+set}" = set; then
38785 echo $ECHO_N "(cached) $ECHO_C" >&6
38787 cat >conftest.$ac_ext <<_ACEOF
38790 cat confdefs.h >>conftest.$ac_ext
38791 cat >>conftest.$ac_ext <<_ACEOF
38792 /* end confdefs.h. */
38793 #include <sys/types.h>
38799 struct tm *tp; tp->tm_sec;
38804 rm -f conftest.$ac_objext
38805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38806 (eval $ac_compile) 2>conftest.er1
38808 grep -v '^ *+' conftest.er1 >conftest.err
38810 cat conftest.err >&5
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); } &&
38813 { ac_try='test -z "$ac_c_werror_flag"
38814 || test ! -s conftest.err'
38815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38816 (eval $ac_try) 2>&5
38818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819 (exit $ac_status); }; } &&
38820 { ac_try='test -s conftest.$ac_objext'
38821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38822 (eval $ac_try) 2>&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); }; }; then
38826 ac_cv_struct_tm=time.h
38828 echo "$as_me: failed program was:" >&5
38829 sed 's/^/| /' conftest.$ac_ext >&5
38831 ac_cv_struct_tm=sys/time.h
38833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38835 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
38836 echo "${ECHO_T}$ac_cv_struct_tm" >&6
38837 if test $ac_cv_struct_tm = sys/time.h; then
38839 cat >>confdefs.h <<\_ACEOF
38840 #define TM_IN_SYS_TIME 1
38845 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
38846 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
38847 if test "${ac_cv_member_struct_stat_st_blksize+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
38860 static struct stat ac_aggr;
38861 if (ac_aggr.st_blksize)
38867 rm -f conftest.$ac_objext
38868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38869 (eval $ac_compile) 2>conftest.er1
38871 grep -v '^ *+' conftest.er1 >conftest.err
38873 cat conftest.err >&5
38874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875 (exit $ac_status); } &&
38876 { ac_try='test -z "$ac_c_werror_flag"
38877 || test ! -s conftest.err'
38878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38879 (eval $ac_try) 2>&5
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); }; } &&
38883 { ac_try='test -s conftest.$ac_objext'
38884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38885 (eval $ac_try) 2>&5
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); }; }; then
38889 ac_cv_member_struct_stat_st_blksize=yes
38891 echo "$as_me: failed program was:" >&5
38892 sed 's/^/| /' conftest.$ac_ext >&5
38894 cat >conftest.$ac_ext <<_ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h. */
38900 $ac_includes_default
38904 static struct stat ac_aggr;
38905 if (sizeof ac_aggr.st_blksize)
38911 rm -f conftest.$ac_objext
38912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38913 (eval $ac_compile) 2>conftest.er1
38915 grep -v '^ *+' conftest.er1 >conftest.err
38917 cat conftest.err >&5
38918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); } &&
38920 { ac_try='test -z "$ac_c_werror_flag"
38921 || test ! -s conftest.err'
38922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923 (eval $ac_try) 2>&5
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); }; } &&
38927 { ac_try='test -s conftest.$ac_objext'
38928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929 (eval $ac_try) 2>&5
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); }; }; then
38933 ac_cv_member_struct_stat_st_blksize=yes
38935 echo "$as_me: failed program was:" >&5
38936 sed 's/^/| /' conftest.$ac_ext >&5
38938 ac_cv_member_struct_stat_st_blksize=no
38940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38944 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38945 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
38946 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38948 cat >>confdefs.h <<_ACEOF
38949 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38955 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
38956 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
38957 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
38958 echo $ECHO_N "(cached) $ECHO_C" >&6
38960 cat >conftest.$ac_ext <<_ACEOF
38963 cat confdefs.h >>conftest.$ac_ext
38964 cat >>conftest.$ac_ext <<_ACEOF
38965 /* end confdefs.h. */
38966 $ac_includes_default
38972 static struct passwd ac_aggr;
38973 if (ac_aggr.pw_gecos)
38979 rm -f conftest.$ac_objext
38980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38981 (eval $ac_compile) 2>conftest.er1
38983 grep -v '^ *+' conftest.er1 >conftest.err
38985 cat conftest.err >&5
38986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987 (exit $ac_status); } &&
38988 { ac_try='test -z "$ac_c_werror_flag"
38989 || test ! -s conftest.err'
38990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38991 (eval $ac_try) 2>&5
38993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994 (exit $ac_status); }; } &&
38995 { ac_try='test -s conftest.$ac_objext'
38996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38997 (eval $ac_try) 2>&5
38999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000 (exit $ac_status); }; }; then
39001 ac_cv_member_struct_passwd_pw_gecos=yes
39003 echo "$as_me: failed program was:" >&5
39004 sed 's/^/| /' conftest.$ac_ext >&5
39006 cat >conftest.$ac_ext <<_ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h. */
39012 $ac_includes_default
39018 static struct passwd ac_aggr;
39019 if (sizeof ac_aggr.pw_gecos)
39025 rm -f conftest.$ac_objext
39026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39027 (eval $ac_compile) 2>conftest.er1
39029 grep -v '^ *+' conftest.er1 >conftest.err
39031 cat conftest.err >&5
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); } &&
39034 { ac_try='test -z "$ac_c_werror_flag"
39035 || test ! -s conftest.err'
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest.$ac_objext'
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; }; then
39047 ac_cv_member_struct_passwd_pw_gecos=yes
39049 echo "$as_me: failed program was:" >&5
39050 sed 's/^/| /' conftest.$ac_ext >&5
39052 ac_cv_member_struct_passwd_pw_gecos=no
39054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39058 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39059 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39060 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39062 cat >>confdefs.h <<_ACEOF
39063 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39069 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39070 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39071 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39072 echo $ECHO_N "(cached) $ECHO_C" >&6
39074 cat >conftest.$ac_ext <<_ACEOF
39077 cat confdefs.h >>conftest.$ac_ext
39078 cat >>conftest.$ac_ext <<_ACEOF
39079 /* end confdefs.h. */
39080 $ac_includes_default
39086 static struct passwd ac_aggr;
39087 if (ac_aggr.pw_passwd)
39093 rm -f conftest.$ac_objext
39094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39095 (eval $ac_compile) 2>conftest.er1
39097 grep -v '^ *+' conftest.er1 >conftest.err
39099 cat conftest.err >&5
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); } &&
39102 { ac_try='test -z "$ac_c_werror_flag"
39103 || test ! -s conftest.err'
39104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39105 (eval $ac_try) 2>&5
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); }; } &&
39109 { ac_try='test -s conftest.$ac_objext'
39110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39111 (eval $ac_try) 2>&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); }; }; then
39115 ac_cv_member_struct_passwd_pw_passwd=yes
39117 echo "$as_me: failed program was:" >&5
39118 sed 's/^/| /' conftest.$ac_ext >&5
39120 cat >conftest.$ac_ext <<_ACEOF
39123 cat confdefs.h >>conftest.$ac_ext
39124 cat >>conftest.$ac_ext <<_ACEOF
39125 /* end confdefs.h. */
39126 $ac_includes_default
39132 static struct passwd ac_aggr;
39133 if (sizeof ac_aggr.pw_passwd)
39139 rm -f conftest.$ac_objext
39140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39141 (eval $ac_compile) 2>conftest.er1
39143 grep -v '^ *+' conftest.er1 >conftest.err
39145 cat conftest.err >&5
39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); } &&
39148 { ac_try='test -z "$ac_c_werror_flag"
39149 || test ! -s conftest.err'
39150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151 (eval $ac_try) 2>&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; } &&
39155 { ac_try='test -s conftest.$ac_objext'
39156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39157 (eval $ac_try) 2>&5
39159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39160 (exit $ac_status); }; }; then
39161 ac_cv_member_struct_passwd_pw_passwd=yes
39163 echo "$as_me: failed program was:" >&5
39164 sed 's/^/| /' conftest.$ac_ext >&5
39166 ac_cv_member_struct_passwd_pw_passwd=no
39168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39173 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39174 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39176 cat >>confdefs.h <<_ACEOF
39177 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39184 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39185 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39186 if test "${ol_cv_c_upper_lower+set}" = set; then
39187 echo $ECHO_N "(cached) $ECHO_C" >&6
39190 if test "$cross_compiling" = yes; then
39191 ol_cv_c_upper_lower=safe
39193 cat >conftest.$ac_ext <<_ACEOF
39196 cat confdefs.h >>conftest.$ac_ext
39197 cat >>conftest.$ac_ext <<_ACEOF
39198 /* end confdefs.h. */
39203 if ('C' == toupper('C'))
39209 rm -f conftest$ac_exeext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39211 (eval $ac_link) 2>&5
39213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ol_cv_c_upper_lower=no
39222 echo "$as_me: program exited with status $ac_status" >&5
39223 echo "$as_me: failed program was:" >&5
39224 sed 's/^/| /' conftest.$ac_ext >&5
39226 ( exit $ac_status )
39227 ol_cv_c_upper_lower=yes
39229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39232 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39233 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39234 if test $ol_cv_c_upper_lower != no ; then
39236 cat >>confdefs.h <<\_ACEOF
39237 #define C_UPPER_LOWER 1
39242 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39243 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39244 if test "${ac_cv_c_const+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. */
39257 /* FIXME: Include the comments suggested by Paul. */
39258 #ifndef __cplusplus
39259 /* Ultrix mips cc rejects this. */
39260 typedef int charset[2];
39262 /* SunOS 4.1.1 cc rejects this. */
39263 char const *const *ccp;
39265 /* NEC SVR4.0.2 mips cc rejects this. */
39266 struct point {int x, y;};
39267 static struct point const zero = {0,0};
39268 /* AIX XL C 1.02.0.0 rejects this.
39269 It does not let you subtract one const X* pointer from another in
39270 an arm of an if-expression whose if-part is not a constant
39272 const char *g = "string";
39273 ccp = &g + (g ? g-g : 0);
39274 /* HPUX 7.0 cc rejects these. */
39277 ccp = (char const *const *) p;
39278 { /* SCO 3.2v4 cc rejects this. */
39280 char const *s = 0 ? (char *) 0 : (char const *) 0;
39284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
39285 int x[] = {25, 17};
39286 const int *foo = &x[0];
39289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39290 typedef const int *iptr;
39294 { /* AIX XL C 1.02.0.0 rejects this saying
39295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39296 struct s { int j; const int *ap[3]; };
39297 struct s *b; b->j = 5;
39299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39300 const int foo = 10;
39308 rm -f conftest.$ac_objext
39309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39310 (eval $ac_compile) 2>conftest.er1
39312 grep -v '^ *+' conftest.er1 >conftest.err
39314 cat conftest.err >&5
39315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316 (exit $ac_status); } &&
39317 { ac_try='test -z "$ac_c_werror_flag"
39318 || test ! -s conftest.err'
39319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39320 (eval $ac_try) 2>&5
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); }; } &&
39324 { ac_try='test -s conftest.$ac_objext'
39325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326 (eval $ac_try) 2>&5
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); }; }; then
39332 echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.$ac_ext >&5
39337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39340 echo "${ECHO_T}$ac_cv_c_const" >&6
39341 if test $ac_cv_c_const = no; then
39343 cat >>confdefs.h <<\_ACEOF
39349 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39350 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39351 if test "${ol_cv_c_volatile+set}" = set; then
39352 echo $ECHO_N "(cached) $ECHO_C" >&6
39354 cat >conftest.$ac_ext <<_ACEOF
39357 cat confdefs.h >>conftest.$ac_ext
39358 cat >>conftest.$ac_ext <<_ACEOF
39359 /* end confdefs.h. */
39364 volatile int a; int * volatile b = x ? &y : &z;
39365 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39371 rm -f conftest.$ac_objext
39372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39373 (eval $ac_compile) 2>conftest.er1
39375 grep -v '^ *+' conftest.er1 >conftest.err
39377 cat conftest.err >&5
39378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379 (exit $ac_status); } &&
39380 { ac_try='test -z "$ac_c_werror_flag"
39381 || test ! -s conftest.err'
39382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383 (eval $ac_try) 2>&5
39385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386 (exit $ac_status); }; } &&
39387 { ac_try='test -s conftest.$ac_objext'
39388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39389 (eval $ac_try) 2>&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); }; }; then
39393 ol_cv_c_volatile=yes
39395 echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39398 ol_cv_c_volatile=no
39400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39402 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39403 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39404 if test $ol_cv_c_volatile = yes; then
39408 cat >>confdefs.h <<\_ACEOF
39415 if test $cross_compiling = yes ; then
39416 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39417 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39419 cat >>confdefs.h <<\_ACEOF
39420 #define CROSS_COMPILING 1
39424 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39425 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39426 if test "${ac_cv_c_bigendian+set}" = set; then
39427 echo $ECHO_N "(cached) $ECHO_C" >&6
39429 # See if sys/param.h defines the BYTE_ORDER macro.
39430 cat >conftest.$ac_ext <<_ACEOF
39433 cat confdefs.h >>conftest.$ac_ext
39434 cat >>conftest.$ac_ext <<_ACEOF
39435 /* end confdefs.h. */
39436 #include <sys/types.h>
39437 #include <sys/param.h>
39442 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39443 bogus endian macros
39450 rm -f conftest.$ac_objext
39451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39452 (eval $ac_compile) 2>conftest.er1
39454 grep -v '^ *+' conftest.er1 >conftest.err
39456 cat conftest.err >&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); } &&
39459 { ac_try='test -z "$ac_c_werror_flag"
39460 || test ! -s conftest.err'
39461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39462 (eval $ac_try) 2>&5
39464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); }; } &&
39466 { ac_try='test -s conftest.$ac_objext'
39467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468 (eval $ac_try) 2>&5
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); }; }; then
39472 # It does; now see whether it defined to BIG_ENDIAN or not.
39473 cat >conftest.$ac_ext <<_ACEOF
39476 cat confdefs.h >>conftest.$ac_ext
39477 cat >>conftest.$ac_ext <<_ACEOF
39478 /* end confdefs.h. */
39479 #include <sys/types.h>
39480 #include <sys/param.h>
39485 #if BYTE_ORDER != BIG_ENDIAN
39493 rm -f conftest.$ac_objext
39494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39495 (eval $ac_compile) 2>conftest.er1
39497 grep -v '^ *+' conftest.er1 >conftest.err
39499 cat conftest.err >&5
39500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501 (exit $ac_status); } &&
39502 { ac_try='test -z "$ac_c_werror_flag"
39503 || test ! -s conftest.err'
39504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39505 (eval $ac_try) 2>&5
39507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508 (exit $ac_status); }; } &&
39509 { ac_try='test -s conftest.$ac_objext'
39510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39511 (eval $ac_try) 2>&5
39513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); }; }; then
39515 ac_cv_c_bigendian=yes
39517 echo "$as_me: failed program was:" >&5
39518 sed 's/^/| /' conftest.$ac_ext >&5
39520 ac_cv_c_bigendian=no
39522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39524 echo "$as_me: failed program was:" >&5
39525 sed 's/^/| /' conftest.$ac_ext >&5
39527 # It does not; compile a test program.
39528 if test "$cross_compiling" = yes; then
39529 # try to guess the endianness by grepping values into an object file
39530 ac_cv_c_bigendian=unknown
39531 cat >conftest.$ac_ext <<_ACEOF
39534 cat confdefs.h >>conftest.$ac_ext
39535 cat >>conftest.$ac_ext <<_ACEOF
39536 /* end confdefs.h. */
39537 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39538 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39539 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39540 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39541 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39542 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39546 _ascii (); _ebcdic ();
39551 rm -f conftest.$ac_objext
39552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39553 (eval $ac_compile) 2>conftest.er1
39555 grep -v '^ *+' conftest.er1 >conftest.err
39557 cat conftest.err >&5
39558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559 (exit $ac_status); } &&
39560 { ac_try='test -z "$ac_c_werror_flag"
39561 || test ! -s conftest.err'
39562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39563 (eval $ac_try) 2>&5
39565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566 (exit $ac_status); }; } &&
39567 { ac_try='test -s conftest.$ac_objext'
39568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39569 (eval $ac_try) 2>&5
39571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572 (exit $ac_status); }; }; then
39573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39574 ac_cv_c_bigendian=yes
39576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39577 if test "$ac_cv_c_bigendian" = unknown; then
39578 ac_cv_c_bigendian=no
39580 # finding both strings is unlikely to happen, but who knows?
39581 ac_cv_c_bigendian=unknown
39585 echo "$as_me: failed program was:" >&5
39586 sed 's/^/| /' conftest.$ac_ext >&5
39589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39591 cat >conftest.$ac_ext <<_ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h. */
39600 /* Are we little or big endian? From Harbison&Steele. */
39604 char c[sizeof (long)];
39607 exit (u.c[sizeof (long) - 1] == 1);
39610 rm -f conftest$ac_exeext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39612 (eval $ac_link) 2>&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39617 (eval $ac_try) 2>&5
39619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); }; }; then
39621 ac_cv_c_bigendian=no
39623 echo "$as_me: program exited with status $ac_status" >&5
39624 echo "$as_me: failed program was:" >&5
39625 sed 's/^/| /' conftest.$ac_ext >&5
39627 ( exit $ac_status )
39628 ac_cv_c_bigendian=yes
39630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39635 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39636 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39637 case $ac_cv_c_bigendian in
39640 cat >>confdefs.h <<\_ACEOF
39641 #define WORDS_BIGENDIAN 1
39647 { { echo "$as_me:$LINENO: error: unknown endianness
39648 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39649 echo "$as_me: error: unknown endianness
39650 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39651 { (exit 1); exit 1; }; } ;;
39656 echo "$as_me:$LINENO: checking for short" >&5
39657 echo $ECHO_N "checking for short... $ECHO_C" >&6
39658 if test "${ac_cv_type_short+set}" = set; then
39659 echo $ECHO_N "(cached) $ECHO_C" >&6
39661 cat >conftest.$ac_ext <<_ACEOF
39664 cat confdefs.h >>conftest.$ac_ext
39665 cat >>conftest.$ac_ext <<_ACEOF
39666 /* end confdefs.h. */
39667 $ac_includes_default
39673 if (sizeof (short))
39679 rm -f conftest.$ac_objext
39680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39681 (eval $ac_compile) 2>conftest.er1
39683 grep -v '^ *+' conftest.er1 >conftest.err
39685 cat conftest.err >&5
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); } &&
39688 { ac_try='test -z "$ac_c_werror_flag"
39689 || test ! -s conftest.err'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; } &&
39695 { ac_try='test -s conftest.$ac_objext'
39696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39697 (eval $ac_try) 2>&5
39699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700 (exit $ac_status); }; }; then
39701 ac_cv_type_short=yes
39703 echo "$as_me: failed program was:" >&5
39704 sed 's/^/| /' conftest.$ac_ext >&5
39706 ac_cv_type_short=no
39708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39710 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
39711 echo "${ECHO_T}$ac_cv_type_short" >&6
39713 echo "$as_me:$LINENO: checking size of short" >&5
39714 echo $ECHO_N "checking size of short... $ECHO_C" >&6
39715 if test "${ac_cv_sizeof_short+set}" = set; then
39716 echo $ECHO_N "(cached) $ECHO_C" >&6
39718 if test "$ac_cv_type_short" = yes; then
39719 # The cast to unsigned long works around a bug in the HP C Compiler
39720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39722 # This bug is HP SR number 8606223364.
39723 if test "$cross_compiling" = yes; then
39724 # Depending upon the size, compute the lo and hi bounds.
39725 cat >conftest.$ac_ext <<_ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h. */
39731 $ac_includes_default
39735 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
39742 rm -f conftest.$ac_objext
39743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39744 (eval $ac_compile) 2>conftest.er1
39746 grep -v '^ *+' conftest.er1 >conftest.err
39748 cat conftest.err >&5
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); } &&
39751 { ac_try='test -z "$ac_c_werror_flag"
39752 || test ! -s conftest.err'
39753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39754 (eval $ac_try) 2>&5
39756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757 (exit $ac_status); }; } &&
39758 { ac_try='test -s conftest.$ac_objext'
39759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760 (eval $ac_try) 2>&5
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); }; }; then
39766 cat >conftest.$ac_ext <<_ACEOF
39769 cat confdefs.h >>conftest.$ac_ext
39770 cat >>conftest.$ac_ext <<_ACEOF
39771 /* end confdefs.h. */
39772 $ac_includes_default
39776 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39783 rm -f conftest.$ac_objext
39784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39785 (eval $ac_compile) 2>conftest.er1
39787 grep -v '^ *+' conftest.er1 >conftest.err
39789 cat conftest.err >&5
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); } &&
39792 { ac_try='test -z "$ac_c_werror_flag"
39793 || test ! -s conftest.err'
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; } &&
39799 { ac_try='test -s conftest.$ac_objext'
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; }; then
39805 ac_hi=$ac_mid; break
39807 echo "$as_me: failed program was:" >&5
39808 sed 's/^/| /' conftest.$ac_ext >&5
39810 ac_lo=`expr $ac_mid + 1`
39811 if test $ac_lo -le $ac_mid; then
39815 ac_mid=`expr 2 '*' $ac_mid + 1`
39817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39820 echo "$as_me: failed program was:" >&5
39821 sed 's/^/| /' conftest.$ac_ext >&5
39823 cat >conftest.$ac_ext <<_ACEOF
39826 cat confdefs.h >>conftest.$ac_ext
39827 cat >>conftest.$ac_ext <<_ACEOF
39828 /* end confdefs.h. */
39829 $ac_includes_default
39833 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
39840 rm -f conftest.$ac_objext
39841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39842 (eval $ac_compile) 2>conftest.er1
39844 grep -v '^ *+' conftest.er1 >conftest.err
39846 cat conftest.err >&5
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); } &&
39849 { ac_try='test -z "$ac_c_werror_flag"
39850 || test ! -s conftest.err'
39851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39852 (eval $ac_try) 2>&5
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); }; } &&
39856 { ac_try='test -s conftest.$ac_objext'
39857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39858 (eval $ac_try) 2>&5
39860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861 (exit $ac_status); }; }; then
39864 cat >conftest.$ac_ext <<_ACEOF
39867 cat confdefs.h >>conftest.$ac_ext
39868 cat >>conftest.$ac_ext <<_ACEOF
39869 /* end confdefs.h. */
39870 $ac_includes_default
39874 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
39881 rm -f conftest.$ac_objext
39882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39883 (eval $ac_compile) 2>conftest.er1
39885 grep -v '^ *+' conftest.er1 >conftest.err
39887 cat conftest.err >&5
39888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39889 (exit $ac_status); } &&
39890 { ac_try='test -z "$ac_c_werror_flag"
39891 || test ! -s conftest.err'
39892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39893 (eval $ac_try) 2>&5
39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896 (exit $ac_status); }; } &&
39897 { ac_try='test -s conftest.$ac_objext'
39898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39899 (eval $ac_try) 2>&5
39901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39902 (exit $ac_status); }; }; then
39903 ac_lo=$ac_mid; break
39905 echo "$as_me: failed program was:" >&5
39906 sed 's/^/| /' conftest.$ac_ext >&5
39908 ac_hi=`expr '(' $ac_mid ')' - 1`
39909 if test $ac_mid -le $ac_hi; then
39913 ac_mid=`expr 2 '*' $ac_mid`
39915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39918 echo "$as_me: failed program was:" >&5
39919 sed 's/^/| /' conftest.$ac_ext >&5
39923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39926 # Binary search between lo and hi bounds.
39927 while test "x$ac_lo" != "x$ac_hi"; do
39928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39929 cat >conftest.$ac_ext <<_ACEOF
39932 cat confdefs.h >>conftest.$ac_ext
39933 cat >>conftest.$ac_ext <<_ACEOF
39934 /* end confdefs.h. */
39935 $ac_includes_default
39939 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39946 rm -f conftest.$ac_objext
39947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39948 (eval $ac_compile) 2>conftest.er1
39950 grep -v '^ *+' conftest.er1 >conftest.err
39952 cat conftest.err >&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } &&
39955 { ac_try='test -z "$ac_c_werror_flag"
39956 || test ! -s conftest.err'
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; } &&
39962 { ac_try='test -s conftest.$ac_objext'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; }; then
39970 echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39973 ac_lo=`expr '(' $ac_mid ')' + 1`
39975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39978 ?*) ac_cv_sizeof_short=$ac_lo;;
39979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39980 See \`config.log' for more details." >&5
39981 echo "$as_me: error: cannot compute sizeof (short), 77
39982 See \`config.log' for more details." >&2;}
39983 { (exit 1); exit 1; }; } ;;
39986 if test "$cross_compiling" = yes; then
39987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39988 See \`config.log' for more details." >&5
39989 echo "$as_me: error: cannot run test program while cross compiling
39990 See \`config.log' for more details." >&2;}
39991 { (exit 1); exit 1; }; }
39993 cat >conftest.$ac_ext <<_ACEOF
39996 cat confdefs.h >>conftest.$ac_ext
39997 cat >>conftest.$ac_ext <<_ACEOF
39998 /* end confdefs.h. */
39999 $ac_includes_default
40000 long longval () { return (long) (sizeof (short)); }
40001 unsigned long ulongval () { return (long) (sizeof (short)); }
40003 #include <stdlib.h>
40008 FILE *f = fopen ("conftest.val", "w");
40011 if (((long) (sizeof (short))) < 0)
40013 long i = longval ();
40014 if (i != ((long) (sizeof (short))))
40016 fprintf (f, "%ld\n", i);
40020 unsigned long i = ulongval ();
40021 if (i != ((long) (sizeof (short))))
40023 fprintf (f, "%lu\n", i);
40025 exit (ferror (f) || fclose (f) != 0);
40031 rm -f conftest$ac_exeext
40032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40033 (eval $ac_link) 2>&5
40035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40042 ac_cv_sizeof_short=`cat conftest.val`
40044 echo "$as_me: program exited with status $ac_status" >&5
40045 echo "$as_me: failed program was:" >&5
40046 sed 's/^/| /' conftest.$ac_ext >&5
40048 ( exit $ac_status )
40049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40050 See \`config.log' for more details." >&5
40051 echo "$as_me: error: cannot compute sizeof (short), 77
40052 See \`config.log' for more details." >&2;}
40053 { (exit 1); exit 1; }; }
40055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40060 ac_cv_sizeof_short=0
40063 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40064 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40065 cat >>confdefs.h <<_ACEOF
40066 #define SIZEOF_SHORT $ac_cv_sizeof_short
40070 echo "$as_me:$LINENO: checking for int" >&5
40071 echo $ECHO_N "checking for int... $ECHO_C" >&6
40072 if test "${ac_cv_type_int+set}" = set; then
40073 echo $ECHO_N "(cached) $ECHO_C" >&6
40075 cat >conftest.$ac_ext <<_ACEOF
40078 cat confdefs.h >>conftest.$ac_ext
40079 cat >>conftest.$ac_ext <<_ACEOF
40080 /* end confdefs.h. */
40081 $ac_includes_default
40093 rm -f conftest.$ac_objext
40094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40095 (eval $ac_compile) 2>conftest.er1
40097 grep -v '^ *+' conftest.er1 >conftest.err
40099 cat conftest.err >&5
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); } &&
40102 { ac_try='test -z "$ac_c_werror_flag"
40103 || test ! -s conftest.err'
40104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40105 (eval $ac_try) 2>&5
40107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108 (exit $ac_status); }; } &&
40109 { ac_try='test -s conftest.$ac_objext'
40110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111 (eval $ac_try) 2>&5
40113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); }; }; then
40117 echo "$as_me: failed program was:" >&5
40118 sed 's/^/| /' conftest.$ac_ext >&5
40122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40124 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40125 echo "${ECHO_T}$ac_cv_type_int" >&6
40127 echo "$as_me:$LINENO: checking size of int" >&5
40128 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40129 if test "${ac_cv_sizeof_int+set}" = set; then
40130 echo $ECHO_N "(cached) $ECHO_C" >&6
40132 if test "$ac_cv_type_int" = yes; then
40133 # The cast to unsigned long works around a bug in the HP C Compiler
40134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40136 # This bug is HP SR number 8606223364.
40137 if test "$cross_compiling" = yes; then
40138 # Depending upon the size, compute the lo and hi bounds.
40139 cat >conftest.$ac_ext <<_ACEOF
40142 cat confdefs.h >>conftest.$ac_ext
40143 cat >>conftest.$ac_ext <<_ACEOF
40144 /* end confdefs.h. */
40145 $ac_includes_default
40149 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40156 rm -f conftest.$ac_objext
40157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40158 (eval $ac_compile) 2>conftest.er1
40160 grep -v '^ *+' conftest.er1 >conftest.err
40162 cat conftest.err >&5
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); } &&
40165 { ac_try='test -z "$ac_c_werror_flag"
40166 || test ! -s conftest.err'
40167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40168 (eval $ac_try) 2>&5
40170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171 (exit $ac_status); }; } &&
40172 { ac_try='test -s conftest.$ac_objext'
40173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174 (eval $ac_try) 2>&5
40176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177 (exit $ac_status); }; }; then
40180 cat >conftest.$ac_ext <<_ACEOF
40183 cat confdefs.h >>conftest.$ac_ext
40184 cat >>conftest.$ac_ext <<_ACEOF
40185 /* end confdefs.h. */
40186 $ac_includes_default
40190 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40197 rm -f conftest.$ac_objext
40198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40199 (eval $ac_compile) 2>conftest.er1
40201 grep -v '^ *+' conftest.er1 >conftest.err
40203 cat conftest.err >&5
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); } &&
40206 { ac_try='test -z "$ac_c_werror_flag"
40207 || test ! -s conftest.err'
40208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40209 (eval $ac_try) 2>&5
40211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40212 (exit $ac_status); }; } &&
40213 { ac_try='test -s conftest.$ac_objext'
40214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40215 (eval $ac_try) 2>&5
40217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40218 (exit $ac_status); }; }; then
40219 ac_hi=$ac_mid; break
40221 echo "$as_me: failed program was:" >&5
40222 sed 's/^/| /' conftest.$ac_ext >&5
40224 ac_lo=`expr $ac_mid + 1`
40225 if test $ac_lo -le $ac_mid; then
40229 ac_mid=`expr 2 '*' $ac_mid + 1`
40231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40234 echo "$as_me: failed program was:" >&5
40235 sed 's/^/| /' conftest.$ac_ext >&5
40237 cat >conftest.$ac_ext <<_ACEOF
40240 cat confdefs.h >>conftest.$ac_ext
40241 cat >>conftest.$ac_ext <<_ACEOF
40242 /* end confdefs.h. */
40243 $ac_includes_default
40247 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40254 rm -f conftest.$ac_objext
40255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40256 (eval $ac_compile) 2>conftest.er1
40258 grep -v '^ *+' conftest.er1 >conftest.err
40260 cat conftest.err >&5
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); } &&
40263 { ac_try='test -z "$ac_c_werror_flag"
40264 || test ! -s conftest.err'
40265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40266 (eval $ac_try) 2>&5
40268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269 (exit $ac_status); }; } &&
40270 { ac_try='test -s conftest.$ac_objext'
40271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40272 (eval $ac_try) 2>&5
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); }; }; then
40278 cat >conftest.$ac_ext <<_ACEOF
40281 cat confdefs.h >>conftest.$ac_ext
40282 cat >>conftest.$ac_ext <<_ACEOF
40283 /* end confdefs.h. */
40284 $ac_includes_default
40288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40295 rm -f conftest.$ac_objext
40296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40297 (eval $ac_compile) 2>conftest.er1
40299 grep -v '^ *+' conftest.er1 >conftest.err
40301 cat conftest.err >&5
40302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40303 (exit $ac_status); } &&
40304 { ac_try='test -z "$ac_c_werror_flag"
40305 || test ! -s conftest.err'
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; } &&
40311 { ac_try='test -s conftest.$ac_objext'
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; }; then
40317 ac_lo=$ac_mid; break
40319 echo "$as_me: failed program was:" >&5
40320 sed 's/^/| /' conftest.$ac_ext >&5
40322 ac_hi=`expr '(' $ac_mid ')' - 1`
40323 if test $ac_mid -le $ac_hi; then
40327 ac_mid=`expr 2 '*' $ac_mid`
40329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40332 echo "$as_me: failed program was:" >&5
40333 sed 's/^/| /' conftest.$ac_ext >&5
40337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40340 # Binary search between lo and hi bounds.
40341 while test "x$ac_lo" != "x$ac_hi"; do
40342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40343 cat >conftest.$ac_ext <<_ACEOF
40346 cat confdefs.h >>conftest.$ac_ext
40347 cat >>conftest.$ac_ext <<_ACEOF
40348 /* end confdefs.h. */
40349 $ac_includes_default
40353 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40360 rm -f conftest.$ac_objext
40361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40362 (eval $ac_compile) 2>conftest.er1
40364 grep -v '^ *+' conftest.er1 >conftest.err
40366 cat conftest.err >&5
40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368 (exit $ac_status); } &&
40369 { ac_try='test -z "$ac_c_werror_flag"
40370 || test ! -s conftest.err'
40371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40372 (eval $ac_try) 2>&5
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); }; } &&
40376 { ac_try='test -s conftest.$ac_objext'
40377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40378 (eval $ac_try) 2>&5
40380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40381 (exit $ac_status); }; }; then
40384 echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40387 ac_lo=`expr '(' $ac_mid ')' + 1`
40389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40392 ?*) ac_cv_sizeof_int=$ac_lo;;
40393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40394 See \`config.log' for more details." >&5
40395 echo "$as_me: error: cannot compute sizeof (int), 77
40396 See \`config.log' for more details." >&2;}
40397 { (exit 1); exit 1; }; } ;;
40400 if test "$cross_compiling" = yes; then
40401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40402 See \`config.log' for more details." >&5
40403 echo "$as_me: error: cannot run test program while cross compiling
40404 See \`config.log' for more details." >&2;}
40405 { (exit 1); exit 1; }; }
40407 cat >conftest.$ac_ext <<_ACEOF
40410 cat confdefs.h >>conftest.$ac_ext
40411 cat >>conftest.$ac_ext <<_ACEOF
40412 /* end confdefs.h. */
40413 $ac_includes_default
40414 long longval () { return (long) (sizeof (int)); }
40415 unsigned long ulongval () { return (long) (sizeof (int)); }
40417 #include <stdlib.h>
40422 FILE *f = fopen ("conftest.val", "w");
40425 if (((long) (sizeof (int))) < 0)
40427 long i = longval ();
40428 if (i != ((long) (sizeof (int))))
40430 fprintf (f, "%ld\n", i);
40434 unsigned long i = ulongval ();
40435 if (i != ((long) (sizeof (int))))
40437 fprintf (f, "%lu\n", i);
40439 exit (ferror (f) || fclose (f) != 0);
40445 rm -f conftest$ac_exeext
40446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40447 (eval $ac_link) 2>&5
40449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40452 (eval $ac_try) 2>&5
40454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455 (exit $ac_status); }; }; then
40456 ac_cv_sizeof_int=`cat conftest.val`
40458 echo "$as_me: program exited with status $ac_status" >&5
40459 echo "$as_me: failed program was:" >&5
40460 sed 's/^/| /' conftest.$ac_ext >&5
40462 ( exit $ac_status )
40463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40464 See \`config.log' for more details." >&5
40465 echo "$as_me: error: cannot compute sizeof (int), 77
40466 See \`config.log' for more details." >&2;}
40467 { (exit 1); exit 1; }; }
40469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
40478 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
40479 cat >>confdefs.h <<_ACEOF
40480 #define SIZEOF_INT $ac_cv_sizeof_int
40484 echo "$as_me:$LINENO: checking for long" >&5
40485 echo $ECHO_N "checking for long... $ECHO_C" >&6
40486 if test "${ac_cv_type_long+set}" = set; then
40487 echo $ECHO_N "(cached) $ECHO_C" >&6
40489 cat >conftest.$ac_ext <<_ACEOF
40492 cat confdefs.h >>conftest.$ac_ext
40493 cat >>conftest.$ac_ext <<_ACEOF
40494 /* end confdefs.h. */
40495 $ac_includes_default
40507 rm -f conftest.$ac_objext
40508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40509 (eval $ac_compile) 2>conftest.er1
40511 grep -v '^ *+' conftest.er1 >conftest.err
40513 cat conftest.err >&5
40514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40515 (exit $ac_status); } &&
40516 { ac_try='test -z "$ac_c_werror_flag"
40517 || test ! -s conftest.err'
40518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40519 (eval $ac_try) 2>&5
40521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); }; } &&
40523 { ac_try='test -s conftest.$ac_objext'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; }; then
40529 ac_cv_type_long=yes
40531 echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40538 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
40539 echo "${ECHO_T}$ac_cv_type_long" >&6
40541 echo "$as_me:$LINENO: checking size of long" >&5
40542 echo $ECHO_N "checking size of long... $ECHO_C" >&6
40543 if test "${ac_cv_sizeof_long+set}" = set; then
40544 echo $ECHO_N "(cached) $ECHO_C" >&6
40546 if test "$ac_cv_type_long" = yes; then
40547 # The cast to unsigned long works around a bug in the HP C Compiler
40548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40550 # This bug is HP SR number 8606223364.
40551 if test "$cross_compiling" = yes; then
40552 # Depending upon the size, compute the lo and hi bounds.
40553 cat >conftest.$ac_ext <<_ACEOF
40556 cat confdefs.h >>conftest.$ac_ext
40557 cat >>conftest.$ac_ext <<_ACEOF
40558 /* end confdefs.h. */
40559 $ac_includes_default
40563 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
40570 rm -f conftest.$ac_objext
40571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40572 (eval $ac_compile) 2>conftest.er1
40574 grep -v '^ *+' conftest.er1 >conftest.err
40576 cat conftest.err >&5
40577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578 (exit $ac_status); } &&
40579 { ac_try='test -z "$ac_c_werror_flag"
40580 || test ! -s conftest.err'
40581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40582 (eval $ac_try) 2>&5
40584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); }; } &&
40586 { ac_try='test -s conftest.$ac_objext'
40587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40588 (eval $ac_try) 2>&5
40590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); }; }; then
40594 cat >conftest.$ac_ext <<_ACEOF
40597 cat confdefs.h >>conftest.$ac_ext
40598 cat >>conftest.$ac_ext <<_ACEOF
40599 /* end confdefs.h. */
40600 $ac_includes_default
40604 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40611 rm -f conftest.$ac_objext
40612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40613 (eval $ac_compile) 2>conftest.er1
40615 grep -v '^ *+' conftest.er1 >conftest.err
40617 cat conftest.err >&5
40618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40619 (exit $ac_status); } &&
40620 { ac_try='test -z "$ac_c_werror_flag"
40621 || test ! -s conftest.err'
40622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40623 (eval $ac_try) 2>&5
40625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40626 (exit $ac_status); }; } &&
40627 { ac_try='test -s conftest.$ac_objext'
40628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40629 (eval $ac_try) 2>&5
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); }; }; then
40633 ac_hi=$ac_mid; break
40635 echo "$as_me: failed program was:" >&5
40636 sed 's/^/| /' conftest.$ac_ext >&5
40638 ac_lo=`expr $ac_mid + 1`
40639 if test $ac_lo -le $ac_mid; then
40643 ac_mid=`expr 2 '*' $ac_mid + 1`
40645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40648 echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40651 cat >conftest.$ac_ext <<_ACEOF
40654 cat confdefs.h >>conftest.$ac_ext
40655 cat >>conftest.$ac_ext <<_ACEOF
40656 /* end confdefs.h. */
40657 $ac_includes_default
40661 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
40668 rm -f conftest.$ac_objext
40669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40670 (eval $ac_compile) 2>conftest.er1
40672 grep -v '^ *+' conftest.er1 >conftest.err
40674 cat conftest.err >&5
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); } &&
40677 { ac_try='test -z "$ac_c_werror_flag"
40678 || test ! -s conftest.err'
40679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40680 (eval $ac_try) 2>&5
40682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40683 (exit $ac_status); }; } &&
40684 { ac_try='test -s conftest.$ac_objext'
40685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40686 (eval $ac_try) 2>&5
40688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); }; }; then
40692 cat >conftest.$ac_ext <<_ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h. */
40698 $ac_includes_default
40702 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
40709 rm -f conftest.$ac_objext
40710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40711 (eval $ac_compile) 2>conftest.er1
40713 grep -v '^ *+' conftest.er1 >conftest.err
40715 cat conftest.err >&5
40716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717 (exit $ac_status); } &&
40718 { ac_try='test -z "$ac_c_werror_flag"
40719 || test ! -s conftest.err'
40720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721 (eval $ac_try) 2>&5
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); }; } &&
40725 { ac_try='test -s conftest.$ac_objext'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; }; then
40731 ac_lo=$ac_mid; break
40733 echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40736 ac_hi=`expr '(' $ac_mid ')' - 1`
40737 if test $ac_mid -le $ac_hi; then
40741 ac_mid=`expr 2 '*' $ac_mid`
40743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40746 echo "$as_me: failed program was:" >&5
40747 sed 's/^/| /' conftest.$ac_ext >&5
40751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40754 # Binary search between lo and hi bounds.
40755 while test "x$ac_lo" != "x$ac_hi"; do
40756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40757 cat >conftest.$ac_ext <<_ACEOF
40760 cat confdefs.h >>conftest.$ac_ext
40761 cat >>conftest.$ac_ext <<_ACEOF
40762 /* end confdefs.h. */
40763 $ac_includes_default
40767 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40774 rm -f conftest.$ac_objext
40775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40776 (eval $ac_compile) 2>conftest.er1
40778 grep -v '^ *+' conftest.er1 >conftest.err
40780 cat conftest.err >&5
40781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40782 (exit $ac_status); } &&
40783 { ac_try='test -z "$ac_c_werror_flag"
40784 || test ! -s conftest.err'
40785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40786 (eval $ac_try) 2>&5
40788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789 (exit $ac_status); }; } &&
40790 { ac_try='test -s conftest.$ac_objext'
40791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40792 (eval $ac_try) 2>&5
40794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795 (exit $ac_status); }; }; then
40798 echo "$as_me: failed program was:" >&5
40799 sed 's/^/| /' conftest.$ac_ext >&5
40801 ac_lo=`expr '(' $ac_mid ')' + 1`
40803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40806 ?*) ac_cv_sizeof_long=$ac_lo;;
40807 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40808 See \`config.log' for more details." >&5
40809 echo "$as_me: error: cannot compute sizeof (long), 77
40810 See \`config.log' for more details." >&2;}
40811 { (exit 1); exit 1; }; } ;;
40814 if test "$cross_compiling" = yes; then
40815 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40816 See \`config.log' for more details." >&5
40817 echo "$as_me: error: cannot run test program while cross compiling
40818 See \`config.log' for more details." >&2;}
40819 { (exit 1); exit 1; }; }
40821 cat >conftest.$ac_ext <<_ACEOF
40824 cat confdefs.h >>conftest.$ac_ext
40825 cat >>conftest.$ac_ext <<_ACEOF
40826 /* end confdefs.h. */
40827 $ac_includes_default
40828 long longval () { return (long) (sizeof (long)); }
40829 unsigned long ulongval () { return (long) (sizeof (long)); }
40831 #include <stdlib.h>
40836 FILE *f = fopen ("conftest.val", "w");
40839 if (((long) (sizeof (long))) < 0)
40841 long i = longval ();
40842 if (i != ((long) (sizeof (long))))
40844 fprintf (f, "%ld\n", i);
40848 unsigned long i = ulongval ();
40849 if (i != ((long) (sizeof (long))))
40851 fprintf (f, "%lu\n", i);
40853 exit (ferror (f) || fclose (f) != 0);
40859 rm -f conftest$ac_exeext
40860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40861 (eval $ac_link) 2>&5
40863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
40868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; }; then
40870 ac_cv_sizeof_long=`cat conftest.val`
40872 echo "$as_me: program exited with status $ac_status" >&5
40873 echo "$as_me: failed program was:" >&5
40874 sed 's/^/| /' conftest.$ac_ext >&5
40876 ( exit $ac_status )
40877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40878 See \`config.log' for more details." >&5
40879 echo "$as_me: error: cannot compute sizeof (long), 77
40880 See \`config.log' for more details." >&2;}
40881 { (exit 1); exit 1; }; }
40883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40888 ac_cv_sizeof_long=0
40891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
40892 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
40893 cat >>confdefs.h <<_ACEOF
40894 #define SIZEOF_LONG $ac_cv_sizeof_long
40898 echo "$as_me:$LINENO: checking for long long" >&5
40899 echo $ECHO_N "checking for long long... $ECHO_C" >&6
40900 if test "${ac_cv_type_long_long+set}" = set; then
40901 echo $ECHO_N "(cached) $ECHO_C" >&6
40903 cat >conftest.$ac_ext <<_ACEOF
40906 cat confdefs.h >>conftest.$ac_ext
40907 cat >>conftest.$ac_ext <<_ACEOF
40908 /* end confdefs.h. */
40909 $ac_includes_default
40913 if ((long long *) 0)
40915 if (sizeof (long long))
40921 rm -f conftest.$ac_objext
40922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40923 (eval $ac_compile) 2>conftest.er1
40925 grep -v '^ *+' conftest.er1 >conftest.err
40927 cat conftest.err >&5
40928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929 (exit $ac_status); } &&
40930 { ac_try='test -z "$ac_c_werror_flag"
40931 || test ! -s conftest.err'
40932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933 (eval $ac_try) 2>&5
40935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936 (exit $ac_status); }; } &&
40937 { ac_try='test -s conftest.$ac_objext'
40938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40939 (eval $ac_try) 2>&5
40941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942 (exit $ac_status); }; }; then
40943 ac_cv_type_long_long=yes
40945 echo "$as_me: failed program was:" >&5
40946 sed 's/^/| /' conftest.$ac_ext >&5
40948 ac_cv_type_long_long=no
40950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40952 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
40953 echo "${ECHO_T}$ac_cv_type_long_long" >&6
40955 echo "$as_me:$LINENO: checking size of long long" >&5
40956 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
40957 if test "${ac_cv_sizeof_long_long+set}" = set; then
40958 echo $ECHO_N "(cached) $ECHO_C" >&6
40960 if test "$ac_cv_type_long_long" = yes; then
40961 # The cast to unsigned long works around a bug in the HP C Compiler
40962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40964 # This bug is HP SR number 8606223364.
40965 if test "$cross_compiling" = yes; then
40966 # Depending upon the size, compute the lo and hi bounds.
40967 cat >conftest.$ac_ext <<_ACEOF
40970 cat confdefs.h >>conftest.$ac_ext
40971 cat >>conftest.$ac_ext <<_ACEOF
40972 /* end confdefs.h. */
40973 $ac_includes_default
40977 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
40984 rm -f conftest.$ac_objext
40985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40986 (eval $ac_compile) 2>conftest.er1
40988 grep -v '^ *+' conftest.er1 >conftest.err
40990 cat conftest.err >&5
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); } &&
40993 { ac_try='test -z "$ac_c_werror_flag"
40994 || test ! -s conftest.err'
40995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40996 (eval $ac_try) 2>&5
40998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999 (exit $ac_status); }; } &&
41000 { ac_try='test -s conftest.$ac_objext'
41001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41002 (eval $ac_try) 2>&5
41004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005 (exit $ac_status); }; }; then
41008 cat >conftest.$ac_ext <<_ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h. */
41014 $ac_includes_default
41018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41025 rm -f conftest.$ac_objext
41026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41027 (eval $ac_compile) 2>conftest.er1
41029 grep -v '^ *+' conftest.er1 >conftest.err
41031 cat conftest.err >&5
41032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41033 (exit $ac_status); } &&
41034 { ac_try='test -z "$ac_c_werror_flag"
41035 || test ! -s conftest.err'
41036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41037 (eval $ac_try) 2>&5
41039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41040 (exit $ac_status); }; } &&
41041 { ac_try='test -s conftest.$ac_objext'
41042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41043 (eval $ac_try) 2>&5
41045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046 (exit $ac_status); }; }; then
41047 ac_hi=$ac_mid; break
41049 echo "$as_me: failed program was:" >&5
41050 sed 's/^/| /' conftest.$ac_ext >&5
41052 ac_lo=`expr $ac_mid + 1`
41053 if test $ac_lo -le $ac_mid; then
41057 ac_mid=`expr 2 '*' $ac_mid + 1`
41059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41062 echo "$as_me: failed program was:" >&5
41063 sed 's/^/| /' conftest.$ac_ext >&5
41065 cat >conftest.$ac_ext <<_ACEOF
41068 cat confdefs.h >>conftest.$ac_ext
41069 cat >>conftest.$ac_ext <<_ACEOF
41070 /* end confdefs.h. */
41071 $ac_includes_default
41075 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
41082 rm -f conftest.$ac_objext
41083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41084 (eval $ac_compile) 2>conftest.er1
41086 grep -v '^ *+' conftest.er1 >conftest.err
41088 cat conftest.err >&5
41089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090 (exit $ac_status); } &&
41091 { ac_try='test -z "$ac_c_werror_flag"
41092 || test ! -s conftest.err'
41093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41094 (eval $ac_try) 2>&5
41096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41097 (exit $ac_status); }; } &&
41098 { ac_try='test -s conftest.$ac_objext'
41099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41100 (eval $ac_try) 2>&5
41102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); }; }; then
41106 cat >conftest.$ac_ext <<_ACEOF
41109 cat confdefs.h >>conftest.$ac_ext
41110 cat >>conftest.$ac_ext <<_ACEOF
41111 /* end confdefs.h. */
41112 $ac_includes_default
41116 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
41123 rm -f conftest.$ac_objext
41124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41125 (eval $ac_compile) 2>conftest.er1
41127 grep -v '^ *+' conftest.er1 >conftest.err
41129 cat conftest.err >&5
41130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131 (exit $ac_status); } &&
41132 { ac_try='test -z "$ac_c_werror_flag"
41133 || test ! -s conftest.err'
41134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41135 (eval $ac_try) 2>&5
41137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138 (exit $ac_status); }; } &&
41139 { ac_try='test -s conftest.$ac_objext'
41140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 (eval $ac_try) 2>&5
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); }; }; then
41145 ac_lo=$ac_mid; break
41147 echo "$as_me: failed program was:" >&5
41148 sed 's/^/| /' conftest.$ac_ext >&5
41150 ac_hi=`expr '(' $ac_mid ')' - 1`
41151 if test $ac_mid -le $ac_hi; then
41155 ac_mid=`expr 2 '*' $ac_mid`
41157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41160 echo "$as_me: failed program was:" >&5
41161 sed 's/^/| /' conftest.$ac_ext >&5
41165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41168 # Binary search between lo and hi bounds.
41169 while test "x$ac_lo" != "x$ac_hi"; do
41170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41171 cat >conftest.$ac_ext <<_ACEOF
41174 cat confdefs.h >>conftest.$ac_ext
41175 cat >>conftest.$ac_ext <<_ACEOF
41176 /* end confdefs.h. */
41177 $ac_includes_default
41181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41188 rm -f conftest.$ac_objext
41189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41190 (eval $ac_compile) 2>conftest.er1
41192 grep -v '^ *+' conftest.er1 >conftest.err
41194 cat conftest.err >&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); } &&
41197 { ac_try='test -z "$ac_c_werror_flag"
41198 || test ! -s conftest.err'
41199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41200 (eval $ac_try) 2>&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); }; } &&
41204 { ac_try='test -s conftest.$ac_objext'
41205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41206 (eval $ac_try) 2>&5
41208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209 (exit $ac_status); }; }; then
41212 echo "$as_me: failed program was:" >&5
41213 sed 's/^/| /' conftest.$ac_ext >&5
41215 ac_lo=`expr '(' $ac_mid ')' + 1`
41217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41220 ?*) ac_cv_sizeof_long_long=$ac_lo;;
41221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41222 See \`config.log' for more details." >&5
41223 echo "$as_me: error: cannot compute sizeof (long long), 77
41224 See \`config.log' for more details." >&2;}
41225 { (exit 1); exit 1; }; } ;;
41228 if test "$cross_compiling" = yes; then
41229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41230 See \`config.log' for more details." >&5
41231 echo "$as_me: error: cannot run test program while cross compiling
41232 See \`config.log' for more details." >&2;}
41233 { (exit 1); exit 1; }; }
41235 cat >conftest.$ac_ext <<_ACEOF
41238 cat confdefs.h >>conftest.$ac_ext
41239 cat >>conftest.$ac_ext <<_ACEOF
41240 /* end confdefs.h. */
41241 $ac_includes_default
41242 long longval () { return (long) (sizeof (long long)); }
41243 unsigned long ulongval () { return (long) (sizeof (long long)); }
41245 #include <stdlib.h>
41250 FILE *f = fopen ("conftest.val", "w");
41253 if (((long) (sizeof (long long))) < 0)
41255 long i = longval ();
41256 if (i != ((long) (sizeof (long long))))
41258 fprintf (f, "%ld\n", i);
41262 unsigned long i = ulongval ();
41263 if (i != ((long) (sizeof (long long))))
41265 fprintf (f, "%lu\n", i);
41267 exit (ferror (f) || fclose (f) != 0);
41273 rm -f conftest$ac_exeext
41274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41275 (eval $ac_link) 2>&5
41277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41280 (eval $ac_try) 2>&5
41282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41283 (exit $ac_status); }; }; then
41284 ac_cv_sizeof_long_long=`cat conftest.val`
41286 echo "$as_me: program exited with status $ac_status" >&5
41287 echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41290 ( exit $ac_status )
41291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41292 See \`config.log' for more details." >&5
41293 echo "$as_me: error: cannot compute sizeof (long long), 77
41294 See \`config.log' for more details." >&2;}
41295 { (exit 1); exit 1; }; }
41297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41302 ac_cv_sizeof_long_long=0
41305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
41306 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
41307 cat >>confdefs.h <<_ACEOF
41308 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
41312 echo "$as_me:$LINENO: checking for wchar_t" >&5
41313 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41314 if test "${ac_cv_type_wchar_t+set}" = set; then
41315 echo $ECHO_N "(cached) $ECHO_C" >&6
41317 cat >conftest.$ac_ext <<_ACEOF
41320 cat confdefs.h >>conftest.$ac_ext
41321 cat >>conftest.$ac_ext <<_ACEOF
41322 /* end confdefs.h. */
41323 $ac_includes_default
41329 if (sizeof (wchar_t))
41335 rm -f conftest.$ac_objext
41336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41337 (eval $ac_compile) 2>conftest.er1
41339 grep -v '^ *+' conftest.er1 >conftest.err
41341 cat conftest.err >&5
41342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41343 (exit $ac_status); } &&
41344 { ac_try='test -z "$ac_c_werror_flag"
41345 || test ! -s conftest.err'
41346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347 (eval $ac_try) 2>&5
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); }; } &&
41351 { ac_try='test -s conftest.$ac_objext'
41352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41353 (eval $ac_try) 2>&5
41355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356 (exit $ac_status); }; }; then
41357 ac_cv_type_wchar_t=yes
41359 echo "$as_me: failed program was:" >&5
41360 sed 's/^/| /' conftest.$ac_ext >&5
41362 ac_cv_type_wchar_t=no
41364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41366 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41367 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41369 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41370 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41371 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41372 echo $ECHO_N "(cached) $ECHO_C" >&6
41374 if test "$ac_cv_type_wchar_t" = yes; then
41375 # The cast to unsigned long works around a bug in the HP C Compiler
41376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41378 # This bug is HP SR number 8606223364.
41379 if test "$cross_compiling" = yes; then
41380 # Depending upon the size, compute the lo and hi bounds.
41381 cat >conftest.$ac_ext <<_ACEOF
41384 cat confdefs.h >>conftest.$ac_ext
41385 cat >>conftest.$ac_ext <<_ACEOF
41386 /* end confdefs.h. */
41387 $ac_includes_default
41391 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41398 rm -f conftest.$ac_objext
41399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41400 (eval $ac_compile) 2>conftest.er1
41402 grep -v '^ *+' conftest.er1 >conftest.err
41404 cat conftest.err >&5
41405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41406 (exit $ac_status); } &&
41407 { ac_try='test -z "$ac_c_werror_flag"
41408 || test ! -s conftest.err'
41409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410 (eval $ac_try) 2>&5
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); }; } &&
41414 { ac_try='test -s conftest.$ac_objext'
41415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41416 (eval $ac_try) 2>&5
41418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419 (exit $ac_status); }; }; then
41422 cat >conftest.$ac_ext <<_ACEOF
41425 cat confdefs.h >>conftest.$ac_ext
41426 cat >>conftest.$ac_ext <<_ACEOF
41427 /* end confdefs.h. */
41428 $ac_includes_default
41432 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41439 rm -f conftest.$ac_objext
41440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41441 (eval $ac_compile) 2>conftest.er1
41443 grep -v '^ *+' conftest.er1 >conftest.err
41445 cat conftest.err >&5
41446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447 (exit $ac_status); } &&
41448 { ac_try='test -z "$ac_c_werror_flag"
41449 || test ! -s conftest.err'
41450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41451 (eval $ac_try) 2>&5
41453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454 (exit $ac_status); }; } &&
41455 { ac_try='test -s conftest.$ac_objext'
41456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41457 (eval $ac_try) 2>&5
41459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460 (exit $ac_status); }; }; then
41461 ac_hi=$ac_mid; break
41463 echo "$as_me: failed program was:" >&5
41464 sed 's/^/| /' conftest.$ac_ext >&5
41466 ac_lo=`expr $ac_mid + 1`
41467 if test $ac_lo -le $ac_mid; then
41471 ac_mid=`expr 2 '*' $ac_mid + 1`
41473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41476 echo "$as_me: failed program was:" >&5
41477 sed 's/^/| /' conftest.$ac_ext >&5
41479 cat >conftest.$ac_ext <<_ACEOF
41482 cat confdefs.h >>conftest.$ac_ext
41483 cat >>conftest.$ac_ext <<_ACEOF
41484 /* end confdefs.h. */
41485 $ac_includes_default
41489 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41496 rm -f conftest.$ac_objext
41497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41498 (eval $ac_compile) 2>conftest.er1
41500 grep -v '^ *+' conftest.er1 >conftest.err
41502 cat conftest.err >&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } &&
41505 { ac_try='test -z "$ac_c_werror_flag"
41506 || test ! -s conftest.err'
41507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41508 (eval $ac_try) 2>&5
41510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41511 (exit $ac_status); }; } &&
41512 { ac_try='test -s conftest.$ac_objext'
41513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41514 (eval $ac_try) 2>&5
41516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41517 (exit $ac_status); }; }; then
41520 cat >conftest.$ac_ext <<_ACEOF
41523 cat confdefs.h >>conftest.$ac_ext
41524 cat >>conftest.$ac_ext <<_ACEOF
41525 /* end confdefs.h. */
41526 $ac_includes_default
41530 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41537 rm -f conftest.$ac_objext
41538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41539 (eval $ac_compile) 2>conftest.er1
41541 grep -v '^ *+' conftest.er1 >conftest.err
41543 cat conftest.err >&5
41544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545 (exit $ac_status); } &&
41546 { ac_try='test -z "$ac_c_werror_flag"
41547 || test ! -s conftest.err'
41548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41549 (eval $ac_try) 2>&5
41551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41552 (exit $ac_status); }; } &&
41553 { ac_try='test -s conftest.$ac_objext'
41554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41555 (eval $ac_try) 2>&5
41557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41558 (exit $ac_status); }; }; then
41559 ac_lo=$ac_mid; break
41561 echo "$as_me: failed program was:" >&5
41562 sed 's/^/| /' conftest.$ac_ext >&5
41564 ac_hi=`expr '(' $ac_mid ')' - 1`
41565 if test $ac_mid -le $ac_hi; then
41569 ac_mid=`expr 2 '*' $ac_mid`
41571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41574 echo "$as_me: failed program was:" >&5
41575 sed 's/^/| /' conftest.$ac_ext >&5
41579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41582 # Binary search between lo and hi bounds.
41583 while test "x$ac_lo" != "x$ac_hi"; do
41584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41585 cat >conftest.$ac_ext <<_ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h. */
41591 $ac_includes_default
41595 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41602 rm -f conftest.$ac_objext
41603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41604 (eval $ac_compile) 2>conftest.er1
41606 grep -v '^ *+' conftest.er1 >conftest.err
41608 cat conftest.err >&5
41609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 (exit $ac_status); } &&
41611 { ac_try='test -z "$ac_c_werror_flag"
41612 || test ! -s conftest.err'
41613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614 (eval $ac_try) 2>&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); }; } &&
41618 { ac_try='test -s conftest.$ac_objext'
41619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620 (eval $ac_try) 2>&5
41622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); }; }; then
41626 echo "$as_me: failed program was:" >&5
41627 sed 's/^/| /' conftest.$ac_ext >&5
41629 ac_lo=`expr '(' $ac_mid ')' + 1`
41631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41634 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41636 See \`config.log' for more details." >&5
41637 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41638 See \`config.log' for more details." >&2;}
41639 { (exit 1); exit 1; }; } ;;
41642 if test "$cross_compiling" = yes; then
41643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41644 See \`config.log' for more details." >&5
41645 echo "$as_me: error: cannot run test program while cross compiling
41646 See \`config.log' for more details." >&2;}
41647 { (exit 1); exit 1; }; }
41649 cat >conftest.$ac_ext <<_ACEOF
41652 cat confdefs.h >>conftest.$ac_ext
41653 cat >>conftest.$ac_ext <<_ACEOF
41654 /* end confdefs.h. */
41655 $ac_includes_default
41656 long longval () { return (long) (sizeof (wchar_t)); }
41657 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41659 #include <stdlib.h>
41664 FILE *f = fopen ("conftest.val", "w");
41667 if (((long) (sizeof (wchar_t))) < 0)
41669 long i = longval ();
41670 if (i != ((long) (sizeof (wchar_t))))
41672 fprintf (f, "%ld\n", i);
41676 unsigned long i = ulongval ();
41677 if (i != ((long) (sizeof (wchar_t))))
41679 fprintf (f, "%lu\n", i);
41681 exit (ferror (f) || fclose (f) != 0);
41687 rm -f conftest$ac_exeext
41688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41689 (eval $ac_link) 2>&5
41691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41694 (eval $ac_try) 2>&5
41696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697 (exit $ac_status); }; }; then
41698 ac_cv_sizeof_wchar_t=`cat conftest.val`
41700 echo "$as_me: program exited with status $ac_status" >&5
41701 echo "$as_me: failed program was:" >&5
41702 sed 's/^/| /' conftest.$ac_ext >&5
41704 ( exit $ac_status )
41705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41706 See \`config.log' for more details." >&5
41707 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41708 See \`config.log' for more details." >&2;}
41709 { (exit 1); exit 1; }; }
41711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41716 ac_cv_sizeof_wchar_t=0
41719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41720 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41721 cat >>confdefs.h <<_ACEOF
41722 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41727 if test "$ac_cv_sizeof_int" -lt 4 ; then
41728 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41729 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41732 cat >>confdefs.h <<\_ACEOF
41733 #define LBER_INT_T long
41738 cat >>confdefs.h <<\_ACEOF
41739 #define LBER_INT_T int
41745 cat >>confdefs.h <<\_ACEOF
41746 #define LBER_LEN_T long
41750 cat >>confdefs.h <<\_ACEOF
41751 #define LBER_SOCKET_T int
41755 cat >>confdefs.h <<\_ACEOF
41756 #define LBER_TAG_T long
41760 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41761 if test $ac_cv_sizeof_long_long > 4 ; then
41762 ol_with_mp=longlong
41764 cat >>confdefs.h <<\_ACEOF
41765 #define USE_MP_LONG_LONG 1
41768 elif test $ol_with_mp = longlong ; then
41769 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41770 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41771 { (exit 1); exit 1; }; }
41774 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41775 if test $ac_cv_sizeof_long > 4 ; then
41778 cat >>confdefs.h <<\_ACEOF
41779 #define USE_MP_LONG 1
41782 elif test $ol_with_mp = long ; then
41783 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
41784 echo "$as_me: error: long unusable for multiple precision" >&2;}
41785 { (exit 1); exit 1; }; }
41788 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
41790 for ac_header in openssl/bn.h
41792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41794 echo "$as_me:$LINENO: checking for $ac_header" >&5
41795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41797 echo $ECHO_N "(cached) $ECHO_C" >&6
41799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41802 # Is the header compilable?
41803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41805 cat >conftest.$ac_ext <<_ACEOF
41808 cat confdefs.h >>conftest.$ac_ext
41809 cat >>conftest.$ac_ext <<_ACEOF
41810 /* end confdefs.h. */
41811 $ac_includes_default
41812 #include <$ac_header>
41814 rm -f conftest.$ac_objext
41815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41816 (eval $ac_compile) 2>conftest.er1
41818 grep -v '^ *+' conftest.er1 >conftest.err
41820 cat conftest.err >&5
41821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); } &&
41823 { ac_try='test -z "$ac_c_werror_flag"
41824 || test ! -s conftest.err'
41825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41826 (eval $ac_try) 2>&5
41828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829 (exit $ac_status); }; } &&
41830 { ac_try='test -s conftest.$ac_objext'
41831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41832 (eval $ac_try) 2>&5
41834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); }; }; then
41836 ac_header_compiler=yes
41838 echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41841 ac_header_compiler=no
41843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41845 echo "${ECHO_T}$ac_header_compiler" >&6
41847 # Is the header present?
41848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41850 cat >conftest.$ac_ext <<_ACEOF
41853 cat confdefs.h >>conftest.$ac_ext
41854 cat >>conftest.$ac_ext <<_ACEOF
41855 /* end confdefs.h. */
41856 #include <$ac_header>
41858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41861 grep -v '^ *+' conftest.er1 >conftest.err
41863 cat conftest.err >&5
41864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865 (exit $ac_status); } >/dev/null; then
41866 if test -s conftest.err; then
41867 ac_cpp_err=$ac_c_preproc_warn_flag
41868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41875 if test -z "$ac_cpp_err"; then
41876 ac_header_preproc=yes
41878 echo "$as_me: failed program was:" >&5
41879 sed 's/^/| /' conftest.$ac_ext >&5
41881 ac_header_preproc=no
41883 rm -f conftest.err conftest.$ac_ext
41884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41885 echo "${ECHO_T}$ac_header_preproc" >&6
41887 # So? What about this header?
41888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41894 ac_header_preproc=yes
41897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41911 ## --------------------------------------------- ##
41912 ## Report this to <http://www.openldap.org/its/> ##
41913 ## --------------------------------------------- ##
41916 sed "s/^/$as_me: WARNING: /" >&2
41919 echo "$as_me:$LINENO: checking for $ac_header" >&5
41920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41922 echo $ECHO_N "(cached) $ECHO_C" >&6
41924 eval "$as_ac_Header=\$ac_header_preproc"
41926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41931 cat >>confdefs.h <<_ACEOF
41932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41940 for ac_header in openssl/crypto.h
41942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41944 echo "$as_me:$LINENO: checking for $ac_header" >&5
41945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41947 echo $ECHO_N "(cached) $ECHO_C" >&6
41949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41952 # Is the header compilable?
41953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41955 cat >conftest.$ac_ext <<_ACEOF
41958 cat confdefs.h >>conftest.$ac_ext
41959 cat >>conftest.$ac_ext <<_ACEOF
41960 /* end confdefs.h. */
41961 $ac_includes_default
41962 #include <$ac_header>
41964 rm -f conftest.$ac_objext
41965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41966 (eval $ac_compile) 2>conftest.er1
41968 grep -v '^ *+' conftest.er1 >conftest.err
41970 cat conftest.err >&5
41971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41972 (exit $ac_status); } &&
41973 { ac_try='test -z "$ac_c_werror_flag"
41974 || test ! -s conftest.err'
41975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41976 (eval $ac_try) 2>&5
41978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979 (exit $ac_status); }; } &&
41980 { ac_try='test -s conftest.$ac_objext'
41981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41982 (eval $ac_try) 2>&5
41984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985 (exit $ac_status); }; }; then
41986 ac_header_compiler=yes
41988 echo "$as_me: failed program was:" >&5
41989 sed 's/^/| /' conftest.$ac_ext >&5
41991 ac_header_compiler=no
41993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41995 echo "${ECHO_T}$ac_header_compiler" >&6
41997 # Is the header present?
41998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42000 cat >conftest.$ac_ext <<_ACEOF
42003 cat confdefs.h >>conftest.$ac_ext
42004 cat >>conftest.$ac_ext <<_ACEOF
42005 /* end confdefs.h. */
42006 #include <$ac_header>
42008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42011 grep -v '^ *+' conftest.er1 >conftest.err
42013 cat conftest.err >&5
42014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015 (exit $ac_status); } >/dev/null; then
42016 if test -s conftest.err; then
42017 ac_cpp_err=$ac_c_preproc_warn_flag
42018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42025 if test -z "$ac_cpp_err"; then
42026 ac_header_preproc=yes
42028 echo "$as_me: failed program was:" >&5
42029 sed 's/^/| /' conftest.$ac_ext >&5
42031 ac_header_preproc=no
42033 rm -f conftest.err conftest.$ac_ext
42034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42035 echo "${ECHO_T}$ac_header_preproc" >&6
42037 # So? What about this header?
42038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42044 ac_header_preproc=yes
42047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42061 ## --------------------------------------------- ##
42062 ## Report this to <http://www.openldap.org/its/> ##
42063 ## --------------------------------------------- ##
42066 sed "s/^/$as_me: WARNING: /" >&2
42069 echo "$as_me:$LINENO: checking for $ac_header" >&5
42070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42072 echo $ECHO_N "(cached) $ECHO_C" >&6
42074 eval "$as_ac_Header=\$ac_header_preproc"
42076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42081 cat >>confdefs.h <<_ACEOF
42082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42089 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
42090 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
42091 test "$ol_with_tls" = "found" ; then
42094 cat >>confdefs.h <<\_ACEOF
42095 #define USE_MP_BIGNUM 1
42098 elif test $ol_with_mp = bignum ; then
42099 { { echo "$as_me:$LINENO: error: bignum not available" >&5
42100 echo "$as_me: error: bignum not available" >&2;}
42101 { (exit 1); exit 1; }; }
42104 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
42106 for ac_header in gmp.h
42108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42110 echo "$as_me:$LINENO: checking for $ac_header" >&5
42111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42113 echo $ECHO_N "(cached) $ECHO_C" >&6
42115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42118 # Is the header compilable?
42119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42121 cat >conftest.$ac_ext <<_ACEOF
42124 cat confdefs.h >>conftest.$ac_ext
42125 cat >>conftest.$ac_ext <<_ACEOF
42126 /* end confdefs.h. */
42127 $ac_includes_default
42128 #include <$ac_header>
42130 rm -f conftest.$ac_objext
42131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42132 (eval $ac_compile) 2>conftest.er1
42134 grep -v '^ *+' conftest.er1 >conftest.err
42136 cat conftest.err >&5
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); } &&
42139 { ac_try='test -z "$ac_c_werror_flag"
42140 || test ! -s conftest.err'
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; } &&
42146 { ac_try='test -s conftest.$ac_objext'
42147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148 (eval $ac_try) 2>&5
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); }; }; then
42152 ac_header_compiler=yes
42154 echo "$as_me: failed program was:" >&5
42155 sed 's/^/| /' conftest.$ac_ext >&5
42157 ac_header_compiler=no
42159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42161 echo "${ECHO_T}$ac_header_compiler" >&6
42163 # Is the header present?
42164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42166 cat >conftest.$ac_ext <<_ACEOF
42169 cat confdefs.h >>conftest.$ac_ext
42170 cat >>conftest.$ac_ext <<_ACEOF
42171 /* end confdefs.h. */
42172 #include <$ac_header>
42174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42177 grep -v '^ *+' conftest.er1 >conftest.err
42179 cat conftest.err >&5
42180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181 (exit $ac_status); } >/dev/null; then
42182 if test -s conftest.err; then
42183 ac_cpp_err=$ac_c_preproc_warn_flag
42184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42191 if test -z "$ac_cpp_err"; then
42192 ac_header_preproc=yes
42194 echo "$as_me: failed program was:" >&5
42195 sed 's/^/| /' conftest.$ac_ext >&5
42197 ac_header_preproc=no
42199 rm -f conftest.err conftest.$ac_ext
42200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42201 echo "${ECHO_T}$ac_header_preproc" >&6
42203 # So? What about this header?
42204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42210 ac_header_preproc=yes
42213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42227 ## --------------------------------------------- ##
42228 ## Report this to <http://www.openldap.org/its/> ##
42229 ## --------------------------------------------- ##
42232 sed "s/^/$as_me: WARNING: /" >&2
42235 echo "$as_me:$LINENO: checking for $ac_header" >&5
42236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42238 echo $ECHO_N "(cached) $ECHO_C" >&6
42240 eval "$as_ac_Header=\$ac_header_preproc"
42242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42247 cat >>confdefs.h <<_ACEOF
42248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42256 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
42257 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
42258 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
42259 echo $ECHO_N "(cached) $ECHO_C" >&6
42261 ac_check_lib_save_LIBS=$LIBS
42263 cat >conftest.$ac_ext <<_ACEOF
42266 cat confdefs.h >>conftest.$ac_ext
42267 cat >>conftest.$ac_ext <<_ACEOF
42268 /* end confdefs.h. */
42270 /* Override any gcc2 internal prototype to avoid an error. */
42274 /* We use char because int might match the return type of a gcc2
42275 builtin and then its argument prototype would still apply. */
42276 char __gmpz_add_ui ();
42285 rm -f conftest.$ac_objext conftest$ac_exeext
42286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42287 (eval $ac_link) 2>conftest.er1
42289 grep -v '^ *+' conftest.er1 >conftest.err
42291 cat conftest.err >&5
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); } &&
42294 { ac_try='test -z "$ac_c_werror_flag"
42295 || test ! -s conftest.err'
42296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297 (eval $ac_try) 2>&5
42299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); }; } &&
42301 { ac_try='test -s conftest$ac_exeext'
42302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42303 (eval $ac_try) 2>&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306 (exit $ac_status); }; }; then
42307 ac_cv_lib_gmp___gmpz_add_ui=yes
42309 echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42312 ac_cv_lib_gmp___gmpz_add_ui=no
42314 rm -f conftest.err conftest.$ac_objext \
42315 conftest$ac_exeext conftest.$ac_ext
42316 LIBS=$ac_check_lib_save_LIBS
42318 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42319 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
42320 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42321 cat >>confdefs.h <<_ACEOF
42322 #define HAVE_LIBGMP 1
42329 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
42331 cat >>confdefs.h <<\_ACEOF
42332 #define USE_MP_GMP 1
42336 elif test $ol_with_mp = gmp ; then
42337 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42338 echo "$as_me: error: gmp not available" >&2;}
42339 { (exit 1); exit 1; }; }
42342 if test $ol_with_mp = auto ; then
42346 echo "$as_me:$LINENO: checking for working memcmp" >&5
42347 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42348 if test "${ac_cv_func_memcmp_working+set}" = set; then
42349 echo $ECHO_N "(cached) $ECHO_C" >&6
42351 if test "$cross_compiling" = yes; then
42352 ac_cv_func_memcmp_working=no
42354 cat >conftest.$ac_ext <<_ACEOF
42357 cat confdefs.h >>conftest.$ac_ext
42358 cat >>conftest.$ac_ext <<_ACEOF
42359 /* end confdefs.h. */
42360 $ac_includes_default
42365 /* Some versions of memcmp are not 8-bit clean. */
42366 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42367 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42370 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42371 or more and with at least one buffer not starting on a 4-byte boundary.
42372 William Lewis provided this test program. */
42377 for (i = 0; i < 4; i++)
42381 strcpy (a, "--------01111111");
42382 strcpy (b, "--------10000000");
42383 if (memcmp (a, b, 16) >= 0)
42393 rm -f conftest$ac_exeext
42394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42395 (eval $ac_link) 2>&5
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400 (eval $ac_try) 2>&5
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); }; }; then
42404 ac_cv_func_memcmp_working=yes
42406 echo "$as_me: program exited with status $ac_status" >&5
42407 echo "$as_me: failed program was:" >&5
42408 sed 's/^/| /' conftest.$ac_ext >&5
42410 ( exit $ac_status )
42411 ac_cv_func_memcmp_working=no
42413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42416 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42417 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42418 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42419 "memcmp.$ac_objext" | \
42420 *" memcmp.$ac_objext" | \
42421 "memcmp.$ac_objext "* | \
42422 *" memcmp.$ac_objext "* ) ;;
42423 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42428 if test $ac_cv_func_memcmp_working = no ; then
42430 cat >>confdefs.h <<\_ACEOF
42431 #define NEED_MEMCMP_REPLACEMENT 1
42437 for ac_func in strftime
42439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42440 echo "$as_me:$LINENO: checking for $ac_func" >&5
42441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42442 if eval "test \"\${$as_ac_var+set}\" = set"; then
42443 echo $ECHO_N "(cached) $ECHO_C" >&6
42445 cat >conftest.$ac_ext <<_ACEOF
42448 cat confdefs.h >>conftest.$ac_ext
42449 cat >>conftest.$ac_ext <<_ACEOF
42450 /* end confdefs.h. */
42451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42453 #define $ac_func innocuous_$ac_func
42455 /* System header to define __stub macros and hopefully few prototypes,
42456 which can conflict with char $ac_func (); below.
42457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42458 <limits.h> exists even on freestanding compilers. */
42461 # include <limits.h>
42463 # include <assert.h>
42468 /* Override any gcc2 internal prototype to avoid an error. */
42473 /* We use char because int might match the return type of a gcc2
42474 builtin and then its argument prototype would still apply. */
42476 /* The GNU C library defines this for functions which it implements
42477 to always fail with ENOSYS. Some functions are actually named
42478 something starting with __ and the normal name is an alias. */
42479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42482 char (*f) () = $ac_func;
42491 return f != $ac_func;
42496 rm -f conftest.$ac_objext conftest$ac_exeext
42497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42498 (eval $ac_link) 2>conftest.er1
42500 grep -v '^ *+' conftest.er1 >conftest.err
42502 cat conftest.err >&5
42503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42504 (exit $ac_status); } &&
42505 { ac_try='test -z "$ac_c_werror_flag"
42506 || test ! -s conftest.err'
42507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42508 (eval $ac_try) 2>&5
42510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511 (exit $ac_status); }; } &&
42512 { ac_try='test -s conftest$ac_exeext'
42513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42514 (eval $ac_try) 2>&5
42516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42517 (exit $ac_status); }; }; then
42518 eval "$as_ac_var=yes"
42520 echo "$as_me: failed program was:" >&5
42521 sed 's/^/| /' conftest.$ac_ext >&5
42523 eval "$as_ac_var=no"
42525 rm -f conftest.err conftest.$ac_objext \
42526 conftest$ac_exeext conftest.$ac_ext
42528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42530 if test `eval echo '${'$as_ac_var'}'` = yes; then
42531 cat >>confdefs.h <<_ACEOF
42532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42536 # strftime is in -lintl on SCO UNIX.
42537 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42538 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42539 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42540 echo $ECHO_N "(cached) $ECHO_C" >&6
42542 ac_check_lib_save_LIBS=$LIBS
42543 LIBS="-lintl $LIBS"
42544 cat >conftest.$ac_ext <<_ACEOF
42547 cat confdefs.h >>conftest.$ac_ext
42548 cat >>conftest.$ac_ext <<_ACEOF
42549 /* end confdefs.h. */
42551 /* Override any gcc2 internal prototype to avoid an error. */
42555 /* We use char because int might match the return type of a gcc2
42556 builtin and then its argument prototype would still apply. */
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568 (eval $ac_link) 2>conftest.er1
42570 grep -v '^ *+' conftest.er1 >conftest.err
42572 cat conftest.err >&5
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } &&
42575 { ac_try='test -z "$ac_c_werror_flag"
42576 || test ! -s conftest.err'
42577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578 (eval $ac_try) 2>&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); }; } &&
42582 { ac_try='test -s conftest$ac_exeext'
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; }; then
42588 ac_cv_lib_intl_strftime=yes
42590 echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42593 ac_cv_lib_intl_strftime=no
42595 rm -f conftest.err conftest.$ac_objext \
42596 conftest$ac_exeext conftest.$ac_ext
42597 LIBS=$ac_check_lib_save_LIBS
42599 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42600 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42601 if test $ac_cv_lib_intl_strftime = yes; then
42602 cat >>confdefs.h <<\_ACEOF
42603 #define HAVE_STRFTIME 1
42606 LIBS="-lintl $LIBS"
42613 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42614 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42615 if test "${ol_cv_func_inet_aton+set}" = set; then
42616 echo $ECHO_N "(cached) $ECHO_C" >&6
42618 cat >conftest.$ac_ext <<_ACEOF
42621 cat confdefs.h >>conftest.$ac_ext
42622 cat >>conftest.$ac_ext <<_ACEOF
42623 /* end confdefs.h. */
42625 #ifdef HAVE_SYS_TYPES_H
42626 # include <sys/types.h>
42628 #ifdef HAVE_SYS_SOCKET_H
42629 # include <sys/socket.h>
42630 # ifdef HAVE_SYS_SELECT_H
42631 # include <sys/select.h>
42633 # include <netinet/in.h>
42634 # ifdef HAVE_ARPA_INET_H
42635 # include <arpa/inet.h>
42643 int rc = inet_aton( "255.255.255.255", &in );
42648 rm -f conftest.$ac_objext conftest$ac_exeext
42649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42650 (eval $ac_link) 2>conftest.er1
42652 grep -v '^ *+' conftest.er1 >conftest.err
42654 cat conftest.err >&5
42655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42656 (exit $ac_status); } &&
42657 { ac_try='test -z "$ac_c_werror_flag"
42658 || test ! -s conftest.err'
42659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42660 (eval $ac_try) 2>&5
42662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42663 (exit $ac_status); }; } &&
42664 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
42670 ol_cv_func_inet_aton=yes
42672 echo "$as_me: failed program was:" >&5
42673 sed 's/^/| /' conftest.$ac_ext >&5
42675 ol_cv_func_inet_aton=no
42677 rm -f conftest.err conftest.$ac_objext \
42678 conftest$ac_exeext conftest.$ac_ext
42680 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42681 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42682 if test $ol_cv_func_inet_aton != no; then
42684 cat >>confdefs.h <<\_ACEOF
42685 #define HAVE_INET_ATON 1
42691 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42692 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42693 if test "${ac_cv_func__spawnlp+set}" = set; then
42694 echo $ECHO_N "(cached) $ECHO_C" >&6
42696 cat >conftest.$ac_ext <<_ACEOF
42699 cat confdefs.h >>conftest.$ac_ext
42700 cat >>conftest.$ac_ext <<_ACEOF
42701 /* end confdefs.h. */
42702 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42704 #define _spawnlp innocuous__spawnlp
42706 /* System header to define __stub macros and hopefully few prototypes,
42707 which can conflict with char _spawnlp (); below.
42708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42709 <limits.h> exists even on freestanding compilers. */
42712 # include <limits.h>
42714 # include <assert.h>
42719 /* Override any gcc2 internal prototype to avoid an error. */
42724 /* We use char because int might match the return type of a gcc2
42725 builtin and then its argument prototype would still apply. */
42727 /* The GNU C library defines this for functions which it implements
42728 to always fail with ENOSYS. Some functions are actually named
42729 something starting with __ and the normal name is an alias. */
42730 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42733 char (*f) () = _spawnlp;
42742 return f != _spawnlp;
42747 rm -f conftest.$ac_objext conftest$ac_exeext
42748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42749 (eval $ac_link) 2>conftest.er1
42751 grep -v '^ *+' conftest.er1 >conftest.err
42753 cat conftest.err >&5
42754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); } &&
42756 { ac_try='test -z "$ac_c_werror_flag"
42757 || test ! -s conftest.err'
42758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42759 (eval $ac_try) 2>&5
42761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42762 (exit $ac_status); }; } &&
42763 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
42769 ac_cv_func__spawnlp=yes
42771 echo "$as_me: failed program was:" >&5
42772 sed 's/^/| /' conftest.$ac_ext >&5
42774 ac_cv_func__spawnlp=no
42776 rm -f conftest.err conftest.$ac_objext \
42777 conftest$ac_exeext conftest.$ac_ext
42779 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42780 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42781 if test $ac_cv_func__spawnlp = yes; then
42783 cat >>confdefs.h <<\_ACEOF
42784 #define HAVE_SPAWNLP 1
42790 echo "$as_me:$LINENO: checking for _snprintf" >&5
42791 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42792 if test "${ac_cv_func__snprintf+set}" = set; then
42793 echo $ECHO_N "(cached) $ECHO_C" >&6
42795 cat >conftest.$ac_ext <<_ACEOF
42798 cat confdefs.h >>conftest.$ac_ext
42799 cat >>conftest.$ac_ext <<_ACEOF
42800 /* end confdefs.h. */
42801 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42803 #define _snprintf innocuous__snprintf
42805 /* System header to define __stub macros and hopefully few prototypes,
42806 which can conflict with char _snprintf (); below.
42807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42808 <limits.h> exists even on freestanding compilers. */
42811 # include <limits.h>
42813 # include <assert.h>
42818 /* Override any gcc2 internal prototype to avoid an error. */
42823 /* We use char because int might match the return type of a gcc2
42824 builtin and then its argument prototype would still apply. */
42826 /* The GNU C library defines this for functions which it implements
42827 to always fail with ENOSYS. Some functions are actually named
42828 something starting with __ and the normal name is an alias. */
42829 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42832 char (*f) () = _snprintf;
42841 return f != _snprintf;
42846 rm -f conftest.$ac_objext conftest$ac_exeext
42847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42848 (eval $ac_link) 2>conftest.er1
42850 grep -v '^ *+' conftest.er1 >conftest.err
42852 cat conftest.err >&5
42853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42854 (exit $ac_status); } &&
42855 { ac_try='test -z "$ac_c_werror_flag"
42856 || test ! -s conftest.err'
42857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42858 (eval $ac_try) 2>&5
42860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42861 (exit $ac_status); }; } &&
42862 { ac_try='test -s conftest$ac_exeext'
42863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42864 (eval $ac_try) 2>&5
42866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867 (exit $ac_status); }; }; then
42868 ac_cv_func__snprintf=yes
42870 echo "$as_me: failed program was:" >&5
42871 sed 's/^/| /' conftest.$ac_ext >&5
42873 ac_cv_func__snprintf=no
42875 rm -f conftest.err conftest.$ac_objext \
42876 conftest$ac_exeext conftest.$ac_ext
42878 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42879 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42880 if test $ac_cv_func__snprintf = yes; then
42881 ac_cv_func_snprintf=yes
42883 cat >>confdefs.h <<\_ACEOF
42884 #define snprintf _snprintf
42891 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42892 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42893 if test "${ac_cv_func__vsnprintf+set}" = set; then
42894 echo $ECHO_N "(cached) $ECHO_C" >&6
42896 cat >conftest.$ac_ext <<_ACEOF
42899 cat confdefs.h >>conftest.$ac_ext
42900 cat >>conftest.$ac_ext <<_ACEOF
42901 /* end confdefs.h. */
42902 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42904 #define _vsnprintf innocuous__vsnprintf
42906 /* System header to define __stub macros and hopefully few prototypes,
42907 which can conflict with char _vsnprintf (); below.
42908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42909 <limits.h> exists even on freestanding compilers. */
42912 # include <limits.h>
42914 # include <assert.h>
42919 /* Override any gcc2 internal prototype to avoid an error. */
42924 /* We use char because int might match the return type of a gcc2
42925 builtin and then its argument prototype would still apply. */
42926 char _vsnprintf ();
42927 /* The GNU C library defines this for functions which it implements
42928 to always fail with ENOSYS. Some functions are actually named
42929 something starting with __ and the normal name is an alias. */
42930 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42933 char (*f) () = _vsnprintf;
42942 return f != _vsnprintf;
42947 rm -f conftest.$ac_objext conftest$ac_exeext
42948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42949 (eval $ac_link) 2>conftest.er1
42951 grep -v '^ *+' conftest.er1 >conftest.err
42953 cat conftest.err >&5
42954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42955 (exit $ac_status); } &&
42956 { ac_try='test -z "$ac_c_werror_flag"
42957 || test ! -s conftest.err'
42958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42959 (eval $ac_try) 2>&5
42961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42962 (exit $ac_status); }; } &&
42963 { ac_try='test -s conftest$ac_exeext'
42964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42965 (eval $ac_try) 2>&5
42967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); }; }; then
42969 ac_cv_func__vsnprintf=yes
42971 echo "$as_me: failed program was:" >&5
42972 sed 's/^/| /' conftest.$ac_ext >&5
42974 ac_cv_func__vsnprintf=no
42976 rm -f conftest.err conftest.$ac_objext \
42977 conftest$ac_exeext conftest.$ac_ext
42979 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42980 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42981 if test $ac_cv_func__vsnprintf = yes; then
42982 ac_cv_func_vsnprintf=yes
42984 cat >>confdefs.h <<\_ACEOF
42985 #define vsnprintf _vsnprintf
42993 for ac_func in vprintf
42995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42996 echo "$as_me:$LINENO: checking for $ac_func" >&5
42997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42998 if eval "test \"\${$as_ac_var+set}\" = set"; then
42999 echo $ECHO_N "(cached) $ECHO_C" >&6
43001 cat >conftest.$ac_ext <<_ACEOF
43004 cat confdefs.h >>conftest.$ac_ext
43005 cat >>conftest.$ac_ext <<_ACEOF
43006 /* end confdefs.h. */
43007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43009 #define $ac_func innocuous_$ac_func
43011 /* System header to define __stub macros and hopefully few prototypes,
43012 which can conflict with char $ac_func (); below.
43013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43014 <limits.h> exists even on freestanding compilers. */
43017 # include <limits.h>
43019 # include <assert.h>
43024 /* Override any gcc2 internal prototype to avoid an error. */
43029 /* We use char because int might match the return type of a gcc2
43030 builtin and then its argument prototype would still apply. */
43032 /* The GNU C library defines this for functions which it implements
43033 to always fail with ENOSYS. Some functions are actually named
43034 something starting with __ and the normal name is an alias. */
43035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43038 char (*f) () = $ac_func;
43047 return f != $ac_func;
43052 rm -f conftest.$ac_objext conftest$ac_exeext
43053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43054 (eval $ac_link) 2>conftest.er1
43056 grep -v '^ *+' conftest.er1 >conftest.err
43058 cat conftest.err >&5
43059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060 (exit $ac_status); } &&
43061 { ac_try='test -z "$ac_c_werror_flag"
43062 || test ! -s conftest.err'
43063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43064 (eval $ac_try) 2>&5
43066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 (exit $ac_status); }; } &&
43068 { ac_try='test -s conftest$ac_exeext'
43069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43070 (eval $ac_try) 2>&5
43072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43073 (exit $ac_status); }; }; then
43074 eval "$as_ac_var=yes"
43076 echo "$as_me: failed program was:" >&5
43077 sed 's/^/| /' conftest.$ac_ext >&5
43079 eval "$as_ac_var=no"
43081 rm -f conftest.err conftest.$ac_objext \
43082 conftest$ac_exeext conftest.$ac_ext
43084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43086 if test `eval echo '${'$as_ac_var'}'` = yes; then
43087 cat >>confdefs.h <<_ACEOF
43088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43091 echo "$as_me:$LINENO: checking for _doprnt" >&5
43092 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43093 if test "${ac_cv_func__doprnt+set}" = set; then
43094 echo $ECHO_N "(cached) $ECHO_C" >&6
43096 cat >conftest.$ac_ext <<_ACEOF
43099 cat confdefs.h >>conftest.$ac_ext
43100 cat >>conftest.$ac_ext <<_ACEOF
43101 /* end confdefs.h. */
43102 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43104 #define _doprnt innocuous__doprnt
43106 /* System header to define __stub macros and hopefully few prototypes,
43107 which can conflict with char _doprnt (); below.
43108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43109 <limits.h> exists even on freestanding compilers. */
43112 # include <limits.h>
43114 # include <assert.h>
43119 /* Override any gcc2 internal prototype to avoid an error. */
43124 /* We use char because int might match the return type of a gcc2
43125 builtin and then its argument prototype would still apply. */
43127 /* The GNU C library defines this for functions which it implements
43128 to always fail with ENOSYS. Some functions are actually named
43129 something starting with __ and the normal name is an alias. */
43130 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43133 char (*f) () = _doprnt;
43142 return f != _doprnt;
43147 rm -f conftest.$ac_objext conftest$ac_exeext
43148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43149 (eval $ac_link) 2>conftest.er1
43151 grep -v '^ *+' conftest.er1 >conftest.err
43153 cat conftest.err >&5
43154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43155 (exit $ac_status); } &&
43156 { ac_try='test -z "$ac_c_werror_flag"
43157 || test ! -s conftest.err'
43158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43159 (eval $ac_try) 2>&5
43161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43162 (exit $ac_status); }; } &&
43163 { ac_try='test -s conftest$ac_exeext'
43164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43165 (eval $ac_try) 2>&5
43167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168 (exit $ac_status); }; }; then
43169 ac_cv_func__doprnt=yes
43171 echo "$as_me: failed program was:" >&5
43172 sed 's/^/| /' conftest.$ac_ext >&5
43174 ac_cv_func__doprnt=no
43176 rm -f conftest.err conftest.$ac_objext \
43177 conftest$ac_exeext conftest.$ac_ext
43179 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43180 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43181 if test $ac_cv_func__doprnt = yes; then
43183 cat >>confdefs.h <<\_ACEOF
43184 #define HAVE_DOPRNT 1
43194 if test $ac_cv_func_vprintf = yes ; then
43197 for ac_func in snprintf vsnprintf
43199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43200 echo "$as_me:$LINENO: checking for $ac_func" >&5
43201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43202 if eval "test \"\${$as_ac_var+set}\" = set"; then
43203 echo $ECHO_N "(cached) $ECHO_C" >&6
43205 cat >conftest.$ac_ext <<_ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h. */
43211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43213 #define $ac_func innocuous_$ac_func
43215 /* System header to define __stub macros and hopefully few prototypes,
43216 which can conflict with char $ac_func (); below.
43217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43218 <limits.h> exists even on freestanding compilers. */
43221 # include <limits.h>
43223 # include <assert.h>
43228 /* Override any gcc2 internal prototype to avoid an error. */
43233 /* We use char because int might match the return type of a gcc2
43234 builtin and then its argument prototype would still apply. */
43236 /* The GNU C library defines this for functions which it implements
43237 to always fail with ENOSYS. Some functions are actually named
43238 something starting with __ and the normal name is an alias. */
43239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43242 char (*f) () = $ac_func;
43251 return f != $ac_func;
43256 rm -f conftest.$ac_objext conftest$ac_exeext
43257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43258 (eval $ac_link) 2>conftest.er1
43260 grep -v '^ *+' conftest.er1 >conftest.err
43262 cat conftest.err >&5
43263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); } &&
43265 { ac_try='test -z "$ac_c_werror_flag"
43266 || test ! -s conftest.err'
43267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43268 (eval $ac_try) 2>&5
43270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271 (exit $ac_status); }; } &&
43272 { ac_try='test -s conftest$ac_exeext'
43273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43274 (eval $ac_try) 2>&5
43276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43277 (exit $ac_status); }; }; then
43278 eval "$as_ac_var=yes"
43280 echo "$as_me: failed program was:" >&5
43281 sed 's/^/| /' conftest.$ac_ext >&5
43283 eval "$as_ac_var=no"
43285 rm -f conftest.err conftest.$ac_objext \
43286 conftest$ac_exeext conftest.$ac_ext
43288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43290 if test `eval echo '${'$as_ac_var'}'` = yes; then
43291 cat >>confdefs.h <<_ACEOF
43292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43412 echo "$as_me:$LINENO: checking for $ac_func" >&5
43413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43414 if eval "test \"\${$as_ac_var+set}\" = set"; then
43415 echo $ECHO_N "(cached) $ECHO_C" >&6
43417 cat >conftest.$ac_ext <<_ACEOF
43420 cat confdefs.h >>conftest.$ac_ext
43421 cat >>conftest.$ac_ext <<_ACEOF
43422 /* end confdefs.h. */
43423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43425 #define $ac_func innocuous_$ac_func
43427 /* System header to define __stub macros and hopefully few prototypes,
43428 which can conflict with char $ac_func (); below.
43429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43430 <limits.h> exists even on freestanding compilers. */
43433 # include <limits.h>
43435 # include <assert.h>
43440 /* Override any gcc2 internal prototype to avoid an error. */
43445 /* We use char because int might match the return type of a gcc2
43446 builtin and then its argument prototype would still apply. */
43448 /* The GNU C library defines this for functions which it implements
43449 to always fail with ENOSYS. Some functions are actually named
43450 something starting with __ and the normal name is an alias. */
43451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43454 char (*f) () = $ac_func;
43463 return f != $ac_func;
43468 rm -f conftest.$ac_objext conftest$ac_exeext
43469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43470 (eval $ac_link) 2>conftest.er1
43472 grep -v '^ *+' conftest.er1 >conftest.err
43474 cat conftest.err >&5
43475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); } &&
43477 { ac_try='test -z "$ac_c_werror_flag"
43478 || test ! -s conftest.err'
43479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480 (eval $ac_try) 2>&5
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483 (exit $ac_status); }; } &&
43484 { ac_try='test -s conftest$ac_exeext'
43485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43486 (eval $ac_try) 2>&5
43488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489 (exit $ac_status); }; }; then
43490 eval "$as_ac_var=yes"
43492 echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43495 eval "$as_ac_var=no"
43497 rm -f conftest.err conftest.$ac_objext \
43498 conftest$ac_exeext conftest.$ac_ext
43500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43502 if test `eval echo '${'$as_ac_var'}'` = yes; then
43503 cat >>confdefs.h <<_ACEOF
43504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43513 for ac_func in getopt getpeereid
43515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43516 echo "$as_me:$LINENO: checking for $ac_func" >&5
43517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43518 if eval "test \"\${$as_ac_var+set}\" = set"; then
43519 echo $ECHO_N "(cached) $ECHO_C" >&6
43521 cat >conftest.$ac_ext <<_ACEOF
43524 cat confdefs.h >>conftest.$ac_ext
43525 cat >>conftest.$ac_ext <<_ACEOF
43526 /* end confdefs.h. */
43527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43529 #define $ac_func innocuous_$ac_func
43531 /* System header to define __stub macros and hopefully few prototypes,
43532 which can conflict with char $ac_func (); below.
43533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43534 <limits.h> exists even on freestanding compilers. */
43537 # include <limits.h>
43539 # include <assert.h>
43544 /* Override any gcc2 internal prototype to avoid an error. */
43549 /* We use char because int might match the return type of a gcc2
43550 builtin and then its argument prototype would still apply. */
43552 /* The GNU C library defines this for functions which it implements
43553 to always fail with ENOSYS. Some functions are actually named
43554 something starting with __ and the normal name is an alias. */
43555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43558 char (*f) () = $ac_func;
43567 return f != $ac_func;
43572 rm -f conftest.$ac_objext conftest$ac_exeext
43573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43574 (eval $ac_link) 2>conftest.er1
43576 grep -v '^ *+' conftest.er1 >conftest.err
43578 cat conftest.err >&5
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); } &&
43581 { ac_try='test -z "$ac_c_werror_flag"
43582 || test ! -s conftest.err'
43583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43584 (eval $ac_try) 2>&5
43586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587 (exit $ac_status); }; } &&
43588 { ac_try='test -s conftest$ac_exeext'
43589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590 (eval $ac_try) 2>&5
43592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593 (exit $ac_status); }; }; then
43594 eval "$as_ac_var=yes"
43596 echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43599 eval "$as_ac_var=no"
43601 rm -f conftest.err conftest.$ac_objext \
43602 conftest$ac_exeext conftest.$ac_ext
43604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43606 if test `eval echo '${'$as_ac_var'}'` = yes; then
43607 cat >>confdefs.h <<_ACEOF
43608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43613 "$ac_func.$ac_objext" | \
43614 *" $ac_func.$ac_objext" | \
43615 "$ac_func.$ac_objext "* | \
43616 *" $ac_func.$ac_objext "* ) ;;
43617 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43625 if test "$ac_cv_func_getopt" != yes; then
43626 LIBSRCS="$LIBSRCS getopt.c"
43628 if test "$ac_cv_func_getpeereid" != yes; then
43629 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43630 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43631 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43632 echo $ECHO_N "(cached) $ECHO_C" >&6
43634 cat >conftest.$ac_ext <<_ACEOF
43637 cat confdefs.h >>conftest.$ac_ext
43638 cat >>conftest.$ac_ext <<_ACEOF
43639 /* end confdefs.h. */
43640 $ac_includes_default
43641 #ifdef HAVE_SYS_SOCKET_H
43642 #include <sys/socket.h>
43648 static struct msghdr ac_aggr;
43649 if (ac_aggr.msg_accrightslen)
43655 rm -f conftest.$ac_objext
43656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43657 (eval $ac_compile) 2>conftest.er1
43659 grep -v '^ *+' conftest.er1 >conftest.err
43661 cat conftest.err >&5
43662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663 (exit $ac_status); } &&
43664 { ac_try='test -z "$ac_c_werror_flag"
43665 || test ! -s conftest.err'
43666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 (eval $ac_try) 2>&5
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); }; } &&
43671 { ac_try='test -s conftest.$ac_objext'
43672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673 (eval $ac_try) 2>&5
43675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676 (exit $ac_status); }; }; then
43677 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43679 echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43682 cat >conftest.$ac_ext <<_ACEOF
43685 cat confdefs.h >>conftest.$ac_ext
43686 cat >>conftest.$ac_ext <<_ACEOF
43687 /* end confdefs.h. */
43688 $ac_includes_default
43689 #ifdef HAVE_SYS_SOCKET_H
43690 #include <sys/socket.h>
43696 static struct msghdr ac_aggr;
43697 if (sizeof ac_aggr.msg_accrightslen)
43703 rm -f conftest.$ac_objext
43704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43705 (eval $ac_compile) 2>conftest.er1
43707 grep -v '^ *+' conftest.er1 >conftest.err
43709 cat conftest.err >&5
43710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43711 (exit $ac_status); } &&
43712 { ac_try='test -z "$ac_c_werror_flag"
43713 || test ! -s conftest.err'
43714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43715 (eval $ac_try) 2>&5
43717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; } &&
43719 { ac_try='test -s conftest.$ac_objext'
43720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43721 (eval $ac_try) 2>&5
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); }; }; then
43725 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43727 echo "$as_me: failed program was:" >&5
43728 sed 's/^/| /' conftest.$ac_ext >&5
43730 ac_cv_member_struct_msghdr_msg_accrightslen=no
43732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43736 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43737 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43738 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43740 cat >>confdefs.h <<_ACEOF
43741 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43747 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43748 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43749 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43750 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43751 echo $ECHO_N "(cached) $ECHO_C" >&6
43753 cat >conftest.$ac_ext <<_ACEOF
43756 cat confdefs.h >>conftest.$ac_ext
43757 cat >>conftest.$ac_ext <<_ACEOF
43758 /* end confdefs.h. */
43759 $ac_includes_default
43760 #ifdef HAVE_SYS_SOCKET_H
43761 #include <sys/socket.h>
43767 static struct msghdr ac_aggr;
43768 if (ac_aggr.msg_control)
43774 rm -f conftest.$ac_objext
43775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43776 (eval $ac_compile) 2>conftest.er1
43778 grep -v '^ *+' conftest.er1 >conftest.err
43780 cat conftest.err >&5
43781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782 (exit $ac_status); } &&
43783 { ac_try='test -z "$ac_c_werror_flag"
43784 || test ! -s conftest.err'
43785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43786 (eval $ac_try) 2>&5
43788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43789 (exit $ac_status); }; } &&
43790 { ac_try='test -s conftest.$ac_objext'
43791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43792 (eval $ac_try) 2>&5
43794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43795 (exit $ac_status); }; }; then
43796 ac_cv_member_struct_msghdr_msg_control=yes
43798 echo "$as_me: failed program was:" >&5
43799 sed 's/^/| /' conftest.$ac_ext >&5
43801 cat >conftest.$ac_ext <<_ACEOF
43804 cat confdefs.h >>conftest.$ac_ext
43805 cat >>conftest.$ac_ext <<_ACEOF
43806 /* end confdefs.h. */
43807 $ac_includes_default
43808 #ifdef HAVE_SYS_SOCKET_H
43809 #include <sys/socket.h>
43815 static struct msghdr ac_aggr;
43816 if (sizeof ac_aggr.msg_control)
43822 rm -f conftest.$ac_objext
43823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43824 (eval $ac_compile) 2>conftest.er1
43826 grep -v '^ *+' conftest.er1 >conftest.err
43828 cat conftest.err >&5
43829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830 (exit $ac_status); } &&
43831 { ac_try='test -z "$ac_c_werror_flag"
43832 || test ! -s conftest.err'
43833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43834 (eval $ac_try) 2>&5
43836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43837 (exit $ac_status); }; } &&
43838 { ac_try='test -s conftest.$ac_objext'
43839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43840 (eval $ac_try) 2>&5
43842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843 (exit $ac_status); }; }; then
43844 ac_cv_member_struct_msghdr_msg_control=yes
43846 echo "$as_me: failed program was:" >&5
43847 sed 's/^/| /' conftest.$ac_ext >&5
43849 ac_cv_member_struct_msghdr_msg_control=no
43851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43856 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43857 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43859 cat >>confdefs.h <<_ACEOF
43860 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43867 LIBSRCS="$LIBSRCS getpeereid.c"
43869 if test "$ac_cv_func_snprintf" != yes ||
43870 test "$ac_cv_func_vsnprintf" != yes; then
43871 if test "$ac_cv_func_snprintf" != yes; then
43873 cat >>confdefs.h <<\_ACEOF
43874 #define snprintf ber_pvt_snprintf
43878 if test "$ac_cv_func_vsnprintf" != yes; then
43880 cat >>confdefs.h <<\_ACEOF
43881 #define vsnprintf ber_pvt_vsnprintf
43888 if test "$ol_enable_slapi" != no ; then
43890 for ac_header in ltdl.h
43892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43894 echo "$as_me:$LINENO: checking for $ac_header" >&5
43895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43897 echo $ECHO_N "(cached) $ECHO_C" >&6
43899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43902 # Is the header compilable?
43903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43905 cat >conftest.$ac_ext <<_ACEOF
43908 cat confdefs.h >>conftest.$ac_ext
43909 cat >>conftest.$ac_ext <<_ACEOF
43910 /* end confdefs.h. */
43911 $ac_includes_default
43912 #include <$ac_header>
43914 rm -f conftest.$ac_objext
43915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43916 (eval $ac_compile) 2>conftest.er1
43918 grep -v '^ *+' conftest.er1 >conftest.err
43920 cat conftest.err >&5
43921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922 (exit $ac_status); } &&
43923 { ac_try='test -z "$ac_c_werror_flag"
43924 || test ! -s conftest.err'
43925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926 (eval $ac_try) 2>&5
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); }; } &&
43930 { ac_try='test -s conftest.$ac_objext'
43931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932 (eval $ac_try) 2>&5
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); }; }; then
43936 ac_header_compiler=yes
43938 echo "$as_me: failed program was:" >&5
43939 sed 's/^/| /' conftest.$ac_ext >&5
43941 ac_header_compiler=no
43943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43945 echo "${ECHO_T}$ac_header_compiler" >&6
43947 # Is the header present?
43948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43950 cat >conftest.$ac_ext <<_ACEOF
43953 cat confdefs.h >>conftest.$ac_ext
43954 cat >>conftest.$ac_ext <<_ACEOF
43955 /* end confdefs.h. */
43956 #include <$ac_header>
43958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43961 grep -v '^ *+' conftest.er1 >conftest.err
43963 cat conftest.err >&5
43964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965 (exit $ac_status); } >/dev/null; then
43966 if test -s conftest.err; then
43967 ac_cpp_err=$ac_c_preproc_warn_flag
43968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43975 if test -z "$ac_cpp_err"; then
43976 ac_header_preproc=yes
43978 echo "$as_me: failed program was:" >&5
43979 sed 's/^/| /' conftest.$ac_ext >&5
43981 ac_header_preproc=no
43983 rm -f conftest.err conftest.$ac_ext
43984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43985 echo "${ECHO_T}$ac_header_preproc" >&6
43987 # So? What about this header?
43988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43994 ac_header_preproc=yes
43997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44011 ## --------------------------------------------- ##
44012 ## Report this to <http://www.openldap.org/its/> ##
44013 ## --------------------------------------------- ##
44016 sed "s/^/$as_me: WARNING: /" >&2
44019 echo "$as_me:$LINENO: checking for $ac_header" >&5
44020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44022 echo $ECHO_N "(cached) $ECHO_C" >&6
44024 eval "$as_ac_Header=\$ac_header_preproc"
44026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44031 cat >>confdefs.h <<_ACEOF
44032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44040 if test $ac_cv_header_ltdl_h != yes ; then
44041 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44042 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44043 { (exit 1); exit 1; }; }
44045 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44046 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44047 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44048 echo $ECHO_N "(cached) $ECHO_C" >&6
44050 ac_check_lib_save_LIBS=$LIBS
44051 LIBS="-lltdl $LIBS"
44052 cat >conftest.$ac_ext <<_ACEOF
44055 cat confdefs.h >>conftest.$ac_ext
44056 cat >>conftest.$ac_ext <<_ACEOF
44057 /* end confdefs.h. */
44059 /* Override any gcc2 internal prototype to avoid an error. */
44063 /* We use char because int might match the return type of a gcc2
44064 builtin and then its argument prototype would still apply. */
44074 rm -f conftest.$ac_objext conftest$ac_exeext
44075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44076 (eval $ac_link) 2>conftest.er1
44078 grep -v '^ *+' conftest.er1 >conftest.err
44080 cat conftest.err >&5
44081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44082 (exit $ac_status); } &&
44083 { ac_try='test -z "$ac_c_werror_flag"
44084 || test ! -s conftest.err'
44085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44086 (eval $ac_try) 2>&5
44088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089 (exit $ac_status); }; } &&
44090 { ac_try='test -s conftest$ac_exeext'
44091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44092 (eval $ac_try) 2>&5
44094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095 (exit $ac_status); }; }; then
44096 ac_cv_lib_ltdl_lt_dlinit=yes
44098 echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44101 ac_cv_lib_ltdl_lt_dlinit=no
44103 rm -f conftest.err conftest.$ac_objext \
44104 conftest$ac_exeext conftest.$ac_ext
44105 LIBS=$ac_check_lib_save_LIBS
44107 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44108 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44109 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44112 LIBSLAPI=libslapi.a
44113 LIBSLAPITOOLS=../libslapi.a
44115 cat >>confdefs.h <<\_ACEOF
44116 #define HAVE_LIBLTDL 1
44121 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44122 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44123 { (exit 1); exit 1; }; }
44128 cat >>confdefs.h <<\_ACEOF
44129 #define LDAP_SLAPI 1
44134 if test "$ol_enable_debug" != no ; then
44136 cat >>confdefs.h <<\_ACEOF
44137 #define LDAP_DEBUG 1
44141 if test "$ol_enable_syslog" = yes ; then
44143 cat >>confdefs.h <<\_ACEOF
44144 #define LDAP_SYSLOG 1
44148 if test "$ol_link_kbind" != no ; then
44150 cat >>confdefs.h <<\_ACEOF
44151 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44155 if test "$ol_enable_proctitle" != no ; then
44157 cat >>confdefs.h <<\_ACEOF
44158 #define LDAP_PROCTITLE 1
44162 if test "$ol_enable_referrals" != no ; then
44164 cat >>confdefs.h <<\_ACEOF
44165 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44169 if test "$ol_enable_local" != no; then
44171 cat >>confdefs.h <<\_ACEOF
44172 #define LDAP_PF_LOCAL 1
44176 if test "$ol_link_ipv6" != no; then
44178 cat >>confdefs.h <<\_ACEOF
44179 #define LDAP_PF_INET6 1
44183 if test "$ol_enable_cleartext" != no ; then
44185 cat >>confdefs.h <<\_ACEOF
44186 #define SLAPD_CLEARTEXT 1
44190 if test "$ol_enable_crypt" != no ; then
44192 cat >>confdefs.h <<\_ACEOF
44193 #define SLAPD_CRYPT 1
44197 if test "$ol_link_spasswd" != no ; then
44199 cat >>confdefs.h <<\_ACEOF
44200 #define SLAPD_SPASSWD 1
44204 if test "$ol_enable_multimaster" != no ; then
44206 cat >>confdefs.h <<\_ACEOF
44207 #define SLAPD_MULTIMASTER 1
44211 if test "$ol_enable_rlookups" != no ; then
44213 cat >>confdefs.h <<\_ACEOF
44214 #define SLAPD_RLOOKUPS 1
44218 if test "$ol_enable_aci" != no ; then
44220 cat >>confdefs.h <<\_ACEOF
44221 #define SLAPD_ACI_ENABLED 1
44224 WITH_ACI_ENABLED=yes
44226 WITH_ACI_ENABLED=no
44229 if test "$ol_link_modules" != no ; then
44231 cat >>confdefs.h <<\_ACEOF
44232 #define SLAPD_MODULES 1
44236 SLAPD_MODULES_LDFLAGS="-dlopen self"
44240 cat >>confdefs.h <<\_ACEOF
44241 #define SLAPD_MOD_STATIC 1
44245 cat >>confdefs.h <<\_ACEOF
44246 #define SLAPD_MOD_DYNAMIC 2
44250 if test "$ol_enable_bdb" != no ; then
44252 BUILD_BDB=$ol_enable_bdb
44253 if test "$ol_enable_bdb" = mod ; then
44254 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44255 MFLAG=SLAPD_MOD_DYNAMIC
44257 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44258 MFLAG=SLAPD_MOD_STATIC
44261 cat >>confdefs.h <<_ACEOF
44262 #define SLAPD_BDB $MFLAG
44267 if test "$ol_enable_dnssrv" != no ; then
44269 BUILD_DNSSRV=$ol_enable_dnssrv
44270 if test "$ol_enable_dnssrv" = mod ; then
44271 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44272 MFLAG=SLAPD_MOD_DYNAMIC
44274 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44275 MFLAG=SLAPD_MOD_STATIC
44278 cat >>confdefs.h <<_ACEOF
44279 #define SLAPD_DNSSRV $MFLAG
44284 if test "$ol_enable_hdb" != no ; then
44286 BUILD_HDB=$ol_enable_hdb
44287 if test "$ol_enable_hdb" = mod ; then
44288 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44289 MFLAG=SLAPD_MOD_DYNAMIC
44291 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44292 MFLAG=SLAPD_MOD_STATIC
44295 cat >>confdefs.h <<_ACEOF
44296 #define SLAPD_HDB $MFLAG
44301 if test "$ol_enable_ldap" != no ; then
44303 BUILD_LDAP=$ol_enable_ldap
44304 if test "$ol_enable_ldap" = mod ; then
44305 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44306 MFLAG=SLAPD_MOD_DYNAMIC
44308 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44309 MFLAG=SLAPD_MOD_STATIC
44312 cat >>confdefs.h <<_ACEOF
44313 #define SLAPD_LDAP $MFLAG
44318 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44320 BUILD_LDBM=$ol_enable_ldbm
44321 if test "$ol_enable_ldbm" = mod ; then
44322 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44323 MFLAG=SLAPD_MOD_DYNAMIC
44325 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44326 MFLAG=SLAPD_MOD_STATIC
44329 cat >>confdefs.h <<_ACEOF
44330 #define SLAPD_LDBM $MFLAG
44335 if test "$ol_enable_meta" != no ; then
44337 BUILD_META=$ol_enable_meta
44339 if test "$ol_enable_meta" = mod ; then
44340 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44341 MFLAG=SLAPD_MOD_DYNAMIC
44343 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44344 MFLAG=SLAPD_MOD_STATIC
44347 cat >>confdefs.h <<_ACEOF
44348 #define SLAPD_META $MFLAG
44353 if test "$ol_enable_monitor" != no ; then
44355 BUILD_MONITOR=$ol_enable_monitor
44356 if test "$ol_enable_monitor" = mod ; then
44357 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44358 MFLAG=SLAPD_MOD_DYNAMIC
44360 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44361 MFLAG=SLAPD_MOD_STATIC
44364 cat >>confdefs.h <<_ACEOF
44365 #define SLAPD_MONITOR $MFLAG
44370 if test "$ol_enable_null" != no ; then
44372 BUILD_NULL=$ol_enable_null
44373 if test "$ol_enable_null" = mod ; then
44374 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44375 MFLAG=SLAPD_MOD_DYNAMIC
44377 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44378 MFLAG=SLAPD_MOD_STATIC
44381 cat >>confdefs.h <<_ACEOF
44382 #define SLAPD_NULL $MFLAG
44387 if test "$ol_enable_passwd" != no ; then
44389 BUILD_PASSWD=$ol_enable_passwd
44390 if test "$ol_enable_passwd" = mod ; then
44391 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44392 MFLAG=SLAPD_MOD_DYNAMIC
44394 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44395 MFLAG=SLAPD_MOD_STATIC
44398 cat >>confdefs.h <<_ACEOF
44399 #define SLAPD_PASSWD $MFLAG
44404 if test "$ol_link_perl" != no ; then
44406 BUILD_PERL=$ol_enable_perl
44407 if test "$ol_enable_perl" = mod ; then
44408 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44409 MFLAG=SLAPD_MOD_DYNAMIC
44411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44412 MFLAG=SLAPD_MOD_STATIC
44415 cat >>confdefs.h <<_ACEOF
44416 #define SLAPD_PERL $MFLAG
44421 if test "$ol_enable_relay" != no ; then
44423 BUILD_RELAY=$ol_enable_relay
44424 if test "$ol_enable_relay" = mod ; then
44425 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44426 MFLAG=SLAPD_MOD_DYNAMIC
44428 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44429 MFLAG=SLAPD_MOD_STATIC
44432 cat >>confdefs.h <<_ACEOF
44433 #define SLAPD_RELAY $MFLAG
44438 if test "$ol_enable_shell" != no ; then
44439 if test "$ol_link_threads" != no ; then
44440 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44441 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44444 BUILD_SHELL=$ol_enable_shell
44445 if test "$ol_enable_shell" = mod ; then
44446 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44447 MFLAG=SLAPD_MOD_DYNAMIC
44449 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44450 MFLAG=SLAPD_MOD_STATIC
44453 cat >>confdefs.h <<_ACEOF
44454 #define SLAPD_SHELL $MFLAG
44459 if test "$ol_link_sql" != no ; then
44461 BUILD_SQL=$ol_enable_sql
44462 if test "$ol_enable_sql" = mod; then
44463 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44464 MFLAG=SLAPD_MOD_DYNAMIC
44466 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44467 MFLAG=SLAPD_MOD_STATIC
44470 cat >>confdefs.h <<_ACEOF
44471 #define SLAPD_SQL $MFLAG
44476 if test "$ol_enable_accesslog" != no ; then
44477 BUILD_ACCESSLOG=$ol_enable_accesslog
44478 if test "$ol_enable_accesslog" = mod ; then
44479 MFLAG=SLAPD_MOD_DYNAMIC
44480 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44482 MFLAG=SLAPD_MOD_STATIC
44483 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44486 cat >>confdefs.h <<_ACEOF
44487 #define SLAPD_OVER_ACCESSLOG $MFLAG
44492 if test "$ol_enable_denyop" != no ; then
44493 BUILD_DENYOP=$ol_enable_denyop
44494 if test "$ol_enable_denyop" = mod ; then
44495 MFLAG=SLAPD_MOD_DYNAMIC
44496 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44498 MFLAG=SLAPD_MOD_STATIC
44499 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44502 cat >>confdefs.h <<_ACEOF
44503 #define SLAPD_OVER_DENYOP $MFLAG
44508 if test "$ol_enable_dyngroup" != no ; then
44509 BUILD_DYNGROUP=$ol_enable_dyngroup
44510 if test "$ol_enable_dyngroup" = mod ; then
44511 MFLAG=SLAPD_MOD_DYNAMIC
44512 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44514 MFLAG=SLAPD_MOD_STATIC
44515 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44518 cat >>confdefs.h <<_ACEOF
44519 #define SLAPD_OVER_DYNGROUP $MFLAG
44524 if test "$ol_enable_dynlist" != no ; then
44525 BUILD_DYNLIST=$ol_enable_dynlist
44526 if test "$ol_enable_dynlist" = mod ; then
44527 MFLAG=SLAPD_MOD_DYNAMIC
44528 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44530 MFLAG=SLAPD_MOD_STATIC
44531 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44534 cat >>confdefs.h <<_ACEOF
44535 #define SLAPD_OVER_DYNLIST $MFLAG
44540 if test "$ol_enable_lastmod" != no ; then
44541 BUILD_LASTMOD=$ol_enable_lastmod
44542 if test "$ol_enable_lastmod" = mod ; then
44543 MFLAG=SLAPD_MOD_DYNAMIC
44544 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44546 MFLAG=SLAPD_MOD_STATIC
44547 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44550 cat >>confdefs.h <<_ACEOF
44551 #define SLAPD_OVER_LASTMOD $MFLAG
44556 if test "$ol_enable_ppolicy" != no ; then
44557 BUILD_PPOLICY=$ol_enable_ppolicy
44558 if test "$ol_enable_ppolicy" = mod ; then
44559 MFLAG=SLAPD_MOD_DYNAMIC
44560 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44562 MFLAG=SLAPD_MOD_STATIC
44563 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44566 cat >>confdefs.h <<_ACEOF
44567 #define SLAPD_OVER_PPOLICY $MFLAG
44572 if test "$ol_enable_proxycache" != no ; then
44573 BUILD_PROXYCACHE=$ol_enable_proxycache
44574 if test "$ol_enable_proxycache" = mod ; then
44575 MFLAG=SLAPD_MOD_DYNAMIC
44576 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44578 MFLAG=SLAPD_MOD_STATIC
44579 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44582 cat >>confdefs.h <<_ACEOF
44583 #define SLAPD_OVER_PROXYCACHE $MFLAG
44588 if test "$ol_enable_refint" != no ; then
44589 BUILD_REFINT=$ol_enable_refint
44590 if test "$ol_enable_refint" = mod ; then
44591 MFLAG=SLAPD_MOD_DYNAMIC
44592 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44594 MFLAG=SLAPD_MOD_STATIC
44595 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44598 cat >>confdefs.h <<_ACEOF
44599 #define SLAPD_OVER_REFINT $MFLAG
44604 if test "$ol_enable_retcode" != no ; then
44605 BUILD_RETCODE=$ol_enable_retcode
44606 if test "$ol_enable_retcode" = mod ; then
44607 MFLAG=SLAPD_MOD_DYNAMIC
44608 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44610 MFLAG=SLAPD_MOD_STATIC
44611 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44614 cat >>confdefs.h <<_ACEOF
44615 #define SLAPD_OVER_RETCODE $MFLAG
44620 if test "$ol_enable_rwm" != no ; then
44622 BUILD_RWM=$ol_enable_rwm
44623 if test "$ol_enable_rwm" = mod ; then
44624 MFLAG=SLAPD_MOD_DYNAMIC
44625 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44627 MFLAG=SLAPD_MOD_STATIC
44628 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44631 cat >>confdefs.h <<_ACEOF
44632 #define SLAPD_OVER_RWM $MFLAG
44637 if test "$ol_enable_syncprov" != no ; then
44638 BUILD_SYNCPROV=$ol_enable_syncprov
44639 if test "$ol_enable_syncprov" = mod ; then
44640 MFLAG=SLAPD_MOD_DYNAMIC
44641 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44643 MFLAG=SLAPD_MOD_STATIC
44644 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44647 cat >>confdefs.h <<_ACEOF
44648 #define SLAPD_OVER_SYNCPROV $MFLAG
44653 if test "$ol_enable_translucent" != no ; then
44654 BUILD_TRANSLUCENT=$ol_enable_translucent
44655 if test "$ol_enable_translucent" = mod ; then
44656 MFLAG=SLAPD_MOD_DYNAMIC
44657 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44659 MFLAG=SLAPD_MOD_STATIC
44660 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44663 cat >>confdefs.h <<_ACEOF
44664 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44669 if test "$ol_enable_unique" != no ; then
44670 BUILD_UNIQUE=$ol_enable_unique
44671 if test "$ol_enable_unique" = mod ; then
44672 MFLAG=SLAPD_MOD_DYNAMIC
44673 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44675 MFLAG=SLAPD_MOD_STATIC
44676 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44679 cat >>confdefs.h <<_ACEOF
44680 #define SLAPD_OVER_UNIQUE $MFLAG
44685 if test "$ol_enable_valsort" != no ; then
44686 BUILD_VALSORT=$ol_enable_valsort
44687 if test "$ol_enable_valsort" = mod ; then
44688 MFLAG=SLAPD_MOD_DYNAMIC
44689 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44691 MFLAG=SLAPD_MOD_STATIC
44692 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44695 cat >>confdefs.h <<_ACEOF
44696 #define SLAPD_OVER_VALSORT $MFLAG
44701 if test "$ol_enable_slurpd" != no &&
44702 test "$ol_link_threads" != no &&
44703 test $BUILD_SLAPD = yes ; then
44707 if test "$ol_enable_rewrite" != no ; then
44709 cat >>confdefs.h <<\_ACEOF
44710 #define ENABLE_REWRITE 1
44716 if test "$ol_enable_slapi" != no ; then
44718 cat >>confdefs.h <<\_ACEOF
44719 #define ENABLE_SLAPI 1
44723 SLAPD_SLAPI_DEPEND=libslapi.a
44728 if test "$ac_cv_mingw32" = yes ; then
44730 SLAPD_MODULES_LDFLAGS=
44815 # Check whether --with-xxinstall or --without-xxinstall was given.
44816 if test "${with_xxinstall+set}" = set; then
44817 withval="$with_xxinstall"
44822 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"
44825 ac_config_commands="$ac_config_commands default"
44829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44830 # Let make expand exec_prefix.
44831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44835 # trailing colons and then remove the whole line if VPATH becomes empty
44836 # (actually we leave an empty line to preserve line numbers).
44837 if test "x$srcdir" = x.; then
44838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44839 s/:*\$(srcdir):*/:/;
44840 s/:*\${srcdir}:*/:/;
44842 s/^\([^=]*=[ ]*\):*/\1/;
44848 DEFS=-DHAVE_CONFIG_H
44852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44853 # 1. Remove the extension, and $U if already installed.
44854 ac_i=`echo "$ac_i" |
44855 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44857 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44858 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44860 LIBOBJS=$ac_libobjs
44862 LTLIBOBJS=$ac_ltlibobjs
44865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44866 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44867 Usually this means the macro was only invoked conditionally." >&5
44868 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44869 Usually this means the macro was only invoked conditionally." >&2;}
44870 { (exit 1); exit 1; }; }
44872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44873 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44874 Usually this means the macro was only invoked conditionally." >&5
44875 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44876 Usually this means the macro was only invoked conditionally." >&2;}
44877 { (exit 1); exit 1; }; }
44879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44880 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44881 Usually this means the macro was only invoked conditionally." >&5
44882 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44883 Usually this means the macro was only invoked conditionally." >&2;}
44884 { (exit 1); exit 1; }; }
44887 : ${CONFIG_STATUS=./config.status}
44888 ac_clean_files_save=$ac_clean_files
44889 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44890 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44891 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44892 cat >$CONFIG_STATUS <<_ACEOF
44894 # Generated by $as_me.
44895 # Run this file to recreate the current configuration.
44896 # Compiler output produced by configure, useful for debugging
44897 # configure, is in config.log if it exists.
44900 ac_cs_recheck=false
44902 SHELL=\${CONFIG_SHELL-$SHELL}
44905 cat >>$CONFIG_STATUS <<\_ACEOF
44906 ## --------------------- ##
44907 ## M4sh Initialization. ##
44908 ## --------------------- ##
44910 # Be Bourne compatible
44911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44914 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44915 # is contrary to our usage. Disable this feature.
44916 alias -g '${1+"$@"}'='"$@"'
44917 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44920 DUALCASE=1; export DUALCASE # for MKS sh
44922 # Support unset when possible.
44923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44930 # Work around bugs in pre-3.0 UWIN ksh.
44931 $as_unset ENV MAIL MAILPATH
44938 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44939 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44940 LC_TELEPHONE LC_TIME
44942 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44943 eval $as_var=C; export $as_var
44949 # Required to use basename.
44950 if expr a : '\(a\)' >/dev/null 2>&1; then
44956 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44957 as_basename=basename
44963 # Name of the executable.
44964 as_me=`$as_basename "$0" ||
44965 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44966 X"$0" : 'X\(//\)$' \| \
44967 X"$0" : 'X\(/\)$' \| \
44968 . : '\(.\)' 2>/dev/null ||
44970 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44971 /^X\/\(\/\/\)$/{ s//\1/; q; }
44972 /^X\/\(\/\).*/{ s//\1/; q; }
44976 # PATH needs CR, and LINENO needs CR and PATH.
44977 # Avoid depending upon Character Ranges.
44978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44981 as_cr_digits='0123456789'
44982 as_cr_alnum=$as_cr_Letters$as_cr_digits
44984 # The user is always right.
44985 if test "${PATH_SEPARATOR+set}" != set; then
44986 echo "#! /bin/sh" >conf$$.sh
44987 echo "exit 0" >>conf$$.sh
44989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44998 as_lineno_1=$LINENO
44999 as_lineno_2=$LINENO
45000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45001 test "x$as_lineno_1" != "x$as_lineno_2" &&
45002 test "x$as_lineno_3" = "x$as_lineno_2" || {
45003 # Find who we are. Look in the path if we contain no path at all
45006 *[\\/]* ) as_myself=$0 ;;
45007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45008 for as_dir in $PATH
45011 test -z "$as_dir" && as_dir=.
45012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45017 # We did not find ourselves, most probably we were run as `sh COMMAND'
45018 # in which case we are not to be found in the path.
45019 if test "x$as_myself" = x; then
45022 if test ! -f "$as_myself"; then
45023 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45024 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45025 { (exit 1); exit 1; }; }
45027 case $CONFIG_SHELL in
45029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45030 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45033 test -z "$as_dir" && as_dir=.
45034 for as_base in sh bash ksh sh5; do
45037 if ("$as_dir/$as_base" -c '
45038 as_lineno_1=$LINENO
45039 as_lineno_2=$LINENO
45040 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45041 test "x$as_lineno_1" != "x$as_lineno_2" &&
45042 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45043 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45044 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45045 CONFIG_SHELL=$as_dir/$as_base
45046 export CONFIG_SHELL
45047 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45056 # uniformly replaced by the line number. The first 'sed' inserts a
45057 # line-number line before each line; the second 'sed' does the real
45058 # work. The second script uses 'N' to pair each line-number line
45059 # with the numbered line, and appends trailing '-' during
45060 # substitution so that $LINENO is not a special case at line end.
45061 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45062 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45063 sed '=' <$as_myself |
45068 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45071 s,^['$as_cr_digits']*\n,,
45072 ' >$as_me.lineno &&
45073 chmod +x $as_me.lineno ||
45074 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45075 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45076 { (exit 1); exit 1; }; }
45078 # Don't try to exec as it changes $[0], causing all sort of problems
45079 # (the dirname of $[0] is not the place where we might find the
45080 # original and so on. Autoconf is especially sensible to this).
45082 # Exit status is that of the last command.
45087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45088 *c*,-n*) ECHO_N= ECHO_C='
45090 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45091 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45094 if expr a : '\(a\)' >/dev/null 2>&1; then
45100 rm -f conf$$ conf$$.exe conf$$.file
45102 if ln -s conf$$.file conf$$ 2>/dev/null; then
45103 # We could just check for DJGPP; but this test a) works b) is more generic
45104 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45105 if test -f conf$$.exe; then
45106 # Don't use ln at all; we don't have any links
45111 elif ln conf$$.file conf$$ 2>/dev/null; then
45116 rm -f conf$$ conf$$.exe conf$$.file
45118 if mkdir -p . 2>/dev/null; then
45121 test -d ./-p && rmdir ./-p
45125 as_executable_p="test -f"
45127 # Sed expression to map a string onto a valid CPP name.
45128 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45130 # Sed expression to map a string onto a valid variable name.
45131 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45135 # We need space, tab and new line, in precisely that order.
45145 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45146 # report actual input values of CONFIG_FILES etc. instead of their
45147 # values after options handling. Logging --version etc. is OK.
45151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45152 ## Running $as_me. ##
45157 This file was extended by $as_me, which was
45158 generated by GNU Autoconf 2.59. Invocation command line was
45160 CONFIG_FILES = $CONFIG_FILES
45161 CONFIG_HEADERS = $CONFIG_HEADERS
45162 CONFIG_LINKS = $CONFIG_LINKS
45163 CONFIG_COMMANDS = $CONFIG_COMMANDS
45167 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45171 # Files that config.status was made for.
45172 if test -n "$ac_config_files"; then
45173 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45176 if test -n "$ac_config_headers"; then
45177 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45180 if test -n "$ac_config_links"; then
45181 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45184 if test -n "$ac_config_commands"; then
45185 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45188 cat >>$CONFIG_STATUS <<\_ACEOF
45191 \`$as_me' instantiates files from templates according to the
45192 current configuration.
45194 Usage: $0 [OPTIONS] [FILE]...
45196 -h, --help print this help, then exit
45197 -V, --version print version number, then exit
45198 -q, --quiet do not print progress messages
45199 -d, --debug don't remove temporary files
45200 --recheck update $as_me by reconfiguring in the same conditions
45201 --file=FILE[:TEMPLATE]
45202 instantiate the configuration file FILE
45203 --header=FILE[:TEMPLATE]
45204 instantiate the configuration header FILE
45206 Configuration files:
45209 Configuration headers:
45212 Configuration commands:
45215 Report bugs to <bug-autoconf@gnu.org>."
45218 cat >>$CONFIG_STATUS <<_ACEOF
45221 configured by $0, generated by GNU Autoconf 2.59,
45222 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45224 Copyright (C) 2003 Free Software Foundation, Inc.
45225 This config.status script is free software; the Free Software Foundation
45226 gives unlimited permission to copy, distribute and modify it."
45231 cat >>$CONFIG_STATUS <<\_ACEOF
45232 # If no file are specified by the user, then we need to provide default
45233 # value. By we need to know if files were specified by the user.
45239 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45240 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45248 *) # This is not an option, so the user has probably given explicit
45251 ac_need_defaults=false;;
45255 # Handling of the options.
45257 cat >>$CONFIG_STATUS <<\_ACEOF
45258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45260 --version | --vers* | -V )
45261 echo "$ac_cs_version"; exit 0 ;;
45263 # Conflict between --help and --header
45264 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45265 Try \`$0 --help' for more information." >&5
45266 echo "$as_me: error: ambiguous option: $1
45267 Try \`$0 --help' for more information." >&2;}
45268 { (exit 1); exit 1; }; };;
45269 --help | --hel | -h )
45270 echo "$ac_cs_usage"; exit 0 ;;
45271 --debug | --d* | -d )
45273 --file | --fil | --fi | --f )
45275 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45276 ac_need_defaults=false;;
45277 --header | --heade | --head | --hea )
45279 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45280 ac_need_defaults=false;;
45281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45285 # This is an error.
45286 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45287 Try \`$0 --help' for more information." >&5
45288 echo "$as_me: error: unrecognized option: $1
45289 Try \`$0 --help' for more information." >&2;}
45290 { (exit 1); exit 1; }; } ;;
45292 *) ac_config_targets="$ac_config_targets $1" ;;
45298 ac_configure_extra_args=
45300 if $ac_cs_silent; then
45302 ac_configure_extra_args="$ac_configure_extra_args --silent"
45306 cat >>$CONFIG_STATUS <<_ACEOF
45307 if \$ac_cs_recheck; then
45308 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45309 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45314 cat >>$CONFIG_STATUS <<_ACEOF
45316 # INIT-COMMANDS section.
45319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45321 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45322 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45329 cat >>$CONFIG_STATUS <<\_ACEOF
45330 for ac_config_target in $ac_config_targets
45332 case "$ac_config_target" in
45333 # Handling of arguments.
45334 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45335 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45336 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45337 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45338 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45339 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45340 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45341 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45342 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45343 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45344 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45345 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45346 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45347 "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" ;;
45348 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45349 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45350 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45351 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45352 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45353 "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" ;;
45354 "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" ;;
45355 "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" ;;
45356 "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" ;;
45357 "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" ;;
45358 "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" ;;
45359 "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" ;;
45360 "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" ;;
45361 "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" ;;
45362 "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" ;;
45363 "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" ;;
45364 "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" ;;
45365 "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" ;;
45366 "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" ;;
45367 "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" ;;
45368 "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" ;;
45369 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45370 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45371 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45372 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45373 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45374 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45375 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45376 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45377 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45378 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45379 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45380 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45381 { (exit 1); exit 1; }; };;
45385 # If the user did not use the arguments to specify the items to instantiate,
45386 # then the envvar interface is used. Set only those that are not.
45387 # We use the long form for the default assignment because of an extremely
45388 # bizarre bug on SunOS 4.1.3.
45389 if $ac_need_defaults; then
45390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45395 # Have a temporary directory for convenience. Make it in the build tree
45396 # simply because there is no reason to put it here, and in addition,
45397 # creating and moving files from /tmp can sometimes cause problems.
45398 # Create a temporary directory, and hook for its removal unless debugging.
45401 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45402 trap '{ (exit 1); exit 1; }' 1 2 13 15
45405 # Create a (secure) tmp directory for tmp files.
45408 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45409 test -n "$tmp" && test -d "$tmp"
45412 tmp=./confstat$$-$RANDOM
45413 (umask 077 && mkdir $tmp)
45416 echo "$me: cannot create a temporary directory in ." >&2
45417 { (exit 1); exit 1; }
45422 cat >>$CONFIG_STATUS <<_ACEOF
45425 # CONFIG_FILES section.
45428 # No need to generate the scripts if there are no CONFIG_FILES.
45429 # This happens for instance when ./config.status config.h
45430 if test -n "\$CONFIG_FILES"; then
45431 # Protect against being on the right side of a sed subst in config.status.
45432 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45433 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45434 s,@SHELL@,$SHELL,;t t
45435 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45436 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45437 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45438 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45439 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45440 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45441 s,@exec_prefix@,$exec_prefix,;t t
45442 s,@prefix@,$prefix,;t t
45443 s,@program_transform_name@,$program_transform_name,;t t
45444 s,@bindir@,$bindir,;t t
45445 s,@sbindir@,$sbindir,;t t
45446 s,@libexecdir@,$libexecdir,;t t
45447 s,@datadir@,$datadir,;t t
45448 s,@sysconfdir@,$sysconfdir,;t t
45449 s,@sharedstatedir@,$sharedstatedir,;t t
45450 s,@localstatedir@,$localstatedir,;t t
45451 s,@libdir@,$libdir,;t t
45452 s,@includedir@,$includedir,;t t
45453 s,@oldincludedir@,$oldincludedir,;t t
45454 s,@infodir@,$infodir,;t t
45455 s,@mandir@,$mandir,;t t
45456 s,@build_alias@,$build_alias,;t t
45457 s,@host_alias@,$host_alias,;t t
45458 s,@target_alias@,$target_alias,;t t
45459 s,@DEFS@,$DEFS,;t t
45460 s,@ECHO_C@,$ECHO_C,;t t
45461 s,@ECHO_N@,$ECHO_N,;t t
45462 s,@ECHO_T@,$ECHO_T,;t t
45463 s,@LIBS@,$LIBS,;t t
45464 s,@build@,$build,;t t
45465 s,@build_cpu@,$build_cpu,;t t
45466 s,@build_vendor@,$build_vendor,;t t
45467 s,@build_os@,$build_os,;t t
45468 s,@host@,$host,;t t
45469 s,@host_cpu@,$host_cpu,;t t
45470 s,@host_vendor@,$host_vendor,;t t
45471 s,@host_os@,$host_os,;t t
45472 s,@target@,$target,;t t
45473 s,@target_cpu@,$target_cpu,;t t
45474 s,@target_vendor@,$target_vendor,;t t
45475 s,@target_os@,$target_os,;t t
45476 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45477 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45478 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45479 s,@CYGPATH_W@,$CYGPATH_W,;t t
45480 s,@PACKAGE@,$PACKAGE,;t t
45481 s,@VERSION@,$VERSION,;t t
45482 s,@ACLOCAL@,$ACLOCAL,;t t
45483 s,@AUTOCONF@,$AUTOCONF,;t t
45484 s,@AUTOMAKE@,$AUTOMAKE,;t t
45485 s,@AUTOHEADER@,$AUTOHEADER,;t t
45486 s,@MAKEINFO@,$MAKEINFO,;t t
45487 s,@install_sh@,$install_sh,;t t
45488 s,@STRIP@,$STRIP,;t t
45489 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45490 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45491 s,@mkdir_p@,$mkdir_p,;t t
45493 s,@SET_MAKE@,$SET_MAKE,;t t
45494 s,@am__leading_dot@,$am__leading_dot,;t t
45495 s,@AMTAR@,$AMTAR,;t t
45496 s,@am__tar@,$am__tar,;t t
45497 s,@am__untar@,$am__untar,;t t
45498 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45499 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45500 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45501 s,@top_builddir@,$top_builddir,;t t
45502 s,@ldap_subdir@,$ldap_subdir,;t t
45505 s,@CFLAGS@,$CFLAGS,;t t
45506 s,@LDFLAGS@,$LDFLAGS,;t t
45507 s,@CPPFLAGS@,$CPPFLAGS,;t t
45508 s,@ac_ct_CC@,$ac_ct_CC,;t t
45509 s,@EXEEXT@,$EXEEXT,;t t
45510 s,@OBJEXT@,$OBJEXT,;t t
45511 s,@DEPDIR@,$DEPDIR,;t t
45512 s,@am__include@,$am__include,;t t
45513 s,@am__quote@,$am__quote,;t t
45514 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45515 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45516 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45517 s,@CCDEPMODE@,$CCDEPMODE,;t t
45518 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45519 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45520 s,@EGREP@,$EGREP,;t t
45521 s,@LN_S@,$LN_S,;t t
45522 s,@ECHO@,$ECHO,;t t
45523 s,@ac_ct_AR@,$ac_ct_AR,;t t
45524 s,@RANLIB@,$RANLIB,;t t
45525 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45526 s,@DLLTOOL@,$DLLTOOL,;t t
45527 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45529 s,@ac_ct_AS@,$ac_ct_AS,;t t
45530 s,@OBJDUMP@,$OBJDUMP,;t t
45531 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45533 s,@LIBTOOL@,$LIBTOOL,;t t
45534 s,@PERLBIN@,$PERLBIN,;t t
45535 s,@OL_MKDEP@,$OL_MKDEP,;t t
45536 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45537 s,@LTSTATIC@,$LTSTATIC,;t t
45538 s,@LIBOBJS@,$LIBOBJS,;t t
45539 s,@LIBSRCS@,$LIBSRCS,;t t
45540 s,@PLAT@,$PLAT,;t t
45541 s,@WITH_SASL@,$WITH_SASL,;t t
45542 s,@WITH_TLS@,$WITH_TLS,;t t
45543 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45544 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45545 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45546 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45547 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45548 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45549 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45550 s,@BUILD_BDB@,$BUILD_BDB,;t t
45551 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45552 s,@BUILD_HDB@,$BUILD_HDB,;t t
45553 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45554 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45555 s,@BUILD_META@,$BUILD_META,;t t
45556 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45557 s,@BUILD_NULL@,$BUILD_NULL,;t t
45558 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45559 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45560 s,@BUILD_PERL@,$BUILD_PERL,;t t
45561 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45562 s,@BUILD_SQL@,$BUILD_SQL,;t t
45563 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45564 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45565 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45566 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45567 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45568 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45569 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45570 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45571 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45572 s,@BUILD_RWM@,$BUILD_RWM,;t t
45573 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45574 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45575 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45576 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45577 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45578 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45579 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45580 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45581 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45582 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45583 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45584 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45585 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45586 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45587 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45588 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45589 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45590 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45591 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45592 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45593 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45594 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45595 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45596 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45597 s,@SASL_LIBS@,$SASL_LIBS,;t t
45598 s,@TLS_LIBS@,$TLS_LIBS,;t t
45599 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45600 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45601 s,@LIBSLAPI@,$LIBSLAPI,;t t
45602 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45603 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45604 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45605 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45606 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45607 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45608 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45614 cat >>$CONFIG_STATUS <<\_ACEOF
45615 # Split the substitutions into bite-sized pieces for seds with
45616 # small command number limits, like on Digital OSF/1 and HP-UX.
45617 ac_max_sed_lines=48
45618 ac_sed_frag=1 # Number of current file.
45619 ac_beg=1 # First line for current file.
45620 ac_end=$ac_max_sed_lines # Line after last line for current file.
45623 while $ac_more_lines; do
45624 if test $ac_beg -gt 1; then
45625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45627 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45629 if test ! -s $tmp/subs.frag; then
45630 ac_more_lines=false
45632 # The purpose of the label and of the branching condition is to
45633 # speed up the sed processing (if there are no `@' at all, there
45634 # is no need to browse any of the substitutions).
45635 # These are the two extra sed commands mentioned above.
45637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45638 if test -z "$ac_sed_cmds"; then
45639 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45641 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45643 ac_sed_frag=`expr $ac_sed_frag + 1`
45645 ac_end=`expr $ac_end + $ac_max_sed_lines`
45648 if test -z "$ac_sed_cmds"; then
45651 fi # test -n "$CONFIG_FILES"
45654 cat >>$CONFIG_STATUS <<\_ACEOF
45655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45658 - | *:- | *:-:* ) # input from stdin
45660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45664 * ) ac_file_in=$ac_file.in ;;
45667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45670 X"$ac_file" : 'X\(//\)[^/]' \| \
45671 X"$ac_file" : 'X\(//\)$' \| \
45672 X"$ac_file" : 'X\(/\)' \| \
45673 . : '\(.\)' 2>/dev/null ||
45675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45677 /^X\(\/\/\)$/{ s//\1/; q; }
45678 /^X\(\/\).*/{ s//\1/; q; }
45680 { if $as_mkdir_p; then
45685 while test ! -d "$as_dir"; do
45686 as_dirs="$as_dir $as_dirs"
45687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45689 X"$as_dir" : 'X\(//\)[^/]' \| \
45690 X"$as_dir" : 'X\(//\)$' \| \
45691 X"$as_dir" : 'X\(/\)' \| \
45692 . : '\(.\)' 2>/dev/null ||
45694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45696 /^X\(\/\/\)$/{ s//\1/; q; }
45697 /^X\(\/\).*/{ s//\1/; q; }
45700 test ! -n "$as_dirs" || mkdir $as_dirs
45701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45703 { (exit 1); exit 1; }; }; }
45707 if test "$ac_dir" != .; then
45708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45709 # A "../" for each directory in $ac_dir_suffix.
45710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45712 ac_dir_suffix= ac_top_builddir=
45716 .) # No --srcdir option. We are building in place.
45718 if test -z "$ac_top_builddir"; then
45721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45723 [\\/]* | ?:[\\/]* ) # Absolute path.
45724 ac_srcdir=$srcdir$ac_dir_suffix;
45725 ac_top_srcdir=$srcdir ;;
45726 *) # Relative path.
45727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45731 # Do not use `cd foo && pwd` to compute absolute paths, because
45732 # the directories may not exist.
45734 .) ac_abs_builddir="$ac_dir";;
45737 .) ac_abs_builddir=`pwd`;;
45738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45739 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45742 case $ac_abs_builddir in
45743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45745 case ${ac_top_builddir}. in
45746 .) ac_abs_top_builddir=$ac_abs_builddir;;
45747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45751 case $ac_abs_builddir in
45752 .) ac_abs_srcdir=$ac_srcdir;;
45755 .) ac_abs_srcdir=$ac_abs_builddir;;
45756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45760 case $ac_abs_builddir in
45761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45763 case $ac_top_srcdir in
45764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45773 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45776 if test x"$ac_file" != x-; then
45777 { echo "$as_me:$LINENO: creating $ac_file" >&5
45778 echo "$as_me: creating $ac_file" >&6;}
45781 # Let's still pretend it is `configure' which instantiates (i.e., don't
45782 # use $as_me), people would be surprised to read:
45783 # /* config.h. Generated by config.status. */
45784 if test x"$ac_file" = x-; then
45787 configure_input="$ac_file. "
45789 configure_input=$configure_input"Generated from `echo $ac_file_in |
45790 sed 's,.*/,,'` by configure."
45792 # First look for the input files in the build tree, otherwise in the
45794 ac_file_inputs=`IFS=:
45795 for f in $ac_file_in; do
45797 -) echo $tmp/stdin ;;
45799 # Absolute (can't be DOS-style, as IFS=:)
45800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45801 echo "$as_me: error: cannot find input file: $f" >&2;}
45802 { (exit 1); exit 1; }; }
45805 if test -f "$f"; then
45808 elif test -f "$srcdir/$f"; then
45813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45814 echo "$as_me: error: cannot find input file: $f" >&2;}
45815 { (exit 1); exit 1; }; }
45818 done` || { (exit 1); exit 1; }
45820 cat >>$CONFIG_STATUS <<_ACEOF
45824 cat >>$CONFIG_STATUS <<\_ACEOF
45826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45827 s,@configure_input@,$configure_input,;t t
45828 s,@srcdir@,$ac_srcdir,;t t
45829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45830 s,@top_srcdir@,$ac_top_srcdir,;t t
45831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45832 s,@builddir@,$ac_builddir,;t t
45833 s,@abs_builddir@,$ac_abs_builddir,;t t
45834 s,@top_builddir@,$ac_top_builddir,;t t
45835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45836 s,@INSTALL@,$ac_INSTALL,;t t
45837 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45839 if test x"$ac_file" != x-; then
45840 mv $tmp/out $ac_file
45848 cat >>$CONFIG_STATUS <<\_ACEOF
45851 # CONFIG_HEADER section.
45854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45857 # ac_d sets the value in "#define NAME VALUE" lines.
45858 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45859 ac_dB='[ ].*$,\1#\2'
45862 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45863 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45864 ac_uB='$,\1#\2define\3'
45868 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45871 - | *:- | *:-:* ) # input from stdin
45873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45877 * ) ac_file_in=$ac_file.in ;;
45880 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45881 echo "$as_me: creating $ac_file" >&6;}
45883 # First look for the input files in the build tree, otherwise in the
45885 ac_file_inputs=`IFS=:
45886 for f in $ac_file_in; do
45888 -) echo $tmp/stdin ;;
45890 # Absolute (can't be DOS-style, as IFS=:)
45891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45892 echo "$as_me: error: cannot find input file: $f" >&2;}
45893 { (exit 1); exit 1; }; }
45894 # Do quote $f, to prevent DOS paths from being IFS'd.
45897 if test -f "$f"; then
45900 elif test -f "$srcdir/$f"; then
45905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45906 echo "$as_me: error: cannot find input file: $f" >&2;}
45907 { (exit 1); exit 1; }; }
45910 done` || { (exit 1); exit 1; }
45911 # Remove the trailing spaces.
45912 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45916 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45917 # `conftest.undefs', that substitutes the proper values into
45918 # config.h.in to produce config.h. The first handles `#define'
45919 # templates, and the second `#undef' templates.
45920 # And first: Protect against being on the right side of a sed subst in
45921 # config.status. Protect against being in an unquoted here document
45922 # in config.status.
45923 rm -f conftest.defines conftest.undefs
45924 # Using a here document instead of a string reduces the quoting nightmare.
45925 # Putting comments in sed scripts is not portable.
45927 # `end' is used to avoid that the second main sed command (meant for
45928 # 0-ary CPP macros) applies to n-ary macro definitions.
45929 # See the Autoconf documentation for `clear'.
45930 cat >confdef2sed.sed <<\_ACEOF
45935 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45937 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45940 # If some macros were called several times there might be several times
45941 # the same #defines, which is useless. Nevertheless, we may not want to
45942 # sort them, since we want the *last* AC-DEFINE to be honored.
45943 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45944 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45945 rm -f confdef2sed.sed
45947 # This sed command replaces #undef with comments. This is necessary, for
45948 # example, in the case of _POSIX_SOURCE, which is predefined and required
45949 # on some systems where configure will not decide to define it.
45950 cat >>conftest.undefs <<\_ACEOF
45951 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45954 # Break up conftest.defines because some shells have a limit on the size
45955 # of here documents, and old seds have small limits too (100 cmds).
45956 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45957 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45958 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45959 echo ' :' >>$CONFIG_STATUS
45960 rm -f conftest.tail
45961 while grep . conftest.defines >/dev/null
45963 # Write a limited-size here document to $tmp/defines.sed.
45964 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45965 # Speed up: don't consider the non `#define' lines.
45966 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45967 # Work around the forget-to-reset-the-flag bug.
45968 echo 't clr' >>$CONFIG_STATUS
45969 echo ': clr' >>$CONFIG_STATUS
45970 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45972 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45974 mv $tmp/out $tmp/in
45976 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45977 rm -f conftest.defines
45978 mv conftest.tail conftest.defines
45980 rm -f conftest.defines
45981 echo ' fi # grep' >>$CONFIG_STATUS
45982 echo >>$CONFIG_STATUS
45984 # Break up conftest.undefs because some shells have a limit on the size
45985 # of here documents, and old seds have small limits too (100 cmds).
45986 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45987 rm -f conftest.tail
45988 while grep . conftest.undefs >/dev/null
45990 # Write a limited-size here document to $tmp/undefs.sed.
45991 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45992 # Speed up: don't consider the non `#undef'
45993 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45994 # Work around the forget-to-reset-the-flag bug.
45995 echo 't clr' >>$CONFIG_STATUS
45996 echo ': clr' >>$CONFIG_STATUS
45997 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45999 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46001 mv $tmp/out $tmp/in
46003 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46004 rm -f conftest.undefs
46005 mv conftest.tail conftest.undefs
46007 rm -f conftest.undefs
46009 cat >>$CONFIG_STATUS <<\_ACEOF
46010 # Let's still pretend it is `configure' which instantiates (i.e., don't
46011 # use $as_me), people would be surprised to read:
46012 # /* config.h. Generated by config.status. */
46013 if test x"$ac_file" = x-; then
46014 echo "/* Generated by configure. */" >$tmp/config.h
46016 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46018 cat $tmp/in >>$tmp/config.h
46020 if test x"$ac_file" != x-; then
46021 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46023 echo "$as_me: $ac_file is unchanged" >&6;}
46025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46027 X"$ac_file" : 'X\(//\)[^/]' \| \
46028 X"$ac_file" : 'X\(//\)$' \| \
46029 X"$ac_file" : 'X\(/\)' \| \
46030 . : '\(.\)' 2>/dev/null ||
46032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46034 /^X\(\/\/\)$/{ s//\1/; q; }
46035 /^X\(\/\).*/{ s//\1/; q; }
46037 { if $as_mkdir_p; then
46042 while test ! -d "$as_dir"; do
46043 as_dirs="$as_dir $as_dirs"
46044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46046 X"$as_dir" : 'X\(//\)[^/]' \| \
46047 X"$as_dir" : 'X\(//\)$' \| \
46048 X"$as_dir" : 'X\(/\)' \| \
46049 . : '\(.\)' 2>/dev/null ||
46051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46053 /^X\(\/\/\)$/{ s//\1/; q; }
46054 /^X\(\/\).*/{ s//\1/; q; }
46057 test ! -n "$as_dirs" || mkdir $as_dirs
46058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46060 { (exit 1); exit 1; }; }; }
46063 mv $tmp/config.h $ac_file
46067 rm -f $tmp/config.h
46069 # Compute $ac_file's index in $config_headers.
46071 for _am_header in $config_headers :; do
46072 case $_am_header in
46073 $ac_file | $ac_file:* )
46076 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46079 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46080 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46081 X$ac_file : 'X\(//\)[^/]' \| \
46082 X$ac_file : 'X\(//\)$' \| \
46083 X$ac_file : 'X\(/\)' \| \
46084 . : '\(.\)' 2>/dev/null ||
46086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46088 /^X\(\/\/\)$/{ s//\1/; q; }
46089 /^X\(\/\).*/{ s//\1/; q; }
46090 s/.*/./; q'`/stamp-h$_am_stamp_count
46093 cat >>$CONFIG_STATUS <<\_ACEOF
46096 # CONFIG_COMMANDS section.
46098 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46099 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46100 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46101 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46102 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46103 X"$ac_dest" : 'X\(//\)[^/]' \| \
46104 X"$ac_dest" : 'X\(//\)$' \| \
46105 X"$ac_dest" : 'X\(/\)' \| \
46106 . : '\(.\)' 2>/dev/null ||
46108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46110 /^X\(\/\/\)$/{ s//\1/; q; }
46111 /^X\(\/\).*/{ s//\1/; q; }
46113 { if $as_mkdir_p; then
46118 while test ! -d "$as_dir"; do
46119 as_dirs="$as_dir $as_dirs"
46120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46122 X"$as_dir" : 'X\(//\)[^/]' \| \
46123 X"$as_dir" : 'X\(//\)$' \| \
46124 X"$as_dir" : 'X\(/\)' \| \
46125 . : '\(.\)' 2>/dev/null ||
46127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46129 /^X\(\/\/\)$/{ s//\1/; q; }
46130 /^X\(\/\).*/{ s//\1/; q; }
46133 test ! -n "$as_dirs" || mkdir $as_dirs
46134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46135 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46136 { (exit 1); exit 1; }; }; }
46140 if test "$ac_dir" != .; then
46141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46142 # A "../" for each directory in $ac_dir_suffix.
46143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46145 ac_dir_suffix= ac_top_builddir=
46149 .) # No --srcdir option. We are building in place.
46151 if test -z "$ac_top_builddir"; then
46154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46156 [\\/]* | ?:[\\/]* ) # Absolute path.
46157 ac_srcdir=$srcdir$ac_dir_suffix;
46158 ac_top_srcdir=$srcdir ;;
46159 *) # Relative path.
46160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46164 # Do not use `cd foo && pwd` to compute absolute paths, because
46165 # the directories may not exist.
46167 .) ac_abs_builddir="$ac_dir";;
46170 .) ac_abs_builddir=`pwd`;;
46171 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46172 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46175 case $ac_abs_builddir in
46176 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46178 case ${ac_top_builddir}. in
46179 .) ac_abs_top_builddir=$ac_abs_builddir;;
46180 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46181 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46184 case $ac_abs_builddir in
46185 .) ac_abs_srcdir=$ac_srcdir;;
46188 .) ac_abs_srcdir=$ac_abs_builddir;;
46189 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46190 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46193 case $ac_abs_builddir in
46194 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46196 case $ac_top_srcdir in
46197 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46198 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46199 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46204 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46205 echo "$as_me: executing $ac_dest commands" >&6;}
46207 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46208 # Strip MF so we end up with the name of the file.
46209 mf=`echo "$mf" | sed -e 's/:.*$//'`
46210 # Check whether this is an Automake generated Makefile or not.
46211 # We used to match only the files named `Makefile.in', but
46212 # some people rename them; so instead we look at the file content.
46213 # Grep'ing the first line is not enough: some people post-process
46214 # each Makefile.in and add a new line on top of each file to say so.
46215 # So let's grep whole file.
46216 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46217 dirpart=`(dirname "$mf") 2>/dev/null ||
46218 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46219 X"$mf" : 'X\(//\)[^/]' \| \
46220 X"$mf" : 'X\(//\)$' \| \
46221 X"$mf" : 'X\(/\)' \| \
46222 . : '\(.\)' 2>/dev/null ||
46224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46226 /^X\(\/\/\)$/{ s//\1/; q; }
46227 /^X\(\/\).*/{ s//\1/; q; }
46232 # Extract the definition of DEPDIR, am__include, and am__quote
46233 # from the Makefile without running `make'.
46234 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46235 test -z "$DEPDIR" && continue
46236 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46237 test -z "am__include" && continue
46238 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46239 # When using ansi2knr, U may be empty or an underscore; expand it
46240 U=`sed -n 's/^U = //p' < "$mf"`
46241 # Find all dependency output files, they are included files with
46242 # $(DEPDIR) in their names. We invoke sed twice because it is the
46243 # simplest approach to changing $(DEPDIR) to its actual value in the
46245 for file in `sed -n "
46246 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46247 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46248 # Make sure the directory exists.
46249 test -f "$dirpart/$file" && continue
46250 fdir=`(dirname "$file") 2>/dev/null ||
46251 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46252 X"$file" : 'X\(//\)[^/]' \| \
46253 X"$file" : 'X\(//\)$' \| \
46254 X"$file" : 'X\(/\)' \| \
46255 . : '\(.\)' 2>/dev/null ||
46257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46259 /^X\(\/\/\)$/{ s//\1/; q; }
46260 /^X\(\/\).*/{ s//\1/; q; }
46262 { if $as_mkdir_p; then
46263 mkdir -p $dirpart/$fdir
46265 as_dir=$dirpart/$fdir
46267 while test ! -d "$as_dir"; do
46268 as_dirs="$as_dir $as_dirs"
46269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46271 X"$as_dir" : 'X\(//\)[^/]' \| \
46272 X"$as_dir" : 'X\(//\)$' \| \
46273 X"$as_dir" : 'X\(/\)' \| \
46274 . : '\(.\)' 2>/dev/null ||
46276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46278 /^X\(\/\/\)$/{ s//\1/; q; }
46279 /^X\(\/\).*/{ s//\1/; q; }
46282 test ! -n "$as_dirs" || mkdir $as_dirs
46283 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46284 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46285 { (exit 1); exit 1; }; }; }
46287 # echo "creating $dirpart/$file"
46288 echo '# dummy' > "$dirpart/$file"
46295 BACKENDSC="servers/slapd/backends.c"
46296 echo "Making $BACKENDSC"
46298 cat > $BACKENDSC << ENDX
46299 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46301 * Copyright 1998-2006 The OpenLDAP Foundation.
46302 * All rights reserved.
46304 * Redistribution and use in source and binary forms, with or without
46305 * modification, are permitted only as authorized by the OpenLDAP
46308 * A copy of this license is available in the file LICENSE in the
46309 * top-level directory of the distribution or, alternatively, at
46310 * <http://www.OpenLDAP.org/license.html>.
46312 /* This file is automatically generated by configure; please do not edit. */
46314 #include "portable.h"
46318 if test "${STATIC_BACKENDS}"; then
46319 for b in config ${STATIC_BACKENDS}; do
46320 bb=`echo "${b}" | sed -e 's/back-//'`
46321 cat >> $BACKENDSC << ENDX
46322 extern BI_init ${bb}_back_initialize;
46326 cat >> $BACKENDSC << ENDX
46328 BackendInfo slap_binfo[] = {
46331 for b in config ${STATIC_BACKENDS}; do
46332 bb=`echo "${b}" | sed -e 's/back-//'`
46333 echo " Add ${bb} ..."
46334 cat >> $BACKENDSC << ENDX
46335 { "${bb}", ${bb}_back_initialize },
46339 cat >> $BACKENDSC << ENDX
46343 /* end of generated file */
46346 OVERLAYSC="servers/slapd/overlays/statover.c"
46347 echo "Making $OVERLAYSC"
46349 cat > $OVERLAYSC << ENDX
46350 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46352 * Copyright 1998-2006 The OpenLDAP Foundation.
46353 * All rights reserved.
46355 * Redistribution and use in source and binary forms, with or without
46356 * modification, are permitted only as authorized by the OpenLDAP
46359 * A copy of this license is available in the file LICENSE in the
46360 * top-level directory of the distribution or, alternatively, at
46361 * <http://www.OpenLDAP.org/license.html>.
46363 /* This file is automatically generated by configure; please do not edit. */
46365 #include "portable.h"
46369 if test "${STATIC_OVERLAYS}"; then
46370 for o in ${STATIC_OVERLAYS}; do
46371 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46372 cat >> $OVERLAYSC << ENDX
46373 extern OV_init ${oo}_initialize;
46378 cat >> $OVERLAYSC << ENDX
46380 OverlayInit slap_oinfo[] = {
46383 if test "${STATIC_OVERLAYS}"; then
46384 for o in ${STATIC_OVERLAYS}; do
46385 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46386 echo " Add ${oo} ..."
46387 cat >> $OVERLAYSC << ENDX
46388 { "${oo}", ${oo}_initialize },
46393 cat >> $OVERLAYSC << ENDX
46397 /* end of generated file */
46400 echo Please run \"make depend\" to build dependencies
46406 cat >>$CONFIG_STATUS <<\_ACEOF
46408 { (exit 0); exit 0; }
46410 chmod +x $CONFIG_STATUS
46411 ac_clean_files=$ac_clean_files_save
46414 # configure is writing to config.log, and then calls config.status.
46415 # config.status does its own redirection, appending to config.log.
46416 # Unfortunately, on DOS this fails, as config.log is still kept open
46417 # by configure, so config.status won't be able to write to it; its
46418 # output is simply discarded. So we exec the FD to /dev/null,
46419 # effectively closing config.log, so it can be properly (re)opened and
46420 # appended to by config.status. When coming back to configure, we
46421 # need to make the FD available again.
46422 if test "$no_create" != yes; then
46424 ac_config_status_args=
46425 test "$silent" = yes &&
46426 ac_config_status_args="$ac_config_status_args --quiet"
46428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46431 # would make configure fail if this is the last instruction.
46432 $ac_cs_success || { (exit 1); exit 1; }