2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.640 2006/11/06 23:38:19 ando 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_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-meta enable metadirectory backend no|yes|mod [no]
1038 --enable-monitor enable monitor backend no|yes|mod [yes]
1039 --enable-null enable null backend no|yes|mod [no]
1040 --enable-passwd enable passwd backend no|yes|mod [no]
1041 --enable-perl enable perl backend no|yes|mod [no]
1042 --enable-relay enable relay backend no|yes|mod [yes]
1043 --enable-shell enable shell backend no|yes|mod [no]
1044 --enable-sql enable sql backend no|yes|mod [no]
1046 SLAPD Overlay Options:
1047 --enable-overlays enable all available overlays no|yes|mod
1048 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1049 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1050 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1051 --enable-dds Dynamic Directory Services 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-ppolicy Password Policy overlay no|yes|mod [no]
1055 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1056 --enable-refint Referential Integrity overlay no|yes|mod [no]
1057 --enable-retcode Return Code testing overlay no|yes|mod [no]
1058 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1059 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
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]
1089 --with-odbc with specific ODBC support iodbc|unixodbc|auto [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 no yes traditional ; 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"
2451 # OpenLDAP --with-odbc
2453 # Check whether --with-odbc or --without-odbc was given.
2454 if test "${with_odbc+set}" = set; then
2455 withval="$with_odbc"
2458 for ol_val in auto iodbc unixodbc ; do
2459 if test "$withval" = "$ol_val" ; then
2463 if test "$ol_arg" = "invalid" ; then
2464 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2465 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2466 { (exit 1); exit 1; }; }
2468 ol_with_odbc="$ol_arg"
2472 fi; # end --with-odbc
2476 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2477 if test "${enable_xxslapdoptions+set}" = set; then
2478 enableval="$enable_xxslapdoptions"
2481 # OpenLDAP --enable-slapd
2483 # Check whether --enable-slapd or --disable-slapd was given.
2484 if test "${enable_slapd+set}" = set; then
2485 enableval="$enable_slapd"
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-slapd" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_slapd="$ol_arg"
2503 # end --enable-slapd
2504 # OpenLDAP --enable-dynacl
2506 # Check whether --enable-dynacl or --disable-dynacl was given.
2507 if test "${enable_dynacl+set}" = set; then
2508 enableval="$enable_dynacl"
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-dynacl" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_dynacl="$ol_arg"
2526 # end --enable-dynacl
2527 # OpenLDAP --enable-aci
2529 # Check whether --enable-aci or --disable-aci was given.
2530 if test "${enable_aci+set}" = set; then
2531 enableval="$enable_aci"
2534 for ol_val in no yes mod ; 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-aci" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_aci="$ol_arg"
2550 # OpenLDAP --enable-cleartext
2552 # Check whether --enable-cleartext or --disable-cleartext was given.
2553 if test "${enable_cleartext+set}" = set; then
2554 enableval="$enable_cleartext"
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-cleartext" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_cleartext="$ol_arg"
2570 ol_enable_cleartext=yes
2572 # end --enable-cleartext
2573 # OpenLDAP --enable-crypt
2575 # Check whether --enable-crypt or --disable-crypt was given.
2576 if test "${enable_crypt+set}" = set; then
2577 enableval="$enable_crypt"
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-crypt" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_crypt="$ol_arg"
2595 # end --enable-crypt
2596 # OpenLDAP --enable-lmpasswd
2598 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2599 if test "${enable_lmpasswd+set}" = set; then
2600 enableval="$enable_lmpasswd"
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-lmpasswd" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_lmpasswd="$ol_arg"
2616 ol_enable_lmpasswd=no
2618 # end --enable-lmpasswd
2619 # OpenLDAP --enable-spasswd
2621 # Check whether --enable-spasswd or --disable-spasswd was given.
2622 if test "${enable_spasswd+set}" = set; then
2623 enableval="$enable_spasswd"
2626 for ol_val in auto yes no ; do
2627 if test "$enableval" = "$ol_val" ; then
2631 if test "$ol_arg" = "invalid" ; then
2632 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2633 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2634 { (exit 1); exit 1; }; }
2636 ol_enable_spasswd="$ol_arg"
2639 ol_enable_spasswd=no
2641 # end --enable-spasswd
2642 # OpenLDAP --enable-modules
2644 # Check whether --enable-modules or --disable-modules was given.
2645 if test "${enable_modules+set}" = set; then
2646 enableval="$enable_modules"
2649 for ol_val in auto yes no ; do
2650 if test "$enableval" = "$ol_val" ; then
2654 if test "$ol_arg" = "invalid" ; then
2655 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2656 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2657 { (exit 1); exit 1; }; }
2659 ol_enable_modules="$ol_arg"
2662 ol_enable_modules=no
2664 # end --enable-modules
2665 # OpenLDAP --enable-rewrite
2667 # Check whether --enable-rewrite or --disable-rewrite was given.
2668 if test "${enable_rewrite+set}" = set; then
2669 enableval="$enable_rewrite"
2672 for ol_val in auto yes no ; do
2673 if test "$enableval" = "$ol_val" ; then
2677 if test "$ol_arg" = "invalid" ; then
2678 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2679 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2680 { (exit 1); exit 1; }; }
2682 ol_enable_rewrite="$ol_arg"
2685 ol_enable_rewrite=auto
2687 # end --enable-rewrite
2688 # OpenLDAP --enable-rlookups
2690 # Check whether --enable-rlookups or --disable-rlookups was given.
2691 if test "${enable_rlookups+set}" = set; then
2692 enableval="$enable_rlookups"
2695 for ol_val in auto yes no ; do
2696 if test "$enableval" = "$ol_val" ; then
2700 if test "$ol_arg" = "invalid" ; then
2701 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2702 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2703 { (exit 1); exit 1; }; }
2705 ol_enable_rlookups="$ol_arg"
2708 ol_enable_rlookups=no
2710 # end --enable-rlookups
2711 # OpenLDAP --enable-slapi
2713 # Check whether --enable-slapi or --disable-slapi was given.
2714 if test "${enable_slapi+set}" = set; then
2715 enableval="$enable_slapi"
2718 for ol_val in auto yes no ; do
2719 if test "$enableval" = "$ol_val" ; then
2723 if test "$ol_arg" = "invalid" ; then
2724 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2725 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2726 { (exit 1); exit 1; }; }
2728 ol_enable_slapi="$ol_arg"
2733 # end --enable-slapi
2734 # OpenLDAP --enable-slp
2736 # Check whether --enable-slp or --disable-slp was given.
2737 if test "${enable_slp+set}" = set; then
2738 enableval="$enable_slp"
2741 for ol_val in auto yes no ; do
2742 if test "$enableval" = "$ol_val" ; then
2746 if test "$ol_arg" = "invalid" ; then
2747 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2748 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2749 { (exit 1); exit 1; }; }
2751 ol_enable_slp="$ol_arg"
2757 # OpenLDAP --enable-wrappers
2759 # Check whether --enable-wrappers or --disable-wrappers was given.
2760 if test "${enable_wrappers+set}" = set; then
2761 enableval="$enable_wrappers"
2764 for ol_val in auto yes no ; do
2765 if test "$enableval" = "$ol_val" ; then
2769 if test "$ol_arg" = "invalid" ; then
2770 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2772 { (exit 1); exit 1; }; }
2774 ol_enable_wrappers="$ol_arg"
2777 ol_enable_wrappers=no
2779 # end --enable-wrappers
2794 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2795 if test "${enable_xxslapbackends+set}" = set; then
2796 enableval="$enable_xxslapbackends"
2800 # OpenLDAP --enable-backends
2802 # Check whether --enable-backends or --disable-backends was given.
2803 if test "${enable_backends+set}" = set; then
2804 enableval="$enable_backends"
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-backends" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2815 { (exit 1); exit 1; }; }
2817 ol_enable_backends="$ol_arg"
2820 # end --enable-backends
2821 # OpenLDAP --enable-bdb
2823 # Check whether --enable-bdb or --disable-bdb was given.
2824 if test "${enable_bdb+set}" = set; then
2825 enableval="$enable_bdb"
2828 for ol_val in no yes mod ; do
2829 if test "$enableval" = "$ol_val" ; then
2833 if test "$ol_arg" = "invalid" ; then
2834 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2835 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2836 { (exit 1); exit 1; }; }
2838 ol_enable_bdb="$ol_arg"
2841 ol_enable_bdb=${ol_enable_backends:-yes}
2844 # OpenLDAP --enable-dnssrv
2846 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2847 if test "${enable_dnssrv+set}" = set; then
2848 enableval="$enable_dnssrv"
2851 for ol_val in no yes mod ; do
2852 if test "$enableval" = "$ol_val" ; then
2856 if test "$ol_arg" = "invalid" ; then
2857 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2858 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2859 { (exit 1); exit 1; }; }
2861 ol_enable_dnssrv="$ol_arg"
2864 ol_enable_dnssrv=${ol_enable_backends:-no}
2866 # end --enable-dnssrv
2867 # OpenLDAP --enable-hdb
2869 # Check whether --enable-hdb or --disable-hdb was given.
2870 if test "${enable_hdb+set}" = set; then
2871 enableval="$enable_hdb"
2874 for ol_val in no yes mod ; do
2875 if test "$enableval" = "$ol_val" ; then
2879 if test "$ol_arg" = "invalid" ; then
2880 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2881 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2882 { (exit 1); exit 1; }; }
2884 ol_enable_hdb="$ol_arg"
2887 ol_enable_hdb=${ol_enable_backends:-yes}
2890 # OpenLDAP --enable-ldap
2892 # Check whether --enable-ldap or --disable-ldap was given.
2893 if test "${enable_ldap+set}" = set; then
2894 enableval="$enable_ldap"
2897 for ol_val in no yes mod ; do
2898 if test "$enableval" = "$ol_val" ; then
2902 if test "$ol_arg" = "invalid" ; then
2903 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2905 { (exit 1); exit 1; }; }
2907 ol_enable_ldap="$ol_arg"
2910 ol_enable_ldap=${ol_enable_backends:-no}
2913 # OpenLDAP --enable-meta
2915 # Check whether --enable-meta or --disable-meta was given.
2916 if test "${enable_meta+set}" = set; then
2917 enableval="$enable_meta"
2920 for ol_val in no yes mod ; do
2921 if test "$enableval" = "$ol_val" ; then
2925 if test "$ol_arg" = "invalid" ; then
2926 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2927 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2928 { (exit 1); exit 1; }; }
2930 ol_enable_meta="$ol_arg"
2933 ol_enable_meta=${ol_enable_backends:-no}
2936 # OpenLDAP --enable-monitor
2938 # Check whether --enable-monitor or --disable-monitor was given.
2939 if test "${enable_monitor+set}" = set; then
2940 enableval="$enable_monitor"
2943 for ol_val in no yes mod ; do
2944 if test "$enableval" = "$ol_val" ; then
2948 if test "$ol_arg" = "invalid" ; then
2949 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2950 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2951 { (exit 1); exit 1; }; }
2953 ol_enable_monitor="$ol_arg"
2956 ol_enable_monitor=${ol_enable_backends:-yes}
2958 # end --enable-monitor
2959 # OpenLDAP --enable-null
2961 # Check whether --enable-null or --disable-null was given.
2962 if test "${enable_null+set}" = set; then
2963 enableval="$enable_null"
2966 for ol_val in no yes mod ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_null="$ol_arg"
2979 ol_enable_null=${ol_enable_backends:-no}
2982 # OpenLDAP --enable-passwd
2984 # Check whether --enable-passwd or --disable-passwd was given.
2985 if test "${enable_passwd+set}" = set; then
2986 enableval="$enable_passwd"
2989 for ol_val in no yes mod ; do
2990 if test "$enableval" = "$ol_val" ; then
2994 if test "$ol_arg" = "invalid" ; then
2995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2997 { (exit 1); exit 1; }; }
2999 ol_enable_passwd="$ol_arg"
3002 ol_enable_passwd=${ol_enable_backends:-no}
3004 # end --enable-passwd
3005 # OpenLDAP --enable-perl
3007 # Check whether --enable-perl or --disable-perl was given.
3008 if test "${enable_perl+set}" = set; then
3009 enableval="$enable_perl"
3012 for ol_val in no yes mod ; do
3013 if test "$enableval" = "$ol_val" ; then
3017 if test "$ol_arg" = "invalid" ; then
3018 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3020 { (exit 1); exit 1; }; }
3022 ol_enable_perl="$ol_arg"
3025 ol_enable_perl=${ol_enable_backends:-no}
3028 # OpenLDAP --enable-relay
3030 # Check whether --enable-relay or --disable-relay was given.
3031 if test "${enable_relay+set}" = set; then
3032 enableval="$enable_relay"
3035 for ol_val in no yes mod ; do
3036 if test "$enableval" = "$ol_val" ; then
3040 if test "$ol_arg" = "invalid" ; then
3041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3043 { (exit 1); exit 1; }; }
3045 ol_enable_relay="$ol_arg"
3048 ol_enable_relay=${ol_enable_backends:-yes}
3050 # end --enable-relay
3051 # OpenLDAP --enable-shell
3053 # Check whether --enable-shell or --disable-shell was given.
3054 if test "${enable_shell+set}" = set; then
3055 enableval="$enable_shell"
3058 for ol_val in no yes mod ; do
3059 if test "$enableval" = "$ol_val" ; then
3063 if test "$ol_arg" = "invalid" ; then
3064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3066 { (exit 1); exit 1; }; }
3068 ol_enable_shell="$ol_arg"
3071 ol_enable_shell=${ol_enable_backends:-no}
3073 # end --enable-shell
3074 # OpenLDAP --enable-sql
3076 # Check whether --enable-sql or --disable-sql was given.
3077 if test "${enable_sql+set}" = set; then
3078 enableval="$enable_sql"
3081 for ol_val in no yes mod ; do
3082 if test "$enableval" = "$ol_val" ; then
3086 if test "$ol_arg" = "invalid" ; then
3087 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3089 { (exit 1); exit 1; }; }
3091 ol_enable_sql="$ol_arg"
3094 ol_enable_sql=${ol_enable_backends:-no}
3098 Overlays="accesslog \
3115 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3116 if test "${enable_xxslapoverlays+set}" = set; then
3117 enableval="$enable_xxslapoverlays"
3121 # OpenLDAP --enable-overlays
3123 # Check whether --enable-overlays or --disable-overlays was given.
3124 if test "${enable_overlays+set}" = set; then
3125 enableval="$enable_overlays"
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_overlays="$ol_arg"
3141 # end --enable-overlays
3142 # OpenLDAP --enable-accesslog
3144 # Check whether --enable-accesslog or --disable-accesslog was given.
3145 if test "${enable_accesslog+set}" = set; then
3146 enableval="$enable_accesslog"
3149 for ol_val in no yes mod ; do
3150 if test "$enableval" = "$ol_val" ; then
3154 if test "$ol_arg" = "invalid" ; then
3155 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3156 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3157 { (exit 1); exit 1; }; }
3159 ol_enable_accesslog="$ol_arg"
3162 ol_enable_accesslog=${ol_enable_overlays:-no}
3164 # end --enable-accesslog
3166 # OpenLDAP --enable-auditlog
3168 # Check whether --enable-auditlog or --disable-auditlog was given.
3169 if test "${enable_auditlog+set}" = set; then
3170 enableval="$enable_auditlog"
3173 for ol_val in no yes mod ; do
3174 if test "$enableval" = "$ol_val" ; then
3178 if test "$ol_arg" = "invalid" ; then
3179 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3181 { (exit 1); exit 1; }; }
3183 ol_enable_auditlog="$ol_arg"
3186 ol_enable_auditlog=${ol_enable_overlays:-no}
3188 # end --enable-auditlog
3190 # OpenLDAP --enable-constraint
3192 # Check whether --enable-constraint or --disable-constraint was given.
3193 if test "${enable_constraint+set}" = set; then
3194 enableval="$enable_constraint"
3197 for ol_val in no yes mod ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_constraint="$ol_arg"
3210 ol_enable_constraint=${ol_enable_overlays:-no}
3212 # end --enable-constraint
3214 # OpenLDAP --enable-dds
3216 # Check whether --enable-dds or --disable-dds was given.
3217 if test "${enable_dds+set}" = set; then
3218 enableval="$enable_dds"
3221 for ol_val in no yes mod ; do
3222 if test "$enableval" = "$ol_val" ; then
3226 if test "$ol_arg" = "invalid" ; then
3227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3229 { (exit 1); exit 1; }; }
3231 ol_enable_dds="$ol_arg"
3234 ol_enable_dds=${ol_enable_overlays:-no}
3238 # OpenLDAP --enable-dyngroup
3240 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3241 if test "${enable_dyngroup+set}" = set; then
3242 enableval="$enable_dyngroup"
3245 for ol_val in no yes mod ; do
3246 if test "$enableval" = "$ol_val" ; then
3250 if test "$ol_arg" = "invalid" ; then
3251 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_dyngroup="$ol_arg"
3258 ol_enable_dyngroup=${ol_enable_overlays:-no}
3260 # end --enable-dyngroup
3262 # OpenLDAP --enable-dynlist
3264 # Check whether --enable-dynlist or --disable-dynlist was given.
3265 if test "${enable_dynlist+set}" = set; then
3266 enableval="$enable_dynlist"
3269 for ol_val in no yes mod ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_dynlist="$ol_arg"
3282 ol_enable_dynlist=${ol_enable_overlays:-no}
3284 # end --enable-dynlist
3286 # OpenLDAP --enable-ppolicy
3288 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3289 if test "${enable_ppolicy+set}" = set; then
3290 enableval="$enable_ppolicy"
3293 for ol_val in no yes mod ; do
3294 if test "$enableval" = "$ol_val" ; then
3298 if test "$ol_arg" = "invalid" ; then
3299 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3300 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3301 { (exit 1); exit 1; }; }
3303 ol_enable_ppolicy="$ol_arg"
3306 ol_enable_ppolicy=${ol_enable_overlays:-no}
3308 # end --enable-ppolicy
3310 # OpenLDAP --enable-proxycache
3312 # Check whether --enable-proxycache or --disable-proxycache was given.
3313 if test "${enable_proxycache+set}" = set; then
3314 enableval="$enable_proxycache"
3317 for ol_val in no yes mod ; do
3318 if test "$enableval" = "$ol_val" ; then
3322 if test "$ol_arg" = "invalid" ; then
3323 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3324 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3325 { (exit 1); exit 1; }; }
3327 ol_enable_proxycache="$ol_arg"
3330 ol_enable_proxycache=${ol_enable_overlays:-no}
3332 # end --enable-proxycache
3334 # OpenLDAP --enable-refint
3336 # Check whether --enable-refint or --disable-refint was given.
3337 if test "${enable_refint+set}" = set; then
3338 enableval="$enable_refint"
3341 for ol_val in no yes mod ; do
3342 if test "$enableval" = "$ol_val" ; then
3346 if test "$ol_arg" = "invalid" ; then
3347 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3348 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3349 { (exit 1); exit 1; }; }
3351 ol_enable_refint="$ol_arg"
3354 ol_enable_refint=${ol_enable_overlays:-no}
3356 # end --enable-refint
3358 # OpenLDAP --enable-retcode
3360 # Check whether --enable-retcode or --disable-retcode was given.
3361 if test "${enable_retcode+set}" = set; then
3362 enableval="$enable_retcode"
3365 for ol_val in no yes mod ; do
3366 if test "$enableval" = "$ol_val" ; then
3370 if test "$ol_arg" = "invalid" ; then
3371 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3372 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3373 { (exit 1); exit 1; }; }
3375 ol_enable_retcode="$ol_arg"
3378 ol_enable_retcode=${ol_enable_overlays:-no}
3380 # end --enable-retcode
3382 # OpenLDAP --enable-rwm
3384 # Check whether --enable-rwm or --disable-rwm was given.
3385 if test "${enable_rwm+set}" = set; then
3386 enableval="$enable_rwm"
3389 for ol_val in no yes mod ; do
3390 if test "$enableval" = "$ol_val" ; then
3394 if test "$ol_arg" = "invalid" ; then
3395 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3397 { (exit 1); exit 1; }; }
3399 ol_enable_rwm="$ol_arg"
3402 ol_enable_rwm=${ol_enable_overlays:-no}
3406 # OpenLDAP --enable-seqmod
3408 # Check whether --enable-seqmod or --disable-seqmod was given.
3409 if test "${enable_seqmod+set}" = set; then
3410 enableval="$enable_seqmod"
3413 for ol_val in no yes mod ; do
3414 if test "$enableval" = "$ol_val" ; then
3418 if test "$ol_arg" = "invalid" ; then
3419 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3420 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3421 { (exit 1); exit 1; }; }
3423 ol_enable_seqmod="$ol_arg"
3426 ol_enable_seqmod=${ol_enable_overlays:-yes}
3428 # end --enable-seqmod
3430 # OpenLDAP --enable-syncprov
3432 # Check whether --enable-syncprov or --disable-syncprov was given.
3433 if test "${enable_syncprov+set}" = set; then
3434 enableval="$enable_syncprov"
3437 for ol_val in no yes mod ; do
3438 if test "$enableval" = "$ol_val" ; then
3442 if test "$ol_arg" = "invalid" ; then
3443 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3444 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3445 { (exit 1); exit 1; }; }
3447 ol_enable_syncprov="$ol_arg"
3450 ol_enable_syncprov=${ol_enable_overlays:-yes}
3452 # end --enable-syncprov
3454 # OpenLDAP --enable-translucent
3456 # Check whether --enable-translucent or --disable-translucent was given.
3457 if test "${enable_translucent+set}" = set; then
3458 enableval="$enable_translucent"
3461 for ol_val in no yes mod ; do
3462 if test "$enableval" = "$ol_val" ; then
3466 if test "$ol_arg" = "invalid" ; then
3467 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3468 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3469 { (exit 1); exit 1; }; }
3471 ol_enable_translucent="$ol_arg"
3474 ol_enable_translucent=${ol_enable_overlays:-no}
3476 # end --enable-translucent
3478 # OpenLDAP --enable-unique
3480 # Check whether --enable-unique or --disable-unique was given.
3481 if test "${enable_unique+set}" = set; then
3482 enableval="$enable_unique"
3485 for ol_val in no yes mod ; do
3486 if test "$enableval" = "$ol_val" ; then
3490 if test "$ol_arg" = "invalid" ; then
3491 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3492 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3493 { (exit 1); exit 1; }; }
3495 ol_enable_unique="$ol_arg"
3498 ol_enable_unique=${ol_enable_overlays:-no}
3500 # end --enable-unique
3502 # OpenLDAP --enable-valsort
3504 # Check whether --enable-valsort or --disable-valsort was given.
3505 if test "${enable_valsort+set}" = set; then
3506 enableval="$enable_valsort"
3509 for ol_val in no yes mod ; do
3510 if test "$enableval" = "$ol_val" ; then
3514 if test "$ol_arg" = "invalid" ; then
3515 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3516 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3517 { (exit 1); exit 1; }; }
3519 ol_enable_valsort="$ol_arg"
3522 ol_enable_valsort=${ol_enable_overlays:-no}
3524 # end --enable-valsort
3527 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3528 if test "${enable_xxslurpdoptions+set}" = set; then
3529 enableval="$enable_xxslurpdoptions"
3532 # OpenLDAP --enable-slurpd
3534 # Check whether --enable-slurpd or --disable-slurpd was given.
3535 if test "${enable_slurpd+set}" = set; then
3536 enableval="$enable_slurpd"
3539 for ol_val in auto yes no ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3547 { (exit 1); exit 1; }; }
3549 ol_enable_slurpd="$ol_arg"
3552 ol_enable_slurpd=auto
3554 # end --enable-slurpd
3556 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3557 if test "${enable_xxliboptions+set}" = set; then
3558 enableval="$enable_xxliboptions"
3561 # Check whether --enable-static or --disable-static was given.
3562 if test "${enable_static+set}" = set; then
3563 enableval="$enable_static"
3564 p=${PACKAGE-default}
3566 yes) enable_static=yes ;;
3567 no) enable_static=no ;;
3570 # Look at the argument we got. We use all the common list separators.
3571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572 for pkg in $enableval; do
3574 if test "X$pkg" = "X$p"; then
3585 # Check whether --enable-shared or --disable-shared was given.
3586 if test "${enable_shared+set}" = set; then
3587 enableval="$enable_shared"
3588 p=${PACKAGE-default}
3590 yes) enable_shared=yes ;;
3591 no) enable_shared=no ;;
3594 # Look at the argument we got. We use all the common list separators.
3595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3596 for pkg in $enableval; do
3598 if test "X$pkg" = "X$p"; then
3612 if test $ol_enable_slapd = no ; then
3613 if test $ol_enable_slapi = yes ; then
3614 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3617 case "$ol_enable_backends" in yes | mod)
3618 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3619 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3621 for i in $Backends; do
3622 eval "ol_tmp=\$ol_enable_$i"
3623 if test $ol_tmp != no ; then
3624 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3625 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3626 eval "ol_enable_$i=no"
3629 if test $ol_enable_modules = yes ; then
3630 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3633 if test $ol_enable_wrappers = yes ; then
3634 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3637 if test $ol_enable_rlookups = yes ; then
3638 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3641 if test $ol_enable_dynacl = yes ; then
3642 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3645 if test $ol_enable_aci != no ; then
3646 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3649 if test $ol_enable_slurpd = yes ; then
3650 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3651 echo "$as_me: error: slurpd requires slapd" >&2;}
3652 { (exit 1); exit 1; }; }
3654 if test $ol_enable_rewrite = yes ; then
3655 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3658 case "$ol_enable_overlays" in yes | mod)
3659 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3662 for i in $Overlays; do
3663 eval "ol_tmp=\$ol_enable_$i"
3664 if test $ol_tmp != no ; then
3665 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3667 eval "ol_enable_$i=no"
3671 # force settings to no
3676 ol_enable_modules=no
3677 ol_enable_rlookups=no
3680 ol_enable_wrappers=no
3684 ol_enable_rewrite=no
3686 elif test $ol_enable_modules != yes &&
3687 test $ol_enable_bdb = no &&
3688 test $ol_enable_dnssrv = no &&
3689 test $ol_enable_hdb = no &&
3690 test $ol_enable_ldap = no &&
3691 test $ol_enable_meta = no &&
3692 test $ol_enable_monitor = no &&
3693 test $ol_enable_null = no &&
3694 test $ol_enable_passwd = no &&
3695 test $ol_enable_perl = no &&
3696 test $ol_enable_relay = no &&
3697 test $ol_enable_shell = no &&
3698 test $ol_enable_sql = no ; then
3700 if test $ol_enable_slapd = yes ; then
3701 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3702 echo "$as_me: error: slapd requires a backend" >&2;}
3703 { (exit 1); exit 1; }; }
3705 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3706 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3711 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3712 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3713 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3714 { (exit 1); exit 1; }; }
3717 if test $ol_enable_slurpd = yes ; then
3718 if test $ol_with_threads = no ; then
3719 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3720 echo "$as_me: error: slurpd requires threads" >&2;}
3721 { (exit 1); exit 1; }; }
3725 if test $ol_enable_lmpasswd = yes ; then
3726 if test $ol_with_tls = no ; then
3727 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3728 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3729 { (exit 1); exit 1; }; }
3733 if test $ol_enable_kbind = yes ; then
3734 if test $ol_with_kerberos = no ; then
3735 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3736 echo "$as_me: error: options require --with-kerberos" >&2;}
3737 { (exit 1); exit 1; }; }
3738 elif test $ol_with_kerberos = auto ; then
3739 ol_with_kerberos=yes
3742 elif test $ol_enable_kbind = no ; then
3743 if test $ol_with_kerberos = auto ; then
3745 elif test $ol_with_kerberos != no ; then
3746 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3747 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3752 if test $ol_enable_spasswd = yes ; then
3753 if test $ol_with_cyrus_sasl = no ; then
3754 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3755 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3756 { (exit 1); exit 1; }; }
3758 ol_with_cyrus_sasl=yes
3761 echo "$as_me:$LINENO: result: done" >&5
3762 echo "${ECHO_T}done" >&6
3808 BUILD_TRANSLUCENT=no
3812 SLAPD_STATIC_OVERLAYS=
3813 SLAPD_DYNAMIC_OVERLAYS=
3815 SLAPD_MODULES_LDFLAGS=
3816 SLAPD_MODULES_CPPFLAGS=
3818 SLAPD_STATIC_BACKENDS=back-ldif
3819 SLAPD_DYNAMIC_BACKENDS=
3845 cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_MKVERSION 1
3854 *-*-aix*) if test -z "$CC" ; then
3855 case "$ol_with_threads" in
3856 auto | yes | posix) ol_aix_threads=yes ;;
3862 if test $ol_aix_threads = yes ; then
3863 if test -z "${CC}" ; then
3864 for ac_prog in cc_r xlc_r cc
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_CC+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 if test -n "$CC"; then
3874 ac_cv_prog_CC="$CC" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_CC="$ac_prog"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 if test -n "$CC"; then
3894 echo "$as_me:$LINENO: result: $CC" >&5
3895 echo "${ECHO_T}$CC" >&6
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 test -n "$CC" && break
3905 if test "$CC" = cc ; then
3906 if test $ol_with_threads != auto ; then
3907 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3908 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3909 { (exit 1); exit 1; }; }
3911 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3912 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3918 case ${CC} in cc_r | xlc_r)
3919 ol_with_threads=posix
3920 ol_cv_pthread_create=yes
3925 if test -z "${CC}"; then
3926 for ac_prog in cc gcc
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_CC+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_CC="$ac_prog"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test -n "$CC"; then
3956 echo "$as_me:$LINENO: result: $CC" >&5
3957 echo "${ECHO_T}$CC" >&6
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 test -n "$CC" && break
3965 test -n "$CC" || CC="missing"
3968 if test "${CC}" = "missing" ; then
3969 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3970 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3971 { (exit 1); exit 1; }; }
3975 if test -z "${AR}"; then
3976 for ac_prog in ar gar
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_AR+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test -n "$AR"; then
3986 ac_cv_prog_AR="$AR" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_AR="$ac_prog"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$AR"; then
4006 echo "$as_me:$LINENO: result: $AR" >&5
4007 echo "${ECHO_T}$AR" >&6
4009 echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4013 test -n "$AR" && break
4015 test -n "$AR" || AR="missing"
4018 if test "${AR}" = "missing" ; then
4019 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4020 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4021 { (exit 1); exit 1; }; }
4029 # Check whether --enable-fast-install or --disable-fast-install was given.
4030 if test "${enable_fast_install+set}" = set; then
4031 enableval="$enable_fast_install"
4032 p=${PACKAGE-default}
4034 yes) enable_fast_install=yes ;;
4035 no) enable_fast_install=no ;;
4037 enable_fast_install=no
4038 # Look at the argument we got. We use all the common list separators.
4039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040 for pkg in $enableval; do
4042 if test "X$pkg" = "X$p"; then
4043 enable_fast_install=yes
4050 enable_fast_install=yes
4053 DEPDIR="${am__leading_dot}deps"
4055 ac_config_commands="$ac_config_commands depfiles"
4058 am_make=${MAKE-make}
4059 cat > confinc << 'END'
4064 # If we don't find an include directive, just comment out the code.
4065 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4066 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4070 # First try GNU make style include.
4071 echo "include confinc" > confmf
4072 # We grep out `Entering directory' and `Leaving directory'
4073 # messages which can occur if `w' ends up in MAKEFLAGS.
4074 # In particular we don't look at `^make:' because GNU make might
4075 # be invoked under some other name (usually "gmake"), in which
4076 # case it prints its new name instead of `make'.
4077 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4082 # Now try BSD make style include.
4083 if test "$am__include" = "#"; then
4084 echo '.include "confinc"' > confmf
4085 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4086 am__include=.include
4093 echo "$as_me:$LINENO: result: $_am_result" >&5
4094 echo "${ECHO_T}$_am_result" >&6
4095 rm -f confinc confmf
4097 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4098 if test "${enable_dependency_tracking+set}" = set; then
4099 enableval="$enable_dependency_tracking"
4102 if test "x$enable_dependency_tracking" != xno; then
4103 am_depcomp="$ac_aux_dir/depcomp"
4108 if test "x$enable_dependency_tracking" != xno; then
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 if test -n "$CC"; then
4152 echo "$as_me:$LINENO: result: $CC" >&5
4153 echo "${ECHO_T}$CC" >&6
4155 echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4160 if test -z "$ac_cv_prog_CC"; then
4162 # Extract the first word of "gcc", so it can be a program name with args.
4163 set dummy gcc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$ac_ct_CC"; then
4170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_CC="gcc"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4189 if test -n "$ac_ct_CC"; then
4190 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4191 echo "${ECHO_T}$ac_ct_CC" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4202 if test -z "$CC"; then
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}cc; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_CC+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_CC="${ac_tool_prefix}cc"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 if test -n "$CC"; then
4232 echo "$as_me:$LINENO: result: $CC" >&5
4233 echo "${ECHO_T}$CC" >&6
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4240 if test -z "$ac_cv_prog_CC"; then
4242 # Extract the first word of "cc", so it can be a program name with args.
4243 set dummy cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="cc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4271 echo "${ECHO_T}$ac_ct_CC" >&6
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4283 if test -z "$CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 if test $ac_prog_rejected = yes; then
4314 # We found a bogon in the path, so make sure we never use it.
4315 set dummy $ac_cv_prog_CC
4317 if test $# != 0; then
4318 # We chose a different compiler from the bogus one.
4319 # However, it has the same basename, so the bogon will be chosen
4320 # first if we set CC to just the basename; use the full file name.
4322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4328 if test -n "$CC"; then
4329 echo "$as_me:$LINENO: result: $CC" >&5
4330 echo "${ECHO_T}$CC" >&6
4332 echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4337 if test -z "$CC"; then
4338 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_CC+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$CC"; then
4349 ac_cv_prog_CC="$CC" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 if test -n "$CC"; then
4369 echo "$as_me:$LINENO: result: $CC" >&5
4370 echo "${ECHO_T}$CC" >&6
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4376 test -n "$CC" && break
4379 if test -z "$CC"; then
4383 # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$ac_ct_CC"; then
4391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_ac_ct_CC="$ac_prog"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4410 if test -n "$ac_ct_CC"; then
4411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4412 echo "${ECHO_T}$ac_ct_CC" >&6
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4418 test -n "$ac_ct_CC" && break
4427 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4428 See \`config.log' for more details." >&5
4429 echo "$as_me: error: no acceptable C compiler found in \$PATH
4430 See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }
4433 # Provide some information about the compiler.
4434 echo "$as_me:$LINENO:" \
4435 "checking for C compiler version" >&5
4436 ac_compiler=`set X $ac_compile; echo $2`
4437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4438 (eval $ac_compiler --version </dev/null >&5) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }
4442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4443 (eval $ac_compiler -v </dev/null >&5) 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }
4447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4448 (eval $ac_compiler -V </dev/null >&5) 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4468 ac_clean_files_save=$ac_clean_files
4469 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4470 # Try to create an executable without -o first, disregard a.out.
4471 # It will help us diagnose broken compilers, and finding out an intuition
4473 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4474 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4475 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4477 (eval $ac_link_default) 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; then
4481 # Find the output, starting from the most likely. This scheme is
4482 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4485 # Be careful to initialize this variable, since it used to be cached.
4486 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4488 # b.out is created by i960 compilers.
4489 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4491 test -f "$ac_file" || continue
4493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4496 # This is the source file.
4499 # We found the default executable, but exeext='' is most
4503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4504 # FIXME: I believe we export ac_cv_exeext for Libtool,
4505 # but it would be cool to find out if it's true. Does anybody
4506 # maintain Libtool? --akim.
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4518 See \`config.log' for more details." >&5
4519 echo "$as_me: error: C compiler cannot create executables
4520 See \`config.log' for more details." >&2;}
4521 { (exit 77); exit 77; }; }
4524 ac_exeext=$ac_cv_exeext
4525 echo "$as_me:$LINENO: result: $ac_file" >&5
4526 echo "${ECHO_T}$ac_file" >&6
4528 # Check the compiler produces executables we can run. If not, either
4529 # the compiler is broken, or we cross compile.
4530 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4531 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4533 # If not cross compiling, check that we can run a simple program.
4534 if test "$cross_compiling" != yes; then
4535 if { ac_try='./$ac_file'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 if test "$cross_compiling" = maybe; then
4546 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4547 If you meant to cross compile, use \`--host'.
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: cannot run C compiled programs.
4550 If you meant to cross compile, use \`--host'.
4551 See \`config.log' for more details." >&2;}
4552 { (exit 1); exit 1; }; }
4556 echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4559 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 # Check the compiler produces executables we can run. If not, either
4562 # the compiler is broken, or we cross compile.
4563 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4564 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4565 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4566 echo "${ECHO_T}$cross_compiling" >&6
4568 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4569 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4577 # work properly (i.e., refer to `conftest.exe'), while it won't with
4579 for ac_file in conftest.exe conftest conftest.*; do
4580 test -f "$ac_file" || continue
4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4590 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; }
4597 rm -f conftest$ac_cv_exeext
4598 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4599 echo "${ECHO_T}$ac_cv_exeext" >&6
4601 rm -f conftest.$ac_ext
4602 EXEEXT=$ac_cv_exeext
4604 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4605 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4606 if test "${ac_cv_objext+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cat >conftest.$ac_ext <<_ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4624 rm -f conftest.o conftest.obj
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; then
4630 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4651 echo "${ECHO_T}$ac_cv_objext" >&6
4652 OBJEXT=$ac_cv_objext
4654 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4710 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4712 GCC=`test $ac_compiler_gnu = yes && echo yes`
4713 ac_test_CFLAGS=${CFLAGS+set}
4714 ac_save_CFLAGS=$CFLAGS
4716 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_cc_g+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4769 if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4778 if test "$GCC" = yes; then
4784 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4785 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4786 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_cv_prog_cc_stdc=no
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4799 #include <sys/types.h>
4800 #include <sys/stat.h>
4801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4802 struct buf { int x; };
4803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4804 static char *e (p, i)
4810 static char *f (char * (*g) (char **, int), char **p, ...)
4815 s = g (p, va_arg (v,int));
4820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4821 function prototypes and stuff, but not '\xHH' hex character constants.
4822 These don't provoke an error unfortunately, instead are silently treated
4823 as 'x'. The following induces an error, until -std1 is added to get
4824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4825 array size at least. It's necessary to write '\x00'==0 to get something
4826 that's true only with -std1. */
4827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4829 int test (int i, double x);
4830 struct s1 {int (*f) (int a);};
4831 struct s2 {int (*f) (double a);};
4832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4838 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4843 # Don't try gcc -ansi; that turns off useful extensions and
4844 # breaks some systems' header files.
4845 # AIX -qlanglvl=ansi
4846 # Ultrix and OSF/1 -std1
4847 # HP-UX 10.20 and later -Ae
4848 # HP-UX older versions -Aa -D_HPUX_SOURCE
4849 # SVR4 -Xc -D__EXTENSIONS__
4850 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4852 CC="$ac_save_CC $ac_arg"
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_prog_cc_stdc=$ac_arg
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 rm -f conftest.err conftest.$ac_objext
4884 rm -f conftest.$ac_ext conftest.$ac_objext
4889 case "x$ac_cv_prog_cc_stdc" in
4891 echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6 ;;
4894 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4895 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4896 CC="$CC $ac_cv_prog_cc_stdc" ;;
4899 # Some people use a C++ compiler to compile C. Since we use `exit',
4900 # in C++ we need to declare it. In case someone uses the same compiler
4901 # for both compiling C and C++ we need to have the C++ compiler decide
4902 # the declaration of exit, since it's the most demanding environment.
4903 cat >conftest.$ac_ext <<_ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 for ac_declaration in \
4932 'extern "C" void std::exit (int) throw (); using std::exit;' \
4933 'extern "C" void std::exit (int); using std::exit;' \
4934 'extern "C" void exit (int) throw ();' \
4935 'extern "C" void exit (int);' \
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4999 rm -f conftest.$ac_objext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } &&
5008 { ac_try='test -z "$ac_c_werror_flag"
5009 || test ! -s conftest.err'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; } &&
5015 { ac_try='test -s conftest.$ac_objext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030 if test -n "$ac_declaration"; then
5031 echo '#ifdef __cplusplus' >>confdefs.h
5032 echo $ac_declaration >>confdefs.h
5033 echo '#endif' >>confdefs.h
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048 depcc="$CC" am_compiler_list=
5050 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5056 # We make a subdir and do the tests there. Otherwise we can end up
5057 # making bogus files that we don't know about and never remove. For
5058 # instance it was reported that on HP-UX the gcc test will end up
5059 # making a dummy file named `D' -- because `-MD' means `put the output
5062 # Copy depcomp to subdir because otherwise we won't find it if we're
5063 # using a relative directory.
5064 cp "$am_depcomp" conftest.dir
5066 # We will build objects and dependencies in a subdirectory because
5067 # it helps to detect inapplicable dependency modes. For instance
5068 # both Tru64's cc and ICC support -MD to output dependencies as a
5069 # side effect of compilation, but ICC will put the dependencies in
5070 # the current directory while Tru64 will put them in the object
5074 am_cv_CC_dependencies_compiler_type=none
5075 if test "$am_compiler_list" = ""; then
5076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5078 for depmode in $am_compiler_list; do
5079 # Setup a source with many dependencies, because some compilers
5080 # like to wrap large dependency lists on column 80 (with \), and
5081 # we should not choose a depcomp mode which is confused by this.
5083 # We need to recreate these files for each test, as the compiler may
5084 # overwrite some of them when testing with obscure command lines.
5085 # This happens at least with the AIX C compiler.
5087 for i in 1 2 3 4 5 6; do
5088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090 # Solaris 8's {/usr,}/bin/sh.
5091 touch sub/conftst$i.h
5093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5097 # after this tag, mechanisms are not by side-effect, so they'll
5098 # only be used when explicitly requested
5099 if test "x$enable_dependency_tracking" = xyes; then
5107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5108 # mode. It turns out that the SunPro C++ compiler does not properly
5109 # handle `-M -o', and we need to detect this.
5110 if depmode=$depmode \
5111 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5113 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5114 >/dev/null 2>conftest.err &&
5115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5116 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5118 # icc doesn't choke on unknown options, it will just issue warnings
5119 # or remarks (even with -Werror). So we grep stderr for any message
5120 # that says an option was ignored or not supported.
5121 # When given -MP, icc 7.0 and 7.1 complain thusly:
5122 # icc: Command line warning: ignoring option '-M'; no argument required
5123 # The diagnosis changed in icc 8.0:
5124 # icc: Command line remark: option '-MP' not supported
5125 if (grep 'ignoring option' conftest.err ||
5126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5127 am_cv_CC_dependencies_compiler_type=$depmode
5136 am_cv_CC_dependencies_compiler_type=none
5140 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5141 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5147 test "x$enable_dependency_tracking" != xno \
5148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5150 am__fastdepCC_FALSE='#'
5152 am__fastdepCC_TRUE='#'
5153 am__fastdepCC_FALSE=
5157 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5158 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5159 if test "${lt_cv_path_SED+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 # Loop through the user's path and test for sed and gsed.
5163 # Then use that list of sed's as ones to test for truncation.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for lt_ac_prog in sed gsed; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5172 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5179 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5180 # along with /bin/sed that truncates output.
5181 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5182 test ! -f $lt_ac_sed && continue
5183 cat /dev/null > conftest.in
5185 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5186 # Check for GNU sed and select it if it is found.
5187 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5188 lt_cv_path_SED=$lt_ac_sed
5192 cat conftest.in conftest.in >conftest.tmp
5193 mv conftest.tmp conftest.in
5194 cp conftest.in conftest.nl
5196 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5197 cmp -s conftest.out conftest.nl || break
5198 # 10000 chars as input seems more than enough
5199 test $lt_ac_count -gt 10 && break
5200 lt_ac_count=`expr $lt_ac_count + 1`
5201 if test $lt_ac_count -gt $lt_ac_max; then
5202 lt_ac_max=$lt_ac_count
5203 lt_cv_path_SED=$lt_ac_sed
5211 echo "$as_me:$LINENO: result: $SED" >&5
5212 echo "${ECHO_T}$SED" >&6
5214 echo "$as_me:$LINENO: checking for egrep" >&5
5215 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5216 if test "${ac_cv_prog_egrep+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5220 then ac_cv_prog_egrep='grep -E'
5221 else ac_cv_prog_egrep='egrep'
5224 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5225 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5226 EGREP=$ac_cv_prog_egrep
5230 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5231 if test "${with_gnu_ld+set}" = set; then
5232 withval="$with_gnu_ld"
5233 test "$withval" = no || with_gnu_ld=yes
5238 if test "$GCC" = yes; then
5239 # Check if gcc -print-prog-name=ld gives a path.
5240 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5241 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5244 # gcc leaves a trailing carriage return which upsets mingw
5245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5250 # Accept absolute paths.
5252 re_direlt='/[^/][^/]*/\.\./'
5253 # Canonicalize the pathname of ld
5254 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5256 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5258 test -z "$LD" && LD="$ac_prog"
5261 # If it fails, then pretend we aren't using GCC.
5265 # If it is relative, then search for the first ld in PATH.
5269 elif test "$with_gnu_ld" = yes; then
5270 echo "$as_me:$LINENO: checking for GNU ld" >&5
5271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5273 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5276 if test "${lt_cv_path_LD+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -z "$LD"; then
5280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5281 for ac_dir in $PATH; do
5283 test -z "$ac_dir" && ac_dir=.
5284 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5285 lt_cv_path_LD="$ac_dir/$ac_prog"
5286 # Check to see if the program is GNU ld. I'd rather use --version,
5287 # but apparently some variants of GNU ld only accept -v.
5288 # Break only if it was the GNU/non-GNU ld that we prefer.
5289 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5290 *GNU* | *'with BFD'*)
5291 test "$with_gnu_ld" != no && break
5294 test "$with_gnu_ld" != yes && break
5301 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5306 if test -n "$LD"; then
5307 echo "$as_me:$LINENO: result: $LD" >&5
5308 echo "${ECHO_T}$LD" >&6
5310 echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5315 { (exit 1); exit 1; }; }
5316 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5318 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5322 case `$LD -v 2>&1 </dev/null` in
5323 *GNU* | *'with BFD'*)
5324 lt_cv_prog_gnu_ld=yes
5327 lt_cv_prog_gnu_ld=no
5331 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5333 with_gnu_ld=$lt_cv_prog_gnu_ld
5336 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5337 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5338 if test "${lt_cv_ld_reload_flag+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 lt_cv_ld_reload_flag='-r'
5343 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5344 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5345 reload_flag=$lt_cv_ld_reload_flag
5346 case $reload_flag in
5348 *) reload_flag=" $reload_flag" ;;
5350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5353 if test "$GCC" = yes; then
5354 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5356 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5362 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5363 if test "${lt_cv_path_NM+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 if test -n "$NM"; then
5367 # Let the user override the test.
5370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5371 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5373 test -z "$ac_dir" && ac_dir=.
5374 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5376 # Check to see if the nm accepts a BSD-compat flag.
5377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5378 # nm: unknown option "B" ignored
5379 # Tru64's nm complains that /dev/null is an invalid object file
5380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5381 */dev/null* | *'Invalid file or object type'*)
5382 lt_cv_path_NM="$tmp_nm -B"
5386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5388 lt_cv_path_NM="$tmp_nm -p"
5392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5393 continue # so that we can try to find one that supports BSD flags
5400 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5403 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5404 echo "${ECHO_T}$lt_cv_path_NM" >&6
5407 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5408 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5410 if test "$LN_S" = "ln -s"; then
5411 echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6
5414 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5415 echo "${ECHO_T}no, using $LN_S" >&6
5418 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5419 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5420 if test "${lt_cv_deplibs_check_method+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 lt_cv_file_magic_cmd='$MAGIC_CMD'
5424 lt_cv_file_magic_test_file=
5425 lt_cv_deplibs_check_method='unknown'
5426 # Need to set the preceding variable on all platforms that support
5427 # interlibrary dependencies.
5428 # 'none' -- dependencies not supported.
5429 # `unknown' -- same as none, but documents that we really don't know.
5430 # 'pass_all' -- all dependencies passed with no checks.
5431 # 'test_compile' -- check by making test program.
5432 # 'file_magic [[regex]]' -- check by looking for files in library path
5433 # which responds to the $file_magic_cmd with a given extended regex.
5434 # If you have `file' or equivalent on your system and you're not sure
5435 # whether `pass_all' will *always* work, you probably want this one.
5439 lt_cv_deplibs_check_method=pass_all
5443 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5448 lt_cv_file_magic_cmd='/usr/bin/file -L'
5449 lt_cv_file_magic_test_file=/shlib/libc.so
5453 # func_win32_libid is a shell function defined in ltmain.sh
5454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5455 lt_cv_file_magic_cmd='func_win32_libid'
5459 # Base MSYS/MinGW do not provide the 'file' command needed by
5460 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5461 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5462 lt_cv_file_magic_cmd='$OBJDUMP -f'
5465 darwin* | rhapsody*)
5466 lt_cv_deplibs_check_method=pass_all
5469 freebsd* | kfreebsd*-gnu | dragonfly*)
5470 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5473 # Not sure whether the presence of OpenBSD here was a mistake.
5474 # Let's accept both of them until this is cleared up.
5475 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5476 lt_cv_file_magic_cmd=/usr/bin/file
5477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5481 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5489 hpux10.20* | hpux11*)
5490 lt_cv_file_magic_cmd=/usr/bin/file
5493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5497 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]'
5498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5502 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5507 irix5* | irix6* | nonstopux*)
5509 *-32|*"-32 ") libmagic=32-bit;;
5510 *-n32|*"-n32 ") libmagic=N32;;
5511 *-64|*"-64 ") libmagic=64-bit;;
5512 *) libmagic=never-match;;
5514 lt_cv_deplibs_check_method=pass_all
5517 # This must be Linux ELF.
5519 lt_cv_deplibs_check_method=pass_all
5523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5532 lt_cv_file_magic_cmd=/usr/bin/file
5533 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5537 lt_cv_deplibs_check_method=unknown
5541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548 osf3* | osf4* | osf5*)
5549 lt_cv_deplibs_check_method=pass_all
5553 lt_cv_deplibs_check_method=pass_all
5557 lt_cv_deplibs_check_method=pass_all
5560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5561 case $host_vendor in
5563 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]'
5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5567 lt_cv_deplibs_check_method=pass_all
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576 lt_cv_file_magic_test_file=/lib/libc.so
5579 lt_cv_deplibs_check_method=pass_all
5584 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5585 lt_cv_deplibs_check_method=pass_all
5590 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5591 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5592 file_magic_cmd=$lt_cv_file_magic_cmd
5593 deplibs_check_method=$lt_cv_deplibs_check_method
5594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5599 # If no C compiler was specified, use CC.
5602 # Allow CC to be a program name with arguments.
5606 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5607 if test "${enable_libtool_lock+set}" = set; then
5608 enableval="$enable_libtool_lock"
5611 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5613 # Some flags need to be propagated to the compiler or linker for good
5617 # Find out which ABI we are using.
5618 echo 'int i;' > conftest.$ac_ext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; then
5624 case `/usr/bin/file conftest.$ac_objext` in
5636 # Find out which ABI we are using.
5637 echo '#line 5637 "configure"' > conftest.$ac_ext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; then
5643 if test "$lt_cv_prog_gnu_ld" = yes; then
5644 case `/usr/bin/file conftest.$ac_objext` in
5646 LD="${LD-ld} -melf32bsmip"
5649 LD="${LD-ld} -melf32bmipn32"
5652 LD="${LD-ld} -melf64bmip"
5656 case `/usr/bin/file conftest.$ac_objext` in
5672 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5673 # Find out which ABI we are using.
5674 echo 'int i;' > conftest.$ac_ext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; then
5680 case `/usr/bin/file conftest.o` in
5684 LD="${LD-ld} -m elf_i386"
5686 ppc64-*linux*|powerpc64-*linux*)
5687 LD="${LD-ld} -m elf32ppclinux"
5690 LD="${LD-ld} -m elf_s390"
5693 LD="${LD-ld} -m elf32_sparc"
5700 LD="${LD-ld} -m elf_x86_64"
5702 ppc*-*linux*|powerpc*-*linux*)
5703 LD="${LD-ld} -m elf64ppc"
5706 LD="${LD-ld} -m elf64_s390"
5709 LD="${LD-ld} -m elf64_sparc"
5719 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5720 SAVE_CFLAGS="$CFLAGS"
5721 CFLAGS="$CFLAGS -belf"
5722 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5723 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5724 if test "${lt_cv_cc_needs_belf+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 lt_cv_cc_needs_belf=yes
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 lt_cv_cc_needs_belf=no
5777 rm -f conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
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
5786 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5787 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5788 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5789 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5790 CFLAGS="$SAVE_CFLAGS"
5793 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 if test -n "$DLLTOOL"; then
5803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 DLLTOOL=$ac_cv_prog_DLLTOOL
5822 if test -n "$DLLTOOL"; then
5823 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5824 echo "${ECHO_T}$DLLTOOL" >&6
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5831 if test -z "$ac_cv_prog_DLLTOOL"; then
5832 ac_ct_DLLTOOL=$DLLTOOL
5833 # Extract the first word of "dlltool", so it can be a program name with args.
5834 set dummy dlltool; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test -n "$ac_ct_DLLTOOL"; then
5841 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5860 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5861 if test -n "$ac_ct_DLLTOOL"; then
5862 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5863 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5869 DLLTOOL=$ac_ct_DLLTOOL
5871 DLLTOOL="$ac_cv_prog_DLLTOOL"
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}as; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_AS+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$AS"; then
5883 ac_cv_prog_AS="$AS" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_AS="${ac_tool_prefix}as"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 if test -n "$AS"; then
5903 echo "$as_me:$LINENO: result: $AS" >&5
5904 echo "${ECHO_T}$AS" >&6
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5911 if test -z "$ac_cv_prog_AS"; then
5913 # Extract the first word of "as", so it can be a program name with args.
5914 set dummy as; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$ac_ct_AS"; then
5921 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_AS="as"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5940 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5941 if test -n "$ac_ct_AS"; then
5942 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5943 echo "${ECHO_T}$ac_ct_AS" >&6
5945 echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 if test -n "$OBJDUMP"; then
5963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5984 echo "${ECHO_T}$OBJDUMP" >&6
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5991 if test -z "$ac_cv_prog_OBJDUMP"; then
5992 ac_ct_OBJDUMP=$OBJDUMP
5993 # Extract the first word of "objdump", so it can be a program name with args.
5994 set dummy objdump; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$ac_ct_OBJDUMP"; then
6001 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6020 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6023 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6025 echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6029 OBJDUMP=$ac_ct_OBJDUMP
6031 OBJDUMP="$ac_cv_prog_OBJDUMP"
6038 need_locks="$enable_libtool_lock"
6042 ac_cpp='$CPP $CPPFLAGS'
6043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6048 # On Suns, sometimes $CPP names a directory.
6049 if test -n "$CPP" && test -d "$CPP"; then
6052 if test -z "$CPP"; then
6053 if test "${ac_cv_prog_CPP+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 # Double quotes because CPP needs to be expanded
6057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6060 for ac_c_preproc_warn_flag in '' yes
6062 # Use a header file that comes with gcc, so configuring glibc
6063 # with a fresh cross-compiler works.
6064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065 # <limits.h> exists even on freestanding compilers.
6066 # On the NeXT, cc -E runs the code through the compiler's parser,
6067 # not just through cpp. "Syntax error" is here to catch this case.
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6075 # include <limits.h>
6077 # include <assert.h>
6081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6084 grep -v '^ *+' conftest.er1 >conftest.err
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } >/dev/null; then
6089 if test -s conftest.err; then
6090 ac_cpp_err=$ac_c_preproc_warn_flag
6091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6098 if test -z "$ac_cpp_err"; then
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6104 # Broken: fails on valid input.
6107 rm -f conftest.err conftest.$ac_ext
6109 # OK, works on sane cases. Now check whether non-existent headers
6110 # can be detected and how.
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #include <ac_nonexistent.h>
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null; then
6127 if test -s conftest.err; then
6128 ac_cpp_err=$ac_c_preproc_warn_flag
6129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6136 if test -z "$ac_cpp_err"; then
6137 # Broken: success on invalid input.
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 # Passes both tests.
6147 rm -f conftest.err conftest.$ac_ext
6150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6151 rm -f conftest.err conftest.$ac_ext
6152 if $ac_preproc_ok; then
6164 echo "$as_me:$LINENO: result: $CPP" >&5
6165 echo "${ECHO_T}$CPP" >&6
6167 for ac_c_preproc_warn_flag in '' yes
6169 # Use a header file that comes with gcc, so configuring glibc
6170 # with a fresh cross-compiler works.
6171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172 # <limits.h> exists even on freestanding compilers.
6173 # On the NeXT, cc -E runs the code through the compiler's parser,
6174 # not just through cpp. "Syntax error" is here to catch this case.
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6182 # include <limits.h>
6184 # include <assert.h>
6188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } >/dev/null; then
6196 if test -s conftest.err; then
6197 ac_cpp_err=$ac_c_preproc_warn_flag
6198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6205 if test -z "$ac_cpp_err"; then
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 # Broken: fails on valid input.
6214 rm -f conftest.err conftest.$ac_ext
6216 # OK, works on sane cases. Now check whether non-existent headers
6217 # can be detected and how.
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #include <ac_nonexistent.h>
6226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } >/dev/null; then
6234 if test -s conftest.err; then
6235 ac_cpp_err=$ac_c_preproc_warn_flag
6236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6243 if test -z "$ac_cpp_err"; then
6244 # Broken: success on invalid input.
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 # Passes both tests.
6254 rm -f conftest.err conftest.$ac_ext
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6262 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6263 See \`config.log' for more details." >&5
6264 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6265 See \`config.log' for more details." >&2;}
6266 { (exit 1); exit 1; }; }
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6278 if test "${ac_cv_header_stdc+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_header_stdc=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_cv_header_stdc=no
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331 if test $ac_cv_header_stdc = yes; then
6332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "memchr" >/dev/null 2>&1; then
6346 ac_cv_header_stdc=no
6352 if test $ac_cv_header_stdc = yes; then
6353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6364 $EGREP "free" >/dev/null 2>&1; then
6367 ac_cv_header_stdc=no
6373 if test $ac_cv_header_stdc = yes; then
6374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6375 if test "$cross_compiling" = yes; then
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 #if ((' ' & 0x0FF) == 0x020)
6386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6389 # define ISLOWER(c) \
6390 (('a' <= (c) && (c) <= 'i') \
6391 || ('j' <= (c) && (c) <= 'r') \
6392 || ('s' <= (c) && (c) <= 'z'))
6393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6401 for (i = 0; i < 256; i++)
6402 if (XOR (islower (i), ISLOWER (i))
6403 || toupper (i) != TOUPPER (i))
6408 rm -f conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6421 echo "$as_me: program exited with status $ac_status" >&5
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_cv_header_stdc=no
6428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6434 if test $ac_cv_header_stdc = yes; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define STDC_HEADERS 1
6442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6453 inttypes.h stdint.h unistd.h
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 $ac_includes_default
6469 #include <$ac_header>
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 eval "$as_ac_Header=yes"
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 eval "$as_ac_Header=no"
6500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 for ac_header in dlfcn.h
6517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo "$as_me:$LINENO: checking for $ac_header" >&5
6520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527 # Is the header compilable?
6528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 $ac_includes_default
6537 #include <$ac_header>
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_c_werror_flag"
6549 || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_header_compiler=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_header_compiler=no
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6570 echo "${ECHO_T}$ac_header_compiler" >&6
6572 # Is the header present?
6573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <$ac_header>
6583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null; then
6591 if test -s conftest.err; then
6592 ac_cpp_err=$ac_c_preproc_warn_flag
6593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6600 if test -z "$ac_cpp_err"; then
6601 ac_header_preproc=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_preproc=no
6608 rm -f conftest.err conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6610 echo "${ECHO_T}$ac_header_preproc" >&6
6612 # So? What about this header?
6613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6619 ac_header_preproc=yes
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6636 ## --------------------------------------------- ##
6637 ## Report this to <http://www.openldap.org/its/> ##
6638 ## --------------------------------------------- ##
6641 sed "s/^/$as_me: WARNING: /" >&2
6644 echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 eval "$as_ac_Header=\$ac_header_preproc"
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6656 cat >>confdefs.h <<_ACEOF
6657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6667 # find the maximum length of command line arguments
6668 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6669 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6670 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 # On DJGPP, this test can blow up pretty badly due to problems in libc
6679 # (any single argument exceeding 2000 bytes causes a buffer overrun
6680 # during glob expansion). Even if it were fixed, the result of this
6681 # check would be larger than it should be.
6682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6686 # Under GNU Hurd, this test is not required because there is
6687 # no limit to the length of command line arguments.
6688 # Libtool will interpret -1 as no limit whatsoever
6689 lt_cv_sys_max_cmd_len=-1;
6693 # On Win9x/ME, this test blows up -- it succeeds, but takes
6694 # about 5 minutes as the teststring grows exponentially.
6695 # Worse, since 9x/ME are not pre-emptively multitasking,
6696 # you end up with a "frozen" computer, even though with patience
6697 # the test eventually succeeds (with a max line length of 256k).
6698 # Instead, let's just punt: use the minimum linelength reported by
6699 # all of the supported platforms: 8192 (on NT/2K/XP).
6700 lt_cv_sys_max_cmd_len=8192;
6704 # On AmigaOS with pdksh, this test takes hours, literally.
6705 # So we just punt and use a minimum line length of 8192.
6706 lt_cv_sys_max_cmd_len=8192;
6709 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6710 # This has been around since 386BSD, at least. Likely further.
6711 if test -x /sbin/sysctl; then
6712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6713 elif test -x /usr/sbin/sysctl; then
6714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6718 # And add a safety zone
6719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6723 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6724 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6725 # nice to cause kernel panics so lets avoid the loop below.
6726 # First set a reasonable default.
6727 lt_cv_sys_max_cmd_len=16384
6729 if test -x /sbin/sysconfig; then
6730 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6731 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6736 # If test is not a shell built-in, we'll probably end up computing a
6737 # maximum length that is only half of the actual maximum length, but
6739 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6740 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6741 = "XX$teststring") >/dev/null 2>&1 &&
6742 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6743 lt_cv_sys_max_cmd_len=$new_result &&
6744 test $i != 17 # 1/2 MB should be enough
6747 teststring=$teststring$teststring
6750 # Add a significant safety factor because C++ compilers can tack on massive
6751 # amounts of additional arguments before passing them to the linker.
6752 # It appears as though 1/2 is a usable value.
6753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6759 if test -n $lt_cv_sys_max_cmd_len ; then
6760 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6761 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6763 echo "$as_me:$LINENO: result: none" >&5
6764 echo "${ECHO_T}none" >&6
6770 # Check for command to grab the raw symbol name followed by C symbol from nm.
6771 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6772 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6773 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 # These are sane defaults that work on at least a few old systems.
6778 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6780 # Character class describing NM global symbol codes.
6781 symcode='[BCDEGRST]'
6783 # Regexp to match symbols that can be accessed directly from C.
6784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6786 # Transform an extracted symbol line into a proper C declaration
6787 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6789 # Transform an extracted symbol line into symbol name and symbol address
6790 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'"
6792 # Define system-specific variables.
6797 cygwin* | mingw* | pw32*)
6798 symcode='[ABCDGISTW]'
6800 hpux*) # Its linker distinguishes data from code symbols
6801 if test "$host_cpu" = ia64; then
6802 symcode='[ABCDEGRST]'
6804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6805 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'"
6808 if test "$host_cpu" = ia64; then
6809 symcode='[ABCDGIRSTW]'
6810 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6811 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'"
6815 symcode='[BCDEGRST]'
6818 symcode='[BCDEGQRST]'
6828 # Handle CRLF in mingw tool chain
6832 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6836 # If we're using GNU nm, then use its standard symbol codes.
6837 case `$NM -V 2>&1` in
6838 *GNU* | *'with BFD'*)
6839 symcode='[ABCDGIRSTW]' ;;
6842 # Try without a prefix undercore, then with it.
6843 for ac_symprfx in "" "_"; do
6845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6846 symxfrm="\\1 $ac_symprfx\\2 \\2"
6848 # Write the raw and C identifiers.
6849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6851 # Check to see that the pipe works correctly.
6855 cat > conftest.$ac_ext <<EOF
6860 void nm_test_func(){}
6864 int main(){nm_test_var='a';nm_test_func();return(0);}
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 # Now try to grab the symbols.
6874 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6875 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && test -s "$nlist"; then
6879 # Try sorting and uniquifying the output.
6880 if sort "$nlist" | uniq > "$nlist"T; then
6881 mv -f "$nlist"T "$nlist"
6886 # Make sure that we snagged all the symbols we need.
6887 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6888 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6889 cat <<EOF > conftest.$ac_ext
6895 # Now generate the symbol file.
6896 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6898 cat <<EOF >> conftest.$ac_ext
6899 #if defined (__STDC__) && __STDC__
6900 # define lt_ptr_t void *
6902 # define lt_ptr_t char *
6906 /* The mapping between symbol names and symbols. */
6911 lt_preloaded_symbols[] =
6914 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6915 cat <<\EOF >> conftest.$ac_ext
6923 # Now try linking the two files.
6924 mv conftest.$ac_objext conftstm.$ac_objext
6925 lt_save_LIBS="$LIBS"
6926 lt_save_CFLAGS="$CFLAGS"
6927 LIBS="conftstm.$ac_objext"
6928 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930 (eval $ac_link) 2>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6936 LIBS="$lt_save_LIBS"
6937 CFLAGS="$lt_save_CFLAGS"
6939 echo "cannot find nm_test_func in $nlist" >&5
6942 echo "cannot find nm_test_var in $nlist" >&5
6945 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6948 echo "$progname: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 rm -f conftest* conftst*
6953 # Do not use the global_symbol_pipe unless it works.
6954 if test "$pipe_works" = yes; then
6957 lt_cv_sys_global_symbol_pipe=
6963 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6964 lt_cv_sys_global_symbol_to_cdecl=
6966 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6967 echo "$as_me:$LINENO: result: failed" >&5
6968 echo "${ECHO_T}failed" >&6
6970 echo "$as_me:$LINENO: result: ok" >&5
6971 echo "${ECHO_T}ok" >&6
6974 echo "$as_me:$LINENO: checking for objdir" >&5
6975 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6976 if test "${lt_cv_objdir+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 rm -f .libs 2>/dev/null
6980 mkdir .libs 2>/dev/null
6981 if test -d .libs; then
6984 # MS-DOS does not allow filenames that begin with a dot.
6987 rmdir .libs 2>/dev/null
6989 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6990 echo "${ECHO_T}$lt_cv_objdir" >&6
6991 objdir=$lt_cv_objdir
6999 # AIX sometimes has problems with the GCC collect2 program. For some
7000 # reason, if we set the COLLECT_NAMES environment variable, the problems
7001 # vanish in a puff of smoke.
7002 if test "X${COLLECT_NAMES+set}" != Xset; then
7004 export COLLECT_NAMES
7009 # Sed substitution that helps us do robust quoting. It backslashifies
7010 # metacharacters that are still active within double-quoted strings.
7011 Xsed='sed -e 1s/^X//'
7012 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7014 # Same as above, but do not quote variable references.
7015 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7017 # Sed substitution to delay expansion of an escaped shell variable in a
7018 # double_quote_subst'ed string.
7019 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7021 # Sed substitution to avoid accidental globbing in evaled expressions
7022 no_glob_subst='s/\*/\\\*/g'
7028 default_ofile=libtool
7029 can_build_shared=yes
7031 # All known linkers require a `.a' archive for static linking (except MSVC,
7032 # which needs '.lib').
7034 ltmain="$ac_aux_dir/ltmain.sh"
7035 ofile="$default_ofile"
7036 with_gnu_ld="$lt_cv_prog_gnu_ld"
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}ar; ac_word=$2
7041 echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7043 if test "${ac_cv_prog_AR+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 if test -n "$AR"; then
7047 ac_cv_prog_AR="$AR" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_AR="${ac_tool_prefix}ar"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 if test -n "$AR"; then
7067 echo "$as_me:$LINENO: result: $AR" >&5
7068 echo "${ECHO_T}$AR" >&6
7070 echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7075 if test -z "$ac_cv_prog_AR"; then
7077 # Extract the first word of "ar", so it can be a program name with args.
7078 set dummy ar; ac_word=$2
7079 echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 if test -n "$ac_ct_AR"; then
7085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_ac_ct_AR="ar"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7105 if test -n "$ac_ct_AR"; then
7106 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7107 echo "${ECHO_T}$ac_ct_AR" >&6
7109 echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$RANLIB"; then
7127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 RANLIB=$ac_cv_prog_RANLIB
7146 if test -n "$RANLIB"; then
7147 echo "$as_me:$LINENO: result: $RANLIB" >&5
7148 echo "${ECHO_T}$RANLIB" >&6
7150 echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_ac_ct_RANLIB="ranlib"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7189 echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6
7193 RANLIB=$ac_ct_RANLIB
7195 RANLIB="$ac_cv_prog_RANLIB"
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}strip; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_STRIP+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test -n "$STRIP"; then
7207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 STRIP=$ac_cv_prog_STRIP
7226 if test -n "$STRIP"; then
7227 echo "$as_me:$LINENO: result: $STRIP" >&5
7228 echo "${ECHO_T}$STRIP" >&6
7230 echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7235 if test -z "$ac_cv_prog_STRIP"; then
7237 # Extract the first word of "strip", so it can be a program name with args.
7238 set dummy strip; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$ac_ct_STRIP"; then
7245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_STRIP="strip"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7265 if test -n "$ac_ct_STRIP"; then
7266 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7267 echo "${ECHO_T}$ac_ct_STRIP" >&6
7269 echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7275 STRIP="$ac_cv_prog_STRIP"
7280 old_CFLAGS="$CFLAGS"
7282 # Set sane defaults for various variables
7283 test -z "$AR" && AR=ar
7284 test -z "$AR_FLAGS" && AR_FLAGS=cru
7285 test -z "$AS" && AS=as
7286 test -z "$CC" && CC=cc
7287 test -z "$LTCC" && LTCC=$CC
7288 test -z "$DLLTOOL" && DLLTOOL=dlltool
7289 test -z "$LD" && LD=ld
7290 test -z "$LN_S" && LN_S="ln -s"
7291 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7292 test -z "$NM" && NM=nm
7293 test -z "$SED" && SED=sed
7294 test -z "$OBJDUMP" && OBJDUMP=objdump
7295 test -z "$RANLIB" && RANLIB=:
7296 test -z "$STRIP" && STRIP=:
7297 test -z "$ac_objext" && ac_objext=o
7299 # Determine commands to create old-style static archives.
7300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7301 old_postinstall_cmds='chmod 644 $oldlib'
7302 old_postuninstall_cmds=
7304 if test -n "$RANLIB"; then
7307 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7310 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7313 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7316 for cc_temp in $compiler""; do
7318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7327 # Only perform the check for file, if the check method requires it
7328 case $deplibs_check_method in
7330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7331 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7332 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7341 lt_save_MAGIC_CMD="$MAGIC_CMD"
7342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7344 for ac_dir in $ac_dummy; do
7346 test -z "$ac_dir" && ac_dir=.
7347 if test -f $ac_dir/${ac_tool_prefix}file; then
7348 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7349 if test -n "$file_magic_test_file"; then
7350 case $deplibs_check_method in
7352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7355 $EGREP "$file_magic_regex" > /dev/null; then
7360 *** Warning: the command libtool uses to detect shared libraries,
7361 *** $file_magic_cmd, produces output that libtool cannot recognize.
7362 *** The result is that libtool may fail to recognize shared libraries
7363 *** as such. This will affect the creation of libtool libraries that
7364 *** depend on shared libraries, but programs linked with such libtool
7365 *** libraries will work regardless of this problem. Nevertheless, you
7366 *** may want to report the problem to your system manager and/or to
7367 *** bug-libtool@gnu.org
7377 MAGIC_CMD="$lt_save_MAGIC_CMD"
7382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383 if test -n "$MAGIC_CMD"; then
7384 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7385 echo "${ECHO_T}$MAGIC_CMD" >&6
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7391 if test -z "$lt_cv_path_MAGIC_CMD"; then
7392 if test -n "$ac_tool_prefix"; then
7393 echo "$as_me:$LINENO: checking for file" >&5
7394 echo $ECHO_N "checking for file... $ECHO_C" >&6
7395 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7403 lt_save_MAGIC_CMD="$MAGIC_CMD"
7404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406 for ac_dir in $ac_dummy; do
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f $ac_dir/file; then
7410 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7411 if test -n "$file_magic_test_file"; then
7412 case $deplibs_check_method in
7414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417 $EGREP "$file_magic_regex" > /dev/null; then
7422 *** Warning: the command libtool uses to detect shared libraries,
7423 *** $file_magic_cmd, produces output that libtool cannot recognize.
7424 *** The result is that libtool may fail to recognize shared libraries
7425 *** as such. This will affect the creation of libtool libraries that
7426 *** depend on shared libraries, but programs linked with such libtool
7427 *** libraries will work regardless of this problem. Nevertheless, you
7428 *** may want to report the problem to your system manager and/or to
7429 *** bug-libtool@gnu.org
7439 MAGIC_CMD="$lt_save_MAGIC_CMD"
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if test -n "$MAGIC_CMD"; then
7446 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7447 echo "${ECHO_T}$MAGIC_CMD" >&6
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7463 enable_win32_dll=yes
7465 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7466 if test "${enable_libtool_lock+set}" = set; then
7467 enableval="$enable_libtool_lock"
7470 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7473 # Check whether --with-pic or --without-pic was given.
7474 if test "${with_pic+set}" = set; then
7480 test -z "$pic_mode" && pic_mode=default
7482 # Use C for the default configuration in the libtool script
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 # Source file extension for C test sources.
7495 # Object file extension for compiled C test sources.
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;\n"
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}\n'
7506 # If no C compiler was specified, use CC.
7509 # Allow CC to be a program name with arguments.
7513 # save warnings/boilerplate of simple test code
7514 ac_outfile=conftest.$ac_objext
7515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7517 _lt_compiler_boilerplate=`cat conftest.err`
7520 ac_outfile=conftest.$ac_objext
7521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7523 _lt_linker_boilerplate=`cat conftest.err`
7528 # Check for any special shared library compilation flags.
7531 if test "$GCC" = no; then
7534 lt_prog_cc_shlib='-belf'
7538 if test -n "$lt_prog_cc_shlib"; then
7539 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7540 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7541 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7543 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7544 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7545 lt_cv_prog_cc_can_build_shared=no
7551 # Check to make sure the static flag actually works.
7553 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7554 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7555 if test "${lt_prog_compiler_static_works+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 lt_prog_compiler_static_works=no
7559 save_LDFLAGS="$LDFLAGS"
7560 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7561 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7563 # The linker can only warn and ignore the option if not recognized
7564 # So say no if there are warnings
7565 if test -s conftest.err; then
7566 # Append any errors to the config.log.
7567 cat conftest.err 1>&5
7568 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7569 $SED '/^$/d' conftest.err >conftest.er2
7570 if diff conftest.exp conftest.er2 >/dev/null; then
7571 lt_prog_compiler_static_works=yes
7574 lt_prog_compiler_static_works=yes
7578 LDFLAGS="$save_LDFLAGS"
7581 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7582 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7584 if test x"$lt_prog_compiler_static_works" = xyes; then
7587 lt_prog_compiler_static=
7593 lt_prog_compiler_no_builtin_flag=
7595 if test "$GCC" = yes; then
7596 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7599 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7600 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7601 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 lt_cv_prog_compiler_rtti_exceptions=no
7605 ac_outfile=conftest.$ac_objext
7606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7607 lt_compiler_flag="-fno-rtti -fno-exceptions"
7608 # Insert the option either (1) after the last *FLAGS variable, or
7609 # (2) before a word containing "conftest.", or (3) at the end.
7610 # Note that $ac_compile itself does not contain backslashes and begins
7611 # with a dollar sign (not a hyphen), so the echo should work correctly.
7612 # The option is referenced via a variable to avoid confusing sed.
7613 lt_compile=`echo "$ac_compile" | $SED \
7614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7616 -e 's:$: $lt_compiler_flag:'`
7617 (eval echo "\"\$as_me:7617: $lt_compile\"" >&5)
7618 (eval "$lt_compile" 2>conftest.err)
7620 cat conftest.err >&5
7621 echo "$as_me:7621: \$? = $ac_status" >&5
7622 if (exit $ac_status) && test -s "$ac_outfile"; then
7623 # The compiler can only warn and ignore the option if not recognized
7624 # So say no if there are warnings other than the usual output.
7625 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7626 $SED '/^$/d' conftest.err >conftest.er2
7627 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7628 lt_cv_prog_compiler_rtti_exceptions=yes
7634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7635 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7637 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7638 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7645 lt_prog_compiler_wl=
7646 lt_prog_compiler_pic=
7647 lt_prog_compiler_static=
7649 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7650 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7652 if test "$GCC" = yes; then
7653 lt_prog_compiler_wl='-Wl,'
7654 lt_prog_compiler_static='-static'
7658 # All AIX code is PIC.
7659 if test "$host_cpu" = ia64; then
7660 # AIX 5 now supports IA64 processor
7661 lt_prog_compiler_static='-Bstatic'
7666 # FIXME: we need at least 68020 code to build shared libraries, but
7667 # adding the `-m68020' flag to GCC prevents building anything better,
7669 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7672 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7673 # PIC is the default for these OSes.
7676 mingw* | pw32* | os2*)
7677 # This hack is so that the source file can tell whether it is being
7678 # built for inclusion in a dll (and should export symbols for example).
7679 lt_prog_compiler_pic='-DDLL_EXPORT'
7682 darwin* | rhapsody*)
7683 # PIC is the default on this platform
7684 # Common symbols not allowed in MH_DYLIB files
7685 lt_prog_compiler_pic='-fno-common'
7689 # Just because we use GCC doesn't mean we suddenly get shared libraries
7690 # on systems that don't support them.
7691 lt_prog_compiler_can_build_shared=no
7696 if test -d /usr/nec; then
7697 lt_prog_compiler_pic=-Kconform_pic
7702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7709 lt_prog_compiler_pic='-fPIC'
7715 lt_prog_compiler_pic='-fPIC'
7719 # PORTME Check for flag to pass linker flags through the system compiler.
7722 lt_prog_compiler_wl='-Wl,'
7723 if test "$host_cpu" = ia64; then
7724 # AIX 5 now supports IA64 processor
7725 lt_prog_compiler_static='-Bstatic'
7727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7731 # PIC is the default on this platform
7732 # Common symbols not allowed in MH_DYLIB files
7733 case $cc_basename in
7735 lt_prog_compiler_pic='-qnocommon'
7736 lt_prog_compiler_wl='-Wl,'
7741 mingw* | pw32* | os2*)
7742 # This hack is so that the source file can tell whether it is being
7743 # built for inclusion in a dll (and should export symbols for example).
7744 lt_prog_compiler_pic='-DDLL_EXPORT'
7747 hpux9* | hpux10* | hpux11*)
7748 lt_prog_compiler_wl='-Wl,'
7749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7756 lt_prog_compiler_pic='+Z'
7759 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7760 lt_prog_compiler_static='${wl}-a ${wl}archive'
7763 irix5* | irix6* | nonstopux*)
7764 lt_prog_compiler_wl='-Wl,'
7765 # PIC (with -KPIC) is the default.
7766 lt_prog_compiler_static='-non_shared'
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7775 case $cc_basename in
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-static'
7781 pgcc* | pgf77* | pgf90* | pgf95*)
7782 # Portland Group compilers (*not* the Pentium gcc compiler,
7783 # which looks to be a dead project)
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-fpic'
7786 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_wl='-Wl,'
7790 # All Alpha code is PIC.
7791 lt_prog_compiler_static='-non_shared'
7796 osf3* | osf4* | osf5*)
7797 lt_prog_compiler_wl='-Wl,'
7798 # All OSF/1 code is PIC.
7799 lt_prog_compiler_static='-non_shared'
7803 lt_prog_compiler_pic='-Kpic'
7804 lt_prog_compiler_static='-dn'
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 case $cc_basename in
7812 lt_prog_compiler_wl='-Qoption ld ';;
7814 lt_prog_compiler_wl='-Wl,';;
7819 lt_prog_compiler_wl='-Qoption ld '
7820 lt_prog_compiler_pic='-PIC'
7821 lt_prog_compiler_static='-Bstatic'
7824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7831 if test -d /usr/nec ;then
7832 lt_prog_compiler_pic='-Kconform_pic'
7833 lt_prog_compiler_static='-Bstatic'
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_can_build_shared=no
7843 lt_prog_compiler_pic='-pic'
7844 lt_prog_compiler_static='-Bstatic'
7848 lt_prog_compiler_can_build_shared=no
7853 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7854 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7857 # Check to make sure the PIC flag actually works.
7859 if test -n "$lt_prog_compiler_pic"; then
7861 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7862 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7863 if test "${lt_prog_compiler_pic_works+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 lt_prog_compiler_pic_works=no
7867 ac_outfile=conftest.$ac_objext
7868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7870 # Insert the option either (1) after the last *FLAGS variable, or
7871 # (2) before a word containing "conftest.", or (3) at the end.
7872 # Note that $ac_compile itself does not contain backslashes and begins
7873 # with a dollar sign (not a hyphen), so the echo should work correctly.
7874 # The option is referenced via a variable to avoid confusing sed.
7875 lt_compile=`echo "$ac_compile" | $SED \
7876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7878 -e 's:$: $lt_compiler_flag:'`
7879 (eval echo "\"\$as_me:7879: $lt_compile\"" >&5)
7880 (eval "$lt_compile" 2>conftest.err)
7882 cat conftest.err >&5
7883 echo "$as_me:7883: \$? = $ac_status" >&5
7884 if (exit $ac_status) && test -s "$ac_outfile"; then
7885 # The compiler can only warn and ignore the option if not recognized
7886 # So say no if there are warnings other than the usual output.
7887 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7888 $SED '/^$/d' conftest.err >conftest.er2
7889 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7890 lt_prog_compiler_pic_works=yes
7896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7897 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7899 if test x"$lt_prog_compiler_pic_works" = xyes; then
7900 case $lt_prog_compiler_pic in
7902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7905 lt_prog_compiler_pic=
7906 lt_prog_compiler_can_build_shared=no
7911 # For platforms which do not support PIC, -DPIC is meaningless:
7913 lt_prog_compiler_pic=
7916 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7922 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 lt_cv_prog_compiler_c_o=no
7926 $rm -r conftest 2>/dev/null
7930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7932 lt_compiler_flag="-o out/conftest2.$ac_objext"
7933 # Insert the option either (1) after the last *FLAGS variable, or
7934 # (2) before a word containing "conftest.", or (3) at the end.
7935 # Note that $ac_compile itself does not contain backslashes and begins
7936 # with a dollar sign (not a hyphen), so the echo should work correctly.
7937 lt_compile=`echo "$ac_compile" | $SED \
7938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7940 -e 's:$: $lt_compiler_flag:'`
7941 (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
7942 (eval "$lt_compile" 2>out/conftest.err)
7944 cat out/conftest.err >&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7948 # The compiler can only warn and ignore the option if not recognized
7949 # So say no if there are warnings
7950 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7951 $SED '/^$/d' out/conftest.err >out/conftest.er2
7952 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7953 lt_cv_prog_compiler_c_o=yes
7958 # SGI C++ compiler will create directory out/ii_files/ for
7959 # template instantiation
7960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7961 $rm out/* && rmdir out
7967 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7971 hard_links="nottested"
7972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7973 # do not overwrite the value of need_locks provided by the user
7974 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7980 ln conftest.a conftest.b 2>&5 || hard_links=no
7981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7982 echo "$as_me:$LINENO: result: $hard_links" >&5
7983 echo "${ECHO_T}$hard_links" >&6
7984 if test "$hard_links" = no; then
7985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7993 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7997 allow_undefined_flag=
7998 enable_shared_with_static_runtimes=no
8000 archive_expsym_cmds=
8001 old_archive_From_new_cmds=
8002 old_archive_from_expsyms_cmds=
8003 export_dynamic_flag_spec=
8004 whole_archive_flag_spec=
8005 thread_safe_flag_spec=
8006 hardcode_libdir_flag_spec=
8007 hardcode_libdir_flag_spec_ld=
8008 hardcode_libdir_separator=
8011 hardcode_shlibpath_var=unsupported
8012 link_all_deplibs=unknown
8013 hardcode_automatic=no
8016 always_export_symbols=no
8017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8018 # include_expsyms should be a list of space-separated symbols to be *always*
8019 # included in the symbol list
8021 # exclude_expsyms can be an extended regexp of symbols to exclude
8022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8024 # as well as any symbol that contains `d'.
8025 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8027 # platforms (ab)use it in PIC code, but their linkers get confused if
8028 # the symbol is explicitly referenced. Since portable code cannot
8029 # rely on this symbol name, it's probably fine to never include it in
8030 # preloaded symbol tables.
8031 extract_expsyms_cmds=
8032 # Just being paranoid about ensuring that cc_basename is set.
8033 for cc_temp in $compiler""; do
8035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8044 cygwin* | mingw* | pw32*)
8045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8046 # When not using gcc, we currently assume that we are using
8047 # Microsoft Visual C++.
8048 if test "$GCC" != yes; then
8058 if test "$with_gnu_ld" = yes; then
8059 # If archive_cmds runs LD, not CC, wlarc should be empty
8062 # Set some defaults for GNU ld with shared library support. These
8063 # are reset later if shared libraries are not supported. Putting them
8064 # here allows them to be overridden if necessary.
8065 runpath_var=LD_RUN_PATH
8066 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8067 export_dynamic_flag_spec='${wl}--export-dynamic'
8068 # ancient GNU ld didn't support --whole-archive et. al.
8069 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8072 whole_archive_flag_spec=
8074 supports_anon_versioning=no
8075 case `$LD -v 2>/dev/null` in
8076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8079 *\ 2.11.*) ;; # other 2.11 versions
8080 *) supports_anon_versioning=yes ;;
8083 # See if GNU ld supports shared libraries.
8085 aix3* | aix4* | aix5*)
8086 # On AIX/PPC, the GNU linker is very broken
8087 if test "$host_cpu" != ia64; then
8091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8092 *** to be unable to reliably create shared libraries on AIX.
8093 *** Therefore, libtool is disabling shared libraries support. If you
8094 *** really care for shared libraries, you may want to modify your PATH
8095 *** so that a non-GNU linker is found, and then restart.
8102 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)'
8103 hardcode_libdir_flag_spec='-L$libdir'
8104 hardcode_minus_L=yes
8106 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8107 # that the semantics of dynamic libraries on AmigaOS, at least up
8108 # to version 4, is to share data among multiple programs linked
8109 # with the same dynamic library. Since this doesn't match the
8110 # behavior of shared libraries on other platforms, we can't use
8116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8117 allow_undefined_flag=unsupported
8118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8119 # support --undefined. This deserves some investigation. FIXME
8120 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 cygwin* | mingw* | pw32*)
8127 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8128 # as there is no search path for DLLs.
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 allow_undefined_flag=unsupported
8131 always_export_symbols=no
8132 enable_shared_with_static_runtimes=yes
8133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8135 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8137 # If the export-symbols file already is a .def file (1st line
8138 # is EXPORTS), use it as is; otherwise, prepend...
8139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8140 cp $export_symbols $output_objdir/$soname.def;
8142 echo EXPORTS > $output_objdir/$soname.def;
8143 cat $export_symbols >> $output_objdir/$soname.def;
8145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154 case $cc_basename,$host_cpu in
8155 pgcc*) # Portland Group C compiler
8156 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'
8157 tmp_addflag=' $pic_flag'
8159 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8160 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'
8161 tmp_addflag=' $pic_flag -Mnomain' ;;
8162 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8163 tmp_addflag=' -i_dynamic' ;;
8164 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8165 tmp_addflag=' -i_dynamic -nofor_main' ;;
8166 ifc* | ifort*) # Intel Fortran compiler
8167 tmp_addflag=' -nofor_main' ;;
8169 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171 if test $supports_anon_versioning = yes; then
8172 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8174 $echo "local: *; };" >> $output_objdir/$libname.ver~
8175 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8184 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8193 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8198 *** create shared libraries on Solaris systems. Therefore, libtool
8199 *** is disabling shared libraries support. We urge you to upgrade GNU
8200 *** binutils to release 2.9.1 or newer. Another option is to modify
8201 *** your PATH or compiler configuration so that the native linker is
8202 *** used, and then restart.
8205 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_shlibpath_var=no
8221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8230 if test "$ld_shlibs" = no; then
8232 hardcode_libdir_flag_spec=
8233 export_dynamic_flag_spec=
8234 whole_archive_flag_spec=
8237 # PORTME fill in a description of your system's linker (not GNU ld)
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=yes
8242 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'
8243 # Note: this linker hardcodes the directories in LIBPATH if there
8244 # are no directories specified by -L.
8245 hardcode_minus_L=yes
8246 if test "$GCC" = yes && test -z "$link_static_flag"; then
8247 # Neither direct hardcoding nor static linking is supported with a
8249 hardcode_direct=unsupported
8254 if test "$host_cpu" = ia64; then
8255 # On IA64, the linker does run time linking by default, so we don't
8256 # have to do anything special.
8257 aix_use_runtimelinking=no
8258 exp_sym_flag='-Bexport'
8261 # If we're using GNU nm, then we don't want the "-C" option.
8262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8263 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8264 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'
8266 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'
8268 aix_use_runtimelinking=no
8270 # Test if we are trying to use run time linking or normal
8271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8272 # need to do runtime linking.
8273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8274 for ld_flag in $LDFLAGS; do
8275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8276 aix_use_runtimelinking=yes
8282 exp_sym_flag='-bexport'
8283 no_entry_flag='-bnoentry'
8286 # When large executables or shared objects are built, AIX ld can
8287 # have problems creating the table of contents. If linking a library
8288 # or program results in "error TOC overflow" add -mminimal-toc to
8289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8294 hardcode_libdir_separator=':'
8295 link_all_deplibs=yes
8297 if test "$GCC" = yes; then
8298 case $host_os in aix4.[012]|aix4.[012].*)
8299 # We only want to do this on AIX 4.2 and lower, the check
8300 # below for broken collect2 doesn't work under 4.3+
8301 collect2name=`${CC} -print-prog-name=collect2`
8302 if test -f "$collect2name" && \
8303 strings "$collect2name" | grep resolve_lib_name >/dev/null
8305 # We have reworked collect2
8308 # We have old collect2
8309 hardcode_direct=unsupported
8310 # It fails to find uninstalled libraries when the uninstalled
8311 # path is not listed in the libpath. Setting hardcode_minus_L
8312 # to unsupported forces relinking
8313 hardcode_minus_L=yes
8314 hardcode_libdir_flag_spec='-L$libdir'
8315 hardcode_libdir_separator=
8318 shared_flag='-shared'
8319 if test "$aix_use_runtimelinking" = yes; then
8320 shared_flag="$shared_flag "'${wl}-G'
8324 if test "$host_cpu" = ia64; then
8325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8326 # chokes on -Wl,-G. The following line is correct:
8329 if test "$aix_use_runtimelinking" = yes; then
8330 shared_flag='${wl}-G'
8332 shared_flag='${wl}-bM:SRE'
8337 # It seems that -bexpall does not export symbols beginning with
8338 # underscore (_), so it is better to generate a list of symbols to export.
8339 always_export_symbols=yes
8340 if test "$aix_use_runtimelinking" = yes; then
8341 # Warning - without using the other runtime loading flags (-brtl),
8342 # -berok will link without error, but may produce a broken library.
8343 allow_undefined_flag='-berok'
8344 # Determine the default libpath from the value encoded in an empty executable.
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8385 # Check for a 64-bit object if we didn't find anything.
8386 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; }
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8393 rm -f conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8398 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"
8400 if test "$host_cpu" = ia64; then
8401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8402 allow_undefined_flag="-z nodefs"
8403 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"
8405 # Determine the default libpath from the value encoded in an empty executable.
8406 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8446 # Check for a 64-bit object if we didn't find anything.
8447 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; }
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8459 # Warning - without using the other run time loading flags,
8460 # -berok will link without error, but may produce a broken library.
8461 no_undefined_flag=' ${wl}-bernotok'
8462 allow_undefined_flag=' ${wl}-berok'
8463 # -bexpall does not export symbols beginning with underscore (_)
8464 always_export_symbols=yes
8465 # Exported symbols can be pulled into shared objects from archives
8466 whole_archive_flag_spec=' '
8467 archive_cmds_need_lc=yes
8468 # This is similar to how AIX traditionally builds its shared libraries.
8469 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'
8475 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)'
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_minus_L=yes
8478 # see comment about different semantics on the GNU ld section
8483 export_dynamic_flag_spec=-rdynamic
8486 cygwin* | mingw* | pw32*)
8487 # When not using gcc, we currently assume that we are using
8488 # Microsoft Visual C++.
8489 # hardcode_libdir_flag_spec is actually meaningless, as there is
8490 # no search path for DLLs.
8491 hardcode_libdir_flag_spec=' '
8492 allow_undefined_flag=unsupported
8493 # Tell ltmain to make .lib files, not .a files.
8495 # Tell ltmain to make .dll files, not .so files.
8497 # FIXME: Setting linknames here is a bad hack.
8498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8499 # The linker will automatically build a .lib file if we build a DLL.
8500 old_archive_From_new_cmds='true'
8501 # FIXME: Should let the user specify the lib program.
8502 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8503 fix_srcfile_path='`cygpath -w "$srcfile"`'
8504 enable_shared_with_static_runtimes=yes
8507 darwin* | rhapsody*)
8509 rhapsody* | darwin1.[012])
8510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8513 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8514 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8516 case ${MACOSX_DEPLOYMENT_TARGET} in
8518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8521 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8527 archive_cmds_need_lc=no
8529 hardcode_automatic=yes
8530 hardcode_shlibpath_var=unsupported
8531 whole_archive_flag_spec=''
8532 link_all_deplibs=yes
8533 if test "$GCC" = yes ; then
8534 output_verbose_link_cmd='echo'
8535 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8536 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8538 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}'
8539 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}'
8541 case $cc_basename in
8543 output_verbose_link_cmd='echo'
8544 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8547 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}'
8548 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}'
8558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 hardcode_libdir_flag_spec='-L$libdir'
8560 hardcode_shlibpath_var=no
8567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8568 # support. Future versions do this automatically, but an explicit c++rt0.o
8569 # does not break anything, and helps significantly (at the cost of a little
8572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8573 hardcode_libdir_flag_spec='-R$libdir'
8575 hardcode_shlibpath_var=no
8578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8582 hardcode_minus_L=yes
8583 hardcode_shlibpath_var=no
8586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8587 freebsd* | kfreebsd*-gnu | dragonfly*)
8588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8589 hardcode_libdir_flag_spec='-R$libdir'
8591 hardcode_shlibpath_var=no
8595 if test "$GCC" = yes; then
8596 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'
8598 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'
8600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8601 hardcode_libdir_separator=:
8604 # hardcode_minus_L: Not really in the search PATH,
8605 # but as the default location of the library.
8606 hardcode_minus_L=yes
8607 export_dynamic_flag_spec='${wl}-E'
8611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8623 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8630 if test "$with_gnu_ld" = no; then
8633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8634 hardcode_libdir_flag_spec_ld='+b $libdir'
8635 hardcode_libdir_separator=:
8637 hardcode_shlibpath_var=no
8640 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_shlibpath_var=no
8644 # hardcode_minus_L: Not really in the search PATH,
8645 # but as the default location of the library.
8646 hardcode_minus_L=yes
8649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650 hardcode_libdir_separator=:
8652 export_dynamic_flag_spec='${wl}-E'
8654 # hardcode_minus_L: Not really in the search PATH,
8655 # but as the default location of the library.
8656 hardcode_minus_L=yes
8662 irix5* | irix6* | nonstopux*)
8663 if test "$GCC" = yes; then
8664 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'
8666 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'
8667 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670 hardcode_libdir_separator=:
8671 link_all_deplibs=yes
8675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8678 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8680 hardcode_libdir_flag_spec='-R$libdir'
8682 hardcode_shlibpath_var=no
8686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 hardcode_libdir_separator=:
8690 hardcode_shlibpath_var=no
8695 hardcode_shlibpath_var=no
8696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8700 export_dynamic_flag_spec='${wl}-E'
8703 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8705 hardcode_libdir_flag_spec='-R$libdir'
8708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_minus_L=yes
8718 allow_undefined_flag=unsupported
8719 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'
8720 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8724 if test "$GCC" = yes; then
8725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726 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'
8728 allow_undefined_flag=' -expect_unresolved \*'
8729 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'
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 hardcode_libdir_separator=:
8735 osf4* | osf5*) # as osf3* with the addition of -msym flag
8736 if test "$GCC" = yes; then
8737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8738 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'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 allow_undefined_flag=' -expect_unresolved \*'
8742 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'
8743 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8744 $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'
8746 # Both c and cxx compiler support -rpath directly
8747 hardcode_libdir_flag_spec='-rpath $libdir'
8749 hardcode_libdir_separator=:
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_shlibpath_var=no
8755 export_dynamic_flag_spec='${wl}-Bexport'
8756 runpath_var=LD_RUN_PATH
8757 hardcode_runpath_var=yes
8761 no_undefined_flag=' -z text'
8762 if test "$GCC" = yes; then
8764 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8765 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8766 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8773 hardcode_libdir_flag_spec='-R$libdir'
8774 hardcode_shlibpath_var=no
8776 solaris2.[0-5] | solaris2.[0-5].*) ;;
8778 # The compiler driver will combine linker options so we
8779 # cannot just pass the convience library names through
8780 # without $wl, iff we do not link with $LD.
8781 # Luckily, gcc supports the same syntax we need for Sun Studio.
8782 # Supported since Solaris 2.6 (maybe 2.5.1?)
8785 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8787 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' ;;
8790 link_all_deplibs=yes
8794 if test "x$host_vendor" = xsequent; then
8795 # Use $CC to link under sequent, because it throws in some extra .o
8796 # files that make .init and .fini sections work.
8797 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_libdir_flag_spec='-L$libdir'
8803 hardcode_minus_L=yes
8804 hardcode_shlibpath_var=no
8808 case $host_vendor in
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_direct=yes # is this really true???
8814 ## LD is ld it makes a PLAMLIB
8815 ## CC just makes a GrossModule.
8816 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8817 reload_cmds='$CC -r -o $output$reload_objs'
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8825 runpath_var='LD_RUN_PATH'
8826 hardcode_shlibpath_var=no
8830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8831 hardcode_shlibpath_var=no
8832 export_dynamic_flag_spec='-Bexport'
8836 if test -d /usr/nec; then
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_shlibpath_var=no
8839 runpath_var=LD_RUN_PATH
8840 hardcode_runpath_var=yes
8846 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_shlibpath_var=no
8850 hardcode_runpath_var=yes
8851 runpath_var=LD_RUN_PATH
8854 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8855 no_undefined_flag='${wl}-z ${wl}text'
8856 if test "$GCC" = yes; then
8857 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 runpath_var='LD_RUN_PATH'
8862 hardcode_shlibpath_var=no
8866 no_undefined_flag=' -z text'
8867 # $CC -shared without GNU ld will not create a library from C++
8868 # object files and a static libstdc++, better avoid it by now
8869 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8872 hardcode_libdir_flag_spec=
8873 hardcode_shlibpath_var=no
8874 runpath_var='LD_RUN_PATH'
8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_libdir_flag_spec='-L$libdir'
8880 hardcode_shlibpath_var=no
8889 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8890 echo "${ECHO_T}$ld_shlibs" >&6
8891 test "$ld_shlibs" = no && can_build_shared=no
8893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8894 if test "$GCC" = yes; then
8895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8899 # Do we need to explicitly link libc?
8901 case "x$archive_cmds_need_lc" in
8903 # Assume -lc should be added
8904 archive_cmds_need_lc=yes
8906 if test "$enable_shared" = yes && test "$GCC" = yes; then
8907 case $archive_cmds in
8909 # FIXME: we may have to deal with multi-command sequences.
8912 # Test whether the compiler implicitly links with -lc since on some
8913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8914 # to ld, don't add -lc before -lgcc.
8915 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } 2>conftest.err; then
8927 libobjs=conftest.$ac_objext
8929 wl=$lt_prog_compiler_wl
8935 lt_save_allow_undefined_flag=$allow_undefined_flag
8936 allow_undefined_flag=
8937 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8938 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }
8943 archive_cmds_need_lc=no
8945 archive_cmds_need_lc=yes
8947 allow_undefined_flag=$lt_save_allow_undefined_flag
8949 cat conftest.err 1>&5
8952 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8953 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8963 libname_spec='lib$name'
8971 shlibpath_overrides_runpath=unknown
8973 dynamic_linker="$host_os ld.so"
8974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8975 if test "$GCC" = yes; then
8976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8978 # if the path contains ";" then we assume it to be the separator
8979 # otherwise default to the standard path separator (i.e. ":") - it is
8980 # assumed that no part of a normal pathname contains ";" but that should
8981 # okay in the real world where ";" in dirpaths is itself problematic.
8982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8989 need_lib_prefix=unknown
8990 hardcode_into_libs=no
8992 # when you set need_version to no, make sure it does not cause -set_version
8993 # flags to be left without arguments
8994 need_version=unknown
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9000 shlibpath_var=LIBPATH
9002 # AIX 3 has no versioning support, so we append a major version to the name.
9003 soname_spec='${libname}${release}${shared_ext}$major'
9010 hardcode_into_libs=yes
9011 if test "$host_cpu" = ia64; then
9012 # AIX 5 supports IA64
9013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9014 shlibpath_var=LD_LIBRARY_PATH
9016 # With GCC up to 2.95.x, collect2 would create an import file
9017 # for dependence libraries. The import file would start with
9018 # the line `#! .'. This would cause the generated library to
9019 # depend on `.', always an invalid library. This was fixed in
9020 # development snapshots of GCC prior to 3.0.
9022 aix4 | aix4.[01] | aix4.[01].*)
9023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9033 # soname into executable. Probably we can add versioning support to
9034 # collect2, so additional links can be useful in future.
9035 if test "$aix_use_runtimelinking" = yes; then
9036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9037 # instead of lib<name>.a to let people know that these are not
9038 # typical AIX shared libraries.
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 # We preserve .a as extension for shared libraries through AIX4.2
9042 # and later when we are not doing run time linking.
9043 library_names_spec='${libname}${release}.a $libname.a'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LIBPATH
9051 library_names_spec='$libname.ixlibrary $libname.a'
9052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9053 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'
9057 library_names_spec='${libname}${shared_ext}'
9058 dynamic_linker="$host_os ld.so"
9059 shlibpath_var=LIBRARY_PATH
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9071 # the default ld.so.conf also contains /usr/contrib/lib and
9072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9073 # libtool to hard-code these into programs
9076 cygwin* | mingw* | pw32*)
9077 version_type=windows
9082 case $GCC,$host_os in
9083 yes,cygwin* | yes,mingw* | yes,pw32*)
9084 library_names_spec='$libname.dll.a'
9085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9086 postinstall_cmds='base_file=`basename \${file}`~
9087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9088 dldir=$destdir/`dirname \$dlpath`~
9089 test -d \$dldir || mkdir -p \$dldir~
9090 $install_prog $dir/$dlname \$dldir/$dlname~
9091 chmod a+x \$dldir/$dlname'
9092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9093 dlpath=$dir/\$dldll~
9095 shlibpath_overrides_runpath=yes
9099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9104 # MinGW DLLs use traditional 'lib' prefix
9105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9107 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9108 # It is most probably a Windows format PATH printed by
9109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9110 # path with ; separators, and with drive letters. We can handle the
9111 # drive letters (cygwin fileutils understands them), so leave them,
9112 # especially as we might pass files found there to a mingw objdump,
9113 # which wouldn't understand a cygwinified path. Ahh.
9114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9120 # pw32 DLLs use 'pw' prefix rather than 'lib'
9121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9127 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9130 dynamic_linker='Win32 ld.exe'
9131 # FIXME: first we should search . and the directory the executable is in
9135 darwin* | rhapsody*)
9136 dynamic_linker="$host_os dyld"
9140 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9141 soname_spec='${libname}${release}${major}$shared_ext'
9142 shlibpath_overrides_runpath=yes
9143 shlibpath_var=DYLD_LIBRARY_PATH
9144 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9146 if test "$GCC" = yes; then
9147 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"`
9149 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=no
9175 hardcode_into_libs=yes
9176 dynamic_linker='GNU ld.so'
9179 freebsd* | dragonfly*)
9180 # DragonFly does not have aout. When/if they implement a new
9181 # versioning mechanism, adjust this.
9182 if test -x /usr/bin/objformat; then
9183 objformat=`/usr/bin/objformat`
9186 freebsd[123]*) objformat=aout ;;
9190 version_type=freebsd-$objformat
9191 case $version_type in
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9202 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=yes
9207 freebsd3.[01]* | freebsdelf3.[01]*)
9208 shlibpath_overrides_runpath=yes
9209 hardcode_into_libs=yes
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 hardcode_into_libs=yes
9228 hpux9* | hpux10* | hpux11*)
9229 # Give a soname corresponding to the major version so that dld.sl refuses to
9230 # link against other versions.
9237 hardcode_into_libs=yes
9238 dynamic_linker="$host_os dld.so"
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9243 if test "X$HPUX_IA64_MODE" = X32; then
9244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9252 hardcode_into_libs=yes
9253 dynamic_linker="$host_os dld.sl"
9254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9263 dynamic_linker="$host_os dld.sl"
9264 shlibpath_var=SHLIB_PATH
9265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9271 postinstall_cmds='chmod 555 $lib'
9274 irix5* | irix6* | nonstopux*)
9276 nonstopux*) version_type=nonstopux ;;
9278 if test "$lt_cv_prog_gnu_ld" = yes; then
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9289 irix5* | nonstopux*)
9293 case $LD in # libtool.m4 will add one of these switches to LD
9294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9295 libsuff= shlibsuff= libmagic=32-bit;;
9296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9297 libsuff=32 shlibsuff=N32 libmagic=N32;;
9298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9300 *) libsuff= shlibsuff= libmagic=never-match;;
9304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9305 shlibpath_overrides_runpath=no
9306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9308 hardcode_into_libs=yes
9311 # No shared lib support for Linux oldld, aout, or coff.
9312 linux*oldld* | linux*aout* | linux*coff*)
9316 # This must be Linux ELF.
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=no
9326 # This implies no fast_install, which is unacceptable.
9327 # Some rework will be needed to allow for fast_install
9328 # before this can be enabled.
9329 hardcode_into_libs=yes
9331 # Append ld.so.conf contents to the search path
9332 if test -f /etc/ld.so.conf; then
9333 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' ' '`
9334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9337 # We used to test for /lib/ld.so.1 and disable shared libraries on
9338 # powerpc, because MkLinux only supported shared libraries with the
9339 # GNU dynamic linker. Since this was broken with cross compilers,
9340 # most powerpc-linux boxes support dynamic linking these days and
9341 # people can always --disable-shared, the test was removed, and we
9342 # assume the GNU/Linux dynamic linker is in use.
9343 dynamic_linker='GNU/Linux ld.so'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=no
9354 hardcode_into_libs=yes
9355 dynamic_linker='GNU ld.so'
9362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9365 dynamic_linker='NetBSD (a.out) ld.so'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 dynamic_linker='NetBSD ld.elf_so'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=yes
9373 hardcode_into_libs=yes
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 shlibpath_overrides_runpath=yes
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=yes
9396 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9398 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9399 *) need_version=no ;;
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9406 openbsd2.[89] | openbsd2.[89].*)
9407 shlibpath_overrides_runpath=no
9410 shlibpath_overrides_runpath=yes
9414 shlibpath_overrides_runpath=yes
9419 libname_spec='$name'
9422 library_names_spec='$libname${shared_ext} $libname.a'
9423 dynamic_linker='OS/2 ld.exe'
9424 shlibpath_var=LIBPATH
9427 osf3* | osf4* | osf5*)
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9435 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 shlibpath_var=LD_LIBRARY_PATH
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=yes
9453 hardcode_into_libs=yes
9454 # ldd complains unless libraries are executable
9455 postinstall_cmds='chmod +x $lib'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=yes
9464 if test "$with_gnu_ld" = yes; then
9470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 case $host_vendor in
9477 shlibpath_overrides_runpath=no
9479 export_dynamic_flag_spec='${wl}-Blargedynsym'
9480 runpath_var=LD_RUN_PATH
9488 shlibpath_overrides_runpath=no
9489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9495 if test -d /usr/nec ;then
9497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9498 soname_spec='$libname${shared_ext}.$major'
9499 shlibpath_var=LD_LIBRARY_PATH
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9514 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9515 echo "${ECHO_T}$dynamic_linker" >&6
9516 test "$dynamic_linker" = no && can_build_shared=no
9518 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9519 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9521 if test -n "$hardcode_libdir_flag_spec" || \
9522 test -n "$runpath_var" || \
9523 test "X$hardcode_automatic" = "Xyes" ; then
9525 # We can hardcode non-existant directories.
9526 if test "$hardcode_direct" != no &&
9527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9528 # have to relink, otherwise we might link with an installed library
9529 # when we should be linking with a yet-to-be-installed one
9530 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9531 test "$hardcode_minus_L" != no; then
9532 # Linking always hardcodes the temporary library directory.
9533 hardcode_action=relink
9535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9536 hardcode_action=immediate
9539 # We cannot hardcode anything, or else we can only hardcode existing
9541 hardcode_action=unsupported
9543 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9544 echo "${ECHO_T}$hardcode_action" >&6
9546 if test "$hardcode_action" = relink; then
9547 # Fast installation is not supported
9548 enable_fast_install=no
9549 elif test "$shlibpath_overrides_runpath" = yes ||
9550 test "$enable_shared" = no; then
9551 # Fast installation is not necessary
9552 enable_fast_install=needless
9557 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9558 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9559 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9560 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9561 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9562 echo "$as_me:$LINENO: result: yes" >&5
9563 echo "${ECHO_T}yes" >&6
9565 # FIXME - insert some real tests, host_os isn't really good enough
9568 if test -n "$STRIP" ; then
9569 striplib="$STRIP -x"
9570 echo "$as_me:$LINENO: result: yes" >&5
9571 echo "${ECHO_T}yes" >&6
9573 echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6
9578 echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9584 if test "x$enable_dlopen" != xyes; then
9585 enable_dlopen=unknown
9586 enable_dlopen_self=unknown
9587 enable_dlopen_self_static=unknown
9594 lt_cv_dlopen="load_add_on"
9596 lt_cv_dlopen_self=yes
9600 lt_cv_dlopen="LoadLibrary"
9605 lt_cv_dlopen="dlopen"
9610 # if libdl is installed we need to link against it
9611 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9612 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9613 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 ac_check_lib_save_LIBS=$LIBS
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9625 /* Override any gcc2 internal prototype to avoid an error. */
9629 /* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag"
9650 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_lib_dl_dlopen=yes
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_cv_lib_dl_dlopen=no
9669 rm -f conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 LIBS=$ac_check_lib_save_LIBS
9673 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9674 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9675 if test $ac_cv_lib_dl_dlopen = yes; then
9676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9681 lt_cv_dlopen_self=yes
9688 echo "$as_me:$LINENO: checking for shl_load" >&5
9689 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9690 if test "${ac_cv_func_shl_load+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9701 #define shl_load innocuous_shl_load
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char shl_load (); below.
9705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9706 <limits.h> exists even on freestanding compilers. */
9709 # include <limits.h>
9711 # include <assert.h>
9716 /* Override any gcc2 internal prototype to avoid an error. */
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9730 char (*f) () = shl_load;
9739 return f != shl_load;
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1 >conftest.err
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag"
9754 || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } &&
9760 { ac_try='test -s conftest$ac_exeext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_shl_load=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_func_shl_load=no
9773 rm -f conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9776 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9777 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9778 if test $ac_cv_func_shl_load = yes; then
9779 lt_cv_dlopen="shl_load"
9781 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9782 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9783 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 ac_check_lib_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_lib_dld_shl_load=yes
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_cv_lib_dld_shl_load=no
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9843 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9844 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9845 if test $ac_cv_lib_dld_shl_load = yes; then
9846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9848 echo "$as_me:$LINENO: checking for dlopen" >&5
9849 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9850 if test "${ac_cv_func_dlopen+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9861 #define dlopen innocuous_dlopen
9863 /* System header to define __stub macros and hopefully few prototypes,
9864 which can conflict with char dlopen (); below.
9865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9866 <limits.h> exists even on freestanding compilers. */
9869 # include <limits.h>
9871 # include <assert.h>
9876 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9884 /* The GNU C library defines this for functions which it implements
9885 to always fail with ENOSYS. Some functions are actually named
9886 something starting with __ and the normal name is an alias. */
9887 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9890 char (*f) () = dlopen;
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9908 grep -v '^ *+' conftest.er1 >conftest.err
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_func_dlopen=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_func_dlopen=no
9933 rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9938 if test $ac_cv_func_dlopen = yes; then
9939 lt_cv_dlopen="dlopen"
9941 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_check_lib_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972 (eval $ac_link) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_dl_dlopen=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_lib_dl_dlopen=no
9999 rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10005 if test $ac_cv_lib_dl_dlopen = yes; then
10006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10008 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10009 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-lsvld $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10022 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_lib_svld_dlopen=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_cv_lib_svld_dlopen=no
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10071 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10072 if test $ac_cv_lib_svld_dlopen = yes; then
10073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10075 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10076 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 ac_check_lib_save_LIBS=$LIBS
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10089 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_lib_dld_dld_link=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_lib_dld_dld_link=no
10133 rm -f conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10139 if test $ac_cv_lib_dld_dld_link = yes; then
10140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10161 if test "x$lt_cv_dlopen" != xno; then
10167 case $lt_cv_dlopen in
10169 save_CPPFLAGS="$CPPFLAGS"
10170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10172 save_LDFLAGS="$LDFLAGS"
10173 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10176 LIBS="$lt_cv_dlopen_libs $LIBS"
10178 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10180 if test "${lt_cv_dlopen_self+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 if test "$cross_compiling" = yes; then :
10184 lt_cv_dlopen_self=cross
10186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187 lt_status=$lt_dlunknown
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10199 # define LT_DLGLOBAL RTLD_GLOBAL
10202 # define LT_DLGLOBAL DL_GLOBAL
10204 # define LT_DLGLOBAL 0
10208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10209 find out it does not work in some platform. */
10210 #ifndef LT_DLLAZY_OR_NOW
10212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10215 # define LT_DLLAZY_OR_NOW DL_LAZY
10218 # define LT_DLLAZY_OR_NOW RTLD_NOW
10221 # define LT_DLLAZY_OR_NOW DL_NOW
10223 # define LT_DLLAZY_OR_NOW 0
10231 extern "C" void exit (int);
10234 void fnord() { int i=42;}
10237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10238 int status = $lt_dlunknown;
10242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10244 /* dlclose (self); */
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10255 (./conftest; exit; ) >&5 2>/dev/null
10257 case x$lt_status in
10258 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10259 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10260 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10263 # compilation failed
10264 lt_cv_dlopen_self=no
10271 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10272 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10274 if test "x$lt_cv_dlopen_self" = xyes; then
10275 LDFLAGS="$LDFLAGS $link_static_flag"
10276 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10277 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10278 if test "${lt_cv_dlopen_self_static+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 if test "$cross_compiling" = yes; then :
10282 lt_cv_dlopen_self_static=cross
10284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10285 lt_status=$lt_dlunknown
10286 cat > conftest.$ac_ext <<EOF
10287 #line 10287 "configure"
10288 #include "confdefs.h"
10297 # define LT_DLGLOBAL RTLD_GLOBAL
10300 # define LT_DLGLOBAL DL_GLOBAL
10302 # define LT_DLGLOBAL 0
10306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10307 find out it does not work in some platform. */
10308 #ifndef LT_DLLAZY_OR_NOW
10310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10313 # define LT_DLLAZY_OR_NOW DL_LAZY
10316 # define LT_DLLAZY_OR_NOW RTLD_NOW
10319 # define LT_DLLAZY_OR_NOW DL_NOW
10321 # define LT_DLLAZY_OR_NOW 0
10329 extern "C" void exit (int);
10332 void fnord() { int i=42;}
10335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10336 int status = $lt_dlunknown;
10340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10342 /* dlclose (self); */
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10353 (./conftest; exit; ) >&5 2>/dev/null
10355 case x$lt_status in
10356 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10357 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10358 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10361 # compilation failed
10362 lt_cv_dlopen_self_static=no
10369 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10370 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10373 CPPFLAGS="$save_CPPFLAGS"
10374 LDFLAGS="$save_LDFLAGS"
10379 case $lt_cv_dlopen_self in
10380 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10381 *) enable_dlopen_self=unknown ;;
10384 case $lt_cv_dlopen_self_static in
10385 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10386 *) enable_dlopen_self_static=unknown ;;
10391 # Report which librarie types wil actually be built
10392 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10393 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10394 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10395 echo "${ECHO_T}$can_build_shared" >&6
10397 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10398 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10399 test "$can_build_shared" = "no" && enable_shared=no
10401 # On AIX, shared libraries and static libraries use the same namespace, and
10402 # are all built from PIC.
10405 test "$enable_shared" = yes && enable_static=no
10406 if test -n "$RANLIB"; then
10407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10408 postinstall_cmds='$RANLIB $lib'
10413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10414 test "$enable_shared" = yes && enable_static=no
10418 echo "$as_me:$LINENO: result: $enable_shared" >&5
10419 echo "${ECHO_T}$enable_shared" >&6
10421 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10422 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10423 # Make sure either enable_shared or enable_static is yes.
10424 test "$enable_shared" = yes || enable_static=yes
10425 echo "$as_me:$LINENO: result: $enable_static" >&5
10426 echo "${ECHO_T}$enable_static" >&6
10428 # The else clause should only fire when bootstrapping the
10429 # libtool distribution, otherwise you forgot to ship ltmain.sh
10430 # with your package, and you will get complaints that there are
10431 # no rules to generate ltmain.sh.
10432 if test -f "$ltmain"; then
10433 # See if we are running on zsh, and set the options which allow our commands through
10434 # without removal of \ escapes.
10435 if test -n "${ZSH_VERSION+set}" ; then
10436 setopt NO_GLOB_SUBST
10438 # Now quote all the things that may contain metacharacters while being
10439 # careful not to overquote the AC_SUBSTed values. We take copies of the
10440 # variables and quote the copies for generation of the libtool script.
10441 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10443 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10444 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10445 deplibs_check_method reload_flag reload_cmds need_locks \
10446 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10447 lt_cv_sys_global_symbol_to_c_name_address \
10448 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10449 old_postinstall_cmds old_postuninstall_cmds \
10453 lt_prog_compiler_wl \
10454 lt_prog_compiler_pic \
10455 lt_prog_compiler_static \
10456 lt_prog_compiler_no_builtin_flag \
10457 export_dynamic_flag_spec \
10458 thread_safe_flag_spec \
10459 whole_archive_flag_spec \
10460 enable_shared_with_static_runtimes \
10462 old_archive_from_new_cmds \
10467 compiler_lib_search_path \
10469 archive_expsym_cmds \
10471 postuninstall_cmds \
10472 old_archive_from_expsyms_cmds \
10473 allow_undefined_flag \
10474 no_undefined_flag \
10475 export_symbols_cmds \
10476 hardcode_libdir_flag_spec \
10477 hardcode_libdir_flag_spec_ld \
10478 hardcode_libdir_separator \
10479 hardcode_automatic \
10481 module_expsym_cmds \
10482 lt_cv_prog_compiler_c_o \
10484 include_expsyms; do
10487 old_archive_cmds | \
10488 old_archive_from_new_cmds | \
10490 archive_expsym_cmds | \
10492 module_expsym_cmds | \
10493 old_archive_from_expsyms_cmds | \
10494 export_symbols_cmds | \
10495 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10496 postinstall_cmds | postuninstall_cmds | \
10497 old_postinstall_cmds | old_postuninstall_cmds | \
10498 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10499 # Double-quote double-evaled strings.
10500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10509 *'\$0 --fallback-echo"')
10510 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10514 cfgfile="${ofile}T"
10515 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10517 { echo "$as_me:$LINENO: creating $ofile" >&5
10518 echo "$as_me: creating $ofile" >&6;}
10520 cat <<__EOF__ >> "$cfgfile"
10523 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10524 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10525 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10527 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10528 # Free Software Foundation, Inc.
10530 # This file is part of GNU Libtool:
10531 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10533 # This program is free software; you can redistribute it and/or modify
10534 # it under the terms of the GNU General Public License as published by
10535 # the Free Software Foundation; either version 2 of the License, or
10536 # (at your option) any later version.
10538 # This program is distributed in the hope that it will be useful, but
10539 # WITHOUT ANY WARRANTY; without even the implied warranty of
10540 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10541 # General Public License for more details.
10543 # You should have received a copy of the GNU General Public License
10544 # along with this program; if not, write to the Free Software
10545 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10547 # As a special exception to the GNU General Public License, if you
10548 # distribute this file as part of a program that contains a
10549 # configuration script generated by Autoconf, you may include it under
10550 # the same distribution terms that you use for the rest of that program.
10552 # A sed program that does not truncate output.
10555 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10556 Xsed="$SED -e 1s/^X//"
10558 # The HP-UX ksh and POSIX shell print the target directory to stdout
10559 # if CDPATH is set.
10560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10562 # The names of the tagged configurations supported by this script.
10565 # ### BEGIN LIBTOOL CONFIG
10567 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10569 # Shell to use when invoking shell scripts.
10572 # Whether or not to build shared libraries.
10573 build_libtool_libs=$enable_shared
10575 # Whether or not to build static libraries.
10576 build_old_libs=$enable_static
10578 # Whether or not to add -lc for building shared libraries.
10579 build_libtool_need_lc=$archive_cmds_need_lc
10581 # Whether or not to disallow shared libs when runtime libs are static
10582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10584 # Whether or not to optimize for fast installation.
10585 fast_install=$enable_fast_install
10588 host_alias=$host_alias
10592 # The build system.
10593 build_alias=$build_alias
10597 # An echo program that does not interpret backslashes.
10602 AR_FLAGS=$lt_AR_FLAGS
10607 # A language-specific compiler.
10610 # Is the compiler the GNU C compiler?
10616 # The linker used to build libraries.
10619 # Whether we need hard or soft links.
10622 # A BSD-compatible nm program.
10625 # A symbol stripping program
10628 # Used to examine libraries when file_magic_cmd begins "file"
10629 MAGIC_CMD=$MAGIC_CMD
10631 # Used on cygwin: DLL creation program.
10634 # Used on cygwin: object dumper.
10637 # Used on cygwin: assembler.
10640 # The name of the directory that contains temporary libtool files.
10643 # How to create reloadable object files.
10644 reload_flag=$lt_reload_flag
10645 reload_cmds=$lt_reload_cmds
10647 # How to pass a linker flag through the compiler.
10648 wl=$lt_lt_prog_compiler_wl
10650 # Object file suffix (normally "o").
10651 objext="$ac_objext"
10653 # Old archive suffix (normally "a").
10656 # Shared library suffix (normally ".so").
10657 shrext_cmds='$shrext_cmds'
10659 # Executable file suffix (normally "").
10662 # Additional compiler flags for building library objects.
10663 pic_flag=$lt_lt_prog_compiler_pic
10666 # What is the maximum length of a command?
10667 max_cmd_len=$lt_cv_sys_max_cmd_len
10669 # Does compiler simultaneously support -c and -o options?
10670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10672 # Must we lock files when doing compilation?
10673 need_locks=$lt_need_locks
10675 # Do we need the lib prefix for modules?
10676 need_lib_prefix=$need_lib_prefix
10678 # Do we need a version for libraries?
10679 need_version=$need_version
10681 # Whether dlopen is supported.
10682 dlopen_support=$enable_dlopen
10684 # Whether dlopen of programs is supported.
10685 dlopen_self=$enable_dlopen_self
10687 # Whether dlopen of statically linked programs is supported.
10688 dlopen_self_static=$enable_dlopen_self_static
10690 # Compiler flag to prevent dynamic linking.
10691 link_static_flag=$lt_lt_prog_compiler_static
10693 # Compiler flag to turn off builtin functions.
10694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10696 # Compiler flag to allow reflexive dlopens.
10697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10699 # Compiler flag to generate shared objects directly from archives.
10700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10702 # Compiler flag to generate thread-safe objects.
10703 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10705 # Library versioning type.
10706 version_type=$version_type
10708 # Format of library name prefix.
10709 libname_spec=$lt_libname_spec
10711 # List of archive names. First name is the real one, the rest are links.
10712 # The last name is the one that the linker finds with -lNAME.
10713 library_names_spec=$lt_library_names_spec
10715 # The coded name of the library, if different from the real name.
10716 soname_spec=$lt_soname_spec
10718 # Commands used to build and install an old-style archive.
10720 old_archive_cmds=$lt_old_archive_cmds
10721 old_postinstall_cmds=$lt_old_postinstall_cmds
10722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10724 # Create an old-style archive from a shared archive.
10725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10727 # Create a temporary old-style archive to link instead of a shared archive.
10728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10730 # Commands used to build and install a shared archive.
10731 archive_cmds=$lt_archive_cmds
10732 archive_expsym_cmds=$lt_archive_expsym_cmds
10733 postinstall_cmds=$lt_postinstall_cmds
10734 postuninstall_cmds=$lt_postuninstall_cmds
10736 # Commands used to build a loadable module (assumed same as above if empty)
10737 module_cmds=$lt_module_cmds
10738 module_expsym_cmds=$lt_module_expsym_cmds
10740 # Commands to strip libraries.
10741 old_striplib=$lt_old_striplib
10742 striplib=$lt_striplib
10744 # Dependencies to place before the objects being linked to create a
10746 predep_objects=$lt_predep_objects
10748 # Dependencies to place after the objects being linked to create a
10750 postdep_objects=$lt_postdep_objects
10752 # Dependencies to place before the objects being linked to create a
10754 predeps=$lt_predeps
10756 # Dependencies to place after the objects being linked to create a
10758 postdeps=$lt_postdeps
10760 # The library search path used internally by the compiler when linking
10761 # a shared library.
10762 compiler_lib_search_path=$lt_compiler_lib_search_path
10764 # Method to check whether dependent libraries are shared objects.
10765 deplibs_check_method=$lt_deplibs_check_method
10767 # Command to use when deplibs_check_method == file_magic.
10768 file_magic_cmd=$lt_file_magic_cmd
10770 # Flag that allows shared libraries with undefined symbols to be built.
10771 allow_undefined_flag=$lt_allow_undefined_flag
10773 # Flag that forces no undefined symbols.
10774 no_undefined_flag=$lt_no_undefined_flag
10776 # Commands used to finish a libtool library installation in a directory.
10777 finish_cmds=$lt_finish_cmds
10779 # Same as above, but a single script fragment to be evaled but not shown.
10780 finish_eval=$lt_finish_eval
10782 # Take the output of nm and produce a listing of raw symbols and C names.
10783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10785 # Transform the output of nm in a proper C declaration
10786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10788 # Transform the output of nm in a C name address pair
10789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10791 # This is the shared library runtime path variable.
10792 runpath_var=$runpath_var
10794 # This is the shared library path variable.
10795 shlibpath_var=$shlibpath_var
10797 # Is shlibpath searched before the hard-coded library search path?
10798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10800 # How to hardcode a shared library path into an executable.
10801 hardcode_action=$hardcode_action
10803 # Whether we should hardcode library paths into libraries.
10804 hardcode_into_libs=$hardcode_into_libs
10806 # Flag to hardcode \$libdir into a binary during linking.
10807 # This must work even if \$libdir does not exist.
10808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10810 # If ld is used when linking, flag to hardcode \$libdir into
10811 # a binary during linking. This must work even if \$libdir does
10813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10815 # Whether we need a single -rpath flag with a separated argument.
10816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10819 # resulting binary.
10820 hardcode_direct=$hardcode_direct
10822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10823 # resulting binary.
10824 hardcode_minus_L=$hardcode_minus_L
10826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10827 # the resulting binary.
10828 hardcode_shlibpath_var=$hardcode_shlibpath_var
10830 # Set to yes if building a shared library automatically hardcodes DIR into the library
10831 # and all subsequent libraries and executables linked against it.
10832 hardcode_automatic=$hardcode_automatic
10834 # Variables whose values should be saved in libtool wrapper scripts and
10835 # restored at relink time.
10836 variables_saved_for_relink="$variables_saved_for_relink"
10838 # Whether libtool must link a program against all its dependency libraries.
10839 link_all_deplibs=$link_all_deplibs
10841 # Compile-time system search path for libraries
10842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10844 # Run-time system search path for libraries
10845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10847 # Fix the shell variable \$srcfile for the compiler.
10848 fix_srcfile_path="$fix_srcfile_path"
10850 # Set to yes if exported symbols are required.
10851 always_export_symbols=$always_export_symbols
10853 # The commands to list exported symbols.
10854 export_symbols_cmds=$lt_export_symbols_cmds
10856 # The commands to extract the exported symbol list from a shared archive.
10857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10859 # Symbols that should not be listed in the preloaded symbols.
10860 exclude_expsyms=$lt_exclude_expsyms
10862 # Symbols that must always be exported.
10863 include_expsyms=$lt_include_expsyms
10865 # ### END LIBTOOL CONFIG
10872 cat <<\EOF >> "$cfgfile"
10874 # AIX sometimes has problems with the GCC collect2 program. For some
10875 # reason, if we set the COLLECT_NAMES environment variable, the problems
10876 # vanish in a puff of smoke.
10877 if test "X${COLLECT_NAMES+set}" != Xset; then
10879 export COLLECT_NAMES
10885 # We use sed instead of cat because bash on DJGPP gets confused if
10886 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10887 # text mode, it properly converts lines to CR/LF. This bash problem
10888 # is reportedly fixed, but why not run on old versions too?
10889 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10891 mv -f "$cfgfile" "$ofile" || \
10892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10896 # If there is no Makefile yet, we rely on a make rule to execute
10897 # `config.status --recheck' to rerun these tests and create the
10898 # libtool script then.
10899 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10900 if test -f "$ltmain_in"; then
10901 test -f Makefile && make "$ltmain"
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10915 # Check whether --with-tags or --without-tags was given.
10916 if test "${with_tags+set}" = set; then
10917 withval="$with_tags"
10918 tagnames="$withval"
10921 if test -f "$ltmain" && test -n "$tagnames"; then
10922 if test ! -f "${ofile}"; then
10923 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10924 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10927 if test -z "$LTCC"; then
10928 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10929 if test -z "$LTCC"; then
10930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10931 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10938 # Extract list of available tagged configurations in $ofile.
10939 # Note that this assumes the entire list is on one line.
10940 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10943 for tagname in $tagnames; do
10945 # Check whether tagname contains only valid characters
10946 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10948 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10949 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10950 { (exit 1); exit 1; }; }
10954 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10956 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10957 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10958 { (exit 1); exit 1; }; }
10961 # Update the list of available tags.
10962 if test -n "$tagname"; then
10963 echo appending configuration tag \"$tagname\" to $ofile
10967 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10968 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10969 (test "X$CXX" != "Xg++"))) ; then
10977 if test -n "$F77" && test "X$F77" != "Xno"; then
10985 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10996 # Source file extension for RC test sources.
10999 # Object file extension for compiled RC test sources.
11003 # Code to be used in simple compile tests
11004 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11006 # Code to be used in simple link tests
11007 lt_simple_link_test_code="$lt_simple_compile_test_code"
11009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11011 # If no C compiler was specified, use CC.
11014 # Allow CC to be a program name with arguments.
11018 # save warnings/boilerplate of simple test code
11019 ac_outfile=conftest.$ac_objext
11020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11022 _lt_compiler_boilerplate=`cat conftest.err`
11025 ac_outfile=conftest.$ac_objext
11026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11028 _lt_linker_boilerplate=`cat conftest.err`
11032 # Allow CC to be a program name with arguments.
11037 for cc_temp in $compiler""; do
11039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11047 lt_cv_prog_compiler_c_o_RC=yes
11049 # The else clause should only fire when bootstrapping the
11050 # libtool distribution, otherwise you forgot to ship ltmain.sh
11051 # with your package, and you will get complaints that there are
11052 # no rules to generate ltmain.sh.
11053 if test -f "$ltmain"; then
11054 # See if we are running on zsh, and set the options which allow our commands through
11055 # without removal of \ escapes.
11056 if test -n "${ZSH_VERSION+set}" ; then
11057 setopt NO_GLOB_SUBST
11059 # Now quote all the things that may contain metacharacters while being
11060 # careful not to overquote the AC_SUBSTed values. We take copies of the
11061 # variables and quote the copies for generation of the libtool script.
11062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11066 deplibs_check_method reload_flag reload_cmds need_locks \
11067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11068 lt_cv_sys_global_symbol_to_c_name_address \
11069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11070 old_postinstall_cmds old_postuninstall_cmds \
11074 lt_prog_compiler_wl_RC \
11075 lt_prog_compiler_pic_RC \
11076 lt_prog_compiler_static_RC \
11077 lt_prog_compiler_no_builtin_flag_RC \
11078 export_dynamic_flag_spec_RC \
11079 thread_safe_flag_spec_RC \
11080 whole_archive_flag_spec_RC \
11081 enable_shared_with_static_runtimes_RC \
11082 old_archive_cmds_RC \
11083 old_archive_from_new_cmds_RC \
11084 predep_objects_RC \
11085 postdep_objects_RC \
11088 compiler_lib_search_path_RC \
11090 archive_expsym_cmds_RC \
11091 postinstall_cmds_RC \
11092 postuninstall_cmds_RC \
11093 old_archive_from_expsyms_cmds_RC \
11094 allow_undefined_flag_RC \
11095 no_undefined_flag_RC \
11096 export_symbols_cmds_RC \
11097 hardcode_libdir_flag_spec_RC \
11098 hardcode_libdir_flag_spec_ld_RC \
11099 hardcode_libdir_separator_RC \
11100 hardcode_automatic_RC \
11102 module_expsym_cmds_RC \
11103 lt_cv_prog_compiler_c_o_RC \
11104 exclude_expsyms_RC \
11105 include_expsyms_RC; do
11108 old_archive_cmds_RC | \
11109 old_archive_from_new_cmds_RC | \
11110 archive_cmds_RC | \
11111 archive_expsym_cmds_RC | \
11113 module_expsym_cmds_RC | \
11114 old_archive_from_expsyms_cmds_RC | \
11115 export_symbols_cmds_RC | \
11116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11117 postinstall_cmds | postuninstall_cmds | \
11118 old_postinstall_cmds | old_postuninstall_cmds | \
11119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11120 # Double-quote double-evaled strings.
11121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11130 *'\$0 --fallback-echo"')
11131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11137 cat <<__EOF__ >> "$cfgfile"
11138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11142 # Shell to use when invoking shell scripts.
11145 # Whether or not to build shared libraries.
11146 build_libtool_libs=$enable_shared
11148 # Whether or not to build static libraries.
11149 build_old_libs=$enable_static
11151 # Whether or not to add -lc for building shared libraries.
11152 build_libtool_need_lc=$archive_cmds_need_lc_RC
11154 # Whether or not to disallow shared libs when runtime libs are static
11155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11157 # Whether or not to optimize for fast installation.
11158 fast_install=$enable_fast_install
11161 host_alias=$host_alias
11165 # The build system.
11166 build_alias=$build_alias
11170 # An echo program that does not interpret backslashes.
11175 AR_FLAGS=$lt_AR_FLAGS
11180 # A language-specific compiler.
11183 # Is the compiler the GNU C compiler?
11189 # The linker used to build libraries.
11192 # Whether we need hard or soft links.
11195 # A BSD-compatible nm program.
11198 # A symbol stripping program
11201 # Used to examine libraries when file_magic_cmd begins "file"
11202 MAGIC_CMD=$MAGIC_CMD
11204 # Used on cygwin: DLL creation program.
11207 # Used on cygwin: object dumper.
11210 # Used on cygwin: assembler.
11213 # The name of the directory that contains temporary libtool files.
11216 # How to create reloadable object files.
11217 reload_flag=$lt_reload_flag
11218 reload_cmds=$lt_reload_cmds
11220 # How to pass a linker flag through the compiler.
11221 wl=$lt_lt_prog_compiler_wl_RC
11223 # Object file suffix (normally "o").
11224 objext="$ac_objext"
11226 # Old archive suffix (normally "a").
11229 # Shared library suffix (normally ".so").
11230 shrext_cmds='$shrext_cmds'
11232 # Executable file suffix (normally "").
11235 # Additional compiler flags for building library objects.
11236 pic_flag=$lt_lt_prog_compiler_pic_RC
11239 # What is the maximum length of a command?
11240 max_cmd_len=$lt_cv_sys_max_cmd_len
11242 # Does compiler simultaneously support -c and -o options?
11243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11245 # Must we lock files when doing compilation?
11246 need_locks=$lt_need_locks
11248 # Do we need the lib prefix for modules?
11249 need_lib_prefix=$need_lib_prefix
11251 # Do we need a version for libraries?
11252 need_version=$need_version
11254 # Whether dlopen is supported.
11255 dlopen_support=$enable_dlopen
11257 # Whether dlopen of programs is supported.
11258 dlopen_self=$enable_dlopen_self
11260 # Whether dlopen of statically linked programs is supported.
11261 dlopen_self_static=$enable_dlopen_self_static
11263 # Compiler flag to prevent dynamic linking.
11264 link_static_flag=$lt_lt_prog_compiler_static_RC
11266 # Compiler flag to turn off builtin functions.
11267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11269 # Compiler flag to allow reflexive dlopens.
11270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11272 # Compiler flag to generate shared objects directly from archives.
11273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11275 # Compiler flag to generate thread-safe objects.
11276 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11278 # Library versioning type.
11279 version_type=$version_type
11281 # Format of library name prefix.
11282 libname_spec=$lt_libname_spec
11284 # List of archive names. First name is the real one, the rest are links.
11285 # The last name is the one that the linker finds with -lNAME.
11286 library_names_spec=$lt_library_names_spec
11288 # The coded name of the library, if different from the real name.
11289 soname_spec=$lt_soname_spec
11291 # Commands used to build and install an old-style archive.
11293 old_archive_cmds=$lt_old_archive_cmds_RC
11294 old_postinstall_cmds=$lt_old_postinstall_cmds
11295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11297 # Create an old-style archive from a shared archive.
11298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11300 # Create a temporary old-style archive to link instead of a shared archive.
11301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11303 # Commands used to build and install a shared archive.
11304 archive_cmds=$lt_archive_cmds_RC
11305 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11306 postinstall_cmds=$lt_postinstall_cmds
11307 postuninstall_cmds=$lt_postuninstall_cmds
11309 # Commands used to build a loadable module (assumed same as above if empty)
11310 module_cmds=$lt_module_cmds_RC
11311 module_expsym_cmds=$lt_module_expsym_cmds_RC
11313 # Commands to strip libraries.
11314 old_striplib=$lt_old_striplib
11315 striplib=$lt_striplib
11317 # Dependencies to place before the objects being linked to create a
11319 predep_objects=$lt_predep_objects_RC
11321 # Dependencies to place after the objects being linked to create a
11323 postdep_objects=$lt_postdep_objects_RC
11325 # Dependencies to place before the objects being linked to create a
11327 predeps=$lt_predeps_RC
11329 # Dependencies to place after the objects being linked to create a
11331 postdeps=$lt_postdeps_RC
11333 # The library search path used internally by the compiler when linking
11334 # a shared library.
11335 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11337 # Method to check whether dependent libraries are shared objects.
11338 deplibs_check_method=$lt_deplibs_check_method
11340 # Command to use when deplibs_check_method == file_magic.
11341 file_magic_cmd=$lt_file_magic_cmd
11343 # Flag that allows shared libraries with undefined symbols to be built.
11344 allow_undefined_flag=$lt_allow_undefined_flag_RC
11346 # Flag that forces no undefined symbols.
11347 no_undefined_flag=$lt_no_undefined_flag_RC
11349 # Commands used to finish a libtool library installation in a directory.
11350 finish_cmds=$lt_finish_cmds
11352 # Same as above, but a single script fragment to be evaled but not shown.
11353 finish_eval=$lt_finish_eval
11355 # Take the output of nm and produce a listing of raw symbols and C names.
11356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11358 # Transform the output of nm in a proper C declaration
11359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11361 # Transform the output of nm in a C name address pair
11362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11364 # This is the shared library runtime path variable.
11365 runpath_var=$runpath_var
11367 # This is the shared library path variable.
11368 shlibpath_var=$shlibpath_var
11370 # Is shlibpath searched before the hard-coded library search path?
11371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11373 # How to hardcode a shared library path into an executable.
11374 hardcode_action=$hardcode_action_RC
11376 # Whether we should hardcode library paths into libraries.
11377 hardcode_into_libs=$hardcode_into_libs
11379 # Flag to hardcode \$libdir into a binary during linking.
11380 # This must work even if \$libdir does not exist.
11381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11383 # If ld is used when linking, flag to hardcode \$libdir into
11384 # a binary during linking. This must work even if \$libdir does
11386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11388 # Whether we need a single -rpath flag with a separated argument.
11389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11391 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11392 # resulting binary.
11393 hardcode_direct=$hardcode_direct_RC
11395 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11396 # resulting binary.
11397 hardcode_minus_L=$hardcode_minus_L_RC
11399 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11400 # the resulting binary.
11401 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11403 # Set to yes if building a shared library automatically hardcodes DIR into the library
11404 # and all subsequent libraries and executables linked against it.
11405 hardcode_automatic=$hardcode_automatic_RC
11407 # Variables whose values should be saved in libtool wrapper scripts and
11408 # restored at relink time.
11409 variables_saved_for_relink="$variables_saved_for_relink"
11411 # Whether libtool must link a program against all its dependency libraries.
11412 link_all_deplibs=$link_all_deplibs_RC
11414 # Compile-time system search path for libraries
11415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11417 # Run-time system search path for libraries
11418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11420 # Fix the shell variable \$srcfile for the compiler.
11421 fix_srcfile_path="$fix_srcfile_path_RC"
11423 # Set to yes if exported symbols are required.
11424 always_export_symbols=$always_export_symbols_RC
11426 # The commands to list exported symbols.
11427 export_symbols_cmds=$lt_export_symbols_cmds_RC
11429 # The commands to extract the exported symbol list from a shared archive.
11430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11432 # Symbols that should not be listed in the preloaded symbols.
11433 exclude_expsyms=$lt_exclude_expsyms_RC
11435 # Symbols that must always be exported.
11436 include_expsyms=$lt_include_expsyms_RC
11438 # ### END LIBTOOL TAG CONFIG: $tagname
11444 # If there is no Makefile yet, we rely on a make rule to execute
11445 # `config.status --recheck' to rerun these tests and create the
11446 # libtool script then.
11447 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11448 if test -f "$ltmain_in"; then
11449 test -f Makefile && make "$ltmain"
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11465 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11466 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11467 { (exit 1); exit 1; }; }
11471 # Append the new tag name to the list of available tags.
11472 if test -n "$tagname" ; then
11473 available_tags="$available_tags $tagname"
11479 # Now substitute the updated list of available tags.
11480 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11481 mv "${ofile}T" "$ofile"
11485 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11486 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11487 { (exit 1); exit 1; }; }
11493 # This can be used to rebuild libtool when needed
11494 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11496 # Always use our own libtool.
11497 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11499 # Prevent multiple expansion
11511 if test $ol_enable_perl != no ; then
11512 # Extract the first word of "perl", so it can be a program name with args.
11513 set dummy perl; ac_word=$2
11514 echo "$as_me:$LINENO: checking for $ac_word" >&5
11515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516 if test "${ac_cv_path_PERLBIN+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11542 PERLBIN=$ac_cv_path_PERLBIN
11544 if test -n "$PERLBIN"; then
11545 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11546 echo "${ECHO_T}$PERLBIN" >&6
11548 echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6
11553 if test "no$PERLBIN" = "no" ; then
11554 if test $ol_enable_perl = yes ; then
11555 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11556 echo "$as_me: error: could not locate perl" >&2;}
11557 { (exit 1); exit 1; }; }
11561 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11562 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11564 if test x"$ol_enable_perl" = "xyes" ; then
11565 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11567 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11579 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11580 # On Suns, sometimes $CPP names a directory.
11581 if test -n "$CPP" && test -d "$CPP"; then
11584 if test -z "$CPP"; then
11585 if test "${ac_cv_prog_CPP+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 # Double quotes because CPP needs to be expanded
11589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11591 ac_preproc_ok=false
11592 for ac_c_preproc_warn_flag in '' yes
11594 # Use a header file that comes with gcc, so configuring glibc
11595 # with a fresh cross-compiler works.
11596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597 # <limits.h> exists even on freestanding compilers.
11598 # On the NeXT, cc -E runs the code through the compiler's parser,
11599 # not just through cpp. "Syntax error" is here to catch this case.
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 # include <limits.h>
11609 # include <assert.h>
11613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } >/dev/null; then
11621 if test -s conftest.err; then
11622 ac_cpp_err=$ac_c_preproc_warn_flag
11623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11630 if test -z "$ac_cpp_err"; then
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 # Broken: fails on valid input.
11639 rm -f conftest.err conftest.$ac_ext
11641 # OK, works on sane cases. Now check whether non-existent headers
11642 # can be detected and how.
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 #include <ac_nonexistent.h>
11651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev/null; then
11659 if test -s conftest.err; then
11660 ac_cpp_err=$ac_c_preproc_warn_flag
11661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668 if test -z "$ac_cpp_err"; then
11669 # Broken: success on invalid input.
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 # Passes both tests.
11679 rm -f conftest.err conftest.$ac_ext
11682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11683 rm -f conftest.err conftest.$ac_ext
11684 if $ac_preproc_ok; then
11689 ac_cv_prog_CPP=$CPP
11692 CPP=$ac_cv_prog_CPP
11694 ac_cv_prog_CPP=$CPP
11696 echo "$as_me:$LINENO: result: $CPP" >&5
11697 echo "${ECHO_T}$CPP" >&6
11698 ac_preproc_ok=false
11699 for ac_c_preproc_warn_flag in '' yes
11701 # Use a header file that comes with gcc, so configuring glibc
11702 # with a fresh cross-compiler works.
11703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704 # <limits.h> exists even on freestanding compilers.
11705 # On the NeXT, cc -E runs the code through the compiler's parser,
11706 # not just through cpp. "Syntax error" is here to catch this case.
11707 cat >conftest.$ac_ext <<_ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11714 # include <limits.h>
11716 # include <assert.h>
11720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } >/dev/null; then
11728 if test -s conftest.err; then
11729 ac_cpp_err=$ac_c_preproc_warn_flag
11730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11737 if test -z "$ac_cpp_err"; then
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 # Broken: fails on valid input.
11746 rm -f conftest.err conftest.$ac_ext
11748 # OK, works on sane cases. Now check whether non-existent headers
11749 # can be detected and how.
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 #include <ac_nonexistent.h>
11758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } >/dev/null; then
11766 if test -s conftest.err; then
11767 ac_cpp_err=$ac_c_preproc_warn_flag
11768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11775 if test -z "$ac_cpp_err"; then
11776 # Broken: success on invalid input.
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 # Passes both tests.
11786 rm -f conftest.err conftest.$ac_ext
11789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11790 rm -f conftest.err conftest.$ac_ext
11791 if $ac_preproc_ok; then
11794 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11795 See \`config.log' for more details." >&5
11796 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11797 See \`config.log' for more details." >&2;}
11798 { (exit 1); exit 1; }; }
11802 ac_cpp='$CPP $CPPFLAGS'
11803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809 *mingw32* ) ac_cv_mingw32=yes ;;
11810 *cygwin* ) ac_cv_cygwin=yes ;;
11816 cat >>confdefs.h <<_ACEOF
11817 #define EXEEXT "${EXEEXT}"
11821 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11822 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11823 if test "${ac_cv_lib_be_be_app+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-lbe -lroot -lnet $LIBS"
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 /* Override any gcc2 internal prototype to avoid an error. */
11839 /* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag"
11860 || test ! -s conftest.err'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ac_cv_lib_be_be_app=yes
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_cv_lib_be_be_app=no
11879 rm -f conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11883 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11884 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11885 if test $ac_cv_lib_be_be_app = yes; then
11886 LIBS="$LIBS -lbe -lroot -lnet"
11893 ac_cpp='$CPP $CPPFLAGS'
11894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 if test -n "$ac_tool_prefix"; then
11898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11900 echo "$as_me:$LINENO: checking for $ac_word" >&5
11901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11902 if test "${ac_cv_prog_CC+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 if test -n "$CC"; then
11906 ac_cv_prog_CC="$CC" # Let the user override the test.
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 if test -n "$CC"; then
11926 echo "$as_me:$LINENO: result: $CC" >&5
11927 echo "${ECHO_T}$CC" >&6
11929 echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11934 if test -z "$ac_cv_prog_CC"; then
11936 # Extract the first word of "gcc", so it can be a program name with args.
11937 set dummy gcc; ac_word=$2
11938 echo "$as_me:$LINENO: checking for $ac_word" >&5
11939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 if test -n "$ac_ct_CC"; then
11944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_prog_ac_ct_CC="gcc"
11954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11963 if test -n "$ac_ct_CC"; then
11964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11965 echo "${ECHO_T}$ac_ct_CC" >&6
11967 echo "$as_me:$LINENO: result: no" >&5
11968 echo "${ECHO_T}no" >&6
11973 CC="$ac_cv_prog_CC"
11976 if test -z "$CC"; then
11977 if test -n "$ac_tool_prefix"; then
11978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11979 set dummy ${ac_tool_prefix}cc; ac_word=$2
11980 echo "$as_me:$LINENO: checking for $ac_word" >&5
11981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11982 if test "${ac_cv_prog_CC+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 if test -n "$CC"; then
11986 ac_cv_prog_CC="$CC" # Let the user override the test.
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_CC="${ac_tool_prefix}cc"
11996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 if test -n "$CC"; then
12006 echo "$as_me:$LINENO: result: $CC" >&5
12007 echo "${ECHO_T}$CC" >&6
12009 echo "$as_me:$LINENO: result: no" >&5
12010 echo "${ECHO_T}no" >&6
12014 if test -z "$ac_cv_prog_CC"; then
12016 # Extract the first word of "cc", so it can be a program name with args.
12017 set dummy cc; ac_word=$2
12018 echo "$as_me:$LINENO: checking for $ac_word" >&5
12019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 if test -n "$ac_ct_CC"; then
12024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_ac_ct_CC="cc"
12034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12043 if test -n "$ac_ct_CC"; then
12044 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12045 echo "${ECHO_T}$ac_ct_CC" >&6
12047 echo "$as_me:$LINENO: result: no" >&5
12048 echo "${ECHO_T}no" >&6
12053 CC="$ac_cv_prog_CC"
12057 if test -z "$CC"; then
12058 # Extract the first word of "cc", so it can be a program name with args.
12059 set dummy cc; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_prog_CC+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 if test -n "$CC"; then
12066 ac_cv_prog_CC="$CC" # Let the user override the test.
12068 ac_prog_rejected=no
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12077 ac_prog_rejected=yes
12081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 if test $ac_prog_rejected = yes; then
12088 # We found a bogon in the path, so make sure we never use it.
12089 set dummy $ac_cv_prog_CC
12091 if test $# != 0; then
12092 # We chose a different compiler from the bogus one.
12093 # However, it has the same basename, so the bogon will be chosen
12094 # first if we set CC to just the basename; use the full file name.
12096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12102 if test -n "$CC"; then
12103 echo "$as_me:$LINENO: result: $CC" >&5
12104 echo "${ECHO_T}$CC" >&6
12106 echo "$as_me:$LINENO: result: no" >&5
12107 echo "${ECHO_T}no" >&6
12111 if test -z "$CC"; then
12112 if test -n "$ac_tool_prefix"; then
12115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12117 echo "$as_me:$LINENO: checking for $ac_word" >&5
12118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12119 if test "${ac_cv_prog_CC+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 if test -n "$CC"; then
12123 ac_cv_prog_CC="$CC" # Let the user override the test.
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12129 test -z "$as_dir" && as_dir=.
12130 for ac_exec_ext in '' $ac_executable_extensions; do
12131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 if test -n "$CC"; then
12143 echo "$as_me:$LINENO: result: $CC" >&5
12144 echo "${ECHO_T}$CC" >&6
12146 echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6
12150 test -n "$CC" && break
12153 if test -z "$CC"; then
12157 # Extract the first word of "$ac_prog", so it can be a program name with args.
12158 set dummy $ac_prog; ac_word=$2
12159 echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 if test -n "$ac_ct_CC"; then
12165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_ac_ct_CC="$ac_prog"
12175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12184 if test -n "$ac_ct_CC"; then
12185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12186 echo "${ECHO_T}$ac_ct_CC" >&6
12188 echo "$as_me:$LINENO: result: no" >&5
12189 echo "${ECHO_T}no" >&6
12192 test -n "$ac_ct_CC" && break
12201 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12202 See \`config.log' for more details." >&5
12203 echo "$as_me: error: no acceptable C compiler found in \$PATH
12204 See \`config.log' for more details." >&2;}
12205 { (exit 1); exit 1; }; }
12207 # Provide some information about the compiler.
12208 echo "$as_me:$LINENO:" \
12209 "checking for C compiler version" >&5
12210 ac_compiler=`set X $ac_compile; echo $2`
12211 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12212 (eval $ac_compiler --version </dev/null >&5) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }
12216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12217 (eval $ac_compiler -v </dev/null >&5) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }
12221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12222 (eval $ac_compiler -V </dev/null >&5) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }
12227 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>conftest.er1
12254 grep -v '^ *+' conftest.er1 >conftest.err
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try='test -z "$ac_c_werror_flag"
12260 || test ! -s conftest.err'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 ac_compiler_gnu=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12283 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12284 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12285 GCC=`test $ac_compiler_gnu = yes && echo yes`
12286 ac_test_CFLAGS=${CFLAGS+set}
12287 ac_save_CFLAGS=$CFLAGS
12289 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12290 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12291 if test "${ac_cv_prog_cc_g+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_cv_prog_cc_g=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12342 if test "$ac_test_CFLAGS" = set; then
12343 CFLAGS=$ac_save_CFLAGS
12344 elif test $ac_cv_prog_cc_g = yes; then
12345 if test "$GCC" = yes; then
12351 if test "$GCC" = yes; then
12357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_cv_prog_cc_stdc=no
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #include <stdarg.h>
12372 #include <sys/types.h>
12373 #include <sys/stat.h>
12374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12375 struct buf { int x; };
12376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12377 static char *e (p, i)
12383 static char *f (char * (*g) (char **, int), char **p, ...)
12388 s = g (p, va_arg (v,int));
12393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12394 function prototypes and stuff, but not '\xHH' hex character constants.
12395 These don't provoke an error unfortunately, instead are silently treated
12396 as 'x'. The following induces an error, until -std1 is added to get
12397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12398 array size at least. It's necessary to write '\x00'==0 to get something
12399 that's true only with -std1. */
12400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12402 int test (int i, double x);
12403 struct s1 {int (*f) (int a);};
12404 struct s2 {int (*f) (double a);};
12405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12416 # Don't try gcc -ansi; that turns off useful extensions and
12417 # breaks some systems' header files.
12418 # AIX -qlanglvl=ansi
12419 # Ultrix and OSF/1 -std1
12420 # HP-UX 10.20 and later -Ae
12421 # HP-UX older versions -Aa -D_HPUX_SOURCE
12422 # SVR4 -Xc -D__EXTENSIONS__
12423 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12425 CC="$ac_save_CC $ac_arg"
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_prog_cc_stdc=$ac_arg
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12455 rm -f conftest.err conftest.$ac_objext
12457 rm -f conftest.$ac_ext conftest.$ac_objext
12462 case "x$ac_cv_prog_cc_stdc" in
12464 echo "$as_me:$LINENO: result: none needed" >&5
12465 echo "${ECHO_T}none needed" >&6 ;;
12467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12468 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12469 CC="$CC $ac_cv_prog_cc_stdc" ;;
12472 # Some people use a C++ compiler to compile C. Since we use `exit',
12473 # in C++ we need to declare it. In case someone uses the same compiler
12474 # for both compiling C and C++ we need to have the C++ compiler decide
12475 # the declaration of exit, since it's the most demanding environment.
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #ifndef __cplusplus
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 for ac_declaration in \
12505 'extern "C" void std::exit (int) throw (); using std::exit;' \
12506 'extern "C" void std::exit (int); using std::exit;' \
12507 'extern "C" void exit (int) throw ();' \
12508 'extern "C" void exit (int);' \
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 #include <stdlib.h>
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>conftest.er1
12576 grep -v '^ *+' conftest.er1 >conftest.err
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -z "$ac_c_werror_flag"
12582 || test ! -s conftest.err'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 if test -n "$ac_declaration"; then
12604 echo '#ifdef __cplusplus' >>confdefs.h
12605 echo $ac_declaration >>confdefs.h
12606 echo '#endif' >>confdefs.h
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12616 ac_cpp='$CPP $CPPFLAGS'
12617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12621 depcc="$CC" am_compiler_list=
12623 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12624 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12625 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12629 # We make a subdir and do the tests there. Otherwise we can end up
12630 # making bogus files that we don't know about and never remove. For
12631 # instance it was reported that on HP-UX the gcc test will end up
12632 # making a dummy file named `D' -- because `-MD' means `put the output
12635 # Copy depcomp to subdir because otherwise we won't find it if we're
12636 # using a relative directory.
12637 cp "$am_depcomp" conftest.dir
12639 # We will build objects and dependencies in a subdirectory because
12640 # it helps to detect inapplicable dependency modes. For instance
12641 # both Tru64's cc and ICC support -MD to output dependencies as a
12642 # side effect of compilation, but ICC will put the dependencies in
12643 # the current directory while Tru64 will put them in the object
12647 am_cv_CC_dependencies_compiler_type=none
12648 if test "$am_compiler_list" = ""; then
12649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12651 for depmode in $am_compiler_list; do
12652 # Setup a source with many dependencies, because some compilers
12653 # like to wrap large dependency lists on column 80 (with \), and
12654 # we should not choose a depcomp mode which is confused by this.
12656 # We need to recreate these files for each test, as the compiler may
12657 # overwrite some of them when testing with obscure command lines.
12658 # This happens at least with the AIX C compiler.
12660 for i in 1 2 3 4 5 6; do
12661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12663 # Solaris 8's {/usr,}/bin/sh.
12664 touch sub/conftst$i.h
12666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12670 # after this tag, mechanisms are not by side-effect, so they'll
12671 # only be used when explicitly requested
12672 if test "x$enable_dependency_tracking" = xyes; then
12680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12681 # mode. It turns out that the SunPro C++ compiler does not properly
12682 # handle `-M -o', and we need to detect this.
12683 if depmode=$depmode \
12684 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12686 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12687 >/dev/null 2>conftest.err &&
12688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12689 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12691 # icc doesn't choke on unknown options, it will just issue warnings
12692 # or remarks (even with -Werror). So we grep stderr for any message
12693 # that says an option was ignored or not supported.
12694 # When given -MP, icc 7.0 and 7.1 complain thusly:
12695 # icc: Command line warning: ignoring option '-M'; no argument required
12696 # The diagnosis changed in icc 8.0:
12697 # icc: Command line remark: option '-MP' not supported
12698 if (grep 'ignoring option' conftest.err ||
12699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12700 am_cv_CC_dependencies_compiler_type=$depmode
12707 rm -rf conftest.dir
12709 am_cv_CC_dependencies_compiler_type=none
12713 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12714 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12715 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12720 test "x$enable_dependency_tracking" != xno \
12721 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12722 am__fastdepCC_TRUE=
12723 am__fastdepCC_FALSE='#'
12725 am__fastdepCC_TRUE='#'
12726 am__fastdepCC_FALSE=
12730 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12731 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12732 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12733 { (exit 1); exit 1; }; }
12736 # test for make depend flag
12739 if test -z "${MKDEP}"; then
12740 OL_MKDEP="${CC-cc}"
12741 if test -z "${MKDEP_FLAGS}"; then
12742 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12743 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12744 if test "${ol_cv_mkdep+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 for flag in "-M" "-xM"; do
12750 cat > conftest.c <<EOF
12753 if { ac_try='$OL_MKDEP $flag conftest.c'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } \
12759 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12761 if test ! -f conftest."${ac_object}" ; then
12763 OL_MKDEP_FLAGS="$flag"
12771 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12772 echo "${ECHO_T}$ol_cv_mkdep" >&6
12775 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12779 OL_MKDEP="${MKDEP}"
12780 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12785 if test "${ol_cv_mkdep}" = no ; then
12786 # this will soon become an error
12787 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12788 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12791 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12792 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12793 if test "${ac_cv_lib_s_afopen+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_check_lib_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any gcc2 internal prototype to avoid an error. */
12809 /* We use char because int might match the return type of a gcc2
12810 builtin and then its argument prototype would still apply. */
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_c_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_s_afopen=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12847 ac_cv_lib_s_afopen=no
12849 rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12854 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12855 if test $ac_cv_lib_s_afopen = yes; then
12859 cat >>confdefs.h <<\_ACEOF
12860 #define HAVE_AIX_SECURITY 1
12869 ac_cv_func_getopt=no
12871 cat >>confdefs.h <<\_ACEOF
12872 #define BOTH_STRINGS_H 1
12879 WITH_MODULES_ENABLED=no
12880 if test $ol_enable_modules != no ; then
12882 for ac_header in ltdl.h
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894 # Is the header compilable?
12895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 $ac_includes_default
12904 #include <$ac_header>
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag"
12916 || test ! -s conftest.err'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_header_compiler=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_header_compiler=no
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12942 cat >conftest.$ac_ext <<_ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 #include <$ac_header>
12950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } >/dev/null; then
12958 if test -s conftest.err; then
12959 ac_cpp_err=$ac_c_preproc_warn_flag
12960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12967 if test -z "$ac_cpp_err"; then
12968 ac_header_preproc=yes
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_header_preproc=no
12975 rm -f conftest.err conftest.$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12979 # So? What about this header?
12980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12986 ac_header_preproc=yes
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13003 ## --------------------------------------------- ##
13004 ## Report this to <http://www.openldap.org/its/> ##
13005 ## --------------------------------------------- ##
13008 sed "s/^/$as_me: WARNING: /" >&2
13011 echo "$as_me:$LINENO: checking for $ac_header" >&5
13012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 eval "$as_ac_Header=\$ac_header_preproc"
13018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13023 cat >>confdefs.h <<_ACEOF
13024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13032 if test $ac_cv_header_ltdl_h = no ; then
13033 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13034 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13035 { (exit 1); exit 1; }; }
13038 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13039 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13040 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 ac_check_lib_save_LIBS=$LIBS
13044 LIBS="-lltdl $LIBS"
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13052 /* Override any gcc2 internal prototype to avoid an error. */
13056 /* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069 (eval $ac_link) 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag"
13077 || test ! -s conftest.err'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest$ac_exeext'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_lib_ltdl_lt_dlinit=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_cv_lib_ltdl_lt_dlinit=no
13096 rm -f conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13101 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13102 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13104 MODULES_LIBS=-lltdl
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_LIBLTDL 1
13114 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13115 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13116 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13117 { (exit 1); exit 1; }; }
13119 ol_link_modules=yes
13120 WITH_MODULES_ENABLED=yes
13123 for i in $Backends; do
13124 eval "ol_tmp=\$ol_enable_$i"
13125 if test $ol_tmp = mod ; then
13126 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13127 echo "$as_me: WARNING: building static $i backend" >&2;}
13128 eval "ol_enable_$i=yes"
13131 for i in $Overlays; do
13132 eval "ol_tmp=\$ol_enable_$i"
13133 if test $ol_tmp = mod ; then
13134 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13135 echo "$as_me: WARNING: building static $i overlay" >&2;}
13136 eval "ol_enable_$i=yes"
13142 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13143 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13144 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13156 #include <__ASCII__/generate_error.h>
13160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_c_preproc_warn_flag
13170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13177 if test -z "$ac_cpp_err"; then
13178 ol_cv_cpp_ebcdic=yes
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ol_cv_cpp_ebcdic=no
13185 rm -f conftest.err conftest.$ac_ext
13187 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13188 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13189 if test $ol_cv_cpp_ebcdic = yes ; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_EBCDIC 1
13197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13199 if test "${ol_cv_header_stdc+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <stdlib.h>
13209 #include <stdarg.h>
13210 #include <string.h>
13213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } >/dev/null; then
13221 if test -s conftest.err; then
13222 ac_cpp_err=$ac_c_preproc_warn_flag
13223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13230 if test -z "$ac_cpp_err"; then
13231 ol_cv_header_stdc=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ol_cv_header_stdc=no
13238 rm -f conftest.err conftest.$ac_ext
13240 if test $ol_cv_header_stdc = yes; then
13241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <string.h>
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252 $EGREP "memchr" >/dev/null 2>&1; then
13255 ol_cv_header_stdc=no
13261 if test $ol_cv_header_stdc = yes; then
13262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 #include <stdlib.h>
13272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13273 $EGREP "free" >/dev/null 2>&1; then
13276 ol_cv_header_stdc=no
13282 if test $ol_cv_header_stdc = yes; then
13283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13284 if test "$cross_compiling" = yes; then
13287 cat >conftest.$ac_ext <<_ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13294 #ifndef HAVE_EBCDIC
13295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13298 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13299 || ('j' <= (c) && (c) <= 'r') \
13300 || ('s' <= (c) && (c) <= 'z'))
13301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13304 int main () { int i; for (i = 0; i < 256; i++)
13305 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13322 echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ( exit $ac_status )
13327 ol_cv_header_stdc=no
13329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13334 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13335 if test $ol_cv_header_stdc = yes; then
13336 cat >>confdefs.h <<\_ACEOF
13337 #define STDC_HEADERS 1
13341 ac_cv_header_stdc=disable
13344 if test $ol_cv_header_stdc != yes; then
13345 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13346 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13354 ac_header_dirent=no
13355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13356 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13357 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13358 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #include <sys/types.h>
13380 rm -f conftest.$ac_objext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13382 (eval $ac_compile) 2>conftest.er1
13384 grep -v '^ *+' conftest.er1 >conftest.err
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest.$ac_objext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 eval "$as_ac_Header=yes"
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 eval "$as_ac_Header=no"
13409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13418 ac_header_dirent=$ac_hdr; break
13422 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13423 if test $ac_header_dirent = dirent.h; then
13424 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13425 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13426 if test "${ac_cv_search_opendir+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 ac_func_search_save_LIBS=$LIBS
13430 ac_cv_search_opendir=no
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 /* Override any gcc2 internal prototype to avoid an error. */
13442 /* We use char because int might match the return type of a gcc2
13443 builtin and then its argument prototype would still apply. */
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13457 grep -v '^ *+' conftest.er1 >conftest.err
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_search_opendir="none required"
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13481 rm -f conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 if test "$ac_cv_search_opendir" = no; then
13484 for ac_lib in dir; do
13485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_search_opendir="-l$ac_lib"
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13537 rm -f conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_func_search_save_LIBS
13543 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13544 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13545 if test "$ac_cv_search_opendir" != no; then
13546 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13551 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13552 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13553 if test "${ac_cv_search_opendir+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 ac_func_search_save_LIBS=$LIBS
13557 ac_cv_search_opendir=no
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 /* Override any gcc2 internal prototype to avoid an error. */
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13580 rm -f conftest.$ac_objext conftest$ac_exeext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13582 (eval $ac_link) 2>conftest.er1
13584 grep -v '^ *+' conftest.er1 >conftest.err
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag"
13590 || test ! -s conftest.err'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } &&
13596 { ac_try='test -s conftest$ac_exeext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 ac_cv_search_opendir="none required"
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13608 rm -f conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 if test "$ac_cv_search_opendir" = no; then
13611 for ac_lib in x; do
13612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest$ac_exeext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_search_opendir="-l$ac_lib"
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13664 rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_func_search_save_LIBS
13670 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13671 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13672 if test "$ac_cv_search_opendir" != no; then
13673 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13679 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13680 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 #include <sys/types.h>
13691 #include <sys/wait.h>
13692 #ifndef WEXITSTATUS
13693 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>conftest.er1
13713 grep -v '^ *+' conftest.er1 >conftest.err
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_c_werror_flag"
13719 || test ! -s conftest.err'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest.$ac_objext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 ac_cv_header_sys_wait_h=yes
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_cv_header_sys_wait_h=no
13738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13742 if test $ac_cv_header_sys_wait_h = yes; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define HAVE_SYS_WAIT_H 1
13750 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13751 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13752 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <sys/types.h>
13762 #include <termios.h>
13768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13769 $EGREP "yes" >/dev/null 2>&1; then
13770 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13772 ac_cv_sys_tiocgwinsz_in_termios_h=no
13777 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13778 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13780 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13781 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13782 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13783 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13793 #include <sys/ioctl.h>
13799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13800 $EGREP "yes" >/dev/null 2>&1; then
13801 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13803 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13808 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13809 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13811 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13813 cat >>confdefs.h <<\_ACEOF
13814 #define GWINSZ_IN_SYS_IOCTL 1
13912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914 echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13922 # Is the header compilable?
13923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13932 #include <$ac_header>
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_header_compiler=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_header_compiler=no
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6
13967 # Is the header present?
13968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 #include <$ac_header>
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev/null; then
13986 if test -s conftest.err; then
13987 ac_cpp_err=$ac_c_preproc_warn_flag
13988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13995 if test -z "$ac_cpp_err"; then
13996 ac_header_preproc=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_header_preproc=no
14003 rm -f conftest.err conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14005 echo "${ECHO_T}$ac_header_preproc" >&6
14007 # So? What about this header?
14008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14014 ac_header_preproc=yes
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14031 ## --------------------------------------------- ##
14032 ## Report this to <http://www.openldap.org/its/> ##
14033 ## --------------------------------------------- ##
14036 sed "s/^/$as_me: WARNING: /" >&2
14039 echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 eval "$as_ac_Header=\$ac_header_preproc"
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 if test "$ac_cv_mingw32" = yes ; then
14063 for ac_header in winsock.h winsock2.h
14065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067 echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14075 # Is the header compilable?
14076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14085 #include <$ac_header>
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_header_compiler=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_header_compiler=no
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6
14120 # Is the header present?
14121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <$ac_header>
14131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } >/dev/null; then
14139 if test -s conftest.err; then
14140 ac_cpp_err=$ac_c_preproc_warn_flag
14141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14148 if test -z "$ac_cpp_err"; then
14149 ac_header_preproc=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_preproc=no
14156 rm -f conftest.err conftest.$ac_ext
14157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14158 echo "${ECHO_T}$ac_header_preproc" >&6
14160 # So? What about this header?
14161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14167 ac_header_preproc=yes
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14184 ## --------------------------------------------- ##
14185 ## Report this to <http://www.openldap.org/its/> ##
14186 ## --------------------------------------------- ##
14189 sed "s/^/$as_me: WARNING: /" >&2
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 eval "$as_ac_Header=\$ac_header_preproc"
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215 for ac_header in resolv.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 $ac_includes_default
14230 #include <netinet/in.h>
14233 #include <$ac_header>
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag"
14245 || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest.$ac_objext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 eval "$as_ac_Header=yes"
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 eval "$as_ac_Header=no"
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14269 cat >>confdefs.h <<_ACEOF
14270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279 for ac_header in netinet/tcp.h
14281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14294 #include <netinet/in.h>
14297 #include <$ac_header>
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>conftest.er1
14303 grep -v '^ *+' conftest.er1 >conftest.err
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 eval "$as_ac_Header=yes"
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 eval "$as_ac_Header=no"
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14333 cat >>confdefs.h <<_ACEOF
14334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 for ac_header in sys/ucred.h
14345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14346 echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 $ac_includes_default
14358 #ifdef HAVE_SYS_PARAM_H
14359 #include <sys/param.h>
14363 #include <$ac_header>
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>conftest.er1
14369 grep -v '^ *+' conftest.er1 >conftest.err
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
14374 { ac_try='test -z "$ac_c_werror_flag"
14375 || test ! -s conftest.err'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 eval "$as_ac_Header=yes"
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 eval "$as_ac_Header=no"
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14411 for ac_func in sigaction sigset
14413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14414 echo "$as_me:$LINENO: checking for $ac_func" >&5
14415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14416 if eval "test \"\${$as_ac_var+set}\" = set"; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14427 #define $ac_func innocuous_$ac_func
14429 /* System header to define __stub macros and hopefully few prototypes,
14430 which can conflict with char $ac_func (); below.
14431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14432 <limits.h> exists even on freestanding compilers. */
14435 # include <limits.h>
14437 # include <assert.h>
14442 /* Override any gcc2 internal prototype to avoid an error. */
14447 /* We use char because int might match the return type of a gcc2
14448 builtin and then its argument prototype would still apply. */
14450 /* The GNU C library defines this for functions which it implements
14451 to always fail with ENOSYS. Some functions are actually named
14452 something starting with __ and the normal name is an alias. */
14453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14456 char (*f) () = $ac_func;
14465 return f != $ac_func;
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14472 (eval $ac_link) 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest$ac_exeext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 eval "$as_ac_var=yes"
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 eval "$as_ac_var=no"
14499 rm -f conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
14502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14504 if test `eval echo '${'$as_ac_var'}'` = yes; then
14505 cat >>confdefs.h <<_ACEOF
14506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14513 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14515 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14516 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14517 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 ac_check_lib_save_LIBS=$LIBS
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14529 /* Override any gcc2 internal prototype to avoid an error. */
14533 /* We use char because int might match the return type of a gcc2
14534 builtin and then its argument prototype would still apply. */
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546 (eval $ac_link) 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_lib_V3_sigset=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_V3_sigset=no
14573 rm -f conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 LIBS=$ac_check_lib_save_LIBS
14577 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14578 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14579 if test $ac_cv_lib_V3_sigset = yes; then
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_LIBV3 1
14590 if test "$ac_cv_header_winsock_h" = yes; then
14591 echo "$as_me:$LINENO: checking for winsock" >&5
14592 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14593 if test "${ol_cv_winsock+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 for curlib in ws2_32 wsock32; do
14598 LIBS="$LIBS -l$curlib"
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 #include <winsock.h>
14612 select(0,NULL,NULL,NULL,NULL);
14614 gethostname(NULL,0);
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14622 (eval $ac_link) 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag"
14630 || test ! -s conftest.err'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; } &&
14636 { ac_try='test -s conftest$ac_exeext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14649 rm -f conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14652 if test $ol_cv_winsock = yes; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_WINSOCK 1
14658 ac_cv_func_socket=yes
14659 ac_cv_func_select=yes
14660 ac_cv_func_closesocket=yes
14661 ac_cv_func_gethostname=yes
14662 if test $curlib = ws2_32; then
14663 ol_cv_winsock=winsock2
14665 cat >>confdefs.h <<\_ACEOF
14666 #define HAVE_WINSOCK2 1
14675 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14676 echo "${ECHO_T}$ol_cv_winsock" >&6
14680 echo "$as_me:$LINENO: checking for socket" >&5
14681 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14682 if test "${ac_cv_func_socket+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14693 #define socket innocuous_socket
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char socket (); below.
14697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14698 <limits.h> exists even on freestanding compilers. */
14701 # include <limits.h>
14703 # include <assert.h>
14708 /* Override any gcc2 internal prototype to avoid an error. */
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_socket) || defined (__stub___socket)
14722 char (*f) () = socket;
14731 return f != socket;
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>conftest.er1
14740 grep -v '^ *+' conftest.er1 >conftest.err
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -z "$ac_c_werror_flag"
14746 || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest$ac_exeext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 ac_cv_func_socket=yes
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 ac_cv_func_socket=no
14765 rm -f conftest.err conftest.$ac_objext \
14766 conftest$ac_exeext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14769 echo "${ECHO_T}$ac_cv_func_socket" >&6
14770 if test $ac_cv_func_socket = yes; then
14775 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14776 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14777 if test "${ac_cv_lib_socket_main+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 ac_check_lib_save_LIBS=$LIBS
14781 LIBS="-lsocket $LIBS"
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14802 grep -v '^ *+' conftest.er1 >conftest.err
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_cv_lib_socket_main=yes
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 ac_cv_lib_socket_main=no
14827 rm -f conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14832 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14833 if test $ac_cv_lib_socket_main = yes; then
14834 cat >>confdefs.h <<_ACEOF
14835 #define HAVE_LIBSOCKET 1
14838 LIBS="-lsocket $LIBS"
14843 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14844 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14845 if test "${ac_cv_lib_net_main+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 ac_check_lib_save_LIBS=$LIBS
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14868 (eval $ac_link) 2>conftest.er1
14870 grep -v '^ *+' conftest.er1 >conftest.err
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
14875 { ac_try='test -z "$ac_c_werror_flag"
14876 || test ! -s conftest.err'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try='test -s conftest$ac_exeext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_net_main=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_net_main=no
14895 rm -f conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14900 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14901 if test $ac_cv_lib_net_main = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_LIBNET 1
14911 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14912 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14913 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 ac_check_lib_save_LIBS=$LIBS
14917 LIBS="-lnsl_s $LIBS"
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14938 grep -v '^ *+' conftest.er1 >conftest.err
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_lib_nsl_s_main=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 ac_cv_lib_nsl_s_main=no
14963 rm -f conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 LIBS=$ac_check_lib_save_LIBS
14967 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14968 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14969 if test $ac_cv_lib_nsl_s_main = yes; then
14970 cat >>confdefs.h <<_ACEOF
14971 #define HAVE_LIBNSL_S 1
14974 LIBS="-lnsl_s $LIBS"
14979 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14980 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14981 if test "${ac_cv_lib_nsl_main+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 ac_check_lib_save_LIBS=$LIBS
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004 (eval $ac_link) 2>conftest.er1
15006 grep -v '^ *+' conftest.er1 >conftest.err
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest$ac_exeext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_lib_nsl_main=yes
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 ac_cv_lib_nsl_main=no
15031 rm -f conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15036 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15037 if test $ac_cv_lib_nsl_main = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBNSL 1
15047 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15048 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15049 if test "${ac_cv_lib_inet_socket+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-linet $LIBS"
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15061 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_lib_inet_socket=yes
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_lib_inet_socket=no
15105 rm -f conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15110 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15111 if test $ac_cv_lib_inet_socket = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBINET 1
15116 LIBS="-linet $LIBS"
15121 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15122 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15123 if test "${ac_cv_lib_gen_main+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15166 ac_cv_lib_gen_main=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_gen_main=no
15173 rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15178 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15179 if test $ac_cv_lib_gen_main = yes; then
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_LIBGEN 1
15192 echo "$as_me:$LINENO: checking for select" >&5
15193 echo $ECHO_N "checking for select... $ECHO_C" >&6
15194 if test "${ac_cv_func_select+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 /* Define select to an innocuous variant, in case <limits.h> declares select.
15204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15205 #define select innocuous_select
15207 /* System header to define __stub macros and hopefully few prototypes,
15208 which can conflict with char select (); below.
15209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15210 <limits.h> exists even on freestanding compilers. */
15213 # include <limits.h>
15215 # include <assert.h>
15220 /* Override any gcc2 internal prototype to avoid an error. */
15225 /* We use char because int might match the return type of a gcc2
15226 builtin and then its argument prototype would still apply. */
15228 /* The GNU C library defines this for functions which it implements
15229 to always fail with ENOSYS. Some functions are actually named
15230 something starting with __ and the normal name is an alias. */
15231 #if defined (__stub_select) || defined (__stub___select)
15234 char (*f) () = select;
15243 return f != select;
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>conftest.er1
15252 grep -v '^ *+' conftest.er1 >conftest.err
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag"
15258 || test ! -s conftest.err'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_func_select=yes
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_func_select=no
15277 rm -f conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15281 echo "${ECHO_T}$ac_cv_func_select" >&6
15282 if test $ac_cv_func_select = yes; then
15285 { { echo "$as_me:$LINENO: error: select() required." >&5
15286 echo "$as_me: error: select() required." >&2;}
15287 { (exit 1); exit 1; }; }
15291 if test "${ac_cv_header_winsock_h}" != yes; then
15294 for ac_header in sys/select.h sys/socket.h
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306 # Is the header compilable?
15307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15309 cat >conftest.$ac_ext <<_ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15316 #include <$ac_header>
15318 rm -f conftest.$ac_objext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15320 (eval $ac_compile) 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest.$ac_objext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_header_compiler=yes
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_header_compiler=no
15347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 echo "${ECHO_T}$ac_header_compiler" >&6
15351 # Is the header present?
15352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <$ac_header>
15362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15365 grep -v '^ *+' conftest.er1 >conftest.err
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } >/dev/null; then
15370 if test -s conftest.err; then
15371 ac_cpp_err=$ac_c_preproc_warn_flag
15372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15379 if test -z "$ac_cpp_err"; then
15380 ac_header_preproc=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_header_preproc=no
15387 rm -f conftest.err conftest.$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 echo "${ECHO_T}$ac_header_preproc" >&6
15391 # So? What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15415 ## --------------------------------------------- ##
15416 ## Report this to <http://www.openldap.org/its/> ##
15417 ## --------------------------------------------- ##
15420 sed "s/^/$as_me: WARNING: /" >&2
15423 echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 eval "$as_ac_Header=\$ac_header_preproc"
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15444 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15445 if test "${ac_cv_func_select_args+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15449 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15450 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 $ac_includes_default
15458 #if HAVE_SYS_SELECT_H
15459 # include <sys/select.h>
15461 #if HAVE_SYS_SOCKET_H
15462 # include <sys/socket.h>
15468 extern int select ($ac_arg1,
15469 $ac_arg234, $ac_arg234, $ac_arg234,
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507 # Provide a safe default value.
15508 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15511 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15512 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15513 ac_save_IFS=$IFS; IFS=','
15514 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15518 cat >>confdefs.h <<_ACEOF
15519 #define SELECT_TYPE_ARG1 $1
15523 cat >>confdefs.h <<_ACEOF
15524 #define SELECT_TYPE_ARG234 ($2)
15528 cat >>confdefs.h <<_ACEOF
15529 #define SELECT_TYPE_ARG5 ($3)
15538 for ac_func in poll
15540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 echo "$as_me:$LINENO: checking for $ac_func" >&5
15542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15543 if eval "test \"\${$as_ac_var+set}\" = set"; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15554 #define $ac_func innocuous_$ac_func
15556 /* System header to define __stub macros and hopefully few prototypes,
15557 which can conflict with char $ac_func (); below.
15558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15559 <limits.h> exists even on freestanding compilers. */
15562 # include <limits.h>
15564 # include <assert.h>
15569 /* Override any gcc2 internal prototype to avoid an error. */
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15583 char (*f) () = $ac_func;
15592 return f != $ac_func;
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -z "$ac_c_werror_flag"
15607 || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 eval "$as_ac_var=yes"
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 eval "$as_ac_var=no"
15626 rm -f conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15639 if test $ac_cv_func_poll = yes; then
15642 for ac_header in poll.h sys/poll.h
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15646 echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15654 # Is the header compilable?
15655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <$ac_header>
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest.$ac_objext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_header_compiler=yes
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_header_compiler=no
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15697 echo "${ECHO_T}$ac_header_compiler" >&6
15699 # Is the header present?
15700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 #include <$ac_header>
15710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15727 if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_preproc=no
15735 rm -f conftest.err conftest.$ac_ext
15736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15737 echo "${ECHO_T}$ac_header_preproc" >&6
15739 # So? What about this header?
15740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15746 ac_header_preproc=yes
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15763 ## --------------------------------------------- ##
15764 ## Report this to <http://www.openldap.org/its/> ##
15765 ## --------------------------------------------- ##
15768 sed "s/^/$as_me: WARNING: /" >&2
15771 echo "$as_me:$LINENO: checking for $ac_header" >&5
15772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 eval "$as_ac_Header=\$ac_header_preproc"
15778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15794 for ac_header in sys/epoll.h
15796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15798 echo "$as_me:$LINENO: checking for $ac_header" >&5
15799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15806 # Is the header compilable?
15807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h. */
15815 $ac_includes_default
15816 #include <$ac_header>
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_header_compiler=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_header_compiler=no
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15849 echo "${ECHO_T}$ac_header_compiler" >&6
15851 # Is the header present?
15852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 #include <$ac_header>
15862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } >/dev/null; then
15870 if test -s conftest.err; then
15871 ac_cpp_err=$ac_c_preproc_warn_flag
15872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15879 if test -z "$ac_cpp_err"; then
15880 ac_header_preproc=yes
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 ac_header_preproc=no
15887 rm -f conftest.err conftest.$ac_ext
15888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15889 echo "${ECHO_T}$ac_header_preproc" >&6
15891 # So? What about this header?
15892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15898 ac_header_preproc=yes
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15915 ## --------------------------------------------- ##
15916 ## Report this to <http://www.openldap.org/its/> ##
15917 ## --------------------------------------------- ##
15920 sed "s/^/$as_me: WARNING: /" >&2
15923 echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 eval "$as_ac_Header=\$ac_header_preproc"
15930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15935 cat >>confdefs.h <<_ACEOF
15936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15944 echo "$as_me:$LINENO: checking for epoll system call" >&5
15945 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15946 if test "$cross_compiling" = yes; then
15947 echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15950 cat >conftest.$ac_ext <<_ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15956 int main(int argc, char **argv)
15958 int epfd = epoll_create(256);
15959 exit (epfd == -1 ? 1 : 0);
15962 rm -f conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_EPOLL 1
15981 echo "$as_me: program exited with status $ac_status" >&5
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ( exit $ac_status )
15986 echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6
15989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15994 for ac_header in sys/devpoll.h
15996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15998 echo "$as_me:$LINENO: checking for $ac_header" >&5
15999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16006 # Is the header compilable?
16007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <$ac_header>
16018 rm -f conftest.$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020 (eval $ac_compile) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag"
16028 || test ! -s conftest.err'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_header_compiler=no
16047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <$ac_header>
16062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } >/dev/null; then
16070 if test -s conftest.err; then
16071 ac_cpp_err=$ac_c_preproc_warn_flag
16072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16079 if test -z "$ac_cpp_err"; then
16080 ac_header_preproc=yes
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_header_preproc=no
16087 rm -f conftest.err conftest.$ac_ext
16088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115 ## --------------------------------------------- ##
16116 ## Report this to <http://www.openldap.org/its/> ##
16117 ## --------------------------------------------- ##
16120 sed "s/^/$as_me: WARNING: /" >&2
16123 echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 eval "$as_ac_Header=\$ac_header_preproc"
16130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16143 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16144 -a "${ac_cv_header_poll_h}" = yes ; \
16146 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16147 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16148 if test "$cross_compiling" = yes; then
16149 echo "$as_me:$LINENO: result: no" >&5
16150 echo "${ECHO_T}no" >&6
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 int main(int argc, char **argv)
16160 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16161 exit (devpollfd == -1 ? 1 : 0);
16164 rm -f conftest$ac_exeext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16166 (eval $ac_link) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 echo "$as_me:$LINENO: result: yes" >&5
16176 echo "${ECHO_T}yes" >&6
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_DEVPOLL 1
16183 echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 ( exit $ac_status )
16188 echo "$as_me:$LINENO: result: no" >&5
16189 echo "${ECHO_T}no" >&6
16191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16196 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16197 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16198 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16210 #include <sys/types.h>
16213 #include <stdlib.h>
16218 char *c = (char *) *sys_errlist
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ol_cv_dcl_sys_errlist=yes
16246 ol_cv_have_sys_errlist=yes
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ol_cv_dcl_sys_errlist=no
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16258 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16259 if test $ol_cv_dcl_sys_errlist = no ; then
16261 cat >>confdefs.h <<\_ACEOF
16262 #define DECL_SYS_ERRLIST 1
16266 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16267 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16268 if test "${ol_cv_have_sys_errlist+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16282 char *c = (char *) *sys_errlist
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -z "$ac_c_werror_flag"
16297 || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest$ac_exeext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ol_cv_have_sys_errlist=yes
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ol_cv_have_sys_errlist=no
16316 rm -f conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16320 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16322 if test $ol_cv_have_sys_errlist = yes ; then
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_SYS_ERRLIST 1
16331 for ac_func in strerror strerror_r
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16347 #define $ac_func innocuous_$ac_func
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16355 # include <limits.h>
16357 # include <assert.h>
16362 /* Override any gcc2 internal prototype to avoid an error. */
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 char (*f) () = $ac_func;
16385 return f != $ac_func;
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 eval "$as_ac_var=yes"
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 eval "$as_ac_var=no"
16419 rm -f conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16432 ol_cv_func_strerror_r=no
16433 if test "${ac_cv_func_strerror_r}" = yes ; then
16434 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16435 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16436 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 #include <string.h>
16448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16449 $EGREP "strerror_r" >/dev/null 2>&1; then
16450 ol_decl_strerror_r=yes
16452 ol_decl_strerror_r=no
16456 if test $ol_decl_strerror_r = yes ; then
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <string.h>
16467 /* from autoconf 2.59 */
16469 char x = *strerror_r (0, buf, sizeof buf);
16470 char *p = strerror_r (0, buf, sizeof buf);
16476 rm -f conftest.$ac_objext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16478 (eval $ac_compile) 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag"
16486 || test ! -s conftest.err'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest.$ac_objext'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ol_cv_nonposix_strerror_r=yes
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ol_cv_nonposix_strerror_r=no
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16507 if test "$cross_compiling" = yes; then
16508 ol_cv_nonposix_strerror=no
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16520 strerror_r( 1, buf, sizeof buf );
16521 exit( buf[0] == 0 );
16525 rm -f conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ol_cv_nonposix_strerror_r=yes
16538 echo "$as_me: program exited with status $ac_status" >&5
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ( exit $ac_status )
16543 ol_cv_nonposix_strerror=no
16545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16550 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16551 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16552 if test $ol_cv_nonposix_strerror_r = yes ; then
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_NONPOSIX_STRERROR_R 1
16560 elif test "${ac_cv_func_strerror}" = no ; then
16561 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16562 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16563 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16575 #include <sys/types.h>
16578 #include <stdlib.h>
16583 char *c = (char *) *sys_errlist
16588 rm -f conftest.$ac_objext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590 (eval $ac_compile) 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag"
16598 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ol_cv_dcl_sys_errlist=yes
16611 ol_cv_have_sys_errlist=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ol_cv_dcl_sys_errlist=no
16618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16620 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16621 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16623 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16624 if test $ol_cv_dcl_sys_errlist = no ; then
16626 cat >>confdefs.h <<\_ACEOF
16627 #define DECL_SYS_ERRLIST 1
16631 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16632 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16633 if test "${ol_cv_have_sys_errlist+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16647 char *c = (char *) *sys_errlist
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16654 (eval $ac_link) 2>conftest.er1
16656 grep -v '^ *+' conftest.er1 >conftest.err
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ol_cv_have_sys_errlist=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ol_cv_have_sys_errlist=no
16681 rm -f conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16684 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16685 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16687 if test $ol_cv_have_sys_errlist = yes ; then
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE_SYS_ERRLIST 1
16699 for ac_header in regex.h
16701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16702 echo "$as_me:$LINENO: checking for $ac_header" >&5
16703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 $ac_includes_default
16714 #ifdef HAVE_SYS_TYPES_H
16715 #include <sys/types.h>
16719 #include <$ac_header>
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 eval "$as_ac_Header=yes"
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 eval "$as_ac_Header=no"
16750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16764 if test "$ac_cv_header_regex_h" != yes ; then
16765 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16766 echo "$as_me: error: POSIX regex.h required." >&2;}
16767 { (exit 1); exit 1; }; }
16769 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16770 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16771 if test "${ac_cv_search_regfree+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 ac_func_search_save_LIBS=$LIBS
16775 ac_cv_search_regfree=no
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16783 /* Override any gcc2 internal prototype to avoid an error. */
16787 /* We use char because int might match the return type of a gcc2
16788 builtin and then its argument prototype would still apply. */
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_search_regfree="none required"
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16826 rm -f conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16828 if test "$ac_cv_search_regfree" = no; then
16829 for ac_lib in regex gnuregex; do
16830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16838 /* Override any gcc2 internal prototype to avoid an error. */
16842 /* We use char because int might match the return type of a gcc2
16843 builtin and then its argument prototype would still apply. */
16853 rm -f conftest.$ac_objext conftest$ac_exeext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>conftest.er1
16857 grep -v '^ *+' conftest.er1 >conftest.err
16859 cat conftest.err >&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
16862 { ac_try='test -z "$ac_c_werror_flag"
16863 || test ! -s conftest.err'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_search_regfree="-l$ac_lib"
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16882 rm -f conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16886 LIBS=$ac_func_search_save_LIBS
16888 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16889 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16890 if test "$ac_cv_search_regfree" != no; then
16891 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16894 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16895 echo "$as_me: error: POSIX regex required." >&2;}
16896 { (exit 1); exit 1; }; }
16901 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16902 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16903 if test "${ol_cv_c_posix_regex+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 if test "$cross_compiling" = yes; then
16908 ol_cv_c_posix_regex=cross
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16917 #include <sys/types.h>
16919 static char *pattern, *string;
16927 if(regcomp(&re, pattern, 0)) {
16931 string = "ALL MATCH";
16933 rc = regexec(&re, string, 0, (void*)0, 0);
16940 rm -f conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ol_cv_c_posix_regex=yes
16953 echo "$as_me: program exited with status $ac_status" >&5
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ( exit $ac_status )
16958 ol_cv_c_posix_regex=no
16960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16963 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16964 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16966 if test "$ol_cv_c_posix_regex" = no ; then
16967 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16968 echo "$as_me: error: broken POSIX regex!" >&2;}
16969 { (exit 1); exit 1; }; }
16975 for ac_header in sys/uuid.h
16977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16979 echo "$as_me:$LINENO: checking for $ac_header" >&5
16980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16987 # Is the header compilable?
16988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16990 cat >conftest.$ac_ext <<_ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 $ac_includes_default
16997 #include <$ac_header>
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001 (eval $ac_compile) 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest.$ac_objext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_header_compiler=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_header_compiler=no
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17030 echo "${ECHO_T}$ac_header_compiler" >&6
17032 # Is the header present?
17033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17035 cat >conftest.$ac_ext <<_ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 #include <$ac_header>
17043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } >/dev/null; then
17051 if test -s conftest.err; then
17052 ac_cpp_err=$ac_c_preproc_warn_flag
17053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17060 if test -z "$ac_cpp_err"; then
17061 ac_header_preproc=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_header_preproc=no
17068 rm -f conftest.err conftest.$ac_ext
17069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070 echo "${ECHO_T}$ac_header_preproc" >&6
17072 # So? What about this header?
17073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17079 ac_header_preproc=yes
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17096 ## --------------------------------------------- ##
17097 ## Report this to <http://www.openldap.org/its/> ##
17098 ## --------------------------------------------- ##
17101 sed "s/^/$as_me: WARNING: /" >&2
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 eval "$as_ac_Header=\$ac_header_preproc"
17111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17124 if test $ac_cv_header_sys_uuid_h = yes ; then
17126 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17127 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17128 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 ac_func_search_save_LIBS=$LIBS
17132 ac_cv_search_uuid_to_str=no
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 /* Override any gcc2 internal prototype to avoid an error. */
17144 /* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17146 char uuid_to_str ();
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157 (eval $ac_link) 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest$ac_exeext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 ac_cv_search_uuid_to_str="none required"
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17183 rm -f conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185 if test "$ac_cv_search_uuid_to_str" = no; then
17186 for ac_lib in uuid; do
17187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17195 /* Override any gcc2 internal prototype to avoid an error. */
17199 /* We use char because int might match the return type of a gcc2
17200 builtin and then its argument prototype would still apply. */
17201 char uuid_to_str ();
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212 (eval $ac_link) 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -z "$ac_c_werror_flag"
17220 || test ! -s conftest.err'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_search_uuid_to_str="-l$ac_lib"
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17239 rm -f conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17243 LIBS=$ac_func_search_save_LIBS
17245 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17246 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17247 if test "$ac_cv_search_uuid_to_str" != no; then
17248 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17256 if test have_uuid = yes ; then
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_UUID_TO_STR 1
17263 test "$ac_cv_search_uuid_to_str" = "none required" || \
17264 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17268 if test $have_uuid = no ; then
17269 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17270 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17272 LIBS="$LIBS -lrpcrt4"
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17280 int __stdcall UuidCreate(void *);
17281 int __stdcall UuidToStringA(void *,void **);
17288 UuidToStringA(0,0);
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296 (eval $ac_link) 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest$ac_exeext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17323 rm -f conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17325 if test $need_rpcrt = yes; then
17326 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17329 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17330 echo "${ECHO_T}$need_rpcrt" >&6
17333 ol_cv_lib_resolver=no
17334 if test $ol_cv_lib_resolver = no ; then
17335 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17336 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17337 if test "${ol_cv_resolver_none+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 LIBS="$ol_RESOLVER_LIB $LIBS"
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17352 #ifdef HAVE_SYS_TYPES_H
17353 # include <sys/types.h>
17355 #include <netinet/in.h>
17356 #ifdef HAVE_ARPA_NAMESER_H
17357 # include <arpa/nameser.h>
17359 #ifdef HAVE_RESOLV_H
17360 # include <resolv.h>
17368 char *request = NULL;
17369 unsigned char reply[64*1024];
17370 unsigned char host[64*1024];
17374 /* Bind 8/9 interface */
17375 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17377 /* Bind 4 interface */
17381 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17385 /* Bind 8/9 interface */
17387 #elif defined(HFIXEDSZ)
17388 /* Bind 4 interface w/ HFIXEDSZ */
17391 /* Bind 4 interface w/o HFIXEDSZ */
17392 p += sizeof(HEADER);
17394 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ol_cv_resolver_none=yes
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ol_cv_resolver_none=no
17429 rm -f conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17435 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17436 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17438 if test $ol_cv_resolver_none = yes ; then
17439 ol_cv_lib_resolver=yes
17443 if test $ol_cv_lib_resolver = no ; then
17444 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17445 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17446 if test "${ol_cv_resolver_resolv+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 ol_RESOLVER_LIB=-lresolv
17452 LIBS="$ol_RESOLVER_LIB $LIBS"
17454 cat >conftest.$ac_ext <<_ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17461 #ifdef HAVE_SYS_TYPES_H
17462 # include <sys/types.h>
17464 #include <netinet/in.h>
17465 #ifdef HAVE_ARPA_NAMESER_H
17466 # include <arpa/nameser.h>
17468 #ifdef HAVE_RESOLV_H
17469 # include <resolv.h>
17477 char *request = NULL;
17478 unsigned char reply[64*1024];
17479 unsigned char host[64*1024];
17483 /* Bind 8/9 interface */
17484 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17486 /* Bind 4 interface */
17490 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17494 /* Bind 8/9 interface */
17496 #elif defined(HFIXEDSZ)
17497 /* Bind 4 interface w/ HFIXEDSZ */
17500 /* Bind 4 interface w/o HFIXEDSZ */
17501 p += sizeof(HEADER);
17503 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511 (eval $ac_link) 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag"
17519 || test ! -s conftest.err'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try='test -s conftest$ac_exeext'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ol_cv_resolver_resolv=yes
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 ol_cv_resolver_resolv=no
17538 rm -f conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17544 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17547 if test $ol_cv_resolver_resolv = yes ; then
17548 ol_cv_lib_resolver=-lresolv
17552 if test $ol_cv_lib_resolver = no ; then
17553 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17555 if test "${ol_cv_resolver_bind+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 ol_RESOLVER_LIB=-lbind
17561 LIBS="$ol_RESOLVER_LIB $LIBS"
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 #ifdef HAVE_SYS_TYPES_H
17571 # include <sys/types.h>
17573 #include <netinet/in.h>
17574 #ifdef HAVE_ARPA_NAMESER_H
17575 # include <arpa/nameser.h>
17577 #ifdef HAVE_RESOLV_H
17578 # include <resolv.h>
17586 char *request = NULL;
17587 unsigned char reply[64*1024];
17588 unsigned char host[64*1024];
17592 /* Bind 8/9 interface */
17593 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17595 /* Bind 4 interface */
17599 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17603 /* Bind 8/9 interface */
17605 #elif defined(HFIXEDSZ)
17606 /* Bind 4 interface w/ HFIXEDSZ */
17609 /* Bind 4 interface w/o HFIXEDSZ */
17610 p += sizeof(HEADER);
17612 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620 (eval $ac_link) 2>conftest.er1
17622 grep -v '^ *+' conftest.er1 >conftest.err
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag"
17628 || test ! -s conftest.err'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ol_cv_resolver_bind=yes
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ol_cv_resolver_bind=no
17647 rm -f conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17653 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17654 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17656 if test $ol_cv_resolver_bind = yes ; then
17657 ol_cv_lib_resolver=-lbind
17664 if test "$ol_cv_lib_resolver" != no ; then
17666 cat >>confdefs.h <<\_ACEOF
17667 #define HAVE_RES_QUERY 1
17671 if test "$ol_enable_dnssrv" != no ; then
17675 if test "$ol_cv_lib_resolver" != yes ; then
17676 LIBS="$ol_cv_lib_resolver $LIBS"
17680 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17681 if test "$ol_link_dnssrv" = no ; then
17682 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17683 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17684 { (exit 1); exit 1; }; }
17687 ol_enable_dnssrv=no
17691 for ac_func in hstrerror
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17696 if eval "test \"\${$as_ac_var+set}\" = set"; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define $ac_func innocuous_$ac_func
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17715 # include <limits.h>
17717 # include <assert.h>
17722 /* Override any gcc2 internal prototype to avoid an error. */
17727 /* We use char because int might match the return type of a gcc2
17728 builtin and then its argument prototype would still apply. */
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17736 char (*f) () = $ac_func;
17745 return f != $ac_func;
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest$ac_exeext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 eval "$as_ac_var=yes"
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 eval "$as_ac_var=no"
17779 rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17784 if test `eval echo '${'$as_ac_var'}'` = yes; then
17785 cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17797 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17802 if eval "test \"\${$as_ac_var+set}\" = set"; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define $ac_func innocuous_$ac_func
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17821 # include <limits.h>
17823 # include <assert.h>
17828 /* Override any gcc2 internal prototype to avoid an error. */
17833 /* We use char because int might match the return type of a gcc2
17834 builtin and then its argument prototype would still apply. */
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17842 char (*f) () = $ac_func;
17851 return f != $ac_func;
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17858 (eval $ac_link) 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest$ac_exeext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 eval "$as_ac_var=yes"
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 eval "$as_ac_var=no"
17885 rm -f conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17900 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17901 if test $ol_enable_ipv6 = yes ; then
17902 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17903 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17904 { (exit 1); exit 1; }; }
17906 elif test $ol_enable_ipv6 != no ; then
17907 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17908 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17909 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17920 # include <netinet/in.h>
17921 # ifdef INET6_ADDRSTRLEN
17922 __has_inet6_addrstrlen__;
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17928 ol_cv_inet6_addrstrlen=yes
17930 ol_cv_inet6_addrstrlen=no
17935 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17936 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17939 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17940 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17941 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 cat >conftest.$ac_ext <<_ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17952 #include <sys/types.h>
17953 #include <sys/socket.h>
17959 struct sockaddr_storage ss;
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>conftest.er1
17969 grep -v '^ *+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
17974 { ac_try='test -z "$ac_c_werror_flag"
17975 || test ! -s conftest.err'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ol_cv_struct_sockaddr_storage=yes
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ol_cv_struct_sockaddr_storage=no
17994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17996 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17997 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17999 if test $ol_cv_inet6_addrstrlen = yes &&
18000 test $ol_cv_struct_sockaddr_storage = yes ; then
18002 elif test $ol_enable_ipv6 = yes &&
18003 test $ol_cv_inet6_addrstrlen = no ; then
18004 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18005 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18006 { (exit 1); exit 1; }; }
18007 elif test $ol_enable_ipv6 = yes &&
18008 test $ol_cv_struct_sockaddr_storage = no ; then
18009 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18010 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18011 { (exit 1); exit 1; }; }
18015 if test $ol_enable_local != no ; then
18017 for ac_header in sys/un.h
18019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18021 echo "$as_me:$LINENO: checking for $ac_header" >&5
18022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18029 # Is the header compilable?
18030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 $ac_includes_default
18039 #include <$ac_header>
18041 rm -f conftest.$ac_objext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18043 (eval $ac_compile) 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag"
18051 || test ! -s conftest.err'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_header_compiler=yes
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ac_header_compiler=no
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <$ac_header>
18085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } >/dev/null; then
18093 if test -s conftest.err; then
18094 ac_cpp_err=$ac_c_preproc_warn_flag
18095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18102 if test -z "$ac_cpp_err"; then
18103 ac_header_preproc=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_header_preproc=no
18110 rm -f conftest.err conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18121 ac_header_preproc=yes
18124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18138 ## --------------------------------------------- ##
18139 ## Report this to <http://www.openldap.org/its/> ##
18140 ## --------------------------------------------- ##
18143 sed "s/^/$as_me: WARNING: /" >&2
18146 echo "$as_me:$LINENO: checking for $ac_header" >&5
18147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 eval "$as_ac_Header=\$ac_header_preproc"
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18158 cat >>confdefs.h <<_ACEOF
18159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18167 if test $ol_enable_local = auto ; then
18168 ol_enable_local=$ac_cv_header_sys_un_h
18169 elif test $ac_cv_header_sys_un_h = no ; then
18170 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18172 { (exit 1); exit 1; }; }
18180 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18183 for ac_header in krb5.h
18185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18187 echo "$as_me:$LINENO: checking for $ac_header" >&5
18188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18195 # Is the header compilable?
18196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18198 cat >conftest.$ac_ext <<_ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204 $ac_includes_default
18205 #include <$ac_header>
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_header_compiler=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 ac_header_compiler=no
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18238 echo "${ECHO_T}$ac_header_compiler" >&6
18240 # Is the header present?
18241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 #include <$ac_header>
18251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } >/dev/null; then
18259 if test -s conftest.err; then
18260 ac_cpp_err=$ac_c_preproc_warn_flag
18261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18268 if test -z "$ac_cpp_err"; then
18269 ac_header_preproc=yes
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274 ac_header_preproc=no
18276 rm -f conftest.err conftest.$ac_ext
18277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18278 echo "${ECHO_T}$ac_header_preproc" >&6
18280 # So? What about this header?
18281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18287 ac_header_preproc=yes
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18304 ## --------------------------------------------- ##
18305 ## Report this to <http://www.openldap.org/its/> ##
18306 ## --------------------------------------------- ##
18309 sed "s/^/$as_me: WARNING: /" >&2
18312 echo "$as_me:$LINENO: checking for $ac_header" >&5
18313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 eval "$as_ac_Header=\$ac_header_preproc"
18319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18324 cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18333 if test $ac_cv_header_krb5_h = yes ; then
18335 for ac_header in heim_err.h
18337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18339 echo "$as_me:$LINENO: checking for $ac_header" >&5
18340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18347 # Is the header compilable?
18348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18357 #include <$ac_header>
18359 rm -f conftest.$ac_objext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361 (eval $ac_compile) 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag"
18369 || test ! -s conftest.err'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_header_compiler=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_header_compiler=no
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18390 echo "${ECHO_T}$ac_header_compiler" >&6
18392 # Is the header present?
18393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <$ac_header>
18403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18406 grep -v '^ *+' conftest.er1 >conftest.err
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } >/dev/null; then
18411 if test -s conftest.err; then
18412 ac_cpp_err=$ac_c_preproc_warn_flag
18413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18420 if test -z "$ac_cpp_err"; then
18421 ac_header_preproc=yes
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_header_preproc=no
18428 rm -f conftest.err conftest.$ac_ext
18429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18430 echo "${ECHO_T}$ac_header_preproc" >&6
18432 # So? What about this header?
18433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18439 ac_header_preproc=yes
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18456 ## --------------------------------------------- ##
18457 ## Report this to <http://www.openldap.org/its/> ##
18458 ## --------------------------------------------- ##
18461 sed "s/^/$as_me: WARNING: /" >&2
18464 echo "$as_me:$LINENO: checking for $ac_header" >&5
18465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 eval "$as_ac_Header=\$ac_header_preproc"
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18476 cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18484 if test $ac_cv_header_heim_err_h = yes ; then
18490 if test $krb5_impl = mit; then
18491 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18492 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18493 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lk5crypto $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516 (eval $ac_link) 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_lib_k5crypto_main=yes
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 ac_cv_lib_k5crypto_main=no
18543 rm -f conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18548 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18549 if test $ac_cv_lib_k5crypto_main = yes; then
18550 krb5crypto=k5crypto
18556 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18557 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18558 if test "${ac_cv_lib_krb5_main+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 ac_check_lib_save_LIBS=$LIBS
18562 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581 (eval $ac_link) 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_krb5_main=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_lib_krb5_main=no
18608 rm -f conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext conftest.$ac_ext
18610 LIBS=$ac_check_lib_save_LIBS
18612 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18613 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18614 if test $ac_cv_lib_krb5_main = yes; then
18616 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18622 elif test $krb5_impl = heimdal; then
18623 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18624 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18625 if test "${ac_cv_lib_des_main+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 ac_check_lib_save_LIBS=$LIBS
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648 (eval $ac_link) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_lib_des_main=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 ac_cv_lib_des_main=no
18675 rm -f conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_check_lib_save_LIBS
18679 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18680 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18681 if test $ac_cv_lib_des_main = yes; then
18688 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18689 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18690 if test "${ac_cv_lib_krb5_main+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 ac_check_lib_save_LIBS=$LIBS
18694 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18695 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713 (eval $ac_link) 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_krb5_main=yes
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_cv_lib_krb5_main=no
18740 rm -f conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18745 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18746 if test $ac_cv_lib_krb5_main = yes; then
18748 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE_HEIMDAL_KERBEROS 1
18762 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18763 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18766 if test $have_krb5 = yes ; then
18770 cat >>confdefs.h <<\_ACEOF
18771 #define HAVE_KRB5 1
18775 if test $ol_with_kerberos = k5only ; then
18776 ol_with_kerberos=found
18779 elif test $ol_with_kerberos != auto ; then
18780 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18781 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18782 { (exit 1); exit 1; }; }
18789 if test $ol_link_krb5 = yes &&
18790 { test $ol_with_kerberos = yes ||
18791 test $ol_with_kerberos = auto ||
18792 test $ol_with_kerberos = k425; }; then
18796 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800 echo "$as_me:$LINENO: checking for $ac_header" >&5
18801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18808 # Is the header compilable?
18809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 $ac_includes_default
18818 #include <$ac_header>
18820 rm -f conftest.$ac_objext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822 (eval $ac_compile) 2>conftest.er1
18824 grep -v '^ *+' conftest.er1 >conftest.err
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag"
18830 || test ! -s conftest.err'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_header_compiler=yes
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 ac_header_compiler=no
18849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18851 echo "${ECHO_T}$ac_header_compiler" >&6
18853 # Is the header present?
18854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <$ac_header>
18864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18867 grep -v '^ *+' conftest.er1 >conftest.err
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } >/dev/null; then
18872 if test -s conftest.err; then
18873 ac_cpp_err=$ac_c_preproc_warn_flag
18874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18881 if test -z "$ac_cpp_err"; then
18882 ac_header_preproc=yes
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_header_preproc=no
18889 rm -f conftest.err conftest.$ac_ext
18890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18891 echo "${ECHO_T}$ac_header_preproc" >&6
18893 # So? What about this header?
18894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18900 ac_header_preproc=yes
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18917 ## --------------------------------------------- ##
18918 ## Report this to <http://www.openldap.org/its/> ##
18919 ## --------------------------------------------- ##
18922 sed "s/^/$as_me: WARNING: /" >&2
18925 echo "$as_me:$LINENO: checking for $ac_header" >&5
18926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 eval "$as_ac_Header=\$ac_header_preproc"
18932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18937 cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18946 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18947 if test $krb5_impl = mit; then
18948 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18949 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18950 if test "${ac_cv_lib_krb4_main+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 ac_check_lib_save_LIBS=$LIBS
18954 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_lib_krb4_main=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_cv_lib_krb4_main=no
19000 rm -f conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19004 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19005 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19006 if test $ac_cv_lib_krb4_main = yes; then
19008 KRB4_LIBS="-lkrb4 -ldes425"
19014 elif test $krb5_impl = heimdal; then
19015 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19016 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19017 if test "${ac_cv_lib_krb4_main+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040 (eval $ac_link) 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); } &&
19047 { ac_try='test -z "$ac_c_werror_flag"
19048 || test ! -s conftest.err'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_cv_lib_krb4_main=yes
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_cv_lib_krb4_main=no
19067 rm -f conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19069 LIBS=$ac_check_lib_save_LIBS
19071 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19072 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19073 if test $ac_cv_lib_krb4_main = yes; then
19083 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19084 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19087 if test $have_k425 = yes ; then
19088 ol_with_kerberos=found
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_KRB425 1
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_KRB4 1
19102 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19103 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19104 if test "${ol_cv_var_des_debug+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19117 #include <kerberosIV/krb.h>
19118 #include <kerberosIV/des.h>
19119 extern int des_debug;
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133 (eval $ac_link) 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag"
19141 || test ! -s conftest.err'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ol_cv_var_des_debug=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ol_cv_var_des_debug=no
19160 rm -f conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19165 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19166 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19168 if test $ol_cv_var_des_debug = yes ; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_DES_DEBUG 1
19181 if test $ol_link_krb5 = yes ; then
19182 ol_with_kerberos=found
19185 case $ol_with_kerberos in yes | auto | k4 | kth)
19190 for ac_header in krb.h des.h krb-archaeology.h
19192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194 echo "$as_me:$LINENO: checking for $ac_header" >&5
19195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202 # Is the header compilable?
19203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19212 #include <$ac_header>
19214 rm -f conftest.$ac_objext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest.$ac_objext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_header_compiler=yes
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_header_compiler=no
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19245 echo "${ECHO_T}$ac_header_compiler" >&6
19247 # Is the header present?
19248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 #include <$ac_header>
19258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } >/dev/null; then
19266 if test -s conftest.err; then
19267 ac_cpp_err=$ac_c_preproc_warn_flag
19268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19275 if test -z "$ac_cpp_err"; then
19276 ac_header_preproc=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_header_preproc=no
19283 rm -f conftest.err conftest.$ac_ext
19284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19285 echo "${ECHO_T}$ac_header_preproc" >&6
19287 # So? What about this header?
19288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19294 ac_header_preproc=yes
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19311 ## --------------------------------------------- ##
19312 ## Report this to <http://www.openldap.org/its/> ##
19313 ## --------------------------------------------- ##
19316 sed "s/^/$as_me: WARNING: /" >&2
19319 echo "$as_me:$LINENO: checking for $ac_header" >&5
19320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 eval "$as_ac_Header=\$ac_header_preproc"
19326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19331 cat >>confdefs.h <<_ACEOF
19332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19340 if test $ac_cv_header_krb_h = yes ; then
19341 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19342 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19343 if test "${ac_cv_lib_krb_main+set}" = set; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-lkrb -ldes $LIBS"
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19366 (eval $ac_link) 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag"
19374 || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest$ac_exeext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_lib_krb_main=yes
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_lib_krb_main=no
19393 rm -f conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19397 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19398 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19399 if test $ac_cv_lib_krb_main = yes; then
19406 if test $have_k4 = yes ; then
19407 ol_with_kerberos=found
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE_KRB4 1
19416 KRB4_LIBS="-lkrb -ldes"
19418 if test $ac_cv_header_krb_archaeology_h = yes ; then
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_KTH_KERBEROS 1
19430 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19433 elif test $ol_enable_kbind = yes ; then
19434 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19435 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19436 { (exit 1); exit 1; }; }
19439 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_KERBEROS 1
19446 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19447 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19448 echo "$as_me: error: Kerberos detection failed" >&2;}
19449 { (exit 1); exit 1; }; }
19453 if test $ol_with_tls = yes ; then
19458 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19460 for ac_header in openssl/ssl.h
19462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464 echo "$as_me:$LINENO: checking for $ac_header" >&5
19465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19472 # Is the header compilable?
19473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 $ac_includes_default
19482 #include <$ac_header>
19484 rm -f conftest.$ac_objext
19485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486 (eval $ac_compile) 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } &&
19493 { ac_try='test -z "$ac_c_werror_flag"
19494 || test ! -s conftest.err'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19506 ac_header_compiler=yes
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19511 ac_header_compiler=no
19513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19515 echo "${ECHO_T}$ac_header_compiler" >&6
19517 # Is the header present?
19518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526 #include <$ac_header>
19528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } >/dev/null; then
19536 if test -s conftest.err; then
19537 ac_cpp_err=$ac_c_preproc_warn_flag
19538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19545 if test -z "$ac_cpp_err"; then
19546 ac_header_preproc=yes
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_header_preproc=no
19553 rm -f conftest.err conftest.$ac_ext
19554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19555 echo "${ECHO_T}$ac_header_preproc" >&6
19557 # So? What about this header?
19558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19564 ac_header_preproc=yes
19567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19581 ## --------------------------------------------- ##
19582 ## Report this to <http://www.openldap.org/its/> ##
19583 ## --------------------------------------------- ##
19586 sed "s/^/$as_me: WARNING: /" >&2
19589 echo "$as_me:$LINENO: checking for $ac_header" >&5
19590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 eval "$as_ac_Header=\$ac_header_preproc"
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19601 cat >>confdefs.h <<_ACEOF
19602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19610 if test $ac_cv_header_openssl_ssl_h = yes ; then
19611 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19612 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19613 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 ac_check_lib_save_LIBS=$LIBS
19617 LIBS="-lssl -lcrypto $LIBS"
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19625 /* Override any gcc2 internal prototype to avoid an error. */
19629 /* We use char because int might match the return type of a gcc2
19630 builtin and then its argument prototype would still apply. */
19631 char SSL_library_init ();
19635 SSL_library_init ();
19640 rm -f conftest.$ac_objext conftest$ac_exeext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642 (eval $ac_link) 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_lib_ssl_SSL_library_init=yes
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 ac_cv_lib_ssl_SSL_library_init=no
19669 rm -f conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19674 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19675 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19683 if test $have_openssl = no ; then
19684 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19685 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19686 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 /* Override any gcc2 internal prototype to avoid an error. */
19702 /* We use char because int might match the return type of a gcc2
19703 builtin and then its argument prototype would still apply. */
19704 char ssl3_accept ();
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_ssl_ssl3_accept=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_ssl_ssl3_accept=no
19742 rm -f conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19747 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19748 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19757 if test $have_openssl = yes ; then
19758 ol_with_tls=openssl
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_OPENSSL 1
19767 if test $need_rsaref = yes; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_RSAREF 1
19774 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19776 TLS_LIBS="-lssl -lcrypto"
19779 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19780 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19781 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 cat >conftest.$ac_ext <<_ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19792 #ifdef HAVE_OPENSSL_SSL_H
19793 #include <openssl/ssl.h>
19796 /* Require 0.9.7d+ */
19797 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19798 char *__ssl_compat = "0.9.7d";
19802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19803 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19804 ol_cv_ssl_crl_compat=yes
19806 ol_cv_ssl_crl_compat=no
19811 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19812 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19814 if test $ol_cv_ssl_crl_compat = yes ; then
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_OPENSSL_CRL 1
19826 if test $ol_link_tls = yes ; then
19828 cat >>confdefs.h <<\_ACEOF
19833 elif test $ol_with_tls = auto ; then
19834 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19835 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19837 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19838 elif test $ol_with_tls != no ; then
19839 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19840 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19841 { (exit 1); exit 1; }; }
19843 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19844 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19847 if test $ol_enable_lmpasswd != no; then
19848 if test $ol_link_tls != yes ; then
19849 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19850 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19851 { (exit 1); exit 1; }; }
19855 cat >>confdefs.h <<\_ACEOF
19856 #define SLAPD_LMHASH 1
19863 case $ol_with_threads in auto | yes | nt)
19866 echo "$as_me:$LINENO: checking for _beginthread" >&5
19867 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19868 if test "${ac_cv_func__beginthread+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19879 #define _beginthread innocuous__beginthread
19881 /* System header to define __stub macros and hopefully few prototypes,
19882 which can conflict with char _beginthread (); below.
19883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19884 <limits.h> exists even on freestanding compilers. */
19887 # include <limits.h>
19889 # include <assert.h>
19892 #undef _beginthread
19894 /* Override any gcc2 internal prototype to avoid an error. */
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19901 char _beginthread ();
19902 /* The GNU C library defines this for functions which it implements
19903 to always fail with ENOSYS. Some functions are actually named
19904 something starting with __ and the normal name is an alias. */
19905 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19908 char (*f) () = _beginthread;
19917 return f != _beginthread;
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924 (eval $ac_link) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag"
19932 || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest$ac_exeext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_cv_func__beginthread=yes
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_func__beginthread=no
19951 rm -f conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19954 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19955 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19958 if test $ac_cv_func__beginthread = yes ; then
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_NT_THREADS 1
19964 ol_cv_nt_threads=yes
19968 if test "$ol_cv_nt_threads" = yes ; then
19970 ol_with_threads=found
19971 ol_with_yielding_select=yes
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_NT_SERVICE_MANAGER 1
19979 cat >>confdefs.h <<\_ACEOF
19980 #define HAVE_NT_EVENT_LOG 1
19985 if test $ol_with_threads = nt ; then
19986 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19987 echo "$as_me: error: could not locate NT Threads" >&2;}
19988 { (exit 1); exit 1; }; }
19993 case $ol_with_threads in auto | yes | posix)
19996 for ac_header in pthread.h
19998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000 echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20008 # Is the header compilable?
20009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20011 cat >conftest.$ac_ext <<_ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 $ac_includes_default
20018 #include <$ac_header>
20020 rm -f conftest.$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag"
20030 || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_header_compiler=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_compiler=no
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20051 echo "${ECHO_T}$ac_header_compiler" >&6
20053 # Is the header present?
20054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <$ac_header>
20064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } >/dev/null; then
20072 if test -s conftest.err; then
20073 ac_cpp_err=$ac_c_preproc_warn_flag
20074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20081 if test -z "$ac_cpp_err"; then
20082 ac_header_preproc=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_header_preproc=no
20089 rm -f conftest.err conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20091 echo "${ECHO_T}$ac_header_preproc" >&6
20093 # So? What about this header?
20094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20100 ac_header_preproc=yes
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20117 ## --------------------------------------------- ##
20118 ## Report this to <http://www.openldap.org/its/> ##
20119 ## --------------------------------------------- ##
20122 sed "s/^/$as_me: WARNING: /" >&2
20125 echo "$as_me:$LINENO: checking for $ac_header" >&5
20126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 eval "$as_ac_Header=\$ac_header_preproc"
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20137 cat >>confdefs.h <<_ACEOF
20138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20146 if test $ac_cv_header_pthread_h = yes ; then
20147 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20148 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20149 if test "${ol_cv_pthread_version+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20160 # include <pthread.h>
20166 int i = PTHREAD_CREATE_JOINABLE;
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 #include <pthread.h>
20204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20205 $EGREP "pthread_detach" >/dev/null 2>&1; then
20206 ol_cv_pthread_version=10
20208 ol_cv_pthread_version=8
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20224 # include <pthread.h>
20225 # ifdef PTHREAD_CREATE_UNDETACHED
20230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20231 $EGREP "draft7" >/dev/null 2>&1; then
20232 ol_cv_pthread_version=7
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <pthread.h>
20244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20245 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20246 ol_cv_pthread_version=6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20256 # include <pthread.h>
20257 #ifdef PTHREAD_MUTEX_INITIALIZER
20262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20263 $EGREP "draft5" >/dev/null 2>&1; then
20264 ol_cv_pthread_version=5
20266 ol_cv_pthread_version=4
20277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20281 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20284 if test $ol_cv_pthread_version != 0 ; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_PTHREADS $ol_cv_pthread_version
20291 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20292 echo "$as_me: error: unknown pthread version" >&2;}
20293 { (exit 1); exit 1; }; }
20296 # consider threads found
20297 ol_with_threads=found
20300 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20301 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20302 if test "${ol_cv_header_linux_threads+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 #include <pthread.h>
20313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20314 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20315 ol_cv_header_linux_threads=yes
20317 ol_cv_header_linux_threads=no
20323 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20324 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20325 if test $ol_cv_header_linux_threads = yes; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_LINUX_THREADS 1
20334 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20335 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20336 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <pthread.h>
20346 #ifdef _POSIX_THREAD_IS_GNU_PTH
20351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20352 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20353 ol_cv_header_gnu_pth_pthread_h=yes
20355 ol_cv_header_gnu_pth_pthread_h=no
20361 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20362 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20365 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20367 for ac_header in sched.h
20369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371 echo "$as_me:$LINENO: checking for $ac_header" >&5
20372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20379 # Is the header compilable?
20380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 $ac_includes_default
20389 #include <$ac_header>
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
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); }; } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_header_compiler=yes
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_header_compiler=no
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20422 echo "${ECHO_T}$ac_header_compiler" >&6
20424 # Is the header present?
20425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 #include <$ac_header>
20435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } >/dev/null; then
20443 if test -s conftest.err; then
20444 ac_cpp_err=$ac_c_preproc_warn_flag
20445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20452 if test -z "$ac_cpp_err"; then
20453 ac_header_preproc=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_header_preproc=no
20460 rm -f conftest.err conftest.$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20462 echo "${ECHO_T}$ac_header_preproc" >&6
20464 # So? What about this header?
20465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20471 ac_header_preproc=yes
20474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20488 ## --------------------------------------------- ##
20489 ## Report this to <http://www.openldap.org/its/> ##
20490 ## --------------------------------------------- ##
20493 sed "s/^/$as_me: WARNING: /" >&2
20496 echo "$as_me:$LINENO: checking for $ac_header" >&5
20497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 eval "$as_ac_Header=\$ac_header_preproc"
20503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20508 cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20519 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20520 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20521 if test "${ol_cv_pthread_create+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 if test "$cross_compiling" = yes; then
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20533 /* pthread test headers */
20534 #include <pthread.h>
20535 #if HAVE_PTHREADS < 7
20539 #define NULL (void*)0
20542 static void *task(p)
20545 return (void *) (p == NULL);
20552 /* pthread test function */
20553 #ifndef PTHREAD_CREATE_DETACHED
20554 #define PTHREAD_CREATE_DETACHED 1
20558 int detach = PTHREAD_CREATE_DETACHED;
20560 #if HAVE_PTHREADS > 4
20561 /* Final pthreads */
20562 pthread_attr_t attr;
20564 status = pthread_attr_init(&attr);
20565 if( status ) return status;
20567 #if HAVE_PTHREADS < 7
20568 status = pthread_attr_setdetachstate(&attr, &detach);
20569 if( status < 0 ) status = errno;
20571 status = pthread_attr_setdetachstate(&attr, detach);
20573 if( status ) return status;
20574 status = pthread_create( &t, &attr, task, NULL );
20575 #if HAVE_PTHREADS < 7
20576 if( status < 0 ) status = errno;
20578 if( status ) return status;
20580 /* Draft 4 pthreads */
20581 status = pthread_create( &t, pthread_attr_default, task, NULL );
20582 if( status ) return errno;
20584 /* give thread a chance to complete */
20585 /* it should remain joinable and hence detachable */
20588 status = pthread_detach( &t );
20589 if( status ) return errno;
20592 #ifdef HAVE_LINUX_THREADS
20593 pthread_kill_other_threads_np();
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ol_cv_pthread_create=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ol_cv_pthread_create=no
20631 rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* pthread test headers */
20642 #include <pthread.h>
20643 #if HAVE_PTHREADS < 7
20647 #define NULL (void*)0
20650 static void *task(p)
20653 return (void *) (p == NULL);
20657 int main(argc, argv)
20662 /* pthread test function */
20663 #ifndef PTHREAD_CREATE_DETACHED
20664 #define PTHREAD_CREATE_DETACHED 1
20668 int detach = PTHREAD_CREATE_DETACHED;
20670 #if HAVE_PTHREADS > 4
20671 /* Final pthreads */
20672 pthread_attr_t attr;
20674 status = pthread_attr_init(&attr);
20675 if( status ) return status;
20677 #if HAVE_PTHREADS < 7
20678 status = pthread_attr_setdetachstate(&attr, &detach);
20679 if( status < 0 ) status = errno;
20681 status = pthread_attr_setdetachstate(&attr, detach);
20683 if( status ) return status;
20684 status = pthread_create( &t, &attr, task, NULL );
20685 #if HAVE_PTHREADS < 7
20686 if( status < 0 ) status = errno;
20688 if( status ) return status;
20690 /* Draft 4 pthreads */
20691 status = pthread_create( &t, pthread_attr_default, task, NULL );
20692 if( status ) return errno;
20694 /* give thread a chance to complete */
20695 /* it should remain joinable and hence detachable */
20698 status = pthread_detach( &t );
20699 if( status ) return errno;
20702 #ifdef HAVE_LINUX_THREADS
20703 pthread_kill_other_threads_np();
20711 rm -f conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713 (eval $ac_link) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ol_cv_pthread_create=yes
20724 echo "$as_me: program exited with status $ac_status" >&5
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ( exit $ac_status )
20729 ol_cv_pthread_create=no
20731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20735 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20737 if test $ol_cv_pthread_create != no ; then
20738 ol_link_threads=posix
20739 ol_link_pthreads=""
20742 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20743 if test "$ol_link_threads" = no ; then
20745 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20746 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20747 if test "${ol_cv_pthread_kthread+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 LIBS="-kthread $LIBS"
20755 if test "$cross_compiling" = yes; then
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20763 /* pthread test headers */
20764 #include <pthread.h>
20765 #if HAVE_PTHREADS < 7
20769 #define NULL (void*)0
20772 static void *task(p)
20775 return (void *) (p == NULL);
20782 /* pthread test function */
20783 #ifndef PTHREAD_CREATE_DETACHED
20784 #define PTHREAD_CREATE_DETACHED 1
20788 int detach = PTHREAD_CREATE_DETACHED;
20790 #if HAVE_PTHREADS > 4
20791 /* Final pthreads */
20792 pthread_attr_t attr;
20794 status = pthread_attr_init(&attr);
20795 if( status ) return status;
20797 #if HAVE_PTHREADS < 7
20798 status = pthread_attr_setdetachstate(&attr, &detach);
20799 if( status < 0 ) status = errno;
20801 status = pthread_attr_setdetachstate(&attr, detach);
20803 if( status ) return status;
20804 status = pthread_create( &t, &attr, task, NULL );
20805 #if HAVE_PTHREADS < 7
20806 if( status < 0 ) status = errno;
20808 if( status ) return status;
20810 /* Draft 4 pthreads */
20811 status = pthread_create( &t, pthread_attr_default, task, NULL );
20812 if( status ) return errno;
20814 /* give thread a chance to complete */
20815 /* it should remain joinable and hence detachable */
20818 status = pthread_detach( &t );
20819 if( status ) return errno;
20822 #ifdef HAVE_LINUX_THREADS
20823 pthread_kill_other_threads_np();
20832 rm -f conftest.$ac_objext conftest$ac_exeext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20834 (eval $ac_link) 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
20841 { ac_try='test -z "$ac_c_werror_flag"
20842 || test ! -s conftest.err'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest$ac_exeext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ol_cv_pthread_kthread=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ol_cv_pthread_kthread=no
20861 rm -f conftest.err conftest.$ac_objext \
20862 conftest$ac_exeext conftest.$ac_ext
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20871 /* pthread test headers */
20872 #include <pthread.h>
20873 #if HAVE_PTHREADS < 7
20877 #define NULL (void*)0
20880 static void *task(p)
20883 return (void *) (p == NULL);
20887 int main(argc, argv)
20892 /* pthread test function */
20893 #ifndef PTHREAD_CREATE_DETACHED
20894 #define PTHREAD_CREATE_DETACHED 1
20898 int detach = PTHREAD_CREATE_DETACHED;
20900 #if HAVE_PTHREADS > 4
20901 /* Final pthreads */
20902 pthread_attr_t attr;
20904 status = pthread_attr_init(&attr);
20905 if( status ) return status;
20907 #if HAVE_PTHREADS < 7
20908 status = pthread_attr_setdetachstate(&attr, &detach);
20909 if( status < 0 ) status = errno;
20911 status = pthread_attr_setdetachstate(&attr, detach);
20913 if( status ) return status;
20914 status = pthread_create( &t, &attr, task, NULL );
20915 #if HAVE_PTHREADS < 7
20916 if( status < 0 ) status = errno;
20918 if( status ) return status;
20920 /* Draft 4 pthreads */
20921 status = pthread_create( &t, pthread_attr_default, task, NULL );
20922 if( status ) return errno;
20924 /* give thread a chance to complete */
20925 /* it should remain joinable and hence detachable */
20928 status = pthread_detach( &t );
20929 if( status ) return errno;
20932 #ifdef HAVE_LINUX_THREADS
20933 pthread_kill_other_threads_np();
20941 rm -f conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943 (eval $ac_link) 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ol_cv_pthread_kthread=yes
20954 echo "$as_me: program exited with status $ac_status" >&5
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ( exit $ac_status )
20959 ol_cv_pthread_kthread=no
20961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20968 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20969 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20971 if test $ol_cv_pthread_kthread = yes ; then
20972 ol_link_pthreads="-kthread"
20973 ol_link_threads=posix
20977 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20978 if test "$ol_link_threads" = no ; then
20980 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20981 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20982 if test "${ol_cv_pthread_pthread+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 LIBS="-pthread $LIBS"
20990 if test "$cross_compiling" = yes; then
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20998 /* pthread test headers */
20999 #include <pthread.h>
21000 #if HAVE_PTHREADS < 7
21004 #define NULL (void*)0
21007 static void *task(p)
21010 return (void *) (p == NULL);
21017 /* pthread test function */
21018 #ifndef PTHREAD_CREATE_DETACHED
21019 #define PTHREAD_CREATE_DETACHED 1
21023 int detach = PTHREAD_CREATE_DETACHED;
21025 #if HAVE_PTHREADS > 4
21026 /* Final pthreads */
21027 pthread_attr_t attr;
21029 status = pthread_attr_init(&attr);
21030 if( status ) return status;
21032 #if HAVE_PTHREADS < 7
21033 status = pthread_attr_setdetachstate(&attr, &detach);
21034 if( status < 0 ) status = errno;
21036 status = pthread_attr_setdetachstate(&attr, detach);
21038 if( status ) return status;
21039 status = pthread_create( &t, &attr, task, NULL );
21040 #if HAVE_PTHREADS < 7
21041 if( status < 0 ) status = errno;
21043 if( status ) return status;
21045 /* Draft 4 pthreads */
21046 status = pthread_create( &t, pthread_attr_default, task, NULL );
21047 if( status ) return errno;
21049 /* give thread a chance to complete */
21050 /* it should remain joinable and hence detachable */
21053 status = pthread_detach( &t );
21054 if( status ) return errno;
21057 #ifdef HAVE_LINUX_THREADS
21058 pthread_kill_other_threads_np();
21067 rm -f conftest.$ac_objext conftest$ac_exeext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069 (eval $ac_link) 2>conftest.er1
21071 grep -v '^ *+' conftest.er1 >conftest.err
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ol_cv_pthread_pthread=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ol_cv_pthread_pthread=no
21096 rm -f conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 /* pthread test headers */
21107 #include <pthread.h>
21108 #if HAVE_PTHREADS < 7
21112 #define NULL (void*)0
21115 static void *task(p)
21118 return (void *) (p == NULL);
21122 int main(argc, argv)
21127 /* pthread test function */
21128 #ifndef PTHREAD_CREATE_DETACHED
21129 #define PTHREAD_CREATE_DETACHED 1
21133 int detach = PTHREAD_CREATE_DETACHED;
21135 #if HAVE_PTHREADS > 4
21136 /* Final pthreads */
21137 pthread_attr_t attr;
21139 status = pthread_attr_init(&attr);
21140 if( status ) return status;
21142 #if HAVE_PTHREADS < 7
21143 status = pthread_attr_setdetachstate(&attr, &detach);
21144 if( status < 0 ) status = errno;
21146 status = pthread_attr_setdetachstate(&attr, detach);
21148 if( status ) return status;
21149 status = pthread_create( &t, &attr, task, NULL );
21150 #if HAVE_PTHREADS < 7
21151 if( status < 0 ) status = errno;
21153 if( status ) return status;
21155 /* Draft 4 pthreads */
21156 status = pthread_create( &t, pthread_attr_default, task, NULL );
21157 if( status ) return errno;
21159 /* give thread a chance to complete */
21160 /* it should remain joinable and hence detachable */
21163 status = pthread_detach( &t );
21164 if( status ) return errno;
21167 #ifdef HAVE_LINUX_THREADS
21168 pthread_kill_other_threads_np();
21176 rm -f conftest$ac_exeext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21178 (eval $ac_link) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 ol_cv_pthread_pthread=yes
21189 echo "$as_me: program exited with status $ac_status" >&5
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ( exit $ac_status )
21194 ol_cv_pthread_pthread=no
21196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21203 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21204 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21206 if test $ol_cv_pthread_pthread = yes ; then
21207 ol_link_pthreads="-pthread"
21208 ol_link_threads=posix
21212 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21213 if test "$ol_link_threads" = no ; then
21215 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21216 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21217 if test "${ol_cv_pthread_pthreads+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 LIBS="-pthreads $LIBS"
21225 if test "$cross_compiling" = yes; then
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21233 /* pthread test headers */
21234 #include <pthread.h>
21235 #if HAVE_PTHREADS < 7
21239 #define NULL (void*)0
21242 static void *task(p)
21245 return (void *) (p == NULL);
21252 /* pthread test function */
21253 #ifndef PTHREAD_CREATE_DETACHED
21254 #define PTHREAD_CREATE_DETACHED 1
21258 int detach = PTHREAD_CREATE_DETACHED;
21260 #if HAVE_PTHREADS > 4
21261 /* Final pthreads */
21262 pthread_attr_t attr;
21264 status = pthread_attr_init(&attr);
21265 if( status ) return status;
21267 #if HAVE_PTHREADS < 7
21268 status = pthread_attr_setdetachstate(&attr, &detach);
21269 if( status < 0 ) status = errno;
21271 status = pthread_attr_setdetachstate(&attr, detach);
21273 if( status ) return status;
21274 status = pthread_create( &t, &attr, task, NULL );
21275 #if HAVE_PTHREADS < 7
21276 if( status < 0 ) status = errno;
21278 if( status ) return status;
21280 /* Draft 4 pthreads */
21281 status = pthread_create( &t, pthread_attr_default, task, NULL );
21282 if( status ) return errno;
21284 /* give thread a chance to complete */
21285 /* it should remain joinable and hence detachable */
21288 status = pthread_detach( &t );
21289 if( status ) return errno;
21292 #ifdef HAVE_LINUX_THREADS
21293 pthread_kill_other_threads_np();
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304 (eval $ac_link) 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
21311 { ac_try='test -z "$ac_c_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest$ac_exeext'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ol_cv_pthread_pthreads=yes
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ol_cv_pthread_pthreads=no
21331 rm -f conftest.err conftest.$ac_objext \
21332 conftest$ac_exeext conftest.$ac_ext
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 /* pthread test headers */
21342 #include <pthread.h>
21343 #if HAVE_PTHREADS < 7
21347 #define NULL (void*)0
21350 static void *task(p)
21353 return (void *) (p == NULL);
21357 int main(argc, argv)
21362 /* pthread test function */
21363 #ifndef PTHREAD_CREATE_DETACHED
21364 #define PTHREAD_CREATE_DETACHED 1
21368 int detach = PTHREAD_CREATE_DETACHED;
21370 #if HAVE_PTHREADS > 4
21371 /* Final pthreads */
21372 pthread_attr_t attr;
21374 status = pthread_attr_init(&attr);
21375 if( status ) return status;
21377 #if HAVE_PTHREADS < 7
21378 status = pthread_attr_setdetachstate(&attr, &detach);
21379 if( status < 0 ) status = errno;
21381 status = pthread_attr_setdetachstate(&attr, detach);
21383 if( status ) return status;
21384 status = pthread_create( &t, &attr, task, NULL );
21385 #if HAVE_PTHREADS < 7
21386 if( status < 0 ) status = errno;
21388 if( status ) return status;
21390 /* Draft 4 pthreads */
21391 status = pthread_create( &t, pthread_attr_default, task, NULL );
21392 if( status ) return errno;
21394 /* give thread a chance to complete */
21395 /* it should remain joinable and hence detachable */
21398 status = pthread_detach( &t );
21399 if( status ) return errno;
21402 #ifdef HAVE_LINUX_THREADS
21403 pthread_kill_other_threads_np();
21411 rm -f conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ol_cv_pthread_pthreads=yes
21424 echo "$as_me: program exited with status $ac_status" >&5
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ( exit $ac_status )
21429 ol_cv_pthread_pthreads=no
21431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21438 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21439 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21441 if test $ol_cv_pthread_pthreads = yes ; then
21442 ol_link_pthreads="-pthreads"
21443 ol_link_threads=posix
21447 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21448 if test "$ol_link_threads" = no ; then
21450 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21451 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21452 if test "${ol_cv_pthread_mthreads+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 LIBS="-mthreads $LIBS"
21460 if test "$cross_compiling" = yes; then
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21468 /* pthread test headers */
21469 #include <pthread.h>
21470 #if HAVE_PTHREADS < 7
21474 #define NULL (void*)0
21477 static void *task(p)
21480 return (void *) (p == NULL);
21487 /* pthread test function */
21488 #ifndef PTHREAD_CREATE_DETACHED
21489 #define PTHREAD_CREATE_DETACHED 1
21493 int detach = PTHREAD_CREATE_DETACHED;
21495 #if HAVE_PTHREADS > 4
21496 /* Final pthreads */
21497 pthread_attr_t attr;
21499 status = pthread_attr_init(&attr);
21500 if( status ) return status;
21502 #if HAVE_PTHREADS < 7
21503 status = pthread_attr_setdetachstate(&attr, &detach);
21504 if( status < 0 ) status = errno;
21506 status = pthread_attr_setdetachstate(&attr, detach);
21508 if( status ) return status;
21509 status = pthread_create( &t, &attr, task, NULL );
21510 #if HAVE_PTHREADS < 7
21511 if( status < 0 ) status = errno;
21513 if( status ) return status;
21515 /* Draft 4 pthreads */
21516 status = pthread_create( &t, pthread_attr_default, task, NULL );
21517 if( status ) return errno;
21519 /* give thread a chance to complete */
21520 /* it should remain joinable and hence detachable */
21523 status = pthread_detach( &t );
21524 if( status ) return errno;
21527 #ifdef HAVE_LINUX_THREADS
21528 pthread_kill_other_threads_np();
21537 rm -f conftest.$ac_objext conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539 (eval $ac_link) 2>conftest.er1
21541 grep -v '^ *+' conftest.er1 >conftest.err
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } &&
21546 { ac_try='test -z "$ac_c_werror_flag"
21547 || test ! -s conftest.err'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; } &&
21553 { ac_try='test -s conftest$ac_exeext'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ol_cv_pthread_mthreads=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ol_cv_pthread_mthreads=no
21566 rm -f conftest.err conftest.$ac_objext \
21567 conftest$ac_exeext conftest.$ac_ext
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21576 /* pthread test headers */
21577 #include <pthread.h>
21578 #if HAVE_PTHREADS < 7
21582 #define NULL (void*)0
21585 static void *task(p)
21588 return (void *) (p == NULL);
21592 int main(argc, argv)
21597 /* pthread test function */
21598 #ifndef PTHREAD_CREATE_DETACHED
21599 #define PTHREAD_CREATE_DETACHED 1
21603 int detach = PTHREAD_CREATE_DETACHED;
21605 #if HAVE_PTHREADS > 4
21606 /* Final pthreads */
21607 pthread_attr_t attr;
21609 status = pthread_attr_init(&attr);
21610 if( status ) return status;
21612 #if HAVE_PTHREADS < 7
21613 status = pthread_attr_setdetachstate(&attr, &detach);
21614 if( status < 0 ) status = errno;
21616 status = pthread_attr_setdetachstate(&attr, detach);
21618 if( status ) return status;
21619 status = pthread_create( &t, &attr, task, NULL );
21620 #if HAVE_PTHREADS < 7
21621 if( status < 0 ) status = errno;
21623 if( status ) return status;
21625 /* Draft 4 pthreads */
21626 status = pthread_create( &t, pthread_attr_default, task, NULL );
21627 if( status ) return errno;
21629 /* give thread a chance to complete */
21630 /* it should remain joinable and hence detachable */
21633 status = pthread_detach( &t );
21634 if( status ) return errno;
21637 #ifdef HAVE_LINUX_THREADS
21638 pthread_kill_other_threads_np();
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ol_cv_pthread_mthreads=yes
21659 echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ( exit $ac_status )
21664 ol_cv_pthread_mthreads=no
21666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21673 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21674 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21676 if test $ol_cv_pthread_mthreads = yes ; then
21677 ol_link_pthreads="-mthreads"
21678 ol_link_threads=posix
21682 # Pthread try link: -thread (ol_cv_pthread_thread)
21683 if test "$ol_link_threads" = no ; then
21685 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21686 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21687 if test "${ol_cv_pthread_thread+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 LIBS="-thread $LIBS"
21695 if test "$cross_compiling" = yes; then
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21703 /* pthread test headers */
21704 #include <pthread.h>
21705 #if HAVE_PTHREADS < 7
21709 #define NULL (void*)0
21712 static void *task(p)
21715 return (void *) (p == NULL);
21722 /* pthread test function */
21723 #ifndef PTHREAD_CREATE_DETACHED
21724 #define PTHREAD_CREATE_DETACHED 1
21728 int detach = PTHREAD_CREATE_DETACHED;
21730 #if HAVE_PTHREADS > 4
21731 /* Final pthreads */
21732 pthread_attr_t attr;
21734 status = pthread_attr_init(&attr);
21735 if( status ) return status;
21737 #if HAVE_PTHREADS < 7
21738 status = pthread_attr_setdetachstate(&attr, &detach);
21739 if( status < 0 ) status = errno;
21741 status = pthread_attr_setdetachstate(&attr, detach);
21743 if( status ) return status;
21744 status = pthread_create( &t, &attr, task, NULL );
21745 #if HAVE_PTHREADS < 7
21746 if( status < 0 ) status = errno;
21748 if( status ) return status;
21750 /* Draft 4 pthreads */
21751 status = pthread_create( &t, pthread_attr_default, task, NULL );
21752 if( status ) return errno;
21754 /* give thread a chance to complete */
21755 /* it should remain joinable and hence detachable */
21758 status = pthread_detach( &t );
21759 if( status ) return errno;
21762 #ifdef HAVE_LINUX_THREADS
21763 pthread_kill_other_threads_np();
21772 rm -f conftest.$ac_objext conftest$ac_exeext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21774 (eval $ac_link) 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
21781 { ac_try='test -z "$ac_c_werror_flag"
21782 || test ! -s conftest.err'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; } &&
21788 { ac_try='test -s conftest$ac_exeext'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ol_cv_pthread_thread=yes
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ol_cv_pthread_thread=no
21801 rm -f conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21811 /* pthread test headers */
21812 #include <pthread.h>
21813 #if HAVE_PTHREADS < 7
21817 #define NULL (void*)0
21820 static void *task(p)
21823 return (void *) (p == NULL);
21827 int main(argc, argv)
21832 /* pthread test function */
21833 #ifndef PTHREAD_CREATE_DETACHED
21834 #define PTHREAD_CREATE_DETACHED 1
21838 int detach = PTHREAD_CREATE_DETACHED;
21840 #if HAVE_PTHREADS > 4
21841 /* Final pthreads */
21842 pthread_attr_t attr;
21844 status = pthread_attr_init(&attr);
21845 if( status ) return status;
21847 #if HAVE_PTHREADS < 7
21848 status = pthread_attr_setdetachstate(&attr, &detach);
21849 if( status < 0 ) status = errno;
21851 status = pthread_attr_setdetachstate(&attr, detach);
21853 if( status ) return status;
21854 status = pthread_create( &t, &attr, task, NULL );
21855 #if HAVE_PTHREADS < 7
21856 if( status < 0 ) status = errno;
21858 if( status ) return status;
21860 /* Draft 4 pthreads */
21861 status = pthread_create( &t, pthread_attr_default, task, NULL );
21862 if( status ) return errno;
21864 /* give thread a chance to complete */
21865 /* it should remain joinable and hence detachable */
21868 status = pthread_detach( &t );
21869 if( status ) return errno;
21872 #ifdef HAVE_LINUX_THREADS
21873 pthread_kill_other_threads_np();
21881 rm -f conftest$ac_exeext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21883 (eval $ac_link) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ol_cv_pthread_thread=yes
21894 echo "$as_me: program exited with status $ac_status" >&5
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21898 ( exit $ac_status )
21899 ol_cv_pthread_thread=no
21901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21908 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21909 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21911 if test $ol_cv_pthread_thread = yes ; then
21912 ol_link_pthreads="-thread"
21913 ol_link_threads=posix
21918 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21919 if test "$ol_link_threads" = no ; then
21920 # try -lpthread -lmach -lexc -lc_r
21921 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21922 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21923 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21931 if test "$cross_compiling" = yes; then
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 /* pthread test headers */
21940 #include <pthread.h>
21941 #if HAVE_PTHREADS < 7
21945 #define NULL (void*)0
21948 static void *task(p)
21951 return (void *) (p == NULL);
21958 /* pthread test function */
21959 #ifndef PTHREAD_CREATE_DETACHED
21960 #define PTHREAD_CREATE_DETACHED 1
21964 int detach = PTHREAD_CREATE_DETACHED;
21966 #if HAVE_PTHREADS > 4
21967 /* Final pthreads */
21968 pthread_attr_t attr;
21970 status = pthread_attr_init(&attr);
21971 if( status ) return status;
21973 #if HAVE_PTHREADS < 7
21974 status = pthread_attr_setdetachstate(&attr, &detach);
21975 if( status < 0 ) status = errno;
21977 status = pthread_attr_setdetachstate(&attr, detach);
21979 if( status ) return status;
21980 status = pthread_create( &t, &attr, task, NULL );
21981 #if HAVE_PTHREADS < 7
21982 if( status < 0 ) status = errno;
21984 if( status ) return status;
21986 /* Draft 4 pthreads */
21987 status = pthread_create( &t, pthread_attr_default, task, NULL );
21988 if( status ) return errno;
21990 /* give thread a chance to complete */
21991 /* it should remain joinable and hence detachable */
21994 status = pthread_detach( &t );
21995 if( status ) return errno;
21998 #ifdef HAVE_LINUX_THREADS
21999 pthread_kill_other_threads_np();
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010 (eval $ac_link) 2>conftest.er1
22012 grep -v '^ *+' conftest.er1 >conftest.err
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
22017 { ac_try='test -z "$ac_c_werror_flag"
22018 || test ! -s conftest.err'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest$ac_exeext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22037 rm -f conftest.err conftest.$ac_objext \
22038 conftest$ac_exeext conftest.$ac_ext
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22047 /* pthread test headers */
22048 #include <pthread.h>
22049 #if HAVE_PTHREADS < 7
22053 #define NULL (void*)0
22056 static void *task(p)
22059 return (void *) (p == NULL);
22063 int main(argc, argv)
22068 /* pthread test function */
22069 #ifndef PTHREAD_CREATE_DETACHED
22070 #define PTHREAD_CREATE_DETACHED 1
22074 int detach = PTHREAD_CREATE_DETACHED;
22076 #if HAVE_PTHREADS > 4
22077 /* Final pthreads */
22078 pthread_attr_t attr;
22080 status = pthread_attr_init(&attr);
22081 if( status ) return status;
22083 #if HAVE_PTHREADS < 7
22084 status = pthread_attr_setdetachstate(&attr, &detach);
22085 if( status < 0 ) status = errno;
22087 status = pthread_attr_setdetachstate(&attr, detach);
22089 if( status ) return status;
22090 status = pthread_create( &t, &attr, task, NULL );
22091 #if HAVE_PTHREADS < 7
22092 if( status < 0 ) status = errno;
22094 if( status ) return status;
22096 /* Draft 4 pthreads */
22097 status = pthread_create( &t, pthread_attr_default, task, NULL );
22098 if( status ) return errno;
22100 /* give thread a chance to complete */
22101 /* it should remain joinable and hence detachable */
22104 status = pthread_detach( &t );
22105 if( status ) return errno;
22108 #ifdef HAVE_LINUX_THREADS
22109 pthread_kill_other_threads_np();
22117 rm -f conftest$ac_exeext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119 (eval $ac_link) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22130 echo "$as_me: program exited with status $ac_status" >&5
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ( exit $ac_status )
22135 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22144 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22145 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22147 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22148 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22149 ol_link_threads=posix
22153 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22154 if test "$ol_link_threads" = no ; then
22155 # try -lpthread -lmach -lexc
22156 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22157 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22158 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22159 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 LIBS="-lpthread -lmach -lexc $LIBS"
22166 if test "$cross_compiling" = yes; then
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22174 /* pthread test headers */
22175 #include <pthread.h>
22176 #if HAVE_PTHREADS < 7
22180 #define NULL (void*)0
22183 static void *task(p)
22186 return (void *) (p == NULL);
22193 /* pthread test function */
22194 #ifndef PTHREAD_CREATE_DETACHED
22195 #define PTHREAD_CREATE_DETACHED 1
22199 int detach = PTHREAD_CREATE_DETACHED;
22201 #if HAVE_PTHREADS > 4
22202 /* Final pthreads */
22203 pthread_attr_t attr;
22205 status = pthread_attr_init(&attr);
22206 if( status ) return status;
22208 #if HAVE_PTHREADS < 7
22209 status = pthread_attr_setdetachstate(&attr, &detach);
22210 if( status < 0 ) status = errno;
22212 status = pthread_attr_setdetachstate(&attr, detach);
22214 if( status ) return status;
22215 status = pthread_create( &t, &attr, task, NULL );
22216 #if HAVE_PTHREADS < 7
22217 if( status < 0 ) status = errno;
22219 if( status ) return status;
22221 /* Draft 4 pthreads */
22222 status = pthread_create( &t, pthread_attr_default, task, NULL );
22223 if( status ) return errno;
22225 /* give thread a chance to complete */
22226 /* it should remain joinable and hence detachable */
22229 status = pthread_detach( &t );
22230 if( status ) return errno;
22233 #ifdef HAVE_LINUX_THREADS
22234 pthread_kill_other_threads_np();
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_c_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest$ac_exeext'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 ol_cv_pthread_lpthread_lmach_lexc=yes
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270 ol_cv_pthread_lpthread_lmach_lexc=no
22272 rm -f conftest.err conftest.$ac_objext \
22273 conftest$ac_exeext conftest.$ac_ext
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22282 /* pthread test headers */
22283 #include <pthread.h>
22284 #if HAVE_PTHREADS < 7
22288 #define NULL (void*)0
22291 static void *task(p)
22294 return (void *) (p == NULL);
22298 int main(argc, argv)
22303 /* pthread test function */
22304 #ifndef PTHREAD_CREATE_DETACHED
22305 #define PTHREAD_CREATE_DETACHED 1
22309 int detach = PTHREAD_CREATE_DETACHED;
22311 #if HAVE_PTHREADS > 4
22312 /* Final pthreads */
22313 pthread_attr_t attr;
22315 status = pthread_attr_init(&attr);
22316 if( status ) return status;
22318 #if HAVE_PTHREADS < 7
22319 status = pthread_attr_setdetachstate(&attr, &detach);
22320 if( status < 0 ) status = errno;
22322 status = pthread_attr_setdetachstate(&attr, detach);
22324 if( status ) return status;
22325 status = pthread_create( &t, &attr, task, NULL );
22326 #if HAVE_PTHREADS < 7
22327 if( status < 0 ) status = errno;
22329 if( status ) return status;
22331 /* Draft 4 pthreads */
22332 status = pthread_create( &t, pthread_attr_default, task, NULL );
22333 if( status ) return errno;
22335 /* give thread a chance to complete */
22336 /* it should remain joinable and hence detachable */
22339 status = pthread_detach( &t );
22340 if( status ) return errno;
22343 #ifdef HAVE_LINUX_THREADS
22344 pthread_kill_other_threads_np();
22352 rm -f conftest$ac_exeext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22354 (eval $ac_link) 2>&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 ol_cv_pthread_lpthread_lmach_lexc=yes
22365 echo "$as_me: program exited with status $ac_status" >&5
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ( exit $ac_status )
22370 ol_cv_pthread_lpthread_lmach_lexc=no
22372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22379 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22380 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22382 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22383 ol_link_pthreads="-lpthread -lmach -lexc"
22384 ol_link_threads=posix
22389 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22390 if test "$ol_link_threads" = no ; then
22391 # try -lpthread -Wl,-woff,85
22392 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22393 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22394 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22402 if test "$cross_compiling" = yes; then
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22410 /* pthread test headers */
22411 #include <pthread.h>
22412 #if HAVE_PTHREADS < 7
22416 #define NULL (void*)0
22419 static void *task(p)
22422 return (void *) (p == NULL);
22429 /* pthread test function */
22430 #ifndef PTHREAD_CREATE_DETACHED
22431 #define PTHREAD_CREATE_DETACHED 1
22435 int detach = PTHREAD_CREATE_DETACHED;
22437 #if HAVE_PTHREADS > 4
22438 /* Final pthreads */
22439 pthread_attr_t attr;
22441 status = pthread_attr_init(&attr);
22442 if( status ) return status;
22444 #if HAVE_PTHREADS < 7
22445 status = pthread_attr_setdetachstate(&attr, &detach);
22446 if( status < 0 ) status = errno;
22448 status = pthread_attr_setdetachstate(&attr, detach);
22450 if( status ) return status;
22451 status = pthread_create( &t, &attr, task, NULL );
22452 #if HAVE_PTHREADS < 7
22453 if( status < 0 ) status = errno;
22455 if( status ) return status;
22457 /* Draft 4 pthreads */
22458 status = pthread_create( &t, pthread_attr_default, task, NULL );
22459 if( status ) return errno;
22461 /* give thread a chance to complete */
22462 /* it should remain joinable and hence detachable */
22465 status = pthread_detach( &t );
22466 if( status ) return errno;
22469 #ifdef HAVE_LINUX_THREADS
22470 pthread_kill_other_threads_np();
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22481 (eval $ac_link) 2>conftest.er1
22483 grep -v '^ *+' conftest.er1 >conftest.err
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -z "$ac_c_werror_flag"
22489 || test ! -s conftest.err'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; } &&
22495 { ac_try='test -s conftest$ac_exeext'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; }; then
22501 ol_cv_pthread_lib_lpthread_woff=yes
22503 echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22506 ol_cv_pthread_lib_lpthread_woff=no
22508 rm -f conftest.err conftest.$ac_objext \
22509 conftest$ac_exeext conftest.$ac_ext
22511 cat >conftest.$ac_ext <<_ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22518 /* pthread test headers */
22519 #include <pthread.h>
22520 #if HAVE_PTHREADS < 7
22524 #define NULL (void*)0
22527 static void *task(p)
22530 return (void *) (p == NULL);
22534 int main(argc, argv)
22539 /* pthread test function */
22540 #ifndef PTHREAD_CREATE_DETACHED
22541 #define PTHREAD_CREATE_DETACHED 1
22545 int detach = PTHREAD_CREATE_DETACHED;
22547 #if HAVE_PTHREADS > 4
22548 /* Final pthreads */
22549 pthread_attr_t attr;
22551 status = pthread_attr_init(&attr);
22552 if( status ) return status;
22554 #if HAVE_PTHREADS < 7
22555 status = pthread_attr_setdetachstate(&attr, &detach);
22556 if( status < 0 ) status = errno;
22558 status = pthread_attr_setdetachstate(&attr, detach);
22560 if( status ) return status;
22561 status = pthread_create( &t, &attr, task, NULL );
22562 #if HAVE_PTHREADS < 7
22563 if( status < 0 ) status = errno;
22565 if( status ) return status;
22567 /* Draft 4 pthreads */
22568 status = pthread_create( &t, pthread_attr_default, task, NULL );
22569 if( status ) return errno;
22571 /* give thread a chance to complete */
22572 /* it should remain joinable and hence detachable */
22575 status = pthread_detach( &t );
22576 if( status ) return errno;
22579 #ifdef HAVE_LINUX_THREADS
22580 pthread_kill_other_threads_np();
22588 rm -f conftest$ac_exeext
22589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22590 (eval $ac_link) 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ol_cv_pthread_lib_lpthread_woff=yes
22601 echo "$as_me: program exited with status $ac_status" >&5
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ( exit $ac_status )
22606 ol_cv_pthread_lib_lpthread_woff=no
22608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22615 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22616 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22618 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22619 ol_link_pthreads="-lpthread -Wl,-woff,85"
22620 ol_link_threads=posix
22625 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22626 if test "$ol_link_threads" = no ; then
22628 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22629 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22630 if test "${ol_cv_pthread_lpthread+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 LIBS="-lpthread $LIBS"
22638 if test "$cross_compiling" = yes; then
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22646 /* pthread test headers */
22647 #include <pthread.h>
22648 #if HAVE_PTHREADS < 7
22652 #define NULL (void*)0
22655 static void *task(p)
22658 return (void *) (p == NULL);
22665 /* pthread test function */
22666 #ifndef PTHREAD_CREATE_DETACHED
22667 #define PTHREAD_CREATE_DETACHED 1
22671 int detach = PTHREAD_CREATE_DETACHED;
22673 #if HAVE_PTHREADS > 4
22674 /* Final pthreads */
22675 pthread_attr_t attr;
22677 status = pthread_attr_init(&attr);
22678 if( status ) return status;
22680 #if HAVE_PTHREADS < 7
22681 status = pthread_attr_setdetachstate(&attr, &detach);
22682 if( status < 0 ) status = errno;
22684 status = pthread_attr_setdetachstate(&attr, detach);
22686 if( status ) return status;
22687 status = pthread_create( &t, &attr, task, NULL );
22688 #if HAVE_PTHREADS < 7
22689 if( status < 0 ) status = errno;
22691 if( status ) return status;
22693 /* Draft 4 pthreads */
22694 status = pthread_create( &t, pthread_attr_default, task, NULL );
22695 if( status ) return errno;
22697 /* give thread a chance to complete */
22698 /* it should remain joinable and hence detachable */
22701 status = pthread_detach( &t );
22702 if( status ) return errno;
22705 #ifdef HAVE_LINUX_THREADS
22706 pthread_kill_other_threads_np();
22715 rm -f conftest.$ac_objext conftest$ac_exeext
22716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22717 (eval $ac_link) 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
22724 { ac_try='test -z "$ac_c_werror_flag"
22725 || test ! -s conftest.err'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; } &&
22731 { ac_try='test -s conftest$ac_exeext'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 ol_cv_pthread_lpthread=yes
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ol_cv_pthread_lpthread=no
22744 rm -f conftest.err conftest.$ac_objext \
22745 conftest$ac_exeext conftest.$ac_ext
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22754 /* pthread test headers */
22755 #include <pthread.h>
22756 #if HAVE_PTHREADS < 7
22760 #define NULL (void*)0
22763 static void *task(p)
22766 return (void *) (p == NULL);
22770 int main(argc, argv)
22775 /* pthread test function */
22776 #ifndef PTHREAD_CREATE_DETACHED
22777 #define PTHREAD_CREATE_DETACHED 1
22781 int detach = PTHREAD_CREATE_DETACHED;
22783 #if HAVE_PTHREADS > 4
22784 /* Final pthreads */
22785 pthread_attr_t attr;
22787 status = pthread_attr_init(&attr);
22788 if( status ) return status;
22790 #if HAVE_PTHREADS < 7
22791 status = pthread_attr_setdetachstate(&attr, &detach);
22792 if( status < 0 ) status = errno;
22794 status = pthread_attr_setdetachstate(&attr, detach);
22796 if( status ) return status;
22797 status = pthread_create( &t, &attr, task, NULL );
22798 #if HAVE_PTHREADS < 7
22799 if( status < 0 ) status = errno;
22801 if( status ) return status;
22803 /* Draft 4 pthreads */
22804 status = pthread_create( &t, pthread_attr_default, task, NULL );
22805 if( status ) return errno;
22807 /* give thread a chance to complete */
22808 /* it should remain joinable and hence detachable */
22811 status = pthread_detach( &t );
22812 if( status ) return errno;
22815 #ifdef HAVE_LINUX_THREADS
22816 pthread_kill_other_threads_np();
22824 rm -f conftest$ac_exeext
22825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22826 (eval $ac_link) 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831 (eval $ac_try) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; }; then
22835 ol_cv_pthread_lpthread=yes
22837 echo "$as_me: program exited with status $ac_status" >&5
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ( exit $ac_status )
22842 ol_cv_pthread_lpthread=no
22844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22851 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22852 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22854 if test $ol_cv_pthread_lpthread = yes ; then
22855 ol_link_pthreads="-lpthread"
22856 ol_link_threads=posix
22860 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22861 if test "$ol_link_threads" = no ; then
22863 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22864 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22865 if test "${ol_cv_pthread_lc_r+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 if test "$cross_compiling" = yes; then
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* pthread test headers */
22882 #include <pthread.h>
22883 #if HAVE_PTHREADS < 7
22887 #define NULL (void*)0
22890 static void *task(p)
22893 return (void *) (p == NULL);
22900 /* pthread test function */
22901 #ifndef PTHREAD_CREATE_DETACHED
22902 #define PTHREAD_CREATE_DETACHED 1
22906 int detach = PTHREAD_CREATE_DETACHED;
22908 #if HAVE_PTHREADS > 4
22909 /* Final pthreads */
22910 pthread_attr_t attr;
22912 status = pthread_attr_init(&attr);
22913 if( status ) return status;
22915 #if HAVE_PTHREADS < 7
22916 status = pthread_attr_setdetachstate(&attr, &detach);
22917 if( status < 0 ) status = errno;
22919 status = pthread_attr_setdetachstate(&attr, detach);
22921 if( status ) return status;
22922 status = pthread_create( &t, &attr, task, NULL );
22923 #if HAVE_PTHREADS < 7
22924 if( status < 0 ) status = errno;
22926 if( status ) return status;
22928 /* Draft 4 pthreads */
22929 status = pthread_create( &t, pthread_attr_default, task, NULL );
22930 if( status ) return errno;
22932 /* give thread a chance to complete */
22933 /* it should remain joinable and hence detachable */
22936 status = pthread_detach( &t );
22937 if( status ) return errno;
22940 #ifdef HAVE_LINUX_THREADS
22941 pthread_kill_other_threads_np();
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 (eval $ac_link) 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } &&
22959 { ac_try='test -z "$ac_c_werror_flag"
22960 || test ! -s conftest.err'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; } &&
22966 { ac_try='test -s conftest$ac_exeext'
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 ol_cv_pthread_lc_r=yes
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ol_cv_pthread_lc_r=no
22979 rm -f conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22989 /* pthread test headers */
22990 #include <pthread.h>
22991 #if HAVE_PTHREADS < 7
22995 #define NULL (void*)0
22998 static void *task(p)
23001 return (void *) (p == NULL);
23005 int main(argc, argv)
23010 /* pthread test function */
23011 #ifndef PTHREAD_CREATE_DETACHED
23012 #define PTHREAD_CREATE_DETACHED 1
23016 int detach = PTHREAD_CREATE_DETACHED;
23018 #if HAVE_PTHREADS > 4
23019 /* Final pthreads */
23020 pthread_attr_t attr;
23022 status = pthread_attr_init(&attr);
23023 if( status ) return status;
23025 #if HAVE_PTHREADS < 7
23026 status = pthread_attr_setdetachstate(&attr, &detach);
23027 if( status < 0 ) status = errno;
23029 status = pthread_attr_setdetachstate(&attr, detach);
23031 if( status ) return status;
23032 status = pthread_create( &t, &attr, task, NULL );
23033 #if HAVE_PTHREADS < 7
23034 if( status < 0 ) status = errno;
23036 if( status ) return status;
23038 /* Draft 4 pthreads */
23039 status = pthread_create( &t, pthread_attr_default, task, NULL );
23040 if( status ) return errno;
23042 /* give thread a chance to complete */
23043 /* it should remain joinable and hence detachable */
23046 status = pthread_detach( &t );
23047 if( status ) return errno;
23050 #ifdef HAVE_LINUX_THREADS
23051 pthread_kill_other_threads_np();
23059 rm -f conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061 (eval $ac_link) 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23070 ol_cv_pthread_lc_r=yes
23072 echo "$as_me: program exited with status $ac_status" >&5
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23076 ( exit $ac_status )
23077 ol_cv_pthread_lc_r=no
23079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23086 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23087 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23089 if test $ol_cv_pthread_lc_r = yes ; then
23090 ol_link_pthreads="-lc_r"
23091 ol_link_threads=posix
23096 # Pthread try link: -threads (ol_cv_pthread_threads)
23097 if test "$ol_link_threads" = no ; then
23099 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23100 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23101 if test "${ol_cv_pthread_threads+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 LIBS="-threads $LIBS"
23109 if test "$cross_compiling" = yes; then
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23117 /* pthread test headers */
23118 #include <pthread.h>
23119 #if HAVE_PTHREADS < 7
23123 #define NULL (void*)0
23126 static void *task(p)
23129 return (void *) (p == NULL);
23136 /* pthread test function */
23137 #ifndef PTHREAD_CREATE_DETACHED
23138 #define PTHREAD_CREATE_DETACHED 1
23142 int detach = PTHREAD_CREATE_DETACHED;
23144 #if HAVE_PTHREADS > 4
23145 /* Final pthreads */
23146 pthread_attr_t attr;
23148 status = pthread_attr_init(&attr);
23149 if( status ) return status;
23151 #if HAVE_PTHREADS < 7
23152 status = pthread_attr_setdetachstate(&attr, &detach);
23153 if( status < 0 ) status = errno;
23155 status = pthread_attr_setdetachstate(&attr, detach);
23157 if( status ) return status;
23158 status = pthread_create( &t, &attr, task, NULL );
23159 #if HAVE_PTHREADS < 7
23160 if( status < 0 ) status = errno;
23162 if( status ) return status;
23164 /* Draft 4 pthreads */
23165 status = pthread_create( &t, pthread_attr_default, task, NULL );
23166 if( status ) return errno;
23168 /* give thread a chance to complete */
23169 /* it should remain joinable and hence detachable */
23172 status = pthread_detach( &t );
23173 if( status ) return errno;
23176 #ifdef HAVE_LINUX_THREADS
23177 pthread_kill_other_threads_np();
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23188 (eval $ac_link) 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try='test -z "$ac_c_werror_flag"
23196 || test ! -s conftest.err'
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; } &&
23202 { ac_try='test -s conftest$ac_exeext'
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23208 ol_cv_pthread_threads=yes
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ol_cv_pthread_threads=no
23215 rm -f conftest.err conftest.$ac_objext \
23216 conftest$ac_exeext conftest.$ac_ext
23218 cat >conftest.$ac_ext <<_ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23225 /* pthread test headers */
23226 #include <pthread.h>
23227 #if HAVE_PTHREADS < 7
23231 #define NULL (void*)0
23234 static void *task(p)
23237 return (void *) (p == NULL);
23241 int main(argc, argv)
23246 /* pthread test function */
23247 #ifndef PTHREAD_CREATE_DETACHED
23248 #define PTHREAD_CREATE_DETACHED 1
23252 int detach = PTHREAD_CREATE_DETACHED;
23254 #if HAVE_PTHREADS > 4
23255 /* Final pthreads */
23256 pthread_attr_t attr;
23258 status = pthread_attr_init(&attr);
23259 if( status ) return status;
23261 #if HAVE_PTHREADS < 7
23262 status = pthread_attr_setdetachstate(&attr, &detach);
23263 if( status < 0 ) status = errno;
23265 status = pthread_attr_setdetachstate(&attr, detach);
23267 if( status ) return status;
23268 status = pthread_create( &t, &attr, task, NULL );
23269 #if HAVE_PTHREADS < 7
23270 if( status < 0 ) status = errno;
23272 if( status ) return status;
23274 /* Draft 4 pthreads */
23275 status = pthread_create( &t, pthread_attr_default, task, NULL );
23276 if( status ) return errno;
23278 /* give thread a chance to complete */
23279 /* it should remain joinable and hence detachable */
23282 status = pthread_detach( &t );
23283 if( status ) return errno;
23286 #ifdef HAVE_LINUX_THREADS
23287 pthread_kill_other_threads_np();
23295 rm -f conftest$ac_exeext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297 (eval $ac_link) 2>&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; }; then
23306 ol_cv_pthread_threads=yes
23308 echo "$as_me: program exited with status $ac_status" >&5
23309 echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23312 ( exit $ac_status )
23313 ol_cv_pthread_threads=no
23315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23322 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23323 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23325 if test $ol_cv_pthread_threads = yes ; then
23326 ol_link_pthreads="-threads"
23327 ol_link_threads=posix
23332 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23333 if test "$ol_link_threads" = no ; then
23334 # try -lpthreads -lmach -lexc -lc_r
23335 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23336 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23337 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23338 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23345 if test "$cross_compiling" = yes; then
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 /* pthread test headers */
23354 #include <pthread.h>
23355 #if HAVE_PTHREADS < 7
23359 #define NULL (void*)0
23362 static void *task(p)
23365 return (void *) (p == NULL);
23372 /* pthread test function */
23373 #ifndef PTHREAD_CREATE_DETACHED
23374 #define PTHREAD_CREATE_DETACHED 1
23378 int detach = PTHREAD_CREATE_DETACHED;
23380 #if HAVE_PTHREADS > 4
23381 /* Final pthreads */
23382 pthread_attr_t attr;
23384 status = pthread_attr_init(&attr);
23385 if( status ) return status;
23387 #if HAVE_PTHREADS < 7
23388 status = pthread_attr_setdetachstate(&attr, &detach);
23389 if( status < 0 ) status = errno;
23391 status = pthread_attr_setdetachstate(&attr, detach);
23393 if( status ) return status;
23394 status = pthread_create( &t, &attr, task, NULL );
23395 #if HAVE_PTHREADS < 7
23396 if( status < 0 ) status = errno;
23398 if( status ) return status;
23400 /* Draft 4 pthreads */
23401 status = pthread_create( &t, pthread_attr_default, task, NULL );
23402 if( status ) return errno;
23404 /* give thread a chance to complete */
23405 /* it should remain joinable and hence detachable */
23408 status = pthread_detach( &t );
23409 if( status ) return errno;
23412 #ifdef HAVE_LINUX_THREADS
23413 pthread_kill_other_threads_np();
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23424 (eval $ac_link) 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
23431 { ac_try='test -z "$ac_c_werror_flag"
23432 || test ! -s conftest.err'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest$ac_exeext'
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23444 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23446 echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23449 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23451 rm -f conftest.err conftest.$ac_objext \
23452 conftest$ac_exeext conftest.$ac_ext
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23461 /* pthread test headers */
23462 #include <pthread.h>
23463 #if HAVE_PTHREADS < 7
23467 #define NULL (void*)0
23470 static void *task(p)
23473 return (void *) (p == NULL);
23477 int main(argc, argv)
23482 /* pthread test function */
23483 #ifndef PTHREAD_CREATE_DETACHED
23484 #define PTHREAD_CREATE_DETACHED 1
23488 int detach = PTHREAD_CREATE_DETACHED;
23490 #if HAVE_PTHREADS > 4
23491 /* Final pthreads */
23492 pthread_attr_t attr;
23494 status = pthread_attr_init(&attr);
23495 if( status ) return status;
23497 #if HAVE_PTHREADS < 7
23498 status = pthread_attr_setdetachstate(&attr, &detach);
23499 if( status < 0 ) status = errno;
23501 status = pthread_attr_setdetachstate(&attr, detach);
23503 if( status ) return status;
23504 status = pthread_create( &t, &attr, task, NULL );
23505 #if HAVE_PTHREADS < 7
23506 if( status < 0 ) status = errno;
23508 if( status ) return status;
23510 /* Draft 4 pthreads */
23511 status = pthread_create( &t, pthread_attr_default, task, NULL );
23512 if( status ) return errno;
23514 /* give thread a chance to complete */
23515 /* it should remain joinable and hence detachable */
23518 status = pthread_detach( &t );
23519 if( status ) return errno;
23522 #ifdef HAVE_LINUX_THREADS
23523 pthread_kill_other_threads_np();
23531 rm -f conftest$ac_exeext
23532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23533 (eval $ac_link) 2>&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23544 echo "$as_me: program exited with status $ac_status" >&5
23545 echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23548 ( exit $ac_status )
23549 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23558 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23559 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23561 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23562 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23563 ol_link_threads=posix
23567 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23568 if test "$ol_link_threads" = no ; then
23569 # try -lpthreads -lmach -lexc
23570 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23571 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23572 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 LIBS="-lpthreads -lmach -lexc $LIBS"
23580 if test "$cross_compiling" = yes; then
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23588 /* pthread test headers */
23589 #include <pthread.h>
23590 #if HAVE_PTHREADS < 7
23594 #define NULL (void*)0
23597 static void *task(p)
23600 return (void *) (p == NULL);
23607 /* pthread test function */
23608 #ifndef PTHREAD_CREATE_DETACHED
23609 #define PTHREAD_CREATE_DETACHED 1
23613 int detach = PTHREAD_CREATE_DETACHED;
23615 #if HAVE_PTHREADS > 4
23616 /* Final pthreads */
23617 pthread_attr_t attr;
23619 status = pthread_attr_init(&attr);
23620 if( status ) return status;
23622 #if HAVE_PTHREADS < 7
23623 status = pthread_attr_setdetachstate(&attr, &detach);
23624 if( status < 0 ) status = errno;
23626 status = pthread_attr_setdetachstate(&attr, detach);
23628 if( status ) return status;
23629 status = pthread_create( &t, &attr, task, NULL );
23630 #if HAVE_PTHREADS < 7
23631 if( status < 0 ) status = errno;
23633 if( status ) return status;
23635 /* Draft 4 pthreads */
23636 status = pthread_create( &t, pthread_attr_default, task, NULL );
23637 if( status ) return errno;
23639 /* give thread a chance to complete */
23640 /* it should remain joinable and hence detachable */
23643 status = pthread_detach( &t );
23644 if( status ) return errno;
23647 #ifdef HAVE_LINUX_THREADS
23648 pthread_kill_other_threads_np();
23657 rm -f conftest.$ac_objext conftest$ac_exeext
23658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23659 (eval $ac_link) 2>conftest.er1
23661 grep -v '^ *+' conftest.er1 >conftest.err
23663 cat conftest.err >&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } &&
23666 { ac_try='test -z "$ac_c_werror_flag"
23667 || test ! -s conftest.err'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; } &&
23673 { ac_try='test -s conftest$ac_exeext'
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; }; then
23679 ol_cv_pthread_lpthreads_lmach_lexc=yes
23681 echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23684 ol_cv_pthread_lpthreads_lmach_lexc=no
23686 rm -f conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext conftest.$ac_ext
23689 cat >conftest.$ac_ext <<_ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h. */
23696 /* pthread test headers */
23697 #include <pthread.h>
23698 #if HAVE_PTHREADS < 7
23702 #define NULL (void*)0
23705 static void *task(p)
23708 return (void *) (p == NULL);
23712 int main(argc, argv)
23717 /* pthread test function */
23718 #ifndef PTHREAD_CREATE_DETACHED
23719 #define PTHREAD_CREATE_DETACHED 1
23723 int detach = PTHREAD_CREATE_DETACHED;
23725 #if HAVE_PTHREADS > 4
23726 /* Final pthreads */
23727 pthread_attr_t attr;
23729 status = pthread_attr_init(&attr);
23730 if( status ) return status;
23732 #if HAVE_PTHREADS < 7
23733 status = pthread_attr_setdetachstate(&attr, &detach);
23734 if( status < 0 ) status = errno;
23736 status = pthread_attr_setdetachstate(&attr, detach);
23738 if( status ) return status;
23739 status = pthread_create( &t, &attr, task, NULL );
23740 #if HAVE_PTHREADS < 7
23741 if( status < 0 ) status = errno;
23743 if( status ) return status;
23745 /* Draft 4 pthreads */
23746 status = pthread_create( &t, pthread_attr_default, task, NULL );
23747 if( status ) return errno;
23749 /* give thread a chance to complete */
23750 /* it should remain joinable and hence detachable */
23753 status = pthread_detach( &t );
23754 if( status ) return errno;
23757 #ifdef HAVE_LINUX_THREADS
23758 pthread_kill_other_threads_np();
23766 rm -f conftest$ac_exeext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23768 (eval $ac_link) 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773 (eval $ac_try) 2>&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); }; }; then
23777 ol_cv_pthread_lpthreads_lmach_lexc=yes
23779 echo "$as_me: program exited with status $ac_status" >&5
23780 echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23783 ( exit $ac_status )
23784 ol_cv_pthread_lpthreads_lmach_lexc=no
23786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23793 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23794 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23796 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23797 ol_link_pthreads="-lpthreads -lmach -lexc"
23798 ol_link_threads=posix
23802 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23803 if test "$ol_link_threads" = no ; then
23804 # try -lpthreads -lexc
23805 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23806 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23807 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23808 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 LIBS="-lpthreads -lexc $LIBS"
23815 if test "$cross_compiling" = yes; then
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23823 /* pthread test headers */
23824 #include <pthread.h>
23825 #if HAVE_PTHREADS < 7
23829 #define NULL (void*)0
23832 static void *task(p)
23835 return (void *) (p == NULL);
23842 /* pthread test function */
23843 #ifndef PTHREAD_CREATE_DETACHED
23844 #define PTHREAD_CREATE_DETACHED 1
23848 int detach = PTHREAD_CREATE_DETACHED;
23850 #if HAVE_PTHREADS > 4
23851 /* Final pthreads */
23852 pthread_attr_t attr;
23854 status = pthread_attr_init(&attr);
23855 if( status ) return status;
23857 #if HAVE_PTHREADS < 7
23858 status = pthread_attr_setdetachstate(&attr, &detach);
23859 if( status < 0 ) status = errno;
23861 status = pthread_attr_setdetachstate(&attr, detach);
23863 if( status ) return status;
23864 status = pthread_create( &t, &attr, task, NULL );
23865 #if HAVE_PTHREADS < 7
23866 if( status < 0 ) status = errno;
23868 if( status ) return status;
23870 /* Draft 4 pthreads */
23871 status = pthread_create( &t, pthread_attr_default, task, NULL );
23872 if( status ) return errno;
23874 /* give thread a chance to complete */
23875 /* it should remain joinable and hence detachable */
23878 status = pthread_detach( &t );
23879 if( status ) return errno;
23882 #ifdef HAVE_LINUX_THREADS
23883 pthread_kill_other_threads_np();
23892 rm -f conftest.$ac_objext conftest$ac_exeext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23894 (eval $ac_link) 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
23901 { ac_try='test -z "$ac_c_werror_flag"
23902 || test ! -s conftest.err'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; } &&
23908 { ac_try='test -s conftest$ac_exeext'
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; }; then
23914 ol_cv_pthread_lpthreads_lexc=yes
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 ol_cv_pthread_lpthreads_lexc=no
23921 rm -f conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
23924 cat >conftest.$ac_ext <<_ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23931 /* pthread test headers */
23932 #include <pthread.h>
23933 #if HAVE_PTHREADS < 7
23937 #define NULL (void*)0
23940 static void *task(p)
23943 return (void *) (p == NULL);
23947 int main(argc, argv)
23952 /* pthread test function */
23953 #ifndef PTHREAD_CREATE_DETACHED
23954 #define PTHREAD_CREATE_DETACHED 1
23958 int detach = PTHREAD_CREATE_DETACHED;
23960 #if HAVE_PTHREADS > 4
23961 /* Final pthreads */
23962 pthread_attr_t attr;
23964 status = pthread_attr_init(&attr);
23965 if( status ) return status;
23967 #if HAVE_PTHREADS < 7
23968 status = pthread_attr_setdetachstate(&attr, &detach);
23969 if( status < 0 ) status = errno;
23971 status = pthread_attr_setdetachstate(&attr, detach);
23973 if( status ) return status;
23974 status = pthread_create( &t, &attr, task, NULL );
23975 #if HAVE_PTHREADS < 7
23976 if( status < 0 ) status = errno;
23978 if( status ) return status;
23980 /* Draft 4 pthreads */
23981 status = pthread_create( &t, pthread_attr_default, task, NULL );
23982 if( status ) return errno;
23984 /* give thread a chance to complete */
23985 /* it should remain joinable and hence detachable */
23988 status = pthread_detach( &t );
23989 if( status ) return errno;
23992 #ifdef HAVE_LINUX_THREADS
23993 pthread_kill_other_threads_np();
24001 rm -f conftest$ac_exeext
24002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24003 (eval $ac_link) 2>&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ol_cv_pthread_lpthreads_lexc=yes
24014 echo "$as_me: program exited with status $ac_status" >&5
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24018 ( exit $ac_status )
24019 ol_cv_pthread_lpthreads_lexc=no
24021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24028 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24029 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24031 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24032 ol_link_pthreads="-lpthreads -lexc"
24033 ol_link_threads=posix
24038 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24039 if test "$ol_link_threads" = no ; then
24041 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24042 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24043 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24044 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 LIBS="-lpthreads $LIBS"
24051 if test "$cross_compiling" = yes; then
24052 cat >conftest.$ac_ext <<_ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h. */
24059 /* pthread test headers */
24060 #include <pthread.h>
24061 #if HAVE_PTHREADS < 7
24065 #define NULL (void*)0
24068 static void *task(p)
24071 return (void *) (p == NULL);
24078 /* pthread test function */
24079 #ifndef PTHREAD_CREATE_DETACHED
24080 #define PTHREAD_CREATE_DETACHED 1
24084 int detach = PTHREAD_CREATE_DETACHED;
24086 #if HAVE_PTHREADS > 4
24087 /* Final pthreads */
24088 pthread_attr_t attr;
24090 status = pthread_attr_init(&attr);
24091 if( status ) return status;
24093 #if HAVE_PTHREADS < 7
24094 status = pthread_attr_setdetachstate(&attr, &detach);
24095 if( status < 0 ) status = errno;
24097 status = pthread_attr_setdetachstate(&attr, detach);
24099 if( status ) return status;
24100 status = pthread_create( &t, &attr, task, NULL );
24101 #if HAVE_PTHREADS < 7
24102 if( status < 0 ) status = errno;
24104 if( status ) return status;
24106 /* Draft 4 pthreads */
24107 status = pthread_create( &t, pthread_attr_default, task, NULL );
24108 if( status ) return errno;
24110 /* give thread a chance to complete */
24111 /* it should remain joinable and hence detachable */
24114 status = pthread_detach( &t );
24115 if( status ) return errno;
24118 #ifdef HAVE_LINUX_THREADS
24119 pthread_kill_other_threads_np();
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130 (eval $ac_link) 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_c_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest$ac_exeext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 ol_cv_pthread_lib_lpthreads=yes
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 ol_cv_pthread_lib_lpthreads=no
24157 rm -f conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24160 cat >conftest.$ac_ext <<_ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24167 /* pthread test headers */
24168 #include <pthread.h>
24169 #if HAVE_PTHREADS < 7
24173 #define NULL (void*)0
24176 static void *task(p)
24179 return (void *) (p == NULL);
24183 int main(argc, argv)
24188 /* pthread test function */
24189 #ifndef PTHREAD_CREATE_DETACHED
24190 #define PTHREAD_CREATE_DETACHED 1
24194 int detach = PTHREAD_CREATE_DETACHED;
24196 #if HAVE_PTHREADS > 4
24197 /* Final pthreads */
24198 pthread_attr_t attr;
24200 status = pthread_attr_init(&attr);
24201 if( status ) return status;
24203 #if HAVE_PTHREADS < 7
24204 status = pthread_attr_setdetachstate(&attr, &detach);
24205 if( status < 0 ) status = errno;
24207 status = pthread_attr_setdetachstate(&attr, detach);
24209 if( status ) return status;
24210 status = pthread_create( &t, &attr, task, NULL );
24211 #if HAVE_PTHREADS < 7
24212 if( status < 0 ) status = errno;
24214 if( status ) return status;
24216 /* Draft 4 pthreads */
24217 status = pthread_create( &t, pthread_attr_default, task, NULL );
24218 if( status ) return errno;
24220 /* give thread a chance to complete */
24221 /* it should remain joinable and hence detachable */
24224 status = pthread_detach( &t );
24225 if( status ) return errno;
24228 #ifdef HAVE_LINUX_THREADS
24229 pthread_kill_other_threads_np();
24237 rm -f conftest$ac_exeext
24238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24239 (eval $ac_link) 2>&5
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
24248 ol_cv_pthread_lib_lpthreads=yes
24250 echo "$as_me: program exited with status $ac_status" >&5
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24254 ( exit $ac_status )
24255 ol_cv_pthread_lib_lpthreads=no
24257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24264 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24265 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24267 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24268 ol_link_pthreads="-lpthreads"
24269 ol_link_threads=posix
24274 if test $ol_link_threads != no ; then
24275 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24277 save_CPPFLAGS="$CPPFLAGS"
24279 LIBS="$LTHREAD_LIBS $LIBS"
24284 for ac_func in sched_yield pthread_yield thr_yield
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24289 if eval "test \"\${$as_ac_var+set}\" = set"; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24300 #define $ac_func innocuous_$ac_func
24302 /* System header to define __stub macros and hopefully few prototypes,
24303 which can conflict with char $ac_func (); below.
24304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24305 <limits.h> exists even on freestanding compilers. */
24308 # include <limits.h>
24310 # include <assert.h>
24315 /* Override any gcc2 internal prototype to avoid an error. */
24320 /* We use char because int might match the return type of a gcc2
24321 builtin and then its argument prototype would still apply. */
24323 /* The GNU C library defines this for functions which it implements
24324 to always fail with ENOSYS. Some functions are actually named
24325 something starting with __ and the normal name is an alias. */
24326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24329 char (*f) () = $ac_func;
24338 return f != $ac_func;
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24345 (eval $ac_link) 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -z "$ac_c_werror_flag"
24353 || test ! -s conftest.err'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; }; then
24365 eval "$as_ac_var=yes"
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24370 eval "$as_ac_var=no"
24372 rm -f conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24377 if test `eval echo '${'$as_ac_var'}'` = yes; then
24378 cat >>confdefs.h <<_ACEOF
24379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24386 if test $ac_cv_func_sched_yield = no &&
24387 test $ac_cv_func_pthread_yield = no &&
24388 test $ac_cv_func_thr_yield = no ; then
24389 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24390 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24391 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24394 ac_check_lib_save_LIBS=$LIBS
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24403 /* Override any gcc2 internal prototype to avoid an error. */
24407 /* We use char because int might match the return type of a gcc2
24408 builtin and then its argument prototype would still apply. */
24409 char sched_yield ();
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420 (eval $ac_link) 2>conftest.er1
24422 grep -v '^ *+' conftest.er1 >conftest.err
24424 cat conftest.err >&5
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
24427 { ac_try='test -z "$ac_c_werror_flag"
24428 || test ! -s conftest.err'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 ac_cv_lib_rt_sched_yield=yes
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_cv_lib_rt_sched_yield=no
24447 rm -f conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
24449 LIBS=$ac_check_lib_save_LIBS
24451 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24452 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24453 if test $ac_cv_lib_rt_sched_yield = yes; then
24454 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_SCHED_YIELD 1
24460 ac_cv_func_sched_yield=yes
24462 ac_cv_func_sched_yield=no
24466 if test $ac_cv_func_sched_yield = no &&
24467 test $ac_cv_func_pthread_yield = no &&
24468 test "$ac_cv_func_thr_yield" = no ; then
24469 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24470 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24475 for ac_func in pthread_kill pthread_rwlock_destroy
24477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24478 echo "$as_me:$LINENO: checking for $ac_func" >&5
24479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24480 if eval "test \"\${$as_ac_var+set}\" = set"; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24491 #define $ac_func innocuous_$ac_func
24493 /* System header to define __stub macros and hopefully few prototypes,
24494 which can conflict with char $ac_func (); below.
24495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496 <limits.h> exists even on freestanding compilers. */
24499 # include <limits.h>
24501 # include <assert.h>
24506 /* Override any gcc2 internal prototype to avoid an error. */
24511 /* We use char because int might match the return type of a gcc2
24512 builtin and then its argument prototype would still apply. */
24514 /* The GNU C library defines this for functions which it implements
24515 to always fail with ENOSYS. Some functions are actually named
24516 something starting with __ and the normal name is an alias. */
24517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24520 char (*f) () = $ac_func;
24529 return f != $ac_func;
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536 (eval $ac_link) 2>conftest.er1
24538 grep -v '^ *+' conftest.er1 >conftest.err
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } &&
24543 { ac_try='test -z "$ac_c_werror_flag"
24544 || test ! -s conftest.err'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; } &&
24550 { ac_try='test -s conftest$ac_exeext'
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; }; then
24556 eval "$as_ac_var=yes"
24558 echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24561 eval "$as_ac_var=no"
24563 rm -f conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
24566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24568 if test `eval echo '${'$as_ac_var'}'` = yes; then
24569 cat >>confdefs.h <<_ACEOF
24570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24577 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24578 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24579 if test "${ol_cv_func_pthread_detach+set}" = set; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 cat >conftest.$ac_ext <<_ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h. */
24590 #include <pthread.h>
24592 #define NULL (void*)0
24598 pthread_detach(NULL);
24603 rm -f conftest.$ac_objext conftest$ac_exeext
24604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24605 (eval $ac_link) 2>conftest.er1
24607 grep -v '^ *+' conftest.er1 >conftest.err
24609 cat conftest.err >&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); } &&
24612 { ac_try='test -z "$ac_c_werror_flag"
24613 || test ! -s conftest.err'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; } &&
24619 { ac_try='test -s conftest$ac_exeext'
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; }; then
24625 ol_cv_func_pthread_detach=yes
24627 echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24630 ol_cv_func_pthread_detach=no
24632 rm -f conftest.err conftest.$ac_objext \
24633 conftest$ac_exeext conftest.$ac_ext
24636 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24637 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24639 if test $ol_cv_func_pthread_detach = no ; then
24640 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24641 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24642 { (exit 1); exit 1; }; }
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_PTHREAD_DETACH 1
24656 pthread_setconcurrency \
24657 pthread_getconcurrency \
24658 thr_setconcurrency \
24659 thr_getconcurrency \
24662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24663 echo "$as_me:$LINENO: checking for $ac_func" >&5
24664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24665 if eval "test \"\${$as_ac_var+set}\" = set"; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 cat >conftest.$ac_ext <<_ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h. */
24674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24676 #define $ac_func innocuous_$ac_func
24678 /* System header to define __stub macros and hopefully few prototypes,
24679 which can conflict with char $ac_func (); below.
24680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24681 <limits.h> exists even on freestanding compilers. */
24684 # include <limits.h>
24686 # include <assert.h>
24691 /* Override any gcc2 internal prototype to avoid an error. */
24696 /* We use char because int might match the return type of a gcc2
24697 builtin and then its argument prototype would still apply. */
24699 /* The GNU C library defines this for functions which it implements
24700 to always fail with ENOSYS. Some functions are actually named
24701 something starting with __ and the normal name is an alias. */
24702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24705 char (*f) () = $ac_func;
24714 return f != $ac_func;
24719 rm -f conftest.$ac_objext conftest$ac_exeext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721 (eval $ac_link) 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag"
24729 || test ! -s conftest.err'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest$ac_exeext'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24741 eval "$as_ac_var=yes"
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 eval "$as_ac_var=no"
24748 rm -f conftest.err conftest.$ac_objext \
24749 conftest$ac_exeext conftest.$ac_ext
24751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24753 if test `eval echo '${'$as_ac_var'}'` = yes; then
24754 cat >>confdefs.h <<_ACEOF
24755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24764 for ac_func in pthread_kill_other_threads_np
24766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24767 echo "$as_me:$LINENO: checking for $ac_func" >&5
24768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24769 if eval "test \"\${$as_ac_var+set}\" = set"; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24780 #define $ac_func innocuous_$ac_func
24782 /* System header to define __stub macros and hopefully few prototypes,
24783 which can conflict with char $ac_func (); below.
24784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24785 <limits.h> exists even on freestanding compilers. */
24788 # include <limits.h>
24790 # include <assert.h>
24795 /* Override any gcc2 internal prototype to avoid an error. */
24800 /* We use char because int might match the return type of a gcc2
24801 builtin and then its argument prototype would still apply. */
24803 /* The GNU C library defines this for functions which it implements
24804 to always fail with ENOSYS. Some functions are actually named
24805 something starting with __ and the normal name is an alias. */
24806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24809 char (*f) () = $ac_func;
24818 return f != $ac_func;
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825 (eval $ac_link) 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
24832 { ac_try='test -z "$ac_c_werror_flag"
24833 || test ! -s conftest.err'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } &&
24839 { ac_try='test -s conftest$ac_exeext'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 eval "$as_ac_var=yes"
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 eval "$as_ac_var=no"
24852 rm -f conftest.err conftest.$ac_objext \
24853 conftest$ac_exeext conftest.$ac_ext
24855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24857 if test `eval echo '${'$as_ac_var'}'` = yes; then
24858 cat >>confdefs.h <<_ACEOF
24859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24865 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24866 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24867 if test "${ol_cv_sys_linux_threads+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24872 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24873 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24878 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24879 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24880 if test "${ol_cv_linux_threads+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 if test $ol_cv_header_linux_threads = yes &&
24885 test $ol_cv_sys_linux_threads = yes; then
24886 ol_cv_linux_threads=yes
24887 elif test $ol_cv_header_linux_threads = no &&
24888 test $ol_cv_sys_linux_threads = no; then
24889 ol_cv_linux_threads=no
24891 ol_cv_linux_threads=error
24895 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24896 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24899 if test $ol_cv_linux_threads = error; then
24900 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24901 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24902 { (exit 1); exit 1; }; };
24905 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24906 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24907 if test "${ol_cv_pthread_create_works+set}" = set; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 if test "$cross_compiling" = yes; then
24912 ol_cv_pthread_create_works=yes
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24921 /* pthread test headers */
24922 #include <pthread.h>
24923 #if HAVE_PTHREADS < 7
24927 #define NULL (void*)0
24930 static void *task(p)
24933 return (void *) (p == NULL);
24937 int main(argc, argv)
24942 /* pthread test function */
24943 #ifndef PTHREAD_CREATE_DETACHED
24944 #define PTHREAD_CREATE_DETACHED 1
24948 int detach = PTHREAD_CREATE_DETACHED;
24950 #if HAVE_PTHREADS > 4
24951 /* Final pthreads */
24952 pthread_attr_t attr;
24954 status = pthread_attr_init(&attr);
24955 if( status ) return status;
24957 #if HAVE_PTHREADS < 7
24958 status = pthread_attr_setdetachstate(&attr, &detach);
24959 if( status < 0 ) status = errno;
24961 status = pthread_attr_setdetachstate(&attr, detach);
24963 if( status ) return status;
24964 status = pthread_create( &t, &attr, task, NULL );
24965 #if HAVE_PTHREADS < 7
24966 if( status < 0 ) status = errno;
24968 if( status ) return status;
24970 /* Draft 4 pthreads */
24971 status = pthread_create( &t, pthread_attr_default, task, NULL );
24972 if( status ) return errno;
24974 /* give thread a chance to complete */
24975 /* it should remain joinable and hence detachable */
24978 status = pthread_detach( &t );
24979 if( status ) return errno;
24982 #ifdef HAVE_LINUX_THREADS
24983 pthread_kill_other_threads_np();
24991 rm -f conftest$ac_exeext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24993 (eval $ac_link) 2>&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
25002 ol_cv_pthread_create_works=yes
25004 echo "$as_me: program exited with status $ac_status" >&5
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 ( exit $ac_status )
25009 ol_cv_pthread_create_works=no
25011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25014 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25015 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25017 if test $ol_cv_pthread_create_works = no ; then
25018 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25019 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25020 { (exit 1); exit 1; }; }
25023 ol_replace_broken_yield=no
25025 if test $ol_replace_broken_yield = yes ; then
25027 cat >>confdefs.h <<\_ACEOF
25028 #define REPLACE_BROKEN_YIELD 1
25033 if test $ol_with_yielding_select = auto ; then
25034 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25035 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25036 if test "${ol_cv_pthread_select_yields+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25040 if test "$cross_compiling" = yes; then
25041 ol_cv_pthread_select_yields=cross
25043 cat >conftest.$ac_ext <<_ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h. */
25050 #include <sys/types.h>
25051 #include <sys/time.h>
25052 #include <unistd.h>
25053 #include <pthread.h>
25055 #define NULL (void*) 0
25058 static int fildes[2];
25060 static void *task(p)
25072 FD_SET(fildes[0], &rfds);
25074 /* we're not interested in any fds */
25075 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25082 exit(0); /* if we exit here, the select blocked the whole process */
25085 int main(argc, argv)
25091 /* create a pipe to select */
25092 if(pipe(&fildes[0])) {
25097 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25098 (void) pthread_setconcurrency(2);
25100 #ifdef HAVE_THR_SETCONCURRENCY
25101 /* Set Solaris LWP concurrency to 2 */
25102 thr_setconcurrency(2);
25106 #if HAVE_PTHREADS < 6
25107 pthread_create(&t, pthread_attr_default, task, NULL);
25109 pthread_create(&t, NULL, task, NULL);
25112 /* make sure task runs first */
25115 #elif defined( HAVE_SCHED_YIELD )
25117 #elif defined( HAVE_PTHREAD_YIELD )
25124 rm -f conftest$ac_exeext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126 (eval $ac_link) 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ol_cv_pthread_select_yields=no
25137 echo "$as_me: program exited with status $ac_status" >&5
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ( exit $ac_status )
25142 ol_cv_pthread_select_yields=yes
25144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25147 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25148 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25150 if test $ol_cv_pthread_select_yields = cross ; then
25151 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25152 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25153 { (exit 1); exit 1; }; }
25156 if test $ol_cv_pthread_select_yields = yes ; then
25157 ol_with_yielding_select=yes
25161 CPPFLAGS="$save_CPPFLAGS"
25164 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25165 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25166 { (exit 1); exit 1; }; }
25170 if test $ol_with_threads = posix ; then
25171 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25172 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25173 { (exit 1); exit 1; }; }
25178 case $ol_with_threads in auto | yes | mach)
25182 for ac_header in mach/cthreads.h cthreads.h
25184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25186 echo "$as_me:$LINENO: checking for $ac_header" >&5
25187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25194 # Is the header compilable?
25195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25197 cat >conftest.$ac_ext <<_ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25203 $ac_includes_default
25204 #include <$ac_header>
25206 rm -f conftest.$ac_objext
25207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25208 (eval $ac_compile) 2>conftest.er1
25210 grep -v '^ *+' conftest.er1 >conftest.err
25212 cat conftest.err >&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } &&
25215 { ac_try='test -z "$ac_c_werror_flag"
25216 || test ! -s conftest.err'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; } &&
25222 { ac_try='test -s conftest.$ac_objext'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 ac_header_compiler=yes
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 ac_header_compiler=no
25235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25237 echo "${ECHO_T}$ac_header_compiler" >&6
25239 # Is the header present?
25240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248 #include <$ac_header>
25250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } >/dev/null; then
25258 if test -s conftest.err; then
25259 ac_cpp_err=$ac_c_preproc_warn_flag
25260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25267 if test -z "$ac_cpp_err"; then
25268 ac_header_preproc=yes
25270 echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25273 ac_header_preproc=no
25275 rm -f conftest.err conftest.$ac_ext
25276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25277 echo "${ECHO_T}$ac_header_preproc" >&6
25279 # So? What about this header?
25280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25286 ac_header_preproc=yes
25289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25303 ## --------------------------------------------- ##
25304 ## Report this to <http://www.openldap.org/its/> ##
25305 ## --------------------------------------------- ##
25308 sed "s/^/$as_me: WARNING: /" >&2
25311 echo "$as_me:$LINENO: checking for $ac_header" >&5
25312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 eval "$as_ac_Header=\$ac_header_preproc"
25318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25323 cat >>confdefs.h <<_ACEOF
25324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25331 if test $ac_cv_header_mach_cthreads_h = yes ; then
25332 ol_with_threads=found
25334 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25335 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25336 if test "${ac_cv_func_cthread_fork+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25345 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25347 #define cthread_fork innocuous_cthread_fork
25349 /* System header to define __stub macros and hopefully few prototypes,
25350 which can conflict with char cthread_fork (); below.
25351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25352 <limits.h> exists even on freestanding compilers. */
25355 # include <limits.h>
25357 # include <assert.h>
25360 #undef cthread_fork
25362 /* Override any gcc2 internal prototype to avoid an error. */
25367 /* We use char because int might match the return type of a gcc2
25368 builtin and then its argument prototype would still apply. */
25369 char cthread_fork ();
25370 /* The GNU C library defines this for functions which it implements
25371 to always fail with ENOSYS. Some functions are actually named
25372 something starting with __ and the normal name is an alias. */
25373 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25376 char (*f) () = cthread_fork;
25385 return f != cthread_fork;
25390 rm -f conftest.$ac_objext conftest$ac_exeext
25391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25392 (eval $ac_link) 2>conftest.er1
25394 grep -v '^ *+' conftest.er1 >conftest.err
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } &&
25399 { ac_try='test -z "$ac_c_werror_flag"
25400 || test ! -s conftest.err'
25401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25402 (eval $ac_try) 2>&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; } &&
25406 { ac_try='test -s conftest$ac_exeext'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; }; then
25412 ac_cv_func_cthread_fork=yes
25414 echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25417 ac_cv_func_cthread_fork=no
25419 rm -f conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
25422 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25423 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25424 if test $ac_cv_func_cthread_fork = yes; then
25425 ol_link_threads=yes
25429 if test $ol_link_threads = no ; then
25430 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25431 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25432 if test "${ol_cv_cthread_all_load+set}" = set; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 LIBS="-all_load $LIBS"
25438 cat >conftest.$ac_ext <<_ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h. */
25444 #include <mach/cthreads.h>
25449 cthread_fork((void *)0, (void *)0);
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457 (eval $ac_link) 2>conftest.er1
25459 grep -v '^ *+' conftest.er1 >conftest.err
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } &&
25464 { ac_try='test -z "$ac_c_werror_flag"
25465 || test ! -s conftest.err'
25466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467 (eval $ac_try) 2>&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); }; } &&
25471 { ac_try='test -s conftest$ac_exeext'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; }; then
25477 ol_cv_cthread_all_load=yes
25479 echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ol_cv_cthread_all_load=no
25484 rm -f conftest.err conftest.$ac_objext \
25485 conftest$ac_exeext conftest.$ac_ext
25489 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25490 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25492 if test $ol_cv_cthread_all_load = yes ; then
25493 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25494 ol_link_threads=mach
25495 ol_with_threads=found
25499 elif test $ac_cv_header_cthreads_h = yes ; then
25501 ol_with_threads=found
25504 LIBS="$LIBS -lthreads"
25505 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25506 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25507 if test "${ac_cv_func_cthread_fork+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25518 #define cthread_fork innocuous_cthread_fork
25520 /* System header to define __stub macros and hopefully few prototypes,
25521 which can conflict with char cthread_fork (); below.
25522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25523 <limits.h> exists even on freestanding compilers. */
25526 # include <limits.h>
25528 # include <assert.h>
25531 #undef cthread_fork
25533 /* Override any gcc2 internal prototype to avoid an error. */
25538 /* We use char because int might match the return type of a gcc2
25539 builtin and then its argument prototype would still apply. */
25540 char cthread_fork ();
25541 /* The GNU C library defines this for functions which it implements
25542 to always fail with ENOSYS. Some functions are actually named
25543 something starting with __ and the normal name is an alias. */
25544 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25547 char (*f) () = cthread_fork;
25556 return f != cthread_fork;
25561 rm -f conftest.$ac_objext conftest$ac_exeext
25562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25563 (eval $ac_link) 2>conftest.er1
25565 grep -v '^ *+' conftest.er1 >conftest.err
25567 cat conftest.err >&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } &&
25570 { ac_try='test -z "$ac_c_werror_flag"
25571 || test ! -s conftest.err'
25572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; } &&
25577 { ac_try='test -s conftest$ac_exeext'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; }; then
25583 ac_cv_func_cthread_fork=yes
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_cv_func_cthread_fork=no
25590 rm -f conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
25593 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25594 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25595 if test $ac_cv_func_cthread_fork = yes; then
25596 ol_link_threads=yes
25601 if test $ol_link_threads = yes ; then
25602 LTHREAD_LIBS="-lthreads"
25603 ol_link_threads=mach
25604 ol_with_threads=found
25606 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25607 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25608 { (exit 1); exit 1; }; }
25611 elif test $ol_with_threads = mach ; then
25612 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25613 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25614 { (exit 1); exit 1; }; }
25617 if test $ol_link_threads = mach ; then
25619 cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_MACH_CTHREADS 1
25623 elif test $ol_with_threads = found ; then
25624 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25625 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25626 { (exit 1); exit 1; }; }
25631 case $ol_with_threads in auto | yes | pth)
25634 for ac_header in pth.h
25636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638 echo "$as_me:$LINENO: checking for $ac_header" >&5
25639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25646 # Is the header compilable?
25647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h. */
25655 $ac_includes_default
25656 #include <$ac_header>
25658 rm -f conftest.$ac_objext
25659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660 (eval $ac_compile) 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } &&
25667 { ac_try='test -z "$ac_c_werror_flag"
25668 || test ! -s conftest.err'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; } &&
25674 { ac_try='test -s conftest.$ac_objext'
25675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676 (eval $ac_try) 2>&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); }; }; then
25680 ac_header_compiler=yes
25682 echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25685 ac_header_compiler=no
25687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25689 echo "${ECHO_T}$ac_header_compiler" >&6
25691 # Is the header present?
25692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25694 cat >conftest.$ac_ext <<_ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 #include <$ac_header>
25702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25705 grep -v '^ *+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } >/dev/null; then
25710 if test -s conftest.err; then
25711 ac_cpp_err=$ac_c_preproc_warn_flag
25712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25719 if test -z "$ac_cpp_err"; then
25720 ac_header_preproc=yes
25722 echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 ac_header_preproc=no
25727 rm -f conftest.err conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25729 echo "${ECHO_T}$ac_header_preproc" >&6
25731 # So? What about this header?
25732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25738 ac_header_preproc=yes
25741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25755 ## --------------------------------------------- ##
25756 ## Report this to <http://www.openldap.org/its/> ##
25757 ## --------------------------------------------- ##
25760 sed "s/^/$as_me: WARNING: /" >&2
25763 echo "$as_me:$LINENO: checking for $ac_header" >&5
25764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
25768 eval "$as_ac_Header=\$ac_header_preproc"
25770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25775 cat >>confdefs.h <<_ACEOF
25776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25784 if test $ac_cv_header_pth_h = yes ; then
25785 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25786 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25787 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25790 ac_check_lib_save_LIBS=$LIBS
25792 cat >conftest.$ac_ext <<_ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25799 /* Override any gcc2 internal prototype to avoid an error. */
25803 /* We use char because int might match the return type of a gcc2
25804 builtin and then its argument prototype would still apply. */
25805 char pth_version ();
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25816 (eval $ac_link) 2>conftest.er1
25818 grep -v '^ *+' conftest.er1 >conftest.err
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } &&
25823 { ac_try='test -z "$ac_c_werror_flag"
25824 || test ! -s conftest.err'
25825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826 (eval $ac_try) 2>&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); }; } &&
25830 { ac_try='test -s conftest$ac_exeext'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 ac_cv_lib_pth_pth_version=yes
25838 echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25841 ac_cv_lib_pth_pth_version=no
25843 rm -f conftest.err conftest.$ac_objext \
25844 conftest$ac_exeext conftest.$ac_ext
25845 LIBS=$ac_check_lib_save_LIBS
25847 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25848 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25849 if test $ac_cv_lib_pth_pth_version = yes; then
25856 if test $have_pth = yes ; then
25858 cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_GNU_PTH 1
25862 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25863 ol_link_threads=pth
25864 ol_with_threads=found
25866 if test $ol_with_yielding_select = auto ; then
25867 ol_with_yielding_select=yes
25874 case $ol_with_threads in auto | yes | lwp)
25878 for ac_header in thread.h synch.h
25880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25882 echo "$as_me:$LINENO: checking for $ac_header" >&5
25883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25885 echo $ECHO_N "(cached) $ECHO_C" >&6
25887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25890 # Is the header compilable?
25891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 $ac_includes_default
25900 #include <$ac_header>
25902 rm -f conftest.$ac_objext
25903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25904 (eval $ac_compile) 2>conftest.er1
25906 grep -v '^ *+' conftest.er1 >conftest.err
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
25911 { ac_try='test -z "$ac_c_werror_flag"
25912 || test ! -s conftest.err'
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; } &&
25918 { ac_try='test -s conftest.$ac_objext'
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; }; then
25924 ac_header_compiler=yes
25926 echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25929 ac_header_compiler=no
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25933 echo "${ECHO_T}$ac_header_compiler" >&6
25935 # Is the header present?
25936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25938 cat >conftest.$ac_ext <<_ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h. */
25944 #include <$ac_header>
25946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25949 grep -v '^ *+' conftest.er1 >conftest.err
25951 cat conftest.err >&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } >/dev/null; then
25954 if test -s conftest.err; then
25955 ac_cpp_err=$ac_c_preproc_warn_flag
25956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25963 if test -z "$ac_cpp_err"; then
25964 ac_header_preproc=yes
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 ac_header_preproc=no
25971 rm -f conftest.err conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25973 echo "${ECHO_T}$ac_header_preproc" >&6
25975 # So? What about this header?
25976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25982 ac_header_preproc=yes
25985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25999 ## --------------------------------------------- ##
26000 ## Report this to <http://www.openldap.org/its/> ##
26001 ## --------------------------------------------- ##
26004 sed "s/^/$as_me: WARNING: /" >&2
26007 echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 eval "$as_ac_Header=\$ac_header_preproc"
26014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26019 cat >>confdefs.h <<_ACEOF
26020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26027 if test $ac_cv_header_thread_h = yes &&
26028 test $ac_cv_header_synch_h = yes ; then
26029 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26030 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26031 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26032 echo $ECHO_N "(cached) $ECHO_C" >&6
26034 ac_check_lib_save_LIBS=$LIBS
26035 LIBS="-lthread $LIBS"
26036 cat >conftest.$ac_ext <<_ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26043 /* Override any gcc2 internal prototype to avoid an error. */
26047 /* We use char because int might match the return type of a gcc2
26048 builtin and then its argument prototype would still apply. */
26049 char thr_create ();
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26060 (eval $ac_link) 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
26067 { ac_try='test -z "$ac_c_werror_flag"
26068 || test ! -s conftest.err'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; } &&
26074 { ac_try='test -s conftest$ac_exeext'
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; }; then
26080 ac_cv_lib_thread_thr_create=yes
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26085 ac_cv_lib_thread_thr_create=no
26087 rm -f conftest.err conftest.$ac_objext \
26088 conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26091 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26092 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26093 if test $ac_cv_lib_thread_thr_create = yes; then
26100 if test $have_thr = yes ; then
26102 cat >>confdefs.h <<\_ACEOF
26106 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26107 ol_link_threads=thr
26109 if test $ol_with_yielding_select = auto ; then
26110 ol_with_yielding_select=yes
26116 thr_setconcurrency \
26117 thr_getconcurrency \
26120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26121 echo "$as_me:$LINENO: checking for $ac_func" >&5
26122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26123 if eval "test \"\${$as_ac_var+set}\" = set"; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26134 #define $ac_func innocuous_$ac_func
26136 /* System header to define __stub macros and hopefully few prototypes,
26137 which can conflict with char $ac_func (); below.
26138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26139 <limits.h> exists even on freestanding compilers. */
26142 # include <limits.h>
26144 # include <assert.h>
26149 /* Override any gcc2 internal prototype to avoid an error. */
26154 /* We use char because int might match the return type of a gcc2
26155 builtin and then its argument prototype would still apply. */
26157 /* The GNU C library defines this for functions which it implements
26158 to always fail with ENOSYS. Some functions are actually named
26159 something starting with __ and the normal name is an alias. */
26160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26163 char (*f) () = $ac_func;
26172 return f != $ac_func;
26177 rm -f conftest.$ac_objext conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179 (eval $ac_link) 2>conftest.er1
26181 grep -v '^ *+' conftest.er1 >conftest.err
26183 cat conftest.err >&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } &&
26186 { ac_try='test -z "$ac_c_werror_flag"
26187 || test ! -s conftest.err'
26188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189 (eval $ac_try) 2>&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; } &&
26193 { ac_try='test -s conftest$ac_exeext'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199 eval "$as_ac_var=yes"
26201 echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 eval "$as_ac_var=no"
26206 rm -f conftest.err conftest.$ac_objext \
26207 conftest$ac_exeext conftest.$ac_ext
26209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26211 if test `eval echo '${'$as_ac_var'}'` = yes; then
26212 cat >>confdefs.h <<_ACEOF
26213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26223 for ac_header in lwp/lwp.h
26225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26227 echo "$as_me:$LINENO: checking for $ac_header" >&5
26228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26235 # Is the header compilable?
26236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26238 cat >conftest.$ac_ext <<_ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h. */
26244 $ac_includes_default
26245 #include <$ac_header>
26247 rm -f conftest.$ac_objext
26248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26249 (eval $ac_compile) 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
26256 { ac_try='test -z "$ac_c_werror_flag"
26257 || test ! -s conftest.err'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; } &&
26263 { ac_try='test -s conftest.$ac_objext'
26264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265 (eval $ac_try) 2>&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); }; }; then
26269 ac_header_compiler=yes
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 ac_header_compiler=no
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26278 echo "${ECHO_T}$ac_header_compiler" >&6
26280 # Is the header present?
26281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26289 #include <$ac_header>
26291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26294 grep -v '^ *+' conftest.er1 >conftest.err
26296 cat conftest.err >&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); } >/dev/null; then
26299 if test -s conftest.err; then
26300 ac_cpp_err=$ac_c_preproc_warn_flag
26301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26308 if test -z "$ac_cpp_err"; then
26309 ac_header_preproc=yes
26311 echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26314 ac_header_preproc=no
26316 rm -f conftest.err conftest.$ac_ext
26317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26318 echo "${ECHO_T}$ac_header_preproc" >&6
26320 # So? What about this header?
26321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26327 ac_header_preproc=yes
26330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26344 ## --------------------------------------------- ##
26345 ## Report this to <http://www.openldap.org/its/> ##
26346 ## --------------------------------------------- ##
26349 sed "s/^/$as_me: WARNING: /" >&2
26352 echo "$as_me:$LINENO: checking for $ac_header" >&5
26353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo $ECHO_N "(cached) $ECHO_C" >&6
26357 eval "$as_ac_Header=\$ac_header_preproc"
26359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26364 cat >>confdefs.h <<_ACEOF
26365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26372 if test $ac_cv_header_lwp_lwp_h = yes ; then
26373 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26374 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26375 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26378 ac_check_lib_save_LIBS=$LIBS
26380 cat >conftest.$ac_ext <<_ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h. */
26387 /* Override any gcc2 internal prototype to avoid an error. */
26391 /* We use char because int might match the return type of a gcc2
26392 builtin and then its argument prototype would still apply. */
26393 char lwp_create ();
26402 rm -f conftest.$ac_objext conftest$ac_exeext
26403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26404 (eval $ac_link) 2>conftest.er1
26406 grep -v '^ *+' conftest.er1 >conftest.err
26408 cat conftest.err >&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); } &&
26411 { ac_try='test -z "$ac_c_werror_flag"
26412 || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest$ac_exeext'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 ac_cv_lib_lwp_lwp_create=yes
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 ac_cv_lib_lwp_lwp_create=no
26431 rm -f conftest.err conftest.$ac_objext \
26432 conftest$ac_exeext conftest.$ac_ext
26433 LIBS=$ac_check_lib_save_LIBS
26435 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26436 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26437 if test $ac_cv_lib_lwp_lwp_create = yes; then
26444 if test $have_lwp = yes ; then
26446 cat >>confdefs.h <<\_ACEOF
26450 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26451 ol_link_threads=lwp
26453 if test $ol_with_yielding_select = auto ; then
26454 ol_with_yielding_select=no
26461 if test $ol_with_yielding_select = yes ; then
26463 cat >>confdefs.h <<\_ACEOF
26464 #define HAVE_YIELDING_SELECT 1
26469 if test $ol_with_threads = manual ; then
26470 ol_link_threads=yes
26472 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26473 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26477 for ac_header in pthread.h sched.h
26479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26481 echo "$as_me:$LINENO: checking for $ac_header" >&5
26482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26484 echo $ECHO_N "(cached) $ECHO_C" >&6
26486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489 # Is the header compilable?
26490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 $ac_includes_default
26499 #include <$ac_header>
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503 (eval $ac_compile) 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
26510 { ac_try='test -z "$ac_c_werror_flag"
26511 || test ! -s conftest.err'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest.$ac_objext'
26518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519 (eval $ac_try) 2>&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); }; }; then
26523 ac_header_compiler=yes
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_header_compiler=no
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26532 echo "${ECHO_T}$ac_header_compiler" >&6
26534 # Is the header present?
26535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 #include <$ac_header>
26545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26548 grep -v '^ *+' conftest.er1 >conftest.err
26550 cat conftest.err >&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } >/dev/null; then
26553 if test -s conftest.err; then
26554 ac_cpp_err=$ac_c_preproc_warn_flag
26555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26562 if test -z "$ac_cpp_err"; then
26563 ac_header_preproc=yes
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26568 ac_header_preproc=no
26570 rm -f conftest.err conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26572 echo "${ECHO_T}$ac_header_preproc" >&6
26574 # So? What about this header?
26575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26581 ac_header_preproc=yes
26584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26598 ## --------------------------------------------- ##
26599 ## Report this to <http://www.openldap.org/its/> ##
26600 ## --------------------------------------------- ##
26603 sed "s/^/$as_me: WARNING: /" >&2
26606 echo "$as_me:$LINENO: checking for $ac_header" >&5
26607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
26611 eval "$as_ac_Header=\$ac_header_preproc"
26613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26618 cat >>confdefs.h <<_ACEOF
26619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26628 for ac_func in sched_yield pthread_yield
26630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26631 echo "$as_me:$LINENO: checking for $ac_func" >&5
26632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_var+set}\" = set"; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 cat >conftest.$ac_ext <<_ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26644 #define $ac_func innocuous_$ac_func
26646 /* System header to define __stub macros and hopefully few prototypes,
26647 which can conflict with char $ac_func (); below.
26648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26649 <limits.h> exists even on freestanding compilers. */
26652 # include <limits.h>
26654 # include <assert.h>
26659 /* Override any gcc2 internal prototype to avoid an error. */
26664 /* We use char because int might match the return type of a gcc2
26665 builtin and then its argument prototype would still apply. */
26667 /* The GNU C library defines this for functions which it implements
26668 to always fail with ENOSYS. Some functions are actually named
26669 something starting with __ and the normal name is an alias. */
26670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26673 char (*f) () = $ac_func;
26682 return f != $ac_func;
26687 rm -f conftest.$ac_objext conftest$ac_exeext
26688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26689 (eval $ac_link) 2>conftest.er1
26691 grep -v '^ *+' conftest.er1 >conftest.err
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
26696 { ac_try='test -z "$ac_c_werror_flag"
26697 || test ! -s conftest.err'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; } &&
26703 { ac_try='test -s conftest$ac_exeext'
26704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705 (eval $ac_try) 2>&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); }; }; then
26709 eval "$as_ac_var=yes"
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 eval "$as_ac_var=no"
26716 rm -f conftest.err conftest.$ac_objext \
26717 conftest$ac_exeext conftest.$ac_ext
26719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26721 if test `eval echo '${'$as_ac_var'}'` = yes; then
26722 cat >>confdefs.h <<_ACEOF
26723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26730 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26731 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26732 if test "${ol_cv_header_linux_threads+set}" = set; then
26733 echo $ECHO_N "(cached) $ECHO_C" >&6
26735 cat >conftest.$ac_ext <<_ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26741 #include <pthread.h>
26743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26744 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26745 ol_cv_header_linux_threads=yes
26747 ol_cv_header_linux_threads=no
26753 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26754 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26755 if test $ol_cv_header_linux_threads = yes; then
26757 cat >>confdefs.h <<\_ACEOF
26758 #define HAVE_LINUX_THREADS 1
26765 for ac_header in mach/cthreads.h
26767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26769 echo "$as_me:$LINENO: checking for $ac_header" >&5
26770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26772 echo $ECHO_N "(cached) $ECHO_C" >&6
26774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26777 # Is the header compilable?
26778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 $ac_includes_default
26787 #include <$ac_header>
26789 rm -f conftest.$ac_objext
26790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26791 (eval $ac_compile) 2>conftest.er1
26793 grep -v '^ *+' conftest.er1 >conftest.err
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } &&
26798 { ac_try='test -z "$ac_c_werror_flag"
26799 || test ! -s conftest.err'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; } &&
26805 { ac_try='test -s conftest.$ac_objext'
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; }; then
26811 ac_header_compiler=yes
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 ac_header_compiler=no
26818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26820 echo "${ECHO_T}$ac_header_compiler" >&6
26822 # Is the header present?
26823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26825 cat >conftest.$ac_ext <<_ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h. */
26831 #include <$ac_header>
26833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26836 grep -v '^ *+' conftest.er1 >conftest.err
26838 cat conftest.err >&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); } >/dev/null; then
26841 if test -s conftest.err; then
26842 ac_cpp_err=$ac_c_preproc_warn_flag
26843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26850 if test -z "$ac_cpp_err"; then
26851 ac_header_preproc=yes
26853 echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 ac_header_preproc=no
26858 rm -f conftest.err conftest.$ac_ext
26859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26860 echo "${ECHO_T}$ac_header_preproc" >&6
26862 # So? What about this header?
26863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26869 ac_header_preproc=yes
26872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26886 ## --------------------------------------------- ##
26887 ## Report this to <http://www.openldap.org/its/> ##
26888 ## --------------------------------------------- ##
26891 sed "s/^/$as_me: WARNING: /" >&2
26894 echo "$as_me:$LINENO: checking for $ac_header" >&5
26895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26899 eval "$as_ac_Header=\$ac_header_preproc"
26901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26906 cat >>confdefs.h <<_ACEOF
26907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26915 for ac_header in lwp/lwp.h
26917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26919 echo "$as_me:$LINENO: checking for $ac_header" >&5
26920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26927 # Is the header compilable?
26928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26930 cat >conftest.$ac_ext <<_ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h. */
26936 $ac_includes_default
26937 #include <$ac_header>
26939 rm -f conftest.$ac_objext
26940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26941 (eval $ac_compile) 2>conftest.er1
26943 grep -v '^ *+' conftest.er1 >conftest.err
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } &&
26948 { ac_try='test -z "$ac_c_werror_flag"
26949 || test ! -s conftest.err'
26950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951 (eval $ac_try) 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; } &&
26955 { ac_try='test -s conftest.$ac_objext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 ac_header_compiler=yes
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26966 ac_header_compiler=no
26968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26970 echo "${ECHO_T}$ac_header_compiler" >&6
26972 # Is the header present?
26973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26975 cat >conftest.$ac_ext <<_ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h. */
26981 #include <$ac_header>
26983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26986 grep -v '^ *+' conftest.er1 >conftest.err
26988 cat conftest.err >&5
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); } >/dev/null; then
26991 if test -s conftest.err; then
26992 ac_cpp_err=$ac_c_preproc_warn_flag
26993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27000 if test -z "$ac_cpp_err"; then
27001 ac_header_preproc=yes
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27006 ac_header_preproc=no
27008 rm -f conftest.err conftest.$ac_ext
27009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27010 echo "${ECHO_T}$ac_header_preproc" >&6
27012 # So? What about this header?
27013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27019 ac_header_preproc=yes
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27036 ## --------------------------------------------- ##
27037 ## Report this to <http://www.openldap.org/its/> ##
27038 ## --------------------------------------------- ##
27041 sed "s/^/$as_me: WARNING: /" >&2
27044 echo "$as_me:$LINENO: checking for $ac_header" >&5
27045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 eval "$as_ac_Header=\$ac_header_preproc"
27051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27066 for ac_header in thread.h synch.h
27068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27070 echo "$as_me:$LINENO: checking for $ac_header" >&5
27071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27073 echo $ECHO_N "(cached) $ECHO_C" >&6
27075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27078 # Is the header compilable?
27079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 $ac_includes_default
27088 #include <$ac_header>
27090 rm -f conftest.$ac_objext
27091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27092 (eval $ac_compile) 2>conftest.er1
27094 grep -v '^ *+' conftest.er1 >conftest.err
27096 cat conftest.err >&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); } &&
27099 { ac_try='test -z "$ac_c_werror_flag"
27100 || test ! -s conftest.err'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; } &&
27106 { ac_try='test -s conftest.$ac_objext'
27107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108 (eval $ac_try) 2>&5
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); }; }; then
27112 ac_header_compiler=yes
27114 echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27117 ac_header_compiler=no
27119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27121 echo "${ECHO_T}$ac_header_compiler" >&6
27123 # Is the header present?
27124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27126 cat >conftest.$ac_ext <<_ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h. */
27132 #include <$ac_header>
27134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27137 grep -v '^ *+' conftest.er1 >conftest.err
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } >/dev/null; then
27142 if test -s conftest.err; then
27143 ac_cpp_err=$ac_c_preproc_warn_flag
27144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27151 if test -z "$ac_cpp_err"; then
27152 ac_header_preproc=yes
27154 echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27157 ac_header_preproc=no
27159 rm -f conftest.err conftest.$ac_ext
27160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27161 echo "${ECHO_T}$ac_header_preproc" >&6
27163 # So? What about this header?
27164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27170 ac_header_preproc=yes
27173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27187 ## --------------------------------------------- ##
27188 ## Report this to <http://www.openldap.org/its/> ##
27189 ## --------------------------------------------- ##
27192 sed "s/^/$as_me: WARNING: /" >&2
27195 echo "$as_me:$LINENO: checking for $ac_header" >&5
27196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27198 echo $ECHO_N "(cached) $ECHO_C" >&6
27200 eval "$as_ac_Header=\$ac_header_preproc"
27202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27207 cat >>confdefs.h <<_ACEOF
27208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27217 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27218 cat >>confdefs.h <<\_ACEOF
27219 #define REENTRANT 1
27222 cat >>confdefs.h <<\_ACEOF
27223 #define _REENTRANT 1
27226 cat >>confdefs.h <<\_ACEOF
27227 #define THREAD_SAFE 1
27230 cat >>confdefs.h <<\_ACEOF
27231 #define _THREAD_SAFE 1
27234 cat >>confdefs.h <<\_ACEOF
27235 #define THREADSAFE 1
27238 cat >>confdefs.h <<\_ACEOF
27239 #define _THREADSAFE 1
27242 cat >>confdefs.h <<\_ACEOF
27243 #define _SGI_MP_SOURCE 1
27247 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27248 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27249 if test "${ol_cv_errno_thread_specific+set}" = set; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27268 rm -f conftest.$ac_objext conftest$ac_exeext
27269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27270 (eval $ac_link) 2>conftest.er1
27272 grep -v '^ *+' conftest.er1 >conftest.err
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } &&
27277 { ac_try='test -z "$ac_c_werror_flag"
27278 || test ! -s conftest.err'
27279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280 (eval $ac_try) 2>&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; } &&
27284 { ac_try='test -s conftest$ac_exeext'
27285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27286 (eval $ac_try) 2>&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); }; }; then
27290 ol_cv_errno_thread_specific=yes
27292 echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27295 ol_cv_errno_thread_specific=no
27297 rm -f conftest.err conftest.$ac_objext \
27298 conftest$ac_exeext conftest.$ac_ext
27301 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27302 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27304 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27305 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27306 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 cat >conftest.$ac_ext <<_ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h. */
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27327 (eval $ac_link) 2>conftest.er1
27329 grep -v '^ *+' conftest.er1 >conftest.err
27331 cat conftest.err >&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
27334 { ac_try='test -z "$ac_c_werror_flag"
27335 || test ! -s conftest.err'
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; } &&
27341 { ac_try='test -s conftest$ac_exeext'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }; then
27347 ol_cv_h_errno_thread_specific=yes
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ol_cv_h_errno_thread_specific=no
27354 rm -f conftest.err conftest.$ac_objext \
27355 conftest$ac_exeext conftest.$ac_ext
27358 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27359 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27361 if test $ol_cv_errno_thread_specific != yes ||
27362 test $ol_cv_h_errno_thread_specific != yes ; then
27363 LIBS="$LTHREAD_LIBS $LIBS"
27369 if test $ol_link_threads = no ; then
27370 if test $ol_with_threads = yes ; then
27371 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27372 echo "$as_me: error: no suitable thread support" >&2;}
27373 { (exit 1); exit 1; }; }
27376 if test $ol_with_threads = auto ; then
27377 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27378 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27383 cat >>confdefs.h <<\_ACEOF
27384 #define NO_THREADS 1
27393 if test $ol_link_threads != no ; then
27395 cat >>confdefs.h <<\_ACEOF
27396 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27406 gethostbyname_r gethostbyaddr_r \
27409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27410 echo "$as_me:$LINENO: checking for $ac_func" >&5
27411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27412 if eval "test \"\${$as_ac_var+set}\" = set"; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 cat >conftest.$ac_ext <<_ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h. */
27421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27423 #define $ac_func innocuous_$ac_func
27425 /* System header to define __stub macros and hopefully few prototypes,
27426 which can conflict with char $ac_func (); below.
27427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27428 <limits.h> exists even on freestanding compilers. */
27431 # include <limits.h>
27433 # include <assert.h>
27438 /* Override any gcc2 internal prototype to avoid an error. */
27443 /* We use char because int might match the return type of a gcc2
27444 builtin and then its argument prototype would still apply. */
27446 /* The GNU C library defines this for functions which it implements
27447 to always fail with ENOSYS. Some functions are actually named
27448 something starting with __ and the normal name is an alias. */
27449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27452 char (*f) () = $ac_func;
27461 return f != $ac_func;
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27468 (eval $ac_link) 2>conftest.er1
27470 grep -v '^ *+' conftest.er1 >conftest.err
27472 cat conftest.err >&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } &&
27475 { ac_try='test -z "$ac_c_werror_flag"
27476 || test ! -s conftest.err'
27477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478 (eval $ac_try) 2>&5
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; } &&
27482 { ac_try='test -s conftest$ac_exeext'
27483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484 (eval $ac_try) 2>&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; }; then
27488 eval "$as_ac_var=yes"
27490 echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27493 eval "$as_ac_var=no"
27495 rm -f conftest.err conftest.$ac_objext \
27496 conftest$ac_exeext conftest.$ac_ext
27498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27500 if test `eval echo '${'$as_ac_var'}'` = yes; then
27501 cat >>confdefs.h <<_ACEOF
27502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27509 if test "$ac_cv_func_ctime_r" = no ; then
27510 ol_cv_func_ctime_r_nargs=0
27512 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27513 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27514 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27527 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27532 rm -f conftest.$ac_objext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27534 (eval $ac_compile) 2>conftest.er1
27536 grep -v '^ *+' conftest.er1 >conftest.err
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
27541 { ac_try='test -z "$ac_c_werror_flag"
27542 || test ! -s conftest.err'
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; } &&
27548 { ac_try='test -s conftest.$ac_objext'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ol_cv_func_ctime_r_nargs3=yes
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ol_cv_func_ctime_r_nargs3=no
27561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27563 cat >conftest.$ac_ext <<_ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h. */
27573 time_t ti; char *buffer; ctime_r(&ti,buffer);
27578 rm -f conftest.$ac_objext
27579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27580 (eval $ac_compile) 2>conftest.er1
27582 grep -v '^ *+' conftest.er1 >conftest.err
27584 cat conftest.err >&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); } &&
27587 { ac_try='test -z "$ac_c_werror_flag"
27588 || test ! -s conftest.err'
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; } &&
27594 { ac_try='test -s conftest.$ac_objext'
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 ol_cv_func_ctime_r_nargs2=yes
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 ol_cv_func_ctime_r_nargs2=no
27607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27609 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27610 test $ol_cv_func_ctime_r_nargs2 = no ; then
27612 ol_cv_func_ctime_r_nargs=3
27614 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27615 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27617 ol_cv_func_ctime_r_nargs=2
27620 ol_cv_func_ctime_r_nargs=0
27624 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27625 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27627 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27629 cat >>confdefs.h <<_ACEOF
27630 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27637 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27638 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27639 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27640 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 cat >conftest.$ac_ext <<_ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27649 #include <sys/types.h>
27650 #include <sys/socket.h>
27651 #include <netinet/in.h>
27653 #define BUFSIZE (sizeof(struct hostent)+10)
27657 struct hostent hent; char buffer[BUFSIZE];
27658 int bufsize=BUFSIZE;int h_errno;
27659 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27660 buffer, bufsize, &h_errno);
27665 rm -f conftest.$ac_objext
27666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27667 (eval $ac_compile) 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } &&
27674 { ac_try='test -z "$ac_c_werror_flag"
27675 || test ! -s conftest.err'
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest.$ac_objext'
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ol_cv_func_gethostbyname_r_nargs5=yes
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 ol_cv_func_gethostbyname_r_nargs5=no
27694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27696 cat >conftest.$ac_ext <<_ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h. */
27702 #include <sys/types.h>
27703 #include <sys/socket.h>
27704 #include <netinet/in.h>
27706 #define BUFSIZE (sizeof(struct hostent)+10)
27710 struct hostent hent;struct hostent *rhent;
27711 char buffer[BUFSIZE];
27712 int bufsize=BUFSIZE;int h_errno;
27713 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27719 rm -f conftest.$ac_objext
27720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27721 (eval $ac_compile) 2>conftest.er1
27723 grep -v '^ *+' conftest.er1 >conftest.err
27725 cat conftest.err >&5
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); } &&
27728 { ac_try='test -z "$ac_c_werror_flag"
27729 || test ! -s conftest.err'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; } &&
27735 { ac_try='test -s conftest.$ac_objext'
27736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737 (eval $ac_try) 2>&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; }; then
27741 ol_cv_func_gethostbyname_r_nargs6=yes
27743 echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27746 ol_cv_func_gethostbyname_r_nargs6=no
27748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27750 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27751 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27753 ol_cv_func_gethostbyname_r_nargs=5
27755 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27756 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27758 ol_cv_func_gethostbyname_r_nargs=6
27761 ol_cv_func_gethostbyname_r_nargs=0
27765 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27766 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27767 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27769 cat >>confdefs.h <<_ACEOF
27770 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27776 ol_cv_func_gethostbyname_r_nargs=0
27779 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27780 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27781 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27782 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27785 cat >conftest.$ac_ext <<_ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h. */
27791 #include <sys/types.h>
27792 #include <sys/socket.h>
27793 #include <netinet/in.h>
27795 #define BUFSIZE (sizeof(struct hostent)+10)
27799 struct hostent hent; char buffer[BUFSIZE];
27800 struct in_addr add;
27801 size_t alen=sizeof(struct in_addr);
27802 int bufsize=BUFSIZE;int h_errno;
27803 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27804 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27809 rm -f conftest.$ac_objext
27810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27811 (eval $ac_compile) 2>conftest.er1
27813 grep -v '^ *+' conftest.er1 >conftest.err
27815 cat conftest.err >&5
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); } &&
27818 { ac_try='test -z "$ac_c_werror_flag"
27819 || test ! -s conftest.err'
27820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821 (eval $ac_try) 2>&5
27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824 (exit $ac_status); }; } &&
27825 { ac_try='test -s conftest.$ac_objext'
27826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27827 (eval $ac_try) 2>&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); }; }; then
27831 ol_cv_func_gethostbyaddr_r_nargs7=yes
27833 echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27836 ol_cv_func_gethostbyaddr_r_nargs7=no
27838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27846 #include <sys/types.h>
27847 #include <sys/socket.h>
27848 #include <netinet/in.h>
27850 #define BUFSIZE (sizeof(struct hostent)+10)
27854 struct hostent hent;
27855 struct hostent *rhent; char buffer[BUFSIZE];
27856 struct in_addr add;
27857 size_t alen=sizeof(struct in_addr);
27858 int bufsize=BUFSIZE;int h_errno;
27859 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27860 alen, AF_INET, &hent, buffer, bufsize,
27866 rm -f conftest.$ac_objext
27867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27868 (eval $ac_compile) 2>conftest.er1
27870 grep -v '^ *+' conftest.er1 >conftest.err
27872 cat conftest.err >&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } &&
27875 { ac_try='test -z "$ac_c_werror_flag"
27876 || test ! -s conftest.err'
27877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27878 (eval $ac_try) 2>&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest.$ac_objext'
27883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884 (eval $ac_try) 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; }; then
27888 ol_cv_func_gethostbyaddr_r_nargs8=yes
27890 echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27893 ol_cv_func_gethostbyaddr_r_nargs8=no
27895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27897 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27898 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27900 ol_cv_func_gethostbyaddr_r_nargs=7
27902 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27903 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27905 ol_cv_func_gethostbyaddr_r_nargs=8
27908 ol_cv_func_gethostbyaddr_r_nargs=0
27912 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27913 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27914 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27916 cat >>confdefs.h <<_ACEOF
27917 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27923 ol_cv_func_gethostbyaddr_r_nargs=0
27928 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27929 ol_cv_berkeley_db=no
27931 for ac_header in db.h
27933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27935 echo "$as_me:$LINENO: checking for $ac_header" >&5
27936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27943 # Is the header compilable?
27944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27952 $ac_includes_default
27953 #include <$ac_header>
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957 (eval $ac_compile) 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } &&
27964 { ac_try='test -z "$ac_c_werror_flag"
27965 || test ! -s conftest.err'
27966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967 (eval $ac_try) 2>&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970 (exit $ac_status); }; } &&
27971 { ac_try='test -s conftest.$ac_objext'
27972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
27977 ac_header_compiler=yes
27979 echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27982 ac_header_compiler=no
27984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27986 echo "${ECHO_T}$ac_header_compiler" >&6
27988 # Is the header present?
27989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27991 cat >conftest.$ac_ext <<_ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
27997 #include <$ac_header>
27999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28002 grep -v '^ *+' conftest.er1 >conftest.err
28004 cat conftest.err >&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } >/dev/null; then
28007 if test -s conftest.err; then
28008 ac_cpp_err=$ac_c_preproc_warn_flag
28009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28016 if test -z "$ac_cpp_err"; then
28017 ac_header_preproc=yes
28019 echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28022 ac_header_preproc=no
28024 rm -f conftest.err conftest.$ac_ext
28025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28026 echo "${ECHO_T}$ac_header_preproc" >&6
28028 # So? What about this header?
28029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28035 ac_header_preproc=yes
28038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28052 ## --------------------------------------------- ##
28053 ## Report this to <http://www.openldap.org/its/> ##
28054 ## --------------------------------------------- ##
28057 sed "s/^/$as_me: WARNING: /" >&2
28060 echo "$as_me:$LINENO: checking for $ac_header" >&5
28061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 eval "$as_ac_Header=\$ac_header_preproc"
28067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28072 cat >>confdefs.h <<_ACEOF
28073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28080 if test $ac_cv_header_db_h = yes; then
28083 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28084 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28085 if test "${ol_cv_bdb_major+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28090 if test $ol_cv_bdb_major = 0 ; then
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28099 #ifndef DB_VERSION_MAJOR
28100 # define DB_VERSION_MAJOR 1
28102 #if DB_VERSION_MAJOR == 4
28107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28108 $EGREP "__db_version" >/dev/null 2>&1; then
28116 if test $ol_cv_bdb_major = 0 ; then
28117 cat >conftest.$ac_ext <<_ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h. */
28125 #ifndef DB_VERSION_MAJOR
28126 # define DB_VERSION_MAJOR 1
28128 #if DB_VERSION_MAJOR == 3
28133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28134 $EGREP "__db_version" >/dev/null 2>&1; then
28142 if test $ol_cv_bdb_major = 0 ; then
28143 cat >conftest.$ac_ext <<_ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28151 #ifndef DB_VERSION_MAJOR
28152 # define DB_VERSION_MAJOR 1
28154 #if DB_VERSION_MAJOR == 2
28159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28160 $EGREP "__db_version" >/dev/null 2>&1; then
28168 if test $ol_cv_bdb_major = 0 ; then
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28177 #ifndef DB_VERSION_MAJOR
28178 # define DB_VERSION_MAJOR 1
28180 #if DB_VERSION_MAJOR == 1
28185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28186 $EGREP "__db_version" >/dev/null 2>&1; then
28195 if test $ol_cv_bdb_major = 0 ; then
28196 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28197 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28198 { (exit 1); exit 1; }; }
28202 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28203 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28205 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28206 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28207 if test "${ol_cv_bdb_minor+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28212 if test $ol_cv_bdb_minor = 0 ; then
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28221 #ifndef DB_VERSION_MINOR
28222 # define DB_VERSION_MINOR 0
28224 #if DB_VERSION_MINOR == 9
28229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28230 $EGREP "__db_version" >/dev/null 2>&1; then
28238 if test $ol_cv_bdb_minor = 0 ; then
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28247 #ifndef DB_VERSION_MINOR
28248 # define DB_VERSION_MINOR 0
28250 #if DB_VERSION_MINOR == 8
28255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28256 $EGREP "__db_version" >/dev/null 2>&1; then
28264 if test $ol_cv_bdb_minor = 0 ; then
28265 cat >conftest.$ac_ext <<_ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28273 #ifndef DB_VERSION_MINOR
28274 # define DB_VERSION_MINOR 0
28276 #if DB_VERSION_MINOR == 7
28281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28282 $EGREP "__db_version" >/dev/null 2>&1; then
28290 if test $ol_cv_bdb_minor = 0 ; then
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28299 #ifndef DB_VERSION_MINOR
28300 # define DB_VERSION_MINOR 0
28302 #if DB_VERSION_MINOR == 6
28307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28308 $EGREP "__db_version" >/dev/null 2>&1; then
28316 if test $ol_cv_bdb_minor = 0 ; then
28317 cat >conftest.$ac_ext <<_ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28325 #ifndef DB_VERSION_MINOR
28326 # define DB_VERSION_MINOR 0
28328 #if DB_VERSION_MINOR == 5
28333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28334 $EGREP "__db_version" >/dev/null 2>&1; then
28342 if test $ol_cv_bdb_minor = 0 ; then
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28351 #ifndef DB_VERSION_MINOR
28352 # define DB_VERSION_MINOR 0
28354 #if DB_VERSION_MINOR == 4
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360 $EGREP "__db_version" >/dev/null 2>&1; then
28368 if test $ol_cv_bdb_minor = 0 ; then
28369 cat >conftest.$ac_ext <<_ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28377 #ifndef DB_VERSION_MINOR
28378 # define DB_VERSION_MINOR 0
28380 #if DB_VERSION_MINOR == 3
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386 $EGREP "__db_version" >/dev/null 2>&1; then
28394 if test $ol_cv_bdb_minor = 0 ; then
28395 cat >conftest.$ac_ext <<_ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28403 #ifndef DB_VERSION_MINOR
28404 # define DB_VERSION_MINOR 0
28406 #if DB_VERSION_MINOR == 2
28411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28412 $EGREP "__db_version" >/dev/null 2>&1; then
28420 if test $ol_cv_bdb_minor = 0 ; then
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28429 #ifndef DB_VERSION_MINOR
28430 # define DB_VERSION_MINOR 0
28432 #if DB_VERSION_MINOR == 1
28437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28438 $EGREP "__db_version" >/dev/null 2>&1; then
28448 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28449 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28451 if test $ol_cv_bdb_major = 4 ; then
28452 if test $ol_cv_bdb_minor = 4 ; then
28453 if test $ol_cv_lib_db = no ; then
28454 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28455 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28456 if test "${ol_cv_db_db44+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28462 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28464 cat >conftest.$ac_ext <<_ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h. */
28471 #ifdef HAVE_DB_185_H
28472 # include <db_185.h>
28477 #ifndef DB_VERSION_MAJOR
28478 # define DB_VERSION_MAJOR 1
28482 #define NULL ((void*)0)
28489 #if DB_VERSION_MAJOR > 1
28492 int major, minor, patch;
28494 version = db_version( &major, &minor, &patch );
28496 if( major != DB_VERSION_MAJOR ||
28497 minor < DB_VERSION_MINOR )
28499 printf("Berkeley DB version mismatch\n"
28500 "\theader: %s\n\tlibrary: %s\n",
28501 DB_VERSION_STRING, version);
28507 #if DB_VERSION_MAJOR > 2
28508 db_env_create( NULL, 0 );
28509 #elif DB_VERSION_MAJOR > 1
28510 db_appexit( NULL );
28512 (void) dbopen( NULL, 0, 0, 0, NULL);
28519 rm -f conftest.$ac_objext conftest$ac_exeext
28520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28521 (eval $ac_link) 2>conftest.er1
28523 grep -v '^ *+' conftest.er1 >conftest.err
28525 cat conftest.err >&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } &&
28528 { ac_try='test -z "$ac_c_werror_flag"
28529 || test ! -s conftest.err'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28548 rm -f conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28554 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28555 echo "${ECHO_T}$ol_cv_db_db44" >&6
28557 if test $ol_cv_db_db44 = yes ; then
28558 ol_cv_lib_db=-ldb44
28562 if test $ol_cv_lib_db = no ; then
28563 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28564 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28565 if test "${ol_cv_db_db_44+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28571 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28580 #ifdef HAVE_DB_185_H
28581 # include <db_185.h>
28586 #ifndef DB_VERSION_MAJOR
28587 # define DB_VERSION_MAJOR 1
28591 #define NULL ((void*)0)
28598 #if DB_VERSION_MAJOR > 1
28601 int major, minor, patch;
28603 version = db_version( &major, &minor, &patch );
28605 if( major != DB_VERSION_MAJOR ||
28606 minor < DB_VERSION_MINOR )
28608 printf("Berkeley DB version mismatch\n"
28609 "\theader: %s\n\tlibrary: %s\n",
28610 DB_VERSION_STRING, version);
28616 #if DB_VERSION_MAJOR > 2
28617 db_env_create( NULL, 0 );
28618 #elif DB_VERSION_MAJOR > 1
28619 db_appexit( NULL );
28621 (void) dbopen( NULL, 0, 0, 0, NULL);
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630 (eval $ac_link) 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest$ac_exeext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28657 rm -f conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext conftest.$ac_ext
28663 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28664 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28666 if test $ol_cv_db_db_44 = yes ; then
28667 ol_cv_lib_db=-ldb-44
28671 if test $ol_cv_lib_db = no ; then
28672 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28673 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28674 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28680 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28682 cat >conftest.$ac_ext <<_ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28689 #ifdef HAVE_DB_185_H
28690 # include <db_185.h>
28695 #ifndef DB_VERSION_MAJOR
28696 # define DB_VERSION_MAJOR 1
28700 #define NULL ((void*)0)
28707 #if DB_VERSION_MAJOR > 1
28710 int major, minor, patch;
28712 version = db_version( &major, &minor, &patch );
28714 if( major != DB_VERSION_MAJOR ||
28715 minor < DB_VERSION_MINOR )
28717 printf("Berkeley DB version mismatch\n"
28718 "\theader: %s\n\tlibrary: %s\n",
28719 DB_VERSION_STRING, version);
28725 #if DB_VERSION_MAJOR > 2
28726 db_env_create( NULL, 0 );
28727 #elif DB_VERSION_MAJOR > 1
28728 db_appexit( NULL );
28730 (void) dbopen( NULL, 0, 0, 0, NULL);
28737 rm -f conftest.$ac_objext conftest$ac_exeext
28738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28739 (eval $ac_link) 2>conftest.er1
28741 grep -v '^ *+' conftest.er1 >conftest.err
28743 cat conftest.err >&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
28746 { ac_try='test -z "$ac_c_werror_flag"
28747 || test ! -s conftest.err'
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; } &&
28753 { ac_try='test -s conftest$ac_exeext'
28754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 (eval $ac_try) 2>&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; }; then
28759 ol_cv_db_db_4_dot_4=yes
28761 echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28764 ol_cv_db_db_4_dot_4=no
28766 rm -f conftest.err conftest.$ac_objext \
28767 conftest$ac_exeext conftest.$ac_ext
28772 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28773 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28775 if test $ol_cv_db_db_4_dot_4 = yes ; then
28776 ol_cv_lib_db=-ldb-4.4
28780 if test $ol_cv_lib_db = no ; then
28781 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28782 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28783 if test "${ol_cv_db_db_4_4+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28791 cat >conftest.$ac_ext <<_ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h. */
28798 #ifdef HAVE_DB_185_H
28799 # include <db_185.h>
28804 #ifndef DB_VERSION_MAJOR
28805 # define DB_VERSION_MAJOR 1
28809 #define NULL ((void*)0)
28816 #if DB_VERSION_MAJOR > 1
28819 int major, minor, patch;
28821 version = db_version( &major, &minor, &patch );
28823 if( major != DB_VERSION_MAJOR ||
28824 minor < DB_VERSION_MINOR )
28826 printf("Berkeley DB version mismatch\n"
28827 "\theader: %s\n\tlibrary: %s\n",
28828 DB_VERSION_STRING, version);
28834 #if DB_VERSION_MAJOR > 2
28835 db_env_create( NULL, 0 );
28836 #elif DB_VERSION_MAJOR > 1
28837 db_appexit( NULL );
28839 (void) dbopen( NULL, 0, 0, 0, NULL);
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848 (eval $ac_link) 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_c_werror_flag"
28856 || test ! -s conftest.err'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest$ac_exeext'
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 ol_cv_db_db_4_4=yes
28870 echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28875 rm -f conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
28881 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28882 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28884 if test $ol_cv_db_db_4_4 = yes ; then
28885 ol_cv_lib_db=-ldb-4-4
28889 elif test $ol_cv_bdb_minor = 3 ; then
28890 if test $ol_cv_lib_db = no ; then
28891 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28892 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28893 if test "${ol_cv_db_db43+set}" = set; then
28894 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28901 cat >conftest.$ac_ext <<_ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h. */
28908 #ifdef HAVE_DB_185_H
28909 # include <db_185.h>
28914 #ifndef DB_VERSION_MAJOR
28915 # define DB_VERSION_MAJOR 1
28919 #define NULL ((void*)0)
28926 #if DB_VERSION_MAJOR > 1
28929 int major, minor, patch;
28931 version = db_version( &major, &minor, &patch );
28933 if( major != DB_VERSION_MAJOR ||
28934 minor < DB_VERSION_MINOR )
28936 printf("Berkeley DB version mismatch\n"
28937 "\theader: %s\n\tlibrary: %s\n",
28938 DB_VERSION_STRING, version);
28944 #if DB_VERSION_MAJOR > 2
28945 db_env_create( NULL, 0 );
28946 #elif DB_VERSION_MAJOR > 1
28947 db_appexit( NULL );
28949 (void) dbopen( NULL, 0, 0, 0, NULL);
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958 (eval $ac_link) 2>conftest.er1
28960 grep -v '^ *+' conftest.er1 >conftest.err
28962 cat conftest.err >&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } &&
28965 { ac_try='test -z "$ac_c_werror_flag"
28966 || test ! -s conftest.err'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; } &&
28972 { ac_try='test -s conftest$ac_exeext'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28980 echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28985 rm -f conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext conftest.$ac_ext
28991 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28992 echo "${ECHO_T}$ol_cv_db_db43" >&6
28994 if test $ol_cv_db_db43 = yes ; then
28995 ol_cv_lib_db=-ldb43
28999 if test $ol_cv_lib_db = no ; then
29000 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29001 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29002 if test "${ol_cv_db_db_43+set}" = set; then
29003 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29010 cat >conftest.$ac_ext <<_ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29017 #ifdef HAVE_DB_185_H
29018 # include <db_185.h>
29023 #ifndef DB_VERSION_MAJOR
29024 # define DB_VERSION_MAJOR 1
29028 #define NULL ((void*)0)
29035 #if DB_VERSION_MAJOR > 1
29038 int major, minor, patch;
29040 version = db_version( &major, &minor, &patch );
29042 if( major != DB_VERSION_MAJOR ||
29043 minor < DB_VERSION_MINOR )
29045 printf("Berkeley DB version mismatch\n"
29046 "\theader: %s\n\tlibrary: %s\n",
29047 DB_VERSION_STRING, version);
29053 #if DB_VERSION_MAJOR > 2
29054 db_env_create( NULL, 0 );
29055 #elif DB_VERSION_MAJOR > 1
29056 db_appexit( NULL );
29058 (void) dbopen( NULL, 0, 0, 0, NULL);
29065 rm -f conftest.$ac_objext conftest$ac_exeext
29066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29067 (eval $ac_link) 2>conftest.er1
29069 grep -v '^ *+' conftest.er1 >conftest.err
29071 cat conftest.err >&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); } &&
29074 { ac_try='test -z "$ac_c_werror_flag"
29075 || test ! -s conftest.err'
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; }; then
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29094 rm -f conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
29100 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29101 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29103 if test $ol_cv_db_db_43 = yes ; then
29104 ol_cv_lib_db=-ldb-43
29108 if test $ol_cv_lib_db = no ; then
29109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29110 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29111 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29126 #ifdef HAVE_DB_185_H
29127 # include <db_185.h>
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29137 #define NULL ((void*)0)
29144 #if DB_VERSION_MAJOR > 1
29147 int major, minor, patch;
29149 version = db_version( &major, &minor, &patch );
29151 if( major != DB_VERSION_MAJOR ||
29152 minor < DB_VERSION_MINOR )
29154 printf("Berkeley DB version mismatch\n"
29155 "\theader: %s\n\tlibrary: %s\n",
29156 DB_VERSION_STRING, version);
29162 #if DB_VERSION_MAJOR > 2
29163 db_env_create( NULL, 0 );
29164 #elif DB_VERSION_MAJOR > 1
29165 db_appexit( NULL );
29167 (void) dbopen( NULL, 0, 0, 0, NULL);
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29176 (eval $ac_link) 2>conftest.er1
29178 grep -v '^ *+' conftest.er1 >conftest.err
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } &&
29183 { ac_try='test -z "$ac_c_werror_flag"
29184 || test ! -s conftest.err'
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest$ac_exeext'
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 ol_cv_db_db_4_dot_3=yes
29198 echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29201 ol_cv_db_db_4_dot_3=no
29203 rm -f conftest.err conftest.$ac_objext \
29204 conftest$ac_exeext conftest.$ac_ext
29209 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29210 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29212 if test $ol_cv_db_db_4_dot_3 = yes ; then
29213 ol_cv_lib_db=-ldb-4.3
29217 if test $ol_cv_lib_db = no ; then
29218 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29220 if test "${ol_cv_db_db_4_3+set}" = set; then
29221 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29228 cat >conftest.$ac_ext <<_ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29235 #ifdef HAVE_DB_185_H
29236 # include <db_185.h>
29241 #ifndef DB_VERSION_MAJOR
29242 # define DB_VERSION_MAJOR 1
29246 #define NULL ((void*)0)
29253 #if DB_VERSION_MAJOR > 1
29256 int major, minor, patch;
29258 version = db_version( &major, &minor, &patch );
29260 if( major != DB_VERSION_MAJOR ||
29261 minor < DB_VERSION_MINOR )
29263 printf("Berkeley DB version mismatch\n"
29264 "\theader: %s\n\tlibrary: %s\n",
29265 DB_VERSION_STRING, version);
29271 #if DB_VERSION_MAJOR > 2
29272 db_env_create( NULL, 0 );
29273 #elif DB_VERSION_MAJOR > 1
29274 db_appexit( NULL );
29276 (void) dbopen( NULL, 0, 0, 0, NULL);
29283 rm -f conftest.$ac_objext conftest$ac_exeext
29284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29285 (eval $ac_link) 2>conftest.er1
29287 grep -v '^ *+' conftest.er1 >conftest.err
29289 cat conftest.err >&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } &&
29292 { ac_try='test -z "$ac_c_werror_flag"
29293 || test ! -s conftest.err'
29294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 (eval $ac_try) 2>&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; } &&
29299 { ac_try='test -s conftest$ac_exeext'
29300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301 (eval $ac_try) 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; }; then
29305 ol_cv_db_db_4_3=yes
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29312 rm -f conftest.err conftest.$ac_objext \
29313 conftest$ac_exeext conftest.$ac_ext
29318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29319 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29321 if test $ol_cv_db_db_4_3 = yes ; then
29322 ol_cv_lib_db=-ldb-4-3
29326 elif test $ol_cv_bdb_minor = 2 ; then
29327 if test $ol_cv_lib_db = no ; then
29328 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29329 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29330 if test "${ol_cv_db_db42+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29336 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29338 cat >conftest.$ac_ext <<_ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29345 #ifdef HAVE_DB_185_H
29346 # include <db_185.h>
29351 #ifndef DB_VERSION_MAJOR
29352 # define DB_VERSION_MAJOR 1
29356 #define NULL ((void*)0)
29363 #if DB_VERSION_MAJOR > 1
29366 int major, minor, patch;
29368 version = db_version( &major, &minor, &patch );
29370 if( major != DB_VERSION_MAJOR ||
29371 minor < DB_VERSION_MINOR )
29373 printf("Berkeley DB version mismatch\n"
29374 "\theader: %s\n\tlibrary: %s\n",
29375 DB_VERSION_STRING, version);
29381 #if DB_VERSION_MAJOR > 2
29382 db_env_create( NULL, 0 );
29383 #elif DB_VERSION_MAJOR > 1
29384 db_appexit( NULL );
29386 (void) dbopen( NULL, 0, 0, 0, NULL);
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395 (eval $ac_link) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest$ac_exeext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29422 rm -f conftest.err conftest.$ac_objext \
29423 conftest$ac_exeext conftest.$ac_ext
29428 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29429 echo "${ECHO_T}$ol_cv_db_db42" >&6
29431 if test $ol_cv_db_db42 = yes ; then
29432 ol_cv_lib_db=-ldb42
29436 if test $ol_cv_lib_db = no ; then
29437 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29438 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29439 if test "${ol_cv_db_db_42+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29445 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29447 cat >conftest.$ac_ext <<_ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h. */
29454 #ifdef HAVE_DB_185_H
29455 # include <db_185.h>
29460 #ifndef DB_VERSION_MAJOR
29461 # define DB_VERSION_MAJOR 1
29465 #define NULL ((void*)0)
29472 #if DB_VERSION_MAJOR > 1
29475 int major, minor, patch;
29477 version = db_version( &major, &minor, &patch );
29479 if( major != DB_VERSION_MAJOR ||
29480 minor < DB_VERSION_MINOR )
29482 printf("Berkeley DB version mismatch\n"
29483 "\theader: %s\n\tlibrary: %s\n",
29484 DB_VERSION_STRING, version);
29490 #if DB_VERSION_MAJOR > 2
29491 db_env_create( NULL, 0 );
29492 #elif DB_VERSION_MAJOR > 1
29493 db_appexit( NULL );
29495 (void) dbopen( NULL, 0, 0, 0, NULL);
29502 rm -f conftest.$ac_objext conftest$ac_exeext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29504 (eval $ac_link) 2>conftest.er1
29506 grep -v '^ *+' conftest.er1 >conftest.err
29508 cat conftest.err >&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -z "$ac_c_werror_flag"
29512 || test ! -s conftest.err'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest$ac_exeext'
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29531 rm -f conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
29537 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29538 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29540 if test $ol_cv_db_db_42 = yes ; then
29541 ol_cv_lib_db=-ldb-42
29545 if test $ol_cv_lib_db = no ; then
29546 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29547 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29548 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29554 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29556 cat >conftest.$ac_ext <<_ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29563 #ifdef HAVE_DB_185_H
29564 # include <db_185.h>
29569 #ifndef DB_VERSION_MAJOR
29570 # define DB_VERSION_MAJOR 1
29574 #define NULL ((void*)0)
29581 #if DB_VERSION_MAJOR > 1
29584 int major, minor, patch;
29586 version = db_version( &major, &minor, &patch );
29588 if( major != DB_VERSION_MAJOR ||
29589 minor < DB_VERSION_MINOR )
29591 printf("Berkeley DB version mismatch\n"
29592 "\theader: %s\n\tlibrary: %s\n",
29593 DB_VERSION_STRING, version);
29599 #if DB_VERSION_MAJOR > 2
29600 db_env_create( NULL, 0 );
29601 #elif DB_VERSION_MAJOR > 1
29602 db_appexit( NULL );
29604 (void) dbopen( NULL, 0, 0, 0, NULL);
29611 rm -f conftest.$ac_objext conftest$ac_exeext
29612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29613 (eval $ac_link) 2>conftest.er1
29615 grep -v '^ *+' conftest.er1 >conftest.err
29617 cat conftest.err >&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); } &&
29620 { ac_try='test -z "$ac_c_werror_flag"
29621 || test ! -s conftest.err'
29622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623 (eval $ac_try) 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; } &&
29627 { ac_try='test -s conftest$ac_exeext'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ol_cv_db_db_4_dot_2=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ol_cv_db_db_4_dot_2=no
29640 rm -f conftest.err conftest.$ac_objext \
29641 conftest$ac_exeext conftest.$ac_ext
29646 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29647 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29649 if test $ol_cv_db_db_4_dot_2 = yes ; then
29650 ol_cv_lib_db=-ldb-4.2
29654 if test $ol_cv_lib_db = no ; then
29655 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29656 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29657 if test "${ol_cv_db_db_4_2+set}" = set; then
29658 echo $ECHO_N "(cached) $ECHO_C" >&6
29663 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29665 cat >conftest.$ac_ext <<_ACEOF
29668 cat confdefs.h >>conftest.$ac_ext
29669 cat >>conftest.$ac_ext <<_ACEOF
29670 /* end confdefs.h. */
29672 #ifdef HAVE_DB_185_H
29673 # include <db_185.h>
29678 #ifndef DB_VERSION_MAJOR
29679 # define DB_VERSION_MAJOR 1
29683 #define NULL ((void*)0)
29690 #if DB_VERSION_MAJOR > 1
29693 int major, minor, patch;
29695 version = db_version( &major, &minor, &patch );
29697 if( major != DB_VERSION_MAJOR ||
29698 minor < DB_VERSION_MINOR )
29700 printf("Berkeley DB version mismatch\n"
29701 "\theader: %s\n\tlibrary: %s\n",
29702 DB_VERSION_STRING, version);
29708 #if DB_VERSION_MAJOR > 2
29709 db_env_create( NULL, 0 );
29710 #elif DB_VERSION_MAJOR > 1
29711 db_appexit( NULL );
29713 (void) dbopen( NULL, 0, 0, 0, NULL);
29720 rm -f conftest.$ac_objext conftest$ac_exeext
29721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29722 (eval $ac_link) 2>conftest.er1
29724 grep -v '^ *+' conftest.er1 >conftest.err
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
29729 { ac_try='test -z "$ac_c_werror_flag"
29730 || test ! -s conftest.err'
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='test -s conftest$ac_exeext'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 ol_cv_db_db_4_2=yes
29744 echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29749 rm -f conftest.err conftest.$ac_objext \
29750 conftest$ac_exeext conftest.$ac_ext
29755 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29756 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29758 if test $ol_cv_db_db_4_2 = yes ; then
29759 ol_cv_lib_db=-ldb-4-2
29763 elif test $ol_cv_bdb_minor = 1 ; then
29764 if test $ol_cv_lib_db = no ; then
29765 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29766 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29767 if test "${ol_cv_db_db41+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29773 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29775 cat >conftest.$ac_ext <<_ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h. */
29782 #ifdef HAVE_DB_185_H
29783 # include <db_185.h>
29788 #ifndef DB_VERSION_MAJOR
29789 # define DB_VERSION_MAJOR 1
29793 #define NULL ((void*)0)
29800 #if DB_VERSION_MAJOR > 1
29803 int major, minor, patch;
29805 version = db_version( &major, &minor, &patch );
29807 if( major != DB_VERSION_MAJOR ||
29808 minor < DB_VERSION_MINOR )
29810 printf("Berkeley DB version mismatch\n"
29811 "\theader: %s\n\tlibrary: %s\n",
29812 DB_VERSION_STRING, version);
29818 #if DB_VERSION_MAJOR > 2
29819 db_env_create( NULL, 0 );
29820 #elif DB_VERSION_MAJOR > 1
29821 db_appexit( NULL );
29823 (void) dbopen( NULL, 0, 0, 0, NULL);
29830 rm -f conftest.$ac_objext conftest$ac_exeext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29832 (eval $ac_link) 2>conftest.er1
29834 grep -v '^ *+' conftest.er1 >conftest.err
29836 cat conftest.err >&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
29839 { ac_try='test -z "$ac_c_werror_flag"
29840 || test ! -s conftest.err'
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest$ac_exeext'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29859 rm -f conftest.err conftest.$ac_objext \
29860 conftest$ac_exeext conftest.$ac_ext
29865 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29866 echo "${ECHO_T}$ol_cv_db_db41" >&6
29868 if test $ol_cv_db_db41 = yes ; then
29869 ol_cv_lib_db=-ldb41
29873 if test $ol_cv_lib_db = no ; then
29874 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29875 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29876 if test "${ol_cv_db_db_41+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29891 #ifdef HAVE_DB_185_H
29892 # include <db_185.h>
29897 #ifndef DB_VERSION_MAJOR
29898 # define DB_VERSION_MAJOR 1
29902 #define NULL ((void*)0)
29909 #if DB_VERSION_MAJOR > 1
29912 int major, minor, patch;
29914 version = db_version( &major, &minor, &patch );
29916 if( major != DB_VERSION_MAJOR ||
29917 minor < DB_VERSION_MINOR )
29919 printf("Berkeley DB version mismatch\n"
29920 "\theader: %s\n\tlibrary: %s\n",
29921 DB_VERSION_STRING, version);
29927 #if DB_VERSION_MAJOR > 2
29928 db_env_create( NULL, 0 );
29929 #elif DB_VERSION_MAJOR > 1
29930 db_appexit( NULL );
29932 (void) dbopen( NULL, 0, 0, 0, NULL);
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29941 (eval $ac_link) 2>conftest.er1
29943 grep -v '^ *+' conftest.er1 >conftest.err
29945 cat conftest.err >&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } &&
29948 { ac_try='test -z "$ac_c_werror_flag"
29949 || test ! -s conftest.err'
29950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951 (eval $ac_try) 2>&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); }; } &&
29955 { ac_try='test -s conftest$ac_exeext'
29956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957 (eval $ac_try) 2>&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; }; then
29963 echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29968 rm -f conftest.err conftest.$ac_objext \
29969 conftest$ac_exeext conftest.$ac_ext
29974 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29975 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29977 if test $ol_cv_db_db_41 = yes ; then
29978 ol_cv_lib_db=-ldb-41
29982 if test $ol_cv_lib_db = no ; then
29983 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29984 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29985 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29991 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
30000 #ifdef HAVE_DB_185_H
30001 # include <db_185.h>
30006 #ifndef DB_VERSION_MAJOR
30007 # define DB_VERSION_MAJOR 1
30011 #define NULL ((void*)0)
30018 #if DB_VERSION_MAJOR > 1
30021 int major, minor, patch;
30023 version = db_version( &major, &minor, &patch );
30025 if( major != DB_VERSION_MAJOR ||
30026 minor < DB_VERSION_MINOR )
30028 printf("Berkeley DB version mismatch\n"
30029 "\theader: %s\n\tlibrary: %s\n",
30030 DB_VERSION_STRING, version);
30036 #if DB_VERSION_MAJOR > 2
30037 db_env_create( NULL, 0 );
30038 #elif DB_VERSION_MAJOR > 1
30039 db_appexit( NULL );
30041 (void) dbopen( NULL, 0, 0, 0, NULL);
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30050 (eval $ac_link) 2>conftest.er1
30052 grep -v '^ *+' conftest.er1 >conftest.err
30054 cat conftest.err >&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
30057 { ac_try='test -z "$ac_c_werror_flag"
30058 || test ! -s conftest.err'
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; } &&
30064 { ac_try='test -s conftest$ac_exeext'
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
30070 ol_cv_db_db_4_dot_1=yes
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30075 ol_cv_db_db_4_dot_1=no
30077 rm -f conftest.err conftest.$ac_objext \
30078 conftest$ac_exeext conftest.$ac_ext
30083 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30084 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30086 if test $ol_cv_db_db_4_dot_1 = yes ; then
30087 ol_cv_lib_db=-ldb-4.1
30091 if test $ol_cv_lib_db = no ; then
30092 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30093 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30094 if test "${ol_cv_db_db_4_1+set}" = set; then
30095 echo $ECHO_N "(cached) $ECHO_C" >&6
30100 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30109 #ifdef HAVE_DB_185_H
30110 # include <db_185.h>
30115 #ifndef DB_VERSION_MAJOR
30116 # define DB_VERSION_MAJOR 1
30120 #define NULL ((void*)0)
30127 #if DB_VERSION_MAJOR > 1
30130 int major, minor, patch;
30132 version = db_version( &major, &minor, &patch );
30134 if( major != DB_VERSION_MAJOR ||
30135 minor < DB_VERSION_MINOR )
30137 printf("Berkeley DB version mismatch\n"
30138 "\theader: %s\n\tlibrary: %s\n",
30139 DB_VERSION_STRING, version);
30145 #if DB_VERSION_MAJOR > 2
30146 db_env_create( NULL, 0 );
30147 #elif DB_VERSION_MAJOR > 1
30148 db_appexit( NULL );
30150 (void) dbopen( NULL, 0, 0, 0, NULL);
30157 rm -f conftest.$ac_objext conftest$ac_exeext
30158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30159 (eval $ac_link) 2>conftest.er1
30161 grep -v '^ *+' conftest.er1 >conftest.err
30163 cat conftest.err >&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); } &&
30166 { ac_try='test -z "$ac_c_werror_flag"
30167 || test ! -s conftest.err'
30168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30169 (eval $ac_try) 2>&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; } &&
30173 { ac_try='test -s conftest$ac_exeext'
30174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175 (eval $ac_try) 2>&5
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; }; then
30179 ol_cv_db_db_4_1=yes
30181 echo "$as_me: failed program was:" >&5
30182 sed 's/^/| /' conftest.$ac_ext >&5
30186 rm -f conftest.err conftest.$ac_objext \
30187 conftest$ac_exeext conftest.$ac_ext
30192 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30193 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30195 if test $ol_cv_db_db_4_1 = yes ; then
30196 ol_cv_lib_db=-ldb-4-1
30201 if test $ol_cv_lib_db = no ; then
30202 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30203 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30204 if test "${ol_cv_db_db_4+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30212 cat >conftest.$ac_ext <<_ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h. */
30219 #ifdef HAVE_DB_185_H
30220 # include <db_185.h>
30225 #ifndef DB_VERSION_MAJOR
30226 # define DB_VERSION_MAJOR 1
30230 #define NULL ((void*)0)
30237 #if DB_VERSION_MAJOR > 1
30240 int major, minor, patch;
30242 version = db_version( &major, &minor, &patch );
30244 if( major != DB_VERSION_MAJOR ||
30245 minor < DB_VERSION_MINOR )
30247 printf("Berkeley DB version mismatch\n"
30248 "\theader: %s\n\tlibrary: %s\n",
30249 DB_VERSION_STRING, version);
30255 #if DB_VERSION_MAJOR > 2
30256 db_env_create( NULL, 0 );
30257 #elif DB_VERSION_MAJOR > 1
30258 db_appexit( NULL );
30260 (void) dbopen( NULL, 0, 0, 0, NULL);
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269 (eval $ac_link) 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest$ac_exeext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30296 rm -f conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
30302 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30303 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30305 if test $ol_cv_db_db_4 = yes ; then
30306 ol_cv_lib_db=-ldb-4
30310 if test $ol_cv_lib_db = no ; then
30311 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30312 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30313 if test "${ol_cv_db_db4+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30321 cat >conftest.$ac_ext <<_ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h. */
30328 #ifdef HAVE_DB_185_H
30329 # include <db_185.h>
30334 #ifndef DB_VERSION_MAJOR
30335 # define DB_VERSION_MAJOR 1
30339 #define NULL ((void*)0)
30346 #if DB_VERSION_MAJOR > 1
30349 int major, minor, patch;
30351 version = db_version( &major, &minor, &patch );
30353 if( major != DB_VERSION_MAJOR ||
30354 minor < DB_VERSION_MINOR )
30356 printf("Berkeley DB version mismatch\n"
30357 "\theader: %s\n\tlibrary: %s\n",
30358 DB_VERSION_STRING, version);
30364 #if DB_VERSION_MAJOR > 2
30365 db_env_create( NULL, 0 );
30366 #elif DB_VERSION_MAJOR > 1
30367 db_appexit( NULL );
30369 (void) dbopen( NULL, 0, 0, 0, NULL);
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378 (eval $ac_link) 2>conftest.er1
30380 grep -v '^ *+' conftest.er1 >conftest.err
30382 cat conftest.err >&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try='test -z "$ac_c_werror_flag"
30386 || test ! -s conftest.err'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest$ac_exeext'
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30405 rm -f conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30411 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30412 echo "${ECHO_T}$ol_cv_db_db4" >&6
30414 if test $ol_cv_db_db4 = yes ; then
30419 if test $ol_cv_lib_db = no ; then
30420 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30421 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30422 if test "${ol_cv_db_db+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30428 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30430 cat >conftest.$ac_ext <<_ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h. */
30437 #ifdef HAVE_DB_185_H
30438 # include <db_185.h>
30443 #ifndef DB_VERSION_MAJOR
30444 # define DB_VERSION_MAJOR 1
30448 #define NULL ((void*)0)
30455 #if DB_VERSION_MAJOR > 1
30458 int major, minor, patch;
30460 version = db_version( &major, &minor, &patch );
30462 if( major != DB_VERSION_MAJOR ||
30463 minor < DB_VERSION_MINOR )
30465 printf("Berkeley DB version mismatch\n"
30466 "\theader: %s\n\tlibrary: %s\n",
30467 DB_VERSION_STRING, version);
30473 #if DB_VERSION_MAJOR > 2
30474 db_env_create( NULL, 0 );
30475 #elif DB_VERSION_MAJOR > 1
30476 db_appexit( NULL );
30478 (void) dbopen( NULL, 0, 0, 0, NULL);
30485 rm -f conftest.$ac_objext conftest$ac_exeext
30486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30487 (eval $ac_link) 2>conftest.er1
30489 grep -v '^ *+' conftest.er1 >conftest.err
30491 cat conftest.err >&5
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } &&
30494 { ac_try='test -z "$ac_c_werror_flag"
30495 || test ! -s conftest.err'
30496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497 (eval $ac_try) 2>&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); }; } &&
30501 { ac_try='test -s conftest$ac_exeext'
30502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503 (eval $ac_try) 2>&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
30509 echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30514 rm -f conftest.err conftest.$ac_objext \
30515 conftest$ac_exeext conftest.$ac_ext
30520 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30521 echo "${ECHO_T}$ol_cv_db_db" >&6
30523 if test $ol_cv_db_db = yes ; then
30529 elif test $ol_cv_bdb_major = 3 ; then
30530 if test $ol_cv_lib_db = no ; then
30531 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30532 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30533 if test "${ol_cv_db_db3+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30541 cat >conftest.$ac_ext <<_ACEOF
30544 cat confdefs.h >>conftest.$ac_ext
30545 cat >>conftest.$ac_ext <<_ACEOF
30546 /* end confdefs.h. */
30548 #ifdef HAVE_DB_185_H
30549 # include <db_185.h>
30554 #ifndef DB_VERSION_MAJOR
30555 # define DB_VERSION_MAJOR 1
30559 #define NULL ((void*)0)
30566 #if DB_VERSION_MAJOR > 1
30569 int major, minor, patch;
30571 version = db_version( &major, &minor, &patch );
30573 if( major != DB_VERSION_MAJOR ||
30574 minor < DB_VERSION_MINOR )
30576 printf("Berkeley DB version mismatch\n"
30577 "\theader: %s\n\tlibrary: %s\n",
30578 DB_VERSION_STRING, version);
30584 #if DB_VERSION_MAJOR > 2
30585 db_env_create( NULL, 0 );
30586 #elif DB_VERSION_MAJOR > 1
30587 db_appexit( NULL );
30589 (void) dbopen( NULL, 0, 0, 0, NULL);
30596 rm -f conftest.$ac_objext conftest$ac_exeext
30597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30598 (eval $ac_link) 2>conftest.er1
30600 grep -v '^ *+' conftest.er1 >conftest.err
30602 cat conftest.err >&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); } &&
30605 { ac_try='test -z "$ac_c_werror_flag"
30606 || test ! -s conftest.err'
30607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 (eval $ac_try) 2>&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; } &&
30612 { ac_try='test -s conftest$ac_exeext'
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30625 rm -f conftest.err conftest.$ac_objext \
30626 conftest$ac_exeext conftest.$ac_ext
30631 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30632 echo "${ECHO_T}$ol_cv_db_db3" >&6
30634 if test $ol_cv_db_db3 = yes ; then
30639 if test $ol_cv_lib_db = no ; then
30640 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30641 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30642 if test "${ol_cv_db_db_3+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30650 cat >conftest.$ac_ext <<_ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h. */
30657 #ifdef HAVE_DB_185_H
30658 # include <db_185.h>
30663 #ifndef DB_VERSION_MAJOR
30664 # define DB_VERSION_MAJOR 1
30668 #define NULL ((void*)0)
30675 #if DB_VERSION_MAJOR > 1
30678 int major, minor, patch;
30680 version = db_version( &major, &minor, &patch );
30682 if( major != DB_VERSION_MAJOR ||
30683 minor < DB_VERSION_MINOR )
30685 printf("Berkeley DB version mismatch\n"
30686 "\theader: %s\n\tlibrary: %s\n",
30687 DB_VERSION_STRING, version);
30693 #if DB_VERSION_MAJOR > 2
30694 db_env_create( NULL, 0 );
30695 #elif DB_VERSION_MAJOR > 1
30696 db_appexit( NULL );
30698 (void) dbopen( NULL, 0, 0, 0, NULL);
30705 rm -f conftest.$ac_objext conftest$ac_exeext
30706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30707 (eval $ac_link) 2>conftest.er1
30709 grep -v '^ *+' conftest.er1 >conftest.err
30711 cat conftest.err >&5
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); } &&
30714 { ac_try='test -z "$ac_c_werror_flag"
30715 || test ! -s conftest.err'
30716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717 (eval $ac_try) 2>&5
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; } &&
30721 { ac_try='test -s conftest$ac_exeext'
30722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723 (eval $ac_try) 2>&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; }; then
30729 echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30734 rm -f conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
30740 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30741 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30743 if test $ol_cv_db_db_3 = yes ; then
30744 ol_cv_lib_db=-ldb-3
30749 elif test $ol_cv_bdb_major = 2 ; then
30750 if test $ol_cv_lib_db = no ; then
30751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30752 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30753 if test "${ol_cv_db_db2+set}" = set; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30761 cat >conftest.$ac_ext <<_ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h. */
30768 #ifdef HAVE_DB_185_H
30769 # include <db_185.h>
30774 #ifndef DB_VERSION_MAJOR
30775 # define DB_VERSION_MAJOR 1
30779 #define NULL ((void*)0)
30786 #if DB_VERSION_MAJOR > 1
30789 int major, minor, patch;
30791 version = db_version( &major, &minor, &patch );
30793 if( major != DB_VERSION_MAJOR ||
30794 minor < DB_VERSION_MINOR )
30796 printf("Berkeley DB version mismatch\n"
30797 "\theader: %s\n\tlibrary: %s\n",
30798 DB_VERSION_STRING, version);
30804 #if DB_VERSION_MAJOR > 2
30805 db_env_create( NULL, 0 );
30806 #elif DB_VERSION_MAJOR > 1
30807 db_appexit( NULL );
30809 (void) dbopen( NULL, 0, 0, 0, NULL);
30816 rm -f conftest.$ac_objext conftest$ac_exeext
30817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30818 (eval $ac_link) 2>conftest.er1
30820 grep -v '^ *+' conftest.er1 >conftest.err
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try='test -z "$ac_c_werror_flag"
30826 || test ! -s conftest.err'
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest$ac_exeext'
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30845 rm -f conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
30851 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30852 echo "${ECHO_T}$ol_cv_db_db2" >&6
30854 if test $ol_cv_db_db2 = yes ; then
30859 if test $ol_cv_lib_db = no ; then
30860 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30861 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30862 if test "${ol_cv_db_db_2+set}" = set; then
30863 echo $ECHO_N "(cached) $ECHO_C" >&6
30868 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30870 cat >conftest.$ac_ext <<_ACEOF
30873 cat confdefs.h >>conftest.$ac_ext
30874 cat >>conftest.$ac_ext <<_ACEOF
30875 /* end confdefs.h. */
30877 #ifdef HAVE_DB_185_H
30878 # include <db_185.h>
30883 #ifndef DB_VERSION_MAJOR
30884 # define DB_VERSION_MAJOR 1
30888 #define NULL ((void*)0)
30895 #if DB_VERSION_MAJOR > 1
30898 int major, minor, patch;
30900 version = db_version( &major, &minor, &patch );
30902 if( major != DB_VERSION_MAJOR ||
30903 minor < DB_VERSION_MINOR )
30905 printf("Berkeley DB version mismatch\n"
30906 "\theader: %s\n\tlibrary: %s\n",
30907 DB_VERSION_STRING, version);
30913 #if DB_VERSION_MAJOR > 2
30914 db_env_create( NULL, 0 );
30915 #elif DB_VERSION_MAJOR > 1
30916 db_appexit( NULL );
30918 (void) dbopen( NULL, 0, 0, 0, NULL);
30925 rm -f conftest.$ac_objext conftest$ac_exeext
30926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30927 (eval $ac_link) 2>conftest.er1
30929 grep -v '^ *+' conftest.er1 >conftest.err
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } &&
30934 { ac_try='test -z "$ac_c_werror_flag"
30935 || test ! -s conftest.err'
30936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937 (eval $ac_try) 2>&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; } &&
30941 { ac_try='test -s conftest$ac_exeext'
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; }; then
30949 echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30954 rm -f conftest.err conftest.$ac_objext \
30955 conftest$ac_exeext conftest.$ac_ext
30960 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30961 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30963 if test $ol_cv_db_db_2 = yes ; then
30964 ol_cv_lib_db=-ldb-2
30969 elif test $ol_cv_bdb_major = 1 ; then
30970 if test $ol_cv_lib_db = no ; then
30971 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30972 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30973 if test "${ol_cv_db_db1+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30979 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30981 cat >conftest.$ac_ext <<_ACEOF
30984 cat confdefs.h >>conftest.$ac_ext
30985 cat >>conftest.$ac_ext <<_ACEOF
30986 /* end confdefs.h. */
30988 #ifdef HAVE_DB_185_H
30989 # include <db_185.h>
30994 #ifndef DB_VERSION_MAJOR
30995 # define DB_VERSION_MAJOR 1
30999 #define NULL ((void*)0)
31006 #if DB_VERSION_MAJOR > 1
31009 int major, minor, patch;
31011 version = db_version( &major, &minor, &patch );
31013 if( major != DB_VERSION_MAJOR ||
31014 minor < DB_VERSION_MINOR )
31016 printf("Berkeley DB version mismatch\n"
31017 "\theader: %s\n\tlibrary: %s\n",
31018 DB_VERSION_STRING, version);
31024 #if DB_VERSION_MAJOR > 2
31025 db_env_create( NULL, 0 );
31026 #elif DB_VERSION_MAJOR > 1
31027 db_appexit( NULL );
31029 (void) dbopen( NULL, 0, 0, 0, NULL);
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038 (eval $ac_link) 2>conftest.er1
31040 grep -v '^ *+' conftest.er1 >conftest.err
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
31045 { ac_try='test -z "$ac_c_werror_flag"
31046 || test ! -s conftest.err'
31047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048 (eval $ac_try) 2>&5
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; } &&
31052 { ac_try='test -s conftest$ac_exeext'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31065 rm -f conftest.err conftest.$ac_objext \
31066 conftest$ac_exeext conftest.$ac_ext
31071 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31072 echo "${ECHO_T}$ol_cv_db_db1" >&6
31074 if test $ol_cv_db_db1 = yes ; then
31079 if test $ol_cv_lib_db = no ; then
31080 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31081 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31082 if test "${ol_cv_db_db_1+set}" = set; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31088 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31090 cat >conftest.$ac_ext <<_ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31097 #ifdef HAVE_DB_185_H
31098 # include <db_185.h>
31103 #ifndef DB_VERSION_MAJOR
31104 # define DB_VERSION_MAJOR 1
31108 #define NULL ((void*)0)
31115 #if DB_VERSION_MAJOR > 1
31118 int major, minor, patch;
31120 version = db_version( &major, &minor, &patch );
31122 if( major != DB_VERSION_MAJOR ||
31123 minor < DB_VERSION_MINOR )
31125 printf("Berkeley DB version mismatch\n"
31126 "\theader: %s\n\tlibrary: %s\n",
31127 DB_VERSION_STRING, version);
31133 #if DB_VERSION_MAJOR > 2
31134 db_env_create( NULL, 0 );
31135 #elif DB_VERSION_MAJOR > 1
31136 db_appexit( NULL );
31138 (void) dbopen( NULL, 0, 0, 0, NULL);
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31147 (eval $ac_link) 2>conftest.er1
31149 grep -v '^ *+' conftest.er1 >conftest.err
31151 cat conftest.err >&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
31154 { ac_try='test -z "$ac_c_werror_flag"
31155 || test ! -s conftest.err'
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31169 echo "$as_me: failed program was:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31174 rm -f conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
31180 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31181 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31183 if test $ol_cv_db_db_1 = yes ; then
31184 ol_cv_lib_db=-ldb-1
31189 if test $ol_cv_lib_db = no ; then
31190 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31191 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31192 if test "${ol_cv_db_none+set}" = set; then
31193 echo $ECHO_N "(cached) $ECHO_C" >&6
31198 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31200 cat >conftest.$ac_ext <<_ACEOF
31203 cat confdefs.h >>conftest.$ac_ext
31204 cat >>conftest.$ac_ext <<_ACEOF
31205 /* end confdefs.h. */
31207 #ifdef HAVE_DB_185_H
31208 # include <db_185.h>
31213 #ifndef DB_VERSION_MAJOR
31214 # define DB_VERSION_MAJOR 1
31218 #define NULL ((void*)0)
31225 #if DB_VERSION_MAJOR > 1
31228 int major, minor, patch;
31230 version = db_version( &major, &minor, &patch );
31232 if( major != DB_VERSION_MAJOR ||
31233 minor < DB_VERSION_MINOR )
31235 printf("Berkeley DB version mismatch\n"
31236 "\theader: %s\n\tlibrary: %s\n",
31237 DB_VERSION_STRING, version);
31243 #if DB_VERSION_MAJOR > 2
31244 db_env_create( NULL, 0 );
31245 #elif DB_VERSION_MAJOR > 1
31246 db_appexit( NULL );
31248 (void) dbopen( NULL, 0, 0, 0, NULL);
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257 (eval $ac_link) 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag"
31265 || test ! -s conftest.err'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; } &&
31271 { ac_try='test -s conftest$ac_exeext'
31272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273 (eval $ac_try) 2>&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); }; }; then
31279 echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31284 rm -f conftest.err conftest.$ac_objext \
31285 conftest$ac_exeext conftest.$ac_ext
31290 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31291 echo "${ECHO_T}$ol_cv_db_none" >&6
31293 if test $ol_cv_db_none = yes ; then
31299 if test "$ol_cv_lib_db" != no ; then
31300 ol_cv_berkeley_db=yes
31301 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31302 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31303 if test "${ol_cv_berkeley_db_version+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31308 LIBS="$LTHREAD_LIBS $LIBS"
31309 if test $ol_cv_lib_db != yes ; then
31310 LIBS="$ol_cv_lib_db $LIBS"
31313 if test "$cross_compiling" = yes; then
31314 ol_cv_berkeley_db_version=cross
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31323 #ifdef HAVE_DB_185_H
31328 #ifndef DB_VERSION_MAJOR
31329 # define DB_VERSION_MAJOR 1
31332 #define NULL ((void *)0)
31336 #if DB_VERSION_MAJOR > 1
31338 int major, minor, patch;
31340 version = db_version( &major, &minor, &patch );
31342 if( major != DB_VERSION_MAJOR ||
31343 minor != DB_VERSION_MINOR ||
31344 patch != DB_VERSION_PATCH )
31346 printf("Berkeley DB version mismatch\n"
31347 "\theader: %s\n\tlibrary: %s\n",
31348 DB_VERSION_STRING, version);
31356 rm -f conftest$ac_exeext
31357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31358 (eval $ac_link) 2>&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
31367 ol_cv_berkeley_db_version=yes
31369 echo "$as_me: program exited with status $ac_status" >&5
31370 echo "$as_me: failed program was:" >&5
31371 sed 's/^/| /' conftest.$ac_ext >&5
31373 ( exit $ac_status )
31374 ol_cv_berkeley_db_version=no
31376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31382 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31383 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31385 if test $ol_cv_berkeley_db_version = no ; then
31386 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31387 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31388 { (exit 1); exit 1; }; }
31391 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31392 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31393 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 LIBS="$LTHREAD_LIBS $LIBS"
31399 if test $ol_cv_lib_db != yes ; then
31400 LIBS="$ol_cv_lib_db $LIBS"
31403 if test "$cross_compiling" = yes; then
31404 ol_cv_berkeley_db_thread=cross
31406 cat >conftest.$ac_ext <<_ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h. */
31413 #ifdef HAVE_DB_185_H
31419 #define NULL ((void *)0)
31424 u_int32_t flags = DB_CREATE |
31430 #if DB_VERSION_MAJOR > 2
31431 DB_ENV *env = NULL;
31433 rc = db_env_create( &env, 0 );
31435 flags |= DB_INIT_MPOOL;
31436 #ifdef DB_MPOOL_PRIVATE
31437 flags |= DB_MPOOL_PRIVATE;
31441 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31445 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31446 rc = env->open( env, NULL, flags, 0 );
31448 rc = env->open( env, NULL, NULL, flags, 0 );
31452 rc = env->close( env, 0 );
31456 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31462 memset( &env, '\0', sizeof(env) );
31464 rc = db_appinit( NULL, NULL, &env, flags );
31467 db_appexit( &env );
31470 unlink("__db_mpool.share");
31471 unlink("__db_lock.share");
31477 rm -f conftest$ac_exeext
31478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31479 (eval $ac_link) 2>&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 ol_cv_berkeley_db_thread=yes
31490 echo "$as_me: program exited with status $ac_status" >&5
31491 echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31494 ( exit $ac_status )
31495 ol_cv_berkeley_db_thread=no
31497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31503 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31504 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31506 if test $ol_cv_berkeley_db_thread != no ; then
31508 cat >>confdefs.h <<\_ACEOF
31509 #define HAVE_BERKELEY_DB_THREAD 1
31518 if test $ol_cv_berkeley_db = no ; then
31519 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31520 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31521 { (exit 1); exit 1; }; }
31525 cat >>confdefs.h <<\_ACEOF
31526 #define HAVE_BERKELEY_DB 1
31530 if test $ol_cv_lib_db != yes ; then
31531 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31534 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31535 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31536 if test "${ol_cv_bdb_compat+set}" = set; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31540 cat >conftest.$ac_ext <<_ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h. */
31549 /* this check could be improved */
31550 #ifndef DB_VERSION_MAJOR
31551 # define DB_VERSION_MAJOR 1
31553 #ifndef DB_VERSION_MINOR
31554 # define DB_VERSION_MINOR 0
31557 /* require 4.2 or later, but exclude 4.3 */
31558 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31559 __db_version_compat
31563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31564 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31565 ol_cv_bdb_compat=yes
31567 ol_cv_bdb_compat=no
31572 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31573 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31576 if test $ol_cv_bdb_compat != yes ; then
31577 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31578 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31579 { (exit 1); exit 1; }; }
31582 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31588 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31589 BUILD_LIBS_DYNAMIC=shared
31591 cat >>confdefs.h <<\_ACEOF
31592 #define LDAP_LIBS_DYNAMIC 1
31597 BUILD_LIBS_DYNAMIC=static
31601 if test $ol_enable_wrappers != no ; then
31603 for ac_header in tcpd.h
31605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607 echo "$as_me:$LINENO: checking for $ac_header" >&5
31608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31610 echo $ECHO_N "(cached) $ECHO_C" >&6
31612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31615 # Is the header compilable?
31616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31618 cat >conftest.$ac_ext <<_ACEOF
31621 cat confdefs.h >>conftest.$ac_ext
31622 cat >>conftest.$ac_ext <<_ACEOF
31623 /* end confdefs.h. */
31624 $ac_includes_default
31625 #include <$ac_header>
31627 rm -f conftest.$ac_objext
31628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31629 (eval $ac_compile) 2>conftest.er1
31631 grep -v '^ *+' conftest.er1 >conftest.err
31633 cat conftest.err >&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } &&
31636 { ac_try='test -z "$ac_c_werror_flag"
31637 || test ! -s conftest.err'
31638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639 (eval $ac_try) 2>&5
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; } &&
31643 { ac_try='test -s conftest.$ac_objext'
31644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31645 (eval $ac_try) 2>&5
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); }; }; then
31649 ac_header_compiler=yes
31651 echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31654 ac_header_compiler=no
31656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31658 echo "${ECHO_T}$ac_header_compiler" >&6
31660 # Is the header present?
31661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31663 cat >conftest.$ac_ext <<_ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31669 #include <$ac_header>
31671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31674 grep -v '^ *+' conftest.er1 >conftest.err
31676 cat conftest.err >&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); } >/dev/null; then
31679 if test -s conftest.err; then
31680 ac_cpp_err=$ac_c_preproc_warn_flag
31681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31688 if test -z "$ac_cpp_err"; then
31689 ac_header_preproc=yes
31691 echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694 ac_header_preproc=no
31696 rm -f conftest.err conftest.$ac_ext
31697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31698 echo "${ECHO_T}$ac_header_preproc" >&6
31700 # So? What about this header?
31701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31707 ac_header_preproc=yes
31710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31724 ## --------------------------------------------- ##
31725 ## Report this to <http://www.openldap.org/its/> ##
31726 ## --------------------------------------------- ##
31729 sed "s/^/$as_me: WARNING: /" >&2
31732 echo "$as_me:$LINENO: checking for $ac_header" >&5
31733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31735 echo $ECHO_N "(cached) $ECHO_C" >&6
31737 eval "$as_ac_Header=\$ac_header_preproc"
31739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31744 cat >>confdefs.h <<_ACEOF
31745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31748 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31749 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31751 LIBS="$LIBS -lwrap"
31752 cat >conftest.$ac_ext <<_ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h. */
31760 int allow_severity = 0;
31761 int deny_severity = 0;
31763 struct request_info *req;
31775 rm -f conftest.$ac_objext conftest$ac_exeext
31776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31777 (eval $ac_link) 2>conftest.er1
31779 grep -v '^ *+' conftest.er1 >conftest.err
31781 cat conftest.err >&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } &&
31784 { ac_try='test -z "$ac_c_werror_flag"
31785 || test ! -s conftest.err'
31786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31787 (eval $ac_try) 2>&5
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); }; } &&
31791 { ac_try='test -s conftest$ac_exeext'
31792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31793 (eval $ac_try) 2>&5
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; }; then
31797 echo "$as_me:$LINENO: result: -lwrap" >&5
31798 echo "${ECHO_T}-lwrap" >&6
31802 echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31807 cat >conftest.$ac_ext <<_ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31815 int allow_severity = 0;
31816 int deny_severity = 0;
31818 struct request_info *req;
31830 rm -f conftest.$ac_objext conftest$ac_exeext
31831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31832 (eval $ac_link) 2>conftest.er1
31834 grep -v '^ *+' conftest.er1 >conftest.err
31836 cat conftest.err >&5
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } &&
31839 { ac_try='test -z "$ac_c_werror_flag"
31840 || test ! -s conftest.err'
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; } &&
31846 { ac_try='test -s conftest$ac_exeext'
31847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848 (eval $ac_try) 2>&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; }; then
31852 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31853 echo "${ECHO_T}-lwrap -lnsl" >&6
31855 LIBS="$save_LIBS -lnsl"
31857 echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31861 echo "$as_me:$LINENO: result: no" >&5
31862 echo "${ECHO_T}no" >&6
31866 rm -f conftest.err conftest.$ac_objext \
31867 conftest$ac_exeext conftest.$ac_ext
31869 rm -f conftest.err conftest.$ac_objext \
31870 conftest$ac_exeext conftest.$ac_ext
31878 if test $have_wrappers = yes ; then
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_TCPD 1
31885 elif test $ol_enable_wrappers = yes ; then
31886 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31887 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31888 { (exit 1); exit 1; }; }
31890 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31891 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31896 if test $ol_enable_syslog != no ; then
31897 echo "$as_me:$LINENO: checking for openlog" >&5
31898 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31899 if test "${ac_cv_func_openlog+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31902 cat >conftest.$ac_ext <<_ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h. */
31908 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31910 #define openlog innocuous_openlog
31912 /* System header to define __stub macros and hopefully few prototypes,
31913 which can conflict with char openlog (); below.
31914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31915 <limits.h> exists even on freestanding compilers. */
31918 # include <limits.h>
31920 # include <assert.h>
31925 /* Override any gcc2 internal prototype to avoid an error. */
31930 /* We use char because int might match the return type of a gcc2
31931 builtin and then its argument prototype would still apply. */
31933 /* The GNU C library defines this for functions which it implements
31934 to always fail with ENOSYS. Some functions are actually named
31935 something starting with __ and the normal name is an alias. */
31936 #if defined (__stub_openlog) || defined (__stub___openlog)
31939 char (*f) () = openlog;
31948 return f != openlog;
31953 rm -f conftest.$ac_objext conftest$ac_exeext
31954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31955 (eval $ac_link) 2>conftest.er1
31957 grep -v '^ *+' conftest.er1 >conftest.err
31959 cat conftest.err >&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); } &&
31962 { ac_try='test -z "$ac_c_werror_flag"
31963 || test ! -s conftest.err'
31964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965 (eval $ac_try) 2>&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; } &&
31969 { ac_try='test -s conftest$ac_exeext'
31970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31971 (eval $ac_try) 2>&5
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; }; then
31975 ac_cv_func_openlog=yes
31977 echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31980 ac_cv_func_openlog=no
31982 rm -f conftest.err conftest.$ac_objext \
31983 conftest$ac_exeext conftest.$ac_ext
31985 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31986 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31988 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31989 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31990 echo "$as_me: error: could not find syslog" >&2;}
31991 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31993 ol_enable_syslog=$ac_cv_func_openlog
31997 if test $ol_enable_sql != no ; then
32000 for ac_header in sql.h sqlext.h
32002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32004 echo "$as_me:$LINENO: checking for $ac_header" >&5
32005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32012 # Is the header compilable?
32013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32015 cat >conftest.$ac_ext <<_ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h. */
32021 $ac_includes_default
32022 #include <$ac_header>
32024 rm -f conftest.$ac_objext
32025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32026 (eval $ac_compile) 2>conftest.er1
32028 grep -v '^ *+' conftest.er1 >conftest.err
32030 cat conftest.err >&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); } &&
32033 { ac_try='test -z "$ac_c_werror_flag"
32034 || test ! -s conftest.err'
32035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036 (eval $ac_try) 2>&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; } &&
32040 { ac_try='test -s conftest.$ac_objext'
32041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042 (eval $ac_try) 2>&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; }; then
32046 ac_header_compiler=yes
32048 echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32051 ac_header_compiler=no
32053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32055 echo "${ECHO_T}$ac_header_compiler" >&6
32057 # Is the header present?
32058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32060 cat >conftest.$ac_ext <<_ACEOF
32063 cat confdefs.h >>conftest.$ac_ext
32064 cat >>conftest.$ac_ext <<_ACEOF
32065 /* end confdefs.h. */
32066 #include <$ac_header>
32068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32071 grep -v '^ *+' conftest.er1 >conftest.err
32073 cat conftest.err >&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } >/dev/null; then
32076 if test -s conftest.err; then
32077 ac_cpp_err=$ac_c_preproc_warn_flag
32078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32085 if test -z "$ac_cpp_err"; then
32086 ac_header_preproc=yes
32088 echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32091 ac_header_preproc=no
32093 rm -f conftest.err conftest.$ac_ext
32094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32095 echo "${ECHO_T}$ac_header_preproc" >&6
32097 # So? What about this header?
32098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32104 ac_header_preproc=yes
32107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32121 ## --------------------------------------------- ##
32122 ## Report this to <http://www.openldap.org/its/> ##
32123 ## --------------------------------------------- ##
32126 sed "s/^/$as_me: WARNING: /" >&2
32129 echo "$as_me:$LINENO: checking for $ac_header" >&5
32130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32132 echo $ECHO_N "(cached) $ECHO_C" >&6
32134 eval "$as_ac_Header=\$ac_header_preproc"
32136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32141 cat >>confdefs.h <<_ACEOF
32142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32147 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32148 echo "$as_me: error: could not locate SQL headers" >&2;}
32149 { (exit 1); exit 1; }; }
32157 LIBS="$LTHREAD_LIBS"
32159 if test $ol_with_odbc = auto ; then
32160 ol_with_odbc="iodbc unixodbc"
32163 for odbc in $ol_with_odbc ; do
32164 if test $ol_link_sql = no ; then
32167 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32168 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32169 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 ac_check_lib_save_LIBS=$LIBS
32173 LIBS="-liodbc $LIBS"
32174 cat >conftest.$ac_ext <<_ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h. */
32181 /* Override any gcc2 internal prototype to avoid an error. */
32185 /* We use char because int might match the return type of a gcc2
32186 builtin and then its argument prototype would still apply. */
32187 char SQLDriverConnect ();
32191 SQLDriverConnect ();
32196 rm -f conftest.$ac_objext conftest$ac_exeext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32198 (eval $ac_link) 2>conftest.er1
32200 grep -v '^ *+' conftest.er1 >conftest.err
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
32205 { ac_try='test -z "$ac_c_werror_flag"
32206 || test ! -s conftest.err'
32207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208 (eval $ac_try) 2>&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest$ac_exeext'
32213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214 (eval $ac_try) 2>&5
32216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217 (exit $ac_status); }; }; then
32218 ac_cv_lib_iodbc_SQLDriverConnect=yes
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32223 ac_cv_lib_iodbc_SQLDriverConnect=no
32225 rm -f conftest.err conftest.$ac_objext \
32226 conftest$ac_exeext conftest.$ac_ext
32227 LIBS=$ac_check_lib_save_LIBS
32229 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32230 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32231 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32237 if test $have_iodbc = yes ; then
32238 ol_link_sql="-liodbc"
32243 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32244 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32245 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32246 echo $ECHO_N "(cached) $ECHO_C" >&6
32248 ac_check_lib_save_LIBS=$LIBS
32249 LIBS="-lodbc $LIBS"
32250 cat >conftest.$ac_ext <<_ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h. */
32257 /* Override any gcc2 internal prototype to avoid an error. */
32261 /* We use char because int might match the return type of a gcc2
32262 builtin and then its argument prototype would still apply. */
32263 char SQLDriverConnect ();
32267 SQLDriverConnect ();
32272 rm -f conftest.$ac_objext conftest$ac_exeext
32273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32274 (eval $ac_link) 2>conftest.er1
32276 grep -v '^ *+' conftest.er1 >conftest.err
32278 cat conftest.err >&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); } &&
32281 { ac_try='test -z "$ac_c_werror_flag"
32282 || test ! -s conftest.err'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; } &&
32288 { ac_try='test -s conftest$ac_exeext'
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 ac_cv_lib_odbc_SQLDriverConnect=yes
32296 echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 ac_cv_lib_odbc_SQLDriverConnect=no
32301 rm -f conftest.err conftest.$ac_objext \
32302 conftest$ac_exeext conftest.$ac_ext
32303 LIBS=$ac_check_lib_save_LIBS
32305 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32306 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32307 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32313 if test $have_odbc = yes ; then
32314 ol_link_sql="-lodbc"
32319 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32320 echo "$as_me: error: unknown ODBC library" >&2;}
32321 { (exit 1); exit 1; }; }
32329 if test $ol_link_sql != no ; then
32330 SLAPD_SQL_LIBS="$ol_link_sql"
32332 elif test $ol_enable_sql != auto ; then
32333 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32334 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32335 { (exit 1); exit 1; }; }
32341 for ac_header in unicode/utypes.h
32343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32345 echo "$as_me:$LINENO: checking for $ac_header" >&5
32346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32348 echo $ECHO_N "(cached) $ECHO_C" >&6
32350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32353 # Is the header compilable?
32354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h. */
32362 $ac_includes_default
32363 #include <$ac_header>
32365 rm -f conftest.$ac_objext
32366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32367 (eval $ac_compile) 2>conftest.er1
32369 grep -v '^ *+' conftest.er1 >conftest.err
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } &&
32374 { ac_try='test -z "$ac_c_werror_flag"
32375 || test ! -s conftest.err'
32376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32377 (eval $ac_try) 2>&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; } &&
32381 { ac_try='test -s conftest.$ac_objext'
32382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32383 (eval $ac_try) 2>&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; }; then
32387 ac_header_compiler=yes
32389 echo "$as_me: failed program was:" >&5
32390 sed 's/^/| /' conftest.$ac_ext >&5
32392 ac_header_compiler=no
32394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32396 echo "${ECHO_T}$ac_header_compiler" >&6
32398 # Is the header present?
32399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32401 cat >conftest.$ac_ext <<_ACEOF
32404 cat confdefs.h >>conftest.$ac_ext
32405 cat >>conftest.$ac_ext <<_ACEOF
32406 /* end confdefs.h. */
32407 #include <$ac_header>
32409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32412 grep -v '^ *+' conftest.er1 >conftest.err
32414 cat conftest.err >&5
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } >/dev/null; then
32417 if test -s conftest.err; then
32418 ac_cpp_err=$ac_c_preproc_warn_flag
32419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32426 if test -z "$ac_cpp_err"; then
32427 ac_header_preproc=yes
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32432 ac_header_preproc=no
32434 rm -f conftest.err conftest.$ac_ext
32435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32436 echo "${ECHO_T}$ac_header_preproc" >&6
32438 # So? What about this header?
32439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32445 ac_header_preproc=yes
32448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32462 ## --------------------------------------------- ##
32463 ## Report this to <http://www.openldap.org/its/> ##
32464 ## --------------------------------------------- ##
32467 sed "s/^/$as_me: WARNING: /" >&2
32470 echo "$as_me:$LINENO: checking for $ac_header" >&5
32471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32475 eval "$as_ac_Header=\$ac_header_preproc"
32477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32482 cat >>confdefs.h <<_ACEOF
32483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32490 if test $ac_cv_header_unicode_utypes_h = yes ; then
32491 OL_ICULIBS="-licuuc -licudata"
32493 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32494 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32495 if test "${ol_cv_lib_icu+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32500 LIBS="$OL_ICULIBS $LIBS"
32501 cat >conftest.$ac_ext <<_ACEOF
32504 cat confdefs.h >>conftest.$ac_ext
32505 cat >>conftest.$ac_ext <<_ACEOF
32506 /* end confdefs.h. */
32508 #include <unicode/utypes.h>
32514 (void) u_errorName(0);
32520 rm -f conftest.$ac_objext conftest$ac_exeext
32521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32522 (eval $ac_link) 2>conftest.er1
32524 grep -v '^ *+' conftest.er1 >conftest.err
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_c_werror_flag"
32530 || test ! -s conftest.err'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } &&
32536 { ac_try='test -s conftest$ac_exeext'
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; }; then
32544 echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32549 rm -f conftest.err conftest.$ac_objext \
32550 conftest$ac_exeext conftest.$ac_ext
32554 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32555 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32557 if test $ol_cv_lib_icu != no ; then
32558 ol_icu="$OL_ICULIBS"
32560 cat >>confdefs.h <<\_ACEOF
32567 if test "$ol_icu" = no ; then
32568 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32569 echo "$as_me: WARNING: ICU not available" >&2;}
32576 if test $ol_with_cyrus_sasl != no ; then
32579 for ac_header in sasl/sasl.h sasl.h
32581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32583 echo "$as_me:$LINENO: checking for $ac_header" >&5
32584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32586 echo $ECHO_N "(cached) $ECHO_C" >&6
32588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32591 # Is the header compilable?
32592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32594 cat >conftest.$ac_ext <<_ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h. */
32600 $ac_includes_default
32601 #include <$ac_header>
32603 rm -f conftest.$ac_objext
32604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32605 (eval $ac_compile) 2>conftest.er1
32607 grep -v '^ *+' conftest.er1 >conftest.err
32609 cat conftest.err >&5
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } &&
32612 { ac_try='test -z "$ac_c_werror_flag"
32613 || test ! -s conftest.err'
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); }; } &&
32619 { ac_try='test -s conftest.$ac_objext'
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 ac_header_compiler=yes
32627 echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32630 ac_header_compiler=no
32632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32634 echo "${ECHO_T}$ac_header_compiler" >&6
32636 # Is the header present?
32637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32639 cat >conftest.$ac_ext <<_ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h. */
32645 #include <$ac_header>
32647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32650 grep -v '^ *+' conftest.er1 >conftest.err
32652 cat conftest.err >&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); } >/dev/null; then
32655 if test -s conftest.err; then
32656 ac_cpp_err=$ac_c_preproc_warn_flag
32657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32664 if test -z "$ac_cpp_err"; then
32665 ac_header_preproc=yes
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_header_preproc=no
32672 rm -f conftest.err conftest.$ac_ext
32673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32674 echo "${ECHO_T}$ac_header_preproc" >&6
32676 # So? What about this header?
32677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32683 ac_header_preproc=yes
32686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32700 ## --------------------------------------------- ##
32701 ## Report this to <http://www.openldap.org/its/> ##
32702 ## --------------------------------------------- ##
32705 sed "s/^/$as_me: WARNING: /" >&2
32708 echo "$as_me:$LINENO: checking for $ac_header" >&5
32709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32711 echo $ECHO_N "(cached) $ECHO_C" >&6
32713 eval "$as_ac_Header=\$ac_header_preproc"
32715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32720 cat >>confdefs.h <<_ACEOF
32721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32729 if test $ac_cv_header_sasl_sasl_h = yes ||
32730 test $ac_cv_header_sasl_h = yes; then
32731 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32732 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32733 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32734 echo $ECHO_N "(cached) $ECHO_C" >&6
32736 ac_check_lib_save_LIBS=$LIBS
32737 LIBS="-lsasl2 $LIBS"
32738 cat >conftest.$ac_ext <<_ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h. */
32745 /* Override any gcc2 internal prototype to avoid an error. */
32749 /* We use char because int might match the return type of a gcc2
32750 builtin and then its argument prototype would still apply. */
32751 char sasl_client_init ();
32755 sasl_client_init ();
32760 rm -f conftest.$ac_objext conftest$ac_exeext
32761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32762 (eval $ac_link) 2>conftest.er1
32764 grep -v '^ *+' conftest.er1 >conftest.err
32766 cat conftest.err >&5
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
32769 { ac_try='test -z "$ac_c_werror_flag"
32770 || test ! -s conftest.err'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest$ac_exeext'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_lib_sasl2_sasl_client_init=yes
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32787 ac_cv_lib_sasl2_sasl_client_init=no
32789 rm -f conftest.err conftest.$ac_objext \
32790 conftest$ac_exeext conftest.$ac_ext
32791 LIBS=$ac_check_lib_save_LIBS
32793 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32794 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32795 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32796 ol_link_sasl="-lsasl2"
32798 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32799 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32800 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32801 echo $ECHO_N "(cached) $ECHO_C" >&6
32803 ac_check_lib_save_LIBS=$LIBS
32804 LIBS="-lsasl $LIBS"
32805 cat >conftest.$ac_ext <<_ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32812 /* Override any gcc2 internal prototype to avoid an error. */
32816 /* We use char because int might match the return type of a gcc2
32817 builtin and then its argument prototype would still apply. */
32818 char sasl_client_init ();
32822 sasl_client_init ();
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32829 (eval $ac_link) 2>conftest.er1
32831 grep -v '^ *+' conftest.er1 >conftest.err
32833 cat conftest.err >&5
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); } &&
32836 { ac_try='test -z "$ac_c_werror_flag"
32837 || test ! -s conftest.err'
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; } &&
32843 { ac_try='test -s conftest$ac_exeext'
32844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845 (eval $ac_try) 2>&5
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; }; then
32849 ac_cv_lib_sasl_sasl_client_init=yes
32851 echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32854 ac_cv_lib_sasl_sasl_client_init=no
32856 rm -f conftest.err conftest.$ac_objext \
32857 conftest$ac_exeext conftest.$ac_ext
32858 LIBS=$ac_check_lib_save_LIBS
32860 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32861 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32862 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32863 ol_link_sasl="-lsasl"
32870 if test $ol_link_sasl = no ; then
32871 if test $ol_with_cyrus_sasl != auto ; then
32872 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32873 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32874 { (exit 1); exit 1; }; }
32876 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32877 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32878 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32879 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32880 if test $ol_link_tls = no ; then
32881 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32882 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32886 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32887 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32888 if test "${ol_cv_sasl_compat+set}" = set; then
32889 echo $ECHO_N "(cached) $ECHO_C" >&6
32892 cat >conftest.$ac_ext <<_ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h. */
32899 #ifdef HAVE_SASL_SASL_H
32900 #include <sasl/sasl.h>
32905 /* Require 2.1.15+ */
32906 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32907 char *__sasl_compat = "2.2+ or better okay (we guess)";
32908 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32909 && SASL_VERSION_STEP >=15
32910 char *__sasl_compat = "2.1.15+ or better okay";
32914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32915 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32916 ol_cv_sasl_compat=yes
32918 ol_cv_sasl_compat=no
32923 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32924 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32926 if test $ol_cv_sasl_compat = no ; then
32928 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32929 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32930 { (exit 1); exit 1; }; }
32934 cat >>confdefs.h <<\_ACEOF
32935 #define HAVE_CYRUS_SASL 1
32938 SASL_LIBS="$ol_link_sasl"
32939 if test $ol_enable_spasswd != no ; then
32940 ol_link_spasswd=yes
32943 ac_save_LIBS="$LIBS"
32944 LIBS="$LIBS $ol_link_sasl"
32945 echo "$as_me:$LINENO: checking for sasl_version" >&5
32946 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32947 if test "${ac_cv_func_sasl_version+set}" = set; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32950 cat >conftest.$ac_ext <<_ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h. */
32956 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32958 #define sasl_version innocuous_sasl_version
32960 /* System header to define __stub macros and hopefully few prototypes,
32961 which can conflict with char sasl_version (); below.
32962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963 <limits.h> exists even on freestanding compilers. */
32966 # include <limits.h>
32968 # include <assert.h>
32971 #undef sasl_version
32973 /* Override any gcc2 internal prototype to avoid an error. */
32978 /* We use char because int might match the return type of a gcc2
32979 builtin and then its argument prototype would still apply. */
32980 char sasl_version ();
32981 /* The GNU C library defines this for functions which it implements
32982 to always fail with ENOSYS. Some functions are actually named
32983 something starting with __ and the normal name is an alias. */
32984 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32987 char (*f) () = sasl_version;
32996 return f != sasl_version;
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33003 (eval $ac_link) 2>conftest.er1
33005 grep -v '^ *+' conftest.er1 >conftest.err
33007 cat conftest.err >&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } &&
33010 { ac_try='test -z "$ac_c_werror_flag"
33011 || test ! -s conftest.err'
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest$ac_exeext'
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023 ac_cv_func_sasl_version=yes
33025 echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33028 ac_cv_func_sasl_version=no
33030 rm -f conftest.err conftest.$ac_objext \
33031 conftest$ac_exeext conftest.$ac_ext
33033 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33034 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33035 if test $ac_cv_func_sasl_version = yes; then
33037 cat >>confdefs.h <<\_ACEOF
33038 #define HAVE_SASL_VERSION 1
33043 LIBS="$ac_save_LIBS"
33049 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33050 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33051 if test $ol_link_tls = no ; then
33052 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33053 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33057 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33059 if test -r /dev/urandom ; then
33060 dev="/dev/urandom";
33061 elif test -r /idev/urandom ; then
33062 dev="/idev/urandom";
33063 elif test -r /dev/srandom ; then
33064 dev="/dev/srandom";
33065 elif test -r /dev/random ; then
33067 elif test -r /idev/random ; then
33068 dev="/idev/random";
33071 if test $dev != no ; then
33073 cat >>confdefs.h <<_ACEOF
33074 #define URANDOM_DEVICE "$dev"
33081 if test $ol_with_fetch != no ; then
33083 LIBS="-lfetch -lcom_err $LIBS"
33084 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33085 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33086 if test "${ol_cv_lib_fetch+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33090 cat >conftest.$ac_ext <<_ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33097 #include <sys/param.h>
33103 struct url *u = fetchParseURL("file:///");
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33110 (eval $ac_link) 2>conftest.er1
33112 grep -v '^ *+' conftest.er1 >conftest.err
33114 cat conftest.err >&5
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); } &&
33117 { ac_try='test -z "$ac_c_werror_flag"
33118 || test ! -s conftest.err'
33119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33120 (eval $ac_try) 2>&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); }; } &&
33124 { ac_try='test -s conftest$ac_exeext'
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; }; then
33130 ol_cv_lib_fetch=yes
33132 echo "$as_me: failed program was:" >&5
33133 sed 's/^/| /' conftest.$ac_ext >&5
33137 rm -f conftest.err conftest.$ac_objext \
33138 conftest$ac_exeext conftest.$ac_ext
33140 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33141 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33143 if test $ol_cv_lib_fetch != no ; then
33144 ol_link_fetch="-lfetch -lcom_err"
33146 cat >>confdefs.h <<\_ACEOF
33147 #define HAVE_FETCH 1
33153 if test $ol_cv_lib_fetch != no ; then
33154 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33155 ol_link_fetch=freebsd
33157 elif test $ol_with_fetch != auto ; then
33158 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33159 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33160 { (exit 1); exit 1; }; }
33164 if test $ol_enable_crypt != no ; then
33166 LIBS="$TLS_LIBS $LIBS"
33168 echo "$as_me:$LINENO: checking for crypt" >&5
33169 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33170 if test "${ac_cv_func_crypt+set}" = set; then
33171 echo $ECHO_N "(cached) $ECHO_C" >&6
33173 cat >conftest.$ac_ext <<_ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h. */
33179 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33181 #define crypt innocuous_crypt
33183 /* System header to define __stub macros and hopefully few prototypes,
33184 which can conflict with char crypt (); below.
33185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33186 <limits.h> exists even on freestanding compilers. */
33189 # include <limits.h>
33191 # include <assert.h>
33196 /* Override any gcc2 internal prototype to avoid an error. */
33201 /* We use char because int might match the return type of a gcc2
33202 builtin and then its argument prototype would still apply. */
33204 /* The GNU C library defines this for functions which it implements
33205 to always fail with ENOSYS. Some functions are actually named
33206 something starting with __ and the normal name is an alias. */
33207 #if defined (__stub_crypt) || defined (__stub___crypt)
33210 char (*f) () = crypt;
33224 rm -f conftest.$ac_objext conftest$ac_exeext
33225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33226 (eval $ac_link) 2>conftest.er1
33228 grep -v '^ *+' conftest.er1 >conftest.err
33230 cat conftest.err >&5
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); } &&
33233 { ac_try='test -z "$ac_c_werror_flag"
33234 || test ! -s conftest.err'
33235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236 (eval $ac_try) 2>&5
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); }; } &&
33240 { ac_try='test -s conftest$ac_exeext'
33241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242 (eval $ac_try) 2>&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
33246 ac_cv_func_crypt=yes
33248 echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33251 ac_cv_func_crypt=no
33253 rm -f conftest.err conftest.$ac_objext \
33254 conftest$ac_exeext conftest.$ac_ext
33256 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33257 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33258 if test $ac_cv_func_crypt = yes; then
33263 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33264 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33265 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33266 echo $ECHO_N "(cached) $ECHO_C" >&6
33268 ac_check_lib_save_LIBS=$LIBS
33269 LIBS="-lcrypt $LIBS"
33270 cat >conftest.$ac_ext <<_ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h. */
33277 /* Override any gcc2 internal prototype to avoid an error. */
33281 /* We use char because int might match the return type of a gcc2
33282 builtin and then its argument prototype would still apply. */
33292 rm -f conftest.$ac_objext conftest$ac_exeext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33294 (eval $ac_link) 2>conftest.er1
33296 grep -v '^ *+' conftest.er1 >conftest.err
33298 cat conftest.err >&5
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } &&
33301 { ac_try='test -z "$ac_c_werror_flag"
33302 || test ! -s conftest.err'
33303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304 (eval $ac_try) 2>&5
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); }; } &&
33308 { ac_try='test -s conftest$ac_exeext'
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 ac_cv_lib_crypt_crypt=yes
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33319 ac_cv_lib_crypt_crypt=no
33321 rm -f conftest.err conftest.$ac_objext \
33322 conftest$ac_exeext conftest.$ac_ext
33323 LIBS=$ac_check_lib_save_LIBS
33325 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33326 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33327 if test $ac_cv_lib_crypt_crypt = yes; then
33328 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33339 if test $have_crypt = yes ; then
33341 cat >>confdefs.h <<\_ACEOF
33342 #define HAVE_CRYPT 1
33346 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33347 echo "$as_me: WARNING: could not find crypt" >&2;}
33348 if test $ol_enable_crypt = yes ; then
33349 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33350 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33351 { (exit 1); exit 1; }; }
33354 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33355 echo "$as_me: WARNING: disabling crypt support" >&2;}
33360 if test $ol_enable_proctitle != no ; then
33361 echo "$as_me:$LINENO: checking for setproctitle" >&5
33362 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33363 if test "${ac_cv_func_setproctitle+set}" = set; then
33364 echo $ECHO_N "(cached) $ECHO_C" >&6
33366 cat >conftest.$ac_ext <<_ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h. */
33372 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33374 #define setproctitle innocuous_setproctitle
33376 /* System header to define __stub macros and hopefully few prototypes,
33377 which can conflict with char setproctitle (); below.
33378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33379 <limits.h> exists even on freestanding compilers. */
33382 # include <limits.h>
33384 # include <assert.h>
33387 #undef setproctitle
33389 /* Override any gcc2 internal prototype to avoid an error. */
33394 /* We use char because int might match the return type of a gcc2
33395 builtin and then its argument prototype would still apply. */
33396 char setproctitle ();
33397 /* The GNU C library defines this for functions which it implements
33398 to always fail with ENOSYS. Some functions are actually named
33399 something starting with __ and the normal name is an alias. */
33400 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33403 char (*f) () = setproctitle;
33412 return f != setproctitle;
33417 rm -f conftest.$ac_objext conftest$ac_exeext
33418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33419 (eval $ac_link) 2>conftest.er1
33421 grep -v '^ *+' conftest.er1 >conftest.err
33423 cat conftest.err >&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); } &&
33426 { ac_try='test -z "$ac_c_werror_flag"
33427 || test ! -s conftest.err'
33428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429 (eval $ac_try) 2>&5
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest$ac_exeext'
33434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435 (eval $ac_try) 2>&5
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; }; then
33439 ac_cv_func_setproctitle=yes
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_cv_func_setproctitle=no
33446 rm -f conftest.err conftest.$ac_objext \
33447 conftest$ac_exeext conftest.$ac_ext
33449 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33450 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33451 if test $ac_cv_func_setproctitle = yes; then
33452 have_setproctitle=yes
33455 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33456 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33457 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33460 ac_check_lib_save_LIBS=$LIBS
33461 LIBS="-lutil $LIBS"
33462 cat >conftest.$ac_ext <<_ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h. */
33469 /* Override any gcc2 internal prototype to avoid an error. */
33473 /* We use char because int might match the return type of a gcc2
33474 builtin and then its argument prototype would still apply. */
33475 char setproctitle ();
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33486 (eval $ac_link) 2>conftest.er1
33488 grep -v '^ *+' conftest.er1 >conftest.err
33490 cat conftest.err >&5
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); } &&
33493 { ac_try='test -z "$ac_c_werror_flag"
33494 || test ! -s conftest.err'
33495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496 (eval $ac_try) 2>&5
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); }; } &&
33500 { ac_try='test -s conftest$ac_exeext'
33501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502 (eval $ac_try) 2>&5
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); }; }; then
33506 ac_cv_lib_util_setproctitle=yes
33508 echo "$as_me: failed program was:" >&5
33509 sed 's/^/| /' conftest.$ac_ext >&5
33511 ac_cv_lib_util_setproctitle=no
33513 rm -f conftest.err conftest.$ac_objext \
33514 conftest$ac_exeext conftest.$ac_ext
33515 LIBS=$ac_check_lib_save_LIBS
33517 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33518 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33519 if test $ac_cv_lib_util_setproctitle = yes; then
33520 have_setproctitle=yes
33521 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33523 have_setproctitle=no
33525 "setproctitle.$ac_objext" | \
33526 *" setproctitle.$ac_objext" | \
33527 "setproctitle.$ac_objext "* | \
33528 *" setproctitle.$ac_objext "* ) ;;
33529 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33532 LIBSRCS="$LIBSRCS setproctitle.c"
33538 if test $have_setproctitle = yes ; then
33540 cat >>confdefs.h <<\_ACEOF
33541 #define HAVE_SETPROCTITLE 1
33547 if test $ol_enable_slp != no ; then
33549 for ac_header in slp.h
33551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33553 echo "$as_me:$LINENO: checking for $ac_header" >&5
33554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33561 # Is the header compilable?
33562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33564 cat >conftest.$ac_ext <<_ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33570 $ac_includes_default
33571 #include <$ac_header>
33573 rm -f conftest.$ac_objext
33574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33575 (eval $ac_compile) 2>conftest.er1
33577 grep -v '^ *+' conftest.er1 >conftest.err
33579 cat conftest.err >&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } &&
33582 { ac_try='test -z "$ac_c_werror_flag"
33583 || test ! -s conftest.err'
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest.$ac_objext'
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595 ac_header_compiler=yes
33597 echo "$as_me: failed program was:" >&5
33598 sed 's/^/| /' conftest.$ac_ext >&5
33600 ac_header_compiler=no
33602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33604 echo "${ECHO_T}$ac_header_compiler" >&6
33606 # Is the header present?
33607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33609 cat >conftest.$ac_ext <<_ACEOF
33612 cat confdefs.h >>conftest.$ac_ext
33613 cat >>conftest.$ac_ext <<_ACEOF
33614 /* end confdefs.h. */
33615 #include <$ac_header>
33617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33620 grep -v '^ *+' conftest.er1 >conftest.err
33622 cat conftest.err >&5
33623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624 (exit $ac_status); } >/dev/null; then
33625 if test -s conftest.err; then
33626 ac_cpp_err=$ac_c_preproc_warn_flag
33627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33634 if test -z "$ac_cpp_err"; then
33635 ac_header_preproc=yes
33637 echo "$as_me: failed program was:" >&5
33638 sed 's/^/| /' conftest.$ac_ext >&5
33640 ac_header_preproc=no
33642 rm -f conftest.err conftest.$ac_ext
33643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33644 echo "${ECHO_T}$ac_header_preproc" >&6
33646 # So? What about this header?
33647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33653 ac_header_preproc=yes
33656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33670 ## --------------------------------------------- ##
33671 ## Report this to <http://www.openldap.org/its/> ##
33672 ## --------------------------------------------- ##
33675 sed "s/^/$as_me: WARNING: /" >&2
33678 echo "$as_me:$LINENO: checking for $ac_header" >&5
33679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33683 eval "$as_ac_Header=\$ac_header_preproc"
33685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33690 cat >>confdefs.h <<_ACEOF
33691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33699 if test $ac_cv_header_slp_h = yes ; then
33700 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33701 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33702 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33703 echo $ECHO_N "(cached) $ECHO_C" >&6
33705 ac_check_lib_save_LIBS=$LIBS
33707 cat >conftest.$ac_ext <<_ACEOF
33710 cat confdefs.h >>conftest.$ac_ext
33711 cat >>conftest.$ac_ext <<_ACEOF
33712 /* end confdefs.h. */
33714 /* Override any gcc2 internal prototype to avoid an error. */
33718 /* We use char because int might match the return type of a gcc2
33719 builtin and then its argument prototype would still apply. */
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731 (eval $ac_link) 2>conftest.er1
33733 grep -v '^ *+' conftest.er1 >conftest.err
33735 cat conftest.err >&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } &&
33738 { ac_try='test -z "$ac_c_werror_flag"
33739 || test ! -s conftest.err'
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; } &&
33745 { ac_try='test -s conftest$ac_exeext'
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
33751 ac_cv_lib_slp_SLPOpen=yes
33753 echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33756 ac_cv_lib_slp_SLPOpen=no
33758 rm -f conftest.err conftest.$ac_objext \
33759 conftest$ac_exeext conftest.$ac_ext
33760 LIBS=$ac_check_lib_save_LIBS
33762 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33763 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33764 if test $ac_cv_lib_slp_SLPOpen = yes; then
33770 if test $have_slp = yes ; then
33772 cat >>confdefs.h <<\_ACEOF
33776 SLAPD_SLP_LIBS=-lslp
33779 elif test $ol_enable_slp = yes ; then
33780 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33781 echo "$as_me: error: SLP not found" >&2;}
33782 { (exit 1); exit 1; }; }
33787 echo "$as_me:$LINENO: checking for mode_t" >&5
33788 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33789 if test "${ac_cv_type_mode_t+set}" = set; then
33790 echo $ECHO_N "(cached) $ECHO_C" >&6
33792 cat >conftest.$ac_ext <<_ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h. */
33798 $ac_includes_default
33804 if (sizeof (mode_t))
33810 rm -f conftest.$ac_objext
33811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33812 (eval $ac_compile) 2>conftest.er1
33814 grep -v '^ *+' conftest.er1 >conftest.err
33816 cat conftest.err >&5
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); } &&
33819 { ac_try='test -z "$ac_c_werror_flag"
33820 || test ! -s conftest.err'
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; } &&
33826 { ac_try='test -s conftest.$ac_objext'
33827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33828 (eval $ac_try) 2>&5
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; }; then
33832 ac_cv_type_mode_t=yes
33834 echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33837 ac_cv_type_mode_t=no
33839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33841 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33842 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33843 if test $ac_cv_type_mode_t = yes; then
33847 cat >>confdefs.h <<_ACEOF
33853 echo "$as_me:$LINENO: checking for off_t" >&5
33854 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33855 if test "${ac_cv_type_off_t+set}" = set; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33858 cat >conftest.$ac_ext <<_ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33864 $ac_includes_default
33870 if (sizeof (off_t))
33876 rm -f conftest.$ac_objext
33877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33878 (eval $ac_compile) 2>conftest.er1
33880 grep -v '^ *+' conftest.er1 >conftest.err
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } &&
33885 { ac_try='test -z "$ac_c_werror_flag"
33886 || test ! -s conftest.err'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; } &&
33892 { ac_try='test -s conftest.$ac_objext'
33893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894 (eval $ac_try) 2>&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); }; }; then
33898 ac_cv_type_off_t=yes
33900 echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33903 ac_cv_type_off_t=no
33905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33907 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33908 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33909 if test $ac_cv_type_off_t = yes; then
33913 cat >>confdefs.h <<_ACEOF
33919 echo "$as_me:$LINENO: checking for pid_t" >&5
33920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33921 if test "${ac_cv_type_pid_t+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33924 cat >conftest.$ac_ext <<_ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h. */
33930 $ac_includes_default
33936 if (sizeof (pid_t))
33942 rm -f conftest.$ac_objext
33943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33944 (eval $ac_compile) 2>conftest.er1
33946 grep -v '^ *+' conftest.er1 >conftest.err
33948 cat conftest.err >&5
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); } &&
33951 { ac_try='test -z "$ac_c_werror_flag"
33952 || test ! -s conftest.err'
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; } &&
33958 { ac_try='test -s conftest.$ac_objext'
33959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960 (eval $ac_try) 2>&5
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; }; then
33964 ac_cv_type_pid_t=yes
33966 echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33969 ac_cv_type_pid_t=no
33971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33973 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33974 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33975 if test $ac_cv_type_pid_t = yes; then
33979 cat >>confdefs.h <<_ACEOF
33985 echo "$as_me:$LINENO: checking for ssize_t" >&5
33986 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33987 if test "${ac_cv_type_ssize_t+set}" = set; then
33988 echo $ECHO_N "(cached) $ECHO_C" >&6
33990 cat >conftest.$ac_ext <<_ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h. */
33996 $ac_includes_default
34002 if (sizeof (ssize_t))
34008 rm -f conftest.$ac_objext
34009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34010 (eval $ac_compile) 2>conftest.er1
34012 grep -v '^ *+' conftest.er1 >conftest.err
34014 cat conftest.err >&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
34017 { ac_try='test -z "$ac_c_werror_flag"
34018 || test ! -s conftest.err'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; } &&
34024 { ac_try='test -s conftest.$ac_objext'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ac_cv_type_ssize_t=yes
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34035 ac_cv_type_ssize_t=no
34037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34039 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34040 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34041 if test $ac_cv_type_ssize_t = yes; then
34045 cat >>confdefs.h <<_ACEOF
34046 #define ssize_t signed int
34051 echo "$as_me:$LINENO: checking for caddr_t" >&5
34052 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34053 if test "${ac_cv_type_caddr_t+set}" = set; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34056 cat >conftest.$ac_ext <<_ACEOF
34059 cat confdefs.h >>conftest.$ac_ext
34060 cat >>conftest.$ac_ext <<_ACEOF
34061 /* end confdefs.h. */
34062 $ac_includes_default
34068 if (sizeof (caddr_t))
34074 rm -f conftest.$ac_objext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34076 (eval $ac_compile) 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
34083 { ac_try='test -z "$ac_c_werror_flag"
34084 || test ! -s conftest.err'
34085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086 (eval $ac_try) 2>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; } &&
34090 { ac_try='test -s conftest.$ac_objext'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; }; then
34096 ac_cv_type_caddr_t=yes
34098 echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34101 ac_cv_type_caddr_t=no
34103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34105 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34106 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34107 if test $ac_cv_type_caddr_t = yes; then
34111 cat >>confdefs.h <<_ACEOF
34112 #define caddr_t char *
34117 echo "$as_me:$LINENO: checking for size_t" >&5
34118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34119 if test "${ac_cv_type_size_t+set}" = set; then
34120 echo $ECHO_N "(cached) $ECHO_C" >&6
34122 cat >conftest.$ac_ext <<_ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h. */
34128 $ac_includes_default
34134 if (sizeof (size_t))
34140 rm -f conftest.$ac_objext
34141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34142 (eval $ac_compile) 2>conftest.er1
34144 grep -v '^ *+' conftest.er1 >conftest.err
34146 cat conftest.err >&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } &&
34149 { ac_try='test -z "$ac_c_werror_flag"
34150 || test ! -s conftest.err'
34151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152 (eval $ac_try) 2>&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); }; } &&
34156 { ac_try='test -s conftest.$ac_objext'
34157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34158 (eval $ac_try) 2>&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); }; }; then
34162 ac_cv_type_size_t=yes
34164 echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34167 ac_cv_type_size_t=no
34169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34171 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34172 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34173 if test $ac_cv_type_size_t = yes; then
34177 cat >>confdefs.h <<_ACEOF
34178 #define size_t unsigned
34184 echo "$as_me:$LINENO: checking for long long" >&5
34185 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34186 if test "${ac_cv_type_long_long+set}" = set; then
34187 echo $ECHO_N "(cached) $ECHO_C" >&6
34189 cat >conftest.$ac_ext <<_ACEOF
34192 cat confdefs.h >>conftest.$ac_ext
34193 cat >>conftest.$ac_ext <<_ACEOF
34194 /* end confdefs.h. */
34195 $ac_includes_default
34199 if ((long long *) 0)
34201 if (sizeof (long long))
34207 rm -f conftest.$ac_objext
34208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34209 (eval $ac_compile) 2>conftest.er1
34211 grep -v '^ *+' conftest.er1 >conftest.err
34213 cat conftest.err >&5
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } &&
34216 { ac_try='test -z "$ac_c_werror_flag"
34217 || test ! -s conftest.err'
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest.$ac_objext'
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 ac_cv_type_long_long=yes
34231 echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34234 ac_cv_type_long_long=no
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34238 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34239 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34240 if test $ac_cv_type_long_long = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243 #define HAVE_LONG_LONG 1
34249 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34250 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34251 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34252 echo $ECHO_N "(cached) $ECHO_C" >&6
34254 cat >conftest.$ac_ext <<_ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h. */
34260 $ac_includes_default
34264 if ((ptrdiff_t *) 0)
34266 if (sizeof (ptrdiff_t))
34272 rm -f conftest.$ac_objext
34273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34274 (eval $ac_compile) 2>conftest.er1
34276 grep -v '^ *+' conftest.er1 >conftest.err
34278 cat conftest.err >&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); } &&
34281 { ac_try='test -z "$ac_c_werror_flag"
34282 || test ! -s conftest.err'
34283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284 (eval $ac_try) 2>&5
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; } &&
34288 { ac_try='test -s conftest.$ac_objext'
34289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34290 (eval $ac_try) 2>&5
34292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293 (exit $ac_status); }; }; then
34294 ac_cv_type_ptrdiff_t=yes
34296 echo "$as_me: failed program was:" >&5
34297 sed 's/^/| /' conftest.$ac_ext >&5
34299 ac_cv_type_ptrdiff_t=no
34301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34303 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34304 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34305 if test $ac_cv_type_ptrdiff_t = yes; then
34307 cat >>confdefs.h <<_ACEOF
34308 #define HAVE_PTRDIFF_T 1
34315 echo "$as_me:$LINENO: checking for socklen_t" >&5
34316 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34317 if test "${ac_cv_type_socklen_t+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34320 cat >conftest.$ac_ext <<_ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h. */
34326 $ac_includes_default
34327 #ifdef HAVE_SYS_SOCKET_H
34328 #include <sys/socket.h>
34335 if ((socklen_t *) 0)
34337 if (sizeof (socklen_t))
34343 rm -f conftest.$ac_objext
34344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34345 (eval $ac_compile) 2>conftest.er1
34347 grep -v '^ *+' conftest.er1 >conftest.err
34349 cat conftest.err >&5
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); } &&
34352 { ac_try='test -z "$ac_c_werror_flag"
34353 || test ! -s conftest.err'
34354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355 (eval $ac_try) 2>&5
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); }; } &&
34359 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34365 ac_cv_type_socklen_t=yes
34367 echo "$as_me: failed program was:" >&5
34368 sed 's/^/| /' conftest.$ac_ext >&5
34370 ac_cv_type_socklen_t=no
34372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34374 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34375 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34376 if test $ac_cv_type_socklen_t = yes; then
34380 cat >>confdefs.h <<_ACEOF
34381 #define socklen_t int
34387 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34388 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34389 if test "${ac_cv_type_signal+set}" = set; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34392 cat >conftest.$ac_ext <<_ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h. */
34398 #include <sys/types.h>
34399 #include <signal.h>
34404 extern "C" void (*signal (int, void (*)(int)))(int);
34406 void (*signal ()) ();
34417 rm -f conftest.$ac_objext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34419 (eval $ac_compile) 2>conftest.er1
34421 grep -v '^ *+' conftest.er1 >conftest.err
34423 cat conftest.err >&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } &&
34426 { ac_try='test -z "$ac_c_werror_flag"
34427 || test ! -s conftest.err'
34428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429 (eval $ac_try) 2>&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); }; } &&
34433 { ac_try='test -s conftest.$ac_objext'
34434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435 (eval $ac_try) 2>&5
34437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438 (exit $ac_status); }; }; then
34439 ac_cv_type_signal=void
34441 echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34444 ac_cv_type_signal=int
34446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34448 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34449 echo "${ECHO_T}$ac_cv_type_signal" >&6
34451 cat >>confdefs.h <<_ACEOF
34452 #define RETSIGTYPE $ac_cv_type_signal
34457 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34458 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34459 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34460 echo $ECHO_N "(cached) $ECHO_C" >&6
34462 cat >conftest.$ac_ext <<_ACEOF
34465 cat confdefs.h >>conftest.$ac_ext
34466 cat >>conftest.$ac_ext <<_ACEOF
34467 /* end confdefs.h. */
34468 $ac_includes_default
34469 #include <signal.h>
34475 if ((sig_atomic_t *) 0)
34477 if (sizeof (sig_atomic_t))
34483 rm -f conftest.$ac_objext
34484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34485 (eval $ac_compile) 2>conftest.er1
34487 grep -v '^ *+' conftest.er1 >conftest.err
34489 cat conftest.err >&5
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); } &&
34492 { ac_try='test -z "$ac_c_werror_flag"
34493 || test ! -s conftest.err'
34494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495 (eval $ac_try) 2>&5
34497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498 (exit $ac_status); }; } &&
34499 { ac_try='test -s conftest.$ac_objext'
34500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501 (eval $ac_try) 2>&5
34503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504 (exit $ac_status); }; }; then
34505 ac_cv_type_sig_atomic_t=yes
34507 echo "$as_me: failed program was:" >&5
34508 sed 's/^/| /' conftest.$ac_ext >&5
34510 ac_cv_type_sig_atomic_t=no
34512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34514 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34515 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34516 if test $ac_cv_type_sig_atomic_t = yes; then
34520 cat >>confdefs.h <<_ACEOF
34521 #define sig_atomic_t int
34527 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34528 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34529 if test "${ac_cv_type_uid_t+set}" = set; then
34530 echo $ECHO_N "(cached) $ECHO_C" >&6
34532 cat >conftest.$ac_ext <<_ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h. */
34538 #include <sys/types.h>
34541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34542 $EGREP "uid_t" >/dev/null 2>&1; then
34543 ac_cv_type_uid_t=yes
34545 ac_cv_type_uid_t=no
34550 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34551 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34552 if test $ac_cv_type_uid_t = no; then
34554 cat >>confdefs.h <<\_ACEOF
34559 cat >>confdefs.h <<\_ACEOF
34566 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34567 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34568 if test "${ac_cv_header_time+set}" = set; then
34569 echo $ECHO_N "(cached) $ECHO_C" >&6
34571 cat >conftest.$ac_ext <<_ACEOF
34574 cat confdefs.h >>conftest.$ac_ext
34575 cat >>conftest.$ac_ext <<_ACEOF
34576 /* end confdefs.h. */
34577 #include <sys/types.h>
34578 #include <sys/time.h>
34584 if ((struct tm *) 0)
34590 rm -f conftest.$ac_objext
34591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34592 (eval $ac_compile) 2>conftest.er1
34594 grep -v '^ *+' conftest.er1 >conftest.err
34596 cat conftest.err >&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } &&
34599 { ac_try='test -z "$ac_c_werror_flag"
34600 || test ! -s conftest.err'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; } &&
34606 { ac_try='test -s conftest.$ac_objext'
34607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34608 (eval $ac_try) 2>&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); }; }; then
34612 ac_cv_header_time=yes
34614 echo "$as_me: failed program was:" >&5
34615 sed 's/^/| /' conftest.$ac_ext >&5
34617 ac_cv_header_time=no
34619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34621 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34622 echo "${ECHO_T}$ac_cv_header_time" >&6
34623 if test $ac_cv_header_time = yes; then
34625 cat >>confdefs.h <<\_ACEOF
34626 #define TIME_WITH_SYS_TIME 1
34631 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34632 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34633 if test "${ac_cv_struct_tm+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34636 cat >conftest.$ac_ext <<_ACEOF
34639 cat confdefs.h >>conftest.$ac_ext
34640 cat >>conftest.$ac_ext <<_ACEOF
34641 /* end confdefs.h. */
34642 #include <sys/types.h>
34648 struct tm *tp; tp->tm_sec;
34653 rm -f conftest.$ac_objext
34654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34655 (eval $ac_compile) 2>conftest.er1
34657 grep -v '^ *+' conftest.er1 >conftest.err
34659 cat conftest.err >&5
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); } &&
34662 { ac_try='test -z "$ac_c_werror_flag"
34663 || test ! -s conftest.err'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; } &&
34669 { ac_try='test -s conftest.$ac_objext'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 ac_cv_struct_tm=time.h
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34680 ac_cv_struct_tm=sys/time.h
34682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34684 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34685 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34686 if test $ac_cv_struct_tm = sys/time.h; then
34688 cat >>confdefs.h <<\_ACEOF
34689 #define TM_IN_SYS_TIME 1
34694 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34695 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34696 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34699 cat >conftest.$ac_ext <<_ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 $ac_includes_default
34709 static struct stat ac_aggr;
34710 if (ac_aggr.st_blksize)
34716 rm -f conftest.$ac_objext
34717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34718 (eval $ac_compile) 2>conftest.er1
34720 grep -v '^ *+' conftest.er1 >conftest.err
34722 cat conftest.err >&5
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); } &&
34725 { ac_try='test -z "$ac_c_werror_flag"
34726 || test ! -s conftest.err'
34727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728 (eval $ac_try) 2>&5
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); }; } &&
34732 { ac_try='test -s conftest.$ac_objext'
34733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734 (eval $ac_try) 2>&5
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; }; then
34738 ac_cv_member_struct_stat_st_blksize=yes
34740 echo "$as_me: failed program was:" >&5
34741 sed 's/^/| /' conftest.$ac_ext >&5
34743 cat >conftest.$ac_ext <<_ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h. */
34749 $ac_includes_default
34753 static struct stat ac_aggr;
34754 if (sizeof ac_aggr.st_blksize)
34760 rm -f conftest.$ac_objext
34761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34762 (eval $ac_compile) 2>conftest.er1
34764 grep -v '^ *+' conftest.er1 >conftest.err
34766 cat conftest.err >&5
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); } &&
34769 { ac_try='test -z "$ac_c_werror_flag"
34770 || test ! -s conftest.err'
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; } &&
34776 { ac_try='test -s conftest.$ac_objext'
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; }; then
34782 ac_cv_member_struct_stat_st_blksize=yes
34784 echo "$as_me: failed program was:" >&5
34785 sed 's/^/| /' conftest.$ac_ext >&5
34787 ac_cv_member_struct_stat_st_blksize=no
34789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34793 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34794 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34795 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34797 cat >>confdefs.h <<_ACEOF
34798 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34804 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34805 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34806 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34807 echo $ECHO_N "(cached) $ECHO_C" >&6
34809 cat >conftest.$ac_ext <<_ACEOF
34812 cat confdefs.h >>conftest.$ac_ext
34813 cat >>conftest.$ac_ext <<_ACEOF
34814 /* end confdefs.h. */
34815 $ac_includes_default
34821 static struct passwd ac_aggr;
34822 if (ac_aggr.pw_gecos)
34828 rm -f conftest.$ac_objext
34829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34830 (eval $ac_compile) 2>conftest.er1
34832 grep -v '^ *+' conftest.er1 >conftest.err
34834 cat conftest.err >&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); } &&
34837 { ac_try='test -z "$ac_c_werror_flag"
34838 || test ! -s conftest.err'
34839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34840 (eval $ac_try) 2>&5
34842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34843 (exit $ac_status); }; } &&
34844 { ac_try='test -s conftest.$ac_objext'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; }; then
34850 ac_cv_member_struct_passwd_pw_gecos=yes
34852 echo "$as_me: failed program was:" >&5
34853 sed 's/^/| /' conftest.$ac_ext >&5
34855 cat >conftest.$ac_ext <<_ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h. */
34861 $ac_includes_default
34867 static struct passwd ac_aggr;
34868 if (sizeof ac_aggr.pw_gecos)
34874 rm -f conftest.$ac_objext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34876 (eval $ac_compile) 2>conftest.er1
34878 grep -v '^ *+' conftest.er1 >conftest.err
34880 cat conftest.err >&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } &&
34883 { ac_try='test -z "$ac_c_werror_flag"
34884 || test ! -s conftest.err'
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } &&
34890 { ac_try='test -s conftest.$ac_objext'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; }; then
34896 ac_cv_member_struct_passwd_pw_gecos=yes
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 ac_cv_member_struct_passwd_pw_gecos=no
34903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34907 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34908 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34909 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34911 cat >>confdefs.h <<_ACEOF
34912 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34918 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34919 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34920 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34921 echo $ECHO_N "(cached) $ECHO_C" >&6
34923 cat >conftest.$ac_ext <<_ACEOF
34926 cat confdefs.h >>conftest.$ac_ext
34927 cat >>conftest.$ac_ext <<_ACEOF
34928 /* end confdefs.h. */
34929 $ac_includes_default
34935 static struct passwd ac_aggr;
34936 if (ac_aggr.pw_passwd)
34942 rm -f conftest.$ac_objext
34943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34944 (eval $ac_compile) 2>conftest.er1
34946 grep -v '^ *+' conftest.er1 >conftest.err
34948 cat conftest.err >&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); } &&
34951 { ac_try='test -z "$ac_c_werror_flag"
34952 || test ! -s conftest.err'
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; } &&
34958 { ac_try='test -s conftest.$ac_objext'
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; }; then
34964 ac_cv_member_struct_passwd_pw_passwd=yes
34966 echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34969 cat >conftest.$ac_ext <<_ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34975 $ac_includes_default
34981 static struct passwd ac_aggr;
34982 if (sizeof ac_aggr.pw_passwd)
34988 rm -f conftest.$ac_objext
34989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34990 (eval $ac_compile) 2>conftest.er1
34992 grep -v '^ *+' conftest.er1 >conftest.err
34994 cat conftest.err >&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
34997 { ac_try='test -z "$ac_c_werror_flag"
34998 || test ! -s conftest.err'
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; } &&
35004 { ac_try='test -s conftest.$ac_objext'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; }; then
35010 ac_cv_member_struct_passwd_pw_passwd=yes
35012 echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35015 ac_cv_member_struct_passwd_pw_passwd=no
35017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35022 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35023 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35025 cat >>confdefs.h <<_ACEOF
35026 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35033 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35034 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35035 if test "${ol_cv_c_upper_lower+set}" = set; then
35036 echo $ECHO_N "(cached) $ECHO_C" >&6
35039 if test "$cross_compiling" = yes; then
35040 ol_cv_c_upper_lower=safe
35042 cat >conftest.$ac_ext <<_ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35052 if ('C' == toupper('C'))
35058 rm -f conftest$ac_exeext
35059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35060 (eval $ac_link) 2>&5
35062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065 (eval $ac_try) 2>&5
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); }; }; then
35069 ol_cv_c_upper_lower=no
35071 echo "$as_me: program exited with status $ac_status" >&5
35072 echo "$as_me: failed program was:" >&5
35073 sed 's/^/| /' conftest.$ac_ext >&5
35075 ( exit $ac_status )
35076 ol_cv_c_upper_lower=yes
35078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35081 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35082 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35083 if test $ol_cv_c_upper_lower != no ; then
35085 cat >>confdefs.h <<\_ACEOF
35086 #define C_UPPER_LOWER 1
35091 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35093 if test "${ac_cv_c_const+set}" = set; then
35094 echo $ECHO_N "(cached) $ECHO_C" >&6
35096 cat >conftest.$ac_ext <<_ACEOF
35099 cat confdefs.h >>conftest.$ac_ext
35100 cat >>conftest.$ac_ext <<_ACEOF
35101 /* end confdefs.h. */
35106 /* FIXME: Include the comments suggested by Paul. */
35107 #ifndef __cplusplus
35108 /* Ultrix mips cc rejects this. */
35109 typedef int charset[2];
35111 /* SunOS 4.1.1 cc rejects this. */
35112 char const *const *ccp;
35114 /* NEC SVR4.0.2 mips cc rejects this. */
35115 struct point {int x, y;};
35116 static struct point const zero = {0,0};
35117 /* AIX XL C 1.02.0.0 rejects this.
35118 It does not let you subtract one const X* pointer from another in
35119 an arm of an if-expression whose if-part is not a constant
35121 const char *g = "string";
35122 ccp = &g + (g ? g-g : 0);
35123 /* HPUX 7.0 cc rejects these. */
35126 ccp = (char const *const *) p;
35127 { /* SCO 3.2v4 cc rejects this. */
35129 char const *s = 0 ? (char *) 0 : (char const *) 0;
35133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35134 int x[] = {25, 17};
35135 const int *foo = &x[0];
35138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35139 typedef const int *iptr;
35143 { /* AIX XL C 1.02.0.0 rejects this saying
35144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35145 struct s { int j; const int *ap[3]; };
35146 struct s *b; b->j = 5;
35148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35149 const int foo = 10;
35157 rm -f conftest.$ac_objext
35158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35159 (eval $ac_compile) 2>conftest.er1
35161 grep -v '^ *+' conftest.er1 >conftest.err
35163 cat conftest.err >&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); } &&
35166 { ac_try='test -z "$ac_c_werror_flag"
35167 || test ! -s conftest.err'
35168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 (eval $ac_try) 2>&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; } &&
35173 { ac_try='test -s conftest.$ac_objext'
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; }; then
35181 echo "$as_me: failed program was:" >&5
35182 sed 's/^/| /' conftest.$ac_ext >&5
35186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35188 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35189 echo "${ECHO_T}$ac_cv_c_const" >&6
35190 if test $ac_cv_c_const = no; then
35192 cat >>confdefs.h <<\_ACEOF
35198 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35199 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35200 if test "${ol_cv_c_volatile+set}" = set; then
35201 echo $ECHO_N "(cached) $ECHO_C" >&6
35203 cat >conftest.$ac_ext <<_ACEOF
35206 cat confdefs.h >>conftest.$ac_ext
35207 cat >>conftest.$ac_ext <<_ACEOF
35208 /* end confdefs.h. */
35213 volatile int a; int * volatile b = x ? &y : &z;
35214 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35220 rm -f conftest.$ac_objext
35221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35222 (eval $ac_compile) 2>conftest.er1
35224 grep -v '^ *+' conftest.er1 >conftest.err
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); } &&
35229 { ac_try='test -z "$ac_c_werror_flag"
35230 || test ! -s conftest.err'
35231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35232 (eval $ac_try) 2>&5
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); }; } &&
35236 { ac_try='test -s conftest.$ac_objext'
35237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238 (eval $ac_try) 2>&5
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); }; }; then
35242 ol_cv_c_volatile=yes
35244 echo "$as_me: failed program was:" >&5
35245 sed 's/^/| /' conftest.$ac_ext >&5
35247 ol_cv_c_volatile=no
35249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35251 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35252 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35253 if test $ol_cv_c_volatile = yes; then
35257 cat >>confdefs.h <<\_ACEOF
35264 if test $cross_compiling = yes ; then
35265 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35266 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35268 cat >>confdefs.h <<\_ACEOF
35269 #define CROSS_COMPILING 1
35273 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35274 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35275 if test "${ac_cv_c_bigendian+set}" = set; then
35276 echo $ECHO_N "(cached) $ECHO_C" >&6
35278 # See if sys/param.h defines the BYTE_ORDER macro.
35279 cat >conftest.$ac_ext <<_ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h. */
35285 #include <sys/types.h>
35286 #include <sys/param.h>
35291 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35292 bogus endian macros
35299 rm -f conftest.$ac_objext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35301 (eval $ac_compile) 2>conftest.er1
35303 grep -v '^ *+' conftest.er1 >conftest.err
35305 cat conftest.err >&5
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); } &&
35308 { ac_try='test -z "$ac_c_werror_flag"
35309 || test ! -s conftest.err'
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; } &&
35315 { ac_try='test -s conftest.$ac_objext'
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; }; then
35321 # It does; now see whether it defined to BIG_ENDIAN or not.
35322 cat >conftest.$ac_ext <<_ACEOF
35325 cat confdefs.h >>conftest.$ac_ext
35326 cat >>conftest.$ac_ext <<_ACEOF
35327 /* end confdefs.h. */
35328 #include <sys/types.h>
35329 #include <sys/param.h>
35334 #if BYTE_ORDER != BIG_ENDIAN
35342 rm -f conftest.$ac_objext
35343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35344 (eval $ac_compile) 2>conftest.er1
35346 grep -v '^ *+' conftest.er1 >conftest.err
35348 cat conftest.err >&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } &&
35351 { ac_try='test -z "$ac_c_werror_flag"
35352 || test ! -s conftest.err'
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; } &&
35358 { ac_try='test -s conftest.$ac_objext'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 ac_cv_c_bigendian=yes
35366 echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35369 ac_cv_c_bigendian=no
35371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35373 echo "$as_me: failed program was:" >&5
35374 sed 's/^/| /' conftest.$ac_ext >&5
35376 # It does not; compile a test program.
35377 if test "$cross_compiling" = yes; then
35378 # try to guess the endianness by grepping values into an object file
35379 ac_cv_c_bigendian=unknown
35380 cat >conftest.$ac_ext <<_ACEOF
35383 cat confdefs.h >>conftest.$ac_ext
35384 cat >>conftest.$ac_ext <<_ACEOF
35385 /* end confdefs.h. */
35386 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35387 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35388 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35389 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35390 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35391 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35395 _ascii (); _ebcdic ();
35400 rm -f conftest.$ac_objext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35402 (eval $ac_compile) 2>conftest.er1
35404 grep -v '^ *+' conftest.er1 >conftest.err
35406 cat conftest.err >&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); } &&
35409 { ac_try='test -z "$ac_c_werror_flag"
35410 || test ! -s conftest.err'
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; } &&
35416 { ac_try='test -s conftest.$ac_objext'
35417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418 (eval $ac_try) 2>&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); }; }; then
35422 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35423 ac_cv_c_bigendian=yes
35425 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35426 if test "$ac_cv_c_bigendian" = unknown; then
35427 ac_cv_c_bigendian=no
35429 # finding both strings is unlikely to happen, but who knows?
35430 ac_cv_c_bigendian=unknown
35434 echo "$as_me: failed program was:" >&5
35435 sed 's/^/| /' conftest.$ac_ext >&5
35438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35440 cat >conftest.$ac_ext <<_ACEOF
35443 cat confdefs.h >>conftest.$ac_ext
35444 cat >>conftest.$ac_ext <<_ACEOF
35445 /* end confdefs.h. */
35449 /* Are we little or big endian? From Harbison&Steele. */
35453 char c[sizeof (long)];
35456 exit (u.c[sizeof (long) - 1] == 1);
35459 rm -f conftest$ac_exeext
35460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35461 (eval $ac_link) 2>&5
35463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; }; then
35470 ac_cv_c_bigendian=no
35472 echo "$as_me: program exited with status $ac_status" >&5
35473 echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35476 ( exit $ac_status )
35477 ac_cv_c_bigendian=yes
35479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35484 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35485 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35486 case $ac_cv_c_bigendian in
35489 cat >>confdefs.h <<\_ACEOF
35490 #define WORDS_BIGENDIAN 1
35496 { { echo "$as_me:$LINENO: error: unknown endianness
35497 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35498 echo "$as_me: error: unknown endianness
35499 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35500 { (exit 1); exit 1; }; } ;;
35505 echo "$as_me:$LINENO: checking for short" >&5
35506 echo $ECHO_N "checking for short... $ECHO_C" >&6
35507 if test "${ac_cv_type_short+set}" = set; then
35508 echo $ECHO_N "(cached) $ECHO_C" >&6
35510 cat >conftest.$ac_ext <<_ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h. */
35516 $ac_includes_default
35522 if (sizeof (short))
35528 rm -f conftest.$ac_objext
35529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35530 (eval $ac_compile) 2>conftest.er1
35532 grep -v '^ *+' conftest.er1 >conftest.err
35534 cat conftest.err >&5
35535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35536 (exit $ac_status); } &&
35537 { ac_try='test -z "$ac_c_werror_flag"
35538 || test ! -s conftest.err'
35539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35540 (eval $ac_try) 2>&5
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); }; } &&
35544 { ac_try='test -s conftest.$ac_objext'
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; }; then
35550 ac_cv_type_short=yes
35552 echo "$as_me: failed program was:" >&5
35553 sed 's/^/| /' conftest.$ac_ext >&5
35555 ac_cv_type_short=no
35557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35559 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35560 echo "${ECHO_T}$ac_cv_type_short" >&6
35562 echo "$as_me:$LINENO: checking size of short" >&5
35563 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35564 if test "${ac_cv_sizeof_short+set}" = set; then
35565 echo $ECHO_N "(cached) $ECHO_C" >&6
35567 if test "$ac_cv_type_short" = yes; then
35568 # The cast to unsigned long works around a bug in the HP C Compiler
35569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35571 # This bug is HP SR number 8606223364.
35572 if test "$cross_compiling" = yes; then
35573 # Depending upon the size, compute the lo and hi bounds.
35574 cat >conftest.$ac_ext <<_ACEOF
35577 cat confdefs.h >>conftest.$ac_ext
35578 cat >>conftest.$ac_ext <<_ACEOF
35579 /* end confdefs.h. */
35580 $ac_includes_default
35584 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35591 rm -f conftest.$ac_objext
35592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35593 (eval $ac_compile) 2>conftest.er1
35595 grep -v '^ *+' conftest.er1 >conftest.err
35597 cat conftest.err >&5
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); } &&
35600 { ac_try='test -z "$ac_c_werror_flag"
35601 || test ! -s conftest.err'
35602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603 (eval $ac_try) 2>&5
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); }; } &&
35607 { ac_try='test -s conftest.$ac_objext'
35608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609 (eval $ac_try) 2>&5
35611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612 (exit $ac_status); }; }; then
35615 cat >conftest.$ac_ext <<_ACEOF
35618 cat confdefs.h >>conftest.$ac_ext
35619 cat >>conftest.$ac_ext <<_ACEOF
35620 /* end confdefs.h. */
35621 $ac_includes_default
35625 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35632 rm -f conftest.$ac_objext
35633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35634 (eval $ac_compile) 2>conftest.er1
35636 grep -v '^ *+' conftest.er1 >conftest.err
35638 cat conftest.err >&5
35639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640 (exit $ac_status); } &&
35641 { ac_try='test -z "$ac_c_werror_flag"
35642 || test ! -s conftest.err'
35643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35644 (eval $ac_try) 2>&5
35646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); }; } &&
35648 { ac_try='test -s conftest.$ac_objext'
35649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35650 (eval $ac_try) 2>&5
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 ac_hi=$ac_mid; break
35656 echo "$as_me: failed program was:" >&5
35657 sed 's/^/| /' conftest.$ac_ext >&5
35659 ac_lo=`expr $ac_mid + 1`
35660 if test $ac_lo -le $ac_mid; then
35664 ac_mid=`expr 2 '*' $ac_mid + 1`
35666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35669 echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35672 cat >conftest.$ac_ext <<_ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h. */
35678 $ac_includes_default
35682 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35689 rm -f conftest.$ac_objext
35690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35691 (eval $ac_compile) 2>conftest.er1
35693 grep -v '^ *+' conftest.er1 >conftest.err
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } &&
35698 { ac_try='test -z "$ac_c_werror_flag"
35699 || test ! -s conftest.err'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; } &&
35705 { ac_try='test -s conftest.$ac_objext'
35706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35707 (eval $ac_try) 2>&5
35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710 (exit $ac_status); }; }; then
35713 cat >conftest.$ac_ext <<_ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h. */
35719 $ac_includes_default
35723 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35730 rm -f conftest.$ac_objext
35731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35732 (eval $ac_compile) 2>conftest.er1
35734 grep -v '^ *+' conftest.er1 >conftest.err
35736 cat conftest.err >&5
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); } &&
35739 { ac_try='test -z "$ac_c_werror_flag"
35740 || test ! -s conftest.err'
35741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742 (eval $ac_try) 2>&5
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); }; } &&
35746 { ac_try='test -s conftest.$ac_objext'
35747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35748 (eval $ac_try) 2>&5
35750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751 (exit $ac_status); }; }; then
35752 ac_lo=$ac_mid; break
35754 echo "$as_me: failed program was:" >&5
35755 sed 's/^/| /' conftest.$ac_ext >&5
35757 ac_hi=`expr '(' $ac_mid ')' - 1`
35758 if test $ac_mid -le $ac_hi; then
35762 ac_mid=`expr 2 '*' $ac_mid`
35764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35775 # Binary search between lo and hi bounds.
35776 while test "x$ac_lo" != "x$ac_hi"; do
35777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35778 cat >conftest.$ac_ext <<_ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h. */
35784 $ac_includes_default
35788 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35795 rm -f conftest.$ac_objext
35796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35797 (eval $ac_compile) 2>conftest.er1
35799 grep -v '^ *+' conftest.er1 >conftest.err
35801 cat conftest.err >&5
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); } &&
35804 { ac_try='test -z "$ac_c_werror_flag"
35805 || test ! -s conftest.err'
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; } &&
35811 { ac_try='test -s conftest.$ac_objext'
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35819 echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35822 ac_lo=`expr '(' $ac_mid ')' + 1`
35824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35827 ?*) ac_cv_sizeof_short=$ac_lo;;
35828 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35829 See \`config.log' for more details." >&5
35830 echo "$as_me: error: cannot compute sizeof (short), 77
35831 See \`config.log' for more details." >&2;}
35832 { (exit 1); exit 1; }; } ;;
35835 if test "$cross_compiling" = yes; then
35836 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35837 See \`config.log' for more details." >&5
35838 echo "$as_me: error: cannot run test program while cross compiling
35839 See \`config.log' for more details." >&2;}
35840 { (exit 1); exit 1; }; }
35842 cat >conftest.$ac_ext <<_ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h. */
35848 $ac_includes_default
35849 long longval () { return (long) (sizeof (short)); }
35850 unsigned long ulongval () { return (long) (sizeof (short)); }
35852 #include <stdlib.h>
35857 FILE *f = fopen ("conftest.val", "w");
35860 if (((long) (sizeof (short))) < 0)
35862 long i = longval ();
35863 if (i != ((long) (sizeof (short))))
35865 fprintf (f, "%ld\n", i);
35869 unsigned long i = ulongval ();
35870 if (i != ((long) (sizeof (short))))
35872 fprintf (f, "%lu\n", i);
35874 exit (ferror (f) || fclose (f) != 0);
35880 rm -f conftest$ac_exeext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35882 (eval $ac_link) 2>&5
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; }; then
35891 ac_cv_sizeof_short=`cat conftest.val`
35893 echo "$as_me: program exited with status $ac_status" >&5
35894 echo "$as_me: failed program was:" >&5
35895 sed 's/^/| /' conftest.$ac_ext >&5
35897 ( exit $ac_status )
35898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35899 See \`config.log' for more details." >&5
35900 echo "$as_me: error: cannot compute sizeof (short), 77
35901 See \`config.log' for more details." >&2;}
35902 { (exit 1); exit 1; }; }
35904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35909 ac_cv_sizeof_short=0
35912 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35913 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35914 cat >>confdefs.h <<_ACEOF
35915 #define SIZEOF_SHORT $ac_cv_sizeof_short
35919 echo "$as_me:$LINENO: checking for int" >&5
35920 echo $ECHO_N "checking for int... $ECHO_C" >&6
35921 if test "${ac_cv_type_int+set}" = set; then
35922 echo $ECHO_N "(cached) $ECHO_C" >&6
35924 cat >conftest.$ac_ext <<_ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h. */
35930 $ac_includes_default
35942 rm -f conftest.$ac_objext
35943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944 (eval $ac_compile) 2>conftest.er1
35946 grep -v '^ *+' conftest.er1 >conftest.err
35948 cat conftest.err >&5
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); } &&
35951 { ac_try='test -z "$ac_c_werror_flag"
35952 || test ! -s conftest.err'
35953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35954 (eval $ac_try) 2>&5
35956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957 (exit $ac_status); }; } &&
35958 { ac_try='test -s conftest.$ac_objext'
35959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35960 (eval $ac_try) 2>&5
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); }; }; then
35966 echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.$ac_ext >&5
35971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35973 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35974 echo "${ECHO_T}$ac_cv_type_int" >&6
35976 echo "$as_me:$LINENO: checking size of int" >&5
35977 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35978 if test "${ac_cv_sizeof_int+set}" = set; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35981 if test "$ac_cv_type_int" = yes; then
35982 # The cast to unsigned long works around a bug in the HP C Compiler
35983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35985 # This bug is HP SR number 8606223364.
35986 if test "$cross_compiling" = yes; then
35987 # Depending upon the size, compute the lo and hi bounds.
35988 cat >conftest.$ac_ext <<_ACEOF
35991 cat confdefs.h >>conftest.$ac_ext
35992 cat >>conftest.$ac_ext <<_ACEOF
35993 /* end confdefs.h. */
35994 $ac_includes_default
35998 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
36005 rm -f conftest.$ac_objext
36006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36007 (eval $ac_compile) 2>conftest.er1
36009 grep -v '^ *+' conftest.er1 >conftest.err
36011 cat conftest.err >&5
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } &&
36014 { ac_try='test -z "$ac_c_werror_flag"
36015 || test ! -s conftest.err'
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest.$ac_objext'
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36029 cat >conftest.$ac_ext <<_ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h. */
36035 $ac_includes_default
36039 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36046 rm -f conftest.$ac_objext
36047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36048 (eval $ac_compile) 2>conftest.er1
36050 grep -v '^ *+' conftest.er1 >conftest.err
36052 cat conftest.err >&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); } &&
36055 { ac_try='test -z "$ac_c_werror_flag"
36056 || test ! -s conftest.err'
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; } &&
36062 { ac_try='test -s conftest.$ac_objext'
36063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36064 (eval $ac_try) 2>&5
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); }; }; then
36068 ac_hi=$ac_mid; break
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36073 ac_lo=`expr $ac_mid + 1`
36074 if test $ac_lo -le $ac_mid; then
36078 ac_mid=`expr 2 '*' $ac_mid + 1`
36080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36083 echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36086 cat >conftest.$ac_ext <<_ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h. */
36092 $ac_includes_default
36096 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36103 rm -f conftest.$ac_objext
36104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36105 (eval $ac_compile) 2>conftest.er1
36107 grep -v '^ *+' conftest.er1 >conftest.err
36109 cat conftest.err >&5
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); } &&
36112 { ac_try='test -z "$ac_c_werror_flag"
36113 || test ! -s conftest.err'
36114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36115 (eval $ac_try) 2>&5
36117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118 (exit $ac_status); }; } &&
36119 { ac_try='test -s conftest.$ac_objext'
36120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121 (eval $ac_try) 2>&5
36123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124 (exit $ac_status); }; }; then
36127 cat >conftest.$ac_ext <<_ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h. */
36133 $ac_includes_default
36137 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36144 rm -f conftest.$ac_objext
36145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36146 (eval $ac_compile) 2>conftest.er1
36148 grep -v '^ *+' conftest.er1 >conftest.err
36150 cat conftest.err >&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } &&
36153 { ac_try='test -z "$ac_c_werror_flag"
36154 || test ! -s conftest.err'
36155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36156 (eval $ac_try) 2>&5
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); }; } &&
36160 { ac_try='test -s conftest.$ac_objext'
36161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36162 (eval $ac_try) 2>&5
36164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165 (exit $ac_status); }; }; then
36166 ac_lo=$ac_mid; break
36168 echo "$as_me: failed program was:" >&5
36169 sed 's/^/| /' conftest.$ac_ext >&5
36171 ac_hi=`expr '(' $ac_mid ')' - 1`
36172 if test $ac_mid -le $ac_hi; then
36176 ac_mid=`expr 2 '*' $ac_mid`
36178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36181 echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36189 # Binary search between lo and hi bounds.
36190 while test "x$ac_lo" != "x$ac_hi"; do
36191 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36192 cat >conftest.$ac_ext <<_ACEOF
36195 cat confdefs.h >>conftest.$ac_ext
36196 cat >>conftest.$ac_ext <<_ACEOF
36197 /* end confdefs.h. */
36198 $ac_includes_default
36202 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36209 rm -f conftest.$ac_objext
36210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36211 (eval $ac_compile) 2>conftest.er1
36213 grep -v '^ *+' conftest.er1 >conftest.err
36215 cat conftest.err >&5
36216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 (exit $ac_status); } &&
36218 { ac_try='test -z "$ac_c_werror_flag"
36219 || test ! -s conftest.err'
36220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36221 (eval $ac_try) 2>&5
36223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); }; } &&
36225 { ac_try='test -s conftest.$ac_objext'
36226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227 (eval $ac_try) 2>&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); }; }; then
36233 echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36236 ac_lo=`expr '(' $ac_mid ')' + 1`
36238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36241 ?*) ac_cv_sizeof_int=$ac_lo;;
36242 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36243 See \`config.log' for more details." >&5
36244 echo "$as_me: error: cannot compute sizeof (int), 77
36245 See \`config.log' for more details." >&2;}
36246 { (exit 1); exit 1; }; } ;;
36249 if test "$cross_compiling" = yes; then
36250 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36251 See \`config.log' for more details." >&5
36252 echo "$as_me: error: cannot run test program while cross compiling
36253 See \`config.log' for more details." >&2;}
36254 { (exit 1); exit 1; }; }
36256 cat >conftest.$ac_ext <<_ACEOF
36259 cat confdefs.h >>conftest.$ac_ext
36260 cat >>conftest.$ac_ext <<_ACEOF
36261 /* end confdefs.h. */
36262 $ac_includes_default
36263 long longval () { return (long) (sizeof (int)); }
36264 unsigned long ulongval () { return (long) (sizeof (int)); }
36266 #include <stdlib.h>
36271 FILE *f = fopen ("conftest.val", "w");
36274 if (((long) (sizeof (int))) < 0)
36276 long i = longval ();
36277 if (i != ((long) (sizeof (int))))
36279 fprintf (f, "%ld\n", i);
36283 unsigned long i = ulongval ();
36284 if (i != ((long) (sizeof (int))))
36286 fprintf (f, "%lu\n", i);
36288 exit (ferror (f) || fclose (f) != 0);
36294 rm -f conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296 (eval $ac_link) 2>&5
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 ac_cv_sizeof_int=`cat conftest.val`
36307 echo "$as_me: program exited with status $ac_status" >&5
36308 echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36311 ( exit $ac_status )
36312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36313 See \`config.log' for more details." >&5
36314 echo "$as_me: error: cannot compute sizeof (int), 77
36315 See \`config.log' for more details." >&2;}
36316 { (exit 1); exit 1; }; }
36318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36327 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36328 cat >>confdefs.h <<_ACEOF
36329 #define SIZEOF_INT $ac_cv_sizeof_int
36333 echo "$as_me:$LINENO: checking for long" >&5
36334 echo $ECHO_N "checking for long... $ECHO_C" >&6
36335 if test "${ac_cv_type_long+set}" = set; then
36336 echo $ECHO_N "(cached) $ECHO_C" >&6
36338 cat >conftest.$ac_ext <<_ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h. */
36344 $ac_includes_default
36356 rm -f conftest.$ac_objext
36357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36358 (eval $ac_compile) 2>conftest.er1
36360 grep -v '^ *+' conftest.er1 >conftest.err
36362 cat conftest.err >&5
36363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364 (exit $ac_status); } &&
36365 { ac_try='test -z "$ac_c_werror_flag"
36366 || test ! -s conftest.err'
36367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368 (eval $ac_try) 2>&5
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); }; } &&
36372 { ac_try='test -s conftest.$ac_objext'
36373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374 (eval $ac_try) 2>&5
36376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377 (exit $ac_status); }; }; then
36378 ac_cv_type_long=yes
36380 echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36387 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36388 echo "${ECHO_T}$ac_cv_type_long" >&6
36390 echo "$as_me:$LINENO: checking size of long" >&5
36391 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36392 if test "${ac_cv_sizeof_long+set}" = set; then
36393 echo $ECHO_N "(cached) $ECHO_C" >&6
36395 if test "$ac_cv_type_long" = yes; then
36396 # The cast to unsigned long works around a bug in the HP C Compiler
36397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36399 # This bug is HP SR number 8606223364.
36400 if test "$cross_compiling" = yes; then
36401 # Depending upon the size, compute the lo and hi bounds.
36402 cat >conftest.$ac_ext <<_ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h. */
36408 $ac_includes_default
36412 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36419 rm -f conftest.$ac_objext
36420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36421 (eval $ac_compile) 2>conftest.er1
36423 grep -v '^ *+' conftest.er1 >conftest.err
36425 cat conftest.err >&5
36426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); } &&
36428 { ac_try='test -z "$ac_c_werror_flag"
36429 || test ! -s conftest.err'
36430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36431 (eval $ac_try) 2>&5
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); }; } &&
36435 { ac_try='test -s conftest.$ac_objext'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; }; then
36443 cat >conftest.$ac_ext <<_ACEOF
36446 cat confdefs.h >>conftest.$ac_ext
36447 cat >>conftest.$ac_ext <<_ACEOF
36448 /* end confdefs.h. */
36449 $ac_includes_default
36453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36460 rm -f conftest.$ac_objext
36461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36462 (eval $ac_compile) 2>conftest.er1
36464 grep -v '^ *+' conftest.er1 >conftest.err
36466 cat conftest.err >&5
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); } &&
36469 { ac_try='test -z "$ac_c_werror_flag"
36470 || test ! -s conftest.err'
36471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36472 (eval $ac_try) 2>&5
36474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); }; } &&
36476 { ac_try='test -s conftest.$ac_objext'
36477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36478 (eval $ac_try) 2>&5
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); }; }; then
36482 ac_hi=$ac_mid; break
36484 echo "$as_me: failed program was:" >&5
36485 sed 's/^/| /' conftest.$ac_ext >&5
36487 ac_lo=`expr $ac_mid + 1`
36488 if test $ac_lo -le $ac_mid; then
36492 ac_mid=`expr 2 '*' $ac_mid + 1`
36494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36497 echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36500 cat >conftest.$ac_ext <<_ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h. */
36506 $ac_includes_default
36510 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36517 rm -f conftest.$ac_objext
36518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36519 (eval $ac_compile) 2>conftest.er1
36521 grep -v '^ *+' conftest.er1 >conftest.err
36523 cat conftest.err >&5
36524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525 (exit $ac_status); } &&
36526 { ac_try='test -z "$ac_c_werror_flag"
36527 || test ! -s conftest.err'
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; } &&
36533 { ac_try='test -s conftest.$ac_objext'
36534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535 (eval $ac_try) 2>&5
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); }; }; then
36541 cat >conftest.$ac_ext <<_ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h. */
36547 $ac_includes_default
36551 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560 (eval $ac_compile) 2>conftest.er1
36562 grep -v '^ *+' conftest.er1 >conftest.err
36564 cat conftest.err >&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } &&
36567 { ac_try='test -z "$ac_c_werror_flag"
36568 || test ! -s conftest.err'
36569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570 (eval $ac_try) 2>&5
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); }; } &&
36574 { ac_try='test -s conftest.$ac_objext'
36575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 (eval $ac_try) 2>&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); }; }; then
36580 ac_lo=$ac_mid; break
36582 echo "$as_me: failed program was:" >&5
36583 sed 's/^/| /' conftest.$ac_ext >&5
36585 ac_hi=`expr '(' $ac_mid ')' - 1`
36586 if test $ac_mid -le $ac_hi; then
36590 ac_mid=`expr 2 '*' $ac_mid`
36592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 # Binary search between lo and hi bounds.
36604 while test "x$ac_lo" != "x$ac_hi"; do
36605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36606 cat >conftest.$ac_ext <<_ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h. */
36612 $ac_includes_default
36616 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36623 rm -f conftest.$ac_objext
36624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36625 (eval $ac_compile) 2>conftest.er1
36627 grep -v '^ *+' conftest.er1 >conftest.err
36629 cat conftest.err >&5
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); } &&
36632 { ac_try='test -z "$ac_c_werror_flag"
36633 || test ! -s conftest.err'
36634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635 (eval $ac_try) 2>&5
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); }; } &&
36639 { ac_try='test -s conftest.$ac_objext'
36640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641 (eval $ac_try) 2>&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); }; }; then
36647 echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36650 ac_lo=`expr '(' $ac_mid ')' + 1`
36652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36655 ?*) ac_cv_sizeof_long=$ac_lo;;
36656 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36657 See \`config.log' for more details." >&5
36658 echo "$as_me: error: cannot compute sizeof (long), 77
36659 See \`config.log' for more details." >&2;}
36660 { (exit 1); exit 1; }; } ;;
36663 if test "$cross_compiling" = yes; then
36664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36665 See \`config.log' for more details." >&5
36666 echo "$as_me: error: cannot run test program while cross compiling
36667 See \`config.log' for more details." >&2;}
36668 { (exit 1); exit 1; }; }
36670 cat >conftest.$ac_ext <<_ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h. */
36676 $ac_includes_default
36677 long longval () { return (long) (sizeof (long)); }
36678 unsigned long ulongval () { return (long) (sizeof (long)); }
36680 #include <stdlib.h>
36685 FILE *f = fopen ("conftest.val", "w");
36688 if (((long) (sizeof (long))) < 0)
36690 long i = longval ();
36691 if (i != ((long) (sizeof (long))))
36693 fprintf (f, "%ld\n", i);
36697 unsigned long i = ulongval ();
36698 if (i != ((long) (sizeof (long))))
36700 fprintf (f, "%lu\n", i);
36702 exit (ferror (f) || fclose (f) != 0);
36708 rm -f conftest$ac_exeext
36709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36710 (eval $ac_link) 2>&5
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36715 (eval $ac_try) 2>&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); }; }; then
36719 ac_cv_sizeof_long=`cat conftest.val`
36721 echo "$as_me: program exited with status $ac_status" >&5
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36725 ( exit $ac_status )
36726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36727 See \`config.log' for more details." >&5
36728 echo "$as_me: error: cannot compute sizeof (long), 77
36729 See \`config.log' for more details." >&2;}
36730 { (exit 1); exit 1; }; }
36732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36737 ac_cv_sizeof_long=0
36740 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36741 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36742 cat >>confdefs.h <<_ACEOF
36743 #define SIZEOF_LONG $ac_cv_sizeof_long
36747 echo "$as_me:$LINENO: checking for long long" >&5
36748 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36749 if test "${ac_cv_type_long_long+set}" = set; then
36750 echo $ECHO_N "(cached) $ECHO_C" >&6
36752 cat >conftest.$ac_ext <<_ACEOF
36755 cat confdefs.h >>conftest.$ac_ext
36756 cat >>conftest.$ac_ext <<_ACEOF
36757 /* end confdefs.h. */
36758 $ac_includes_default
36762 if ((long long *) 0)
36764 if (sizeof (long long))
36770 rm -f conftest.$ac_objext
36771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36772 (eval $ac_compile) 2>conftest.er1
36774 grep -v '^ *+' conftest.er1 >conftest.err
36776 cat conftest.err >&5
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); } &&
36779 { ac_try='test -z "$ac_c_werror_flag"
36780 || test ! -s conftest.err'
36781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782 (eval $ac_try) 2>&5
36784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785 (exit $ac_status); }; } &&
36786 { ac_try='test -s conftest.$ac_objext'
36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788 (eval $ac_try) 2>&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; }; then
36792 ac_cv_type_long_long=yes
36794 echo "$as_me: failed program was:" >&5
36795 sed 's/^/| /' conftest.$ac_ext >&5
36797 ac_cv_type_long_long=no
36799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36801 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36802 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36804 echo "$as_me:$LINENO: checking size of long long" >&5
36805 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36806 if test "${ac_cv_sizeof_long_long+set}" = set; then
36807 echo $ECHO_N "(cached) $ECHO_C" >&6
36809 if test "$ac_cv_type_long_long" = yes; then
36810 # The cast to unsigned long works around a bug in the HP C Compiler
36811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36813 # This bug is HP SR number 8606223364.
36814 if test "$cross_compiling" = yes; then
36815 # Depending upon the size, compute the lo and hi bounds.
36816 cat >conftest.$ac_ext <<_ACEOF
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h. */
36822 $ac_includes_default
36826 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36833 rm -f conftest.$ac_objext
36834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36835 (eval $ac_compile) 2>conftest.er1
36837 grep -v '^ *+' conftest.er1 >conftest.err
36839 cat conftest.err >&5
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); } &&
36842 { ac_try='test -z "$ac_c_werror_flag"
36843 || test ! -s conftest.err'
36844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845 (eval $ac_try) 2>&5
36847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848 (exit $ac_status); }; } &&
36849 { ac_try='test -s conftest.$ac_objext'
36850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 (eval $ac_try) 2>&5
36853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 (exit $ac_status); }; }; then
36857 cat >conftest.$ac_ext <<_ACEOF
36860 cat confdefs.h >>conftest.$ac_ext
36861 cat >>conftest.$ac_ext <<_ACEOF
36862 /* end confdefs.h. */
36863 $ac_includes_default
36867 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36874 rm -f conftest.$ac_objext
36875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36876 (eval $ac_compile) 2>conftest.er1
36878 grep -v '^ *+' conftest.er1 >conftest.err
36880 cat conftest.err >&5
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); } &&
36883 { ac_try='test -z "$ac_c_werror_flag"
36884 || test ! -s conftest.err'
36885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36886 (eval $ac_try) 2>&5
36888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889 (exit $ac_status); }; } &&
36890 { ac_try='test -s conftest.$ac_objext'
36891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892 (eval $ac_try) 2>&5
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); }; }; then
36896 ac_hi=$ac_mid; break
36898 echo "$as_me: failed program was:" >&5
36899 sed 's/^/| /' conftest.$ac_ext >&5
36901 ac_lo=`expr $ac_mid + 1`
36902 if test $ac_lo -le $ac_mid; then
36906 ac_mid=`expr 2 '*' $ac_mid + 1`
36908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36911 echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36914 cat >conftest.$ac_ext <<_ACEOF
36917 cat confdefs.h >>conftest.$ac_ext
36918 cat >>conftest.$ac_ext <<_ACEOF
36919 /* end confdefs.h. */
36920 $ac_includes_default
36924 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36931 rm -f conftest.$ac_objext
36932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36933 (eval $ac_compile) 2>conftest.er1
36935 grep -v '^ *+' conftest.er1 >conftest.err
36937 cat conftest.err >&5
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); } &&
36940 { ac_try='test -z "$ac_c_werror_flag"
36941 || test ! -s conftest.err'
36942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36943 (eval $ac_try) 2>&5
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); }; } &&
36947 { ac_try='test -s conftest.$ac_objext'
36948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949 (eval $ac_try) 2>&5
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; }; then
36955 cat >conftest.$ac_ext <<_ACEOF
36958 cat confdefs.h >>conftest.$ac_ext
36959 cat >>conftest.$ac_ext <<_ACEOF
36960 /* end confdefs.h. */
36961 $ac_includes_default
36965 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36972 rm -f conftest.$ac_objext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36974 (eval $ac_compile) 2>conftest.er1
36976 grep -v '^ *+' conftest.er1 >conftest.err
36978 cat conftest.err >&5
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); } &&
36981 { ac_try='test -z "$ac_c_werror_flag"
36982 || test ! -s conftest.err'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; } &&
36988 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36994 ac_lo=$ac_mid; break
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 ac_hi=`expr '(' $ac_mid ')' - 1`
37000 if test $ac_mid -le $ac_hi; then
37004 ac_mid=`expr 2 '*' $ac_mid`
37006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37017 # Binary search between lo and hi bounds.
37018 while test "x$ac_lo" != "x$ac_hi"; do
37019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37020 cat >conftest.$ac_ext <<_ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h. */
37026 $ac_includes_default
37030 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37037 rm -f conftest.$ac_objext
37038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37039 (eval $ac_compile) 2>conftest.er1
37041 grep -v '^ *+' conftest.er1 >conftest.err
37043 cat conftest.err >&5
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); } &&
37046 { ac_try='test -z "$ac_c_werror_flag"
37047 || test ! -s conftest.err'
37048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37049 (eval $ac_try) 2>&5
37051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052 (exit $ac_status); }; } &&
37053 { ac_try='test -s conftest.$ac_objext'
37054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055 (eval $ac_try) 2>&5
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); }; }; then
37061 echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37064 ac_lo=`expr '(' $ac_mid ')' + 1`
37066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37069 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37070 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37071 See \`config.log' for more details." >&5
37072 echo "$as_me: error: cannot compute sizeof (long long), 77
37073 See \`config.log' for more details." >&2;}
37074 { (exit 1); exit 1; }; } ;;
37077 if test "$cross_compiling" = yes; then
37078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37079 See \`config.log' for more details." >&5
37080 echo "$as_me: error: cannot run test program while cross compiling
37081 See \`config.log' for more details." >&2;}
37082 { (exit 1); exit 1; }; }
37084 cat >conftest.$ac_ext <<_ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h. */
37090 $ac_includes_default
37091 long longval () { return (long) (sizeof (long long)); }
37092 unsigned long ulongval () { return (long) (sizeof (long long)); }
37094 #include <stdlib.h>
37099 FILE *f = fopen ("conftest.val", "w");
37102 if (((long) (sizeof (long long))) < 0)
37104 long i = longval ();
37105 if (i != ((long) (sizeof (long long))))
37107 fprintf (f, "%ld\n", i);
37111 unsigned long i = ulongval ();
37112 if (i != ((long) (sizeof (long long))))
37114 fprintf (f, "%lu\n", i);
37116 exit (ferror (f) || fclose (f) != 0);
37122 rm -f conftest$ac_exeext
37123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37124 (eval $ac_link) 2>&5
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; }; then
37133 ac_cv_sizeof_long_long=`cat conftest.val`
37135 echo "$as_me: program exited with status $ac_status" >&5
37136 echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37139 ( exit $ac_status )
37140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37141 See \`config.log' for more details." >&5
37142 echo "$as_me: error: cannot compute sizeof (long long), 77
37143 See \`config.log' for more details." >&2;}
37144 { (exit 1); exit 1; }; }
37146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37151 ac_cv_sizeof_long_long=0
37154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37155 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37156 cat >>confdefs.h <<_ACEOF
37157 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37161 echo "$as_me:$LINENO: checking for wchar_t" >&5
37162 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37163 if test "${ac_cv_type_wchar_t+set}" = set; then
37164 echo $ECHO_N "(cached) $ECHO_C" >&6
37166 cat >conftest.$ac_ext <<_ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h. */
37172 $ac_includes_default
37178 if (sizeof (wchar_t))
37184 rm -f conftest.$ac_objext
37185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37186 (eval $ac_compile) 2>conftest.er1
37188 grep -v '^ *+' conftest.er1 >conftest.err
37190 cat conftest.err >&5
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); } &&
37193 { ac_try='test -z "$ac_c_werror_flag"
37194 || test ! -s conftest.err'
37195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37196 (eval $ac_try) 2>&5
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); }; } &&
37200 { ac_try='test -s conftest.$ac_objext'
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; }; then
37206 ac_cv_type_wchar_t=yes
37208 echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37211 ac_cv_type_wchar_t=no
37213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37215 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37216 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37218 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37219 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37220 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37221 echo $ECHO_N "(cached) $ECHO_C" >&6
37223 if test "$ac_cv_type_wchar_t" = yes; then
37224 # The cast to unsigned long works around a bug in the HP C Compiler
37225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37227 # This bug is HP SR number 8606223364.
37228 if test "$cross_compiling" = yes; then
37229 # Depending upon the size, compute the lo and hi bounds.
37230 cat >conftest.$ac_ext <<_ACEOF
37233 cat confdefs.h >>conftest.$ac_ext
37234 cat >>conftest.$ac_ext <<_ACEOF
37235 /* end confdefs.h. */
37236 $ac_includes_default
37240 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37247 rm -f conftest.$ac_objext
37248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37249 (eval $ac_compile) 2>conftest.er1
37251 grep -v '^ *+' conftest.er1 >conftest.err
37253 cat conftest.err >&5
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); } &&
37256 { ac_try='test -z "$ac_c_werror_flag"
37257 || test ! -s conftest.err'
37258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259 (eval $ac_try) 2>&5
37261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262 (exit $ac_status); }; } &&
37263 { ac_try='test -s conftest.$ac_objext'
37264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265 (eval $ac_try) 2>&5
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); }; }; then
37271 cat >conftest.$ac_ext <<_ACEOF
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h. */
37277 $ac_includes_default
37281 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37288 rm -f conftest.$ac_objext
37289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37290 (eval $ac_compile) 2>conftest.er1
37292 grep -v '^ *+' conftest.er1 >conftest.err
37294 cat conftest.err >&5
37295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296 (exit $ac_status); } &&
37297 { ac_try='test -z "$ac_c_werror_flag"
37298 || test ! -s conftest.err'
37299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300 (eval $ac_try) 2>&5
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); }; } &&
37304 { ac_try='test -s conftest.$ac_objext'
37305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306 (eval $ac_try) 2>&5
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); }; }; then
37310 ac_hi=$ac_mid; break
37312 echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37315 ac_lo=`expr $ac_mid + 1`
37316 if test $ac_lo -le $ac_mid; then
37320 ac_mid=`expr 2 '*' $ac_mid + 1`
37322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37325 echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37328 cat >conftest.$ac_ext <<_ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h. */
37334 $ac_includes_default
37338 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37345 rm -f conftest.$ac_objext
37346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37347 (eval $ac_compile) 2>conftest.er1
37349 grep -v '^ *+' conftest.er1 >conftest.err
37351 cat conftest.err >&5
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); } &&
37354 { ac_try='test -z "$ac_c_werror_flag"
37355 || test ! -s conftest.err'
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } &&
37361 { ac_try='test -s conftest.$ac_objext'
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; }; then
37369 cat >conftest.$ac_ext <<_ACEOF
37372 cat confdefs.h >>conftest.$ac_ext
37373 cat >>conftest.$ac_ext <<_ACEOF
37374 /* end confdefs.h. */
37375 $ac_includes_default
37379 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37386 rm -f conftest.$ac_objext
37387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37388 (eval $ac_compile) 2>conftest.er1
37390 grep -v '^ *+' conftest.er1 >conftest.err
37392 cat conftest.err >&5
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); } &&
37395 { ac_try='test -z "$ac_c_werror_flag"
37396 || test ! -s conftest.err'
37397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398 (eval $ac_try) 2>&5
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; } &&
37402 { ac_try='test -s conftest.$ac_objext'
37403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37404 (eval $ac_try) 2>&5
37406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); }; }; then
37408 ac_lo=$ac_mid; break
37410 echo "$as_me: failed program was:" >&5
37411 sed 's/^/| /' conftest.$ac_ext >&5
37413 ac_hi=`expr '(' $ac_mid ')' - 1`
37414 if test $ac_mid -le $ac_hi; then
37418 ac_mid=`expr 2 '*' $ac_mid`
37420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37423 echo "$as_me: failed program was:" >&5
37424 sed 's/^/| /' conftest.$ac_ext >&5
37428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37431 # Binary search between lo and hi bounds.
37432 while test "x$ac_lo" != "x$ac_hi"; do
37433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37434 cat >conftest.$ac_ext <<_ACEOF
37437 cat confdefs.h >>conftest.$ac_ext
37438 cat >>conftest.$ac_ext <<_ACEOF
37439 /* end confdefs.h. */
37440 $ac_includes_default
37444 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37451 rm -f conftest.$ac_objext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37453 (eval $ac_compile) 2>conftest.er1
37455 grep -v '^ *+' conftest.er1 >conftest.err
37457 cat conftest.err >&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); } &&
37460 { ac_try='test -z "$ac_c_werror_flag"
37461 || test ! -s conftest.err'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; } &&
37467 { ac_try='test -s conftest.$ac_objext'
37468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469 (eval $ac_try) 2>&5
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); }; }; then
37475 echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37478 ac_lo=`expr '(' $ac_mid ')' + 1`
37480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37483 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37484 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37485 See \`config.log' for more details." >&5
37486 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37487 See \`config.log' for more details." >&2;}
37488 { (exit 1); exit 1; }; } ;;
37491 if test "$cross_compiling" = yes; then
37492 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37493 See \`config.log' for more details." >&5
37494 echo "$as_me: error: cannot run test program while cross compiling
37495 See \`config.log' for more details." >&2;}
37496 { (exit 1); exit 1; }; }
37498 cat >conftest.$ac_ext <<_ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h. */
37504 $ac_includes_default
37505 long longval () { return (long) (sizeof (wchar_t)); }
37506 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37508 #include <stdlib.h>
37513 FILE *f = fopen ("conftest.val", "w");
37516 if (((long) (sizeof (wchar_t))) < 0)
37518 long i = longval ();
37519 if (i != ((long) (sizeof (wchar_t))))
37521 fprintf (f, "%ld\n", i);
37525 unsigned long i = ulongval ();
37526 if (i != ((long) (sizeof (wchar_t))))
37528 fprintf (f, "%lu\n", i);
37530 exit (ferror (f) || fclose (f) != 0);
37536 rm -f conftest$ac_exeext
37537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37538 (eval $ac_link) 2>&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37543 (eval $ac_try) 2>&5
37545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546 (exit $ac_status); }; }; then
37547 ac_cv_sizeof_wchar_t=`cat conftest.val`
37549 echo "$as_me: program exited with status $ac_status" >&5
37550 echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37553 ( exit $ac_status )
37554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37555 See \`config.log' for more details." >&5
37556 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37557 See \`config.log' for more details." >&2;}
37558 { (exit 1); exit 1; }; }
37560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37565 ac_cv_sizeof_wchar_t=0
37568 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37569 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37570 cat >>confdefs.h <<_ACEOF
37571 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37576 if test "$ac_cv_sizeof_int" -lt 4 ; then
37577 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37578 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37581 cat >>confdefs.h <<\_ACEOF
37582 #define LBER_INT_T long
37587 cat >>confdefs.h <<\_ACEOF
37588 #define LBER_INT_T int
37594 cat >>confdefs.h <<\_ACEOF
37595 #define LBER_LEN_T long
37599 cat >>confdefs.h <<\_ACEOF
37600 #define LBER_SOCKET_T int
37604 cat >>confdefs.h <<\_ACEOF
37605 #define LBER_TAG_T long
37609 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37610 if test $ac_cv_sizeof_long_long -gt 4 ; then
37611 ol_with_mp=longlong
37613 cat >>confdefs.h <<\_ACEOF
37614 #define USE_MP_LONG_LONG 1
37617 elif test $ol_with_mp = longlong ; then
37618 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37619 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37620 { (exit 1); exit 1; }; }
37623 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37624 if test $ac_cv_sizeof_long -gt 4 ; then
37627 cat >>confdefs.h <<\_ACEOF
37628 #define USE_MP_LONG 1
37631 elif test $ol_with_mp = long ; then
37632 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37633 echo "$as_me: error: long unusable for multiple precision" >&2;}
37634 { (exit 1); exit 1; }; }
37637 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37639 for ac_header in openssl/bn.h
37641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37643 echo "$as_me:$LINENO: checking for $ac_header" >&5
37644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37646 echo $ECHO_N "(cached) $ECHO_C" >&6
37648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37651 # Is the header compilable?
37652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37654 cat >conftest.$ac_ext <<_ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h. */
37660 $ac_includes_default
37661 #include <$ac_header>
37663 rm -f conftest.$ac_objext
37664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37665 (eval $ac_compile) 2>conftest.er1
37667 grep -v '^ *+' conftest.er1 >conftest.err
37669 cat conftest.err >&5
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); } &&
37672 { ac_try='test -z "$ac_c_werror_flag"
37673 || test ! -s conftest.err'
37674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675 (eval $ac_try) 2>&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; } &&
37679 { ac_try='test -s conftest.$ac_objext'
37680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37681 (eval $ac_try) 2>&5
37683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37684 (exit $ac_status); }; }; then
37685 ac_header_compiler=yes
37687 echo "$as_me: failed program was:" >&5
37688 sed 's/^/| /' conftest.$ac_ext >&5
37690 ac_header_compiler=no
37692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37694 echo "${ECHO_T}$ac_header_compiler" >&6
37696 # Is the header present?
37697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37699 cat >conftest.$ac_ext <<_ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h. */
37705 #include <$ac_header>
37707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37710 grep -v '^ *+' conftest.er1 >conftest.err
37712 cat conftest.err >&5
37713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714 (exit $ac_status); } >/dev/null; then
37715 if test -s conftest.err; then
37716 ac_cpp_err=$ac_c_preproc_warn_flag
37717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37724 if test -z "$ac_cpp_err"; then
37725 ac_header_preproc=yes
37727 echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37730 ac_header_preproc=no
37732 rm -f conftest.err conftest.$ac_ext
37733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37734 echo "${ECHO_T}$ac_header_preproc" >&6
37736 # So? What about this header?
37737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37743 ac_header_preproc=yes
37746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37760 ## --------------------------------------------- ##
37761 ## Report this to <http://www.openldap.org/its/> ##
37762 ## --------------------------------------------- ##
37765 sed "s/^/$as_me: WARNING: /" >&2
37768 echo "$as_me:$LINENO: checking for $ac_header" >&5
37769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37771 echo $ECHO_N "(cached) $ECHO_C" >&6
37773 eval "$as_ac_Header=\$ac_header_preproc"
37775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37780 cat >>confdefs.h <<_ACEOF
37781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37789 for ac_header in openssl/crypto.h
37791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37793 echo "$as_me:$LINENO: checking for $ac_header" >&5
37794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37796 echo $ECHO_N "(cached) $ECHO_C" >&6
37798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37801 # Is the header compilable?
37802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37804 cat >conftest.$ac_ext <<_ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h. */
37810 $ac_includes_default
37811 #include <$ac_header>
37813 rm -f conftest.$ac_objext
37814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37815 (eval $ac_compile) 2>conftest.er1
37817 grep -v '^ *+' conftest.er1 >conftest.err
37819 cat conftest.err >&5
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } &&
37822 { ac_try='test -z "$ac_c_werror_flag"
37823 || test ! -s conftest.err'
37824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37825 (eval $ac_try) 2>&5
37827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828 (exit $ac_status); }; } &&
37829 { ac_try='test -s conftest.$ac_objext'
37830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831 (eval $ac_try) 2>&5
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); }; }; then
37835 ac_header_compiler=yes
37837 echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37840 ac_header_compiler=no
37842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37844 echo "${ECHO_T}$ac_header_compiler" >&6
37846 # Is the header present?
37847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37849 cat >conftest.$ac_ext <<_ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h. */
37855 #include <$ac_header>
37857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37860 grep -v '^ *+' conftest.er1 >conftest.err
37862 cat conftest.err >&5
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); } >/dev/null; then
37865 if test -s conftest.err; then
37866 ac_cpp_err=$ac_c_preproc_warn_flag
37867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37874 if test -z "$ac_cpp_err"; then
37875 ac_header_preproc=yes
37877 echo "$as_me: failed program was:" >&5
37878 sed 's/^/| /' conftest.$ac_ext >&5
37880 ac_header_preproc=no
37882 rm -f conftest.err conftest.$ac_ext
37883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37884 echo "${ECHO_T}$ac_header_preproc" >&6
37886 # So? What about this header?
37887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37893 ac_header_preproc=yes
37896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37910 ## --------------------------------------------- ##
37911 ## Report this to <http://www.openldap.org/its/> ##
37912 ## --------------------------------------------- ##
37915 sed "s/^/$as_me: WARNING: /" >&2
37918 echo "$as_me:$LINENO: checking for $ac_header" >&5
37919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37921 echo $ECHO_N "(cached) $ECHO_C" >&6
37923 eval "$as_ac_Header=\$ac_header_preproc"
37925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37930 cat >>confdefs.h <<_ACEOF
37931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37938 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37939 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37940 test "$ol_with_tls" = "found" ; then
37943 cat >>confdefs.h <<\_ACEOF
37944 #define USE_MP_BIGNUM 1
37947 elif test $ol_with_mp = bignum ; then
37948 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37949 echo "$as_me: error: bignum not available" >&2;}
37950 { (exit 1); exit 1; }; }
37953 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37955 for ac_header in gmp.h
37957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37959 echo "$as_me:$LINENO: checking for $ac_header" >&5
37960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37967 # Is the header compilable?
37968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37970 cat >conftest.$ac_ext <<_ACEOF
37973 cat confdefs.h >>conftest.$ac_ext
37974 cat >>conftest.$ac_ext <<_ACEOF
37975 /* end confdefs.h. */
37976 $ac_includes_default
37977 #include <$ac_header>
37979 rm -f conftest.$ac_objext
37980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37981 (eval $ac_compile) 2>conftest.er1
37983 grep -v '^ *+' conftest.er1 >conftest.err
37985 cat conftest.err >&5
37986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987 (exit $ac_status); } &&
37988 { ac_try='test -z "$ac_c_werror_flag"
37989 || test ! -s conftest.err'
37990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991 (eval $ac_try) 2>&5
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); }; } &&
37995 { ac_try='test -s conftest.$ac_objext'
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; }; then
38001 ac_header_compiler=yes
38003 echo "$as_me: failed program was:" >&5
38004 sed 's/^/| /' conftest.$ac_ext >&5
38006 ac_header_compiler=no
38008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38010 echo "${ECHO_T}$ac_header_compiler" >&6
38012 # Is the header present?
38013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38015 cat >conftest.$ac_ext <<_ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h. */
38021 #include <$ac_header>
38023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38026 grep -v '^ *+' conftest.er1 >conftest.err
38028 cat conftest.err >&5
38029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030 (exit $ac_status); } >/dev/null; then
38031 if test -s conftest.err; then
38032 ac_cpp_err=$ac_c_preproc_warn_flag
38033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38040 if test -z "$ac_cpp_err"; then
38041 ac_header_preproc=yes
38043 echo "$as_me: failed program was:" >&5
38044 sed 's/^/| /' conftest.$ac_ext >&5
38046 ac_header_preproc=no
38048 rm -f conftest.err conftest.$ac_ext
38049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38050 echo "${ECHO_T}$ac_header_preproc" >&6
38052 # So? What about this header?
38053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38059 ac_header_preproc=yes
38062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38076 ## --------------------------------------------- ##
38077 ## Report this to <http://www.openldap.org/its/> ##
38078 ## --------------------------------------------- ##
38081 sed "s/^/$as_me: WARNING: /" >&2
38084 echo "$as_me:$LINENO: checking for $ac_header" >&5
38085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38087 echo $ECHO_N "(cached) $ECHO_C" >&6
38089 eval "$as_ac_Header=\$ac_header_preproc"
38091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38096 cat >>confdefs.h <<_ACEOF
38097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38105 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38106 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38107 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38108 echo $ECHO_N "(cached) $ECHO_C" >&6
38110 ac_check_lib_save_LIBS=$LIBS
38112 cat >conftest.$ac_ext <<_ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h. */
38119 /* Override any gcc2 internal prototype to avoid an error. */
38123 /* We use char because int might match the return type of a gcc2
38124 builtin and then its argument prototype would still apply. */
38125 char __gmpz_add_ui ();
38134 rm -f conftest.$ac_objext conftest$ac_exeext
38135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38136 (eval $ac_link) 2>conftest.er1
38138 grep -v '^ *+' conftest.er1 >conftest.err
38140 cat conftest.err >&5
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); } &&
38143 { ac_try='test -z "$ac_c_werror_flag"
38144 || test ! -s conftest.err'
38145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38146 (eval $ac_try) 2>&5
38148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149 (exit $ac_status); }; } &&
38150 { ac_try='test -s conftest$ac_exeext'
38151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152 (eval $ac_try) 2>&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); }; }; then
38156 ac_cv_lib_gmp___gmpz_add_ui=yes
38158 echo "$as_me: failed program was:" >&5
38159 sed 's/^/| /' conftest.$ac_ext >&5
38161 ac_cv_lib_gmp___gmpz_add_ui=no
38163 rm -f conftest.err conftest.$ac_objext \
38164 conftest$ac_exeext conftest.$ac_ext
38165 LIBS=$ac_check_lib_save_LIBS
38167 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38168 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38169 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38170 cat >>confdefs.h <<_ACEOF
38171 #define HAVE_LIBGMP 1
38178 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38180 cat >>confdefs.h <<\_ACEOF
38181 #define USE_MP_GMP 1
38185 elif test $ol_with_mp = gmp ; then
38186 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38187 echo "$as_me: error: gmp not available" >&2;}
38188 { (exit 1); exit 1; }; }
38191 if test $ol_with_mp = auto ; then
38195 echo "$as_me:$LINENO: checking for working memcmp" >&5
38196 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38197 if test "${ac_cv_func_memcmp_working+set}" = set; then
38198 echo $ECHO_N "(cached) $ECHO_C" >&6
38200 if test "$cross_compiling" = yes; then
38201 ac_cv_func_memcmp_working=no
38203 cat >conftest.$ac_ext <<_ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h. */
38209 $ac_includes_default
38214 /* Some versions of memcmp are not 8-bit clean. */
38215 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38216 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38219 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38220 or more and with at least one buffer not starting on a 4-byte boundary.
38221 William Lewis provided this test program. */
38226 for (i = 0; i < 4; i++)
38230 strcpy (a, "--------01111111");
38231 strcpy (b, "--------10000000");
38232 if (memcmp (a, b, 16) >= 0)
38242 rm -f conftest$ac_exeext
38243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38244 (eval $ac_link) 2>&5
38246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38249 (eval $ac_try) 2>&5
38251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252 (exit $ac_status); }; }; then
38253 ac_cv_func_memcmp_working=yes
38255 echo "$as_me: program exited with status $ac_status" >&5
38256 echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38259 ( exit $ac_status )
38260 ac_cv_func_memcmp_working=no
38262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38265 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38266 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38267 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38268 "memcmp.$ac_objext" | \
38269 *" memcmp.$ac_objext" | \
38270 "memcmp.$ac_objext "* | \
38271 *" memcmp.$ac_objext "* ) ;;
38272 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38277 if test $ac_cv_func_memcmp_working = no ; then
38279 cat >>confdefs.h <<\_ACEOF
38280 #define NEED_MEMCMP_REPLACEMENT 1
38286 for ac_func in strftime
38288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38289 echo "$as_me:$LINENO: checking for $ac_func" >&5
38290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38291 if eval "test \"\${$as_ac_var+set}\" = set"; then
38292 echo $ECHO_N "(cached) $ECHO_C" >&6
38294 cat >conftest.$ac_ext <<_ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h. */
38300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38302 #define $ac_func innocuous_$ac_func
38304 /* System header to define __stub macros and hopefully few prototypes,
38305 which can conflict with char $ac_func (); below.
38306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38307 <limits.h> exists even on freestanding compilers. */
38310 # include <limits.h>
38312 # include <assert.h>
38317 /* Override any gcc2 internal prototype to avoid an error. */
38322 /* We use char because int might match the return type of a gcc2
38323 builtin and then its argument prototype would still apply. */
38325 /* The GNU C library defines this for functions which it implements
38326 to always fail with ENOSYS. Some functions are actually named
38327 something starting with __ and the normal name is an alias. */
38328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38331 char (*f) () = $ac_func;
38340 return f != $ac_func;
38345 rm -f conftest.$ac_objext conftest$ac_exeext
38346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38347 (eval $ac_link) 2>conftest.er1
38349 grep -v '^ *+' conftest.er1 >conftest.err
38351 cat conftest.err >&5
38352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353 (exit $ac_status); } &&
38354 { ac_try='test -z "$ac_c_werror_flag"
38355 || test ! -s conftest.err'
38356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 (eval $ac_try) 2>&5
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); }; } &&
38361 { ac_try='test -s conftest$ac_exeext'
38362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363 (eval $ac_try) 2>&5
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; }; then
38367 eval "$as_ac_var=yes"
38369 echo "$as_me: failed program was:" >&5
38370 sed 's/^/| /' conftest.$ac_ext >&5
38372 eval "$as_ac_var=no"
38374 rm -f conftest.err conftest.$ac_objext \
38375 conftest$ac_exeext conftest.$ac_ext
38377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38379 if test `eval echo '${'$as_ac_var'}'` = yes; then
38380 cat >>confdefs.h <<_ACEOF
38381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38385 # strftime is in -lintl on SCO UNIX.
38386 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38387 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38389 echo $ECHO_N "(cached) $ECHO_C" >&6
38391 ac_check_lib_save_LIBS=$LIBS
38392 LIBS="-lintl $LIBS"
38393 cat >conftest.$ac_ext <<_ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h. */
38400 /* Override any gcc2 internal prototype to avoid an error. */
38404 /* We use char because int might match the return type of a gcc2
38405 builtin and then its argument prototype would still apply. */
38415 rm -f conftest.$ac_objext conftest$ac_exeext
38416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38417 (eval $ac_link) 2>conftest.er1
38419 grep -v '^ *+' conftest.er1 >conftest.err
38421 cat conftest.err >&5
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); } &&
38424 { ac_try='test -z "$ac_c_werror_flag"
38425 || test ! -s conftest.err'
38426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427 (eval $ac_try) 2>&5
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); }; } &&
38431 { ac_try='test -s conftest$ac_exeext'
38432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433 (eval $ac_try) 2>&5
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); }; }; then
38437 ac_cv_lib_intl_strftime=yes
38439 echo "$as_me: failed program was:" >&5
38440 sed 's/^/| /' conftest.$ac_ext >&5
38442 ac_cv_lib_intl_strftime=no
38444 rm -f conftest.err conftest.$ac_objext \
38445 conftest$ac_exeext conftest.$ac_ext
38446 LIBS=$ac_check_lib_save_LIBS
38448 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38449 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38450 if test $ac_cv_lib_intl_strftime = yes; then
38451 cat >>confdefs.h <<\_ACEOF
38452 #define HAVE_STRFTIME 1
38455 LIBS="-lintl $LIBS"
38462 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38463 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38464 if test "${ol_cv_func_inet_aton+set}" = set; then
38465 echo $ECHO_N "(cached) $ECHO_C" >&6
38467 cat >conftest.$ac_ext <<_ACEOF
38470 cat confdefs.h >>conftest.$ac_ext
38471 cat >>conftest.$ac_ext <<_ACEOF
38472 /* end confdefs.h. */
38474 #ifdef HAVE_SYS_TYPES_H
38475 # include <sys/types.h>
38477 #ifdef HAVE_SYS_SOCKET_H
38478 # include <sys/socket.h>
38479 # ifdef HAVE_SYS_SELECT_H
38480 # include <sys/select.h>
38482 # include <netinet/in.h>
38483 # ifdef HAVE_ARPA_INET_H
38484 # include <arpa/inet.h>
38492 int rc = inet_aton( "255.255.255.255", &in );
38497 rm -f conftest.$ac_objext conftest$ac_exeext
38498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38499 (eval $ac_link) 2>conftest.er1
38501 grep -v '^ *+' conftest.er1 >conftest.err
38503 cat conftest.err >&5
38504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505 (exit $ac_status); } &&
38506 { ac_try='test -z "$ac_c_werror_flag"
38507 || test ! -s conftest.err'
38508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509 (eval $ac_try) 2>&5
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); }; } &&
38513 { ac_try='test -s conftest$ac_exeext'
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; }; then
38519 ol_cv_func_inet_aton=yes
38521 echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38524 ol_cv_func_inet_aton=no
38526 rm -f conftest.err conftest.$ac_objext \
38527 conftest$ac_exeext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38530 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38531 if test $ol_cv_func_inet_aton != no; then
38533 cat >>confdefs.h <<\_ACEOF
38534 #define HAVE_INET_ATON 1
38540 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38541 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38542 if test "${ac_cv_func__spawnlp+set}" = set; then
38543 echo $ECHO_N "(cached) $ECHO_C" >&6
38545 cat >conftest.$ac_ext <<_ACEOF
38548 cat confdefs.h >>conftest.$ac_ext
38549 cat >>conftest.$ac_ext <<_ACEOF
38550 /* end confdefs.h. */
38551 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38553 #define _spawnlp innocuous__spawnlp
38555 /* System header to define __stub macros and hopefully few prototypes,
38556 which can conflict with char _spawnlp (); below.
38557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38558 <limits.h> exists even on freestanding compilers. */
38561 # include <limits.h>
38563 # include <assert.h>
38568 /* Override any gcc2 internal prototype to avoid an error. */
38573 /* We use char because int might match the return type of a gcc2
38574 builtin and then its argument prototype would still apply. */
38576 /* The GNU C library defines this for functions which it implements
38577 to always fail with ENOSYS. Some functions are actually named
38578 something starting with __ and the normal name is an alias. */
38579 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38582 char (*f) () = _spawnlp;
38591 return f != _spawnlp;
38596 rm -f conftest.$ac_objext conftest$ac_exeext
38597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38598 (eval $ac_link) 2>conftest.er1
38600 grep -v '^ *+' conftest.er1 >conftest.err
38602 cat conftest.err >&5
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); } &&
38605 { ac_try='test -z "$ac_c_werror_flag"
38606 || test ! -s conftest.err'
38607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608 (eval $ac_try) 2>&5
38610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611 (exit $ac_status); }; } &&
38612 { ac_try='test -s conftest$ac_exeext'
38613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38614 (eval $ac_try) 2>&5
38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); }; }; then
38618 ac_cv_func__spawnlp=yes
38620 echo "$as_me: failed program was:" >&5
38621 sed 's/^/| /' conftest.$ac_ext >&5
38623 ac_cv_func__spawnlp=no
38625 rm -f conftest.err conftest.$ac_objext \
38626 conftest$ac_exeext conftest.$ac_ext
38628 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38629 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38630 if test $ac_cv_func__spawnlp = yes; then
38632 cat >>confdefs.h <<\_ACEOF
38633 #define HAVE_SPAWNLP 1
38639 echo "$as_me:$LINENO: checking for _snprintf" >&5
38640 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38641 if test "${ac_cv_func__snprintf+set}" = set; then
38642 echo $ECHO_N "(cached) $ECHO_C" >&6
38644 cat >conftest.$ac_ext <<_ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38650 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38652 #define _snprintf innocuous__snprintf
38654 /* System header to define __stub macros and hopefully few prototypes,
38655 which can conflict with char _snprintf (); below.
38656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38657 <limits.h> exists even on freestanding compilers. */
38660 # include <limits.h>
38662 # include <assert.h>
38667 /* Override any gcc2 internal prototype to avoid an error. */
38672 /* We use char because int might match the return type of a gcc2
38673 builtin and then its argument prototype would still apply. */
38675 /* The GNU C library defines this for functions which it implements
38676 to always fail with ENOSYS. Some functions are actually named
38677 something starting with __ and the normal name is an alias. */
38678 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38681 char (*f) () = _snprintf;
38690 return f != _snprintf;
38695 rm -f conftest.$ac_objext conftest$ac_exeext
38696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38697 (eval $ac_link) 2>conftest.er1
38699 grep -v '^ *+' conftest.er1 >conftest.err
38701 cat conftest.err >&5
38702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703 (exit $ac_status); } &&
38704 { ac_try='test -z "$ac_c_werror_flag"
38705 || test ! -s conftest.err'
38706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38707 (eval $ac_try) 2>&5
38709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710 (exit $ac_status); }; } &&
38711 { ac_try='test -s conftest$ac_exeext'
38712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38713 (eval $ac_try) 2>&5
38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716 (exit $ac_status); }; }; then
38717 ac_cv_func__snprintf=yes
38719 echo "$as_me: failed program was:" >&5
38720 sed 's/^/| /' conftest.$ac_ext >&5
38722 ac_cv_func__snprintf=no
38724 rm -f conftest.err conftest.$ac_objext \
38725 conftest$ac_exeext conftest.$ac_ext
38727 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38728 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38729 if test $ac_cv_func__snprintf = yes; then
38730 ac_cv_func_snprintf=yes
38732 cat >>confdefs.h <<\_ACEOF
38733 #define snprintf _snprintf
38740 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38741 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38742 if test "${ac_cv_func__vsnprintf+set}" = set; then
38743 echo $ECHO_N "(cached) $ECHO_C" >&6
38745 cat >conftest.$ac_ext <<_ACEOF
38748 cat confdefs.h >>conftest.$ac_ext
38749 cat >>conftest.$ac_ext <<_ACEOF
38750 /* end confdefs.h. */
38751 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38753 #define _vsnprintf innocuous__vsnprintf
38755 /* System header to define __stub macros and hopefully few prototypes,
38756 which can conflict with char _vsnprintf (); below.
38757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38758 <limits.h> exists even on freestanding compilers. */
38761 # include <limits.h>
38763 # include <assert.h>
38768 /* Override any gcc2 internal prototype to avoid an error. */
38773 /* We use char because int might match the return type of a gcc2
38774 builtin and then its argument prototype would still apply. */
38775 char _vsnprintf ();
38776 /* The GNU C library defines this for functions which it implements
38777 to always fail with ENOSYS. Some functions are actually named
38778 something starting with __ and the normal name is an alias. */
38779 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38782 char (*f) () = _vsnprintf;
38791 return f != _vsnprintf;
38796 rm -f conftest.$ac_objext conftest$ac_exeext
38797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38798 (eval $ac_link) 2>conftest.er1
38800 grep -v '^ *+' conftest.er1 >conftest.err
38802 cat conftest.err >&5
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); } &&
38805 { ac_try='test -z "$ac_c_werror_flag"
38806 || test ! -s conftest.err'
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; } &&
38812 { ac_try='test -s conftest$ac_exeext'
38813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38814 (eval $ac_try) 2>&5
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); }; }; then
38818 ac_cv_func__vsnprintf=yes
38820 echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38823 ac_cv_func__vsnprintf=no
38825 rm -f conftest.err conftest.$ac_objext \
38826 conftest$ac_exeext conftest.$ac_ext
38828 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38829 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38830 if test $ac_cv_func__vsnprintf = yes; then
38831 ac_cv_func_vsnprintf=yes
38833 cat >>confdefs.h <<\_ACEOF
38834 #define vsnprintf _vsnprintf
38842 for ac_func in vprintf
38844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38845 echo "$as_me:$LINENO: checking for $ac_func" >&5
38846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38847 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38858 #define $ac_func innocuous_$ac_func
38860 /* System header to define __stub macros and hopefully few prototypes,
38861 which can conflict with char $ac_func (); below.
38862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38863 <limits.h> exists even on freestanding compilers. */
38866 # include <limits.h>
38868 # include <assert.h>
38873 /* Override any gcc2 internal prototype to avoid an error. */
38878 /* We use char because int might match the return type of a gcc2
38879 builtin and then its argument prototype would still apply. */
38881 /* The GNU C library defines this for functions which it implements
38882 to always fail with ENOSYS. Some functions are actually named
38883 something starting with __ and the normal name is an alias. */
38884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38887 char (*f) () = $ac_func;
38896 return f != $ac_func;
38901 rm -f conftest.$ac_objext conftest$ac_exeext
38902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38903 (eval $ac_link) 2>conftest.er1
38905 grep -v '^ *+' conftest.er1 >conftest.err
38907 cat conftest.err >&5
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); } &&
38910 { ac_try='test -z "$ac_c_werror_flag"
38911 || test ! -s conftest.err'
38912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38913 (eval $ac_try) 2>&5
38915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916 (exit $ac_status); }; } &&
38917 { ac_try='test -s conftest$ac_exeext'
38918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38919 (eval $ac_try) 2>&5
38921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922 (exit $ac_status); }; }; then
38923 eval "$as_ac_var=yes"
38925 echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38928 eval "$as_ac_var=no"
38930 rm -f conftest.err conftest.$ac_objext \
38931 conftest$ac_exeext conftest.$ac_ext
38933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38935 if test `eval echo '${'$as_ac_var'}'` = yes; then
38936 cat >>confdefs.h <<_ACEOF
38937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38940 echo "$as_me:$LINENO: checking for _doprnt" >&5
38941 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38942 if test "${ac_cv_func__doprnt+set}" = set; then
38943 echo $ECHO_N "(cached) $ECHO_C" >&6
38945 cat >conftest.$ac_ext <<_ACEOF
38948 cat confdefs.h >>conftest.$ac_ext
38949 cat >>conftest.$ac_ext <<_ACEOF
38950 /* end confdefs.h. */
38951 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38953 #define _doprnt innocuous__doprnt
38955 /* System header to define __stub macros and hopefully few prototypes,
38956 which can conflict with char _doprnt (); below.
38957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38958 <limits.h> exists even on freestanding compilers. */
38961 # include <limits.h>
38963 # include <assert.h>
38968 /* Override any gcc2 internal prototype to avoid an error. */
38973 /* We use char because int might match the return type of a gcc2
38974 builtin and then its argument prototype would still apply. */
38976 /* The GNU C library defines this for functions which it implements
38977 to always fail with ENOSYS. Some functions are actually named
38978 something starting with __ and the normal name is an alias. */
38979 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38982 char (*f) () = _doprnt;
38991 return f != _doprnt;
38996 rm -f conftest.$ac_objext conftest$ac_exeext
38997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38998 (eval $ac_link) 2>conftest.er1
39000 grep -v '^ *+' conftest.er1 >conftest.err
39002 cat conftest.err >&5
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); } &&
39005 { ac_try='test -z "$ac_c_werror_flag"
39006 || test ! -s conftest.err'
39007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008 (eval $ac_try) 2>&5
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); }; } &&
39012 { ac_try='test -s conftest$ac_exeext'
39013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014 (eval $ac_try) 2>&5
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); }; }; then
39018 ac_cv_func__doprnt=yes
39020 echo "$as_me: failed program was:" >&5
39021 sed 's/^/| /' conftest.$ac_ext >&5
39023 ac_cv_func__doprnt=no
39025 rm -f conftest.err conftest.$ac_objext \
39026 conftest$ac_exeext conftest.$ac_ext
39028 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39029 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39030 if test $ac_cv_func__doprnt = yes; then
39032 cat >>confdefs.h <<\_ACEOF
39033 #define HAVE_DOPRNT 1
39043 if test $ac_cv_func_vprintf = yes ; then
39046 for ac_func in snprintf vsnprintf
39048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39049 echo "$as_me:$LINENO: checking for $ac_func" >&5
39050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39051 if eval "test \"\${$as_ac_var+set}\" = set"; then
39052 echo $ECHO_N "(cached) $ECHO_C" >&6
39054 cat >conftest.$ac_ext <<_ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h. */
39060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39062 #define $ac_func innocuous_$ac_func
39064 /* System header to define __stub macros and hopefully few prototypes,
39065 which can conflict with char $ac_func (); below.
39066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39067 <limits.h> exists even on freestanding compilers. */
39070 # include <limits.h>
39072 # include <assert.h>
39077 /* Override any gcc2 internal prototype to avoid an error. */
39082 /* We use char because int might match the return type of a gcc2
39083 builtin and then its argument prototype would still apply. */
39085 /* The GNU C library defines this for functions which it implements
39086 to always fail with ENOSYS. Some functions are actually named
39087 something starting with __ and the normal name is an alias. */
39088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39091 char (*f) () = $ac_func;
39100 return f != $ac_func;
39105 rm -f conftest.$ac_objext conftest$ac_exeext
39106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39107 (eval $ac_link) 2>conftest.er1
39109 grep -v '^ *+' conftest.er1 >conftest.err
39111 cat conftest.err >&5
39112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113 (exit $ac_status); } &&
39114 { ac_try='test -z "$ac_c_werror_flag"
39115 || test ! -s conftest.err'
39116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39117 (eval $ac_try) 2>&5
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); }; } &&
39121 { ac_try='test -s conftest$ac_exeext'
39122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39123 (eval $ac_try) 2>&5
39125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126 (exit $ac_status); }; }; then
39127 eval "$as_ac_var=yes"
39129 echo "$as_me: failed program was:" >&5
39130 sed 's/^/| /' conftest.$ac_ext >&5
39132 eval "$as_ac_var=no"
39134 rm -f conftest.err conftest.$ac_objext \
39135 conftest$ac_exeext conftest.$ac_ext
39137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39139 if test `eval echo '${'$as_ac_var'}'` = yes; then
39140 cat >>confdefs.h <<_ACEOF
39141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39263 echo "$as_me:$LINENO: checking for $ac_func" >&5
39264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39265 if eval "test \"\${$as_ac_var+set}\" = set"; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39268 cat >conftest.$ac_ext <<_ACEOF
39271 cat confdefs.h >>conftest.$ac_ext
39272 cat >>conftest.$ac_ext <<_ACEOF
39273 /* end confdefs.h. */
39274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39276 #define $ac_func innocuous_$ac_func
39278 /* System header to define __stub macros and hopefully few prototypes,
39279 which can conflict with char $ac_func (); below.
39280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39281 <limits.h> exists even on freestanding compilers. */
39284 # include <limits.h>
39286 # include <assert.h>
39291 /* Override any gcc2 internal prototype to avoid an error. */
39296 /* We use char because int might match the return type of a gcc2
39297 builtin and then its argument prototype would still apply. */
39299 /* The GNU C library defines this for functions which it implements
39300 to always fail with ENOSYS. Some functions are actually named
39301 something starting with __ and the normal name is an alias. */
39302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39305 char (*f) () = $ac_func;
39314 return f != $ac_func;
39319 rm -f conftest.$ac_objext conftest$ac_exeext
39320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39321 (eval $ac_link) 2>conftest.er1
39323 grep -v '^ *+' conftest.er1 >conftest.err
39325 cat conftest.err >&5
39326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 (exit $ac_status); } &&
39328 { ac_try='test -z "$ac_c_werror_flag"
39329 || test ! -s conftest.err'
39330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331 (eval $ac_try) 2>&5
39333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334 (exit $ac_status); }; } &&
39335 { ac_try='test -s conftest$ac_exeext'
39336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39337 (eval $ac_try) 2>&5
39339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39340 (exit $ac_status); }; }; then
39341 eval "$as_ac_var=yes"
39343 echo "$as_me: failed program was:" >&5
39344 sed 's/^/| /' conftest.$ac_ext >&5
39346 eval "$as_ac_var=no"
39348 rm -f conftest.err conftest.$ac_objext \
39349 conftest$ac_exeext conftest.$ac_ext
39351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39353 if test `eval echo '${'$as_ac_var'}'` = yes; then
39354 cat >>confdefs.h <<_ACEOF
39355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39364 for ac_func in getopt getpeereid
39366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39367 echo "$as_me:$LINENO: checking for $ac_func" >&5
39368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39369 if eval "test \"\${$as_ac_var+set}\" = set"; then
39370 echo $ECHO_N "(cached) $ECHO_C" >&6
39372 cat >conftest.$ac_ext <<_ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h. */
39378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39380 #define $ac_func innocuous_$ac_func
39382 /* System header to define __stub macros and hopefully few prototypes,
39383 which can conflict with char $ac_func (); below.
39384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39385 <limits.h> exists even on freestanding compilers. */
39388 # include <limits.h>
39390 # include <assert.h>
39395 /* Override any gcc2 internal prototype to avoid an error. */
39400 /* We use char because int might match the return type of a gcc2
39401 builtin and then its argument prototype would still apply. */
39403 /* The GNU C library defines this for functions which it implements
39404 to always fail with ENOSYS. Some functions are actually named
39405 something starting with __ and the normal name is an alias. */
39406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39409 char (*f) () = $ac_func;
39418 return f != $ac_func;
39423 rm -f conftest.$ac_objext conftest$ac_exeext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39425 (eval $ac_link) 2>conftest.er1
39427 grep -v '^ *+' conftest.er1 >conftest.err
39429 cat conftest.err >&5
39430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); } &&
39432 { ac_try='test -z "$ac_c_werror_flag"
39433 || test ! -s conftest.err'
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest$ac_exeext'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39445 eval "$as_ac_var=yes"
39447 echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39450 eval "$as_ac_var=no"
39452 rm -f conftest.err conftest.$ac_objext \
39453 conftest$ac_exeext conftest.$ac_ext
39455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39457 if test `eval echo '${'$as_ac_var'}'` = yes; then
39458 cat >>confdefs.h <<_ACEOF
39459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39464 "$ac_func.$ac_objext" | \
39465 *" $ac_func.$ac_objext" | \
39466 "$ac_func.$ac_objext "* | \
39467 *" $ac_func.$ac_objext "* ) ;;
39468 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39476 if test "$ac_cv_func_getopt" != yes; then
39477 LIBSRCS="$LIBSRCS getopt.c"
39480 if test "$ac_cv_func_getpeereid" != yes; then
39482 for ac_func in getpeerucred
39484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39485 echo "$as_me:$LINENO: checking for $ac_func" >&5
39486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39487 if eval "test \"\${$as_ac_var+set}\" = set"; then
39488 echo $ECHO_N "(cached) $ECHO_C" >&6
39490 cat >conftest.$ac_ext <<_ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h. */
39496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39498 #define $ac_func innocuous_$ac_func
39500 /* System header to define __stub macros and hopefully few prototypes,
39501 which can conflict with char $ac_func (); below.
39502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39503 <limits.h> exists even on freestanding compilers. */
39506 # include <limits.h>
39508 # include <assert.h>
39513 /* Override any gcc2 internal prototype to avoid an error. */
39518 /* We use char because int might match the return type of a gcc2
39519 builtin and then its argument prototype would still apply. */
39521 /* The GNU C library defines this for functions which it implements
39522 to always fail with ENOSYS. Some functions are actually named
39523 something starting with __ and the normal name is an alias. */
39524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39527 char (*f) () = $ac_func;
39536 return f != $ac_func;
39541 rm -f conftest.$ac_objext conftest$ac_exeext
39542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39543 (eval $ac_link) 2>conftest.er1
39545 grep -v '^ *+' conftest.er1 >conftest.err
39547 cat conftest.err >&5
39548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549 (exit $ac_status); } &&
39550 { ac_try='test -z "$ac_c_werror_flag"
39551 || test ! -s conftest.err'
39552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553 (eval $ac_try) 2>&5
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); }; } &&
39557 { ac_try='test -s conftest$ac_exeext'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 eval "$as_ac_var=yes"
39565 echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39568 eval "$as_ac_var=no"
39570 rm -f conftest.err conftest.$ac_objext \
39571 conftest$ac_exeext conftest.$ac_ext
39573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39575 if test `eval echo '${'$as_ac_var'}'` = yes; then
39576 cat >>confdefs.h <<_ACEOF
39577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39583 if test "$ac_cv_func_getpeerucred" != yes ; then
39584 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39585 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39586 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39587 echo $ECHO_N "(cached) $ECHO_C" >&6
39589 cat >conftest.$ac_ext <<_ACEOF
39592 cat confdefs.h >>conftest.$ac_ext
39593 cat >>conftest.$ac_ext <<_ACEOF
39594 /* end confdefs.h. */
39595 $ac_includes_default
39596 #ifdef HAVE_SYS_SOCKET_H
39597 #include <sys/socket.h>
39603 static struct msghdr ac_aggr;
39604 if (ac_aggr.msg_accrightslen)
39610 rm -f conftest.$ac_objext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39612 (eval $ac_compile) 2>conftest.er1
39614 grep -v '^ *+' conftest.er1 >conftest.err
39616 cat conftest.err >&5
39617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618 (exit $ac_status); } &&
39619 { ac_try='test -z "$ac_c_werror_flag"
39620 || test ! -s conftest.err'
39621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622 (eval $ac_try) 2>&5
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); }; } &&
39626 { ac_try='test -s conftest.$ac_objext'
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; }; then
39632 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39634 echo "$as_me: failed program was:" >&5
39635 sed 's/^/| /' conftest.$ac_ext >&5
39637 cat >conftest.$ac_ext <<_ACEOF
39640 cat confdefs.h >>conftest.$ac_ext
39641 cat >>conftest.$ac_ext <<_ACEOF
39642 /* end confdefs.h. */
39643 $ac_includes_default
39644 #ifdef HAVE_SYS_SOCKET_H
39645 #include <sys/socket.h>
39651 static struct msghdr ac_aggr;
39652 if (sizeof ac_aggr.msg_accrightslen)
39658 rm -f conftest.$ac_objext
39659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39660 (eval $ac_compile) 2>conftest.er1
39662 grep -v '^ *+' conftest.er1 >conftest.err
39664 cat conftest.err >&5
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); } &&
39667 { ac_try='test -z "$ac_c_werror_flag"
39668 || test ! -s conftest.err'
39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670 (eval $ac_try) 2>&5
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; } &&
39674 { ac_try='test -s conftest.$ac_objext'
39675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39676 (eval $ac_try) 2>&5
39678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679 (exit $ac_status); }; }; then
39680 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39682 echo "$as_me: failed program was:" >&5
39683 sed 's/^/| /' conftest.$ac_ext >&5
39685 ac_cv_member_struct_msghdr_msg_accrightslen=no
39687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39692 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39693 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39695 cat >>confdefs.h <<_ACEOF
39696 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39702 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39703 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39704 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39705 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39706 echo $ECHO_N "(cached) $ECHO_C" >&6
39708 cat >conftest.$ac_ext <<_ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h. */
39714 $ac_includes_default
39715 #ifdef HAVE_SYS_SOCKET_H
39716 #include <sys/socket.h>
39722 static struct msghdr ac_aggr;
39723 if (ac_aggr.msg_control)
39729 rm -f conftest.$ac_objext
39730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39731 (eval $ac_compile) 2>conftest.er1
39733 grep -v '^ *+' conftest.er1 >conftest.err
39735 cat conftest.err >&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } &&
39738 { ac_try='test -z "$ac_c_werror_flag"
39739 || test ! -s conftest.err'
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest.$ac_objext'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751 ac_cv_member_struct_msghdr_msg_control=yes
39753 echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.$ac_ext >&5
39756 cat >conftest.$ac_ext <<_ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h. */
39762 $ac_includes_default
39763 #ifdef HAVE_SYS_SOCKET_H
39764 #include <sys/socket.h>
39770 static struct msghdr ac_aggr;
39771 if (sizeof ac_aggr.msg_control)
39777 rm -f conftest.$ac_objext
39778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39779 (eval $ac_compile) 2>conftest.er1
39781 grep -v '^ *+' conftest.er1 >conftest.err
39783 cat conftest.err >&5
39784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785 (exit $ac_status); } &&
39786 { ac_try='test -z "$ac_c_werror_flag"
39787 || test ! -s conftest.err'
39788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39789 (eval $ac_try) 2>&5
39791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792 (exit $ac_status); }; } &&
39793 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39799 ac_cv_member_struct_msghdr_msg_control=yes
39801 echo "$as_me: failed program was:" >&5
39802 sed 's/^/| /' conftest.$ac_ext >&5
39804 ac_cv_member_struct_msghdr_msg_control=no
39806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39811 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39812 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39814 cat >>confdefs.h <<_ACEOF
39815 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39823 LIBSRCS="$LIBSRCS getpeereid.c"
39826 if test "$ac_cv_func_snprintf" != yes ||
39827 test "$ac_cv_func_vsnprintf" != yes; then
39828 if test "$ac_cv_func_snprintf" != yes; then
39830 cat >>confdefs.h <<\_ACEOF
39831 #define snprintf ber_pvt_snprintf
39835 if test "$ac_cv_func_vsnprintf" != yes; then
39837 cat >>confdefs.h <<\_ACEOF
39838 #define vsnprintf ber_pvt_vsnprintf
39845 if test "$ol_enable_slapi" != no ; then
39847 for ac_header in ltdl.h
39849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39851 echo "$as_me:$LINENO: checking for $ac_header" >&5
39852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39854 echo $ECHO_N "(cached) $ECHO_C" >&6
39856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39859 # Is the header compilable?
39860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39862 cat >conftest.$ac_ext <<_ACEOF
39865 cat confdefs.h >>conftest.$ac_ext
39866 cat >>conftest.$ac_ext <<_ACEOF
39867 /* end confdefs.h. */
39868 $ac_includes_default
39869 #include <$ac_header>
39871 rm -f conftest.$ac_objext
39872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39873 (eval $ac_compile) 2>conftest.er1
39875 grep -v '^ *+' conftest.er1 >conftest.err
39877 cat conftest.err >&5
39878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); } &&
39880 { ac_try='test -z "$ac_c_werror_flag"
39881 || test ! -s conftest.err'
39882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39883 (eval $ac_try) 2>&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); }; } &&
39887 { ac_try='test -s conftest.$ac_objext'
39888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39889 (eval $ac_try) 2>&5
39891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892 (exit $ac_status); }; }; then
39893 ac_header_compiler=yes
39895 echo "$as_me: failed program was:" >&5
39896 sed 's/^/| /' conftest.$ac_ext >&5
39898 ac_header_compiler=no
39900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39902 echo "${ECHO_T}$ac_header_compiler" >&6
39904 # Is the header present?
39905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39907 cat >conftest.$ac_ext <<_ACEOF
39910 cat confdefs.h >>conftest.$ac_ext
39911 cat >>conftest.$ac_ext <<_ACEOF
39912 /* end confdefs.h. */
39913 #include <$ac_header>
39915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39918 grep -v '^ *+' conftest.er1 >conftest.err
39920 cat conftest.err >&5
39921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39922 (exit $ac_status); } >/dev/null; then
39923 if test -s conftest.err; then
39924 ac_cpp_err=$ac_c_preproc_warn_flag
39925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39932 if test -z "$ac_cpp_err"; then
39933 ac_header_preproc=yes
39935 echo "$as_me: failed program was:" >&5
39936 sed 's/^/| /' conftest.$ac_ext >&5
39938 ac_header_preproc=no
39940 rm -f conftest.err conftest.$ac_ext
39941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39942 echo "${ECHO_T}$ac_header_preproc" >&6
39944 # So? What about this header?
39945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39951 ac_header_preproc=yes
39954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39968 ## --------------------------------------------- ##
39969 ## Report this to <http://www.openldap.org/its/> ##
39970 ## --------------------------------------------- ##
39973 sed "s/^/$as_me: WARNING: /" >&2
39976 echo "$as_me:$LINENO: checking for $ac_header" >&5
39977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39979 echo $ECHO_N "(cached) $ECHO_C" >&6
39981 eval "$as_ac_Header=\$ac_header_preproc"
39983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39988 cat >>confdefs.h <<_ACEOF
39989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39997 if test $ac_cv_header_ltdl_h != yes ; then
39998 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39999 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40000 { (exit 1); exit 1; }; }
40002 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40003 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40004 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40005 echo $ECHO_N "(cached) $ECHO_C" >&6
40007 ac_check_lib_save_LIBS=$LIBS
40008 LIBS="-lltdl $LIBS"
40009 cat >conftest.$ac_ext <<_ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h. */
40016 /* Override any gcc2 internal prototype to avoid an error. */
40020 /* We use char because int might match the return type of a gcc2
40021 builtin and then its argument prototype would still apply. */
40031 rm -f conftest.$ac_objext conftest$ac_exeext
40032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40033 (eval $ac_link) 2>conftest.er1
40035 grep -v '^ *+' conftest.er1 >conftest.err
40037 cat conftest.err >&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); } &&
40040 { ac_try='test -z "$ac_c_werror_flag"
40041 || test ! -s conftest.err'
40042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40043 (eval $ac_try) 2>&5
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); }; } &&
40047 { ac_try='test -s conftest$ac_exeext'
40048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049 (eval $ac_try) 2>&5
40051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052 (exit $ac_status); }; }; then
40053 ac_cv_lib_ltdl_lt_dlinit=yes
40055 echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40058 ac_cv_lib_ltdl_lt_dlinit=no
40060 rm -f conftest.err conftest.$ac_objext \
40061 conftest$ac_exeext conftest.$ac_ext
40062 LIBS=$ac_check_lib_save_LIBS
40064 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40065 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40066 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40069 LIBSLAPI=libslapi.a
40070 LIBSLAPITOOLS=../libslapi.a
40072 cat >>confdefs.h <<\_ACEOF
40073 #define HAVE_LIBLTDL 1
40078 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40079 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40080 { (exit 1); exit 1; }; }
40085 cat >>confdefs.h <<\_ACEOF
40086 #define LDAP_SLAPI 1
40091 if test "$ol_enable_debug" != no ; then
40092 if test "$ol_enable_debug" = traditional; then
40094 cat >>confdefs.h <<\_ACEOF
40095 #define OLD_DEBUG 1
40100 cat >>confdefs.h <<\_ACEOF
40101 #define LDAP_DEBUG 1
40105 if test "$ol_enable_syslog" = yes ; then
40107 cat >>confdefs.h <<\_ACEOF
40108 #define LDAP_SYSLOG 1
40112 if test "$ol_link_kbind" != no ; then
40114 cat >>confdefs.h <<\_ACEOF
40115 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40119 if test "$ol_enable_proctitle" != no ; then
40121 cat >>confdefs.h <<\_ACEOF
40122 #define LDAP_PROCTITLE 1
40126 if test "$ol_enable_referrals" != no ; then
40128 cat >>confdefs.h <<\_ACEOF
40129 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40133 if test "$ol_enable_local" != no; then
40135 cat >>confdefs.h <<\_ACEOF
40136 #define LDAP_PF_LOCAL 1
40140 if test "$ol_link_ipv6" != no; then
40142 cat >>confdefs.h <<\_ACEOF
40143 #define LDAP_PF_INET6 1
40147 if test "$ol_enable_cleartext" != no ; then
40149 cat >>confdefs.h <<\_ACEOF
40150 #define SLAPD_CLEARTEXT 1
40154 if test "$ol_enable_crypt" != no ; then
40156 cat >>confdefs.h <<\_ACEOF
40157 #define SLAPD_CRYPT 1
40161 if test "$ol_link_spasswd" != no ; then
40163 cat >>confdefs.h <<\_ACEOF
40164 #define SLAPD_SPASSWD 1
40168 if test "$ol_enable_rlookups" != no ; then
40170 cat >>confdefs.h <<\_ACEOF
40171 #define SLAPD_RLOOKUPS 1
40175 if test "$ol_enable_aci" != no ; then
40176 if test $ol_enable_dynacl = no ; then
40177 ol_enable_dynacl=yes
40178 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40179 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40181 if test "$ol_enable_aci" = mod ; then
40182 MFLAG=SLAPD_MOD_DYNAMIC
40183 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40184 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40185 { (exit 1); exit 1; }; }
40187 MFLAG=SLAPD_MOD_STATIC
40189 WITH_ACI_ENABLED=$ol_enable_aci
40191 cat >>confdefs.h <<_ACEOF
40192 #define SLAPD_ACI_ENABLED $MFLAG
40196 WITH_ACI_ENABLED=no
40198 if test "$ol_enable_dynacl" != no ; then
40200 cat >>confdefs.h <<\_ACEOF
40201 #define SLAP_DYNACL 1
40206 if test "$ol_link_modules" != no ; then
40208 cat >>confdefs.h <<\_ACEOF
40209 #define SLAPD_MODULES 1
40213 SLAPD_MODULES_LDFLAGS="-dlopen self"
40217 cat >>confdefs.h <<\_ACEOF
40218 #define SLAPD_MOD_STATIC 1
40222 cat >>confdefs.h <<\_ACEOF
40223 #define SLAPD_MOD_DYNAMIC 2
40227 if test "$ol_enable_monitor" != no ; then
40229 BUILD_MONITOR=$ol_enable_monitor
40230 if test "$ol_enable_monitor" = mod ; then
40231 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40232 MFLAG=SLAPD_MOD_DYNAMIC
40234 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40235 MFLAG=SLAPD_MOD_STATIC
40238 cat >>confdefs.h <<_ACEOF
40239 #define SLAPD_MONITOR $MFLAG
40244 if test "$ol_enable_bdb" != no ; then
40246 BUILD_BDB=$ol_enable_bdb
40247 if test "$ol_enable_bdb" = mod ; then
40248 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40249 MFLAG=SLAPD_MOD_DYNAMIC
40251 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40252 MFLAG=SLAPD_MOD_STATIC
40255 cat >>confdefs.h <<_ACEOF
40256 #define SLAPD_BDB $MFLAG
40261 if test "$ol_enable_dnssrv" != no ; then
40263 BUILD_DNSSRV=$ol_enable_dnssrv
40264 if test "$ol_enable_dnssrv" = mod ; then
40265 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40266 MFLAG=SLAPD_MOD_DYNAMIC
40268 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40269 MFLAG=SLAPD_MOD_STATIC
40272 cat >>confdefs.h <<_ACEOF
40273 #define SLAPD_DNSSRV $MFLAG
40278 if test "$ol_enable_hdb" != no ; then
40280 BUILD_HDB=$ol_enable_hdb
40281 if test "$ol_enable_hdb" = mod ; then
40282 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40283 MFLAG=SLAPD_MOD_DYNAMIC
40285 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40286 MFLAG=SLAPD_MOD_STATIC
40289 cat >>confdefs.h <<_ACEOF
40290 #define SLAPD_HDB $MFLAG
40295 if test "$ol_enable_ldap" != no ; then
40297 BUILD_LDAP=$ol_enable_ldap
40298 if test "$ol_enable_ldap" = mod ; then
40299 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40300 MFLAG=SLAPD_MOD_DYNAMIC
40302 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40303 MFLAG=SLAPD_MOD_STATIC
40306 cat >>confdefs.h <<_ACEOF
40307 #define SLAPD_LDAP $MFLAG
40312 if test "$ol_enable_meta" != no ; then
40314 BUILD_META=$ol_enable_meta
40316 if test "$ol_enable_meta" = mod ; then
40317 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40318 MFLAG=SLAPD_MOD_DYNAMIC
40320 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40321 MFLAG=SLAPD_MOD_STATIC
40324 cat >>confdefs.h <<_ACEOF
40325 #define SLAPD_META $MFLAG
40330 if test "$ol_enable_null" != no ; then
40332 BUILD_NULL=$ol_enable_null
40333 if test "$ol_enable_null" = mod ; then
40334 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40335 MFLAG=SLAPD_MOD_DYNAMIC
40337 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40338 MFLAG=SLAPD_MOD_STATIC
40341 cat >>confdefs.h <<_ACEOF
40342 #define SLAPD_NULL $MFLAG
40347 if test "$ol_enable_passwd" != no ; then
40349 BUILD_PASSWD=$ol_enable_passwd
40350 if test "$ol_enable_passwd" = mod ; then
40351 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40352 MFLAG=SLAPD_MOD_DYNAMIC
40354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40355 MFLAG=SLAPD_MOD_STATIC
40358 cat >>confdefs.h <<_ACEOF
40359 #define SLAPD_PASSWD $MFLAG
40364 if test "$ol_link_perl" != no ; then
40366 BUILD_PERL=$ol_enable_perl
40367 if test "$ol_enable_perl" = mod ; then
40368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40369 MFLAG=SLAPD_MOD_DYNAMIC
40371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40372 MFLAG=SLAPD_MOD_STATIC
40375 cat >>confdefs.h <<_ACEOF
40376 #define SLAPD_PERL $MFLAG
40381 if test "$ol_enable_relay" != no ; then
40383 BUILD_RELAY=$ol_enable_relay
40384 if test "$ol_enable_relay" = mod ; then
40385 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40386 MFLAG=SLAPD_MOD_DYNAMIC
40388 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40389 MFLAG=SLAPD_MOD_STATIC
40392 cat >>confdefs.h <<_ACEOF
40393 #define SLAPD_RELAY $MFLAG
40398 if test "$ol_enable_shell" != no ; then
40399 if test "$ol_link_threads" != no ; then
40400 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40401 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40404 BUILD_SHELL=$ol_enable_shell
40405 if test "$ol_enable_shell" = mod ; then
40406 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40407 MFLAG=SLAPD_MOD_DYNAMIC
40409 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40410 MFLAG=SLAPD_MOD_STATIC
40413 cat >>confdefs.h <<_ACEOF
40414 #define SLAPD_SHELL $MFLAG
40419 if test "$ol_link_sql" != no ; then
40421 BUILD_SQL=$ol_enable_sql
40422 if test "$ol_enable_sql" = mod; then
40423 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40424 MFLAG=SLAPD_MOD_DYNAMIC
40426 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40427 MFLAG=SLAPD_MOD_STATIC
40430 cat >>confdefs.h <<_ACEOF
40431 #define SLAPD_SQL $MFLAG
40436 if test "$ol_enable_accesslog" != no ; then
40437 BUILD_ACCESSLOG=$ol_enable_accesslog
40438 if test "$ol_enable_accesslog" = mod ; then
40439 MFLAG=SLAPD_MOD_DYNAMIC
40440 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40442 MFLAG=SLAPD_MOD_STATIC
40443 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40446 cat >>confdefs.h <<_ACEOF
40447 #define SLAPD_OVER_ACCESSLOG $MFLAG
40452 if test "$ol_enable_auditlog" != no ; then
40453 BUILD_AUDITLOG=$ol_enable_auditlog
40454 if test "$ol_enable_auditlog" = mod ; then
40455 MFLAG=SLAPD_MOD_DYNAMIC
40456 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40458 MFLAG=SLAPD_MOD_STATIC
40459 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40462 cat >>confdefs.h <<_ACEOF
40463 #define SLAPD_OVER_AUDITLOG $MFLAG
40468 if test "$ol_enable_constraint" != no ; then
40469 BUILD_CONSTRAINT=$ol_enable_constraint
40470 if test "$ol_enable_constraint" = mod ; then
40471 MFLAG=SLAPD_MOD_DYNAMIC
40472 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40474 MFLAG=SLAPD_MOD_STATIC
40475 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40478 cat >>confdefs.h <<_ACEOF
40479 #define SLAPD_OVER_CONSTRAINT $MFLAG
40484 if test "$ol_enable_dds" != no ; then
40485 BUILD_DDS=$ol_enable_dds
40486 if test "$ol_enable_dds" = mod ; then
40487 MFLAG=SLAPD_MOD_DYNAMIC
40488 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40490 MFLAG=SLAPD_MOD_STATIC
40491 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40494 cat >>confdefs.h <<_ACEOF
40495 #define SLAPD_OVER_DDS $MFLAG
40500 if test "$ol_enable_dyngroup" != no ; then
40501 BUILD_DYNGROUP=$ol_enable_dyngroup
40502 if test "$ol_enable_dyngroup" = mod ; then
40503 MFLAG=SLAPD_MOD_DYNAMIC
40504 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40506 MFLAG=SLAPD_MOD_STATIC
40507 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40510 cat >>confdefs.h <<_ACEOF
40511 #define SLAPD_OVER_DYNGROUP $MFLAG
40516 if test "$ol_enable_dynlist" != no ; then
40517 BUILD_DYNLIST=$ol_enable_dynlist
40518 if test "$ol_enable_dynlist" = mod ; then
40519 MFLAG=SLAPD_MOD_DYNAMIC
40520 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40522 MFLAG=SLAPD_MOD_STATIC
40523 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40526 cat >>confdefs.h <<_ACEOF
40527 #define SLAPD_OVER_DYNLIST $MFLAG
40532 if test "$ol_enable_ppolicy" != no ; then
40533 BUILD_PPOLICY=$ol_enable_ppolicy
40534 if test "$ol_enable_ppolicy" = mod ; then
40535 MFLAG=SLAPD_MOD_DYNAMIC
40536 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40538 MFLAG=SLAPD_MOD_STATIC
40539 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40542 cat >>confdefs.h <<_ACEOF
40543 #define SLAPD_OVER_PPOLICY $MFLAG
40548 if test "$ol_enable_proxycache" != no ; then
40549 BUILD_PROXYCACHE=$ol_enable_proxycache
40550 if test "$ol_enable_proxycache" = mod ; then
40551 MFLAG=SLAPD_MOD_DYNAMIC
40552 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40554 MFLAG=SLAPD_MOD_STATIC
40555 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40558 cat >>confdefs.h <<_ACEOF
40559 #define SLAPD_OVER_PROXYCACHE $MFLAG
40564 if test "$ol_enable_refint" != no ; then
40565 BUILD_REFINT=$ol_enable_refint
40566 if test "$ol_enable_refint" = mod ; then
40567 MFLAG=SLAPD_MOD_DYNAMIC
40568 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40570 MFLAG=SLAPD_MOD_STATIC
40571 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40574 cat >>confdefs.h <<_ACEOF
40575 #define SLAPD_OVER_REFINT $MFLAG
40580 if test "$ol_enable_retcode" != no ; then
40581 BUILD_RETCODE=$ol_enable_retcode
40582 if test "$ol_enable_retcode" = mod ; then
40583 MFLAG=SLAPD_MOD_DYNAMIC
40584 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40586 MFLAG=SLAPD_MOD_STATIC
40587 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40590 cat >>confdefs.h <<_ACEOF
40591 #define SLAPD_OVER_RETCODE $MFLAG
40596 if test "$ol_enable_rwm" != no ; then
40598 BUILD_RWM=$ol_enable_rwm
40599 if test "$ol_enable_rwm" = mod ; then
40600 MFLAG=SLAPD_MOD_DYNAMIC
40601 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40603 MFLAG=SLAPD_MOD_STATIC
40604 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40607 cat >>confdefs.h <<_ACEOF
40608 #define SLAPD_OVER_RWM $MFLAG
40613 if test "$ol_enable_seqmod" != no ; then
40614 BUILD_SEQMOD=$ol_enable_seqmod
40615 if test "$ol_enable_seqmod" = mod ; then
40616 MFLAG=SLAPD_MOD_DYNAMIC
40617 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40619 MFLAG=SLAPD_MOD_STATIC
40620 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40623 cat >>confdefs.h <<_ACEOF
40624 #define SLAPD_OVER_SEQMOD $MFLAG
40629 if test "$ol_enable_syncprov" != no ; then
40630 BUILD_SYNCPROV=$ol_enable_syncprov
40631 if test "$ol_enable_syncprov" = mod ; then
40632 MFLAG=SLAPD_MOD_DYNAMIC
40633 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40635 MFLAG=SLAPD_MOD_STATIC
40636 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40639 cat >>confdefs.h <<_ACEOF
40640 #define SLAPD_OVER_SYNCPROV $MFLAG
40645 if test "$ol_enable_translucent" != no ; then
40646 BUILD_TRANSLUCENT=$ol_enable_translucent
40647 if test "$ol_enable_translucent" = mod ; then
40648 MFLAG=SLAPD_MOD_DYNAMIC
40649 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40651 MFLAG=SLAPD_MOD_STATIC
40652 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40655 cat >>confdefs.h <<_ACEOF
40656 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40661 if test "$ol_enable_unique" != no ; then
40662 BUILD_UNIQUE=$ol_enable_unique
40663 if test "$ol_enable_unique" = mod ; then
40664 MFLAG=SLAPD_MOD_DYNAMIC
40665 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40667 MFLAG=SLAPD_MOD_STATIC
40668 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40671 cat >>confdefs.h <<_ACEOF
40672 #define SLAPD_OVER_UNIQUE $MFLAG
40677 if test "$ol_enable_valsort" != no ; then
40678 BUILD_VALSORT=$ol_enable_valsort
40679 if test "$ol_enable_valsort" = mod ; then
40680 MFLAG=SLAPD_MOD_DYNAMIC
40681 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40683 MFLAG=SLAPD_MOD_STATIC
40684 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40687 cat >>confdefs.h <<_ACEOF
40688 #define SLAPD_OVER_VALSORT $MFLAG
40693 if test "$ol_enable_slurpd" != no &&
40694 test "$ol_link_threads" != no &&
40695 test $BUILD_SLAPD = yes ; then
40699 if test "$ol_enable_rewrite" != no ; then
40701 cat >>confdefs.h <<\_ACEOF
40702 #define ENABLE_REWRITE 1
40708 if test "$ol_enable_slapi" != no ; then
40710 cat >>confdefs.h <<\_ACEOF
40711 #define ENABLE_SLAPI 1
40715 SLAPD_SLAPI_DEPEND=libslapi.a
40720 if test "$ac_cv_mingw32" = yes ; then
40722 SLAPD_MODULES_LDFLAGS=
40811 # Check whether --with-xxinstall or --without-xxinstall was given.
40812 if test "${with_xxinstall+set}" = set; then
40813 withval="$with_xxinstall"
40818 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-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"
40821 ac_config_commands="$ac_config_commands default"
40825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40826 # Let make expand exec_prefix.
40827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40831 # trailing colons and then remove the whole line if VPATH becomes empty
40832 # (actually we leave an empty line to preserve line numbers).
40833 if test "x$srcdir" = x.; then
40834 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40835 s/:*\$(srcdir):*/:/;
40836 s/:*\${srcdir}:*/:/;
40838 s/^\([^=]*=[ ]*\):*/\1/;
40844 DEFS=-DHAVE_CONFIG_H
40848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40849 # 1. Remove the extension, and $U if already installed.
40850 ac_i=`echo "$ac_i" |
40851 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40853 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40854 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40856 LIBOBJS=$ac_libobjs
40858 LTLIBOBJS=$ac_ltlibobjs
40861 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40862 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40863 Usually this means the macro was only invoked conditionally." >&5
40864 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40865 Usually this means the macro was only invoked conditionally." >&2;}
40866 { (exit 1); exit 1; }; }
40868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40869 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40870 Usually this means the macro was only invoked conditionally." >&5
40871 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40872 Usually this means the macro was only invoked conditionally." >&2;}
40873 { (exit 1); exit 1; }; }
40875 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40876 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40877 Usually this means the macro was only invoked conditionally." >&5
40878 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40879 Usually this means the macro was only invoked conditionally." >&2;}
40880 { (exit 1); exit 1; }; }
40883 : ${CONFIG_STATUS=./config.status}
40884 ac_clean_files_save=$ac_clean_files
40885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40888 cat >$CONFIG_STATUS <<_ACEOF
40890 # Generated by $as_me.
40891 # Run this file to recreate the current configuration.
40892 # Compiler output produced by configure, useful for debugging
40893 # configure, is in config.log if it exists.
40896 ac_cs_recheck=false
40898 SHELL=\${CONFIG_SHELL-$SHELL}
40901 cat >>$CONFIG_STATUS <<\_ACEOF
40902 ## --------------------- ##
40903 ## M4sh Initialization. ##
40904 ## --------------------- ##
40906 # Be Bourne compatible
40907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40911 # is contrary to our usage. Disable this feature.
40912 alias -g '${1+"$@"}'='"$@"'
40913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40916 DUALCASE=1; export DUALCASE # for MKS sh
40918 # Support unset when possible.
40919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40926 # Work around bugs in pre-3.0 UWIN ksh.
40927 $as_unset ENV MAIL MAILPATH
40934 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40935 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40936 LC_TELEPHONE LC_TIME
40938 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40939 eval $as_var=C; export $as_var
40945 # Required to use basename.
40946 if expr a : '\(a\)' >/dev/null 2>&1; then
40952 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40953 as_basename=basename
40959 # Name of the executable.
40960 as_me=`$as_basename "$0" ||
40961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40962 X"$0" : 'X\(//\)$' \| \
40963 X"$0" : 'X\(/\)$' \| \
40964 . : '\(.\)' 2>/dev/null ||
40966 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40967 /^X\/\(\/\/\)$/{ s//\1/; q; }
40968 /^X\/\(\/\).*/{ s//\1/; q; }
40972 # PATH needs CR, and LINENO needs CR and PATH.
40973 # Avoid depending upon Character Ranges.
40974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40977 as_cr_digits='0123456789'
40978 as_cr_alnum=$as_cr_Letters$as_cr_digits
40980 # The user is always right.
40981 if test "${PATH_SEPARATOR+set}" != set; then
40982 echo "#! /bin/sh" >conf$$.sh
40983 echo "exit 0" >>conf$$.sh
40985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40994 as_lineno_1=$LINENO
40995 as_lineno_2=$LINENO
40996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40997 test "x$as_lineno_1" != "x$as_lineno_2" &&
40998 test "x$as_lineno_3" = "x$as_lineno_2" || {
40999 # Find who we are. Look in the path if we contain no path at all
41002 *[\\/]* ) as_myself=$0 ;;
41003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41004 for as_dir in $PATH
41007 test -z "$as_dir" && as_dir=.
41008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41013 # We did not find ourselves, most probably we were run as `sh COMMAND'
41014 # in which case we are not to be found in the path.
41015 if test "x$as_myself" = x; then
41018 if test ! -f "$as_myself"; then
41019 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41020 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41021 { (exit 1); exit 1; }; }
41023 case $CONFIG_SHELL in
41025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41026 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41029 test -z "$as_dir" && as_dir=.
41030 for as_base in sh bash ksh sh5; do
41033 if ("$as_dir/$as_base" -c '
41034 as_lineno_1=$LINENO
41035 as_lineno_2=$LINENO
41036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41037 test "x$as_lineno_1" != "x$as_lineno_2" &&
41038 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41039 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41040 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41041 CONFIG_SHELL=$as_dir/$as_base
41042 export CONFIG_SHELL
41043 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41051 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41052 # uniformly replaced by the line number. The first 'sed' inserts a
41053 # line-number line before each line; the second 'sed' does the real
41054 # work. The second script uses 'N' to pair each line-number line
41055 # with the numbered line, and appends trailing '-' during
41056 # substitution so that $LINENO is not a special case at line end.
41057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41058 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41059 sed '=' <$as_myself |
41064 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41067 s,^['$as_cr_digits']*\n,,
41068 ' >$as_me.lineno &&
41069 chmod +x $as_me.lineno ||
41070 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41071 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41072 { (exit 1); exit 1; }; }
41074 # Don't try to exec as it changes $[0], causing all sort of problems
41075 # (the dirname of $[0] is not the place where we might find the
41076 # original and so on. Autoconf is especially sensible to this).
41078 # Exit status is that of the last command.
41083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41084 *c*,-n*) ECHO_N= ECHO_C='
41086 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41087 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41090 if expr a : '\(a\)' >/dev/null 2>&1; then
41096 rm -f conf$$ conf$$.exe conf$$.file
41098 if ln -s conf$$.file conf$$ 2>/dev/null; then
41099 # We could just check for DJGPP; but this test a) works b) is more generic
41100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41101 if test -f conf$$.exe; then
41102 # Don't use ln at all; we don't have any links
41107 elif ln conf$$.file conf$$ 2>/dev/null; then
41112 rm -f conf$$ conf$$.exe conf$$.file
41114 if mkdir -p . 2>/dev/null; then
41117 test -d ./-p && rmdir ./-p
41121 as_executable_p="test -f"
41123 # Sed expression to map a string onto a valid CPP name.
41124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41126 # Sed expression to map a string onto a valid variable name.
41127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41131 # We need space, tab and new line, in precisely that order.
41141 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41142 # report actual input values of CONFIG_FILES etc. instead of their
41143 # values after options handling. Logging --version etc. is OK.
41147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41148 ## Running $as_me. ##
41153 This file was extended by $as_me, which was
41154 generated by GNU Autoconf 2.59. Invocation command line was
41156 CONFIG_FILES = $CONFIG_FILES
41157 CONFIG_HEADERS = $CONFIG_HEADERS
41158 CONFIG_LINKS = $CONFIG_LINKS
41159 CONFIG_COMMANDS = $CONFIG_COMMANDS
41163 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41167 # Files that config.status was made for.
41168 if test -n "$ac_config_files"; then
41169 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41172 if test -n "$ac_config_headers"; then
41173 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41176 if test -n "$ac_config_links"; then
41177 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41180 if test -n "$ac_config_commands"; then
41181 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41184 cat >>$CONFIG_STATUS <<\_ACEOF
41187 \`$as_me' instantiates files from templates according to the
41188 current configuration.
41190 Usage: $0 [OPTIONS] [FILE]...
41192 -h, --help print this help, then exit
41193 -V, --version print version number, then exit
41194 -q, --quiet do not print progress messages
41195 -d, --debug don't remove temporary files
41196 --recheck update $as_me by reconfiguring in the same conditions
41197 --file=FILE[:TEMPLATE]
41198 instantiate the configuration file FILE
41199 --header=FILE[:TEMPLATE]
41200 instantiate the configuration header FILE
41202 Configuration files:
41205 Configuration headers:
41208 Configuration commands:
41211 Report bugs to <bug-autoconf@gnu.org>."
41214 cat >>$CONFIG_STATUS <<_ACEOF
41217 configured by $0, generated by GNU Autoconf 2.59,
41218 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41220 Copyright (C) 2003 Free Software Foundation, Inc.
41221 This config.status script is free software; the Free Software Foundation
41222 gives unlimited permission to copy, distribute and modify it."
41227 cat >>$CONFIG_STATUS <<\_ACEOF
41228 # If no file are specified by the user, then we need to provide default
41229 # value. By we need to know if files were specified by the user.
41235 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41236 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41244 *) # This is not an option, so the user has probably given explicit
41247 ac_need_defaults=false;;
41251 # Handling of the options.
41253 cat >>$CONFIG_STATUS <<\_ACEOF
41254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41256 --version | --vers* | -V )
41257 echo "$ac_cs_version"; exit 0 ;;
41259 # Conflict between --help and --header
41260 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41261 Try \`$0 --help' for more information." >&5
41262 echo "$as_me: error: ambiguous option: $1
41263 Try \`$0 --help' for more information." >&2;}
41264 { (exit 1); exit 1; }; };;
41265 --help | --hel | -h )
41266 echo "$ac_cs_usage"; exit 0 ;;
41267 --debug | --d* | -d )
41269 --file | --fil | --fi | --f )
41271 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41272 ac_need_defaults=false;;
41273 --header | --heade | --head | --hea )
41275 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41276 ac_need_defaults=false;;
41277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41281 # This is an error.
41282 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41283 Try \`$0 --help' for more information." >&5
41284 echo "$as_me: error: unrecognized option: $1
41285 Try \`$0 --help' for more information." >&2;}
41286 { (exit 1); exit 1; }; } ;;
41288 *) ac_config_targets="$ac_config_targets $1" ;;
41294 ac_configure_extra_args=
41296 if $ac_cs_silent; then
41298 ac_configure_extra_args="$ac_configure_extra_args --silent"
41302 cat >>$CONFIG_STATUS <<_ACEOF
41303 if \$ac_cs_recheck; then
41304 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41305 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41310 cat >>$CONFIG_STATUS <<_ACEOF
41312 # INIT-COMMANDS section.
41315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41317 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41318 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41325 cat >>$CONFIG_STATUS <<\_ACEOF
41326 for ac_config_target in $ac_config_targets
41328 case "$ac_config_target" in
41329 # Handling of arguments.
41330 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41331 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41332 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41333 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41334 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41335 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41336 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41337 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41338 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41339 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41340 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41341 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41342 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41343 "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" ;;
41344 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41345 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41346 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41347 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41348 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41349 "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" ;;
41350 "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" ;;
41351 "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" ;;
41352 "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" ;;
41353 "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" ;;
41354 "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" ;;
41355 "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" ;;
41356 "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" ;;
41357 "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" ;;
41358 "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" ;;
41359 "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" ;;
41360 "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" ;;
41361 "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" ;;
41362 "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" ;;
41363 "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" ;;
41364 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41365 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41366 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41367 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41368 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41369 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41370 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41371 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41372 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41373 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41374 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41375 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41376 { (exit 1); exit 1; }; };;
41380 # If the user did not use the arguments to specify the items to instantiate,
41381 # then the envvar interface is used. Set only those that are not.
41382 # We use the long form for the default assignment because of an extremely
41383 # bizarre bug on SunOS 4.1.3.
41384 if $ac_need_defaults; then
41385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41387 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41390 # Have a temporary directory for convenience. Make it in the build tree
41391 # simply because there is no reason to put it here, and in addition,
41392 # creating and moving files from /tmp can sometimes cause problems.
41393 # Create a temporary directory, and hook for its removal unless debugging.
41396 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41397 trap '{ (exit 1); exit 1; }' 1 2 13 15
41400 # Create a (secure) tmp directory for tmp files.
41403 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41404 test -n "$tmp" && test -d "$tmp"
41407 tmp=./confstat$$-$RANDOM
41408 (umask 077 && mkdir $tmp)
41411 echo "$me: cannot create a temporary directory in ." >&2
41412 { (exit 1); exit 1; }
41417 cat >>$CONFIG_STATUS <<_ACEOF
41420 # CONFIG_FILES section.
41423 # No need to generate the scripts if there are no CONFIG_FILES.
41424 # This happens for instance when ./config.status config.h
41425 if test -n "\$CONFIG_FILES"; then
41426 # Protect against being on the right side of a sed subst in config.status.
41427 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41428 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41429 s,@SHELL@,$SHELL,;t t
41430 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41431 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41432 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41433 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41434 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41435 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41436 s,@exec_prefix@,$exec_prefix,;t t
41437 s,@prefix@,$prefix,;t t
41438 s,@program_transform_name@,$program_transform_name,;t t
41439 s,@bindir@,$bindir,;t t
41440 s,@sbindir@,$sbindir,;t t
41441 s,@libexecdir@,$libexecdir,;t t
41442 s,@datadir@,$datadir,;t t
41443 s,@sysconfdir@,$sysconfdir,;t t
41444 s,@sharedstatedir@,$sharedstatedir,;t t
41445 s,@localstatedir@,$localstatedir,;t t
41446 s,@libdir@,$libdir,;t t
41447 s,@includedir@,$includedir,;t t
41448 s,@oldincludedir@,$oldincludedir,;t t
41449 s,@infodir@,$infodir,;t t
41450 s,@mandir@,$mandir,;t t
41451 s,@build_alias@,$build_alias,;t t
41452 s,@host_alias@,$host_alias,;t t
41453 s,@target_alias@,$target_alias,;t t
41454 s,@DEFS@,$DEFS,;t t
41455 s,@ECHO_C@,$ECHO_C,;t t
41456 s,@ECHO_N@,$ECHO_N,;t t
41457 s,@ECHO_T@,$ECHO_T,;t t
41458 s,@LIBS@,$LIBS,;t t
41459 s,@build@,$build,;t t
41460 s,@build_cpu@,$build_cpu,;t t
41461 s,@build_vendor@,$build_vendor,;t t
41462 s,@build_os@,$build_os,;t t
41463 s,@host@,$host,;t t
41464 s,@host_cpu@,$host_cpu,;t t
41465 s,@host_vendor@,$host_vendor,;t t
41466 s,@host_os@,$host_os,;t t
41467 s,@target@,$target,;t t
41468 s,@target_cpu@,$target_cpu,;t t
41469 s,@target_vendor@,$target_vendor,;t t
41470 s,@target_os@,$target_os,;t t
41471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41474 s,@CYGPATH_W@,$CYGPATH_W,;t t
41475 s,@PACKAGE@,$PACKAGE,;t t
41476 s,@VERSION@,$VERSION,;t t
41477 s,@ACLOCAL@,$ACLOCAL,;t t
41478 s,@AUTOCONF@,$AUTOCONF,;t t
41479 s,@AUTOMAKE@,$AUTOMAKE,;t t
41480 s,@AUTOHEADER@,$AUTOHEADER,;t t
41481 s,@MAKEINFO@,$MAKEINFO,;t t
41482 s,@install_sh@,$install_sh,;t t
41483 s,@STRIP@,$STRIP,;t t
41484 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41485 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41486 s,@mkdir_p@,$mkdir_p,;t t
41488 s,@SET_MAKE@,$SET_MAKE,;t t
41489 s,@am__leading_dot@,$am__leading_dot,;t t
41490 s,@AMTAR@,$AMTAR,;t t
41491 s,@am__tar@,$am__tar,;t t
41492 s,@am__untar@,$am__untar,;t t
41493 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41494 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41495 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41496 s,@top_builddir@,$top_builddir,;t t
41497 s,@ldap_subdir@,$ldap_subdir,;t t
41500 s,@CFLAGS@,$CFLAGS,;t t
41501 s,@LDFLAGS@,$LDFLAGS,;t t
41502 s,@CPPFLAGS@,$CPPFLAGS,;t t
41503 s,@ac_ct_CC@,$ac_ct_CC,;t t
41504 s,@EXEEXT@,$EXEEXT,;t t
41505 s,@OBJEXT@,$OBJEXT,;t t
41506 s,@DEPDIR@,$DEPDIR,;t t
41507 s,@am__include@,$am__include,;t t
41508 s,@am__quote@,$am__quote,;t t
41509 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41510 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41511 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41512 s,@CCDEPMODE@,$CCDEPMODE,;t t
41513 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41514 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41515 s,@EGREP@,$EGREP,;t t
41516 s,@LN_S@,$LN_S,;t t
41517 s,@ECHO@,$ECHO,;t t
41518 s,@ac_ct_AR@,$ac_ct_AR,;t t
41519 s,@RANLIB@,$RANLIB,;t t
41520 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41521 s,@DLLTOOL@,$DLLTOOL,;t t
41522 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41524 s,@ac_ct_AS@,$ac_ct_AS,;t t
41525 s,@OBJDUMP@,$OBJDUMP,;t t
41526 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41528 s,@LIBTOOL@,$LIBTOOL,;t t
41529 s,@PERLBIN@,$PERLBIN,;t t
41530 s,@OL_MKDEP@,$OL_MKDEP,;t t
41531 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41532 s,@LTSTATIC@,$LTSTATIC,;t t
41533 s,@LIBOBJS@,$LIBOBJS,;t t
41534 s,@LIBSRCS@,$LIBSRCS,;t t
41535 s,@PLAT@,$PLAT,;t t
41536 s,@WITH_SASL@,$WITH_SASL,;t t
41537 s,@WITH_TLS@,$WITH_TLS,;t t
41538 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41539 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41540 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41541 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41542 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41543 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41544 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41545 s,@BUILD_BDB@,$BUILD_BDB,;t t
41546 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41547 s,@BUILD_HDB@,$BUILD_HDB,;t t
41548 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41549 s,@BUILD_META@,$BUILD_META,;t t
41550 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41551 s,@BUILD_NULL@,$BUILD_NULL,;t t
41552 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41553 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41554 s,@BUILD_PERL@,$BUILD_PERL,;t t
41555 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41556 s,@BUILD_SQL@,$BUILD_SQL,;t t
41557 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41558 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41559 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41560 s,@BUILD_DDS@,$BUILD_DDS,;t t
41561 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41562 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41563 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41564 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41565 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41566 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41567 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41568 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41569 s,@BUILD_RWM@,$BUILD_RWM,;t t
41570 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41571 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41572 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41573 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41574 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41575 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41576 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41577 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41578 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41579 s,@BDB_LIBS@,$BDB_LIBS,;t t
41580 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41581 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41582 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41583 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41584 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41585 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41586 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41587 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41588 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41589 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41590 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41591 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41592 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41593 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41594 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41595 s,@SASL_LIBS@,$SASL_LIBS,;t t
41596 s,@TLS_LIBS@,$TLS_LIBS,;t t
41597 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41598 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41599 s,@LIBSLAPI@,$LIBSLAPI,;t t
41600 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41601 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41602 s,@ICU_LIBS@,$ICU_LIBS,;t t
41603 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41604 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41605 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41606 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41607 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41608 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41613 cat >>$CONFIG_STATUS <<\_ACEOF
41614 # Split the substitutions into bite-sized pieces for seds with
41615 # small command number limits, like on Digital OSF/1 and HP-UX.
41616 ac_max_sed_lines=48
41617 ac_sed_frag=1 # Number of current file.
41618 ac_beg=1 # First line for current file.
41619 ac_end=$ac_max_sed_lines # Line after last line for current file.
41622 while $ac_more_lines; do
41623 if test $ac_beg -gt 1; then
41624 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41626 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41628 if test ! -s $tmp/subs.frag; then
41629 ac_more_lines=false
41631 # The purpose of the label and of the branching condition is to
41632 # speed up the sed processing (if there are no `@' at all, there
41633 # is no need to browse any of the substitutions).
41634 # These are the two extra sed commands mentioned above.
41636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41637 if test -z "$ac_sed_cmds"; then
41638 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41640 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41642 ac_sed_frag=`expr $ac_sed_frag + 1`
41644 ac_end=`expr $ac_end + $ac_max_sed_lines`
41647 if test -z "$ac_sed_cmds"; then
41650 fi # test -n "$CONFIG_FILES"
41653 cat >>$CONFIG_STATUS <<\_ACEOF
41654 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41657 - | *:- | *:-:* ) # input from stdin
41659 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41661 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41663 * ) ac_file_in=$ac_file.in ;;
41666 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41669 X"$ac_file" : 'X\(//\)[^/]' \| \
41670 X"$ac_file" : 'X\(//\)$' \| \
41671 X"$ac_file" : 'X\(/\)' \| \
41672 . : '\(.\)' 2>/dev/null ||
41674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41676 /^X\(\/\/\)$/{ s//\1/; q; }
41677 /^X\(\/\).*/{ s//\1/; q; }
41679 { if $as_mkdir_p; then
41684 while test ! -d "$as_dir"; do
41685 as_dirs="$as_dir $as_dirs"
41686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41688 X"$as_dir" : 'X\(//\)[^/]' \| \
41689 X"$as_dir" : 'X\(//\)$' \| \
41690 X"$as_dir" : 'X\(/\)' \| \
41691 . : '\(.\)' 2>/dev/null ||
41693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41695 /^X\(\/\/\)$/{ s//\1/; q; }
41696 /^X\(\/\).*/{ s//\1/; q; }
41699 test ! -n "$as_dirs" || mkdir $as_dirs
41700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41702 { (exit 1); exit 1; }; }; }
41706 if test "$ac_dir" != .; then
41707 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41708 # A "../" for each directory in $ac_dir_suffix.
41709 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41711 ac_dir_suffix= ac_top_builddir=
41715 .) # No --srcdir option. We are building in place.
41717 if test -z "$ac_top_builddir"; then
41720 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41722 [\\/]* | ?:[\\/]* ) # Absolute path.
41723 ac_srcdir=$srcdir$ac_dir_suffix;
41724 ac_top_srcdir=$srcdir ;;
41725 *) # Relative path.
41726 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41727 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41730 # Do not use `cd foo && pwd` to compute absolute paths, because
41731 # the directories may not exist.
41733 .) ac_abs_builddir="$ac_dir";;
41736 .) ac_abs_builddir=`pwd`;;
41737 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41738 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41741 case $ac_abs_builddir in
41742 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41744 case ${ac_top_builddir}. in
41745 .) ac_abs_top_builddir=$ac_abs_builddir;;
41746 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41747 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41750 case $ac_abs_builddir in
41751 .) ac_abs_srcdir=$ac_srcdir;;
41754 .) ac_abs_srcdir=$ac_abs_builddir;;
41755 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41756 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41759 case $ac_abs_builddir in
41760 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41762 case $ac_top_srcdir in
41763 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41764 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41765 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41772 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41775 if test x"$ac_file" != x-; then
41776 { echo "$as_me:$LINENO: creating $ac_file" >&5
41777 echo "$as_me: creating $ac_file" >&6;}
41780 # Let's still pretend it is `configure' which instantiates (i.e., don't
41781 # use $as_me), people would be surprised to read:
41782 # /* config.h. Generated by config.status. */
41783 if test x"$ac_file" = x-; then
41786 configure_input="$ac_file. "
41788 configure_input=$configure_input"Generated from `echo $ac_file_in |
41789 sed 's,.*/,,'` by configure."
41791 # First look for the input files in the build tree, otherwise in the
41793 ac_file_inputs=`IFS=:
41794 for f in $ac_file_in; do
41796 -) echo $tmp/stdin ;;
41798 # Absolute (can't be DOS-style, as IFS=:)
41799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41800 echo "$as_me: error: cannot find input file: $f" >&2;}
41801 { (exit 1); exit 1; }; }
41804 if test -f "$f"; then
41807 elif test -f "$srcdir/$f"; then
41812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41813 echo "$as_me: error: cannot find input file: $f" >&2;}
41814 { (exit 1); exit 1; }; }
41817 done` || { (exit 1); exit 1; }
41819 cat >>$CONFIG_STATUS <<_ACEOF
41823 cat >>$CONFIG_STATUS <<\_ACEOF
41825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41826 s,@configure_input@,$configure_input,;t t
41827 s,@srcdir@,$ac_srcdir,;t t
41828 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41829 s,@top_srcdir@,$ac_top_srcdir,;t t
41830 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41831 s,@builddir@,$ac_builddir,;t t
41832 s,@abs_builddir@,$ac_abs_builddir,;t t
41833 s,@top_builddir@,$ac_top_builddir,;t t
41834 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41835 s,@INSTALL@,$ac_INSTALL,;t t
41836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41838 if test x"$ac_file" != x-; then
41839 mv $tmp/out $ac_file
41847 cat >>$CONFIG_STATUS <<\_ACEOF
41850 # CONFIG_HEADER section.
41853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41856 # ac_d sets the value in "#define NAME VALUE" lines.
41857 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41858 ac_dB='[ ].*$,\1#\2'
41861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41862 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41863 ac_uB='$,\1#\2define\3'
41867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41870 - | *:- | *:-:* ) # input from stdin
41872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41876 * ) ac_file_in=$ac_file.in ;;
41879 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41880 echo "$as_me: creating $ac_file" >&6;}
41882 # First look for the input files in the build tree, otherwise in the
41884 ac_file_inputs=`IFS=:
41885 for f in $ac_file_in; do
41887 -) echo $tmp/stdin ;;
41889 # Absolute (can't be DOS-style, as IFS=:)
41890 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41891 echo "$as_me: error: cannot find input file: $f" >&2;}
41892 { (exit 1); exit 1; }; }
41893 # Do quote $f, to prevent DOS paths from being IFS'd.
41896 if test -f "$f"; then
41899 elif test -f "$srcdir/$f"; then
41904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41905 echo "$as_me: error: cannot find input file: $f" >&2;}
41906 { (exit 1); exit 1; }; }
41909 done` || { (exit 1); exit 1; }
41910 # Remove the trailing spaces.
41911 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41916 # `conftest.undefs', that substitutes the proper values into
41917 # config.h.in to produce config.h. The first handles `#define'
41918 # templates, and the second `#undef' templates.
41919 # And first: Protect against being on the right side of a sed subst in
41920 # config.status. Protect against being in an unquoted here document
41921 # in config.status.
41922 rm -f conftest.defines conftest.undefs
41923 # Using a here document instead of a string reduces the quoting nightmare.
41924 # Putting comments in sed scripts is not portable.
41926 # `end' is used to avoid that the second main sed command (meant for
41927 # 0-ary CPP macros) applies to n-ary macro definitions.
41928 # See the Autoconf documentation for `clear'.
41929 cat >confdef2sed.sed <<\_ACEOF
41934 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41936 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41939 # If some macros were called several times there might be several times
41940 # the same #defines, which is useless. Nevertheless, we may not want to
41941 # sort them, since we want the *last* AC-DEFINE to be honored.
41942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41944 rm -f confdef2sed.sed
41946 # This sed command replaces #undef with comments. This is necessary, for
41947 # example, in the case of _POSIX_SOURCE, which is predefined and required
41948 # on some systems where configure will not decide to define it.
41949 cat >>conftest.undefs <<\_ACEOF
41950 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41953 # Break up conftest.defines because some shells have a limit on the size
41954 # of here documents, and old seds have small limits too (100 cmds).
41955 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41956 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41957 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41958 echo ' :' >>$CONFIG_STATUS
41959 rm -f conftest.tail
41960 while grep . conftest.defines >/dev/null
41962 # Write a limited-size here document to $tmp/defines.sed.
41963 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41964 # Speed up: don't consider the non `#define' lines.
41965 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41966 # Work around the forget-to-reset-the-flag bug.
41967 echo 't clr' >>$CONFIG_STATUS
41968 echo ': clr' >>$CONFIG_STATUS
41969 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41971 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41973 mv $tmp/out $tmp/in
41975 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41976 rm -f conftest.defines
41977 mv conftest.tail conftest.defines
41979 rm -f conftest.defines
41980 echo ' fi # grep' >>$CONFIG_STATUS
41981 echo >>$CONFIG_STATUS
41983 # Break up conftest.undefs because some shells have a limit on the size
41984 # of here documents, and old seds have small limits too (100 cmds).
41985 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41986 rm -f conftest.tail
41987 while grep . conftest.undefs >/dev/null
41989 # Write a limited-size here document to $tmp/undefs.sed.
41990 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41991 # Speed up: don't consider the non `#undef'
41992 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41993 # Work around the forget-to-reset-the-flag bug.
41994 echo 't clr' >>$CONFIG_STATUS
41995 echo ': clr' >>$CONFIG_STATUS
41996 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41998 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42000 mv $tmp/out $tmp/in
42002 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42003 rm -f conftest.undefs
42004 mv conftest.tail conftest.undefs
42006 rm -f conftest.undefs
42008 cat >>$CONFIG_STATUS <<\_ACEOF
42009 # Let's still pretend it is `configure' which instantiates (i.e., don't
42010 # use $as_me), people would be surprised to read:
42011 # /* config.h. Generated by config.status. */
42012 if test x"$ac_file" = x-; then
42013 echo "/* Generated by configure. */" >$tmp/config.h
42015 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42017 cat $tmp/in >>$tmp/config.h
42019 if test x"$ac_file" != x-; then
42020 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42022 echo "$as_me: $ac_file is unchanged" >&6;}
42024 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42026 X"$ac_file" : 'X\(//\)[^/]' \| \
42027 X"$ac_file" : 'X\(//\)$' \| \
42028 X"$ac_file" : 'X\(/\)' \| \
42029 . : '\(.\)' 2>/dev/null ||
42031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42033 /^X\(\/\/\)$/{ s//\1/; q; }
42034 /^X\(\/\).*/{ s//\1/; q; }
42036 { if $as_mkdir_p; then
42041 while test ! -d "$as_dir"; do
42042 as_dirs="$as_dir $as_dirs"
42043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42045 X"$as_dir" : 'X\(//\)[^/]' \| \
42046 X"$as_dir" : 'X\(//\)$' \| \
42047 X"$as_dir" : 'X\(/\)' \| \
42048 . : '\(.\)' 2>/dev/null ||
42050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42052 /^X\(\/\/\)$/{ s//\1/; q; }
42053 /^X\(\/\).*/{ s//\1/; q; }
42056 test ! -n "$as_dirs" || mkdir $as_dirs
42057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42059 { (exit 1); exit 1; }; }; }
42062 mv $tmp/config.h $ac_file
42066 rm -f $tmp/config.h
42068 # Compute $ac_file's index in $config_headers.
42070 for _am_header in $config_headers :; do
42071 case $_am_header in
42072 $ac_file | $ac_file:* )
42075 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42078 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42080 X$ac_file : 'X\(//\)[^/]' \| \
42081 X$ac_file : 'X\(//\)$' \| \
42082 X$ac_file : 'X\(/\)' \| \
42083 . : '\(.\)' 2>/dev/null ||
42085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42087 /^X\(\/\/\)$/{ s//\1/; q; }
42088 /^X\(\/\).*/{ s//\1/; q; }
42089 s/.*/./; q'`/stamp-h$_am_stamp_count
42092 cat >>$CONFIG_STATUS <<\_ACEOF
42095 # CONFIG_COMMANDS section.
42097 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42098 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42099 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42100 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42101 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42102 X"$ac_dest" : 'X\(//\)[^/]' \| \
42103 X"$ac_dest" : 'X\(//\)$' \| \
42104 X"$ac_dest" : 'X\(/\)' \| \
42105 . : '\(.\)' 2>/dev/null ||
42107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42109 /^X\(\/\/\)$/{ s//\1/; q; }
42110 /^X\(\/\).*/{ s//\1/; q; }
42112 { if $as_mkdir_p; then
42117 while test ! -d "$as_dir"; do
42118 as_dirs="$as_dir $as_dirs"
42119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42121 X"$as_dir" : 'X\(//\)[^/]' \| \
42122 X"$as_dir" : 'X\(//\)$' \| \
42123 X"$as_dir" : 'X\(/\)' \| \
42124 . : '\(.\)' 2>/dev/null ||
42126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42128 /^X\(\/\/\)$/{ s//\1/; q; }
42129 /^X\(\/\).*/{ s//\1/; q; }
42132 test ! -n "$as_dirs" || mkdir $as_dirs
42133 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42134 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42135 { (exit 1); exit 1; }; }; }
42139 if test "$ac_dir" != .; then
42140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42141 # A "../" for each directory in $ac_dir_suffix.
42142 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42144 ac_dir_suffix= ac_top_builddir=
42148 .) # No --srcdir option. We are building in place.
42150 if test -z "$ac_top_builddir"; then
42153 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42155 [\\/]* | ?:[\\/]* ) # Absolute path.
42156 ac_srcdir=$srcdir$ac_dir_suffix;
42157 ac_top_srcdir=$srcdir ;;
42158 *) # Relative path.
42159 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42160 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42163 # Do not use `cd foo && pwd` to compute absolute paths, because
42164 # the directories may not exist.
42166 .) ac_abs_builddir="$ac_dir";;
42169 .) ac_abs_builddir=`pwd`;;
42170 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42171 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42174 case $ac_abs_builddir in
42175 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42177 case ${ac_top_builddir}. in
42178 .) ac_abs_top_builddir=$ac_abs_builddir;;
42179 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42180 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42183 case $ac_abs_builddir in
42184 .) ac_abs_srcdir=$ac_srcdir;;
42187 .) ac_abs_srcdir=$ac_abs_builddir;;
42188 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42189 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42192 case $ac_abs_builddir in
42193 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42195 case $ac_top_srcdir in
42196 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42197 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42198 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42204 echo "$as_me: executing $ac_dest commands" >&6;}
42206 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42207 # Strip MF so we end up with the name of the file.
42208 mf=`echo "$mf" | sed -e 's/:.*$//'`
42209 # Check whether this is an Automake generated Makefile or not.
42210 # We used to match only the files named `Makefile.in', but
42211 # some people rename them; so instead we look at the file content.
42212 # Grep'ing the first line is not enough: some people post-process
42213 # each Makefile.in and add a new line on top of each file to say so.
42214 # So let's grep whole file.
42215 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42216 dirpart=`(dirname "$mf") 2>/dev/null ||
42217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42218 X"$mf" : 'X\(//\)[^/]' \| \
42219 X"$mf" : 'X\(//\)$' \| \
42220 X"$mf" : 'X\(/\)' \| \
42221 . : '\(.\)' 2>/dev/null ||
42223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42225 /^X\(\/\/\)$/{ s//\1/; q; }
42226 /^X\(\/\).*/{ s//\1/; q; }
42231 # Extract the definition of DEPDIR, am__include, and am__quote
42232 # from the Makefile without running `make'.
42233 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42234 test -z "$DEPDIR" && continue
42235 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42236 test -z "am__include" && continue
42237 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42238 # When using ansi2knr, U may be empty or an underscore; expand it
42239 U=`sed -n 's/^U = //p' < "$mf"`
42240 # Find all dependency output files, they are included files with
42241 # $(DEPDIR) in their names. We invoke sed twice because it is the
42242 # simplest approach to changing $(DEPDIR) to its actual value in the
42244 for file in `sed -n "
42245 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42247 # Make sure the directory exists.
42248 test -f "$dirpart/$file" && continue
42249 fdir=`(dirname "$file") 2>/dev/null ||
42250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42251 X"$file" : 'X\(//\)[^/]' \| \
42252 X"$file" : 'X\(//\)$' \| \
42253 X"$file" : 'X\(/\)' \| \
42254 . : '\(.\)' 2>/dev/null ||
42256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42258 /^X\(\/\/\)$/{ s//\1/; q; }
42259 /^X\(\/\).*/{ s//\1/; q; }
42261 { if $as_mkdir_p; then
42262 mkdir -p $dirpart/$fdir
42264 as_dir=$dirpart/$fdir
42266 while test ! -d "$as_dir"; do
42267 as_dirs="$as_dir $as_dirs"
42268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42270 X"$as_dir" : 'X\(//\)[^/]' \| \
42271 X"$as_dir" : 'X\(//\)$' \| \
42272 X"$as_dir" : 'X\(/\)' \| \
42273 . : '\(.\)' 2>/dev/null ||
42275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42277 /^X\(\/\/\)$/{ s//\1/; q; }
42278 /^X\(\/\).*/{ s//\1/; q; }
42281 test ! -n "$as_dirs" || mkdir $as_dirs
42282 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42284 { (exit 1); exit 1; }; }; }
42286 # echo "creating $dirpart/$file"
42287 echo '# dummy' > "$dirpart/$file"
42294 BACKENDSC="servers/slapd/backends.c"
42295 echo "Making $BACKENDSC"
42297 cat > $BACKENDSC << ENDX
42298 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42300 * Copyright 1998-2006 The OpenLDAP Foundation.
42301 * All rights reserved.
42303 * Redistribution and use in source and binary forms, with or without
42304 * modification, are permitted only as authorized by the OpenLDAP
42307 * A copy of this license is available in the file LICENSE in the
42308 * top-level directory of the distribution or, alternatively, at
42309 * <http://www.OpenLDAP.org/license.html>.
42311 /* This file is automatically generated by configure; please do not edit. */
42313 #include "portable.h"
42317 if test "${STATIC_BACKENDS}"; then
42318 for b in config ${STATIC_BACKENDS}; do
42319 bb=`echo "${b}" | sed -e 's/back-//'`
42320 cat >> $BACKENDSC << ENDX
42321 extern BI_init ${bb}_back_initialize;
42325 cat >> $BACKENDSC << ENDX
42327 BackendInfo slap_binfo[] = {
42330 for b in config ${STATIC_BACKENDS}; do
42331 bb=`echo "${b}" | sed -e 's/back-//'`
42332 echo " Add ${bb} ..."
42333 cat >> $BACKENDSC << ENDX
42334 { "${bb}", ${bb}_back_initialize },
42338 cat >> $BACKENDSC << ENDX
42342 /* end of generated file */
42345 OVERLAYSC="servers/slapd/overlays/statover.c"
42346 echo "Making $OVERLAYSC"
42348 cat > $OVERLAYSC << ENDX
42349 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42351 * Copyright 1998-2006 The OpenLDAP Foundation.
42352 * All rights reserved.
42354 * Redistribution and use in source and binary forms, with or without
42355 * modification, are permitted only as authorized by the OpenLDAP
42358 * A copy of this license is available in the file LICENSE in the
42359 * top-level directory of the distribution or, alternatively, at
42360 * <http://www.OpenLDAP.org/license.html>.
42362 /* This file is automatically generated by configure; please do not edit. */
42364 #include "portable.h"
42368 if test "${STATIC_OVERLAYS}"; then
42369 for o in ${STATIC_OVERLAYS}; do
42370 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42371 cat >> $OVERLAYSC << ENDX
42372 extern OV_init ${oo}_initialize;
42377 cat >> $OVERLAYSC << ENDX
42379 OverlayInit slap_oinfo[] = {
42382 if test "${STATIC_OVERLAYS}"; then
42383 for o in ${STATIC_OVERLAYS}; do
42384 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42385 echo " Add ${oo} ..."
42386 cat >> $OVERLAYSC << ENDX
42387 { "${oo}", ${oo}_initialize },
42392 cat >> $OVERLAYSC << ENDX
42396 /* end of generated file */
42399 echo Please run \"make depend\" to build dependencies
42405 cat >>$CONFIG_STATUS <<\_ACEOF
42407 { (exit 0); exit 0; }
42409 chmod +x $CONFIG_STATUS
42410 ac_clean_files=$ac_clean_files_save
42413 # configure is writing to config.log, and then calls config.status.
42414 # config.status does its own redirection, appending to config.log.
42415 # Unfortunately, on DOS this fails, as config.log is still kept open
42416 # by configure, so config.status won't be able to write to it; its
42417 # output is simply discarded. So we exec the FD to /dev/null,
42418 # effectively closing config.log, so it can be properly (re)opened and
42419 # appended to by config.status. When coming back to configure, we
42420 # need to make the FD available again.
42421 if test "$no_create" != yes; then
42423 ac_config_status_args=
42424 test "$silent" = yes &&
42425 ac_config_status_args="$ac_config_status_args --quiet"
42427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42430 # would make configure fail if this is the last instruction.
42431 $ac_cs_success || { (exit 1); exit 1; }